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