Import Geant4 4.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 16:39:52 +02:00
parent 921d3b1cda
commit 330b82b769
4524 changed files with 178689 additions and 43575 deletions
+189 -20
View File
@@ -18,9 +18,9 @@
# you may fetch it yourself from your nearest archive site.)
#
# $Id: Configure,v 1.20 2001/12/14 12:19:57 sadilov Exp $
# $Id: Configure,v 1.29 2002/07/01 10:45:04 stesting Exp $
#
# Generated on Fri Dec 14 13:19:47 CET 2001 [metaconfig 3.0 PL70]
# Generated on Mon Jul 1 12:23:24 CEST 2002 [metaconfig 3.0 PL70]
cat >/tmp/c1$$ <<EOF
WARNING!!!!!
@@ -52,11 +52,12 @@ esac
: Proper PATH separator
p_=:
: On OS/2 this directory should exist if this is not floppy only system :-]
if test -d c:/.; then
p_=\;
PATH=`cmd /c "echo %PATH%" | tr '\\\\' / `
OS2_SHELL=`cmd /c "echo %OS2_SHELL%" | tr '\\\\' / | tr '[A-Z]' '[a-z]'`
fi
#if test -d c:/.; then
# p_=\;
# PATH=`cmd /c "echo %PATH%" | tr '\\\\' / `
#?X: That's a bug in ksh5.22
# OS2_SHELL=`cmd /c "echo %OS2_SHELL%" | tr '\\\\' / | tr '[A-Z]' '[a-z]'`
#fi
: Proper PATH setting
paths='/bin /usr/bin /usr/local/bin /usr/ucb /usr/local /usr/lbin'
@@ -205,6 +206,7 @@ g4vis_build_openglxm_driver=''
g4vis_build_raytracer_driver=''
g4vis_build_vrml_driver=''
g4vis_build_vrmlfile_driver=''
g4vis_oglhome=''
g4vis_use_asciitree=''
g4vis_use_dawn=''
g4vis_use_dawnfile=''
@@ -226,6 +228,11 @@ g4wanalysis_use=''
g4wanalysis_use_jas=''
g4wanalysis_use_lab=''
g4wanalysis_use_lizard=''
g4_gmake=''
g4_gmake_version=''
g4_make=''
g4_make_version=''
g4make=''
lns=''
c=''
n=''
@@ -305,14 +312,26 @@ if `$sh -c '#' >/dev/null 2>&1`; then
echo "#!$xcat" >try
$eunicefix try
chmod +x try
./try > today
#
# $xcat is wrong on WIN32: there is no /bin/cat and /usr/bin/cat by default.
# But we are sure that sharpbang is to be '#!' and let 'today' will be !=0.
#
# ./try > today
echo "#!$xcat" >today
if test -s today; then
sharpbang='#!'
else
echo "#! $xcat" > try
$eunicefix try
chmod +x try
./try > today
#
# $xcat is wrong on WIN32: there is no /bin/cat and /usr/bin/cat by default.
# But we are sure that sharpbang is to be '#!' and let 'today' will be !=0.
#
# ./try > today
echo "#!$xcat" >today
if test -s today; then
sharpbang='#! '
else
@@ -1306,6 +1325,8 @@ cd ../..
dnix) osname=dnix
osvers="$3"
;;
cygwin*) osname=win32
;;
domainos) osname=apollo
osvers="$3"
;;
@@ -1556,6 +1577,10 @@ case "$g4osname" in
;;
'sunos') g4osname=SUN
;;
'solaris') g4osname=SUN
;;
'win32') g4osname=WIN32
;;
esac
esac
@@ -1596,6 +1621,9 @@ case "$g4compiler" in
'SUN')
g4compiler=CC
;;
'WIN32')
g4compiler=VC
;;
esac
esac
@@ -1604,13 +1632,14 @@ while test 1 = 1 ; do
g4message=`cat << EOM
Definition of G4SYSTEM variable.
Definition of G4SYSTEM variable is $g4osname-$g4compiler.
That stands for:
1) OS : $g4osname
2) Compiler : $g4compiler
Select from list above (e.g. 2)
To modify default settings, select number above (e.g. 2)
EOM`
dflt="Press [Enter] for default settings"
@@ -1640,6 +1669,9 @@ gans=$ans
'sunos')
g4osnamerec=SUN
;;
'win32')
g4osnamerec=WIN32
;;
esac
dflt=$g4osname
rp="What is your OS'?"
@@ -1684,6 +1716,9 @@ EOM
'SUN')
g4compilerrec=CC
;;
'WIN32')
g4compilerrec=VC
;;
esac
dflt=$g4compiler
rp="Which C++ compiler?"
@@ -2154,6 +2189,9 @@ esac
case "$g4install" in
'')
if [ X$HOME = X/ ] ; then
HOME=""
fi
g4install=$HOME/geant4
;;
esac
@@ -2172,7 +2210,8 @@ esac
case "$g4include" in
'')
g4include=$g4install/include
# g4include=$g4install/include
g4include=''
;;
esac
@@ -2248,7 +2287,7 @@ g4message=`cat << EOM
2) G4LIB: $g4lib
Select from list above (e.g. 2)
To modify default settings, select number above (e.g. 2)
EOM`
#dflt="NO DEFAULT ANSWER"
@@ -2315,7 +2354,7 @@ esac
case "$g4ledata" in
'')
g4ledata=$g4install/../G4EMLOW0.5
g4ledata=$g4install/../G4EMLOW1.1
;;
esac
@@ -2341,7 +2380,7 @@ Data which is not part of the default Geant4 distribution:
4) NeutronHPCrossSections: $g4neutronhpcrosssections
Select from list above (e.g. 2)
To modify default settings, select number above (e.g. 2)
EOM`
#dflt="NO DEFAULT ANSWER"
@@ -2371,7 +2410,7 @@ gans=$ans
3)
dflt=$g4ledata
fn='f~'
rp="Where is G4EMLOW0.5 data installed ?"
rp="Where is G4EMLOW1.1 data installed ?"
. ./getfile
g4ledata=$ans
;;
@@ -2492,7 +2531,7 @@ You can customize paths of you CLHEP installation:
2) CLHEP_LIB_DIR: $g4clhep_lib_dir
3) CLHEP_LIB: $g4clhep_lib
Select from list above (e.g. 2)
To modify default settings, select number above (e.g. 2)
EOM`
@@ -2586,7 +2625,9 @@ gans=$ans
;;
y*|Y*)
g4global=y
# Shoud be comment out to keep settings from config.sh - not now to keep as in release
g4granular=n
# Shoud be comment out to keep settings from config.sh - not now to keep as in release
g4lib_use_granular=n
break
;;
@@ -2728,6 +2769,7 @@ done
echo " "
case "$g4lib_build_shared" in
'')
g4lib_build_shared=n
@@ -2735,6 +2777,7 @@ case "$g4lib_build_shared" in
esac
echo " "
case "$g4lib_build_static" in
'')
g4lib_build_static=n
@@ -2742,6 +2785,7 @@ case "$g4lib_build_static" in
esac
echo " "
case "$g4lib_use_shared" in
'')
g4lib_use_shared=n
@@ -2749,6 +2793,7 @@ case "$g4lib_use_shared" in
esac
echo " "
case "$g4lib_use_static" in
'')
g4lib_use_static=n
@@ -2882,6 +2927,98 @@ fi
fi
echo " "
case "$g4make" in
'')
g4make=gmake
;;
esac
echo ""
g4_gmake_version=`(gmake -v) 2>/dev/null`
case $g4_gmake_version in
GNU*)
g4_gmake=y
;;
*)
g4_gmake=n
;;
esac
g4_make_version=`(make -v) 2>/dev/null`
case $g4_make_version in
GNU*)
g4_make=y
;;
*)
g4_make=n
;;
esac
if [ $g4_gmake = y ] ; then
g4make=gmake
g4message=`cat << EOM
G4MAKE
You have GNU make which could be used to build GEANT4.
You can select your own 'make' program if you want.
EOM`
fi
if [ $g4_gmake = n ] && [ $g4_make = y ] ; then
g4make=make
g4message=`cat << EOM
G4MAKE
You have GNU make which could be used to build GEANT4.
You can select your own 'make' program if you want.
EOM`
fi
if [ $g4_gmake = n ] && [ $g4_make = n ] ; then
g4make=none
g4message=`cat << EOM
G4MAKE
You have NO GNU make which could be used to build GEANT4.
Please select your own 'make' program compatible with GNU make.
EOM`
dflt=$g4make
rp=$g4message
. ./myread
gans=$ans
case $gans in
'')
g4make=$dflt
;;
*)
g4make=$gans
;;
esac
fi
echo " "
case "$g4ui_none" in
@@ -2979,8 +3116,10 @@ g4message=`cat << EOM
G4UI_NONE
If set, no UI sessions nor any UI libraries are built. This can be useful
when running a pure batch job or in a user framework having its own UI system.
If this variable is set, no UI sessions nor any UI libraries are built.
This can be useful when running a pure batch job or in a user framework
having its own UI system.
Do you want to set this variable ?
EOM`
@@ -3207,6 +3346,12 @@ case "$g4vis_none" in
;;
esac
case "$g4vis_oglhome" in
'')
g4vis_oglhome="/usr"
;;
esac
case "$g4vis_build_openglwin32_driver" in
'')
g4vis_build_openglwin32_driver=n
@@ -3365,7 +3510,8 @@ g4message=`cat << EOM
G4VIS_NONE
If specified, no visualization drivers will be built or used.
If this variable is set, no visualization drivers will be built or used.
Do you want to set this variable ?
EOM`
@@ -3766,7 +3912,24 @@ gans=y
;;
esac
if [ X$g4vis_build_openglx_driver = Xy ] || [ X$g4vis_build_openglxm_driver = Xy ] || [ X$g4vis_build_openglwin32_driver = Xy ] ; then
g4message=`cat << EOM
OGLHOME/include
OGLHOME/lib
You have selected to use OpenGL driver.
Specify the correct path (OGLHOME) where OpenGL is installed in your system:
EOM`
dflt=$g4vis_oglhome
fn='d~'
rp=$g4message
. ./getfile
g4vis_oglhome=$ans
fi
echo " "
case "$g4use_hepodbms" in
'')
@@ -3911,6 +4074,10 @@ contains='$contains'
d_portable='$d_portable'
eunicefix='$eunicefix'
g4_build_wo_session='$g4_build_wo_session'
g4_gmake='$g4_gmake'
g4_gmake_version='$g4_gmake_version'
g4_make='$g4_make'
g4_make_version='$g4_make_version'
g4base='$g4base'
g4bin='$g4bin'
g4clhep_base_dir='$g4clhep_base_dir'
@@ -3933,6 +4100,7 @@ g4lib_build_static='$g4lib_build_static'
g4lib_use_granular='$g4lib_use_granular'
g4lib_use_shared='$g4lib_use_shared'
g4lib_use_static='$g4lib_use_static'
g4make='$g4make'
g4neutronhpcrosssections='$g4neutronhpcrosssections'
g4osname='$g4osname'
g4radioactivedata='$g4radioactivedata'
@@ -3963,6 +4131,7 @@ g4vis_build_openglxm_driver='$g4vis_build_openglxm_driver'
g4vis_build_raytracer_driver='$g4vis_build_raytracer_driver'
g4vis_build_vrml_driver='$g4vis_build_vrml_driver'
g4vis_build_vrmlfile_driver='$g4vis_build_vrmlfile_driver'
g4vis_oglhome='$g4vis_oglhome'
g4vis_use_asciitree='$g4vis_use_asciitree'
g4vis_use_dawn='$g4vis_use_dawn'
g4vis_use_dawnfile='$g4vis_use_dawnfile'