Import Geant4 5.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 16:57:27 +02:00
parent 330b82b769
commit 37fff30d2e
5733 changed files with 263867 additions and 74574 deletions
+239 -55
View File
@@ -18,9 +18,9 @@
# you may fetch it yourself from your nearest archive site.)
#
# $Id: Configure,v 1.29 2002/07/01 10:45:04 stesting Exp $
# $Id: Configure,v 1.31 2002/12/13 15:46:47 stesting Exp $
#
# Generated on Mon Jul 1 12:23:24 CEST 2002 [metaconfig 3.0 PL70]
# Generated on Fri Dec 13 16:43:52 CET 2002 [metaconfig 3.0 PL70]
cat >/tmp/c1$$ <<EOF
WARNING!!!!!
@@ -219,7 +219,6 @@ g4vis_use_openglxm=''
g4vis_use_raytracer=''
g4vis_use_vrml=''
g4vis_use_vrmlfile=''
g4use_hepodbms=''
g4wanalysis_build=''
g4wanalysis_build_jas=''
g4wanalysis_build_lab=''
@@ -233,6 +232,8 @@ g4_gmake_version=''
g4_make=''
g4_make_version=''
g4make=''
g4w_use_g3tog4=''
g4wlib_build_g3tog4=''
lns=''
c=''
n=''
@@ -449,6 +450,11 @@ while test $# -gt 0; do
-d) shift; fastread=yes;;
-e) shift; alldone=cont;;
-install) shift; install=yes;;
-ldlibs) shift; g4ldlibs=yes;;
-ldflags) shift; g4ldflags=yes;;
-cppflags) shift; g4cppflags=yes;;
-cxxflags) shift; g4cxxflags=yes;;
-incflags) shift; g4incflags=yes;;
-f)
shift
cd ../..
@@ -503,11 +509,16 @@ done
case "$error" in
true)
cat >&2 <<EOM
Usage: $me [-dehrsEKOSV] [-install] [-f config.sh] [-D symbol] [-D symbol=value]
Usage: $me [-dehrsEKOSV] [-install] [-libs] [-f config.sh] [-D symbol] [-D symbol=value]
[-U symbol] [-U symbol=]
-d : use defaults for all answers.
-e : go on without questioning past the production of config.sh.
-install : start configuration AND installation of Geant4 libraries.
-ldlibs : retrieve the list of libraries to link
-ldflags : retrieve the list of directories where libraries are placed
-cxxflags : retrieve the list of cxxflags
-cppflags : retrieve the list of cppflags
-incflags : retrieve the list of incflags
-f : specify an alternate default configuration file.
-h : print this help message and exit (with an error status).
-r : reuse C symbols value if possible (skips costly nm extraction).
@@ -573,7 +584,7 @@ chmod +x contains
esac
: first determine how to suppress newline on echo command
echo " "
#echo " "
#echo "Checking echo to see how to suppress newlines..."
(echo "hi there\c" ; echo " ") >.echotmp
if $contains c .echotmp >/dev/null 2>&1 ; then
@@ -764,8 +775,8 @@ case "$rsrc" in
;;
../../.) ;;
*)
echo " "
echo "Sources for $package found in $src" >&4
# echo " "
# echo "Sources for $package found in $src" >&4
;;
esac
@@ -895,27 +906,27 @@ true)
esac
: Eunice requires " " instead of "", can you believe it
echo " "
#echo " "
: Here we go...
if [ X$install = Xyes ] ; then
echo " "
echo " "
echo " "
echo " --- Geant4 Toolkit Installation ---"
echo " "
echo " "
echo " "
echo " "
else
echo " "
echo " "
echo " "
echo " --- Geant4 Toolkit Installation ---"
echo " (setting environments for USER )"
echo " "
echo " "
echo " "
fi
#if [ X$install = Xyes ] ; then
#echo " "
#echo " "
#echo " "
#echo " --- Geant4 Toolkit Installation ---"
#echo " "
#echo " "
#echo " "
#echo " "
#else
#echo " "
#echo " "
#echo " "
#echo " --- Geant4 Toolkit Installation ---"
#echo " (setting environments for USER )"
#echo " "
#echo " "
#echo " "
#fi
trap 'echo " ";rm -rf ../../.config/UU; test -d ../../.config/UU && rm -rf X $rmlist; exit 1' 1 2 3 15
@@ -936,6 +947,16 @@ case "$user" in
'') user=`whoami 2>&1`;;
esac
if [ X$install = Xyes ] ; then
echo " "
echo " "
echo " "
echo " --- Geant4 Toolkit Installation ---"
echo " "
echo " "
echo " "
echo " "
if $contains "^$user\$" ../../.config/instruct >/dev/null 2>&1; then
firsttime=false
echo " "
@@ -1560,7 +1581,7 @@ fi
fi
: Sadilov: g4system.U - inserted here.
: 'current' directory is where 'Configure' is started
echo " "
#echo " "
case "$g4osname" in
'')
@@ -1584,7 +1605,7 @@ case "$g4osname" in
esac
esac
echo " "
#echo " "
case "$g4compiler" in
@@ -1752,6 +1773,7 @@ EOM
;;
esac
done
fi
#
@@ -1759,11 +1781,11 @@ fi
#
g4system=$g4osname-$g4compiler
cat << EOM
G4SYSTEM is now set to $g4system.
EOM
#cat << EOM
#
#G4SYSTEM is now set to $g4system.
#
#EOM
cd .config/UU
@@ -1775,7 +1797,148 @@ dflt=n
cd ../..
if [ X$install = X ] ; then
if test -f $src/.config/bin/$g4system/env.sh; then
# create not_display flag
if [ X$g4ldlibs != X -o X$g4ldflags != X -o X$g4cxxflags != X -o X$g4cppflags != X -o X$g4incflags != X ] ; then
g4non_display=yes
# echo g4non_display=$g4non_display
fi
if [ X$g4cppflags = Xyes ] ; then
. $src/.config/bin/$g4system/env.sh
CPPFLAGS=`grep 'CPPFLAGS_FINAL :=' $G4LIB/$G4SYSTEM/GNUmakefile.db | awk -F := '{print $2}'`
# echo CPPFLAGS=$CPPFLAGS
echo $CPPFLAGS
$rm -rf .config/UU
exit 1
fi #end of cppflags
if [ X$g4cxxflags = Xyes ] ; then
. $src/.config/bin/$g4system/env.sh
CXXFLAGS=`grep 'CXXFLAGS_FINAL :=' $G4LIB/$G4SYSTEM/GNUmakefile.db | awk -F := '{print $2}'`
# echo CXXFLAGS=$CXXFLAGS
echo $CXXFLAGS
$rm -rf .config/UU
exit 1
fi #end of cxxflags
if [ X$g4incflags = Xyes ] ; then
. $src/.config/bin/$g4system/env.sh
INCFLAGS=`grep 'INCFLAGS_FINAL :=' $G4LIB/$G4SYSTEM/GNUmakefile.db | awk -F := '{print $2}'`
# echo INCFLAGS=$INCFLAGS
echo $INCFLAGS
$rm -rf .config/UU
exit 1
fi #end of incflags
if [ X$g4ldflags = Xyes ] ; then
. $src/.config/bin/$g4system/env.sh
LDFLAGS=`grep 'LDFLAGS_FINAL :=' $G4LIB/$G4SYSTEM/GNUmakefile.db | awk -F := '{print $2}'`
# echo LDFLAGS=$LDFLAGS
echo $LDFLAGS
$rm -rf .config/UU
exit 1
fi #end of ldflags
if [ X$g4ldlibs = Xyes ] ; then
# cat >&2 <<EOM
#---------------------------------------------------
#LibList mode :)
#---------------------------------------------------
#EOM
. $src/.config/bin/$g4system/env.sh
# echo TEST
# ls -l $G4INSTALL/config/scripts/GNUmakefile
# ls -l $G4LIB/$G4SYSTEM/GNUmakefile.db
# LDLIBS_1=`grep 'LDLIBS_FINAL :=' $G4LIB/$G4SYSTEM/GNUmakefile.db | awk -F := '{print $2}'`
# LDLIBS_2=`echo $LDLIBS_1 | awk -F -lMarker '{print $2}'`
# echo LDLIBS_2=$LDLIBS_2
# echo $LDLIBS_2
if [ X$G4LIB_USE_GRANULAR = X ] ; then
# Global libs
LDLIBS_1=`grep 'LDLIBS_FINAL :=' $G4LIB/$G4SYSTEM/GNUmakefile.db | awk -F := '{print $2}'`
LDLIBS_2=`echo $LDLIBS_1 | awk -F -lMarker '{print $2}'`
echo "$LDLIBS_2 $c"
# echo "-L$G4WORKDIR/lib/$G4SYSTEM -lG4persistency -lG4readout -lG4run -lG4event -lG4tracking -lG4parmodels -lG4processes -lG4digits+hits -lG4track -lG4particles -lG4geometry -lG4materials -lG4graphics_reps -lG4intercoms -lG4global $c"
$rm -rf .config/UU
exit 1
else
# Granular libs
# echo $n "-L$G4WORKDIR/lib/$G4SYSTEM $c" ; $G4WORKDIR/lib/$G4SYSTEM/liblist -m $G4WORKDIR/lib/$G4SYSTEM < $G4WORKDIR/lib/$G4SYSTEM/libname.map
# echo G4LIB=$G4LIB/$G4SYSTEM
LIBLIST_LIST=`$G4LIB/$G4SYSTEM/liblist -m $G4LIB/$G4SYSTEM < $G4LIB/$G4SYSTEM/libname.map`
LDLIBS3=`grep 'LDLIBS3 :=' $G4LIB/$G4SYSTEM/GNUmakefile.db | awk -F := '{print $2}'`
LDLIBS4=`grep 'LDLIBS4 :=' $G4LIB/$G4SYSTEM/GNUmakefile.db | awk -F := '{print $2}'`
LDLIBS=$LIBLIST_LIST $LDLIBS3 $LDLIBS4
echo $LDLIBS
$rm -rf .config/UU
exit 1
fi #end of check for global/granular
else #if not -lib but user mode
# header for User
echo " "
echo " "
echo " "
echo " --- Geant4 Toolkit Installation ---"
echo " (setting environments for USER )"
echo " "
echo " "
echo " "
#cat << EOM
#
#G4SYSTEM is now set to $g4system.
#
#EOM
cat >&2 <<EOM
---------------------------------------------------
The Geant4 toolkit installation was found.
@@ -1800,7 +1963,19 @@ cp -i $src/.config/bin/$g4system/env.csh .
cp -i $src/.config/bin/$g4system/env.sh .
exit 1
else
fi #end of -lib or user
else #there is no env.sh
# header for Installer
echo " "
echo " "
echo " "
echo " --- Geant4 Toolkit Installation ---"
echo " "
echo " "
echo " "
echo " "
echo " "
echo "WARNING: Geant4 is NOT installed yet!"
echo "You (or the administrator if you have not enough privileges)"
@@ -1809,8 +1984,9 @@ else
echo " "
$rm -rf .config/UU
exit 1
fi
fi
fi #end of check for existence of env.sh
fi #end of check for "not -install"
cd .config/UU
case "$knowitall" in
@@ -2360,7 +2536,7 @@ esac
case "$g4neutronhpcrosssections" in
'')
g4neutronhpcrosssections=$g4install/../G4NDL3.5
g4neutronhpcrosssections=$g4install/../G4NDL3.7
;;
esac
@@ -2417,7 +2593,7 @@ gans=$ans
4)
dflt=$g4neutronhpcrosssections
fn='f~'
rp="Where is G4NDL3.5 installed?"
rp="Where is G4NDL3.7 installed?"
. ./getfile
g4neutronhpcrosssections=$ans
;;
@@ -2594,7 +2770,7 @@ echo " "
# Will be set (if needed) in GNUmakefile!
case "$g4lib_use_granular" in
'')
g4lib_use_granular=n
g4lib_use_granular=y
;;
esac
@@ -2620,7 +2796,7 @@ gans=$ans
n*|N*)
g4global=n
g4granular=y
g4lib_use_granular=n
g4lib_use_granular=y
break
;;
y*|Y*)
@@ -2703,6 +2879,7 @@ gans=$ans
case $gans in
n*|N*)
g4lib_use_granular=n
break
;;
y*|Y*)
@@ -3931,25 +4108,30 @@ g4vis_oglhome=$ans
fi
echo " "
case "$g4use_hepodbms" in
case "$g4wlib_build_g3tog4" in
'')
g4use_hepodbms=n
g4wlib_build_g3tog4=n
;;
esac
case "$g4w_use_g4tog4" in
'')
g4w_use_g3tog4=n
;;
esac
echo ""
g4message=`cat << EOM
G4USE_HEPODBMS
In Geant4, object persistency is provided as an optional category, so
that the users could be able to run Geant4 with or without a commercial
ODBMS package. How to store and retrieve Geant4 events, hits and geometry
objects is explained in documentation.
G4USE_G3TOG4
If this variable is set, it will be built G3TOG4 module.
Do you want to set this variable ?
For setting this you should have an ODMG compliant database
(e.g. Objectivity/DB) installed and running on your system!
EOM`
dflt=$g4use_hepodbms
dflt=$g4wlib_build_g3tog4
rp=$g4message
. ./myread
gans=$ans
@@ -3957,15 +4139,16 @@ gans=$ans
case $gans in
n*|N*)
g4use_hepodbms=n
g4wlib_build_g3tog4=n
g4w_use_g4tog4=n
;;
y*|Y*)
g4use_hepodbms=y
g4wlib_build_g3tog4=y
g4w_use_g3tog4=y
;;
esac
echo " "
case "$g4wanalysis_use" in
@@ -4118,7 +4301,6 @@ g4ui_use_win32='$g4ui_use_win32'
g4ui_use_wo='$g4ui_use_wo'
g4ui_use_xaw='$g4ui_use_xaw'
g4ui_use_xm='$g4ui_use_xm'
g4use_hepodbms='$g4use_hepodbms'
g4vis_build_asciitree_driver='$g4vis_build_asciitree_driver'
g4vis_build_dawn_driver='$g4vis_build_dawn_driver'
g4vis_build_dawnfile_driver='$g4vis_build_dawnfile_driver'
@@ -4144,6 +4326,7 @@ g4vis_use_openglxm='$g4vis_use_openglxm'
g4vis_use_raytracer='$g4vis_use_raytracer'
g4vis_use_vrml='$g4vis_use_vrml'
g4vis_use_vrmlfile='$g4vis_use_vrmlfile'
g4w_use_g3tog4='$g4w_use_g3tog4'
g4wanalysis_build='$g4wanalysis_build'
g4wanalysis_build_jas='$g4wanalysis_build_jas'
g4wanalysis_build_lab='$g4wanalysis_build_lab'
@@ -4152,6 +4335,7 @@ g4wanalysis_use='$g4wanalysis_use'
g4wanalysis_use_jas='$g4wanalysis_use_jas'
g4wanalysis_use_lab='$g4wanalysis_use_lab'
g4wanalysis_use_lizard='$g4wanalysis_use_lizard'
g4wlib_build_g3tog4='$g4wlib_build_g3tog4'
g4workdir='$g4workdir'
hint='$hint'
lns='$lns'