- Timestamp:
- Nov 25, 2009, 5:02:54 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Configure
r1056 r1195 19 19 # 20 20 21 # $Id: Configure,v 1.1 16 2009/05/26 17:37:44bmorgan Exp $21 # $Id: Configure,v 1.124 2009/11/24 13:10:37 bmorgan Exp $ 22 22 # 23 # Generated on Tue May 26 18:39:05 BST 2009 [metaconfig 3.0 PL70]23 # Generated on Tue Nov 24 13:09:42 GMT 2009 [metaconfig 3.0 PL70] 24 24 25 25 cat >/tmp/c1$$ <<EOF … … 247 247 g4gdml_xercesc_root='' 248 248 g4lib_build_gdml='' 249 g4wanalysis_build=''250 g4wanalysis_build_jas=''251 g4wanalysis_build_lab=''252 g4wanalysis_build_lizard=''253 g4wanalysis_use=''254 g4wanalysis_use_jas=''255 g4wanalysis_use_lab=''256 g4wanalysis_use_lizard=''257 249 g4_gmake='' 258 250 g4_gmake_version='' … … 291 283 fi 292 284 285 #INITIALIZE LIBRARY BUILD OPTIONS 286 g4lib_build_shared='y' 287 g4lib_use_shared='y' 288 g4lib_build_static='n' 289 g4lib_use_static='n' 290 g4lib_build_dll='n' 291 g4lib_build_dyn='n' 292 #INITIALIZE GLOBAL/GRANULAR LIBRARY OPTIONS 293 g4global='y' 294 g4granular='n' 295 g4lib_use_granular='n' 296 #INITIALIZE DEBUGGING OPTIONS 297 g4debug='n' 293 298 #INITIALIZE QT UI OPTIONS 294 g4ui_build_qt_session='n' 295 g4ui_use_qt='n' 296 g4_qthome='' 297 #END QT UI OPTIONS 299 g4ui_none='n' 300 g4ui_build_terminal_session='y' 301 g4ui_use_terminal='y' 302 g4ui_build_gag_session='y' 303 g4ui_use_gag='y' 304 g4ui_build_xm_session='n' 305 g4ui_use_xm='n' 306 g4ui_build_xaw_session='n' 307 g4ui_use_xaw='n' 308 g4ui_build_win32_session='n' 309 g4ui_use_win32='n' 310 g4ui_use_tcsh='y' 298 311 #INITIALIZE QT UI OPTIONS 299 312 g4ui_build_qt_session='n' 300 313 g4ui_use_qt='n' 301 314 #END QT UI OPTIONS 315 #INITIALIZE VIS DRIVER OPTIONS 316 g4vis_none='n' 317 g4vis_build_openglwin32_driver='n' 318 g4vis_use_openglwin32='n' 319 g4vis_build_oiwin32_driver='n' 320 g4vis_use_oiwin32='n' 321 g4vis_build_dawn_driver='n' 322 g4vis_use_dawn='n' 323 g4vis_build_dawnfile_driver='y' 324 g4vis_use_dawnfile='y' 325 g4vis_build_openglx_driver='n' 326 g4vis_use_openglx='n' 327 g4vis_build_openglxm_driver='n' 328 g4vis_use_openglxm='n' 329 g4vis_build_oix_driver='n' 330 g4vis_use_oix='n' 331 g4vis_build_raytracerx_driver='n' 332 g4vis_use_raytracerx='n' 333 g4vis_build_raytracer_driver='y' 334 g4vis_use_raytracer='y' 335 g4vis_build_vrml_driver='y' 336 g4vis_use_vrml='y' 337 g4vis_build_asciitree_driver='y' 338 g4vis_use_asciitree='y' 339 g4vis_build_gagtree_driver='y' 340 g4vis_use_gagtree='y' 302 341 #INITIALIZE QT VIS DRIVER OPTIONS 303 342 g4vis_build_openglqt_driver='n' 304 343 g4vis_use_openglqt='n' 305 344 #END QT VIS DRIVER OPTIONS 345 #INITIALIZE GDML OPTIONS 346 g4lib_build_gdml='n' 306 347 #INITIALIZE G4MAKE 307 348 g4make="" 308 349 #END G4MAKE INITIALIZATION 350 #INITIALIZE G3TOG4 OPTIONS 351 g4wlib_build_g3tog4='n' 352 g4wlib_use_g3tog4='n' 353 #INITIALIZE BUILTIN ZLIB OPTIONS 354 g4wlib_build_zlib='n' 355 g4w_use_zlib='n' 309 356 310 357 : Find the basic shell for Bourne shell scripts … … 496 543 -e) shift; alldone=cont;; 497 544 -build) shift; g4build=yes;; 498 -incflags) shift; g4incflags=yes;; 545 -incflags) 546 shift 547 g4incflags=yes 548 g4query_conf=yes;; 499 549 -install) shift; install=yes;; 500 -cppflags) shift; g4cppflags=yes;; 501 -cxxflags) shift; g4cxxflags=yes;; 502 -ldlibs) shift; g4ldlibs=yes;; 503 -ldflags) shift; g4ldflags=yes;; 550 -cppflags) 551 shift 552 g4query_conf=yes 553 g4cppflags=yes;; 554 -cxxflags) 555 shift 556 g4query_conf=yes 557 g4cxxflags=yes;; 558 -ldlibs) 559 shift 560 g4query_conf=yes 561 g4ldlibs=yes;; 562 -ldflags) 563 shift 564 g4query_conf=yes 565 g4ldflags=yes;; 504 566 -f) 505 567 shift … … 589 651 : Sanity checks 590 652 case "$fastread$alldone" in 591 yescont |yesexit) ;;653 yescontyes|yesexityes) ;; 592 654 *) 593 if test ! -t 0; then 655 if test "x$g4query_conf" != "xyes" ; then 656 if test ! -t 0; then 594 657 echo "Say 'sh Configure', not 'sh <Configure'" 595 658 exit 1 659 fi 596 660 fi 597 661 ;; … … 956 1020 #echo " " 957 1021 : Here we go... 958 #if [ X$install = Xyes ] ; then959 #echo " "960 #echo " "961 #echo " "962 #echo " --- Geant4 Toolkit Installation ---"963 #echo " "964 #echo " "965 #echo " "966 #echo " "967 #else968 #echo " "969 #echo " "970 #echo " "971 #echo " --- Geant4 Toolkit Installation ---"972 #echo " (setting environments for USER )"973 #echo " "974 #echo " "975 #echo " "976 #fi977 1022 978 1023 trap 'echo " ";rm -rf ../../.config/UU; test -d ../../.config/UU && rm -rf X $rmlist; exit 1' 1 2 3 15 … … 995 1040 esac 996 1041 997 #if [ X$install = Xyes ] ; then998 #999 #echo " "1000 #echo " "1001 #echo " "1002 #echo " --- Geant4 Toolkit Installation ---"1003 #echo " "1004 #echo " "1005 #echo " "1006 #echo " "1007 #1008 ##if $contains "^$user\$" ../../.config/instruct >/dev/null 2>&1; then1009 ## firsttime=false1010 ## echo " "1011 ## rp='Would you like to see the instructions?'1012 ## dflt=n1013 ## . ./myread1014 ## case "$ans" in1015 ## [yY]*) ;;1016 ## *) needman=false;;1017 ## esac1018 ##fi1019 #fi1020 1021 1042 if [ X$g4build = Xyes ] ; then 1022 1043 1023 echo " "1024 echo " "1025 1044 echo " " 1026 1045 echo " --- Geant4 Toolkit Build ---" 1027 1046 echo " " 1028 echo " "1029 echo " "1030 echo " "1031 1047 1032 1048 if $contains "^$user\$" ../../.config/instruct >/dev/null 2>&1; then 1033 1049 firsttime=false 1034 echo " "1035 1050 rp='Would you like to see the instructions?' 1036 1051 dflt=n … … 1714 1729 ;; 1715 1730 *2.96*) 1716 echo "WARNING: Found version of 'g++'(2.96.XXX) is known to be buggy!"1731 echo "WARNING: Found version of g++ (2.96.XXX) is known to be buggy!" 1717 1732 g4compiler="g++" 1718 1733 ;; … … 1730 1745 'WIN32') 1731 1746 g4compiler=VC 1732 clcompiler=`( cl 1>/dev/null || echo "ERROR: There is no 'cl'compiler.") 2>&1`1747 clcompiler=`( cl 1>/dev/null || echo "ERROR: There is no cl compiler.") 2>&1` 1733 1748 case $clcompiler in 1734 1749 *"Version 12"*) g4compiler=VC6 … … 1804 1819 if test X$tans != X$g4osnamerec ; then 1805 1820 echo "" 1806 1807 cat << EOM 1808 1809 You are running 'Configure' on NOT native platform! 1810 You are on your own way !!! 1811 1812 EOM 1821 echo "You are configuring Geant4 for a different platform to the native system!" 1822 echo "You are on your own!!!" 1813 1823 1814 1824 dflt=$tans … … 1853 1863 1854 1864 if test X$tans != X$g4compilerrec ; then 1855 echo "" 1856 1857 cat << EOM 1858 1859 The recommmended compiler for this platform ($g4osname) is $g4compilerrec. 1860 You are on your own way !!! 1861 1862 EOM 1865 echo " " 1866 echo "The recommmended compiler for this platform ($g4osname) is $g4compilerrec." 1867 echo "Use of $tans on $g4osname is not supported - you are on your own!" 1868 1863 1869 1864 1870 dflt=$tans … … 1870 1876 g4compiler=$tans 1871 1877 ;; 1872 # [eE])1873 # break1874 # ;;1875 1878 *) 1876 # echo " "1877 1879 break 1878 1880 ;; … … 1888 1890 1889 1891 fi 1890 1891 #cat << EOM1892 #1893 #G4SYSTEM is now set to $g4system.1894 #1895 #EOM1896 1892 1897 1893 cd .config/UU … … 2094 2090 # header for User 2095 2091 echo " " 2096 echo " "2097 echo " "2098 2092 echo " --- Geant4 Toolkit Installation ---" 2099 2093 echo " (setting environments for USER )" 2100 2094 echo " " 2101 echo " "2102 echo " "2103 2104 #cat << EOM2105 #2106 #G4SYSTEM is now set to $g4system.2107 #2108 #EOM2109 2095 2110 2096 cat >&2 <<EOM … … 2137 2123 # header for Installer 2138 2124 echo " " 2139 echo " "2140 echo " "2141 2125 echo " --- Geant4 Toolkit Installation ---" 2142 echo " "2143 echo " "2144 echo " "2145 2126 echo " " 2146 2127 … … 2492 2473 # 2493 2474 if test -d "\$g4_qt_dir/lib64" ; then 2494 g4_qt_lib_dir=\$g4_qt_dir/lib64 2475 # Damn, this doesn't guarantee we're on a 64bit system, some distros/packages 2476 # will have a lib64 dir even on an i*86 machine... 2477 # We don't ever cross-compile Geant4, so must have the native libraries. 2478 # Double check for this craziness... 2479 case `uname -m` in 2480 i*86) 2481 g4_qt_lib_dir=\$g4_qt_dir/lib 2482 ;; 2483 *) 2484 g4_qt_lib_dir=\$g4_qt_dir/lib64 2485 ;; 2486 esac 2495 2487 else 2496 2488 g4_qt_lib_dir=\$g4_qt_dir/lib … … 2580 2572 $echo $n "Checking \$g4_qtmoc major version is \$g4_qt_major_ver... $c" 2581 2573 # Grab version of found moc 2582 g4_qt_found_moc_major_version=\`\$g4_qtmoc -v 2>&1 | sed -s's/^.*(Qt \([0-9]\)\..*/\1/'\`2574 g4_qt_found_moc_major_version=\`\$g4_qtmoc -v 2>&1 | sed 's/^.*(Qt \([0-9]\)\..*/\1/'\` 2583 2575 if test "x\$g4_qt_found_moc_major_version" != "x\$g4_qt_major_ver" ; then 2584 2576 # We need to ask the user where correct moc is … … 2608 2600 user_moc="\$ans" 2609 2601 if test -x "\$user_moc" ; then 2610 g4_qt_found_moc_major_version=\`\$user_moc -v 2>&1 | sed -s's/^.*(Qt \([0-9]\)\..*/\1/'\`2602 g4_qt_found_moc_major_version=\`\$user_moc -v 2>&1 | sed 's/^.*(Qt \([0-9]\)\..*/\1/'\` 2611 2603 if test "x\$g4_qt_found_moc_major_version" != "x\$g4_qt_major_ver" ; then 2612 2604 echo "Checking if \$user_moc version is \$g4_qt_major_ver... no" … … 2975 2967 2976 2968 echo " " 2977 2978 #echo "SSS" 2979 #echo `pwd` 2980 #echo "SSS" 2969 echo "*OPTIONS FOR GEANT4 INSTALLATION PATHS*" 2981 2970 2982 2971 if [ X$src = X. ] ; then … … 2994 2983 esac 2995 2984 2996 #echo "g4conf=$g4conf"2997 2985 2998 2986 case "$g4install" in 2999 2987 '') 3000 if test $g4system = "WIN32-VC" -o $g4system = "WIN32-VC7"; then 3001 # g4install="c:/geant4" 3002 g4install=$abssrc 3003 else 3004 # if [ X"$HOME" = X/ ] ; then 3005 # HOME="" 3006 # fi 3007 # g4install="$HOME"/geant4 3008 g4install=$abssrc 3009 3010 fi 3011 3012 # Check for Windows! 3013 if test $g4system = "WIN32-VC" -o $g4system = "WIN32-VC7"; then 3014 3015 checkdrive=`echo $g4install|cut -d"/" -f2` 3016 3017 if test $checkdrive = "cygdrive"; then 3018 3019 windrive=`echo $g4install|cut -d"/" -f3` 3020 winpath=`echo $g4install|cut -d"/" -f4-` 3021 3022 fullwinpath="$windrive:/$winpath" 3023 g4install=$fullwinpath 3024 3025 fi 3026 fi 2988 if test $g4system = "WIN32-VC" -o $g4system = "WIN32-VC7"; then 2989 g4install=$abssrc 2990 else 2991 g4install=$abssrc 2992 fi 2993 2994 # Check for Windows! 2995 if test $g4system = "WIN32-VC" -o $g4system = "WIN32-VC7"; then 2996 checkdrive=`echo $g4install|cut -d"/" -f2` 2997 2998 if test $checkdrive = "cygdrive"; then 2999 windrive=`echo $g4install|cut -d"/" -f3` 3000 winpath=`echo $g4install|cut -d"/" -f4-` 3001 fullwinpath="$windrive:/$winpath" 3002 g4install=$fullwinpath 3003 fi 3004 fi 3027 3005 ;; 3028 3006 esac … … 3047 3025 3048 3026 3049 g4message=`cat << EOM 3050 3051 Where is Geant4 source installed? 3052 EOM` 3053 3054 #dflt="NO DEFAULT ANSWER" 3027 g4message="What is the path to the Geant4 source tree?" 3055 3028 dflt=$g4install 3056 3029 fn='d~' … … 3059 3032 g4install=$ans 3060 3033 g4workdir=$g4install 3034 3061 3035 ################################# 3062 g4message=`cat << EOM 3063 3064 Specify the path where Geant4 libraries and source files should be 3065 installed. 3066 EOM` 3067 3068 #dflt="NO DEFAULT ANSWER" 3036 echo " " 3037 g4message="Where should Geant4 be installed?" 3069 3038 dflt=$g4final_install 3070 3039 fn='d~' … … 3072 3041 . ./getfile 3073 3042 g4final_install=$ans 3074 #g4workdir=$g4install3075 3043 3076 3044 ################################## 3077 g4message=`cat << EOM 3078 3079 Do you want to copy all Geant4 headers 3080 in one directory? 3081 EOM` 3082 3083 #dflt="NO DEFAULT ANSWER" 3045 echo " " 3046 g4message="Do you want to install all Geant4 headers in one directory?" 3084 3047 dflt=$g4includes_flag 3085 #fn='d~'3086 3048 rp=$g4message 3087 3049 . ./myread … … 3089 3051 3090 3052 if [ X$g4includes_flag = Xy ] ; then 3091 3092 case "$g4include" in 3093 '') 3094 g4include=$g4install/include 3095 # g4include='' 3096 ;; 3097 esac 3098 3099 #g4message=`cat << EOM 3100 # 3101 #Where will be directory to copy all Geant4 headers? 3102 #EOM` 3103 # 3104 ##dflt="NO DEFAULT ANSWER" 3105 ####dflt=$g4install/include 3106 #dflt=$g4include 3107 #fn='d~+' 3108 #rp=$g4message 3109 #. ./getfile 3110 #g4include=$ans 3111 3112 # Set constantly! 3113 if [ X$g4install != X$g4final_install ] ; then 3114 g4include=$g4final_install/include/geant4 3115 else 3116 g4include=$g4final_install/include 3117 fi 3118 3119 fi 3120 3121 #if test "X$g4include" = "X[NOT DEFINED]" ; then 3122 #g4include="" 3123 #fi 3053 case "$g4include" in 3054 '') 3055 g4include=$g4install/include 3056 ;; 3057 esac 3058 3059 # Set constantly! 3060 if [ X$g4install != X$g4final_install ] ; then 3061 g4include=$g4final_install/include/geant4 3062 else 3063 g4include=$g4final_install/include 3064 fi 3065 fi 3066 3124 3067 3125 3068 echo " " 3126 3127 case "$g4tmp" in 3128 '') 3129 g4tmp=$g4workdir/tmp 3130 ;; 3131 esac 3132 3133 case "$g4lib" in 3134 '') 3135 g4lib=$g4workdir/lib 3136 ;; 3137 esac 3138 3139 #case "$g4bin" in 3140 #'') 3141 # g4bin=$g4workdir/bin 3142 # ;; 3143 #esac 3144 3145 while test 1 = 0 ; do 3146 3147 g4message=`cat << EOM 3148 3149 (OPTIONAL) You can now customise installation directories: 3150 G4TMP - tmp/ containing temporary dependency (.d) and object (.o) files; 3151 G4LIB - lib/ containing final static (.a) or shared (.so) libraries; 3152 3153 1) G4TMP: $g4tmp 3154 3155 2) G4LIB: $g4lib 3156 3157 To modify default settings, select number above (e.g. 2) 3158 EOM` 3159 3160 #dflt="NO DEFAULT ANSWER" 3161 dflt="Press [Enter] for default settings" 3162 #fn='d~' 3069 echo "*GEANT4 LIBRARY BUILD OPTIONS*" 3070 3071 if test "X$g4system" = "XWIN32-VC" -o "X$g4system" = "XWIN32-VC7"; then 3072 while test 1 = 1 ; do 3073 g4message="Do you want to build DLL (.dll) libraries?" 3074 dflt=$g4lib_build_dll 3075 rp=$g4message 3076 . ./myread 3077 gans=$ans 3078 3079 case $gans in 3080 n*|N*) 3081 g4lib_build_dll=n 3082 g4lib_build_shared=n 3083 g4lib_build_static=y 3084 break 3085 ;; 3086 y*|Y*) 3087 g4lib_build_dll=y 3088 g4lib_build_shared=n 3089 g4lib_build_static=n 3090 break 3091 ;; 3092 esac 3093 done 3094 fi 3095 3096 if test "X$g4system" != "XWIN32-VC" -a "X$g4system" != "XWIN32-VC7" ; then 3097 while test 1 = 1 ; do 3098 g4message="Do you want to build shared libraries?" 3099 dflt=$g4lib_build_shared 3100 rp=$g4message 3101 . ./myread 3102 gans=$ans 3103 3104 case $gans in 3105 n*|N*) 3106 g4lib_build_shared=n 3107 g4lib_build_static=y 3108 break 3109 ;; 3110 y*|Y*) 3111 g4lib_build_shared=y 3112 break 3113 ;; 3114 esac 3115 done 3116 3117 if [ X$g4lib_build_shared = Xy ] ; then 3118 # 3119 # Ask about g4lib_build_static - default "n". 3120 # 3121 while test 1 = 1 ; do 3122 g4message="Do you want to build static libraries too?" 3123 dflt=n 3124 rp=$g4message 3125 . ./myread 3126 gans=$ans 3127 3128 case $gans in 3129 n*|N*) 3130 g4lib_build_static=n 3131 break 3132 ;; 3133 y*|Y*) 3134 g4lib_build_static=y 3135 break 3136 ;; 3137 esac 3138 done 3139 fi 3140 fi # if !Win 3141 3142 3143 3144 if test \( \( "X$g4system" = "XWIN32-VC" -o "X$g4system" = "XWIN32-VC7" \) -a "X$g4lib_build_dll" = "Xy" \) -o \( "X$g4system" = "XDarwin-g++" -a "X$g4lib_build_dyn" = "Xy" \) ; then 3145 3146 g4global=n 3147 g4granular=n 3148 g4lib_use_granular=n 3149 3150 fi 3151 3152 if test \( "X$g4system" != "XWIN32-VC" -a "X$g4system" != "XWIN32-VC7" -a "X$g4system" != "XDarwin-g++" \) -o \( \( "X$g4system" = "XWIN32-VC" -o "X$g4system" = "XWIN32-VC7" \) -a "X$g4lib_build_dll" = "Xn" \) -o \( "X$g4system" = "XDarwin-g++" -a "X$g4lib_build_dyn" = "Xn" \) ; then 3153 # 3154 # Ask about g4global - default "(empty)". 3155 # 3156 g4message="Do you want to build global libraries?" 3157 dflt=$g4global 3158 rp=$g4message 3159 . ./myread 3160 gans=$ans 3161 3162 case $gans in 3163 n*|N*) 3164 g4global=n 3165 g4granular=y 3166 g4lib_use_granular=y 3167 ;; 3168 y*|Y*) 3169 g4global=y 3170 g4granular=n 3171 g4lib_use_granular=n 3172 ;; 3173 esac 3174 3175 if [ X$g4global = Xy ] ; then 3176 # 3177 # Ask about g4granular - default "n". 3178 # 3179 g4message="Do you want to build granular libraries as well?" 3180 dflt=$g4granular 3181 rp=$g4message 3182 . ./myread 3183 gans=$ans 3184 3185 case $gans in 3186 n*|N*) 3187 g4granular=n 3188 ;; 3189 y*|Y*) 3190 g4granular=y 3191 ;; 3192 esac 3193 3194 if [ X$g4granular = Xy ] ; then 3195 # 3196 # Ask about g4lib_use_granular - default "n". 3197 # 3198 g4message="Do you want to use granular libraries in your applications?" 3199 dflt=$g4lib_use_granular 3200 rp=$g4message 3201 . ./myread 3202 gans=$ans 3203 3204 case $gans in 3205 n*|N*) 3206 g4lib_use_granular=n 3207 ;; 3208 y*|Y*) 3209 g4lib_use_granular=y 3210 ;; 3211 esac 3212 fi 3213 fi 3214 fi # !Win 3215 3216 ### End file - without will be problem! Check in others... 3217 3218 3219 g4message="Do you want to build libraries with debugging information?" 3220 dflt=$g4debug 3163 3221 rp=$g4message 3164 3222 . ./myread 3165 3223 gans=$ans 3166 3224 3167 3168 case $gans in 3169 3170 1) 3171 dflt=$g4tmp 3172 fn='d~+' 3173 rp="Where will be your Geant4 tmp directory?" 3174 . ./getfile 3175 g4tmp=$ans 3176 ;; 3177 2) 3178 dflt=$g4lib 3179 fn='d~+' 3180 rp="Where will be your Geant4 lib directory?" 3181 . ./getfile 3182 g4lib=$ans 3183 ;; 3184 # 3) 3185 # dflt=$g4bin 3186 # fn='d~+' 3187 # rp="Where will be your Geant4 bin directory?" 3188 # . ./getfile 3189 # g4bin=$ans 3190 # ;; 3191 3192 # [eE]) 3193 # break 3194 # ;; 3195 *) 3196 break 3197 # echo " " 3198 ;; 3199 esac 3200 done 3225 case $gans in 3226 n*|N*) 3227 g4debug=n 3228 ;; 3229 y*|Y*) 3230 g4debug=y 3231 ;; 3232 esac 3201 3233 3202 3234 g4data_photonevaporation_version='PhotonEvaporation2.0' 3203 3235 g4data_radioactivedecay_version='RadioactiveDecay3.2' 3204 g4data_g4emlow_version='G4EMLOW6. 2'3236 g4data_g4emlow_version='G4EMLOW6.9' 3205 3237 g4data_g4ndl_version='G4NDL3.13' 3206 3238 g4data_g4abla_version='G4ABLA3.0' 3239 g4data_realsurface_version='RealSurface1.0' 3207 3240 #END GEANT4 DATA OPTIONS 3208 3241 echo " " 3242 echo "*CHECKS AND OPTIONS FOR GEANT4 PHYSICS DATA FILES*" 3209 3243 3210 3244 … … 3248 3282 esac 3249 3283 3284 case "$g4realsurfacedata" in 3285 '') 3286 g4realsurfacedata=$g4data/$g4data_realsurface_version 3287 ;; 3288 esac 3289 3250 3290 3251 3291 # 3252 3292 # Now we have defaults, prompt user to see if this is where they want to use 3253 3293 # 3254 g4data_alllibs="$g4data_photonevaporation_version $g4data_radioactivedecay_version $g4data_g4emlow_version $g4data_g4ndl_version $g4data_g4abla_version "3294 g4data_alllibs="$g4data_photonevaporation_version $g4data_radioactivedecay_version $g4data_g4emlow_version $g4data_g4ndl_version $g4data_g4abla_version $g4data_realsurface_version" 3255 3295 3256 3296 g4message=`cat <<EOM 3257 Specify the path where the Geant4 data libraries 3258 3259 $g4data_alllibs 3260 3261 are installed. For now, a flat directory structure is assumed, and this can 3262 be customized at the next step if needed. 3297 Specify the path where the Geant4 data libraries are installed: 3263 3298 EOM` 3264 3299 … … 3326 3361 g4data_foundall="no" 3327 3362 fi 3363 3364 ### G4REALSURFACE 3365 $echo $n "checking for $g4data_realsurface_version... $c" 3366 if test -d "$g4data/$g4data_realsurface_version" ; then 3367 $echo "yes" 3368 g4realsurfacedata=$g4data/$g4data_realsurface_version 3369 else 3370 $echo "no" 3371 g4data_foundall="no" 3372 fi 3373 3374 3328 3375 3329 3376 # … … 3346 3393 1) Another path to search in 3347 3394 2) 'f' to force the use of the path you entered previously (the data libraries 3348 are notneeded to build Geant4, but are needed to run applications later).3395 are NOT needed to build Geant4, but are needed to run applications later). 3349 3396 3) 'c' to customize the data paths, e.g. if you have the data libraries 3350 3397 installed in different locations. … … 3363 3410 g4neutronhpcrosssections="$g4data/$g4data_g4ndl_version" 3364 3411 g4abladata="$g4data/$g4data_g4abla_version" 3412 g4realsurfacedata="$g4data/$g4data_realsurface_version" 3365 3413 3366 3414 … … 3376 3424 g4neutronhpcrosssections="$g4data/$g4data_g4ndl_version" 3377 3425 g4abladata="$g4data/$g4data_g4abla_version" 3378 3426 g4realsurfacedata="$g4data/$g4data_realsurface_version" 3379 3427 3380 3428 else … … 3407 3455 5) $g4data_g4abla_version: 3408 3456 $g4abladata 3457 6) $g4data_realsurface_version: 3458 $g4realsurfacedata 3409 3459 3410 3460 Choose a number from the list above to customize that path (e.g. 2) … … 3458 3508 ;; 3459 3509 3510 "6") 3511 dflt=$g4realsurfacedata 3512 fn='d~' 3513 rp="Custom path to $g4data_realsurface_version?" 3514 . ./getfile 3515 g4realsurfacedata=$ans 3516 ;; 3517 3460 3518 *) 3461 3519 break … … 3471 3529 3472 3530 3531 # 3532 # Configure which make to use... 3533 # On WIN32, we have to watch for cygwin/Matlab clash 3534 # Here, cygwin supplies make, Matlab 'gmake', but we must select 3535 # cygwin make. 3536 # 3537 # Yes, we could use Loc's built in make, but want full control 3538 # for now.... 3539 # 3540 3541 echo " " 3542 echo "*CHECKS FOR CORRECT MAKE IMPLEMENTATION*" 3543 3544 g4_make_loc="no" 3545 g4_gmake_loc="no" 3546 3547 g4_make_program=make 3548 g4_gmake_program=gmake 3549 3550 g4_check_make_msg="Checking for $g4_make_program..." 3551 g4_check_gmake_msg="Checking for $g4_gmake_program..." 3552 3553 g4_make_isgnu="no" 3554 g4_gmake_isgnu="no" 3555 3556 g4_make_dirs=`echo $PATH | sed 's/\:/ /g'` 3557 3558 # Check for 'make' on all systems 3559 g4_make_loc=`./loc $g4_make_program no $g4_make_dirs` 3560 echo "$g4_check_make_msg $g4_make_loc" 3561 3562 3563 # On anything but Windows, check for gmake as well 3564 if test "x$g4osname" != "xWIN32" ; then 3565 g4_gmake_loc=`./loc $g4_gmake_program no $g4_make_dirs` 3566 echo "$g4_check_gmake_msg $g4_gmake_loc" 3567 fi 3568 3569 3570 # Now see if make/gmake are GNU make. 3571 if test "x$g4_make_loc" != "xno" ; then 3572 g4_make_version=`$g4_make_loc -v 2>/dev/null` 3573 3574 case $g4_make_version in 3575 GNU*) 3576 g4_make_isgnu=yes 3577 ;; 3578 *) 3579 g4_make_isgnu=no 3580 ;; 3581 esac 3582 echo "Checking if make is GNU make... $g4_make_isgnu" 3583 fi 3584 3585 if test "x$g4osname" != "xWIN32" ; then 3586 if test "x$g4_gmake_loc" != "xno" ; then 3587 g4_gmake_version=`$g4_gmake_loc -v 2>/dev/null` 3588 3589 case $g4_gmake_version in 3590 GNU*) 3591 g4_gmake_isgnu=yes 3592 ;; 3593 *) 3594 g4_gmake_isgnu=no 3595 ;; 3596 esac 3597 echo "Checking if gmake is GNU make... $g4_gmake_isgnu" 3598 fi 3599 fi 3600 3601 # Now perform selection on following logic 3602 # 1) If we have gmake AND it's GNU make, use that 3603 # 2) If we have make AND it's GNU make, use that 3604 # 3) If none of the above, prompt user for path to make program 3605 if test "x$g4_gmake_loc" != "xno" -a "x$g4_gmake_isgnu" = "xyes" ; then 3606 g4make=$g4_gmake_loc 3607 elif test "x$g4_make_loc" != "xno" -a "x$g4_make_isgnu" = "xyes" ; then 3608 g4make=$g4_make_loc 3609 else 3610 g4_got_user_make="no" 3611 while test "x$g4_got_user_make" = "xno"; do 3612 g4message=`cat << EOM 3613 3614 G4MAKE 3615 3616 A GNU make program could not be located on your system. 3617 Please enter the full path to the GNU make program you 3618 want to use: 3619 EOM` 3620 dflt=$g4make 3621 rp=$g4message 3622 . ./myread 3623 gans=$ans 3624 3625 #Check if this is GNU make... 3626 g4_user_make_version=`$gans -v 2>/dev/null` 3627 3628 case $g4_user_make_version in 3629 "GNU Make"*) 3630 echo "Checking that $gans is GNU Make... yes" 3631 g4make=$gans 3632 g4_got_user_make=yes 3633 ;; 3634 *) 3635 echo "Checking that $gans is GNU Make... no" 3636 ;; 3637 esac 3638 done 3639 fi 3640 3641 3642 3643 echo " " 3644 echo "*CHECKS FOR REQUIRED EXTERNAL PACKAGE CLHEP*" 3645 3473 3646 if test "X$g4clhep_base_dir" = "X" ; then 3474 3475 clhep_dirs=`find $g4clhep_base_dir /usr/local/include /usr/include -type d -name CLHEP 2>/dev/null |xargs echo` 3476 #echo clhep_dirs=$clhep_dirs 3477 3647 clhep_dirs=`find $g4clhep_base_dir /usr/local/include /usr/include -type d -name CLHEP 2>/dev/null |xargs echo` 3478 3648 fi 3479 3649 3480 3650 if test "X$clhep_dirs" != "X" ; then 3481 3482 g4clhep_base_dir_found=`echo $clhep_dirs|cut -d" " -f1` 3483 #echo g4clhep_base_dir_found=$g4clhep_base_dir_found 3484 3485 3486 #g4clhep_base_dir_n=`echo $g4clhep_base_dir_found |awk -F"/" '{print NF}'` 3487 #echo g4clhep_base_dir_n=$g4clhep_base_dir_n 3488 g4clhep_base_dir_found=`dirname $g4clhep_base_dir_found` 3489 g4clhep_base_dir_found=`dirname $g4clhep_base_dir_found` 3651 g4clhep_base_dir_found=`echo $clhep_dirs|cut -d" " -f1` 3652 g4clhep_base_dir_found=`dirname $g4clhep_base_dir_found` 3653 g4clhep_base_dir_found=`dirname $g4clhep_base_dir_found` 3490 3654 3491 3655 g4clhep_base_dir=$g4clhep_base_dir_found 3492 3493 #else 3494 #case "$g4clhep_base_dir" in 3495 #'') 3496 # if test "X$g4system" = "XWIN32-VC" -o "X$g4system" = "XWIN32-VC7"; then 3497 # g4clhep_base_dir="c:/usr/local" 3498 # else 3499 # g4clhep_base_dir=/usr/local 3500 # fi 3501 # ;; 3502 #esac 3503 fi 3504 3505 3506 #while test 1 = 1 ; do 3507 3508 #if test "X$g4clhep_base_dir" != "X" ; then 3509 #clhep_dirs=$g4clhep_base_dir 3510 #echo 1 g4clhep_base_dir=$g4clhep_base_dir 3511 #fi 3656 fi 3657 3512 3658 3513 3659 if test "X$g4clhep_base_dir" != "X" ; then 3514 3515 g4message=`cat << EOM 3516 3517 Please, specify where CLHEP is installed. It was found in: 3518 3519 CLHEP_BASE_DIR: $g4clhep_base_dir 3520 3521 EOM` 3522 3523 dflt=$g4clhep_base_dir 3524 fn='d~' 3525 rp=$g4message 3526 . ./getfile 3527 3528 cend="no" 3529 while test "$cend" = "no" ; do 3530 if test -e "$ans/include/CLHEP" ; then 3531 cend="yes" 3532 3533 g4clhep_base_dir=$ans 3534 3535 else 3536 3537 g4message=`cat << EOM 3660 echo "checking for a CLHEP installation... $g4clhep_base_dir" 3661 3662 echo " " 3663 g4message="Is this the CLHEP installation you want to use?" 3664 3665 dflt=$g4clhep_base_dir 3666 fn='d~' 3667 rp=$g4message 3668 . ./getfile 3669 3670 cend="no" 3671 while test "$cend" = "no" ; do 3672 if test -e "$ans/include/CLHEP" ; then 3673 cend="yes" 3674 g4clhep_base_dir=$ans 3675 else 3676 g4message=`cat << EOM 3538 3677 3539 3678 Could not find CLHEP installed in $ans! … … 3544 3683 EOM` 3545 3684 3546 dflt=""3547 fn='d~'3548 rp=$g4message3549 . ./getfile3550 fi3551 done3685 dflt="" 3686 fn='d~' 3687 rp=$g4message 3688 . ./getfile 3689 fi 3690 done 3552 3691 3553 3692 else 3554 3555 g4message=`cat << EOM 3693 g4message=`cat << EOM 3556 3694 3557 3695 Could not find CLHEP installed on this system! … … 3562 3700 EOM` 3563 3701 3564 dflt="" 3565 fn='d~' 3566 rp=$g4message 3567 . ./getfile 3568 3569 cend="no" 3570 while test "$cend" = "no" ; do 3571 if test -e "$ans/include/CLHEP" ; then 3572 cend="yes" 3573 3574 g4clhep_base_dir=$ans 3575 3576 else 3577 3578 g4message=`cat << EOM 3702 dflt="" 3703 fn='d~' 3704 rp=$g4message 3705 . ./getfile 3706 3707 cend="no" 3708 while test "$cend" = "no" ; do 3709 if test -e "$ans/include/CLHEP" ; then 3710 cend="yes" 3711 g4clhep_base_dir=$ans 3712 else 3713 g4message=`cat << EOM 3579 3714 3580 3715 Could not find CLHEP installed in $ans! … … 3585 3720 EOM` 3586 3721 3587 dflt="" 3588 fn='d~' 3589 rp=$g4message 3590 . ./getfile 3591 fi 3592 done 3593 3594 fi 3595 3596 #dflt="Press [Enter] for default settings" 3597 #fn='d~' 3598 #####rp=$g4message 3599 #. ./myread 3600 #gans=$ans 3601 3602 # case $gans in 3603 3604 # 1) 3605 ## dflt="" 3606 ## fn='d~' 3607 # rp="Where is CLHEP installed?" 3608 ## . ./getfile 3609 ## g4clhep_base_dir=$ans 3610 3611 ##### g4clhep_include_dir=$ans/include 3612 ##### g4clhep_lib_dir=$ans/lib 3613 # ;; 3614 # 2) 3615 # dflt=$g4clhep_include_dir 3616 # fn='d~' 3617 # rp="Where is CLHEP include directory?" 3618 # . ./getfile 3619 # g4clhep_include_dir=$ans 3620 # ;; 3621 # 3) 3622 # dflt=$g4clhep_lib_dir 3623 # fn='d~' 3624 # rp="Where is CLHEP lib directory?" 3625 # . ./getfile 3626 # g4clhep_lib_dir=$ans 3627 # ;; 3628 # 4) 3629 # dflt=$g4clhep_lib 3630 # rp="What is CLHEP lib title?" 3631 # . ./myread 3632 # g4clhep_lib=$ans 3633 # ;; 3634 ## [eE]) 3635 ## break 3636 ## ;; 3637 # *) 3638 # echo " " 3639 # break 3640 # ;; 3641 # esac 3642 #done 3722 dflt="" 3723 fn='d~' 3724 rp=$g4message 3725 . ./getfile 3726 fi 3727 done 3728 fi 3643 3729 3644 3730 case "$g4clhep_include_dir" in … … 3665 3751 3666 3752 while test 1 = 1 ; do 3667 3668 g4message_1=`cat << You 3753 g4message_1=`cat << You 3669 3754 3670 3755 You can customize paths and library name of you CLHEP installation: … … 3676 3761 You` 3677 3762 3678 g4message_2=" need to use full library name with its extension (e.g. libCLHEP.lib)."3679 3680 g4message_3=`cat << EOM3763 g4message_2=" need to use full library name with its extension (e.g. libCLHEP.lib)." 3764 3765 g4message_3=`cat << EOM 3681 3766 3682 3767 To modify default settings, select number above (e.g. 2) … … 3684 3769 3685 3770 3686 if test "X$g4system" != "XWIN32-VC" -a "X$g4system" != "XWIN32-VC7"; then 3687 rp=$g4message_1$g4message_3 3688 else 3689 rp=$g4message_1$g4message_2$g4message_3 3690 fi 3691 3692 dflt="Press [Enter] for default settings" 3693 #fn='d~' 3694 . ./myread 3695 gans=$ans 3771 if test "X$g4system" != "XWIN32-VC" -a "X$g4system" != "XWIN32-VC7"; then 3772 rp=$g4message_1$g4message_3 3773 else 3774 rp=$g4message_1$g4message_2$g4message_3 3775 fi 3776 3777 dflt="Press [Enter] for default settings" 3778 . ./myread 3779 gans=$ans 3696 3780 3697 3781 case $gans in 3698 3699 3782 1) 3700 3783 dflt=$g4clhep_include_dir 3701 3784 fn='d~' 3702 rp="Where is CLHEP include directory?"3785 rp="Where is the CLHEP include directory?" 3703 3786 . ./getfile 3704 3787 g4clhep_include_dir=$ans … … 3707 3790 dflt=$g4clhep_lib_dir 3708 3791 fn='d~' 3709 rp="Where is CLHEP lib directory?"3792 rp="Where is the CLHEP lib directory?" 3710 3793 . ./getfile 3711 3794 g4clhep_lib_dir=$ans … … 3713 3796 3) 3714 3797 dflt=$g4clhep_lib 3715 rp="What is CLHEP lib title?"3798 rp="What is the name of the CLHEP library?" 3716 3799 . ./myread 3717 3800 g4clhep_lib=$ans 3718 3801 ;; 3719 # [eE])3720 ## break3721 ## ;;3722 3802 *) 3723 # echo " "3724 3803 break 3725 3804 ;; … … 3727 3806 done 3728 3807 3729 #if test "X$g4clhep_base_dir" = "X/usr" -o "X$g4clhep_base_dir" = "X/usr/local"; then3730 #g4clhep_base_dir=""3731 #fi3732 #3733 #if test "X$g4clhep_include_dir" = "X/usr/include" -o "X$g4clhep_include_dir" = "X/usr/local/include"; then3734 #g4clhep_include_dir=""3735 #fi3736 #3737 #if test "X$g4clhep_lib_dir" = "X/usr/lib" -o "X$g4clhep_lib_dir" = "X/usr/local/lib"; then3738 #g4clhep_lib_dir=""3739 #fi3740 3808 3741 3809 echo " " 3742 3743 case "$g4lib_build_shared" in 3744 '') 3745 g4lib_build_shared=n 3746 ;; 3747 esac 3748 3749 echo " " 3750 3751 case "$g4lib_build_static" in 3752 '') 3753 g4lib_build_static=n 3754 ;; 3755 esac 3756 3757 echo " " 3758 3759 case "$g4lib_use_shared" in 3760 '') 3761 g4lib_use_shared=n 3762 ;; 3763 esac 3764 3765 echo " " 3766 3767 case "$g4lib_use_static" in 3768 '') 3769 g4lib_use_static=n 3770 ;; 3771 esac 3772 3773 case "$g4lib_build_dll" in 3774 '') 3775 g4lib_build_dll=n 3776 ;; 3777 esac 3778 3779 case "$g4lib_build_dyn" in 3780 '') 3781 g4lib_build_dyn=n 3782 ;; 3783 esac 3784 3785 # 3786 # Ask about building of SHARED|STATIC libraries - default STATIC. 3787 # 3788 echo "" 3789 3790 if test "X$g4system" = "XWIN32-VC" -o "X$g4system" = "XWIN32-VC7"; then 3791 3792 while test 1 = 1 ; do 3793 3794 g4message=`cat << EOM 3795 3796 By default 'static' libraries are built. 3797 3798 Do you want to build DLL (.dll) libraries? 3799 EOM` 3800 3801 dflt=$g4lib_build_dll 3810 echo "*OPTIONS FOR GEANT4 USER INTERFACE MODULES*" 3811 3812 g4message="Enable building of User Interface (UI) modules?" 3813 3814 dflt='y' 3802 3815 rp=$g4message 3803 3816 . ./myread … … 3807 3820 3808 3821 n*|N*) 3809 g4lib_build_dll=n 3810 g4lib_build_shared=n 3811 g4lib_build_static=y 3812 break 3822 g4ui_none=y 3813 3823 ;; 3814 3824 y*|Y*) 3815 g4lib_build_dll=y 3816 g4lib_build_shared=n 3817 g4lib_build_static=n 3818 3819 # g4lib_build_static="" 3820 # g4lib_use_shared=1 3821 # g4lib_use_static="" 3822 break 3823 ;; 3824 # [eE]) 3825 # break 3826 # ;; 3827 # *) 3828 # echo " " 3829 # break 3830 # ;; 3825 g4ui_none=n 3826 ;; 3831 3827 esac 3832 done3833 3834 fi3835 3836 if test "X$g4system" != "XWIN32-VC" -a "X$g4system" != "XWIN32-VC7" ; then3837 3838 while test 1 = 1 ; do3839 3840 g4message=`cat << EOM3841 3842 By default 'static' (.a) libraries are built.3843 3844 Do you want to build 'shared' (.so) libraries?3845 EOM`3846 3847 dflt=$g4lib_build_shared3848 rp=$g4message3849 . ./myread3850 gans=$ans3851 3852 case $gans in3853 3854 n*|N*)3855 g4lib_build_shared=n3856 g4lib_build_static=y3857 break3858 ;;3859 y*|Y*)3860 g4lib_build_shared=y3861 # g4lib_build_static=""3862 # g4lib_use_shared=13863 # g4lib_use_static=""3864 break3865 ;;3866 # [eE])3867 # break3868 # ;;3869 # *)3870 # echo " "3871 # break3872 # ;;3873 esac3874 done3875 3876 if [ X$g4lib_build_shared = Xy ] ; then3877 #3878 # Ask about g4lib_build_static - default "n".3879 #3880 echo ""3881 3882 while test 1 = 1 ; do3883 3884 g4message=`cat << EOM3885 3886 You selected to build 'shared' (.so) libraries.3887 Do you want to build 'static' (.a) libraries too?3888 EOM`3889 3890 #dflt=$g4lib_build_static3891 dflt=n3892 rp=$g4message3893 . ./myread3894 gans=$ans3895 3896 case $gans in3897 3898 n*|N*)3899 g4lib_build_static=n3900 break3901 ;;3902 y*|Y*)3903 # g4lib_build_shared=13904 g4lib_build_static=y3905 # g4lib_use_shared=13906 # g4lib_use_static=""3907 break3908 ;;3909 # [eE])3910 # break3911 # ;;3912 # *)3913 # echo " "3914 # break3915 # ;;3916 esac3917 done3918 3919 ## Comment out in waiting G4LIB_USE_STATIC and G4LIB_USE_SHARED.3920 #3921 #if [ X$g4lib_build_static = Xy ] ; then3922 ##3923 ## Ask about g4lib_use_static - default "n".3924 ##3925 #echo ""3926 #3927 #while test 1 = 1 ; do3928 #3929 #g4message=`cat << EOM3930 #3931 #You selected to build 'shared' (.so) and 'static' (.a) libraries.3932 #Do you want to use 'static' (.a) libraries?3933 #EOM`3934 #3935 #dflt=$g4lib_use_static3936 #rp=$g4message3937 #. ./myread3938 #gans=$ans3939 #3940 # case $gans in3941 #3942 # n*|N*)3943 # break3944 # ;;3945 # y*|Y*)3946 ## g4lib_build_shared=13947 ## g4lib_build_static=13948 ## g4lib_use_shared=13949 # g4lib_use_static=y3950 # break3951 # ;;3952 ## [eE])3953 ## break3954 ## ;;3955 ## *)3956 ## echo " "3957 ## break3958 ## ;;3959 # esac3960 #done3961 #fi3962 3963 fi3964 3965 fi # if !Win3966 3967 echo " "3968 case "$g4global" in3969 '')3970 g4global=n3971 ;;3972 esac3973 3974 echo " "3975 # By default it's 'grabular'!3976 case "$g4granular" in3977 '')3978 g4granular=y3979 ;;3980 esac3981 3982 echo " "3983 # Will be set (if needed) in GNUmakefile!3984 case "$g4lib_use_granular" in3985 '')3986 g4lib_use_granular=y3987 ;;3988 esac3989 3990 if test \( \( "X$g4system" = "XWIN32-VC" -o "X$g4system" = "XWIN32-VC7" \) -a "X$g4lib_build_dll" = "Xy" \) -o \( "X$g4system" = "XDarwin-g++" -a "X$g4lib_build_dyn" = "Xy" \) ; then3991 3992 g4global=n3993 g4granular=n3994 g4lib_use_granular=n3995 3996 fi3997 3998 if test \( "X$g4system" != "XWIN32-VC" -a "X$g4system" != "XWIN32-VC7" -a "X$g4system" != "XDarwin-g++" \) -o \( \( "X$g4system" = "XWIN32-VC" -o "X$g4system" = "XWIN32-VC7" \) -a "X$g4lib_build_dll" = "Xn" \) -o \( "X$g4system" = "XDarwin-g++" -a "X$g4lib_build_dyn" = "Xn" \) ; then3999 4000 #4001 # Ask about g4global - default "(empty)".4002 #4003 echo ""4004 4005 while test 1 = 1 ; do4006 4007 g4message=`cat << EOM4008 4009 Do you want to build 'global' compound libraries?4010 EOM`4011 4012 dflt=$g4global4013 rp=$g4message4014 . ./myread4015 gans=$ans4016 4017 case $gans in4018 4019 n*|N*)4020 g4global=n4021 g4granular=y4022 g4lib_use_granular=y4023 break4024 ;;4025 y*|Y*)4026 g4global=y4027 # Shoud be comment out to keep settings from config.sh - not now to keep as in release4028 g4granular=n4029 # Shoud be comment out to keep settings from config.sh - not now to keep as in release4030 g4lib_use_granular=n4031 break4032 ;;4033 # [eE])4034 # break4035 # ;;4036 # *)4037 # echo " "4038 # break4039 # ;;4040 esac4041 done4042 4043 if [ X$g4global = Xy ] ; then4044 #4045 # Ask about g4granular - default "n".4046 #4047 echo ""4048 4049 while test 1 = 1 ; do4050 4051 g4message=`cat << EOM4052 4053 Granular libraries are used by defaults, you asked to build global4054 compound libraries. Do you want to build 'granular' libraries too?4055 EOM`4056 4057 dflt=$g4granular4058 rp=$g4message4059 . ./myread4060 gans=$ans4061 4062 case $gans in4063 4064 n*|N*)4065 g4granular=n4066 break4067 ;;4068 y*|Y*)4069 g4granular=y4070 break4071 ;;4072 # [eE])4073 # break4074 # ;;4075 # *)4076 # echo " "4077 # break4078 # ;;4079 esac4080 done4081 4082 if [ X$g4granular = Xy ] ; then4083 #4084 # Ask about g4lib_use_granular - default "n".4085 #4086 echo ""4087 4088 while test 1 = 1 ; do4089 4090 g4message=`cat << EOM4091 4092 Global libraries are used by defaults, you asked to build global4093 compound libraries and granular libraries.4094 Do you want to use 'granular' libraries instead?4095 EOM`4096 4097 dflt=$g4lib_use_granular4098 rp=$g4message4099 . ./myread4100 gans=$ans4101 4102 case $gans in4103 4104 n*|N*)4105 g4lib_use_granular=n4106 break4107 ;;4108 y*|Y*)4109 g4lib_use_granular=y4110 break4111 ;;4112 # [eE])4113 # break4114 # ;;4115 # *)4116 # echo " "4117 # break4118 # ;;4119 esac4120 done4121 fi4122 fi4123 4124 fi # !Win4125 4126 ### End file - without will be problem! Check in others...4127 4128 4129 echo " "4130 case "$g4debug" in4131 '')4132 g4debug=n4133 ;;4134 esac4135 4136 #4137 # Ask about g4debug - default "(empty)".4138 #4139 echo ""4140 4141 while test 1 = 1 ; do4142 4143 g4message=`cat << EOM4144 4145 Do you want to compile libraries in DEBUG mode (-g)?4146 EOM`4147 4148 dflt=$g4debug4149 rp=$g4message4150 . ./myread4151 gans=$ans4152 4153 case $gans in4154 4155 n*|N*)4156 break4157 ;;4158 y*|Y*)4159 g4debug=y4160 break4161 ;;4162 # [eE])4163 # break4164 # ;;4165 # *)4166 # echo " "4167 # break4168 # ;;4169 esac4170 done4171 4172 4173 echo " "4174 4175 case "$g4ui_none" in4176 '')4177 g4ui_none=n4178 ;;4179 esac4180 4181 # Set by default!4182 case "$g4ui_build_terminal_session" in4183 '')4184 g4ui_build_terminal_session=y4185 ;;4186 esac4187 4188 # Set by default!4189 case "$g4ui_use_terminal" in4190 '')4191 g4ui_use_terminal=y4192 ;;4193 esac4194 4195 # Set by default!4196 case "$g4ui_build_gag_session" in4197 '')4198 g4ui_build_gag_session=y4199 ;;4200 esac4201 4202 # Set by default!4203 case "$g4ui_use_gag" in4204 '')4205 g4ui_use_gag=y4206 ;;4207 esac4208 4209 case "$g4ui_build_xm_session" in4210 '')4211 g4ui_build_xm_session=n4212 ;;4213 esac4214 4215 case "$g4ui_use_xm" in4216 '')4217 g4ui_use_xm=n4218 ;;4219 esac4220 4221 case "$g4ui_build_xaw_session" in4222 '')4223 g4ui_build_xaw_session=n4224 ;;4225 esac4226 4227 case "$g4ui_use_xaw" in4228 '')4229 g4ui_use_xaw=n4230 ;;4231 esac4232 4233 case "$g4ui_build_win32_session" in4234 '')4235 g4ui_build_win32_session=n4236 ;;4237 esac4238 4239 case "$g4ui_use_win32" in4240 '')4241 g4ui_use_win32=n4242 ;;4243 esac4244 4245 # Set by default!4246 case "$g4ui_use_tcsh" in4247 '')4248 g4ui_use_tcsh=y4249 ;;4250 esac4251 4252 4253 4254 4255 echo ""4256 4257 g4message=`cat << EOM4258 4259 G4UI_NONE4260 4261 If this variable is set, no UI sessions nor any UI libraries are built.4262 This can be useful when running a pure batch job or in a user framework4263 having its own UI system.4264 Do you want to set this variable ?4265 4266 EOM`4267 4268 dflt=$g4ui_none4269 rp=$g4message4270 . ./myread4271 gans=$ans4272 4273 case $gans in4274 4275 n*|N*)4276 g4ui_none=n4277 ;;4278 y*|Y*)4279 g4ui_none=y4280 ;;4281 esac4282 3828 4283 3829 case $g4ui_none in … … 4285 3831 n) 4286 3832 4287 g4message=`cat << EOM4288 4289 G4UI_BUILD_TERMINAL_SESSION4290 Specifies to include in kernel library a basic dumb terminal4291 user interface (default).4292 4293 G4UI_USE_TERMINAL4294 Specifies to use dumb terminal interface in the application to be4295 built (default).4296 EOM`4297 4298 dflt=$g4ui_use_terminal4299 rp=$g4message4300 #. ./myread4301 #gans=$ans4302 gans=y4303 4304 case $gans in4305 4306 n*|N*)4307 g4ui_build_terminal_session=n4308 g4ui_use_terminal=n4309 ;;4310 y*|Y*)4311 g4ui_build_terminal_session=y4312 g4ui_use_terminal=y4313 ;;4314 esac4315 4316 g4message=`cat << EOM4317 4318 G4UI_BUILD_GAG_SESSION4319 Specifies to include in kernel library the GAG based4320 user interface.4321 4322 G4UI_USE_GAG4323 Specifies to use the GAG interface in the application to be4324 built.4325 EOM`4326 4327 dflt=$g4ui_use_gag4328 rp=$g4message4329 #. ./myread4330 #gans=$ans4331 gans=y4332 4333 case $gans in4334 4335 n*|N*)4336 g4ui_build_gag_session=n4337 g4ui_use_gag=n4338 ;;4339 y*|Y*)4340 g4ui_build_gag_session=y4341 g4ui_use_gag=y4342 ;;4343 esac4344 4345 3833 if test "X$g4system" != "XWIN32-VC" -a "X$g4system" != "XWIN32-VC7"; then 4346 3834 4347 g4message=`cat << EOM 4348 4349 G4UI_BUILD_XAW_SESSION 4350 G4UI_USE_XAW 4351 4352 Specifies to include and use the XAW interfaces in the 4353 application to be built. 4354 The XAW (X11 Athena Widget set) extensions are required to activate 4355 and build this driver. 4356 EOM` 4357 4358 dflt=$g4ui_use_xaw 3835 g4message="Enable building of the XAW (X11 Athena Widget set) UI module?" 3836 3837 dflt=$g4ui_build_xaw_session 4359 3838 rp=$g4message 4360 3839 . ./myread … … 4412 3891 g4message=`cat << EOM 4413 3892 4414 You have selected to usethe XAW based user interfaces.4415 Specify the correct path where XAW is installed in your system.3893 You have selected to build the XAW based user interfaces. 3894 Specify the correct path where XAW is installed on your system. 4416 3895 It was found in $g4ui_xawhome. Press [Enter] to set this path or type the correct one. 4417 3896 … … 4437 3916 g4ui_build_xaw_session=n 4438 3917 g4ui_use_xaw=n 3918 echo " " 4439 3919 4440 3920 fi … … 4443 3923 g4message=`cat << EOM 4444 3924 4445 You have selected to use XAW based user interfaces.3925 You have selected to build the XAW based user interfaces. 4446 3926 But XAW was not found in $ans. 4447 Please specify the correct path where XAW is installed in your system.3927 Please specify the correct path where XAW is installed on your system. 4448 3928 4449 3929 You can set '-' (without quotation) to CANCEL the XAW flag at all: … … 4462 3942 g4message=`cat << EOM 4463 3943 4464 You have selected to use XAW based user interfaces.3944 You have selected to build the XAW based user interfaces. 4465 3945 But XAW was not found in expected place. 4466 Please specify the correct path where XAW is installed in your system.3946 Please specify the correct path where XAW is installed on your system. 4467 3947 4468 3948 You can set '-' (without quotation) to CANCEL the XAW flag at all: … … 4487 3967 g4ui_build_xaw_session=n 4488 3968 g4ui_use_xaw=n 3969 echo " " 4489 3970 4490 3971 fi … … 4493 3974 g4message=`cat << EOM 4494 3975 4495 You have selected to use XAW based user interfaces.3976 You have selected to build the XAW based user interfaces. 4496 3977 But XAW was not found in $ans. 4497 Please specify the correct path where XAW is installed in your system.3978 Please specify the correct path where XAW is installed on your system. 4498 3979 4499 3980 You can set '-' (without quotation) to CANCEL the XAW flag at all: … … 4576 4057 ############################################### 4577 4058 4578 g4message=`cat << EOM 4579 4580 G4UI_BUILD_XM_SESSION 4581 G4UI_USE_XM 4582 4583 Specifies to include and use the XM Motif based user interfaces. 4584 The XM Motif extensions are required to activate and build this 4585 driver. 4586 4587 EOM` 4588 4589 dflt=$g4ui_use_xm 4059 g4message="Enable building of the X11-Motif (Xm) UI module?" 4060 4061 dflt=$g4ui_build_xm_session 4590 4062 rp=$g4message 4591 4063 . ./myread … … 4643 4115 g4message=`cat << EOM 4644 4116 4645 You have selected to use the XM Motifbased user interfaces.4646 Specify the correct path where Xm is installed in your system.4117 You have selected to build the X11-Motif(Xm) based user interfaces. 4118 Specify the correct path where Xm is installed on your system. 4647 4119 It was found in $g4vis_xmhome. Press [Enter] to set this path or type the correct one. 4648 4120 … … 4668 4140 g4ui_build_xm_session=n 4669 4141 g4ui_use_xm=n 4142 echo " " 4670 4143 4671 4144 fi … … 4674 4147 g4message=`cat << EOM 4675 4148 4676 You have selected to use XM Motifbased user interfaces.4677 But X M Motifwas not found in $ans.4678 Please specify the correct path where Xm is installed in your system.4149 You have selected to build the X11-Motif(Xm) based user interfaces. 4150 But Xm was not found in $ans. 4151 Please specify the correct path where Xm is installed on your system. 4679 4152 4680 4153 You can set '-' (without quotation) to CANCEL the XM flag at all: … … 4693 4166 g4message=`cat << EOM 4694 4167 4695 You have selected to use XM Motifbased user interfaces.4696 But X M Motif was not found inexpected place.4697 Please specify the correct path where Xm is installed in your system.4168 You have selected to build the X11-Motif(Xm) based user interfaces. 4169 But Xm was not found in the expected place. 4170 Please specify the correct path where Xm is installed on your system. 4698 4171 4699 4172 You can set '-' (without quotation) to CANCEL the XM flag at all: … … 4718 4191 g4ui_build_xm_session=n 4719 4192 g4ui_use_xm=n 4193 echo " " 4720 4194 4721 4195 fi … … 4724 4198 g4message=`cat << EOM 4725 4199 4726 You have selected to use XM Motifbased user interfaces.4727 But X M Motifwas not found in $ans.4728 Please specify the correct path where Xm is installed in your system.4200 You have selected to build the X11-Motif(Xm) based user interfaces. 4201 But Xm was not found in $ans. 4202 Please specify the correct path where Xm is installed on your system. 4729 4203 4730 4204 You can set '-' (without quotation) to CANCEL the XM flag at all: … … 4810 4284 if test "X$g4system" = "XWIN32-VC" -o "X$g4system" = "XWIN32-VC7"; then 4811 4285 4812 g4message=`cat << EOM 4813 4814 G4UI_BUILD_WIN32_SESSION 4815 G4UI_USE_WIN32 4816 4817 Specifies to include and use the terminal interface for 4818 Windows systems. 4819 4820 EOM` 4821 4822 dflt=$g4ui_use_win32 4286 g4message="Enable building of the WIN32 Terminal UI module?" 4287 4288 dflt=$g4ui_build_win32_session 4823 4289 rp=$g4message 4824 4290 . ./myread … … 4872 4338 if test "x$g4ui_none" = "xn" ; then 4873 4339 # Query the user to see if build of Qt UI module is needed 4874 g4message=`cat <<EOM 4875 4876 G4UI_BUILD_QT_SESSION 4877 G4UI_USE_QT 4878 4879 Setting these variables will enable the building of the G4 Qt based 4880 user interface module and the use of this module in your applications 4881 respectively. 4882 The Qt3 or Qt4 headers, libraries and moc application are required to enable 4883 the building of this module. 4884 Do you want to enable build and use of this module? 4885 EOM` 4340 g4message="Enable building of the Qt UI module?" 4886 4341 4887 4342 # Read in the user response … … 4910 4365 # 4911 4366 if test "x$g4ui_build_qt_session" = "xy" ; then 4912 echo " "4913 4367 # NB Have to supply arg to qt script, just blank in this case! 4914 4368 qt_search_dir="" … … 4958 4412 4959 4413 echo " " 4960 case "$g4vis_none" in 4961 '') 4962 g4vis_none=n 4963 ;; 4964 esac 4965 4966 4967 case "$g4vis_build_openglwin32_driver" in 4968 '') 4969 g4vis_build_openglwin32_driver=n 4970 ;; 4971 esac 4972 4973 case "$g4vis_use_openglwin32" in 4974 '') 4975 g4vis_use_openglwin32=n 4976 ;; 4977 esac 4978 4979 case "$g4vis_build_oiwin32_driver" in 4980 '') 4981 g4vis_build_oiwin32_driver=n 4982 ;; 4983 esac 4984 4985 case "$g4vis_use_oiwin32" in 4986 '') 4987 g4vis_use_oiwin32=n 4988 ;; 4989 esac 4990 4991 case "$g4vis_build_dawn_driver" in 4992 '') 4993 g4vis_build_dawn_driver=n 4994 ;; 4995 esac 4996 4997 case "$g4vis_use_dawn" in 4998 '') 4999 g4vis_use_dawn=n 5000 ;; 5001 esac 5002 5003 # Set by default! 5004 case "$g4vis_build_dawnfile_driver" in 5005 '') 5006 g4vis_build_dawnfile_driver=y 5007 ;; 5008 esac 5009 5010 # Set by default! 5011 case "$g4vis_use_dawnfile" in 5012 '') 5013 g4vis_use_dawnfile=y 5014 ;; 5015 esac 5016 5017 case "$g4vis_build_openglx_driver" in 5018 '') 5019 g4vis_build_openglx_driver=n 5020 ;; 5021 esac 5022 5023 case "$g4vis_use_openglx" in 5024 '') 5025 g4vis_use_openglx=n 5026 ;; 5027 esac 5028 5029 case "$g4vis_build_openglxm_driver" in 5030 '') 5031 g4vis_build_openglxm_driver=n 5032 ;; 5033 esac 5034 5035 case "$g4vis_use_openglxm" in 5036 '') 5037 g4vis_use_openglxm=n 5038 ;; 5039 esac 5040 5041 case "$g4vis_build_oix_driver" in 5042 '') 5043 g4vis_build_oix_driver=n 5044 ;; 5045 esac 5046 5047 case "$g4vis_use_oix" in 5048 '') 5049 g4vis_use_oix=n 5050 ;; 5051 esac 5052 5053 case "$g4vis_build_raytracerx_driver" in 5054 '') 5055 g4vis_build_raytracerx_driver=n 5056 ;; 5057 esac 5058 5059 case "$g4vis_use_raytracerx" in 5060 '') 5061 g4vis_use_raytracerx=n 5062 ;; 5063 esac 5064 5065 # Set by default! 5066 case "$g4vis_build_raytracer_driver" in 5067 '') 5068 g4vis_build_raytracer_driver=y 5069 ;; 5070 esac 5071 5072 # Set by default! 5073 case "$g4vis_use_raytracer" in 5074 '') 5075 g4vis_use_raytracer=y 5076 ;; 5077 esac 5078 5079 case "$g4vis_build_vrml_driver" in 5080 '') 5081 g4vis_build_vrml_driver=n 5082 ;; 5083 esac 5084 5085 case "$g4vis_use_vrml" in 5086 '') 5087 g4vis_use_vrml=n 5088 ;; 5089 esac 5090 5091 # Set by default! 5092 case "$g4vis_build_asciitree_driver" in 5093 '') 5094 g4vis_build_asciitree_driver=y 5095 ;; 5096 esac 5097 5098 # Set by default! 5099 case "$g4vis_use_asciitree" in 5100 '') 5101 g4vis_use_asciitree=y 5102 ;; 5103 esac 5104 5105 # Set by default! 5106 case "$g4vis_build_gagtree_driver" in 5107 '') 5108 g4vis_build_gagtree_driver=y 5109 ;; 5110 esac 5111 5112 # Set by default! 5113 case "$g4vis_use_gagtree" in 5114 '') 5115 g4vis_use_gagtree=y 5116 ;; 5117 esac 5118 5119 echo "" 5120 5121 g4message=`cat << EOM 5122 5123 G4VIS_NONE 5124 5125 If this variable is set, no visualization drivers will be built or used. 5126 Do you want to set this variable ? 5127 5128 EOM` 5129 5130 dflt=$g4vis_none 4414 echo "*OPTIONS FOR GEANT4 VISUALIZATION DRIVERS*" 4415 4416 g4message="Enable building of visualization drivers?" 4417 dflt='y' 5131 4418 rp=$g4message 5132 4419 . ./myread … … 5136 4423 5137 4424 n*|N*) 4425 g4vis_none=y 4426 ;; 4427 y*|Y*) 5138 4428 g4vis_none=n 5139 4429 ;; 5140 y*|Y*)5141 g4vis_none=y5142 ;;5143 4430 esac 5144 4431 … … 5149 4436 if test "X$g4system" != "XWIN32-VC" -a "X$g4system" != "XWIN32-VC7"; then 5150 4437 5151 g4message=`cat << EOM 5152 5153 G4VIS_BUILD_OPENGLX_DRIVER 5154 G4VIS_USE_OPENGLX 5155 5156 It is an interface to the de facto standard 3D graphics library, 5157 OpenGL. It is well suited for real-time fast visualization 5158 and prototyping. The X11 version of the OpenGL libraries is 5159 required. 5160 EOM` 5161 5162 dflt=$g4vis_use_openglx 4438 g4message="Enable building of the X11 OpenGL visualization driver?" 4439 4440 dflt=$g4vis_build_openglx_driver 5163 4441 rp=$g4message 5164 4442 . ./myread … … 5177 4455 esac 5178 4456 5179 #############################################3 5180 g4message=`cat << EOM 5181 5182 G4VIS_BUILD_OPENGLXM_DRIVER 5183 G4VIS_USE_OPENGLXM 5184 5185 It is an interface to the de facto standard 3D graphics library, 5186 OpenGL. It is well suited for real-time fast visualization 5187 and prototyping. The X11 version of the OpenGL libraries and 5188 the Motif Xm extension is required. 5189 5190 EOM` 5191 5192 dflt=$g4vis_use_openglxm 4457 ############################################# 4458 g4message="Enable building of the X11-Motif OpenGL visualization driver?" 4459 4460 dflt=$g4vis_build_openglxm_driver 5193 4461 rp=$g4message 5194 4462 . ./myread … … 5254 4522 g4message=`cat << EOM 5255 4523 5256 You have selected to use OPENGLXMdriver.4524 You have selected to build the OpenGL-Motif(Xm) driver. 5257 4525 Specify the correct path where Xm is installed in your system. 5258 4526 It was found in $g4vis_xmhome. Press [Enter] to set this path or type the correct one. … … 5279 4547 g4vis_build_openglxm_driver=n 5280 4548 g4vis_use_openglxm=n 4549 echo " " 5281 4550 5282 4551 fi … … 5285 4554 g4message=`cat << EOM 5286 4555 5287 You have selected to use OPENGLXMdriver.5288 But itwas not found in $ans.4556 You have selected to build the OpenGL-Motif(Xm) driver. 4557 But Xm was not found in $ans. 5289 4558 Please specify the correct path where Xm is installed in your system. 5290 4559 … … 5304 4573 g4message=`cat << EOM 5305 4574 5306 You have selected to use OPENGLXMdriver.5307 But itwas not found in expected place.4575 You have selected to build the OpenGL-Motif(Xm) driver. 4576 But Xm was not found in expected place. 5308 4577 Please specify the correct path where Xm is installed in your system. 5309 4578 … … 5329 4598 g4vis_build_openglxm_driver=n 5330 4599 g4vis_use_openglxm=n 4600 echo " " 5331 4601 5332 4602 fi … … 5335 4605 g4message=`cat << EOM 5336 4606 5337 You have selected to use OPENGLXMdriver.5338 But itwas not found in $ans.4607 You have selected to build the OpenGL-Motif(Xm) driver. 4608 But Xm was not found in $ans. 5339 4609 Please specify the correct path where Xm is installed in your system. 5340 4610 … … 5422 4692 if test "X$g4system" = "XWIN32-VC" -o "X$g4system" = "XWIN32-VC7"; then 5423 4693 5424 g4message=`cat << EOM 5425 5426 G4VIS_BUILD_OPENGLWIN32_DRIVER 5427 G4VIS_USE_OPENGLWIN32 5428 5429 It is an interface to the de facto standard 3D graphics library, 5430 OpenGL. It is well suited for real-time fast visualization 5431 and prototyping. The Windows version of the OpenGL libraries is 5432 required. 5433 5434 EOM` 5435 5436 dflt=$g4vis_use_openglwin32 4694 g4message="Enable building of the WIN32 OpenGL visualization driver?" 4695 4696 dflt=$g4vis_build_openglwin32_driver 5437 4697 rp=$g4message 5438 4698 . ./myread … … 5456 4716 if test "X$g4system" != "XWIN32-VC" -a "X$g4system" != "XWIN32-VC7"; then 5457 4717 5458 g4message=`cat << EOM 5459 5460 G4VIS_BUILD_DAWN_DRIVER 5461 G4VIS_USE_DAWN 5462 5463 DAWN drivers are interfaces to the Fukui Renderer DAWN. DAWN is 5464 a vectorized 3D PostScript processor suited to prepare technical 5465 high quality outputs for presentation and/or documentation. 5466 5467 EOM` 5468 5469 dflt=$g4vis_use_dawn 4718 g4message="Enable building of the FukuiRenderer/DAWN visualization driver?" 4719 dflt=$g4vis_build_dawn_driver 5470 4720 rp=$g4message 5471 4721 . ./myread … … 5486 4736 5487 4737 ####################################### 5488 g4message=`cat << EOM 5489 5490 G4VIS_BUILD_OIX_DRIVER 5491 G4VIS_USE_OIX 5492 5493 The OpenInventor driver is based on OpenInventor technology 5494 for scientific visualization. 5495 The X11 version of OpenInventor is required. 5496 5497 EOM` 5498 5499 dflt=$g4vis_use_oix 4738 g4message="Enable building of the X11 OpenInventor visualization driver?" 4739 4740 dflt=$g4vis_build_oix_driver 5500 4741 rp=$g4message 5501 4742 . ./myread … … 5548 4789 g4message=`cat << EOM 5549 4790 5550 OIVHOME/include 5551 OIVHOME/lib 5552 5553 You have selected to use OpenInventor driver. 5554 Specify the correct path (OIVHOME) where OpenInventor is installed in your system. 4791 You have selected to build the X11 OpenInventor driver. 4792 Specify the path where OpenInventor is installed on your system. 5555 4793 It was found in $g4vis_oivhome. Press [Enter] to set this path or type the correct one. 5556 4794 … … 5576 4814 g4vis_build_oix_driver=n 5577 4815 g4vis_use_oix=n 4816 echo " " 5578 4817 5579 4818 fi … … 5582 4821 g4message=`cat << EOM 5583 4822 5584 OIVHOME/include 5585 OIVHOME/lib 5586 5587 You have selected to use OpenInventor driver. 5588 But it was not found in $ans. 5589 Please specify the correct path where OpenInventor is installed in your system. 4823 You have selected to build the X11 OpenInventor driver. 4824 But OpenInventor was not found in $ans. 4825 Please specify the correct path where OpenInventor is installed on your system. 5590 4826 5591 4827 You can set '-' (without quotation) to CANCEL the OpenInventor flag at all: … … 5604 4840 g4message=`cat << EOM 5605 4841 5606 OIVHOME/include 5607 OIVHOME/lib 5608 5609 You have selected to use OpenInventor driver. 5610 But it was not found in expected place. 5611 Please specify the correct path where OpenInventor is installed in your system. 4842 You have selected to build the X11 OpenInventor driver. 4843 But OpenInventor was not found in the expected place. 4844 Please specify the correct path where OpenInventor is installed on your system. 5612 4845 5613 4846 You can set '-' (without quotation) to CANCEL the OpenInventor flag at all: … … 5632 4865 g4vis_build_oix_driver=n 5633 4866 g4vis_use_oix=n 4867 echo " " 5634 4868 5635 4869 fi … … 5638 4872 g4message=`cat << EOM 5639 4873 5640 OIVHOME/include 5641 OIVHOME/lib 5642 5643 You have selected to use OpenInventor driver. 5644 But it was not found in $ans. 5645 Please specify the correct path where OpenInventor is installed in your system. 4874 You have selected to build the X11 OpenInventor driver. 4875 But OpenInventor was not found in $ans. 4876 Please specify the correct path where OpenInventor is installed on your system. 5646 4877 5647 4878 You can set '-' (without quotation) to CANCEL the OpenInventor flag at all: … … 5667 4898 ############################################### 5668 4899 5669 g4message=`cat << EOM 5670 5671 G4VIS_BUILD_RAYTRACERX_DRIVER 5672 G4VIS_USE_RAYTRACERX 5673 5674 Allows for interactive ray-tracing graphics through X11. 5675 The X11 package is required. 5676 5677 EOM` 5678 5679 dflt=$g4vis_use_raytracerx 4900 g4message="Enable building of the X11 RayTracer visualization driver?" 4901 4902 dflt=$g4vis_build_raytracerx_driver 5680 4903 rp=$g4message 5681 4904 . ./myread … … 5700 4923 if test "X$g4system" = "XWIN32-VC" -o "X$g4system" = "XWIN32-VC7"; then 5701 4924 5702 g4message=`cat << EOM 5703 5704 G4VIS_BUILD_OIWIN32_DRIVER 5705 G4VIS_USE_OIWIN32 5706 5707 Specifies to build and use the driver for the free X11 version of 5708 OpenInventor on Windows systems. 5709 The Windows version of OpenInventor is required. 5710 5711 EOM` 5712 5713 dflt=$g4vis_use_oiwin32 4925 g4message="Enable building of the WIN32 OpenInventor visualization driver?" 4926 4927 dflt=$g4vis_build_oiwin32_driver 5714 4928 rp=$g4message 5715 4929 . ./myread … … 5762 4976 g4message=`cat << EOM 5763 4977 5764 OIVHOME/include 5765 OIVHOME/lib 5766 5767 You have selected to use OpenInventor driver. 5768 Specify the correct path (OIVHOME) where OpenInventor is installed in your system. 4978 You have selected to build the WIN32 OpenInventor driver. 4979 Specify the correct path where OpenInventor is installed on your system. 5769 4980 It was found in $g4vis_oivhome. Press [Enter] to set this path or type the correct one. 5770 4981 … … 5790 5001 g4vis_build_oiwin32_driver=n 5791 5002 g4vis_use_oiwin32=n 5003 echo " " 5792 5004 5793 5005 fi … … 5796 5008 g4message=`cat << EOM 5797 5009 5798 OIVHOME/include 5799 OIVHOME/lib 5800 5801 You have selected to use OpenInventor driver. 5802 But it was not found in $ans. 5803 Please specify the correct path where OpenInventor is installed in your system. 5010 You have selected to build the WIN32 OpenInventor driver. 5011 But OpenInventor was not found in $ans. 5012 Please specify the correct path where OpenInventor is installed on your system. 5804 5013 5805 5014 You can set '-' (without quotation) to CANCEL the OpenInventor flag at all: … … 5818 5027 g4message=`cat << EOM 5819 5028 5820 OIVHOME/include 5821 OIVHOME/lib 5822 5823 You have selected to use OpenInventor driver. 5824 But it was not found in expected place. 5825 Please specify the correct path where OpenInventor is installed in your system. 5029 You have selected to build the WIN32 OpenInventor driver. 5030 But OpenInventor was not found in expected place. 5031 Please specify the correct path where OpenInventor is installed on your system. 5826 5032 5827 5033 You can set '-' (without quotation) to CANCEL the OpenInventor flag at all: … … 5846 5052 g4vis_build_oiwin32_driver=n 5847 5053 g4vis_use_oiwin32=n 5054 echo " " 5848 5055 5849 5056 fi … … 5852 5059 g4message=`cat << EOM 5853 5060 5854 OIVHOME/include 5855 OIVHOME/lib 5856 5857 You have selected to use OpenInventor driver. 5858 But it was not found in $ans. 5859 Please specify the correct path where OpenInventor is installed in your system. 5061 You have selected to build the WIN32 OpenInventor driver. 5062 But OpenInventor was not found in $ans. 5063 Please specify the correct path where OpenInventor is installed on your system. 5860 5064 5861 5065 You can set '-' (without quotation) to CANCEL the OpenInventor flag at all: … … 5946 5150 esac 5947 5151 5948 g4message=`cat << EOM 5949 5950 G4VIS_BUILD_VRML_DRIVER 5951 G4VIS_USE_VRML 5952 5953 These driver generate VRML files, which describe 3D scenes to be 5954 visualized with a proper VRML viewer. 5955 5956 EOM` 5957 5958 dflt=$g4vis_use_vrml 5152 g4message="Enable building of the VRML visualization driver?" 5153 5154 dflt=$g4vis_build_vrml_driver 5959 5155 rp=$g4message 5960 5156 . ./myread … … 6105 5301 g4message=`cat << EOM 6106 5302 6107 OGLHOME/include 6108 OGLHOME/lib 6109 6110 You have selected to use OpenGL driver. 6111 Specify the correct path (OGLHOME) where OpenGL is installed in your system. 5303 You have selected to build one or more drivers that require OpenGL. 5304 Specify the correct path (OGLHOME) where OpenGL is installed on your system. 6112 5305 It was found in $g4vis_oglhome. Press [Enter] to set this path or type the correct one. 6113 5306 … … 6140 5333 g4vis_build_openglwin32_driver=n 6141 5334 g4vis_use_openglwin32=n 5335 echo " " 6142 5336 6143 5337 fi … … 6146 5340 g4message=`cat << EOM 6147 5341 6148 OGLHOME/include 6149 OGLHOME/lib 6150 6151 You have selected to use OpenGL driver. 6152 But it was not found in $ans. 6153 Please specify the correct path where OpenGL is installed in your system. 5342 You have selected to build one or more drivers that require OpenGL. 5343 But OpenGL was not found in $ans. 5344 Please specify the correct path where OpenGL is installed on your system. 6154 5345 6155 5346 You can set '-' (without quotation) to CANCEL the OpenGL flag at all: … … 6168 5359 g4message=`cat << EOM 6169 5360 6170 OGLHOME/include 6171 OGLHOME/lib 6172 6173 You have selected to use OpenGL driver. 6174 But it was not found in expected place. 6175 Please specify the correct path where OpenGL is installed in your system. 5361 You have selected to build one or more drivers that require OpenGL. 5362 But OpenGL was not found in the expected place. 5363 Please specify the correct path where OpenGL is installed on your system. 6176 5364 6177 5365 You can set '-' (without quotation) to CANCEL the OpenGL flag at all: … … 6203 5391 g4vis_build_openglwin32_driver=n 6204 5392 g4vis_use_openglwin32=n 5393 echo " " 6205 5394 6206 5395 fi … … 6209 5398 g4message=`cat << EOM 6210 5399 6211 OGLHOME/include 6212 OGLHOME/lib 6213 6214 You have selected to use OpenGL driver. 6215 But it was not found in $ans. 6216 Please specify the correct path where OpenGL is installed in your system. 5400 You have selected to build one or more drivers that require OpenGL. 5401 But OpenGL was not found in $ans. 5402 Please specify the correct path where OpenGL is installed on your system. 6217 5403 6218 5404 You can set '-' (without quotation) to CANCEL the OpenGL flag at all: … … 6252 5438 if test "x$g4ui_build_qt_session" = "xy" ; then 6253 5439 # Query the user to see if build of Qt GL module is needed 6254 g4message=`cat <<EOM 6255 6256 G4UI_BUILD_OPENGLQT_DRIVER 6257 G4UI_USE_OPENGLQT 6258 6259 Setting these variables will enable the building of the G4 OpenGL Qt based 6260 visualisation driver and the use of this driver in your applications 6261 respectively. 6262 The Qt3 or Qt4 headers, libraries and moc application are required to enable 6263 the building of this module. 6264 Do you want to enable build and use of this module? 6265 EOM` 5440 g4message="Enable building of the Qt OpenGL visualization driver?" 6266 5441 6267 5442 # Read in the user response … … 6290 5465 # 6291 5466 if test "x$g4vis_build_openglqt_driver" = "xy" ; then 6292 echo " "6293 5467 # NB Have to supply arg to qt script, just blank in this case! 6294 5468 qt_search_dir="" … … 6343 5517 fi #END TEST g4ui_none = n AND g4vis_none=n 6344 5518 6345 # 6346 # BEGIN GDML/XERCESC PROBE 6347 # 6348 6349 # Set default build option to no 5519 5520 # Now query the user to see if they want to build the GDML plugin 6350 5521 echo " " 6351 case "$g4lib_build_gdml" in 6352 '') 6353 g4lib_build_gdml=n 6354 ;; 6355 esac 6356 6357 6358 # Now query the user to see if they want to build the GDML plugin 6359 echo "" 6360 6361 g4message=`cat << EOM 6362 6363 G4LIB_BUILD_GDML 6364 6365 Setting this variable will enable building of the GDML plugin module embedded 6366 in Geant4 for detector description persistency. 6367 It requires your system to have the XercesC library and headers installed. 6368 Do you want to set this variable? 6369 6370 EOM` 6371 6372 # 6373 # read in the users response 6374 # 5522 echo "*OPTIONS FOR GEANT4 OPTIONAL EXTENSION MODULES*" 5523 5524 g4message="Enable the Geometry Description Markup Language (GDML) module?" 6375 5525 dflt=$g4lib_build_gdml 6376 5526 rp=$g4message … … 6406 5556 g4gdml_xercesc_root=`dirname $g4gdml_xercesc_root` 6407 5557 6408 echo " "6409 5558 echo "checking for XercesC install... $g4gdml_xercesc_root" 5559 echo " " 6410 5560 else 6411 5561 g4gdml_xercesc_root="" 6412 echo " "6413 5562 echo "checking for XercesC install... no" 6414 5563 fi … … 6444 5593 g4gdml_xercesc_root="" 6445 5594 echo "G4LIB_BUILD_GDML cancelled..." 5595 echo " " 6446 5596 promptend=yes 6447 5597 else … … 6449 5599 g4gdml_xercesc_root=$ans 6450 5600 echo "checking for XercesC install... $g4gdml_xercesc_root" 5601 echo " " 6451 5602 promptend=yes 6452 5603 else … … 6470 5621 #END OF GDML/XERCES PROBE 6471 5622 6472 # 6473 # Configure which make to use... 6474 # On WIN32, we have to watch for cygwin/Matlab clash 6475 # Here, cygwin supplies make, Matlab 'gmake', but we must select 6476 # cygwin make. 6477 # 6478 # Yes, we could use Loc's built in make, but want full control 6479 # for now.... 6480 # 6481 6482 echo " " 6483 6484 g4_make_loc="no" 6485 g4_gmake_loc="no" 6486 6487 g4_make_program=make 6488 g4_gmake_program=gmake 6489 6490 g4_check_make_msg="Checking for $g4_make_program..." 6491 g4_check_gmake_msg="Checking for $g4_gmake_program..." 6492 6493 g4_make_isgnu="no" 6494 g4_gmake_isgnu="no" 6495 6496 g4_make_dirs=`echo $PATH | sed 's/\:/ /g'` 6497 6498 # Check for 'make' on all systems 6499 g4_make_loc=`./loc $g4_make_program no $g4_make_dirs` 6500 echo "$g4_check_make_msg $g4_make_loc" 6501 6502 6503 # On anything but Windows, check for gmake as well 6504 if test "x$g4osname" != "xWIN32" ; then 6505 g4_gmake_loc=`./loc $g4_gmake_program no $g4_make_dirs` 6506 echo "$g4_check_gmake_msg $g4_gmake_loc" 6507 fi 6508 6509 6510 # Now see if make/gmake are GNU make. 6511 if test "x$g4_make_loc" != "xno" ; then 6512 g4_make_version=`$g4_make_loc -v 2>/dev/null` 6513 6514 case $g4_make_version in 6515 GNU*) 6516 g4_make_isgnu=yes 6517 ;; 6518 *) 6519 g4_make_isgnu=no 6520 ;; 6521 esac 6522 echo "Checking if make is GNU make... $g4_make_isgnu" 6523 fi 6524 6525 if test "x$g4osname" != "xWIN32" ; then 6526 if test "x$g4_gmake_loc" != "xno" ; then 6527 g4_gmake_version=`$g4_gmake_loc -v 2>/dev/null` 6528 6529 case $g4_gmake_version in 6530 GNU*) 6531 g4_gmake_isgnu=yes 6532 ;; 6533 *) 6534 g4_gmake_isgnu=no 6535 ;; 6536 esac 6537 echo "Checking if gmake is GNU make... $g4_gmake_isgnu" 6538 fi 6539 fi 6540 6541 # Now perform selection on following logic 6542 # 1) If we have gmake AND it's GNU make, use that 6543 # 2) If we have make AND it's GNU make, use that 6544 # 3) If none of the above, prompt user for path to make program 6545 if test "x$g4_gmake_loc" != "xno" -a "x$g4_gmake_isgnu" = "xyes" ; then 6546 g4make=$g4_gmake_loc 6547 elif test "x$g4_make_loc" != "xno" -a "x$g4_make_isgnu" = "xyes" ; then 6548 g4make=$g4_make_loc 6549 else 6550 g4_got_user_make="no" 6551 while test "x$g4_got_user_make" = "xno"; do 6552 g4message=`cat << EOM 6553 6554 G4MAKE 6555 6556 A GNU make program could not be located on your system. 6557 Please enter the full path to the GNU make program you 6558 want to use: 6559 EOM` 6560 dflt=$g4make 6561 rp=$g4message 6562 . ./myread 6563 gans=$ans 6564 6565 #Check if this is GNU make... 6566 g4_user_make_version=`$gans -v 2>/dev/null` 6567 6568 case $g4_user_make_version in 6569 "GNU Make"*) 6570 echo "Checking that $gans is GNU Make... yes" 6571 g4make=$gans 6572 g4_got_user_make=yes 6573 ;; 6574 *) 6575 echo "Checking that $gans is GNU Make... no" 6576 ;; 6577 esac 6578 done 6579 fi 6580 6581 6582 6583 echo " " 6584 case "$g4wlib_build_g3tog4" in 5623 case "$g4tmp" in 6585 5624 '') 6586 g4 wlib_build_g3tog4=n5625 g4tmp=$g4workdir/tmp 6587 5626 ;; 6588 5627 esac 6589 5628 6590 case "$g4 w_use_g3tog4" in5629 case "$g4lib" in 6591 5630 '') 6592 g4 w_use_g3tog4=n5631 g4lib=$g4workdir/lib 6593 5632 ;; 6594 5633 esac 6595 5634 6596 echo "" 6597 6598 g4message=`cat << EOM 6599 6600 G4LIB_BUILD_G3TOG4 6601 6602 The utility module 'g3tog4' will be built by setting this 6603 variable. NOTE: it requires a valid FORTRAN compiler to be 6604 installed on your system and the 'cernlib' command in the 6605 path, in order to build the ancillary tools! 6606 Do you want to build 'g3tog4' ? 6607 6608 EOM` 6609 5635 5636 5637 g4message="Enable build of the g3tog4 utility module?" 6610 5638 dflt=$g4wlib_build_g3tog4 6611 5639 rp=$g4message … … 6613 5641 gans=$ans 6614 5642 6615 case $gans in 6616 5643 case $gans in 6617 5644 n*|N*) 6618 5645 g4wlib_build_g3tog4=n … … 6623 5650 g4w_use_g3tog4=y 6624 5651 ;; 5652 esac 5653 5654 5655 # 5656 # On WIN32, if GL or Inventor drivers are built, we MUST 5657 # build zlib 5658 # 5659 if test "X$g4vis_build_oiwin32_driver" = "Xy" -o "X$g4vis_build_openglwin32_driver" = "Xy" ; then 5660 # Force build of ZLIB 5661 g4wlib_build_zlib='y' 5662 g4w_use_zlib='y' 5663 echo " " 5664 echo "Configure: Auto-enable builtin zlib to support WIN32 visualization drivers" 5665 echo " " 5666 else 5667 g4message="Enable internal zlib compression for HepRep visualization?" 5668 dflt=$g4wlib_build_zlib 5669 rp=$g4message 5670 . ./myread 5671 gans=$ans 5672 5673 case $gans in 5674 n*|N*) 5675 g4wlib_build_zlib=n 5676 g4w_use_zlib=n 5677 ;; 5678 y*|Y*) 5679 g4wlib_build_zlib=y 5680 g4w_use_zlib=y 5681 ;; 6625 5682 esac 6626 6627 6628 echo " " 6629 case "$g4wlib_build_zlib" in 6630 '') 6631 g4wlib_build_zlib=n 6632 ;; 6633 esac 6634 6635 case "$g4w_use_zlib" in 6636 '') 6637 g4w_use_zlib=n 6638 ;; 6639 esac 6640 6641 echo "" 6642 6643 g4message=`cat << EOM 6644 6645 G4LIB_BUILD_ZLIB 6646 6647 Do you want to activate compression for output files 6648 generated by the HepRep visualization driver? 6649 6650 EOM` 6651 6652 dflt=$g4wlib_build_zlib 6653 rp=$g4message 6654 . ./myread 6655 gans=$ans 6656 6657 case $gans in 6658 6659 n*|N*) 6660 g4wlib_build_zlib=n 6661 g4w_use_zlib=n 6662 ;; 6663 y*|Y*) 6664 g4wlib_build_zlib=y 6665 g4w_use_zlib=y 6666 ;; 6667 esac 6668 6669 6670 echo " " 6671 6672 case "$g4wanalysis_use" in 6673 '') 6674 g4wanalysis_use=n 6675 ;; 6676 esac 6677 6678 echo "" 6679 6680 g4message=`cat << EOM 6681 6682 G4ANALYSIS_USE 6683 6684 Activates the configuration setup for allowing plugins to 6685 analysis tools based on AIDA (Astract Interfaces for Data 6686 Analysis). In order to use AIDA features and compliant analysis 6687 tools, the proper environment for these tools will have to be 6688 set (see documentation for the specific analysis tools). 6689 EOM` 6690 6691 dflt=$g4wanalysis_use 6692 rp=$g4message 6693 . ./myread 6694 gans=$ans 6695 6696 case $gans in 6697 6698 n*|N*) 6699 g4wanalysis_use=n 6700 ;; 6701 y*|Y*) 6702 g4wanalysis_use=y 6703 ;; 6704 esac 6705 6706 5683 fi 6707 5684 : end of configuration questions 6708 5685 echo " " … … 6874 5851 g4w_use_g3tog4='$g4w_use_g3tog4' 6875 5852 g4w_use_zlib='$g4w_use_zlib' 6876 g4wanalysis_build='$g4wanalysis_build'6877 g4wanalysis_build_jas='$g4wanalysis_build_jas'6878 g4wanalysis_build_lab='$g4wanalysis_build_lab'6879 g4wanalysis_build_lizard='$g4wanalysis_build_lizard'6880 g4wanalysis_use='$g4wanalysis_use'6881 g4wanalysis_use_jas='$g4wanalysis_use_jas'6882 g4wanalysis_use_lab='$g4wanalysis_use_lab'6883 g4wanalysis_use_lizard='$g4wanalysis_use_lizard'6884 5853 g4wlib_build_g3tog4='$g4wlib_build_g3tog4' 6885 5854 g4wlib_build_zlib='$g4wlib_build_zlib' -
trunk/config/History
r1185 r1195 1 cvs log $Id: History,v 1.3 68 2009/11/17 15:17:55gcosmo Exp $1 cvs log $Id: History,v 1.370 2009/11/18 17:33:22 gcosmo Exp $ 2 2 ------------------------------------------------------------------- 3 3 … … 16 16 * Reverse chronological order (last date on top), please * 17 17 ---------------------------------------------------------- 18 19 18th November 2009 Gabriele Cosmo (config-V09-02-15) 20 - architecture.gmk: corrected inclusion of -lz for zlib. 21 - WIN32-VC.gmk: added gd32.lib to OGLLIBS. 18 22 19 23 17th November 2009 Gabriele Cosmo (config-V09-02-14) -
trunk/config/binmake.gmk
r1162 r1195 1 # $Id: binmake.gmk,v 1.14 1 2009/06/17 16:37:41 gunterExp $1 # $Id: binmake.gmk,v 1.143 2009/11/17 15:17:17 gcosmo Exp $ 2 2 # ---------------------------------------------------------- 3 3 # Script defining rules and paths for making binaries. … … 87 87 -I$(G4BASE)/processes/hadronic/models/cascade/utils/include \ 88 88 -I$(G4BASE)/processes/hadronic/models/chiral_inv_phase_space/body/include \ 89 -I$(G4BASE)/processes/hadronic/models/chiral_inv_phase_space/cross_sections/include \ 90 -I$(G4BASE)/processes/hadronic/models/chiral_inv_phase_space/fragmentation/include \ 89 91 -I$(G4BASE)/processes/hadronic/models/chiral_inv_phase_space/interface/include \ 92 -I$(G4BASE)/processes/hadronic/models/chiral_inv_phase_space/processes/include \ 93 -I$(G4BASE)/processes/hadronic/models/chiral_inv_phase_space/xs_dependent/include \ 90 94 -I$(G4BASE)/processes/hadronic/models/coherent_elastic/include \ 91 95 -I$(G4BASE)/processes/hadronic/models/de_excitation/ablation/include \ … … 231 235 -lG4intercoms \ 232 236 -lG4global 237 238 ifdef G4LIB_USE_ZLIB 239 LDLIBS2 += -lG4zlib 240 endif 241 233 242 else 234 243 # The next lines specifically should read LDLIBS2 = , not LDLIBS2 :=, so … … 257 266 endif 258 267 259 ifdef G4LIB_USE_ZLIB260 LDLIBS2 += -lG4zlib261 endif262 263 268 # LDLIBS3 contains the first set of low level libraries... 264 269 # … … 336 341 ifndef GLOBALLIBS 337 342 @echo "Using granular libraries ..." 343 @echo $(G4TMP) 338 344 @if [ ! \( -f $(G4LIB)/$(G4SYSTEM)/liblist \ 339 345 -a -f $(G4LIB)/$(G4SYSTEM)/libname.map \) ]; then \ … … 353 359 @if [ ! -d $(G4BINDIR) ] ; then mkdir $(G4BINDIR) ;fi 354 360 ifdef CPPVERBOSE 355 echo Linking 1 $(LDLIBS1); \356 echo Linking 2 $(LDLIBS2); \357 echo Linking 3 $(LDLIBS3); \358 echo Linking 4 $(LDLIBS4); \359 echo G4TMPDIR $(G4TMPDIR); \360 361 361 $(CXX) $(CXXFLAGS) $(CPPFLAGS) \ 362 362 $(OUT)$(G4BINDIR)/$(G4TARGET) $(objects) $(LDFLAGS) \ -
trunk/config/scripts/env.csh.SH
r1045 r1195 41 41 unsetenv G4RADIOACTIVEDATA 42 42 unsetenv G4ABLADATA 43 unsetenv G4REALSURFACEDATA 43 44 44 45 unsetenv G4LIB … … 54 55 unsetenv G4SYSTEM 55 56 57 unsetenv G4UI_NONE 56 58 unsetenv G4UI_BUILD_WIN32_SESSION 57 59 unsetenv G4UI_BUILD_XAW_SESSION … … 63 65 unsetenv G4UI_USE_QT 64 66 67 unsetenv G4VIS_NONE 65 68 unsetenv G4VIS_BUILD_DAWN_DRIVER 66 69 unsetenv G4VIS_BUILD_OIWIN32_DRIVER … … 156 159 endif 157 160 158 159 #+ 160 #if ( X$g4elasticdata != X ) then 161 #setenv G4ELASTICDATA "$g4elasticdata"162 #echo "On this machine the G4ELASTICDATA=\$G4ELASTICDATA" 163 #endif 161 #+ 162 if ( X$g4realsurfacedata != X ) then 163 setenv G4REALSURFACEDATA "$g4realsurfacedata" 164 echo "On this machine the G4REALSURFACEDATA=\$G4REALSURFACEDATA" 165 endif 166 164 167 165 168 # … … 211 214 # 212 215 #+ 216 if ( X$g4ui_none == Xy ) then 217 setenv G4UI_NONE 1 218 echo "On this machine G4UI_NONE is set, so no user interfaces are available" 219 endif 220 221 # Check for Windows! 222 if ( "X\$G4SYSTEM" != "XWIN32-VC" && "X\$G4SYSTEM" != "XWIN32-VC7" ) then 223 if ( X$g4ui_none != Xy ) then 224 setenv G4UI_USE_TCSH 1 225 echo "On this machine the G4UI_USE_TCSH=\$G4UI_USE_TCSH" 226 endif 227 endif 228 229 #+ 213 230 if ( X$g4ui_build_xaw_session == Xy ) then 214 231 setenv G4UI_BUILD_XAW_SESSION 1 … … 263 280 # g4vis 264 281 # 282 #+ 283 if ( X$g4vis_none == Xy ) then 284 setenv G4VIS_NONE 1 285 echo "On this machine G4VIS_NONE is set, so no vis drivers are available" 286 endif 287 265 288 #+ 266 289 if ( X$g4vis_build_dawn_driver == Xy ) then … … 520 543 setenv G4LIB_USE_GRANULAR 1 521 544 echo "On this machine the G4LIB_USE_GRANULAR=\$G4LIB_USE_GRANULAR" 522 endif523 524 # Check for Windows!525 if ( "X\$G4SYSTEM" != "XWIN32-VC" && "X\$G4SYSTEM" != "XWIN32-VC7" ) then526 setenv G4UI_USE_TCSH 1527 echo "On this machine the G4UI_USE_TCSH=\$G4UI_USE_TCSH"528 545 endif 529 546 -
trunk/config/scripts/env.sh.SH
r1045 r1195 41 41 unset G4RADIOACTIVEDATA 42 42 unset G4ABLADATA 43 unset G4REALSURFACEDATA 43 44 44 45 unset G4LIB … … 54 55 unset G4SYSTEM 55 56 57 unset G4UI_NONE 56 58 unset G4UI_BUILD_WIN32_SESSION 57 59 unset G4UI_BUILD_XAW_SESSION … … 63 65 unset G4UI_USE_QT 64 66 67 68 unset G4VIS_NONE 65 69 unset G4VIS_BUILD_DAWN_DRIVER 66 70 unset G4VIS_BUILD_OIWIN32_DRIVER … … 185 189 fi 186 190 187 188 189 190 #+ 191 #if [ X$g4elasticdata != X ] ; then 192 #G4ELASTICDATA="$g4elasticdata" 193 #export G4ELASTICDATA 194 #if [ X\$g4non_display = X ] ; then 195 #echo "On this machine the G4ELASTICDATA=\$G4ELASTICDATA" 196 #fi 197 #fi 191 #+ 192 if [ X$g4realsurfacedata != X ] ; then 193 G4REALSURFACEDATA="$g4realsurfacedata" 194 export G4REALSURFACEDATA 195 if [ X\$g4non_display = X ] ; then 196 echo "On this machine the G4REALSURFACEDATA=\$G4REALSURFACEDATA" 197 fi 198 fi 198 199 199 200 # … … 263 264 # 264 265 #+ 266 if [ X$g4ui_none = Xy ] ; then 267 G4UI_NONE=1 268 export G4UI_NONE 269 if [ X\$g4non_display = X ] ; then 270 echo "On this machine, G4UI_NONE is set, so no user interfaces are available" 271 fi 272 fi 273 274 275 # Check for Windows! 276 if test "X\$G4SYSTEM" != "XWIN32-VC" -a "X\$G4SYSTEM" != "XWIN32-VC7"; then 277 #+ 278 # 279 # UI_USE_TCSH for Unix 280 # 281 if [ X$g4ui_none != Xy ] ; then 282 G4UI_USE_TCSH=1 283 export G4UI_USE_TCSH 284 if [ X\$g4non_display = X ] ; then 285 echo "On this machine the G4UI_USE_TCSH=\$G4UI_USE_TCSH" 286 fi 287 fi 288 fi 289 290 291 #+ 265 292 if [ X$g4ui_build_xaw_session = Xy ] ; then 266 293 G4UI_BUILD_XAW_SESSION=1 … … 340 367 # g4vis 341 368 # 369 #+ 370 if [ X$g4vis_none = Xy ] ; then 371 G4VIS_NONE=1 372 export G4VIS_NONE 373 if [ X\$g4non_display = X ] ; then 374 echo "On this machine G4VIS_NONE is set, so no vis drivers are available" 375 fi 376 fi 377 342 378 #+ 343 379 if [ X$g4vis_build_dawn_driver = Xy ] ; then … … 715 751 fi 716 752 717 # Check for Windows!718 if test "X\$G4SYSTEM" != "XWIN32-VC" -a "X\$G4SYSTEM" != "XWIN32-VC7"; then719 #+720 #721 # UI_USE_TCSH for Unix722 #723 G4UI_USE_TCSH=1724 export G4UI_USE_TCSH725 if [ X\$g4non_display = X ] ; then726 echo "On this machine the G4UI_USE_TCSH=\$G4UI_USE_TCSH"727 fi728 fi729 753 730 754 ##################################################################### -
trunk/config/scripts/install.sh.SH
r886 r1195 54 54 unset G4SYSTEM 55 55 56 unset G4UI_NONE 56 57 unset G4UI_BUILD_WIN32_SESSION 57 58 unset G4UI_BUILD_XAW_SESSION … … 64 65 unset G4UI_USE_QT 65 66 67 unset G4VIS_NONE 66 68 unset G4VIS_BUILD_DAWN_DRIVER 67 69 unset G4VIS_BUILD_OIWIN32_DRIVER … … 233 235 # 234 236 #+ 237 if [ X$g4ui_none = Xy ] ; then 238 G4UI_NONE=1 239 export G4UI_NONE 240 echo "On this machine G4UI_NONE is set - no UIs will be built" 241 242 else 243 echo "On this machine G4UI_NONE is not set - following UIs will be built:" 244 245 #+ 235 246 if [ X$g4ui_build_xaw_session = Xy ] ; then 236 247 G4UI_BUILD_XAW_SESSION=1 … … 289 300 fi 290 301 302 fi 303 # END OF G4UI_NONE block 291 304 292 305 # 293 306 # g4vis 294 307 # 308 #+ 309 if [ X$g4vis_none = Xy ] ; then 310 G4VIS_NONE=1 311 export G4VIS_NONE 312 echo "On this machine G4VIS_NONE is set - no drivers will be built" 313 314 else 315 echo "On this machine G4VIS_NONE is not set - following drivers will be built:" 316 295 317 #+ 296 318 if [ X$g4vis_build_dawn_driver = Xy ] ; then … … 422 444 423 445 424 446 fi 447 # End of G4VIS_NONE block 425 448 426 449
Note: See TracChangeset
for help on using the changeset viewer.