Merging the VirtualMC branch to the main development branch (HEAD)
[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
676fb573 5#
6# by I. Hrivnacova, 18.8.1998
7#
8# sh version modified by I. Gonzalez 2.3.2000
676fb573 9#
b9d0a01d 10# modified by fca Sep 2002
676fb573 11
b9d0a01d 12export MCINSTALL=$ALICE/geant4vmc
676fb573 13
14# This is architecture dependent...
15SYSTEM=`uname`
676fb573 16
17#
18# path to shared libraries
19#
20if [ "$SYSTEM" = "HP-UX" ]; then
21 SHLIBVAR=$SHLIB_PATH
22 SHLIBVARNAME=SHLIB_PATH
23fi
24if [ "$SYSTEM" = "Linux" ]; then
25 SHLIBVAR=$LD_LIBRARY_PATH
26 SHLIBVARNAME=LD_LIBRARY_PATH
27fi
b1e58fea 28if [ "$SYSTEM" = "OSF1" ]; then
29 SHLIBVAR=$LD_LIBRARY_PATH
30 SHLIBVARNAME=LD_LIBRARY_PATH
31fi
32if [ "$SYSTEM" = "SunOS" ]; then
33 SHLIBVAR=$LD_LIBRARY_PATH
34 SHLIBVARNAME=LD_LIBRARY_PATH
676fb573 35fi
36
37if [ "`echo ${SHLIBVAR} | grep ${G4INSTALL}/lib/${G4SYSTEM} `" = "" ]; then
b9d0a01d 38 SHLIBVAR="${SHLIBVAR}:${G4INSTALL}/lib/${G4SYSTEM}"
39fi
40if [ "`echo ${SHLIBVAR} | grep ${MCINSTALL}/lib/tgt_${G4SYSTEM} `" = "" ]; then
41 SHLIBVAR="${SHLIBVAR}:${MCINSTALL}/lib/tgt_${G4SYSTEM}"
676fb573 42fi
b54d5051 43if [ "`echo ${SHLIBVAR} | grep ${CLHEP_BASE_DIR}/lib `" = "" ]; then
b54d5051 44 SHLIBVAR="${SHLIBVAR}:${CLHEP_BASE_DIR}/lib"
45fi
676fb573 46
47export $SHLIBVARNAME=$SHLIBVAR
48
676fb573 49#
50# Remove unneeded variables. If this is not done the vars. remain in the env.
51#
52
676fb573 53unset SYSTEM
676fb573 54unset SHLIBVAR
55unset SHLIBVARNAME