[472] | 1 | case $CONFIG in |
---|
| 2 | '') |
---|
| 3 | if test -f config.sh; then TOP=.; |
---|
| 4 | elif test -f ../config.sh; then TOP=..; |
---|
| 5 | elif test -f ../../config.sh; then TOP=../..; |
---|
| 6 | elif test -f ../../../config.sh; then TOP=../../..; |
---|
| 7 | elif test -f ../../../../config.sh; then TOP=../../../..; |
---|
| 8 | else |
---|
| 9 | echo "Can't find config.sh."; exit 1 |
---|
| 10 | fi |
---|
| 11 | . $TOP/config.sh |
---|
| 12 | ;; |
---|
| 13 | esac |
---|
| 14 | : This forces SH files to create target in same directory as SH file. |
---|
| 15 | : This is so that make depend always knows where to find SH derivatives. |
---|
| 16 | case "$0" in |
---|
| 17 | */*) cd `expr X$0 : 'X\(.*\)/'` ;; |
---|
| 18 | esac |
---|
| 19 | #echo "Extracting env.csh (with variable substitutions)" |
---|
| 20 | : This section of the file will have variable substitutions done on it. |
---|
| 21 | : Move anything that needs config subs from !NO!SUBS! section to !GROK!THIS!. |
---|
| 22 | : Protect any dollar signs and backticks that you do not want interpreted |
---|
| 23 | : by putting a backslash in front. You may delete these comments. |
---|
| 24 | $spitshell >env.csh <<!GROK!THIS! |
---|
| 25 | ###################################### |
---|
| 26 | # |
---|
[483] | 27 | # Clean all G4 envs |
---|
| 28 | unsetenv CLHEP_BASE_DIR |
---|
| 29 | unsetenv CLHEP_INCLUDE_DIR |
---|
| 30 | unsetenv CLHEP_LIB |
---|
| 31 | unsetenv CLHEP_LIB_DIR |
---|
| 32 | |
---|
| 33 | unsetenv G4ANALYSIS_USE |
---|
| 34 | unsetenv G4DEBUG |
---|
| 35 | unsetenv G4INCLUDE |
---|
| 36 | unsetenv G4INSTALL |
---|
| 37 | |
---|
| 38 | unsetenv G4LEDATA |
---|
| 39 | unsetenv G4LEVELGAMMADATA |
---|
[593] | 40 | unsetenv G4NEUTRONHPDATA |
---|
[483] | 41 | unsetenv G4RADIOACTIVEDATA |
---|
[606] | 42 | unsetenv G4ABLADATA |
---|
[483] | 43 | |
---|
| 44 | unsetenv G4LIB |
---|
| 45 | unsetenv G4LIB_BUILD_G3TOG4 |
---|
| 46 | unsetenv G4LIB_BUILD_SHARED |
---|
| 47 | unsetenv G4LIB_BUILD_STATIC |
---|
| 48 | unsetenv G4LIB_BUILD_ZLIB |
---|
[606] | 49 | unsetenv G4LIB_BUILD_GDML |
---|
[483] | 50 | unsetenv G4LIB_USE_G3TOG4 |
---|
| 51 | unsetenv G4LIB_USE_GRANULAR |
---|
| 52 | unsetenv G4LIB_USE_ZLIB |
---|
| 53 | |
---|
| 54 | unsetenv G4SYSTEM |
---|
| 55 | |
---|
| 56 | unsetenv G4UI_BUILD_WIN32_SESSION |
---|
| 57 | unsetenv G4UI_BUILD_XAW_SESSION |
---|
| 58 | unsetenv G4UI_BUILD_XM_SESSION |
---|
| 59 | unsetenv G4UI_USE_TCSH |
---|
| 60 | unsetenv G4UI_USE_WIN32 |
---|
| 61 | unsetenv G4UI_USE_XAW |
---|
| 62 | unsetenv G4UI_USE_XM |
---|
| 63 | |
---|
| 64 | unsetenv G4VIS_BUILD_DAWN_DRIVER |
---|
| 65 | unsetenv G4VIS_BUILD_OIWIN32_DRIVER |
---|
| 66 | unsetenv G4VIS_BUILD_OIX_DRIVER |
---|
| 67 | unsetenv G4VIS_BUILD_OPENGLWIN32_DRIVER |
---|
| 68 | unsetenv G4VIS_BUILD_OPENGLXM_DRIVER |
---|
| 69 | unsetenv G4VIS_BUILD_OPENGLX_DRIVER |
---|
| 70 | unsetenv G4VIS_BUILD_RAYTRACERX_DRIVER |
---|
| 71 | unsetenv G4VIS_BUILD_VRML_DRIVER |
---|
| 72 | |
---|
| 73 | unsetenv G4VIS_USE_DAWN |
---|
| 74 | unsetenv G4VIS_USE_OIWIN32 |
---|
| 75 | unsetenv G4VIS_USE_OIX |
---|
| 76 | unsetenv G4VIS_USE_OPENGLWIN32 |
---|
| 77 | unsetenv G4VIS_USE_OPENGLX |
---|
| 78 | unsetenv G4VIS_USE_OPENGLXM |
---|
| 79 | unsetenv G4VIS_USE_RAYTRACERX |
---|
| 80 | unsetenv G4VIS_USE_VRML |
---|
| 81 | |
---|
| 82 | ###################################### |
---|
| 83 | # |
---|
[472] | 84 | # g4system.U |
---|
| 85 | # |
---|
| 86 | #+ |
---|
| 87 | setenv G4SYSTEM "$g4system" |
---|
| 88 | echo "On this machine the G4SYSTEM=\$G4SYSTEM" |
---|
| 89 | |
---|
| 90 | # |
---|
| 91 | # g4dirs.U |
---|
| 92 | # |
---|
| 93 | #+ |
---|
| 94 | if ( X$g4install != X$g4final_install ) then |
---|
| 95 | setenv G4INSTALL "$g4final_install/src/geant4" |
---|
| 96 | echo "On this machine the G4INSTALL=\$G4INSTALL" |
---|
| 97 | else |
---|
| 98 | setenv G4INSTALL "$g4install" |
---|
| 99 | echo "On this machine the G4INSTALL=\$G4INSTALL" |
---|
| 100 | endif |
---|
| 101 | |
---|
| 102 | #+ |
---|
| 103 | if ( X$g4includes_flag != Xn ) then |
---|
| 104 | if ( X$g4install != X$g4final_install ) then |
---|
| 105 | setenv G4INCLUDE "$g4final_install/include/geant4" |
---|
| 106 | else |
---|
| 107 | setenv G4INCLUDE "$g4final_install/include" |
---|
| 108 | endif |
---|
| 109 | echo "On this machine the G4INCLUDE=\$G4INCLUDE" |
---|
| 110 | #else |
---|
| 111 | #setenv G4BASE "$g4final_install/include/geant4/source" |
---|
| 112 | #echo "On this machine the G4BASE=\$G4BASE" |
---|
| 113 | endif |
---|
| 114 | |
---|
| 115 | #+ |
---|
| 116 | if ( X$g4lib != X ) then |
---|
| 117 | if ( X$g4install != X$g4final_install ) then |
---|
| 118 | setenv G4LIB "$g4final_install/lib/geant4" |
---|
| 119 | else |
---|
| 120 | setenv G4LIB "$g4final_install/lib" |
---|
| 121 | endif |
---|
| 122 | echo "On this machine the G4LIB=\$G4LIB" |
---|
| 123 | endif |
---|
| 124 | |
---|
| 125 | #+ |
---|
| 126 | if ( X$g4levelgammadata != X ) then |
---|
| 127 | setenv G4LEVELGAMMADATA "$g4levelgammadata" |
---|
| 128 | echo "On this machine the G4LEVELGAMMADATA=\$G4LEVELGAMMADATA" |
---|
| 129 | endif |
---|
| 130 | |
---|
| 131 | #+ |
---|
| 132 | if ( X$g4radioactivedata != X ) then |
---|
| 133 | setenv G4RADIOACTIVEDATA "$g4radioactivedata" |
---|
| 134 | echo "On this machine the G4RADIOACTIVEDATA=\$G4RADIOACTIVEDATA" |
---|
| 135 | endif |
---|
| 136 | |
---|
| 137 | #+ |
---|
| 138 | if ( X$g4ledata != X ) then |
---|
| 139 | setenv G4LEDATA "$g4ledata" |
---|
| 140 | echo "On this machine the G4LEDATA=\$G4LEDATA" |
---|
| 141 | endif |
---|
| 142 | |
---|
| 143 | #+ |
---|
| 144 | if ( X$g4neutronhpcrosssections != X ) then |
---|
[593] | 145 | setenv G4NEUTRONHPDATA "$g4neutronhpcrosssections" |
---|
| 146 | echo "On this machine the G4NEUTRONHPDATA=\$G4NEUTRONHPDATA" |
---|
[472] | 147 | endif |
---|
| 148 | |
---|
| 149 | #+ |
---|
[606] | 150 | if ( X$g4abladata != X ) then |
---|
| 151 | setenv G4ABLADATA "$g4abladata" |
---|
| 152 | echo "On this machine the G4ABLADATA=\$G4ABLADATA" |
---|
| 153 | endif |
---|
| 154 | |
---|
| 155 | |
---|
| 156 | #+ |
---|
[483] | 157 | #if ( X$g4elasticdata != X ) then |
---|
| 158 | #setenv G4ELASTICDATA "$g4elasticdata" |
---|
| 159 | #echo "On this machine the G4ELASTICDATA=\$G4ELASTICDATA" |
---|
| 160 | #endif |
---|
[472] | 161 | |
---|
| 162 | # |
---|
| 163 | # g4clhep.U |
---|
| 164 | # |
---|
| 165 | if ( X$g4clhep_base_dir != X ) then |
---|
| 166 | setenv CLHEP_BASE_DIR "$g4clhep_base_dir" |
---|
| 167 | echo "On this machine the CLHEP_BASE_DIR=\$CLHEP_BASE_DIR" |
---|
| 168 | endif |
---|
| 169 | |
---|
| 170 | #+ |
---|
| 171 | if ( X$g4clhep_include_dir != X ) then |
---|
| 172 | setenv CLHEP_INCLUDE_DIR "$g4clhep_include_dir" |
---|
| 173 | echo "On this machine the CLHEP_INCLUDE_DIR=\$CLHEP_INCLUDE_DIR" |
---|
| 174 | endif |
---|
| 175 | |
---|
| 176 | #+ |
---|
| 177 | if ( X$g4clhep_lib_dir != X ) then |
---|
| 178 | setenv CLHEP_LIB_DIR "$g4clhep_lib_dir" |
---|
| 179 | echo "On this machine the CLHEP_LIB_DIR=\$CLHEP_LIB_DIR" |
---|
| 180 | endif |
---|
| 181 | |
---|
| 182 | #+ |
---|
| 183 | if ( X$g4clhep_lib != X ) then |
---|
| 184 | setenv CLHEP_LIB "$g4clhep_lib" |
---|
| 185 | echo "On this machine the CLHEP_LIB=\$CLHEP_LIB" |
---|
| 186 | endif |
---|
| 187 | |
---|
| 188 | #+ |
---|
| 189 | # |
---|
| 190 | # g4debug |
---|
| 191 | # |
---|
[483] | 192 | if ( X$g4debug == Xy ) then |
---|
| 193 | setenv G4DEBUG 1 |
---|
[472] | 194 | echo "On this machine the G4DEBUG=\$G4DEBUG" |
---|
| 195 | endif |
---|
| 196 | |
---|
| 197 | # |
---|
| 198 | # g4analysis |
---|
| 199 | # |
---|
| 200 | #+ |
---|
| 201 | if ( X$g4wanalysis_use == Xy ) then |
---|
| 202 | setenv G4ANALYSIS_USE 1 |
---|
| 203 | echo "On this machine the G4ANALYSIS_USE=\$G4ANALYSIS_USE" |
---|
| 204 | endif |
---|
| 205 | |
---|
| 206 | # |
---|
| 207 | # g4ui |
---|
| 208 | # |
---|
| 209 | #+ |
---|
| 210 | if ( X$g4ui_build_xaw_session == Xy ) then |
---|
| 211 | setenv G4UI_BUILD_XAW_SESSION 1 |
---|
| 212 | echo "On this machine the G4UI_BUILD_XAW_SESSION=\$G4UI_BUILD_XAW_SESSION" |
---|
| 213 | endif |
---|
| 214 | |
---|
| 215 | #+ |
---|
| 216 | if ( X$g4ui_use_xaw == Xy ) then |
---|
| 217 | setenv G4UI_USE_XAW 1 |
---|
| 218 | echo "On this machine the G4UI_USE_XAW=\$G4UI_USE_XAW" |
---|
| 219 | endif |
---|
| 220 | |
---|
| 221 | #+ |
---|
| 222 | if ( X$g4ui_build_xm_session == Xy ) then |
---|
| 223 | setenv G4UI_BUILD_XM_SESSION 1 |
---|
| 224 | echo "On this machine the G4UI_BUILD_XM_SESSION=\$G4UI_BUILD_XM_SESSION" |
---|
| 225 | endif |
---|
| 226 | |
---|
| 227 | #+ |
---|
| 228 | if ( X$g4ui_use_xm == Xy ) then |
---|
| 229 | setenv G4UI_USE_XM 1 |
---|
| 230 | echo "On this machine the G4UI_USE_XM=\$G4UI_USE_XM" |
---|
| 231 | endif |
---|
| 232 | |
---|
| 233 | #+ |
---|
| 234 | if ( X$g4ui_build_win32_session == Xy ) then |
---|
| 235 | setenv G4UI_BUILD_WIN32_SESSION 1 |
---|
| 236 | echo "On this machine the G4UI_BUILD_WIN32_SESSION=\$G4UI_BUILD_WIN32_SESSION" |
---|
| 237 | endif |
---|
| 238 | |
---|
| 239 | #+ |
---|
| 240 | if ( X$g4ui_use_win32 == Xy ) then |
---|
| 241 | setenv G4UI_USE_WIN32 1 |
---|
| 242 | echo "On this machine the G4UI_USE_WIN32=\$G4UI_USE_WIN32" |
---|
| 243 | endif |
---|
| 244 | |
---|
| 245 | # |
---|
| 246 | # g4vis |
---|
| 247 | # |
---|
| 248 | #+ |
---|
| 249 | if ( X$g4vis_build_dawn_driver == Xy ) then |
---|
| 250 | setenv G4VIS_BUILD_DAWN_DRIVER 1 |
---|
| 251 | echo "On this machine the G4VIS_BUILD_DAWN_DRIVER=\$G4VIS_BUILD_DAWN_DRIVER" |
---|
| 252 | endif |
---|
| 253 | |
---|
| 254 | #+ |
---|
| 255 | if ( X$g4vis_build_openglx_driver == Xy ) then |
---|
| 256 | setenv G4VIS_BUILD_OPENGLX_DRIVER 1 |
---|
| 257 | echo "On this machine the G4VIS_BUILD_OPENGLX_DRIVER=\$G4VIS_BUILD_OPENGLX_DRIVER" |
---|
| 258 | endif |
---|
| 259 | |
---|
| 260 | #+ |
---|
| 261 | if ( X$g4vis_build_openglxm_driver == Xy ) then |
---|
| 262 | setenv G4VIS_BUILD_OPENGLXM_DRIVER 1 |
---|
| 263 | echo "On this machine the G4VIS_BUILD_OPENGLXM_DRIVER=\$G4VIS_BUILD_OPENGLXM_DRIVER" |
---|
| 264 | endif |
---|
| 265 | |
---|
| 266 | #+ |
---|
| 267 | if ( X$g4vis_build_openglwin32_driver == Xy ) then |
---|
| 268 | setenv G4VIS_BUILD_OPENGLWIN32_DRIVER 1 |
---|
| 269 | echo "On this machine the G4VIS_BUILD_OPENGLWIN32_DRIVER=\$G4VIS_BUILD_OPENGLWIN32_DRIVER" |
---|
| 270 | endif |
---|
| 271 | |
---|
| 272 | #+ |
---|
| 273 | if ( X$g4vis_build_oix_driver == Xy ) then |
---|
| 274 | setenv G4VIS_BUILD_OIX_DRIVER 1 |
---|
| 275 | echo "On this machine the G4VIS_BUILD_OIX_DRIVER=\$G4VIS_BUILD_OIX_DRIVER" |
---|
| 276 | endif |
---|
| 277 | |
---|
| 278 | #+ |
---|
| 279 | if ( X$g4vis_build_raytracerx_driver == Xy ) then |
---|
| 280 | setenv G4VIS_BUILD_RAYTRACERX_DRIVER 1 |
---|
| 281 | echo "On this machine the G4VIS_BUILD_RAYTRACERX_DRIVER=\$G4VIS_BUILD_RAYTRACERX_DRIVER" |
---|
| 282 | endif |
---|
| 283 | |
---|
| 284 | #+ |
---|
| 285 | if ( X$g4vis_build_oiwin32_driver == Xy ) then |
---|
| 286 | setenv G4VIS_BUILD_OIWIN32_DRIVER 1 |
---|
| 287 | echo "On this machine the G4VIS_BUILD_OIWIN32_DRIVER=\$G4VIS_BUILD_OIWIN32_DRIVER" |
---|
| 288 | endif |
---|
| 289 | |
---|
| 290 | #+ |
---|
| 291 | if ( X$g4vis_build_vrml_driver == Xy ) then |
---|
| 292 | setenv G4VIS_BUILD_VRML_DRIVER 1 |
---|
| 293 | echo "On this machine the G4VIS_BUILD_VRML_DRIVER=\$G4VIS_BUILD_VRML_DRIVER" |
---|
| 294 | endif |
---|
| 295 | |
---|
| 296 | #+ |
---|
| 297 | if ( X$g4vis_use_dawn == Xy ) then |
---|
| 298 | setenv G4VIS_USE_DAWN 1 |
---|
| 299 | echo "On this machine the G4VIS_USE_DAWN=\$G4VIS_USE_DAWN" |
---|
| 300 | endif |
---|
| 301 | |
---|
| 302 | #+ |
---|
| 303 | if ( X$g4vis_use_openglx == Xy ) then |
---|
| 304 | setenv G4VIS_USE_OPENGLX 1 |
---|
| 305 | echo "On this machine the G4VIS_USE_OPENGLX=\$G4VIS_USE_OPENGLX" |
---|
| 306 | endif |
---|
| 307 | |
---|
| 308 | #+ |
---|
| 309 | if ( X$g4vis_use_openglxm == Xy ) then |
---|
| 310 | setenv G4VIS_USE_OPENGLXM 1 |
---|
| 311 | echo "On this machine the G4VIS_USE_OPENGLXM=\$G4VIS_USE_OPENGLXM" |
---|
| 312 | endif |
---|
| 313 | |
---|
| 314 | #+ |
---|
| 315 | if ( X$g4vis_use_openglwin32 == Xy ) then |
---|
| 316 | setenv G4VIS_USE_OPENGLWIN32 1 |
---|
| 317 | echo "On this machine the G4VIS_USE_OPENGLWIN32=\$G4VIS_USE_OPENGLWIN32" |
---|
| 318 | endif |
---|
| 319 | |
---|
| 320 | #+ |
---|
| 321 | if ( X$g4vis_use_oix == Xy ) then |
---|
| 322 | setenv G4VIS_USE_OIX 1 |
---|
| 323 | echo "On this machine the G4VIS_USE_OIX=\$G4VIS_USE_OIX" |
---|
| 324 | endif |
---|
| 325 | |
---|
| 326 | #+ |
---|
| 327 | if ( X$g4vis_use_raytracerx == Xy ) then |
---|
| 328 | setenv G4VIS_USE_RAYTRACERX 1 |
---|
| 329 | echo "On this machine the G4VIS_USE_RAYTRACERX=\$G4VIS_USE_RAYTRACERX" |
---|
| 330 | endif |
---|
| 331 | |
---|
| 332 | #+ |
---|
| 333 | if ( X$g4vis_use_oiwin32 == Xy ) then |
---|
| 334 | setenv G4VIS_USE_OIWIN32 1 |
---|
| 335 | echo "On this machine the G4VIS_USE_OIWIN32=\$G4VIS_USE_OIWIN32" |
---|
| 336 | endif |
---|
| 337 | |
---|
| 338 | #+ |
---|
| 339 | if ( X$g4vis_use_vrml == Xy ) then |
---|
| 340 | setenv G4VIS_USE_VRML 1 |
---|
| 341 | echo "On this machine the G4VIS_USE_VRML=\$G4VIS_USE_VRML" |
---|
| 342 | endif |
---|
| 343 | |
---|
| 344 | #+ |
---|
| 345 | if ( X$g4vis_oglhome != X ) then |
---|
| 346 | setenv OGLHOME "$g4vis_oglhome" |
---|
| 347 | echo "On this machine the OGLHOME=\$OGLHOME" |
---|
| 348 | endif |
---|
| 349 | |
---|
| 350 | #+ |
---|
| 351 | if ( X$g4vis_oivhome != X ) then |
---|
| 352 | setenv OIVHOME "$g4vis_oivhome" |
---|
| 353 | echo "On this machine the OIVHOME=\$OIVHOME" |
---|
| 354 | endif |
---|
| 355 | |
---|
| 356 | #+ |
---|
| 357 | if ( X$g4vis_build_openglxm_driver != X ) then |
---|
| 358 | setenv XMFLAGS "$g4vis_xmflags" |
---|
| 359 | echo "On this machine the XMFLAGS=\$XMFLAGS" |
---|
| 360 | endif |
---|
| 361 | |
---|
| 362 | #+ |
---|
| 363 | if ( X$g4vis_build_openglxm_driver != X ) then |
---|
| 364 | setenv XMLIBS "$g4vis_xmlibs" |
---|
| 365 | echo "On this machine the XMLIBS=\$XMLIBS" |
---|
| 366 | endif |
---|
| 367 | |
---|
| 368 | #+ |
---|
| 369 | if ( X$g4ui_build_xm_session != X ) then |
---|
| 370 | setenv XMFLAGS "$g4vis_xmflags" |
---|
| 371 | echo "On this machine the XMFLAGS=\$XMFLAGS" |
---|
| 372 | endif |
---|
| 373 | |
---|
| 374 | #+ |
---|
| 375 | if ( X$g4ui_build_xm_session != X ) then |
---|
| 376 | setenv XMLIBS "$g4vis_xmlibs" |
---|
| 377 | echo "On this machine the XMLIBS=\$XMLIBS" |
---|
| 378 | endif |
---|
| 379 | |
---|
| 380 | #+ |
---|
| 381 | if ( X$g4ui_build_xaw_session != X ) then |
---|
| 382 | setenv XAWFLAGS "$g4ui_xawflags" |
---|
| 383 | echo "On this machine the XAWFLAGS=\$XAWFLAGS" |
---|
| 384 | endif |
---|
| 385 | |
---|
| 386 | #+ |
---|
| 387 | if ( X$g4ui_build_xaw_session != X ) then |
---|
| 388 | setenv XAWLIBS "$g4ui_xawlibs" |
---|
| 389 | echo "On this machine the XAWLIBS=\$XAWLIBS" |
---|
| 390 | endif |
---|
| 391 | |
---|
[606] | 392 | |
---|
| 393 | |
---|
[472] | 394 | # |
---|
[606] | 395 | # Use GDML module |
---|
| 396 | # |
---|
| 397 | #+ |
---|
| 398 | if ( X$g4lib_build_gdml == Xy ) then |
---|
| 399 | setenv G4LIB_BUILD_GDML 1 |
---|
| 400 | echo "On this machine the G4LIB_BUILD_GDML=\$G4LIB_BUILD_GDML" |
---|
| 401 | endif |
---|
| 402 | |
---|
| 403 | if ( X$g4lib_build_gdml == Xy ) then |
---|
| 404 | setenv XERCESCROOT "$g4gdml_xercesc_root" |
---|
| 405 | echo "On this machine the XERCESCROOT=\$XERCESCROOT" |
---|
| 406 | endif |
---|
| 407 | |
---|
| 408 | |
---|
| 409 | |
---|
| 410 | |
---|
| 411 | # |
---|
[472] | 412 | # Use G3TOG4 module |
---|
| 413 | # |
---|
| 414 | #+ |
---|
| 415 | if ( X$g4wlib_build_g3tog4 == Xy ) then |
---|
| 416 | setenv G4LIB_BUILD_G3TOG4 1 |
---|
| 417 | echo "On this machine the G4LIB_BUILD_G3TOG4=\$G4LIB_BUILD_G3TOG4" |
---|
| 418 | endif |
---|
| 419 | |
---|
| 420 | if ( X$g4w_use_g3tog4 == Xy ) then |
---|
| 421 | setenv G4LIB_USE_G3TOG4 1 |
---|
| 422 | echo "On this machine the G4LIB_USE_G3TOG4=\$G4LIB_USE_G3TOG4" |
---|
| 423 | endif |
---|
| 424 | |
---|
| 425 | |
---|
| 426 | # |
---|
| 427 | # Use ZLIB module |
---|
| 428 | # |
---|
| 429 | #+ |
---|
| 430 | if ( X$g4wlib_build_zlib == Xy ) then |
---|
| 431 | setenv G4LIB_BUILD_ZLIB 1 |
---|
| 432 | echo "On this machine the G4LIB_BUILD_ZLIB=\$G4LIB_BUILD_ZLIB" |
---|
| 433 | endif |
---|
| 434 | |
---|
| 435 | if ( X$g4w_use_ZLIB == Xy ) then |
---|
| 436 | setenv G4LIB_USE_ZLIB 1 |
---|
| 437 | echo "On this machine the G4LIB_USE_ZLIB=\$G4LIB_USE_ZLIB" |
---|
| 438 | endif |
---|
| 439 | |
---|
| 440 | #+ |
---|
| 441 | # |
---|
| 442 | # g4shared |
---|
| 443 | # |
---|
| 444 | if ( X$g4lib_build_shared == Xy ) then |
---|
| 445 | setenv G4LIB_BUILD_SHARED 1 |
---|
| 446 | echo "On this machine the G4LIB_BUILD_SHARED=\$G4LIB_BUILD_SHARED" |
---|
| 447 | endif |
---|
| 448 | |
---|
| 449 | if ( X$g4lib_build_static == Xy ) then |
---|
| 450 | setenv G4LIB_BUILD_STATIC 1 |
---|
| 451 | echo "On this machine the G4LIB_BUILD_STATIC=\$G4LIB_BUILD_STATIC" |
---|
| 452 | endif |
---|
| 453 | |
---|
| 454 | #+ |
---|
| 455 | # |
---|
| 456 | # g4granular |
---|
| 457 | # |
---|
| 458 | if ( X$g4lib_use_granular == Xy ) then |
---|
| 459 | setenv G4LIB_USE_GRANULAR 1 |
---|
| 460 | echo "On this machine the G4LIB_USE_GRANULAR=\$G4LIB_USE_GRANULAR" |
---|
| 461 | endif |
---|
| 462 | |
---|
| 463 | # Check for Windows! |
---|
| 464 | if ( "X\$G4SYSTEM" != "XWIN32-VC" && "X\$G4SYSTEM" != "XWIN32-VC7" ) then |
---|
| 465 | setenv G4UI_USE_TCSH 1 |
---|
| 466 | echo "On this machine the G4UI_USE_TCSH=\$G4UI_USE_TCSH" |
---|
| 467 | endif |
---|
| 468 | |
---|
| 469 | ##################################################################### |
---|
| 470 | |
---|
| 471 | !GROK!THIS! |
---|
| 472 | |
---|
| 473 | : In the following dollars and backticks do not need the extra backslash. |
---|
| 474 | $spitshell >>env.csh <<'!NO!SUBS!' |
---|
| 475 | |
---|
| 476 | |
---|
| 477 | #+ |
---|
| 478 | # |
---|
| 479 | # G4WORKDIR |
---|
| 480 | # |
---|
| 481 | if ( ${?G4WORKDIR} ) then |
---|
| 482 | echo "In your environment you have the G4WORKDIR=$G4WORKDIR" |
---|
| 483 | else |
---|
| 484 | # Check for Windows! |
---|
| 485 | if ( "X$G4SYSTEM" == "XWIN32-VC" || "X$G4SYSTEM" == "XWIN32-VC7" ) then |
---|
| 486 | |
---|
| 487 | echo "G4WORKDIR will be set to c:/geant4 (in "native" Windows syntax)." |
---|
| 488 | setenv G4WORKDIR "c:/geant4" |
---|
| 489 | |
---|
| 490 | else # if Unix |
---|
| 491 | |
---|
| 492 | echo "G4WORKDIR will be set to HOME/geant4=$HOME/geant4" |
---|
| 493 | setenv G4WORKDIR $HOME/geant4 |
---|
| 494 | |
---|
| 495 | endif |
---|
| 496 | endif |
---|
| 497 | |
---|
| 498 | # |
---|
| 499 | # Shared libraries |
---|
| 500 | # |
---|
| 501 | if ( ${?G4LIB_BUILD_SHARED} ) then |
---|
[483] | 502 | |
---|
| 503 | # |
---|
| 504 | # Warning about LD_LIBRARY_PATH |
---|
| 505 | # |
---|
| 506 | echo '' |
---|
| 507 | echo 'LD_LIBRARY_PATH is set to include CLHEP and Geant4 libraries. ' |
---|
| 508 | echo '' |
---|
| 509 | echo 'NOTE : verify that the correct path for the CLHEP library' |
---|
| 510 | echo '- $CLHEP_BASE_DIR/lib - is included in the $LD_LIBRARY_PATH' |
---|
| 511 | echo 'variable in your environment, and no other outdated installations' |
---|
| 512 | echo 'of CLHEP are by chance referenced through $LD_LIBRARY_PATH and' |
---|
| 513 | echo 'present in your system !' |
---|
| 514 | echo '' |
---|
| 515 | |
---|
[472] | 516 | if ( ${?LD_LIBRARY_PATH} ) then |
---|
| 517 | setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${G4LIB}/${G4SYSTEM} |
---|
[483] | 518 | setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${CLHEP_BASE_DIR}/lib |
---|
[606] | 519 | |
---|
| 520 | if ( ${?G4LIB_BUILD_GDML} ) then |
---|
| 521 | setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${XERCESCROOT}/lib |
---|
| 522 | endif |
---|
| 523 | |
---|
[472] | 524 | else |
---|
| 525 | setenv LD_LIBRARY_PATH ${G4LIB}/${G4SYSTEM} |
---|
[483] | 526 | setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${CLHEP_BASE_DIR}/lib |
---|
[606] | 527 | |
---|
| 528 | if ( ${?G4LIB_BUILD_GDML} ) then |
---|
| 529 | setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${XERCESCROOT}/lib |
---|
[472] | 530 | endif |
---|
[606] | 531 | |
---|
[472] | 532 | endif |
---|
[606] | 533 | endif |
---|
[472] | 534 | |
---|
| 535 | # |
---|
[483] | 536 | # Shared libraries for Mac |
---|
| 537 | # |
---|
| 538 | if ( "X$G4SYSTEM" == "XDarwin-g++" ) then |
---|
| 539 | |
---|
| 540 | if ( ${?G4LIB_BUILD_SHARED} ) then |
---|
| 541 | if ( ${?DYLD_LIBRARY_PATH} ) then |
---|
| 542 | setenv DYLD_LIBRARY_PATH ${DYLD_LIBRARY_PATH}:${G4LIB}/${G4SYSTEM} |
---|
| 543 | setenv DYLD_LIBRARY_PATH ${DYLD_LIBRARY_PATH}:${CLHEP_BASE_DIR}/lib |
---|
[606] | 544 | |
---|
| 545 | if ( ${?G4LIB_BUILD_GDML} ) then |
---|
| 546 | setenv DYLD_LIBRARY_PATH ${DYLD_LIBRARY_PATH}:${XERCESCROOT}/lib |
---|
| 547 | endif |
---|
| 548 | |
---|
[483] | 549 | else |
---|
| 550 | setenv DYLD_LIBRARY_PATH ${G4LIB}/${G4SYSTEM} |
---|
| 551 | setenv DYLD_LIBRARY_PATH ${DYLD_LIBRARY_PATH}:${CLHEP_BASE_DIR}/lib |
---|
[606] | 552 | |
---|
| 553 | if ( ${?G4LIB_BUILD_GDML} ) then |
---|
| 554 | setenv DYLD_LIBRARY_PATH ${DYLD_LIBRARY_PATH}:${XERCESCROOT}/lib |
---|
[483] | 555 | endif |
---|
[606] | 556 | |
---|
[483] | 557 | endif |
---|
[606] | 558 | endif |
---|
[483] | 559 | |
---|
| 560 | endif |
---|
| 561 | |
---|
| 562 | # |
---|
[472] | 563 | # For BIN |
---|
| 564 | # |
---|
| 565 | setenv PATH ${PATH}:${G4WORKDIR}/bin/${G4SYSTEM} |
---|
| 566 | |
---|
| 567 | !NO!SUBS! |
---|
| 568 | chmod 755 env.csh |
---|
| 569 | $eunicefix env.csh |
---|