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