######################################
#
# g4system.U
#
#+
G4SYSTEM="Linux-g++"
export G4SYSTEM
#if [ X$g4non_display = X ] ; then
#echo "On this machine the G4SYSTEM=$G4SYSTEM"
#fi

#
# g4dirs.U
#
#+
G4INSTALL="/storage/home/corinne/MonteCarloSimulator/geant4"
export G4INSTALL
#if [ X$g4non_display = X ] ; then
#echo "On this machine the G4INSTALL=$G4INSTALL"
#fi

#+
if [ X/storage/home/corinne/MonteCarloSimulator/geant4/include != X ] ; then 
G4INCLUDE="/storage/home/corinne/MonteCarloSimulator/geant4/include"
export G4INCLUDE
#if [ X$g4non_display = X ] ; then
#echo "On this machine the G4INCLUDE=$G4INCLUDE"
#fi
fi

#+
if [ X/storage/home/corinne/MonteCarloSimulator/geant4/lib != X ] ; then 
G4LIB="/storage/home/corinne/MonteCarloSimulator/geant4/lib"
export G4LIB
#if [ X$g4non_display = X ] ; then
#echo "On this machine the G4LIB=$G4LIB"
#fi
fi

#+
if [ X/storage/home/corinne/MonteCarloSimulator/geant4/data/PhotonEvaporation != X ] ; then 
G4LEVELGAMMADATA="/storage/home/corinne/MonteCarloSimulator/geant4/data/PhotonEvaporation"
export G4LEVELGAMMADATA
#if [ X$g4non_display = X ] ; then
#echo "On this machine the G4LEVELGAMMADATA=$G4LEVELGAMMADATA"
#fi
fi

#+
if [ X/storage/home/corinne/MonteCarloSimulator/geant4/data/RadiativeDecay != X ] ; then 
G4RADIOACTIVEDATA="/storage/home/corinne/MonteCarloSimulator/geant4/data/RadiativeDecay"
export G4RADIOACTIVEDATA
#if [ X$g4non_display = X ] ; then
#echo "On this machine the G4RADIOACTIVEDATA=$G4RADIOACTIVEDATA"
#fi
fi

#+
if [ X/storage/home/corinne/MonteCarloSimulator/geant4/data/G4EMLOW2.2 != X ] ; then 
G4LEDATA="/storage/home/corinne/MonteCarloSimulator/geant4/data/G4EMLOW2.2"
export G4LEDATA
#if [ X$g4non_display = X ] ; then
#echo "On this machine the G4LEDATA=$G4LEDATA"
#fi
fi

#+
if [ X/storage/home/corinne/MonteCarloSimulator/geant4/data/G4NDL3.7 != X ] ; then 
NeutronHPCrossSections="/storage/home/corinne/MonteCarloSimulator/geant4/data/G4NDL3.7"
export NeutronHPCrossSections
#if [ X$g4non_display = X ] ; then
#echo "On this machine the NeutronHPCrossSections=$NeutronHPCrossSections"
#fi
fi

#
# g4clhep.U
#
if [ X/storage/home/corinne/MonteCarloSimulator/CLHEP != X ] ; then 
CLHEP_BASE_DIR="/storage/home/corinne/MonteCarloSimulator/CLHEP"
export CLHEP_BASE_DIR
#if [ X$g4non_display = X ] ; then
#echo "On this machine the CLHEP_BASE_DIR=$CLHEP_BASE_DIR"
#fi
fi

#+
if [ X/storage/home/corinne/MonteCarloSimulator/CLHEP/include != X ] ; then 
CLHEP_INCLUDE_DIR="/storage/home/corinne/MonteCarloSimulator/CLHEP/include"
export CLHEP_INCLUDE_DIR
#if [ X$g4non_display = X ] ; then
#echo "On this machine the CLHEP_INCLUDE_DIR=$CLHEP_INCLUDE_DIR"
#fi
fi

#+
if [ X/storage/home/corinne/MonteCarloSimulator/CLHEP/lib != X ] ; then 
CLHEP_LIB_DIR="/storage/home/corinne/MonteCarloSimulator/CLHEP/lib"
export CLHEP_LIB_DIR
#if [ X$g4non_display = X ] ; then
#echo "On this machine the CLHEP_LIB_DIR=$CLHEP_LIB_DIR"
#fi
fi

#+
if [ XCLHEP != X ] ; then 
CLHEP_LIB="CLHEP"
export CLHEP_LIB
#if [ X$g4non_display = X ] ; then
#echo "On this machine the CLHEP_LIB=$CLHEP_LIB"
#fi
fi

#+
#
# g4debug
#
if [ X != X ] ; then 
G4DEBUG=""
export G4DEBUG
#if [ X$g4non_display = X ] ; then
#echo "On this machine the G4DEBUG=$G4DEBUG"
#fi
fi

#
# g4analysis
#
#+
if [ Xn = Xy ] ; then
G4ANALYSIS_USE=1
export G4ANALYSIS_USE
#if [ X$g4non_display = X ] ; then
#echo "On this machine the G4ANALYSIS_USE=$G4ANALYSIS_USE"
#fi
fi 

#
# g4ui
#
#+
if [ Xn = Xy ] ; then
G4UI_BUILD_XAW_SESSION=1
export G4UI_BUILD_XAW_SESSION
#if [ X$g4non_display = X ] ; then
#echo "On this machine the G4UI_BUILD_XAW_SESSION=$G4UI_BUILD_XAW_SESSION"
#fi
fi 

#+
if [ Xn = Xy ] ; then
G4UI_USE_XAW=1
export G4UI_USE_XAW
#if [ X$g4non_display = X ] ; then
#echo "On this machine the G4UI_USE_XAW=$G4UI_USE_XAW"
#fi
fi 

#+
if [ Xn = Xy ] ; then
G4UI_BUILD_XM_SESSION=1
export G4UI_BUILD_XM_SESSION
#if [ X$g4non_display = X ] ; then
#echo "On this machine the G4UI_BUILD_XM_SESSION=$G4UI_BUILD_XM_SESSION"
#fi
fi 

#+
if [ Xn = Xy ] ; then
G4UI_USE_XM=1
export G4UI_USE_XM
#if [ X$g4non_display = X ] ; then
#echo "On this machine the G4UI_USE_XM=$G4UI_USE_XM"
#fi
fi 

#+
if [ Xn = Xy ] ; then
G4UI_BUILD_WIN32_SESSION=1
export G4UI_BUILD_WIN32_SESSION
#if [ X$g4non_display = X ] ; then
#echo "On this machine the G4UI_BUILD_WIN32_SESSION=$G4UI_BUILD_WIN32_SESSION"
#fi
fi 

#+
if [ Xn = Xy ] ; then
G4UI_USE_WIN32=1
export G4UI_USE_WIN32
#if [ X$g4non_display = X ] ; then
#echo "On this machine the G4UI_USE_WIN32=$G4UI_USE_WIN32"
#fi
fi 

#+
if [ Xn = Xy ] ; then
G4UI_BUILD_WO_SESSION=1
export G4UI_BUILD_WO_SESSION
#if [ X$g4non_display = X ] ; then
#echo "On this machine the G4UI_BUILD_WO_SESSION=$G4UI_BUILD_WO_SESSION"
#fi
fi 

#+
if [ Xn = Xy ] ; then
G4UI_USE_WO=1
export G4UI_USE_WO
#if [ X$g4non_display = X ] ; then
#echo "On this machine the G4UI_USE_WO=$G4UI_USE_WO"
#fi
fi 

#
# g4vis
#
#+
if [ Xn = Xy ] ; then
G4VIS_BUILD_DAWN_DRIVER=1
export G4VIS_BUILD_DAWN_DRIVER
#if [ X$g4non_display = X ] ; then
#echo "On this machine the G4VIS_BUILD_DAWN_DRIVER=$G4VIS_BUILD_DAWN_DRIVER"
#fi
fi 

#+
if [ Xn = Xy ] ; then
G4VIS_BUILD_OPACS_DRIVER=1
export G4VIS_BUILD_OPACS_DRIVER
#if [ X$g4non_display = X ] ; then
#echo "On this machine the G4VIS_BUILD_OPACS_DRIVER=$G4VIS_BUILD_OPACS_DRIVER"
#fi
fi 

#+
if [ Xn = Xy ] ; then
G4VIS_BUILD_OPENGLX_DRIVER=1
export G4VIS_BUILD_OPENGLX_DRIVER
#if [ X$g4non_display = X ] ; then
#echo "On this machine the G4VIS_BUILD_OPENGLX_DRIVER=$G4VIS_BUILD_OPENGLX_DRIVER"
#fi
fi 

#+
if [ Xn = Xy ] ; then
G4VIS_BUILD_OPENGLXM_DRIVER=1
export G4VIS_BUILD_OPENGLXM_DRIVER
#if [ X$g4non_display = X ] ; then
#echo "On this machine the G4VIS_BUILD_OPENGLXM_DRIVER=$G4VIS_BUILD_OPENGLXM_DRIVER"
#fi
fi 

#+
if [ Xn = Xy ] ; then
G4VIS_BUILD_OPENGLWIN32_DRIVER=1
export G4VIS_BUILD_OPENGLWIN32_DRIVER
#if [ X$g4non_display = X ] ; then
#echo "On this machine the G4VIS_BUILD_OPENGLWIN32_DRIVER=$G4VIS_BUILD_OPENGLWIN32_DRIVER"
#fi
fi 

#+
if [ Xn = Xy ] ; then
G4VIS_BUILD_OIX_DRIVER=1
export G4VIS_BUILD_OIX_DRIVER
#if [ X$g4non_display = X ] ; then
#echo "On this machine the G4VIS_BUILD_OIX_DRIVER=$G4VIS_BUILD_OIX_DRIVER"
#fi
fi 

#+
if [ Xn = Xy ] ; then
G4VIS_BUILD_OIWIN32_DRIVER=1
export G4VIS_BUILD_OIWIN32_DRIVER
#if [ X$g4non_display = X ] ; then
#echo "On this machine the G4VIS_BUILD_OIWIN32_DRIVER=$G4VIS_BUILD_OIWIN32_DRIVER"
#fi
fi 

#+
if [ Xn = Xy ] ; then
G4VIS_BUILD_VRML_DRIVER=1
export G4VIS_BUILD_VRML_DRIVER
#if [ X$g4non_display = X ] ; then
#echo "On this machine the G4VIS_BUILD_VRML_DRIVER=$G4VIS_BUILD_VRML_DRIVER"
#fi
fi 

#+
if [ Xn = Xy ] ; then
G4VIS_USE_DAWN=1
export G4VIS_USE_DAWN
#if [ X$g4non_display = X ] ; then
#echo "On this machine the G4VIS_USE_DAWN=$G4VIS_USE_DAWN"
#fi
fi 

#+
if [ Xn = Xy ] ; then
G4VIS_USE_OPACS=1
export G4VIS_USE_OPACS
#if [ X$g4non_display = X ] ; then
#echo "On this machine the G4VIS_USE_OPACS=$G4VIS_USE_OPACS"
#fi
fi 

#+
if [ Xn = Xy ] ; then
G4VIS_USE_OPENGLX=1
export G4VIS_USE_OPENGLX
#if [ X$g4non_display = X ] ; then
#echo "On this machine the G4VIS_USE_OPENGLX=$G4VIS_USE_OPENGLX"
#fi
fi 

#+
if [ Xn = Xy ] ; then
G4VIS_USE_OPENGLXM=1
export G4VIS_USE_OPENGLXM
#if [ X$g4non_display = X ] ; then
#echo "On this machine the G4VIS_USE_OPENGLXM=$G4VIS_USE_OPENGLXM"
#fi
fi 

#+
if [ Xn = Xy ] ; then
G4VIS_USE_OPENGLWIN32=1
export G4VIS_USE_OPENGLWIN32
#if [ X$g4non_display = X ] ; then
#echo "On this machine the G4VIS_USE_OPENGLWIN32=$G4VIS_USE_OPENGLWIN32"
#fi
fi 

#+
if [ Xn = Xy ] ; then
G4VIS_USE_OIX=1
export G4VIS_USE_OIX
#if [ X$g4non_display = X ] ; then
#echo "On this machine the G4VIS_USE_OIX=$G4VIS_USE_OIX"
#fi
fi 

#+
if [ Xn = Xy ] ; then
G4VIS_USE_OIWIN32=1
export G4VIS_USE_OIWIN32
#if [ X$g4non_display = X ] ; then
#echo "On this machine the G4VIS_USE_OIWIN32=$G4VIS_USE_OIWIN32"
#fi
fi 

#+
if [ Xn = Xy ] ; then
G4VIS_USE_VRML=1
export G4VIS_USE_VRML
#if [ X$g4non_display = X ] ; then
#echo "On this machine the G4VIS_USE_VRML=$G4VIS_USE_VRML"
#fi
fi 

#+
if [ X != X ] ; then
OGLHOME=""
export OGLHOME
#if [ X$g4non_display = X ] ; then
#echo "On this machine the OGLHOME=$OGLHOME"
#fi
fi 

#
# Use G3TOG4 module
#
#+
if [ Xn = Xy ] ; then
G4LIB_BUILD_G3TOG4=1
export G4LIB_BUILD_G3TOG4
#if [ X$g4non_display = X ] ; then
#echo "On this machine the G4LIB_BUILD_G3TOG4=$G4LIB_BUILD_G3TOG4"
#fi
fi 

if [ Xn = Xy ] ; then
G4USE_G3TOG4=1
export G4USE_G3TOG4
#if [ X$g4non_display = X ] ; then
#echo "On this machine the G4USE_G3TOG4=$G4USE_G3TOG4"
#fi
fi 

#
# Use STEP module
#
#+
if [ Xn = Xy ] ; then
G4LIB_BUILD_STEP=1
export G4LIB_BUILD_STEP
#if [ X$g4non_display = X ] ; then
#echo "On this machine the G4LIB_BUILD_STEP=$G4LIB_BUILD_STEP"
3fi
fi 

if [ Xn = Xy ] ; then
G4USE_STEP=1
export G4USE_STEP
#if [ X$g4non_display = X ] ; then
#echo "On this machine the G4USE_STEP=$G4USE_STEP"
#fi
fi 

#+
#
# g4shared
#
if [ Xn = Xy ] ; then
G4LIB_BUILD_SHARED=1
export G4LIB_BUILD_SHARED
#if [ X$g4non_display = X ] ; then
#echo "On this machine the G4LIB_BUILD_SHARED=$G4LIB_BUILD_SHARED"
#fi
fi 

if [ Xn = Xy ] ; then
G4LIB_BUILD_STATIC=1
export G4LIB_BUILD_STATIC
#if [ X$g4non_display = X ] ; then
#echo "On this machine the G4LIB_BUILD_STATIC=$G4LIB_BUILD_STATIC"
#fi
fi 

if [ Xn = Xy ] ; then
G4LIB_USE_SHARED=1
export G4LIB_USE_SHARED
#if [ X$g4non_display = X ] ; then
#echo "On this machine the G4LIB_USE_SHARED=$G4LIB_USE_SHARED"
#fi
fi 

if [ Xn = Xy ] ; then
G4LIB_USE_STATIC=1
export G4LIB_USE_STATIC
#if [ X$g4non_display = X ] ; then
#echo "On this machine the G4LIB_USE_STATIC=$G4LIB_USE_STATIC"
#fi
fi 

#+
#
# g4granular
#
if [ Xn = Xy ] ; then
G4LIB_USE_GRANULAR=1
export G4LIB_USE_GRANULAR
#if [ X$g4non_display = X ] ; then
#echo "On this machine the G4LIB_USE_GRANULAR=$G4LIB_USE_GRANULAR"
#fi
fi 

#####################################################################


#+
#
# G4WORKDIR
#
if [ $G4WORKDIR ] ; then

#if [ X$g4non_display = X ] ; then
#echo "In your environment you have the G4WORKDIR=$G4WORKDIR"
#fi # if non_display

#else

if [ X$g4non_display = X ] ; then

# Check for Windows!
if test "X$G4SYSTEM" = "XWIN32-VC" -o "X$G4SYSTEM" = "XWIN32-VC7"; then

checkdrive=`#echo $HOME|cut -d"/" -f2`

if test "X$checkdrive" = "Xcygdrive"; then

windrive=`echo $HOME|cut -d"/" -f3`
winpath=`echo $HOME|cut -d"/" -f4-`

fullwinpath="$windrive:/$winpath"
G4WORKDIR=$fullwinpath

fi # if cygwin syntax is used

if test "X$winpath" = "X"; then
#echo "G4WORKDIR will be set to ${G4WORKDIR}geant4 (in "native" Windows syntax)"
export G4WORKDIR=${G4WORKDIR}geant4
else
#echo "G4WORKDIR will be set to $G4WORKDIR/geant4 (in "native" Windows syntax)"
export G4WORKDIR=${G4WORKDIR}/geant4
fi


else # if Unix

#echo "G4WORKDIR will be set to HOME/geant4=$HOME/geant4"
export G4WORKDIR=$HOME/geant4

fi # if platforms

fi

fi

