temporarily excluded Root dictionary generation for OSF1 system; archived library...
[u/mrichter/AliRoot.git] / AliGeant4 / config / setup.csh
CommitLineData
676fb573 1# $Id$
2# ----------------------------------------------------------------
3# This script sets the default environment variables for
4# Alice Geant4 based prototype
5# Options: -g verbose mode
6# local recomended local configuration
7#
8# csh version by I.Gonzalez 18.2.2000
9
10
11
12#
13# ==================================================================
14# Alice configuration options: Please define your selection with the
15# variables below.
16# ==================================================================
17#
18
19#
20# ====== AG4_VERSION
21# Geant4 version
22# If set: the provided Geant4 version and not the default one is set
23#setenv AG4_VERSION 1.1
24
25#
26# ====== AG4_VISUALIZE
27# Set/Unset to get/avoid Geant4 visualisation.
28setenv AG4_VISUALIZE 1
29#unsetenv AG4_VISUALIZE
30
31#
32# ====== AG4_OPACS
33# Set/Unset to get OPACS as a Geant4 visualisation driver.
34#setenv AG4_OPACS 1
35unsetenv AG4_OPACS
36
37#
38# ====== AG4_STACKING
39# If set: the secondary particles are not tracked immediatelly
40# when they are created but after the urgent stack is exhausted
41# If not set: the G4 default stacking is used
42setenv AG4_STACKING 1
43#unsetenv AG4_STACKING
44
45#
46# ====== AG4_NOPHYSICS
47# If set: only geantino or charged geantino can be shooted
48#setenv AG4_NOPHYSICS 1
49unsetenv AG4_NOPHYSICS
50
51#
52# ====== AG4_MAKESHLIB
53# If set: shared libraris are created
54setenv AG4_MAKESHLIB 1
55#unsetenv AG4_MAKESHLIB
56
57#
58# ====== AG4_ODBMS
59# If set: the environment for using Objectivity is set. Not available on Linux?
60#setenv AG4_ODBMS 1
61unsetenv AG4_ODBMS
62
63
64#
65# Resolve input parameters
66#
67set VERBOSE = "NO"
68set LOCAL = "NO"
69foreach param ( $* )
70 switch ( $param )
71 case -g:
72 set VERBOSE="YES"; shift; breaksw;
73 case local:
74 set LOCAL="YES"; shift; breaksw;
75 endsw
76end
77
78#
79# ==================================================================
80# Key path variables
81# ==================================================================
82#
83
84if ( "$LOCAL" == "NO" ) then
85 #
86 # AFS
87 #
88
89 # ====== ALICE_BASE
90 # ALICE base directory
91 set ALICE_BASE = /afs/cern.ch/alice/offline
92
93 # ====== G4_BASE
94 # Geant4 base directory
95 set G4_BASE = ${ALICE_BASE}/geant4
96
97 # ====== LHCXX_BASE
98 # LHC++ base directory
99 set LHCXX_BASE = /afs/cern.ch/sw/lhcxx/specific/@sys
100
101 # ====== ROOT_BASE
102 # Root base directory
103 set ROOT_BASE = /afs/cern.ch/alice/library/root
104 # to be removed after aCC support will be defined
105 # in the offline in a standard way
106 if ( "`uname`" == "HP-UX" ) then
107 set ROOT_BASE = /afs/cern.ch/alice/library/.hp_ux102/root.2.23.aCC
108 endif
109
110 # ====== IRST_BASE
111 # IRST code check tool base directory
112 setenv IRST_BASE /afs/cern.ch/alice/offline/geant4/tools/IRST
113
114 # ====== OBJY_BASE
115 # Objectivity base directory
116 set OBJY_BASE = /afs/cern.ch/rd45/objectivity
117
118else
119 #
120 # recommended local installation
121 #
122
123 # ====== ALICE_BASE
124 # ALICE base directory
125 set ALICE_BASE = $HOME/dev
126
127 # ====== G4_BASE
128 # Geant4 base directory
129 set G4_BASE = $HOME/dev
130
131 # ====== LHCXX_BASE
132 # LHC++ base directory
133 set LHCXX_BASE = $HOME/dev
134
135 # ====== ROOT_BASE
136 # Root base directory
137 set ROOT_BASE = $HOME/dev/root
138
139 # ====== IRST_BASE
140 # IRST code check tool base directory
141 setenv IRST_BASE $HOME/dev/tools/IRST
142
143endif
144
145
146#....................................... SKIP ................................
147#
148# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
149# You should not need to change
150# the lines below this one
151# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
152
153# ====== AG4_INSTALL
154# Alice Geant4 install directory
155#
156setenv AG4_INSTALL $ALICE_ROOT/AliGeant4
157
158# Set variables depending on other variables
159# if opacs is selected then select also visualize
160if ( "$?AG4_OPACS" == 1 ) then
161 setenv AG4_VISUALIZE 1
162endif
163
164# Start the output
165if ( "$VERBOSE" == "YES" ) then
166 echo " "
167 echo " =========================================="
168 echo " ALICE Geant4 environment configuration"
169 echo " =========================================="
170
171 #
172 # Some output on the selections...
173 #
174
175 if ("$?AG4_VISUALIZE" == 1) then
176 echo "Geant4 visualisation is selected."
177 else
178 echo "Geant4 visualisation is NOT selected."
179 endif
180 if ("$?AG4_OPACS" == 1) then
181 echo "OPACS driver is selected."
182 else
183 echo "OPACS driver is NOT selected."
184 endif
185 if ("$?AG4_TOY" == 1) then
186 echo "Toy geometry is selected"
187 else
188 echo "Full geometry is selected"
189 endif
190 if ("$?AG4_STACKING" == 1) then
191 echo "Secondaries will be tracked after the urgent stack is exhausted."
192 else
193 echo "The Geant4 default stackin will be used."
194 endif
195 if ("$?AG4_NOPHYSICS" == 1) then
196 echo "Only geantino or charged geantino can be shooted."
197 else
198 echo "Full physics has been selected."
199 endif
200 if ("$?AG4_ODBMS" == 1) then
201 echo "The environment for using Objectivity will be set."
202 else
203 echo "No Geant4 Persistency."
204 endif
205
206endif
207
208#
209# ROOT Alice definitions & options
210# ==================================
211#
212if ( "$?ROOTSYS" == 0 ) then
213 setenv ROOTSYS ${ROOT_BASE}
214endif
215if ( "$VERBOSE" == "YES" ) then
216 echo " "
217 echo "ROOT"
218 echo "===="
219 echo ROOTSYS set to $ROOTSYS
220endif
221
222#
223# ODBMS Alice definitions & options
224# ==================================
225#
226if ( "$VERBOSE" == "YES" ) then
227 echo " "
228 echo "ODBMS & Objectivity"
229 echo "==================="
230endif
231if ( "$?AG4_ODBMS" == 1 ) then
232 if ( "$VERBOSE" == "YES" ) then
233 echo Setting ODBMS Alice definitions & options...
234 endif
235 setenv G4ODBMS 1
236 unsetenv AG4_VISUALIZE
237 setenv ALBOOT_DIR $AG4_INSTALL/ObjyDatabase
238 setenv ALBOOT_NAME Alice
239 setenv ALBOOT $ALBOOT_DIR/$ALBOOT_NAME
240 if ( ! -d $ALBOOT_DIR ) then
241 echo " Making new directory $ALBOOT_DIR ..."
242 mkdir $ALBOOT_DIR
243 endif
244else
245 if ( "$VERBOSE" == "YES" ) then
246 echo Unsetting ODBMS Alice definitions \& options...
247 endif
248 unsetenv G4ODBMS
249 unsetenv ALBOOT_DIR
250 unsetenv ALBOOT_NAME
251 unsetenv ALBOOT
252endif
253#
254# Objectivity G4 options
255# according to run/example5/g4odbms_setup.sh
256#
257if ( "$?G4ODBMS" == 1 ) then
258 setenv OBJY_VERS 4.0.2
259 if ( -r $OBJY_BASE/objyenv.csh ) then
260 source $OBJY_BASE/objyenv.csh
261 if ( "$VERBOSE" == "YES" ) then
262 echo " Environment for Objectivity has been set."
263 endif
264 endif
265 setenv HEP_ODBMS_DIR ${LHCXX_BASE}/HepODBMS/0.0
266 setenv HEP_ODBMS_INCLUDES $HEP_ODBMS_DIR/include
267endif
268
269
270#
271# Geant4
272# ==================================
273#
274if ( "$VERBOSE" == "YES" ) then
275 echo " "
276 echo "Geant4 env. variables..."
277 echo "============================"
278endif
279if ("$?AG4_VERSION" == 0) then
280 setenv G4INSTALL ${G4_BASE}/geant4
281else
282 setenv G4INSTALL ${G4_BASE}/g4dev/geant4.${AG4_VERSION}
283endif
284
285if ("$?AG4_MAKESHLIB" == 0) then
286 unsetenv G4MAKESHLIB
287else
288 setenv G4MAKESHLIB ${G4INSTALL}/config/makeshlib.sh
289endif
290
291# path to data files needed by hadronic processes
292setenv G4LEVELGAMMADATA ${G4INSTALL}/data/PhotonEvaporation
293
294# This is architecture dependent...
295set SYSTEM = `uname`
296if ( $SYSTEM == "HP-UX" ) then
297 setenv G4SYSTEM "HP-aCC"
9593171a 298 #setenv G4USE_OSPACE 1 # compiling with Object Space STL
676fb573 299endif
300if ( $SYSTEM == "Linux" ) then
301 setenv G4SYSTEM "Linux-g++"
302endif
303if ( "$VERBOSE" == "YES" ) then
304 echo "Architecture is $SYSTEM"
305 echo "Geant4 is istalled in $G4INSTALL"
306 echo "Geant4 architecture type is $G4SYSTEM"
307 if ( "$?G4USE_OSPACE" == 1 ) then
308 echo "ObjectSpace will be used for STL"
309 endif
310endif
311
312
313#
314# CLHEP
315# ==================================
316#
317
318if ( -d $LHCXX_BASE/CLHEP/new ) then
319 setenv CLHEP_BASE_DIR $LHCXX_BASE/CLHEP/new
320else
321 echo "WARNING: CLHEP has not been found in the default path."
322 if ( "$VERBOSE" == "YES" ) then
323 echo " Please set the variable CLHEP_BASE_DIR to its base path"
324 echo " Example: setenv CLHEP_BASE_DIR /afs/cern.ch/sw/lhcxx/specific/@sys/CLHEP/pro"
325 endif
326endif
327if ( "$VERBOSE" == "YES" ) then
328 echo "CLHEP base directory: $CLHEP_BASE_DIR"
329endif
330
331
332#
333# Visualization
334# ==================================
335#
336
337if ( "$?AG4_VISUALIZE" == 1 ) then
338 if ( "$VERBOSE" == "YES" ) then
339 echo "G4 Visualization env. variables..."
340 endif
341
342 #
343 # Xm UI
344 #
345 if ( "$VERBOSE" == "YES" ) then
346 echo "* X11 with Motif..."
347 endif
348 setenv G4UI_BUILD_XM_DRIVER 1
349 setenv G4UI_BUILD_XM_SESSION 1
350 setenv G4UI_USE_XM 1
351
352 #
353 # Fukui Renderer
354 #
355 if ( "$VERBOSE" == "YES" ) then
356 echo "* Fukui Renderer (DAWN)..."
357 endif
358 setenv G4VIS_BUILD_DAWN_DRIVER 1
359 setenv G4VIS_BUILD_DAWNFILE_DRIVER 1
360 setenv G4VIS_USE_DAWN 1
361 setenv G4VIS_USE_DAWNFILE 1
362 setenv G4DAWNFILE_VIEWER david
363 setenv DAWN_HOME ${G4_BASE}/tools/bin
364 if ( "`echo ${PATH} | grep ${DAWN_HOME} `" == "" ) then
365 setenv PATH "${PATH}:${DAWN_HOME}"
366 rehash
367 endif
368 setenv G4DAWN_MULTI_WINDOW 1
369 if ( $SYSTEM == "Linux" ) then
370 setenv G4DAWN_NAMED_PIPE 1
371 endif
372
373 if ( "$VERBOSE" == "YES" ) then
374 if ("$?G4VIS_USE_DAWN" == 1) then
375 echo " Dawn driver activated"
376 endif
377 if ("$?G4VIS_USE_DAWNFILE" == 1) then
378 echo " Dawn file driver activated"
379 endif
380 if ("$?G4DAWNFILE_VIEWER" == 1) then
381 echo " Dawn file viewer set to ${G4DAWNFILE_VIEWER}"
382 endif
383 if ("$?DAWN_HOME" == 1) then
384 echo " Dawn home path set to ${DAWN_HOME}"
385 endif
386 if ("$?G4DAWN_MULTI_WINDOW" == 1) then
387 echo " Dawn multi window selected"
388 endif
389 if ("$?G4DAWN_NAMED_PIPE" == 1) then
390 echo " Dawn named pipe selected"
391 endif
392 endif
393
394 # David flags
395 # Set colors for overlappings
396 setenv DAVID_RAINBOW_FLAG 1
397 #setenv DAVID_HIGHLIGHT_COLOR_R r
398 #setenv DAVID_HIGHLIGHT_COLOR_G g
399 #setenv DAVID_HIGHLIGHT_COLOR_B b
400
401 # If set volumes names are shown
402 setenv DAVID_DISPLAY_PVNAME 1
403 # If set supresses the call to dawn
404 #setenv DAVID_NO_VIEW 1
405 setenv DAVID_EPSILON_3D 0.001
406
407 if ( "$VERBOSE" == "YES" ) then
408 if ("$?DAVID_RAINBOW_FLAG" == 1) then
409 echo " DAVID Rainbow mode is ON"
410 endif
411 if ("$?DAVID_HIGHLIGHT_COLOR_R" == 1) then
412 echo " DAVID Highlight color (Red) set to ${DAVID_HIGHLIGHT_COLOR_R}"
413 endif
414 if ("$?DAVID_HIGHLIGHT_COLOR_G" == 1) then
415 echo " DAVID Highlight color (Green) set to ${DAVID_HIGHLIGHT_COLOR_G}"
416 endif
417 if ("$?DAVID_HIGHLIGHT_COLOR_B" == 1) then
418 echo " DAVID Highlight color (Blue) set to ${DAVID_HIGHLIGHT_COLOR_B}"
419 endif
420 if ("$?DAVID_DISPLAY_PVNAME" == 1) then
421 echo " DAVID will display intersected volumes name"
422 endif
423 if ("$?DAVID_DISPLAY_PVNAME" == 1) then
424 echo " Dawn will not be called from DAVID"
425 endif
426 if ("$?DAVID_EPSILON_3D" == 1) then
427 echo " DAVID tolerance set to ${DAVID_EPSILON_3D}"
428 endif
429 endif
430
431 #
432 # OpenGL
433 #
434 if ( "$VERBOSE" == "YES" ) then
435 echo "* OpenGL..."
436 endif
437 setenv G4VIS_BUILD_OPENGLX_DRIVER 1
438 setenv G4VIS_BUILD_OPENGLXM_DRIVER 1
439 setenv G4VIS_USE_OPENGLX 1
440 setenv G4VIS_USE_OPENGLXM 1
9593171a 441 setenv OGLHOME /usr/local
442 setenv OGLLIBS "-L$OGLHOME/lib -lMesaGLU -lMesaGL"
676fb573 443
444 if ( "$VERBOSE" == "YES" ) then
445 if ("$?G4VIS_USE_OPENGLX" == 1) then
446 echo " OpenGL and X11 driver activated"
447 endif
448 if ("$?G4VIS_USE_OPENGLXM" == 1) then
449 echo " OpenGL with Motif extension driver activated"
450 endif
451 if ("$?OGLHOME" == 1) then
452 echo " OpenGL path set to ${OGLHOME}"
453 endif
454 if ("$?OGLLIBS" == 1) then
455 echo " OpenGL libraries set to ${OGLLIBS}"
456 endif
457 endif
458
459 #
460 # OpenInventor
461 #
462 if ( "$VERBOSE" == "YES" ) then
463 echo "* OpenInventor..."
464 endif
465 #setenv G4VIS_USE_OPENINVENTOR 1
466 #setenv OIHOME whatever
467 #setenv HEPVISDIR something
468 if ( "$VERBOSE" == "YES" ) then
469 if ("$?G4VIS_USE_OPENINVENTOR" == 1) then
470 echo " OpenInventor driver activated"
471 echo " OpenInventor path is ${OIHOME}"
472 echo " HepVis path is ${HEPVISDIR}"
473 endif
474 endif
475
476 #
477 # VRML1
478 #
479 if ( "$VERBOSE" == "YES" ) then
480 echo "* VRML..."
481 endif
482 setenv G4VIS_BUILD_VRML_DRIVER 1
483 setenv G4VIS_BUILD_VRMLFILE_DRIVER 1
484 setenv G4VIS_USE_VRML 1
485 setenv G4VIS_USE_VRMLFILE 1
486 #Set preferred vrml viewer to be invoked in this mode
487 setenv G4VRMLFILE_VIEWER vrweb
488 #Set host name for VRML1 visualization.... the g4vrmlview machine!
489 setenv G4VRML_HOST_NAME nohost
490 #Command to run java listener for VRML driver
491 #alias javavrml "java -classpath $G4_BASE/tools/bin/java g4vrmlview vrweb"
492
493 if ( "$VERBOSE" == "YES" ) then
494 if ("$?G4VIS_USE_VRML" == 1) then
495 echo " VRML driver activated"
496 echo " Host Name for remote visualization is ${G4VRML_HOST_NAME}"
497 endif
498 if ("$?G4VIS_USE_VRMLFILE" == 1) then
499 echo " VRML file driver activated"
500 echo " VRML viewer set to ${G4VRMLFILE_VIEWER}"
501 endif
502 endif
503
504 #
505 # Ray Tracer
506 #
507 if ( "$VERBOSE" == "YES" ) then
508 echo "* Ray Tracer..."
509 endif
510 #setenv G4VIS_BUILD_RAYTRACER_DRIVER 1
511 #setenv G4VIS_USE_RAYTRACER 1
512 if ( "$VERBOSE" == "YES" ) then
513 if ("$?G4VIS_USE_RAYTRACER" == 1) then
514 echo " Ray tracing driver activated"
515 endif
516 endif
517
518 #
519 # GAG
520 #
521 if ( "$VERBOSE" == "YES" ) then
522 echo "* Geant Adaptative GUI (GAG)..."
523 endif
524 setenv G4UI_BUILD_GAG_SESSION 1
525 setenv G4UI_USE_GAG 1
526 setenv MOMOPATH ${G4_BASE}/tools/GAG/tcltk
527 if ( "`echo ${PATH} | grep ${MOMOPATH} `" == "" ) then
528 setenv PATH "${PATH}:${MOMOPATH}"
529 rehash
530 endif
531 set NCLASSPATH = ".:${G4_BASE}/tools/swing-1.0.3/swingall.jar:${G4_BASE}/tools/GAG/java/GAG.jar"
532 if ("$?CLASSPATH" == 0) then
533 setenv CLASSPATH $NCLASSPATH
534 else
535 if ( "`echo ${CLASSPATH} | grep ${NCLASSPATH} `" == "" ) then
536 setenv CLASSPATH "${CLASSPATH}:${NCLASSPATH}"
537 endif
538 endif
539
540 if ( "$VERBOSE" == "YES" ) then
541 if ("$?G4UI_USE_GAG" == 1) then
542 echo " GAG UI activated"
543 echo " Momo path set to $MOMOPATH"
544 echo " NOTE: Run "\'tmomo\' "to use Momo (TK/Tcl version)"
545 echo " The path to the java GAG code was updated"
546 echo " NOTE: Run "\'java gag\'" to use GAG (java version)"
547 endif
548 endif
549
550else
551 if ( "$VERBOSE" == "YES" ) then
552 echo Unsetting G4 Visualization env. variables...
553 endif
554
555 #XM
556 unsetenv G4UI_BUILD_XM_DRIVER
557 unsetenv G4UI_BUILD_XM_SESSION
558 unsetenv G4UI_USE_XM
559
560 # Dawn
561 unsetenv G4VIS_BUILD_DAWN_DRIVER
562 unsetenv G4VIS_BUILD_DAWNFILE_DRIVER
563 unsetenv G4VIS_USE_DAWN
564 unsetenv G4VIS_USE_DAWNFILE
565 unsetenv G4DAWNFILE_VIEWER
566 unsetenv DAWN_HOME
567 unsetenv G4DAWN_MULTI_WINDOW
568 if ( $SYSTEM == "Linux" ) then
569 unsetenv G4DAWN_NAMED_PIPE
570 endif
571
572 # David
573 unsetenv DAVID_RAINBOW_FLAG
574 unsetenv DAVID_HIGHLIGHT_COLOR_R
575 unsetenv DAVID_HIGHLIGHT_COLOR_G
576 unsetenv DAVID_HIGHLIGHT_COLOR_B
577 unsetenv DAVID_DISPLAY_PVNAME
578 unsetenv DAVID_NO_VIEW
579 unsetenv DAVID_EPSILON_3D
580
581 # OpenGL
582 unsetenv G4VIS_BUILD_OPENGLX_DRIVER
583 unsetenv G4VIS_BUILD_OPENGLXM_DRIVER
584 unsetenv G4VIS_USE_OPENGLX
585 unsetenv G4VIS_USE_OPENGLXM
586 unsetenv OGLHOME
587 unsetenv OGLLIBS
588
589 # OpenInventor
590 unsetenv G4VIS_USE_OPENINVENTOR
591
592 # VRML1
593 unsetenv G4VIS_BUILD_VRML_DRIVER
594 unsetenv G4VIS_BUILD_VRMLFILE_DRIVER
595 unsetenv G4VIS_USE_VRML
596 unsetenv G4VIS_USE_VRMLFILE
597 unsetenv G4VRMLFILE_VIEWER
598 unsetenv G4VRML_HOST_NAME
599
600 # GAG
601 unsetenv G4UI_BUILD_GAG_SESSION
602 unsetenv G4UI_USE_GAG
603 unsetenv MOMOPATH
604
605endif
606
607#
608# OPACS
609#
610if ( "$?AG4_OPACS" == 1 ) then
611 if ( "$VERBOSE" == "YES" ) then
612 echo "* OPACS..."
613 endif
614 setenv AG4_VISUALIZE 1
615
616 #
617 # OpenGL: needed by OPACS
618 #
619 setenv G4VIS_BUILD_OPENGLX_DRIVER 1
620 setenv G4VIS_USE_OPENGLX 1
3507a0d2 621 setenv OGLHOME /usr/local
622 setenv OGLLIBS "-L$OGLHOME/lib -lMesaGLU -lMesaGL"
676fb573 623
624 #
625 # OPACS
626 #
627 setenv G4VIS_BUILD_OPACS_DRIVER 1
628 setenv G4UI_BUILD_WO_DRIVER 1
629 setenv G4UI_BUILD_WO_SESSION 1
630 setenv G4VIS_USE_OPACS 1
631 setenv G4UI_USE_WO 1
632 setenv OPACS_HOME $G4_BASE/tools/OPACS
633 #setenv OPACS_HOME /afs/cern.ch/rd44/dev/OPACS
634 if ( $SYSTEM == "Linux" ) then
635 setenv G4_OPACS_WIDGET_SET lesstif
636 else
637 setenv G4_OPACS_WIDGET_SET Xm
638 endif
639 source $OPACS_HOME/OPACS/v3/setup.csh
640 setenv WOENVIRONMENT $AG4_INSTALL/bin/Alice.odb
641 setenv OPATH "$OPATH $G4INSTALL/environments/OPACS/usr"
642 if ( "$VERBOSE" == "YES" ) then
643 if ("$?G4VIS_USE_OPACS" == 1) then
644 echo " OPACS driver activated"
645 echo " OPACS path set to $OPACS_HOME"
646 endif
647 endif
648else
649 if ( "$VERBOSE" == "YES" ) then
650 echo "* Unsetting OPACS driver env. variables ..."
651 endif
652 unsetenv G4VIS_BUILD_OPACS_DRIVER
653 unsetenv G4UI_BUILD_WO_DRIVER
654 unsetenv G4UI_BUILD_WO_SESSION
655 unsetenv G4VIS_USE_OPACS
656 unsetenv G4UI_USE_WO
657 unsetenv OPACS_HOME
658 unsetenv G4_OPACS_WIDGET_SET
659 unsetenv G4OROOT
660 unsetenv WOENVIRONMENT
661 unsetenv OPATH
662endif
663
664#
665# path to Alice executable and config scripts
666#
667if ( "`echo ${PATH} | grep ${AG4_INSTALL}/bin/${G4SYSTEM} `" == "" ) then
668 if ( "$VERBOSE" == "YES" ) then
669 echo Adding $AG4_INSTALL/bin/$G4SYSTEM to the path...
670 endif
671 setenv PATH "${PATH}:${AG4_INSTALL}/bin/${G4SYSTEM}"
672endif
673if ( "`echo ${PATH} | grep ${AG4_INSTALL}/config `" == "" ) then
674 if ( "$VERBOSE" == "YES" ) then
675 echo Adding ${AG4_INSTALL}/config to the path...
676 endif
677 setenv PATH "${PATH}:${AG4_INSTALL}/config"
678endif
679
680#
681# path to shared libraries
682#
683if ( $SYSTEM == "HP-UX" ) then
684 set SHLIBVAR = $SHLIB_PATH
685 set SHLIBVARNAME = SHLIB_PATH
686endif
687if ( $SYSTEM == "Linux" ) then
688 set SHLIBVAR = $LD_LIBRARY_PATH
689 set SHLIBVARNAME = LD_LIBRARY_PATH
690endif
691if ( "`echo ${SHLIBVAR} | grep ${AG4_INSTALL}/lib/${G4SYSTEM} `" == "" ) then
692 if ( "$VERBOSE" == "YES" ) then
693 echo Adding ${AG4_INSTALL}/lib/${G4SYSTEM} to the shared libraries path...
694 endif
695 set SHLIBVAR="${AG4_INSTALL}/lib/${G4SYSTEM}:${SHLIBVAR}"
696endif
697
698if ( "`echo ${SHLIBVAR} | grep ${G4INSTALL}/lib/${G4SYSTEM} `" == "" ) then
699 if ( "$VERBOSE" == "YES" ) then
700 echo Adding ${G4INSTALL}/lib/${G4SYSTEM} to the shared libraries path...
701 endif
702 set SHLIBVAR="${G4INSTALL}/lib/${G4SYSTEM}:${SHLIBVAR}"
703endif
704
705setenv $SHLIBVARNAME $SHLIBVAR
706
707
708#
709# Remove unneeded variables. If this is not done the vars. remain in the env.
710#
711
712unset ALICE_BASE
713unset G4_BASE
714unset LHCXX_BASE
715unset OBJY_BASE
716unset SYSTEM
717unset NCLASSPATH
718unset SHLIBVAR
719unset SHLIBVARNAME
720unset LOCAL
721unset VERBOSE
722
723echo "Default ALICE environment for GEANT4 has been set."