Changeset 1337 for trunk/Configure


Ignore:
Timestamp:
Sep 30, 2010, 2:47:17 PM (15 years ago)
Author:
garnier
Message:

tag geant4.9.4 beta 1 + modifs locales

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Configure

    r1195 r1337  
    1919#
    2020
    21 # $Id: Configure,v 1.124 2009/11/24 13:10:37 bmorgan Exp $
     21# $Id: Configure,v 1.133 2010/06/24 15:24:11 bmorgan Exp $
    2222#
    23 # Generated on Tue Nov 24 13:09:42 GMT 2009 [metaconfig 3.0 PL70]
     23# Generated on Thu Jun 24 16:21:02 BST 2010 [metaconfig 3.0 PL70]
    2424
    2525cat >/tmp/c1$$ <<EOF
     
    179179g4levelgammadata=''
    180180g4neutronhpcrosssections=''
     181g4neutronxsdata=''
    181182g4radioactivedata=''
    182183g4clhep_base_dir=''
     
    333334g4vis_build_raytracer_driver='y'
    334335g4vis_use_raytracer='y'
    335 g4vis_build_vrml_driver='y'
    336 g4vis_use_vrml='y'
     336g4vis_build_vrmlfile_driver='y'
     337g4vis_use_vrmlfile='y'
     338g4vis_build_vrml_driver='n'
     339g4vis_use_vrml='n'
    337340g4vis_build_asciitree_driver='y'
    338341g4vis_use_asciitree='y'
     
    22582261    #
    22592262    # User may supply a value for 'QTDIR' and in that case we ASSUME a
    2260     # Trolltech style installation or a Mac Framework
     2263    # Trolltech style installation or a Mac Framework. The latter has a
     2264    # higher priority in the list of search paths because otherwise we may
     2265    # miss the presence of a Framework (see Bug #1095)
    22612266    #
    22622267    if test "x\$with_qt_dir" != "x" ; then
    22632268        g4_qt_dir="\$with_qt_dir"
    2264         g4_qt_possible_qt_include_dirs="\$with_qt_dir/include/QtCore
     2269        g4_qt_possible_qt_include_dirs="\$with_qt_dir/QtCore.framework/Headers
     2270                                        \$with_qt_dir/lib*/QtCore.framework/Headers
     2271                                        \$with_qt_dir/include/QtCore
    22652272                                        \$with_qt_dir/include/Qt
    22662273                                        \`ls -dr \$with_qt_dir/include/qt*/QtCore 2>/dev/null\`
    22672274                                        \`ls -dr \$with_qt_dir/include/qt*/Qt 2>/dev/null\`
    22682275                                        \`ls -dr \$with_qt_dir/include/qt* 2>/dev/null\`
    2269                                         \$with_qt_dir/include
    2270                                         \$with_qt_dir/QtCore.framework/Headers"
     2276                                        \$with_qt_dir/include"
    22712277
    22722278        # Check for qglobal.h
     
    22842290
    22852291    else
    2286         # We use standard search paths...
     2292        # We use standard search paths, again preferencing Frameworks so that
     2293        # these are not missed
    22872294        qt_direct_test_header="qglobal.h"
    22882295
     
    22902297            \`ls -dr /Library/Frameworks/QtCore.framework/Headers 2>/dev/null\`
    22912298            \`ls -dr /System/Library/Frameworks/QtCore.framework/Headers 2>/dev/null\`
     2299            \`ls -dr /usr/local/Qt*/QtCore.framework/Headers 2>/dev/null\`
     2300            \`ls -dr /usr/local/Qt*/lib*/QtCore.framework/Headers 2>/dev/null\`
     2301            \`ls -dr /usr/local/lib*/Qt*/QtCore.framework/Headers 2>/dev/null\`
     2302            \`ls -dr /opt/local/Qt*/QtCore.framework/Headers 2>/dev/null\`
     2303            \`ls -dr /opt/local/Qt*/lib*/QtCore.framework/Headers 2>/dev/null\`
     2304            \`ls -dr /opt/local/lib/Qt*/QtCore.framework/Headers 2>/dev/null\`
     2305            \`ls -dr /opt/local/lib*/QtCore.framework/Headers 2>/dev/null\`
     2306            \`ls -dr /opt/Qt*/QtCore.framework/Headers 2>/dev/null\`
     2307            \`ls -dr /opt/Qt*/lib*/QtCore.framework/Headers 2>/dev/null\`
     2308            \`ls -dr /usr/lib/QtCore.framework/Headers 2>/dev/null\`
     2309            \`ls -dr /usr/lib/Qt*/QtCore.framework/Headers 2>/dev/null\`
    22922310            /usr/include/QtCore
    22932311            \`ls -dr /usr/include/qt*/QtCore 2>/dev/null\`
    2294             \`ls -dr /usr/local/include/QtCore 2>/dev/null\`
     2312                \`ls -dr /usr/local/include/QtCore 2>/dev/null\`
    22952313            \`ls -dr /usr/local/include/qt*/QtCore 2>/dev/null\`
    2296             \`ls -dr /usr/local/qt*/include/QtCore 2>/dev/null\`
     2314                \`ls -dr /usr/local/qt*/include/QtCore 2>/dev/null\`
    22972315            \`ls -dr /opt/qt*/include/QtCore 2>/dev/null\`
    22982316            \`ls -dr /usr/qt*/include/QtCore 2>/dev/null\`
     
    23052323            \`ls -dr /usr/include/qt* 2>/dev/null\`
    23062324            \`ls -dr /usr/local/include 2>/dev/null\`
    2307             \`ls -dr /usr/local/include/qt* 2>/dev/null\`
     2325                \`ls -dr /usr/local/include/qt* 2>/dev/null\`
    23082326            \`ls -dr /usr/local/qt*/include 2>/dev/null\`
    23092327            \`ls -dr /opt/qt*/include 2>/dev/null\`
     
    23482366            g4_qt_include_dir=no
    23492367            g4_havegoodqt=no
     2368            echo "checking for qglobal.h... no"
     2369        else
     2370            echo "checking for qglobal.h... \$g4_qt_include_dir/qglobal.h"
    23502371        fi
    2351 
    2352         echo "checking for qglobal.h... \$g4_qt_include_dir/qglobal.h"
    23532372    fi # END TEST with_qt_dir is set
    23542373
     
    23612380    # Immediate and obvious Darwin check...
    23622381    if test "x\`basename \$g4_qt_include_dir\`" = "xHeaders" ; then
    2363         #check for moc
    2364         if test -x "/usr/bin/moc" ; then
    2365             g4_qt_moc="/usr/bin/moc"
    2366             echo "checking for moc... \$g4_qt_moc"
    2367 
    2368             g4_qt_dir=\`dirname \$g4_qt_include_dir\`
    2369             g4_qt_dir=\`dirname \$g4_qt_dir\`
    2370 
    2371             g4_qt_version="4"
    2372             g4_qt_cxxflags="-I\$g4_qt_dir/QtCore.framework/Headers -I\$g4_qt_dir/QtGui.framework/Headers"
    2373             g4_qt_gl_cxxflags="-I\$g4_qt_dir/QtOpenGl.framework/Headers"
    2374             g4_qt_libs="-F\$g4_qt_dir -framework QtCore -framework QtGui"
    2375             g4_qt_gl_libs="-framework QtOpenGL"
    2376         else
    2377             echo "checking for moc... no"
    2378             g4_havegoodqt=no
     2382        #check for moc - we have a framework so we first need to check for
     2383        #a bin directory below g4_qt_include_dir. Depending on how the
     2384        #Framework was installed, this may be below the level that
     2385        #QtCore.framework is at.
     2386
     2387        # Find base framework directory
     2388        g4_qt_fmwk_base_dir=\`dirname \$g4_qt_include_dir\`
     2389        g4_qt_fmwk_base_dir=\`dirname \$g4_qt_fmwk_base_dir\`
     2390
     2391        if test "x\`basename \$g4_qt_fmwk_base_dir\`" = "xlib" ; then
     2392            #This is probably an independent install
     2393            echo "checking Mac Framework location... trolltech/custom"
     2394            g4_qt_dir=\`dirname \$g4_qt_fmwk_base_dir\`
     2395
     2396            #Check for moc
     2397            if test -x "\$g4_qt_dir/bin/moc" ; then
     2398                g4_qt_moc="\$g4_qt_dir/bin/moc"
     2399                echo "checking for moc... \$g4_qt_moc"
     2400
     2401                g4_qt_version="4"
     2402                g4_qt_cxxflags="-I\$g4_qt_dir/lib/QtCore.framework/Headers -I\$g4_qt_dir/lib/QtGui.framework/Headers"
     2403                g4_qt_gl_cxxflags="-I\$g4_qt_dir/lib/QtOpenGl.framework/Headers"
     2404                g4_qt_libs="-F\$g4_qt_dir/lib -framework QtCore -framework QtGui"
     2405                g4_qt_gl_libs="-framework QtOpenGL"
     2406            else
     2407                echo "checking for moc... no"
     2408                g4_havegoodqt=no
     2409            fi
     2410        elif test "x\`basename \$g4_qt_fmwk_base_dir\`" = "xFrameworks" ; then
     2411            #This looks like a system install
     2412            echo "Checking Mac Framework location... Frameworks"
     2413            if test -x "/usr/bin/moc" ; then
     2414                g4_qt_moc="/usr/bin/moc"
     2415                echo "checking for moc... \$g4_qt_moc"
     2416
     2417                g4_qt_dir=\$g4_qt_fmwk_base_dir
     2418
     2419                    g4_qt_version="4"
     2420                g4_qt_cxxflags="-I\$g4_qt_dir/QtCore.framework/Headers -I\$g4_qt_dir/QtGui.framework/Headers"
     2421                g4_qt_gl_cxxflags="-I\$g4_qt_dir/QtOpenGl.framework/Headers"
     2422                g4_qt_libs="-F\$g4_qt_dir -framework QtCore -framework QtGui"
     2423                g4_qt_gl_libs="-framework QtOpenGL"
     2424            else
     2425                echo "checking for moc... no"
     2426                g4_havegoodqt=no
     2427            fi
    23792428        fi
    2380     else
     2429    elif test "x\$g4_qt_include_dir" != "x" ; then
    23812430        # Probably have Unix-style installation, in which case estimated
    23822431        # 'QTDIR' equivalent is $with_qt_dir if supplied, or directory
     
    24772526            # We don't ever cross-compile Geant4, so must have the native libraries.
    24782527            # Double check for this craziness...
    2479             case `uname -m` in
     2528            case "`uname -m`" in
    24802529                i*86)
    24812530                    g4_qt_lib_dir=\$g4_qt_dir/lib
     
    26692718            g4_qt_is_configured=''
    26702719        fi
     2720    else
     2721        #We couldn't find qglobal...
     2722            g4_havegoodqt="no"
    26712723    fi #END TEST for Darwin Framework
    26722724
     
    32343286g4data_photonevaporation_version='PhotonEvaporation2.0'
    32353287g4data_radioactivedecay_version='RadioactiveDecay3.2'
    3236 g4data_g4emlow_version='G4EMLOW6.9'
     3288g4data_g4emlow_version='G4EMLOW6.13'
    32373289g4data_g4ndl_version='G4NDL3.13'
    32383290g4data_g4abla_version='G4ABLA3.0'
    32393291g4data_realsurface_version='RealSurface1.0'
     3292g4data_neutronxs_version='G4NEUTRONXS1.0'
    32403293#END GEANT4 DATA OPTIONS
    32413294echo " "
     
    32883341esac
    32893342
     3343case "$g4neutronxsdata" in
     3344'')
     3345        g4neutronxsdata=$g4data/$g4data_neutronxs_version
     3346        ;;
     3347esac
     3348
    32903349
    32913350#
    32923351# Now we have defaults, prompt user to see if this is where they want to use
    32933352#
    3294 g4data_alllibs="$g4data_photonevaporation_version $g4data_radioactivedecay_version $g4data_g4emlow_version $g4data_g4ndl_version $g4data_g4abla_version $g4data_realsurface_version"
     3353g4data_alllibs="$g4data_photonevaporation_version $g4data_radioactivedecay_version $g4data_g4emlow_version $g4data_g4ndl_version $g4data_g4abla_version $g4data_realsurface_version $g4data_neutronxs_version"
    32953354
    32963355g4message=`cat <<EOM
     
    33673426                $echo "yes"
    33683427                g4realsurfacedata=$g4data/$g4data_realsurface_version
     3428        else
     3429                $echo "no"
     3430                g4data_foundall="no"
     3431        fi
     3432
     3433        ### G4NEUTRONXS
     3434        $echo $n "checking for $g4data_neutronxs_version... $c"
     3435        if test -d "$g4data/$g4data_neutronxs_version" ; then
     3436                $echo "yes"
     3437                g4neutronxsdata=$g4data/$g4data_neutronxs_version
    33693438        else
    33703439                $echo "no"
     
    34113480                        g4abladata="$g4data/$g4data_g4abla_version"
    34123481                        g4realsurfacedata="$g4data/$g4data_realsurface_version"
     3482            g4neutronxsdata="$g4data/$g4data_neutronxs_version"
    34133483                       
    34143484
     
    34203490
    34213491                        g4levelgammadata="$g4data/$g4data_photonevaporation_version"
    3422                         g4radioactivedata="$g4data/$g4data_radioactivedecay_version"
    3423                         g4ledata="$g4data/$g4data_g4emlow_version"
    3424                         g4neutronhpcrosssections="$g4data/$g4data_g4ndl_version"
    3425                         g4abladata="$g4data/$g4data_g4abla_version"
    3426                         g4realsurfacedata="$g4data/$g4data_realsurface_version"
     3492            g4radioactivedata="$g4data/$g4data_radioactivedecay_version"
     3493            g4ledata="$g4data/$g4data_g4emlow_version"
     3494            g4neutronhpcrosssections="$g4data/$g4data_g4ndl_version"
     3495            g4abladata="$g4data/$g4data_g4abla_version"
     3496            g4realsurfacedata="$g4data/$g4data_realsurface_version"
     3497            g4neutronxsdata="$g4data/$g4data_neutronxs_version"
    34273498
    34283499                else
     
    345735286) $g4data_realsurface_version:
    34583529        $g4realsurfacedata
     35307) $g4data_neutronxs_version:
     3531    $g4neutronxsdata
    34593532
    34603533Choose a number from the list above to customize that path (e.g. 2)
     
    35143587                . ./getfile
    35153588                g4realsurfacedata=$ans
     3589                ;;
     3590
     3591        "7")
     3592                dflt=$g4neutronxsdata
     3593                fn='d~'
     3594                rp="Custom path to $g4data_neutronxs_version?"
     3595                . ./getfile
     3596                g4neutronxsdata=$ans
    35163597                ;;
    35173598
     
    35703651# Now see if make/gmake are GNU make.
    35713652if test "x$g4_make_loc" != "xno" ; then
    3572     g4_make_version=`$g4_make_loc -v 2>/dev/null`
     3653    g4_make_version=`$g4_make_loc -v 2>/dev/null | sed s"/'//"`
    35733654
    35743655    case $g4_make_version in
     
    35853666if test "x$g4osname" != "xWIN32" ; then
    35863667    if test "x$g4_gmake_loc" != "xno" ; then
    3587         g4_gmake_version=`$g4_gmake_loc -v 2>/dev/null`
     3668        g4_gmake_version=`$g4_gmake_loc -v 2>/dev/null | sed s"/'//"`
    35883669
    35893670        case $g4_gmake_version in
     
    36243705
    36253706        #Check if this is GNU make...
    3626         g4_user_make_version=`$gans -v 2>/dev/null`
     3707        g4_user_make_version=`$gans -v 2>/dev/null | sed s"/'//"`
    36273708
    36283709        case $g4_user_make_version in
     
    55465627if test "X$g4lib_build_gdml" != "Xn"; then
    55475628
    5548    if test "X$g4gdml_xercesc_root" = "X"; then
    5549       #probe for Xerces, using example from UI and Vis
    5550       xercesc_root=`find $g4gdml_xercesc_root /usr/include /usr/local/include \
    5551 /opt/local/include /sw/include -type d -name xercesc 2>/dev/null | xargs echo`
    5552 
    5553       #If we got something, strip off the include/xerces part
    5554       if test "X$xercesc_root" != "X"; then
    5555          g4gdml_xercesc_root=`dirname $xercesc_root`
    5556          g4gdml_xercesc_root=`dirname $g4gdml_xercesc_root`
    5557 
    5558          echo "checking for XercesC install... $g4gdml_xercesc_root"
    5559      echo " "
    5560       else
    5561          g4gdml_xercesc_root=""
    5562          echo "checking for XercesC install... no"
    5563       fi
    5564    fi #END OF XERCES AUTOPROBE
    5565 
    5566    #
    5567    # If the autoprobe failed, prompt the user to enter the path to the Xerces
    5568    # install
    5569    #
    5570    if test "X$g4gdml_xercesc_root" = "X"; then
    5571 
    5572       promptend="no"
    5573       xercesloc="the standard locations"
     5629    # If g4system is WIN32-VC, we need to force the input of a search path
     5630    # though we can use with_xercesc_root as the dflt.
     5631    if test "X$g4system" = "XWIN32-VC" ; then
     5632        g4message=`cat << EOM
     5633You have requested GDML support for Geant4 built on WIN32-VC.
     5634This requires the Xerces-C library built for MSVC.
     5635Please enter the path to the Xerces-C install (i.e. if XercesC is installed
     5636in PATH\include\xercesc, enter PATH), or type '-' to CANCEL the build of the
     5637GDML module.
     5638XercesC path:
     5639EOM`
     5640        dflt=$with_xercesc_root
     5641        fn='d~(-)'
     5642            rp=$g4message
     5643            . ./getfile
     5644        with_xercesc_root=$ans
     5645        if test "X$with_xercesc_root" = "X-" ; then
     5646            g4lib_build_gdml=n
     5647            g4gdml_xercesc_root=""
     5648                echo "G4LIB_BUILD_GDML cancelled..."
     5649                    echo " "
     5650        fi
     5651    fi
     5652
     5653    # We now have a suitable platform independent setup for probing for the
     5654    # Xerces-C install....
     5655    if test "X$with_xercesc_root" != "X-"; then
     5656    if test "X$with_xercesc_root" != "X" ; then
     5657        # Probe for Xerces-C in the supplied directory
     5658        xercesc_root=`find $with_xercesc_root/include -type d -name xercesc 2>/dev/null | xargs echo`
     5659    else
     5660        # Probe for Xerces-C in standard locations
     5661        xercesc_root=`find /usr/include /usr/local/include /opt/local/include /sw/include -type d -name xercesc 2>/dev/null | xargs echo`
     5662    fi
     5663
     5664    # What did we find??
     5665    if test "X$xercesc_root" = "X" ; then
     5666        g4gdml_xercesc_root=""
     5667        echo "checking for XercesC install... no"
     5668    else
     5669        # We'll have PATH/include/xercesc if we found it
     5670        g4gdml_xercesc_root=`dirname $xercesc_root`
     5671        g4gdml_xercesc_root=`dirname $g4gdml_xercesc_root`
     5672       
     5673        echo "checking for XercesC install... $g4gdml_xercesc_root"
     5674    fi
     5675
     5676    # If we didn't find anything, fall back to the user...
     5677    if test "X$g4gdml_xercesc_root" = "X" ; then
     5678        promptend="no"
     5679        if test "X$with_xercesc_root" = "X" ; then
     5680            xercescloc="the standard locations"
     5681        else
     5682            xercescloc=$with_xercesc_root
     5683        fi
    55745684     
    5575       while test "$promptend" = "no"; do
    5576             g4message=`cat << EOM
    5577 
    5578 Autodetection failed to locate XercesC in $xercesloc on your system.
     5685        while test "$promptend" = "no"; do
     5686                g4message=`cat << EOM
     5687
     5688Autodetection failed to locate XercesC in $xercescloc on your system.
    55795689Please enter the path to your XercesC install (i.e. if XercesC is installed
    55805690in PATH/include/xercesc, enter PATH), or type '-' to CANCEL the build of the
     
    55835693EOM`
    55845694
    5585             dflt=$g4gdml_xercesc_root
    5586             fn='d~(-)'
    5587             rp=$g4message
    5588             . ./getfile
    5589 
    5590             #check for user cancellation
    5591             if test "X$ans" = "X-"; then
    5592                g4lib_build_gdml=n
    5593                g4gdml_xercesc_root=""
    5594                echo "G4LIB_BUILD_GDML cancelled..."
    5595                    echo " "
    5596                promptend=yes
    5597             else
    5598                if test -r "$ans/include/xercesc"; then
    5599                   g4gdml_xercesc_root=$ans
    5600                   echo "checking for XercesC install... $g4gdml_xercesc_root"
    5601                   echo " "
    5602                   promptend=yes
    5603                else
    5604                   xercesloc=$ans
    5605                   echo "checking for Xercesc install... no"
    5606                fi
     5695                dflt=$g4gdml_xercesc_root
     5696                fn='d~(-)'
     5697                rp=$g4message
     5698                . ./getfile
     5699
     5700                #check for user cancellation
     5701                if test "X$ans" = "X-"; then
     5702                    g4lib_build_gdml=n
     5703                    g4gdml_xercesc_root=""
     5704                    echo "G4LIB_BUILD_GDML cancelled..."
     5705                        echo " "
     5706                    promptend=yes
     5707                else
     5708                    if test -r "$ans/include/xercesc"; then
     5709                            g4gdml_xercesc_root=$ans
     5710                            echo "checking for XercesC install... $g4gdml_xercesc_root"
     5711                            echo " "
     5712                            promptend=yes
     5713                    else
     5714                        xercesloc=$ans
     5715                        echo "checking for Xercesc install... no"
     5716                    fi
    56075717            fi #END OF USER INPUT CHECKING
    5608       done #END OF WHILE LOOP OVER USER INPUT
    5609    fi #END OF USER INPUT SECTION
    5610 
    5611    #
    5612    # If a filter on g4gdml_xerces_root is needed to remove common system paths
    5613    # then it should be put here...
    5614    #
    5615         if test "x$g4gdml_xercesc_root" = "x/usr" -o "x$g4gdml_xercesc_root" = "x/usr/local" ; then
    5616                 g4gdml_xercesc_root=""
     5718        done #END OF WHILE LOOP OVER USER INPUT
     5719    fi #END OF USER INPUT SECTION
     5720
     5721    #
     5722    # If a filter on g4gdml_xerces_root is needed to remove common system paths
     5723    # then it should be put here...
     5724    #
     5725    if test "x$g4gdml_xercesc_root" = "x/usr" -o "x$g4gdml_xercesc_root" = "x/usr/local" ; then
     5726        g4gdml_xercesc_root=""
    56175727        fi
    5618 
     5728    fi # End outer check of WIN32-VC module cancellation
    56195729fi #END XERCES PROBE
    56205730
     
    57945904g4make='$g4make'
    57955905g4neutronhpcrosssections='$g4neutronhpcrosssections'
     5906g4neutronxsdata='$g4neutronxsdata'
    57965907g4osname='$g4osname'
    57975908g4radioactivedata='$g4radioactivedata'
Note: See TracChangeset for help on using the changeset viewer.