Changeset 921 for trunk/Configure
- Timestamp:
- Feb 16, 2009, 10:14:30 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/Configure (modified) (16 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Configure
r884 r921 19 19 # 20 20 21 # $Id: Configure,v 1.1 07 2008/11/14 15:14:46bmorgan Exp $22 # 23 # Generated on Fri Nov 14 15:14:32GMT 2008 [metaconfig 3.0 PL70]21 # $Id: Configure,v 1.110 2008/12/03 15:34:57 bmorgan Exp $ 22 # 23 # Generated on Wed Dec 3 15:33:49 GMT 2008 [metaconfig 3.0 PL70] 24 24 25 25 cat >/tmp/c1$$ <<EOF … … 1144 1144 awk 1145 1145 cat 1146 echo 1146 1147 expr 1147 1148 grep … … 2303 2304 \`ls -dr /System/Library/Frameworks/QtCore.framework/Headers 2>/dev/null\` 2304 2305 /usr/include/QtCore 2305 \`ls -dr /usr/include/qt*/QtCore 2>/dev/null\` 2306 \`ls -dr /usr/include/qt*/QtCore 2>/dev/null\` 2307 \`ls -dr /usr/local/include/QtCore 2>/dev/null\` 2308 \`ls -dr /usr/local/include/qt*/QtCore 2>/dev/null\` 2309 \`ls -dr /usr/local/qt*/include/QtCore 2>/dev/null\` 2306 2310 \`ls -dr /opt/qt*/include/QtCore 2>/dev/null\` 2307 2311 \`ls -dr /usr/qt*/include/QtCore 2>/dev/null\` … … 2313 2317 /usr/include 2314 2318 \`ls -dr /usr/include/qt* 2>/dev/null\` 2319 \`ls -dr /usr/local/include 2>/dev/null\` 2320 \`ls -dr /usr/local/include/qt* 2>/dev/null\` 2321 \`ls -dr /usr/local/qt*/include 2>/dev/null\` 2315 2322 \`ls -dr /opt/qt*/include 2>/dev/null\` 2316 2323 \`ls -dr /usr/qt*/include 2>/dev/null\` … … 2321 2328 \`ls -dr /sw/qt/*/include 2>/dev/null\` 2322 2329 /usr/include/Qt 2323 \`ls -dr /usr/include/qt*/Qt 2>/dev/null\` 2330 \`ls -dr /usr/include/qt*/Qt 2>/dev/null\` 2331 \`ls -dr /usr/local/include/Qt 2>/dev/null\` 2332 \`ls -dr /usr/local/include/qt*/Qt 2>/dev/null\` 2324 2333 \`ls -dr /opt/qt*/include/Qt 2>/dev/null\` 2325 2334 \`ls -dr /usr/qt*/include/Qt 2>/dev/null\` … … 2592 2601 fi #END TEST "x\$g4_qt_is_configured" = "x" 2593 2602 2594 2595 echo ""2596 echo "DEBUG#####"2597 echo "g4_qt_cxxflags = \$g4_qt_cxxflags"2598 echo "g4_qt_gl_cxxflags = \$g4_qt_gl_cxxflags"2599 echo "g4_qt_libs = \$g4_qt_libs"2600 echo "g4_qt_gl_libs = \$g4_qt_gl_libs"2601 echo "g4_qt_moc = \$g4_qt_moc"2602 echo "..."2603 echo "g4_havegoodqt = \$g4_havegoodqt"2604 echo "g4_qt_is_configured = \$g4_qt_is_configured"2605 echo "##########"2606 2603 EOSC 2607 2604 : decide how portable to be … … 3120 3117 done 3121 3118 3119 g4data_photonevaporation_version='PhotonEvaporation2.0' 3120 g4data_radioactivedecay_version='RadioactiveDecay3.2' 3121 g4data_g4emlow_version='G4EMLOW6.2' 3122 g4data_g4ndl_version='G4NDL3.13' 3123 g4data_g4abla_version='G4ABLA3.0' 3124 #END GEANT4 DATA OPTIONS 3122 3125 echo " " 3123 3126 3127 3128 # 3129 # Set defaults for data paths - here, because we depend on g4install 3130 # 3124 3131 case "$g4data" in 3125 3132 '') … … 3130 3137 case "$g4levelgammadata" in 3131 3138 '') 3132 g4levelgammadata=$g4data/ PhotonEvaporation2.03139 g4levelgammadata=$g4data/$g4data_photonevaporation_version 3133 3140 ;; 3134 3141 esac … … 3136 3143 case "$g4radioactivedata" in 3137 3144 '') 3138 g4radioactivedata=$g4data/ RadioactiveDecay3.23145 g4radioactivedata=$g4data/$g4data_radioactivedecay_version 3139 3146 ;; 3140 3147 esac … … 3142 3149 case "$g4ledata" in 3143 3150 '') 3144 g4ledata=$g4data/ G4EMLOW6.13151 g4ledata=$g4data/$g4data_g4emlow_version 3145 3152 ;; 3146 3153 esac … … 3148 3155 case "$g4neutronhpcrosssections" in 3149 3156 '') 3150 g4neutronhpcrosssections=$g4data/ G4NDL3.123157 g4neutronhpcrosssections=$g4data/$g4data_g4ndl_version 3151 3158 ;; 3152 3159 esac … … 3154 3161 case "$g4abladata" in 3155 3162 '') 3156 g4abladata=$g4data/G4ABLA3.0 3157 ;; 3158 esac 3159 3160 3161 #case "$g4elasticdata" in 3162 #'') 3163 # g4elasticdata=$g4data/G4ELASTIC1.1 3164 # ;; 3165 #esac 3166 3167 ######################################################################### 3168 3169 # while test 1 = 1 ; do 3170 3171 g4message=`cat << EOM 3172 3173 Please, specify default directory where ALL the Geant4 data is installed: 3174 3175 G4LEVELGAMMADATA: $g4levelgammadata 3176 3177 G4RADIOACTIVEDATA: $g4radioactivedata 3178 3179 G4LEDATA: $g4ledata 3180 3181 G4NEUTRONHPDATA: $g4neutronhpcrosssections 3182 3183 G4ABLADATA: $g4abladata 3184 3185 You will be asked about customizing these next. 3186 3187 EOM` 3188 3189 #dflt="NO DEFAULT ANSWER" 3163 g4abladata=$g4data/$g4data_g4abla_version 3164 ;; 3165 esac 3166 3167 3168 # 3169 # Now we have defaults, prompt user to see if this is where they want to use 3170 # 3171 g4data_alllibs="$g4data_photonevaporation_version $g4data_radioactivedecay_version $g4data_g4emlow_version $g4data_g4ndl_version $g4data_g4abla_version" 3172 3173 g4message=`cat <<EOM 3174 Specify the path where are the Geant4 data libraries 3175 3176 $g4data_alllibs 3177 3178 are installed. For now, a flat directory structure is assumed, and this can 3179 be customized at the next step if needed. 3180 EOM` 3181 3190 3182 dflt=$g4data 3191 #fn='d~'3192 rp=$g4message3193 #. ./myread3194 gans=$ans3195 3196 dflt=$g4data3197 fn='d~'3198 . ./getfile3199 3200 if [ X$g4data != X$ans ] ; then3201 g4data=$ans3202 3203 g4levelgammadata=$g4data/PhotonEvaporation2.03204 g4radioactivedata=$g4data/RadioactiveDecay3.23205 g4ledata=$g4data/G4EMLOW6.13206 g4neutronhpcrosssections=$g4data/G4NDL3.123207 g4abladata=$g4data/G4ABLA3.03208 # g4elasticdata=$g4data/G4ELASTIC1.13209 fi3210 # done3211 3212 ###################################################################3213 3214 while test 1 = 1 ; do3215 3216 g4message=`cat << EOM3217 3218 Please, specify default directory where the Geant4 data is installed:3219 3220 1) G4LEVELGAMMADATA: $g4levelgammadata3221 3222 2) G4RADIOACTIVEDATA: $g4radioactivedata3223 3224 3) G4LEDATA: $g4ledata3225 3226 4) G4NEUTRONHPDATA: $g4neutronhpcrosssections3227 3228 5) G4ABLADATA: $g4abladata3229 3230 To modify default settings, select number above (e.g. 2)3231 EOM`3232 3233 #dflt="NO DEFAULT ANSWER"3234 dflt="Press [Enter] for default settings"3235 #fn='d~'3236 3183 rp=$g4message 3237 3184 . ./myread 3238 gans=$ans 3239 3185 g4data=$ans 3186 3187 # 3188 # Using this, we can now check that the libs exist, but only on a directory 3189 # level 3190 # 3191 g4data_foundall='yes' 3192 promptend="no" 3193 g4data_customize="no" 3194 3195 while test "x$promptend" = "xno" ; do 3196 ### PhotonEvaporation 3197 $echo $n "checking for $g4data_photonevaporation_version... $c" 3198 if test -d "$g4data/$g4data_photonevaporation_version" ; then 3199 $echo "yes" 3200 g4levelgammadata=$g4data/$g4data_photonevaporation_version 3201 else 3202 $echo "no" 3203 g4data_foundall="no" 3204 fi 3205 3206 ### RadioactiveDecay 3207 $echo $n "checking for $g4data_radioactivedecay_version... $c" 3208 if test -d "$g4data/$g4data_radioactivedecay_version" ; then 3209 $echo "yes" 3210 g4radioactivedata=$g4data/$g4data_radioactivedecay_version 3211 else 3212 $echo "no" 3213 g4data_foundall="no" 3214 fi 3215 3216 ### G4EMLOW 3217 $echo $n "checking for $g4data_g4emlow_version... $c" 3218 if test -d "$g4data/$g4data_g4emlow_version" ; then 3219 $echo "yes" 3220 g4ledata=$g4data/$g4data_emlow_version 3221 else 3222 $echo "no" 3223 g4data_foundall="no" 3224 fi 3225 3226 ### G4NDL 3227 $echo $n "checking for $g4data_g4ndl_version... $c" 3228 if test -d "$g4data/$g4data_g4ndl_version" ; then 3229 $echo "yes" 3230 g4neutronhpcrosssections=$g4data/$g4data_g4ndl_version 3231 else 3232 $echo "no" 3233 g4data_foundall="no" 3234 fi 3235 3236 ### G4ABLA 3237 $echo $n "checking for $g4data_g4abla_version... $c" 3238 if test -d "$g4data/$g4data_g4abla_version" ; then 3239 $echo "yes" 3240 g4levelgammadata=$g4data/$g4data_g4abla_version 3241 else 3242 $echo "no" 3243 g4data_foundall="no" 3244 fi 3245 3246 # 3247 # If we haven't found all the data, query the user as to whether they 3248 # want to 3249 # 1) try again with a different path 3250 # 2) use the path they input 3251 # 3) customize paths 3252 # 3253 if test "x$g4data_foundall" = "xyes" ; then 3254 promptend=yes 3255 else 3256 g4message=`cat << EOM 3257 3258 Failed to locate one or more of the Geant4 data libraries in 3259 3260 $g4data 3261 3262 Please enter 3263 1) Another path to search in 3264 2) 'f' to force the use of the path you entered previously (the data libraries 3265 are not needed to build Geant4, but are needed to run applications later). 3266 3) 'c' to customize the data paths, e.g. if you have the data libraries 3267 installed in different locations. 3268 EOM` 3269 dflt="f" 3270 rp=$g4message 3271 . ./myread 3272 gans=$ans 3273 3274 if test "x$gans" = "xf" ; then 3275 # Force paths 3276 promptend="yes" 3277 g4levelgammadata="$g4data/$g4data_photonevaporation_version" 3278 g4radioactivedata="$g4data/$g4data_radioactivedecay_version" 3279 g4ledata="$g4data/$g4data_g4emlow_version" 3280 g4neutronhpcrosssections="$g4data/$g4data_g4ndl_version" 3281 g4abladata="$g4data/$g4data_g4abla_version" 3282 3283 3284 elif test "x$gans" = "xc" ; then 3285 # enable customization - we use input g4data to set 3286 # defaults 3287 promptend="yes" 3288 g4data_customize="yes" 3289 3290 g4levelgammadata="$g4data/$g4data_photonevaporation_version" 3291 g4radioactivedata="$g4data/$g4data_radioactivedecay_version" 3292 g4ledata="$g4data/$g4data_g4emlow_version" 3293 g4neutronhpcrosssections="$g4data/$g4data_g4ndl_version" 3294 g4abladata="$g4data/$g4data_g4abla_version" 3295 3296 3297 else 3298 #try again 3299 g4data=$gans 3300 fi 3301 fi 3302 done 3303 3304 3305 # 3306 # Now customize paths if required 3307 # 3308 if test "x$g4data_customize" = "xyes" ; then 3309 while test "x" = "x" ; do 3310 3311 g4message=`cat <<EOM 3312 3313 You have chosen to customize the Geant4 data library paths. 3314 3315 1) $g4data_photonevaporation_version: 3316 $g4levelgammadata 3317 2) $g4data_radioactivedecay_version: 3318 $g4radioactivedata 3319 3) $g4data_g4emlow_version: 3320 $g4ledata 3321 4) $g4data_g4ndl_version: 3322 $g4neutronhpcrosssections 3323 5) $g4data_g4abla_version: 3324 $g4abladata 3325 3326 Choose a number from the list above to customize that path (e.g. 2) 3327 EOM` 3328 3329 dflt="Press [Enter] to exit customization with paths as above" 3330 rp=$g4message 3331 . ./myread 3332 gans=$ans 3240 3333 3241 3334 case $gans in 3242 3335 3243 1)3336 "1") 3244 3337 dflt=$g4levelgammadata 3245 3338 fn='d~' 3246 rp=" Where is Geant4 PhotonEvaporation2.0 data installed?"3339 rp="Custom path to $g4data_photonevaporation_version?" 3247 3340 . ./getfile 3248 3341 g4levelgammadata=$ans 3249 3342 ;; 3250 2) 3343 3344 "2") 3251 3345 dflt=$g4radioactivedata 3252 3346 fn='d~' 3253 rp=" Where is Geant4 RadioactiveDecay3.2 data installed?"3347 rp="Custom path to $g4data_radioactivedecay_version?" 3254 3348 . ./getfile 3255 3349 g4radioactivedata=$ans 3256 3350 ;; 3257 3) 3351 3352 "3") 3258 3353 dflt=$g4ledata 3259 3354 fn='d~' 3260 rp=" Where is G4EMLOW6.1 data installed?"3355 rp="Custom path to $g4data_g4emlow_version?" 3261 3356 . ./getfile 3262 3357 g4ledata=$ans 3263 3358 ;; 3264 4) 3359 3360 "4") 3265 3361 dflt=$g4neutronhpcrosssections 3266 3362 fn='d~' 3267 rp=" Where is G4NDL3.12 data installed?"3363 rp="Custom path to $g4data_g4ndl_version?" 3268 3364 . ./getfile 3269 3365 g4neutronhpcrosssections=$ans 3270 3366 ;; 3271 3367 3272 5)3368 "5") 3273 3369 dflt=$g4abladata 3274 3370 fn='d~' 3275 rp=" Where is G4ABLA3.0 data installed?"3371 rp="Custom path to $g4data_g4abla_version?" 3276 3372 . ./getfile 3277 3373 g4abladata=$ans 3278 3374 ;; 3279 3375 3280 # 5) 3281 # dflt=$g4elasticdata 3282 # fn='d~' 3283 # rp="Where is G4ELASTIC1.1 data installed?" 3284 # . ./getfile 3285 # g4elasticdata=$ans 3286 # ;; 3287 3288 # [eE]) 3289 # break 3290 # ;; 3291 *) 3376 *) 3292 3377 break 3293 # echo " " 3294 ;; 3378 ;; 3379 3295 3380 esac 3381 3296 3382 done 3383 fi 3384 3385 3386 3297 3387 3298 3388 … … 4355 4445 4356 4446 if test "X$g4osname" = "XLinux" ; then 4357 g4ui_xawflags=" -I$g4ui_xawhome/include " 4358 if test "X$g4ui_xawhome" = "X/usr/X11R6" ; then 4447 if test "X$g4ui_xawhome" = "X" ; then 4448 g4ui_xawflags="" 4449 else 4450 g4ui_xawflags=" -I$g4ui_xawhome/include " 4451 fi 4452 4453 if test "X$g4ui_xawhome" = "X/usr/X11R6" -o "X$g4ui_xawhome" = "X" ; then 4359 4454 g4ui_xawlibs=" -lXaw " 4360 4455 else 4361 g4ui_xawlibs=" -L$g4ui_xawhome/lib -lXaw " 4456 if test -d "$g4ui_xawhome/lib64" ; then 4457 g4ui_xawlibs=" -L$g4ui_xawhome/lib64 -lXaw " 4458 else 4459 g4ui_xawlibs=" -L$g4ui_xawhome/lib -lXaw " 4460 fi 4362 4461 fi 4363 4462 fi … … 4558 4657 4559 4658 if test "X$g4osname" = "XLinux"; then 4560 4561 if test "X$g4vis_xmhome" = "X/usr" -o "X$g4vis_xmhome" = "X/usr/local" ; then 4562 g4vis_xmhome="" 4563 fi 4659 if test "X$g4vis_xmhome" = "X/usr" -o "X$g4vis_xmhome" = "X/usr/local" ; then 4660 g4vis_xmhome="" 4661 fi 4564 4662 fi 4565 4663 fi # g4vis_build_opheglxm_driver … … 4577 4675 4578 4676 if test "X$g4osname" = "XLinux" ; then 4579 g4vis_xmflags=" -I$g4vis_xmhome/include " 4580 if test "X$g4vis_xmhome" = "X/usr/X11R6" ; then 4677 if test "X$g4vis_xmhome" = "X" ; then 4678 g4vis_xmflags="" 4679 else 4680 g4vis_xmflags=" -I$g4vis_xmhome/include " 4681 fi 4682 4683 if test "X$g4vis_xmhome" = "X/usr/X11R6" -o "X$g4vis_xmhome" = "X" ; then 4581 4684 g4vis_xmlibs=" -lXm -lXpm " 4582 4685 else 4583 g4vis_xmlibs=" -L$g4vis_xmhome/lib -lXm -lXpm " 4686 if test -d "$g4vis_xmhome/lib64" ; then 4687 g4vis_xmlibs=" -L$g4vis_xmhome/lib64 -lXm -lXpm " 4688 else 4689 g4vis_xmlibs=" -L$g4vis_xmhome/lib -lXm -lXpm " 4690 fi 4584 4691 fi 4585 4692 fi … … 5180 5287 5181 5288 if test "X$g4osname" = "XLinux" ; then 5182 g4vis_xmflags=" -I$g4vis_xmhome/include " 5183 if test "X$g4vis_xmhome" = "X/usr/X11R6" ; then 5289 if test "X$g4vis_xmhome" = "X" ; then 5290 g4vis_xmflags="" 5291 else 5292 g4vis_xmflags=" -I$g4vis_xmhome/include " 5293 fi 5294 5295 if test "X$g4vis_xmhome" = "X/usr/X11R6" -o "X$g4vis_xmhome" = "X" ; then 5184 5296 g4vis_xmlibs=" -lXm -lXpm " 5185 5297 else 5186 g4vis_xmlibs=" -L$g4vis_xmhome/lib -lXm -lXpm " 5298 if test -d "$g4vis_xmhome/lib64" ; then 5299 g4vis_xmlibs=" -L$g4vis_xmhome/lib64 -lXm -lXpm " 5300 else 5301 g4vis_xmlibs=" -L$g4vis_xmhome/lib -lXm -lXpm " 5302 fi 5187 5303 fi 5188 5304 fi
Note:
See TracChangeset
for help on using the changeset viewer.
