Changeset 1337 for trunk/Configure
- Timestamp:
- Sep 30, 2010, 2:47:17 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/Configure (modified) (24 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Configure
r1195 r1337 19 19 # 20 20 21 # $Id: Configure,v 1.1 24 2009/11/24 13:10:37bmorgan Exp $21 # $Id: Configure,v 1.133 2010/06/24 15:24:11 bmorgan Exp $ 22 22 # 23 # Generated on T ue 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] 24 24 25 25 cat >/tmp/c1$$ <<EOF … … 179 179 g4levelgammadata='' 180 180 g4neutronhpcrosssections='' 181 g4neutronxsdata='' 181 182 g4radioactivedata='' 182 183 g4clhep_base_dir='' … … 333 334 g4vis_build_raytracer_driver='y' 334 335 g4vis_use_raytracer='y' 335 g4vis_build_vrml_driver='y' 336 g4vis_use_vrml='y' 336 g4vis_build_vrmlfile_driver='y' 337 g4vis_use_vrmlfile='y' 338 g4vis_build_vrml_driver='n' 339 g4vis_use_vrml='n' 337 340 g4vis_build_asciitree_driver='y' 338 341 g4vis_use_asciitree='y' … … 2258 2261 # 2259 2262 # 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) 2261 2266 # 2262 2267 if test "x\$with_qt_dir" != "x" ; then 2263 2268 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 2265 2272 \$with_qt_dir/include/Qt 2266 2273 \`ls -dr \$with_qt_dir/include/qt*/QtCore 2>/dev/null\` 2267 2274 \`ls -dr \$with_qt_dir/include/qt*/Qt 2>/dev/null\` 2268 2275 \`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" 2271 2277 2272 2278 # Check for qglobal.h … … 2284 2290 2285 2291 else 2286 # We use standard search paths... 2292 # We use standard search paths, again preferencing Frameworks so that 2293 # these are not missed 2287 2294 qt_direct_test_header="qglobal.h" 2288 2295 … … 2290 2297 \`ls -dr /Library/Frameworks/QtCore.framework/Headers 2>/dev/null\` 2291 2298 \`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\` 2292 2310 /usr/include/QtCore 2293 2311 \`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\` 2295 2313 \`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\` 2297 2315 \`ls -dr /opt/qt*/include/QtCore 2>/dev/null\` 2298 2316 \`ls -dr /usr/qt*/include/QtCore 2>/dev/null\` … … 2305 2323 \`ls -dr /usr/include/qt* 2>/dev/null\` 2306 2324 \`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\` 2308 2326 \`ls -dr /usr/local/qt*/include 2>/dev/null\` 2309 2327 \`ls -dr /opt/qt*/include 2>/dev/null\` … … 2348 2366 g4_qt_include_dir=no 2349 2367 g4_havegoodqt=no 2368 echo "checking for qglobal.h... no" 2369 else 2370 echo "checking for qglobal.h... \$g4_qt_include_dir/qglobal.h" 2350 2371 fi 2351 2352 echo "checking for qglobal.h... \$g4_qt_include_dir/qglobal.h"2353 2372 fi # END TEST with_qt_dir is set 2354 2373 … … 2361 2380 # Immediate and obvious Darwin check... 2362 2381 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 2379 2428 fi 2380 el se2429 elif test "x\$g4_qt_include_dir" != "x" ; then 2381 2430 # Probably have Unix-style installation, in which case estimated 2382 2431 # 'QTDIR' equivalent is $with_qt_dir if supplied, or directory … … 2477 2526 # We don't ever cross-compile Geant4, so must have the native libraries. 2478 2527 # Double check for this craziness... 2479 case `uname -m`in2528 case "`uname -m`" in 2480 2529 i*86) 2481 2530 g4_qt_lib_dir=\$g4_qt_dir/lib … … 2669 2718 g4_qt_is_configured='' 2670 2719 fi 2720 else 2721 #We couldn't find qglobal... 2722 g4_havegoodqt="no" 2671 2723 fi #END TEST for Darwin Framework 2672 2724 … … 3234 3286 g4data_photonevaporation_version='PhotonEvaporation2.0' 3235 3287 g4data_radioactivedecay_version='RadioactiveDecay3.2' 3236 g4data_g4emlow_version='G4EMLOW6. 9'3288 g4data_g4emlow_version='G4EMLOW6.13' 3237 3289 g4data_g4ndl_version='G4NDL3.13' 3238 3290 g4data_g4abla_version='G4ABLA3.0' 3239 3291 g4data_realsurface_version='RealSurface1.0' 3292 g4data_neutronxs_version='G4NEUTRONXS1.0' 3240 3293 #END GEANT4 DATA OPTIONS 3241 3294 echo " " … … 3288 3341 esac 3289 3342 3343 case "$g4neutronxsdata" in 3344 '') 3345 g4neutronxsdata=$g4data/$g4data_neutronxs_version 3346 ;; 3347 esac 3348 3290 3349 3291 3350 # 3292 3351 # Now we have defaults, prompt user to see if this is where they want to use 3293 3352 # 3294 g4data_alllibs="$g4data_photonevaporation_version $g4data_radioactivedecay_version $g4data_g4emlow_version $g4data_g4ndl_version $g4data_g4abla_version $g4data_realsurface_version "3353 g4data_alllibs="$g4data_photonevaporation_version $g4data_radioactivedecay_version $g4data_g4emlow_version $g4data_g4ndl_version $g4data_g4abla_version $g4data_realsurface_version $g4data_neutronxs_version" 3295 3354 3296 3355 g4message=`cat <<EOM … … 3367 3426 $echo "yes" 3368 3427 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 3369 3438 else 3370 3439 $echo "no" … … 3411 3480 g4abladata="$g4data/$g4data_g4abla_version" 3412 3481 g4realsurfacedata="$g4data/$g4data_realsurface_version" 3482 g4neutronxsdata="$g4data/$g4data_neutronxs_version" 3413 3483 3414 3484 … … 3420 3490 3421 3491 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" 3427 3498 3428 3499 else … … 3457 3528 6) $g4data_realsurface_version: 3458 3529 $g4realsurfacedata 3530 7) $g4data_neutronxs_version: 3531 $g4neutronxsdata 3459 3532 3460 3533 Choose a number from the list above to customize that path (e.g. 2) … … 3514 3587 . ./getfile 3515 3588 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 3516 3597 ;; 3517 3598 … … 3570 3651 # Now see if make/gmake are GNU make. 3571 3652 if 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"/'//"` 3573 3654 3574 3655 case $g4_make_version in … … 3585 3666 if test "x$g4osname" != "xWIN32" ; then 3586 3667 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"/'//"` 3588 3669 3589 3670 case $g4_gmake_version in … … 3624 3705 3625 3706 #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"/'//"` 3627 3708 3628 3709 case $g4_user_make_version in … … 5546 5627 if test "X$g4lib_build_gdml" != "Xn"; then 5547 5628 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 5633 You have requested GDML support for Geant4 built on WIN32-VC. 5634 This requires the Xerces-C library built for MSVC. 5635 Please enter the path to the Xerces-C install (i.e. if XercesC is installed 5636 in PATH\include\xercesc, enter PATH), or type '-' to CANCEL the build of the 5637 GDML module. 5638 XercesC path: 5639 EOM` 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 5574 5684 5575 while test "$promptend" = "no"; do5576 g4message=`cat << EOM5577 5578 Autodetection failed to locate XercesC in $xerces loc on your system.5685 while test "$promptend" = "no"; do 5686 g4message=`cat << EOM 5687 5688 Autodetection failed to locate XercesC in $xercescloc on your system. 5579 5689 Please enter the path to your XercesC install (i.e. if XercesC is installed 5580 5690 in PATH/include/xercesc, enter PATH), or type '-' to CANCEL the build of the … … 5583 5693 EOM` 5584 5694 5585 dflt=$g4gdml_xercesc_root5586 fn='d~(-)'5587 rp=$g4message5588 . ./getfile5589 5590 #check for user cancellation5591 if test "X$ans" = "X-"; then5592 g4lib_build_gdml=n5593 g4gdml_xercesc_root=""5594 echo "G4LIB_BUILD_GDML cancelled..."5595 echo " "5596 promptend=yes5597 else5598 if test -r "$ans/include/xercesc"; then5599 g4gdml_xercesc_root=$ans5600 echo "checking for XercesC install... $g4gdml_xercesc_root"5601 echo " "5602 promptend=yes5603 else5604 xercesloc=$ans5605 echo "checking for Xercesc install... no"5606 fi5695 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 5607 5717 fi #END OF USER INPUT CHECKING 5608 done #END OF WHILE LOOP OVER USER INPUT5609 fi #END OF USER INPUT SECTION5610 5611 #5612 # If a filter on g4gdml_xerces_root is needed to remove common system paths5613 # then it should be put here...5614 #5615 if test "x$g4gdml_xercesc_root" = "x/usr" -o "x$g4gdml_xercesc_root" = "x/usr/local" ; then5616 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="" 5617 5727 fi 5618 5728 fi # End outer check of WIN32-VC module cancellation 5619 5729 fi #END XERCES PROBE 5620 5730 … … 5794 5904 g4make='$g4make' 5795 5905 g4neutronhpcrosssections='$g4neutronhpcrosssections' 5906 g4neutronxsdata='$g4neutronxsdata' 5796 5907 g4osname='$g4osname' 5797 5908 g4radioactivedata='$g4radioactivedata'
Note:
See TracChangeset
for help on using the changeset viewer.
