Newer
Older
check_library "libgsl gslML gsl" "$enable_gsl_shared" "$gsllibdir" \
$GSL $GSL/lib $GSL/.libs /usr/local/lib /usr/lib /opt/gsl/lib \
$finkdir/lib
if test ! "x$found_lib" = "x"; then
gsllibs=$found_lib
gsllibdir=$found_dir
# in case of shared libs (gsllibdir is not empty) need gslcblas
# assume libgslcblas is in same dir as libgsl
check_library "libgslcblas gslcblasML gslcblas cblas" "$enable_gsl_shared" "$gsllibdir0" \
$GSL $GSL/lib $GSL/.libs /usr/local/lib /usr/lib /opt/gsl/lib \
$finkdir/lib
if test ! "x$found_lib" = "x"; then
gsllibs="$gsllibs $found_lib"
gsllibdir=$found_dir
else
#cblas not found
gsllibs=""
fi
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
#
# if gslincdir not specified look for gsl-config
#
# gsl-config check does not work on Solaris so lets skip it
if test "x$platform" = "xsolaris"; then
if (test "x$gslincdir" = "x" || test "x$gsllibs" = "x"); then
gslskip="skip"
enable_mathmore="no"
fi
fi
# skip cygwin gsl-config when in pure Win32 mode
if test "x$platform" = "xwin32"; then
case `$cwhich gsl-config` in
/bin/*|/usr/bin/*)
if (test "x$gslincdir" = "x" || test "x$gsllibs" = "x"); then
gslskip="skip"
enable_mathmore="no"
fi
;;
esac
fi
if (test "x$gslincdir" = "x" || test "x$gsllibs" = "x") && \
test ! "x$gslskip" = "xskip"; then
checking_msg "gsl-config"
if `$cwhich gsl-config > /dev/null 2>&1` ; then
$cwhich gsl-config
# we found gsl-config - now check the version number
gsl_version=`gsl-config --version | awk 'BEGIN { FS="." } { printf "%d", $1 * 1000 + $2 }'`
result "no (`gsl-config --version`)"
enable_mathmore="no"
else
# We've found `gsl-config' - use that to get the compiler
# and linker flags
result "ok"
gslflags=`gsl-config --cflags`
if test "x$enable_gsl_shared" = "xyes"; then
gsllibs=`gsl-config --libs`
else
# use static libs
gslprefix=`gsl-config --prefix`
gsllibs="$gslprefix/lib/libgsl.a $gslprefix/lib/libgslcblas.a"
fi
gsllibdir=""
fi
else
enable_mathmore="no"
result "not found"
fi
fi
if test "x$enable_mathmore" = "xyes"; then
result "yes"
hasmathmore="define"
hasmathmore="undef"
check_explicit "$enable_mathmore" "$enable_mathmore_explicit" \
"Explicitly required MathMore dependencies not fulfilled"
######################################################################
#
message "Checking whether to build libGenVector"
if test ! "x$enable_genvector" = "xno"; then
enable_genvector="yes"
check_explicit "$enable_genvector" "$enable_genvector_explicit" \
"Explicitly required GenVector dependencies not fulfilled"
######################################################################
#
#
message "Checking whether to build CINT7"
if test ! "x$enable_cint7" = "xno"; then
enable_cint7="yes"
# remove CINT5's include/G__ci.h etc
if test -d include/cint; then
for f in `cd include/cint/; ls`; do
if test -f include/$f; then
rm include/$f
fi
done
fi
Fons Rademakers
committed
######################################################################
#
### echo %%% Cintex Library - Contributed library
Fons Rademakers
committed
#
message "Checking whether to build libCintex"
Fons Rademakers
committed
enable_cintex="yes"
Fons Rademakers
committed
else
enable_cintex=""
Fons Rademakers
committed
fi
Fons Rademakers
committed
######################################################################
#
### echo %%% Reflex Library - Contributed library
#
message "Checking whether to build libReflex"
Fons Rademakers
committed
enable_reflex="yes"
Fons Rademakers
committed
else
enable_reflex=""
Fons Rademakers
committed
fi
######################################################################
#
### echo %%% RooFit Library - Contributed library
#
message "Checking whether to build libRooFit"
if test "x$enable_roofit" = "xyes" || test ! "x$ROOFIT" = "x"; then
enable_roofit="yes"
else
enable_roofit=""
fi
######################################################################
#
### echo %%% Minuit2 Library - Contributed library
#
message "Checking whether to build libMinuit2"
if test "x$enable_minuit2" = "xyes" || test ! "x$MINUIT2" = "x"; then
enable_minuit2="yes"
######################################################################
#
### echo %%% Unuran Library - Contributed library
#
message "Checking whether to build libUnuran"
if test "x$enable_unuran" = "xyes" || test ! "x$UNURAN" = "x"; then
enable_unuran="yes"
result "yes"
else
enable_unuran=""
result "no"
fi
######################################################################
#
### echo %%% GDML Library - Contributed library
#
message "Checking whether to build libGdml"
if test "x$enable_gdml" = "xyes" || test ! "x$GDML" = "x"; then
enable_gdml="yes"
result "yes"
else
enable_gdml=""
result "no"
fi
######################################################################
#
### echo %%% Table Library - Contributed library
#
message "Checking whether to build libTable"
if test "x$enable_table" = "xyes" || test ! "x$TABLE" = "x"; then
else
fi
Fons Rademakers
committed
######################################################################
#
### echo %%% MemStat Library - check for memory leaks in application.
#
message "Checking whether to build libMemStat"
if test "x$enable_memstat" = "xyes" || test ! "x$MEMSTAT" = "x"; then
case $arch in
linux*)
enable_memstat="yes" ;;
*)
enable_memstat="no" ;;
esac
else
enable_memstat="no"
fi
result $enable_memstat
######################################################################
#
### echo %%% Clarens Support - Third party libraries
#
# (See http://clarens.sourceforge.net/)
#
checking_msg "Clarens support"
if test ! "x$enable_clarens" = "xno" ; then
myxmlrpc=`$cwhich xmlrpc-c-config 2> /dev/null`
if test ! "x$myxmlrpc" = "x" && test -x "$myxmlrpc" ; then
clarensincdir=`xmlrpc-c-config curl-client --cflags 2> /dev/null`
clarenslibs=`xmlrpc-c-config curl-client --ldadd 2> /dev/null`
if test "x$clarensincdir" = "x" ; then
clarensincdir=`xmlrpc-c-config client --cflags 2> /dev/null`
if test $? -ne 0 ; then clarensincdir= ; fi
clarenslibs=`xmlrpc-c-config client --ldadd 2> /dev/null`
if test $? -ne 0 ; then clarenslibs= ; fi
fi
if test "x$clarensincdir" = "x" ; then
clarensincdir=`xmlrpc-c-config --cflags 2> /dev/null`
if test $? -ne 0 ; then clarensincdir= ; fi
clarenslibs=`xmlrpc-c-config --ldadd 2> /dev/null`
if test $? -ne 0 ; then clarenslibs= ; fi
fi
if test "x$clarensincdir" = "x" || test "x$clarenslibs" = "x"; then
enable_clarens="no"
fi
fi
if test "x$enable_clarens" = "xyes" ; then
check_explicit "$enable_clarens" "$enable_clarens_explicit" \
"Explicitly required Clarens dependencies not fulfilled"
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
######################################################################
#
### echo %%% PEAC Support - depends on Clarens
#
# (See http://www.clarens.org)
#
checking_msg "PEAC support"
if test ! "x$enable_peac" = "xno" ; then
if test "x$enable_clarens" = "xno"; then
enable_peac="no"
fi
fi
if test "x$enable_peac" = "xyes" ; then
buildpeac="yes"
else
buildpeac="no"
fi
check_explicit "$enable_peac" "$enable_peac_explicit" \
"Explicitly required Peac dependencies not fulfilled"
######################################################################
#
### echo %%% Check for Stub removal support
#
if test "x$no_stubs" = "xyes" || test "x$no_stubs_test" = "xyes"; then
message "Checking for CINT support of function calls via symbols"
no_stubs="yes"
# Now check whether the platform is supported at all:
if test "x${arch}" = "xlinux"; then
gccmajor="`gcc -dumpversion 2>&1 | cut -d'.' -f1`"
gccminor="`gcc -dumpversion 2>&1 | cut -d'.' -f2`"
gccminorOK="`echo 234 | grep ${gccminor}`"
if test ! "x$gccmajor" = "x3" || test ! "x$gccminorOK" = "x234"; then
no_stubs="no"
no_stubs_test="no"
result "$no_stubs"
echo "WARNING: symbol-based calls are not supported with your compiler version"'!'
else
result "$no_stubs"
result "$no_stubs"
echo "WARNING: symbol-based calls are not supported on ${arch}"'!'
######################################################################
#
### echo %%% What dictionaries to build
#
# Option will be passed to rootcint(_tmp),
# and root-config --libs will have -lReflex if needed.
#
# --with-dicttype overrides env var ROOTDICTTYPE
if test "x$dicttype" = "x" ; then
dicttype="$ROOTDICTTYPE"
fi
if test "x$dicttype" = "x"; then
dicttype=cint
fi
case "$dicttype" in
cint);;
reflex | gccxml)
# check that cintex is enabled for reflex/gccxml
if test ! "x$enable_cintex" = "xyes"; then
result "Cannot generate $dicttype dictionaries with cintex disabled."
result "Unknown dictionary \"$dicttype\"."
result " Must be one of cint, reflex, gccxml."
dicttype=cint
ROOTDICTTYPE="trigger print info"
;;
esac
# Print info if dicttype!=cint, or --with-dict overrides $ROOTDICTTYPE
if test ! "x$dicttype" = "xcint" \
-o ! "x$dicttype" = "x$ROOTDICTTYPE"; then
Fons Rademakers
committed
######################################################################
#
### echo %%% Debian or Red Hat package list
#
# If we're asked to build for a set of RPMs or Debian packages, we
# make a list of the packages it's possible for us to build on this
# system.
#
if test "x$show_pkglist" = "xyes" ; then
test "x$enable_alien" = "xyes" && pkglist="$pkglist root-plugin-alien"
test "x$enable_asimage" = "xyes" && pkglist="$pkglist root-plugin-asimage"
test "x$enable_castor" = "xyes" && pkglist="$pkglist root-plugin-castor"
test "x$enable_cern" = "xyes" && pkglist="$pkglist root-plugin-hbook"
test "x$enable_chirp" = "xyes" && pkglist="$pkglist root-plugin-chirp"
test "x$enable_cint7" = "xyes" && pkglist="$pkglist root-plugin-cint7"
test "x$enable_clarens" = "xyes" && pkglist="$pkglist libroot-clarens"
test "x$enable_dcache" = "xyes" && pkglist="$pkglist root-plugin-dcache"
test "x$enable_fftw3" = "xyes" && pkglist="$pkglist root-plugin-fftw3"
test "x$enable_gfal" = "xyes" && pkglist="$pkglist root-plugin-gfal"
test "x$enable_g4root" = "xyes" && pkglist="$pkglist root-plugin-g4root"
test "x$enable_globus" = "xyes" && pkglist="$pkglist root-plugin-globus"
test "x$enable_krb5" = "xyes" && pkglist="$pkglist root-plugin-krb5"
test "x$enable_ldap" = "xyes" && pkglist="$pkglist libroot-ldap"
test "x$enable_minuit2" = "xyes" && pkglist="$pkglist root-plugin-minuit2"
test "x$enable_mathmore" = "xyes" && pkglist="$pkglist libroot-mathmore"
test "x$enable_monalisa" = "xyes" && pkglist="$pkglist root-plugin-monalisa"
test "x$enable_mysql" = "xyes" && pkglist="$pkglist root-plugin-mysql"
test "x$enable_odbc" = "xyes" && pkglist="$pkglist root-plugin-odbc"
test "x$enable_opengl" = "xyes" && pkglist="$pkglist root-plugin-gl"
test "x$enable_oracle" = "xyes" && pkglist="$pkglist root-plugin-oracle"
test "x$enable_peac" = "xyes" && pkglist="$pkglist root-plugin-peac"
test "x$enable_pgsql" = "xyes" && pkglist="$pkglist root-plugin-pgsql"
test "x$enable_pythia6" = "xyes" && pkglist="$pkglist root-plugin-pythia6"
test "x$enable_python" = "xyes" && pkglist="$pkglist libroot-python"
test "x$enable_qt" = "xyes" && pkglist="$pkglist root-plugin-qt"
test "x$enable_roofit" = "xyes" && pkglist="$pkglist libroot-roofit"
test "x$enable_ruby" = "xyes" && pkglist="$pkglist libroot-ruby"
test "x$enable_rfio" = "xyes" && pkglist="$pkglist root-plugin-rfio"
test "x$enable_sapdb" = "xyes" && pkglist="$pkglist root-plugin-maxdb"
test "x$enable_srp" = "xyes" && pkglist="$pkglist root-plugin-srp"
test "x$enable_unuran" = "xyes" && pkglist="$pkglist libroot-unuran"
test "x$enable_xml" = "xyes" && pkglist="$pkglist root-plugin-xml"
test "x$enable_xrootd" = "xyes" && pkglist="$pkglist root-system-xrootd root-plugin-netx"
pkglist="$pkglist root-plugin-fumili libroot-minuit libroot-mlp libroot-tmva root-plugin-proof root-plugin-xproof root-plugin-sql libroot-quadp root-system-proofd root-system-rootd root-system-doc root-system-bin libroot root-system-common ttf-root-installer"
# If we're called from the package preparation script, then
# print out the package list and exit
exit 0
fi
######################################################################
#
### echo %%% check for setresuid and setresgid
#
setresuid="undef"
Fons Rademakers
committed
case $platform in
linux)
message "Checking whether setresuid declared in /usr/include/unistd.h"
if `grep setresuid /usr/include/unistd.h > /dev/null 2>&1` ; then
setresuid="define"
else
fi ;;
esac
######################################################################
#
### echo %%% Explicitlink - explicitly link with all dependent libraries
#
Fons Rademakers
committed
case $arch in
enable_explicitlink="yes"
;;
esac
Fons Rademakers
committed
if test "x$enable_explicitlink" = "xyes" && test ! "x$platform" = "xwin32"; then
mkliboption=$mkliboption"-x "
fi
######################################################################
#
### echo %%% Exit here if this is a dry run
#
if test "x$noact" = "xyes" ; then
exit 0
fi
######################################################################
Fons Rademakers
committed
#
### echo %%% Create needed directories
#
if test ! -d include ; then
message "Creating include"
mkdir include
fi
if test ! -d bin ; then
message "Creating bin"
mkdir bin
fi
if test ! -d lib ; then
message "Creating lib"
mkdir lib
fi
Fons Rademakers
committed
######################################################################
#
### echo %%% Cleanup obsolete links and files
Fons Rademakers
committed
#
if test -h opengl ; then
Fons Rademakers
committed
rm -f opengl
fi
if test -h ttf ; then
Fons Rademakers
committed
rm -f ttf
fi
if test -f system.rootrc ; then
Fons Rademakers
committed
rm -f system.rootrc
fi
if test -d new ; then
rm -rf new
fi
if test -d star ; then
rm -rf star
fi
if test -d freetype/src/freetype-2.1.9 ; then
rm -rf freetype/src/freetype-2.1.9
fi
if test -d pcre/src/pcre-6.4 ; then
rm -rf pcre/src/pcre-6.4
fi
rm -f lib/libRXML* bin/libRXML* bin/xproofd etc/system.rootmap
rm -f lib/libProofGui* bin/libProofGui* bin/xrdgsiproxy
rm -f lib/libMySQL* bin/libMySQL* lib/libGedOld* bin/libGedOld*
rm -f math/mathcore/src/G__MathCore32.*
rm -f xrootd/src/headers.d
rm -f asimage/src/headers.d asimage/src/G__ASImageGS.*
Fons Rademakers
committed
######################################################################
#
### echo %%% Fleshin out paths
Fons Rademakers
committed
#
# First win32 does not support -L in ldflags, so remove @ldflags@.
#
Fons Rademakers
committed
if test "x$platform" = "xwin32" ; then
sed -e "s|@ldflags@||" \
< Makefile.tmp > Makefile.tmpp
mv Makefile.tmpp Makefile.tmp
fi
if test "x$enable_globus" = "xyes" && test "x$enable_rpath" = "xyes"; then
case "$arch" in
solarisCC5)
sed -e "s|@ldflags@|-R$globusdir/lib @ldflags@|" \
< Makefile.tmp > Makefile.tmpp
;;
solarisgcc* | linux* | freebsd* | openbsd*)
sed -e "s|@ldflags@|-Wl,-rpath,$globusdir/lib @ldflags@|" \
< Makefile.tmp > Makefile.tmpp
;;
macosx*)
if test ! "x$macosx105" = "x"; then
sed -e "s|@ldflags@|-Wl,-rpath,$globusdir/lib @ldflags@|" \
< Makefile.tmp > Makefile.tmpp
fi
;;
esac
if test -f Makefile.tmpp ; then
mv Makefile.tmpp Makefile.tmp
if test ! "x$haveconfig" = "x" ; then
Fons Rademakers
committed
##################################################################
#
### echo %%% Static directory build.
Fons Rademakers
committed
#
if test "x$prefix" = "x"; then prefix=/usr/local; fi
if test "x$bindir" = "x"; then bindir=$prefix/bin; fi
if test "x$libdir" = "x"; then libdir=$prefix/lib/root; fi
if test "x$incdir" = "x"; then incdir=$prefix/include/root; fi
if test "x$etcdir" = "x"; then etcdir=/etc/root; fi
if test "x$mandir" = "x"; then mandir=$prefix/share/man/man1; fi
if test "x$datadir" = "x"; then datadir=$prefix/share/root; fi
if test "x$macrodir" = "x"; then macrodir=$datadir/macros; fi
if test "x$cintincdir" = "x"; then cintincdir=$libdir/cint; fi
if test "x$iconpath" = "x"; then iconpath=$datadir/icons; fi
if test "x$srcdir" = "x"; then srcdir=$datadir/src; fi
if test "x$fontdir" = "x"; then fontdir=$datadir/fonts; fi
if test "x$docdir" = "x"; then docdir=$prefix/share/doc/root; fi
if test "x$testdir" = "x"; then testdir=$docdir/test; fi
if test "x$tutdir" = "x"; then tutdir=$docdir/tutorials; fi
if test "x$aclocaldir" = "x"; then aclocaldir=$prefix/share/aclocal; fi
if test "x$elispdir" = "x"; then elispdir=$prefix/share/emacs/site-lisp; fi
if test "x$enable_rpath" = "xyes" ; then
sed -e "s|@ldflags@|-R$libdir @ldflags@|" \
Fons Rademakers
committed
< Makefile.tmp > Makefile.tmpp
solarisgcc* | linux* | freebsd* | openbsd*)
sed -e "s|@ldflags@|-Wl,-rpath,$libdir @ldflags@|" \
< Makefile.tmp > Makefile.tmpp
;;
macosx*)
if test ! "x$macosx105" = "x"; then
sed -e "s|@ldflags@|-Wl,-rpath,$libdir @ldflags@|" \
< Makefile.tmp > Makefile.tmpp
fi
;;
esac
if test -f Makefile.tmpp ; then
mv Makefile.tmpp Makefile.tmp
fi
Fons Rademakers
committed
fi
sed -e "s|@useconfig@|TRUE|" \
-e "s|@cflags@|$haveconfig|" \
< Makefile.tmp > Makefile.tmpp
mv Makefile.tmpp Makefile.tmp
else
Fons Rademakers
committed
##################################################################
#
### echo %%% Environment driven build. Escape sequences very important
Fons Rademakers
committed
#
prefix=\$\(ROOTSYS\)
bindir=\$\(ROOTSYS\)/bin
libdir=\$\(ROOTSYS\)/lib
incdir=\$\(ROOTSYS\)/include
datadir=\$\(ROOTSYS\)
macrodir=\$\(ROOTSYS\)/macros
cintincdir=\$\(ROOTSYS\)/cint
iconpath=\$\(ROOTSYS\)/icons
srcdir=\$\(ROOTSYS\)/src
fontdir=\$\(ROOTSYS\)/fonts
docdir=\$\(ROOTSYS\)
testdir=\$\(ROOTSYS\)/test
tutdir=\$\(ROOTSYS\)/tutorials
aclocaldir=\$\(ROOTSYS\)/build/misc
elispdir=\$\(ROOTSYS\)/build/misc
# when using rpath in this case the build product is not relocatable
# except for macosx 10.5 where we build relative to the location of
# the executable
if test "x$enable_rpath" = "xyes" ; then
case "$arch" in
solarisCC5)
sed -e "s|@ldflags@|-R$libdir @ldflags@|" \
Fons Rademakers
committed
< Makefile.tmp > Makefile.tmpp
;;
solarisgcc* | linux* | freebsd* | openbsd*)
sed -e "s|@ldflags@|-Wl,-rpath,$libdir @ldflags@|" \
Fons Rademakers
committed
< Makefile.tmp > Makefile.tmpp
;;
macosx*)
if test ! "x$macosx105" = "x"; then
sed -e "s|@ldflags@|-Wl,-rpath,@loader_path/../lib @ldflags@|" \
< Makefile.tmp > Makefile.tmpp
fi
;;
esac
if test -f Makefile.tmpp ; then
mv Makefile.tmpp Makefile.tmp
fi
fi
sed -e "s|@useconfig@|FALSE|" \
< Makefile.tmp > Makefile.tmpp
mv Makefile.tmpp Makefile.tmp
fi
Fons Rademakers
committed
######################################################################
#
### echo %%% Writing files
Fons Rademakers
committed
#
#---------------------------------------------------------------------
# config/Makefile.config
#
message "Writing $MAKEOUT"
Fons Rademakers
committed
sed -e "s|@aclocaldir@|$aclocaldir|" \
Fons Rademakers
committed
-e "s|@afslib@|$afslib|" \
-e "s|@afslibdir@|$afslibdir|" \
Fons Rademakers
committed
-e "s|@alienincdir@|$alienincdir|" \
-e "s|@alienlib@|$alienlib|" \
-e "s|@alienlibdir@|$alienlibdir|" \
-e "s|@architecture@|$arch|" \
-e "s|@asextralib@|$asextralib|" \
-e "s|@asextralibdir@|$asextralibdir|" \
Fons Rademakers
committed
-e "s|@asjpegincdir@|$asjpegincdir|" \
-e "s|@aspngincdir@|$aspngincdir|" \
-e "s|@astiffincdir@|$astiffincdir|" \
-e "s|@asgifincdir@|$asgifincdir|" \
-e "s|@asimageincdir@|$asimageincdir|" \
-e "s|@asimagelib@|$asimagelib|" \
-e "s|@asimagelibdir@|$asimagelibdir|" \
Fons Rademakers
committed
-e "s|@bindir@|$bindir|" \
-e "s|@buildasimage@|$enable_asimage|" \
-e "s|@builtinafterimage@|$enable_builtin_afterimage|" \
-e "s|@builtinfreetype@|$enable_builtin_freetype|" \
-e "s|@builtinpcre@|$enable_builtin_pcre|" \
-e "s|@buildxrd@|$buildxrd|" \
-e "s|@castorincdir@|$castorincdir|" \
-e "s|@castorlib@|$castorlib|" \
-e "s|@castorlibdir@|$castorlibdir|" \
-e "s|@castorcflags@|$castorcflags|" \
Fons Rademakers
committed
-e "s|@chirpincdir@|$chirpincdir|" \
-e "s|@chirplib@|$chirplib|" \
-e "s|@chirplibdir@|$chirplibdir|" \
-e "s|@clarensincdir@|$clarensincdir|" \
-e "s|@clarenslibs@|$clarenslibs|" \
Fons Rademakers
committed
-e "s|@cintincdir@|$cintincdir|" \
Fons Rademakers
committed
-e "s|@datadir@|$datadir|" \
-e "s|@dcapincdir@|$dcapincdir|" \
-e "s|@comerrlib@|$comerrlib|" \
-e "s|@comerrlibdir@|$comerrlibdir|" \
-e "s|@cryptolib@|$cryptolib|" \
-e "s|@cryptolibdir@|$cryptolibdir|" \
Fons Rademakers
committed
-e "s|@dcaplib@|$dcaplib|" \
-e "s|@dcaplibdir@|$dcaplibdir|" \
Fons Rademakers
committed
-e "s|@docdir@|$docdir|" \
-e "s|@elispdir@|$elispdir|" \
-e "s|@buildmathmore@|$enable_mathmore|" \
-e "s|@ftglincdir@|$ftglincdir|" \
-e "s|@ftgllibdir@|$ftgllibdir|" \
-e "s|@ftgllibs@|$ftgllibs|" \
-e "s|@builtinzlib@|$enable_builtin_zlib|" \
-e "s|@zlibincdir@|$zlibincdir|" \
-e "s|@zliblib@|$zliblib|" \
-e "s|@zliblibdir@|$zliblibdir|" \
Fons Rademakers
committed
-e "s|@buildcintex@|$enable_cintex|" \
Fons Rademakers
committed
-e "s|@buildreflex@|$enable_reflex|" \
-e "s|@buildroofit@|$enable_roofit|" \
-e "s|@buildminuit2@|$enable_minuit2|" \
-e "s|@no_stubs@|$no_stubs|" \
-e "s|@no_stubs_test@|$no_stubs_test|" \
-e "s|@buildtable@|$enable_table|" \
-e "s|@buildmemstat@|$enable_memstat|" \
Fons Rademakers
committed
-e "s|@enable_thread@|$enable_thread|" \
-e "s|@etcdir@|$etcdir|" \
-e "s|@exceptions@|$enable_exceptions|" \
-e "s|@explicitlink@|$enable_explicitlink|" \
-e "s|@gfalincdir@|$gfalincdir|" \
-e "s|@gfallib@|$gfallib|" \
-e "s|@gfallibdir@|$gfallibdir|" \
-e "s|@g4incdir@|$g4incdir|" \
-e "s|@g4libdir@|$g4libdir|" \
-e "s|@clhepincdir@|$clhepincdir|" \
-e "s|@glitelib@|$glitelib|" \
-e "s|@glitelibdir@|$glitelibdir|" \
-e "s|@gaw_cppflags@|$gaw_cppflags|" \
< Makefile.tmp > Makefile.tmpp
mv Makefile.tmpp Makefile.tmp
sed -e "s|@globusincdir@|$globusincdir|" \
Fons Rademakers
committed
-e "s|@globuslib@|$globuslib|" \
-e "s|@globuslibdir@|$globuslibdir|" \
-e "s|@glbextracflags@|$glbextracflags|" \
-e "s|@glbpatchcflags@|$glbpatchcflags|" \
Fons Rademakers
committed
-e "s|@iconpath@|$iconpath|" \
-e "s|@incdir@|$incdir|" \
-e "s|@krb5incdir@|$krb5incdir|" \
-e "s|@krb5lib@|$krb5lib|" \
-e "s|@krb5libdir@|$krb5libdir|" \
Fons Rademakers
committed
-e "s|@krb5extracflags@|$krb5extracflags|" \
-e "s|@krb5init@|$krb5init|" \
Fons Rademakers
committed
-e "s|@ldapincdir@|$ldapincdir|" \
-e "s|@ldaplib@|$ldaplib|" \
-e "s|@ldaplibdir@|$ldaplibdir|" \
-e "s|@ldflags@||" \
Fons Rademakers
committed
-e "s|@libdir@|$libdir|" \
-e "s|@macrodir@|$macrodir|" \
-e "s|@mandir@|$mandir|" \
-e "s|@mkliboption@|$mkliboption|" \
-e "s|@monalisaincdir@|$monalisaincdir|" \
-e "s|@monalisalib@|$monalisalib|" \
-e "s|@monalisalibdir@|$monalisalibdir|" \
Fons Rademakers
committed
-e "s|@fftw3incdir@|$fftw3incdir|" \
-e "s|@fftw3lib@|$fftw3lib|" \
-e "s|@fftw3libdir@|$fftw3libdir|" \
Fons Rademakers
committed
-e "s|@mysqlincdir@|$mysqlincdir|" \
-e "s|@mysqllib@|$mysqllib|" \
-e "s|@mysqllibdir@|$mysqllibdir|" \
-e "s|@odbcincdir@|$odbcincdir|" \
-e "s|@odbclib@|$odbclib|" \
-e "s|@odbclibdir@|$odbclibdir|" \
Fons Rademakers
committed
-e "s|@openglincdir@|$openglincdir|" \
-e "s|@opengllib@|$opengllib|" \
-e "s|@opengllibdir@|$opengllibdir|" \
-e "s|@openglulib@|$openglulib|" \
-e "s|@oracleincdir@|$oracleincdir|" \
-e "s|@oraclelib@|$oraclelib|" \
-e "s|@oraclelibdir@|$oraclelibdir|" \
Fons Rademakers
committed
-e "s|@pgsqlincdir@|$pgsqlincdir|" \
-e "s|@pgsqllib@|$pgsqllib|" \
-e "s|@pgsqllibdir@|$pgsqllibdir|" \
-e "s|@pythia6lib@|$pythia6lib|" \
-e "s|@pythia6libdir@|$pythia6libdir|" \
-e "s|@pythia8lib@|$pythia8lib|" \
-e "s|@pythia8incdir@|$pythia8incdir|" \
-e "s|@pythia8libdir@|$pythia8libdir|" \
-e "s|@pythonlib@|$pythonlib|" \
-e "s|@pythonlibdir@|$pythonlibdir|" \
-e "s|@pythonincdir@|$pythonincdir|" \
-e "s|@pythonlibflags@|$pythonlibflags|" \
-e "s|@rubylib@|$rubylib|" \
-e "s|@rubylibdir@|$rubylibdir|" \
-e "s|@rubyincdir@|$rubyincdir|" \
-e "s|@qtincdir@|$qtincdir|" \
-e "s|@qtlib@|$qtlib|" \
-e "s|@qtlibdir@|$qtlibdir|" \
-e "s|@resolvlib@|$resolvlib|" \
Fons Rademakers
committed
-e "s|@rootbuild@|$rootbuild|" \
-e "s|@sapdbincdir@|$sapdbincdir|" \
-e "s|@sapdblib@|$sapdblib|" \
-e "s|@sapdblibdir@|$sapdblibdir|" \
-e "s|@shadowpw@|$shadowpw|" \
-e "s|@shiftincdir@|$shiftincdir|" \
Fons Rademakers
committed
-e "s|@shiftlib@|$shiftlib|" \
-e "s|@shiftlibdir@|$shiftlibdir|" \
-e "s|@shiftcflags@|$shiftcflags|" \
< Makefile.tmp > Makefile.tmpp
mv Makefile.tmpp Makefile.tmp
sed -e "s|@srcdir@|$srcdir|" \
Fons Rademakers
committed
-e "s|@srpincdir@|$srpincdir|" \
-e "s|@srplib@|$srplib|" \
-e "s|@srplibdir@|$srplibdir|" \
-e "s|@srputilincdir@|$srputilincdir|" \
-e "s|@srputillib@|$srputillib|" \
-e "s|@srputillibdir@|$srputillibdir|" \
Fons Rademakers
committed
-e "s|@srpextracflags@|$srpextracflags|" \
-e "s|@sslincdir@|$sslincdir|" \
-e "s|@ssllib@|$ssllib|" \
-e "s|@ssllibdir@|$ssllibdir|" \
-e "s|@sslextracflags@|$sslextracflags|" \
Fons Rademakers
committed
-e "s|@testdir@|$testdir|" \
-e "s|@threadflag@|$threadflag|" \
Fons Rademakers
committed
-e "s|@threadlib@|$threadlib|" \
-e "s|@threadlibdir@|$threadlibdir|" \
-e "s|@ttffontdir@|$fontdir|" \
-e "s|@tutdir@|$tutdir|" \
-e "s|@xmlincdir@|$xmlincdir|" \
-e "s|@xmllib@|$xmllib|" \
-e "s|@xmllibdir@|$xmllibdir|" \
Fons Rademakers
committed
-e "s|@x11libdir@|$x11libdir|" \
-e "s|@xpmlib@|$xpmlib|" \
-e "s|@xpmlibdir@|$xpmlibdir|" \
-e "s|@buildgl@|$enable_opengl|" \
-e "s|@buildldap@|$enable_ldap|" \
-e "s|@buildmysql@|$enable_mysql|" \
-e "s|@buildpgsql@|$enable_pgsql|" \
-e "s|@buildoracle@|$enable_oracle|" \
-e "s|@buildsapdb@|$enable_sapdb|" \
-e "s|@buildqt@|$enable_qt|" \
-e "s|@buildrfio@|$enable_rfio|" \
-e "s|@buildcastor@|$enable_castor|" \
-e "s|@builddcap@|$enable_dcache|" \
Fons Rademakers
committed
-e "s|@buildfftw3@|$enable_fftw3|" \
-e "s|@buildchirp@|$enable_chirp|" \
-e "s|@buildalien@|$enable_alien|" \
-e "s|@buildasimage@|$enable_asimage|" \
-e "s|@buildpythia6@|$enable_pythia6|" \
-e "s|@buildpythia8@|$enable_pythia8|" \
-e "s|@buildpython@|$enable_python|" \
-e "s|@buildruby@|$enable_ruby|" \
-e "s|@buildxml@|$enable_xml|" \
-e "s|@buildsrputil@|$enable_srputil|" \
-e "s|@buildkrb5@|$enable_krb5|" \
-e "s|@buildglobus@|$enable_globus|" \
-e "s|@buildclarens@|$enable_clarens|" \
-e "s|@buildpeac@|$buildpeac|" \
< Makefile.tmp > $MAKEOUT
rm -f Makefile.tmp
if test "x$platform" = "xwin32"; then
echo 'ifeq ($(ROOTSYS),)' > Makefile.tmp
echo ' ROOTSYS=.' >> Makefile.tmp
echo 'endif' >> Makefile.tmp
sed -e 's@$(ROOTSYS)\(.*\)@$(shell cygpath -u \"$(ROOTSYS)\1 ")@' \
mv -f Makefile.tmp $MAKEOUT
fi
#---------------------------------------------------------------------
# config/Makefile.comp
#
Fons Rademakers
committed
message "Writing $MAKECOMPOUT"
sed -e "s|@altcc@|$altcc|" \
-e "s|@altcxx@|$altcxx|" \
-e "s|@altf77@|$altf77|" \
-e "s|@altld@|$altld|" \
< Makefile-comp.tmp > $MAKECOMPOUT
rm -f Makefile-comp.tmp
result "done"
Fons Rademakers
committed
#---------------------------------------------------------------------
Fons Rademakers
committed
# include/RConfigure.h
Fons Rademakers
committed
#
Fons Rademakers
committed
message "Writing $CONFIGUREOUT"
sed \
-e "s|@architecture@|$arch|" \
-e "s|@bindir@|$bindir|" \
-e "s|@cintincdir@|$cintincdir|" \
-e "s|@datadir@|$datadir|" \
-e "s|@etcdir@|$etcdir|" \
-e "s|@extraiconpath@|$extraiconpath|" \
-e "s|@iconpath@|$iconpath|" \
-e "s|@incdir@|$incdir|" \
-e "s|@libdir@|$libdir|" \
-e "s|@macrodir@|$macrodir|" \
-e "s|@prefix@|$prefix|" \
-e "s|@srcdir@|$srcdir|" \
-e "s|@ttffontdir@|$fontdir|" \
-e "s|@setresuid@|$setresuid|" \
Fons Rademakers
committed
-e "s|@haspthread@|$haspthread|" \
< RConfigure.tmp > RConfigure-out.tmp
Fons Rademakers
committed
rm -f RConfigure.tmp
# only update $CONFIGUREOUT when different
if test -f $CONFIGUREOUT; then
diff RConfigure-out.tmp $CONFIGUREOUT > /dev/null; status=$?;
mv -f RConfigure-out.tmp $CONFIGUREOUT
else
rm -f RConfigure-out.tmp
fi
else
mv -f RConfigure-out.tmp $CONFIGUREOUT
Fons Rademakers
committed
Fons Rademakers
committed
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
#---------------------------------------------------------------------
# include/RConfigOptions.h
#
message "Writing $CONFIGOPTOUT"
sed \
-e "s|@configoptions@|$configoptions|" \
< RConfigOptions.tmp > RConfigOptions-out.tmp
rm -f RConfigOptions.tmp
if test ! "x$enable_ruby" = "xno"; then
echo "" >> RConfigOptions-out.tmp
ruby -rrbconfig -e 'puts Config::CONFIG["ruby_version"]' | \
sed 's/^\([0-9]\)\.\([0-9]\)/#define R__RUBY_MAJOR \1@#define R__RUBY_MINOR \2/' | \
tr '@' '\n' >> RConfigOptions-out.tmp
fi
# only update $CONFIGOPTOUT when different
if test -f $CONFIGOPTOUT; then
diff RConfigOptions-out.tmp $CONFIGOPTOUT > /dev/null; status=$?;
if [ "$status" -ne "0" ]; then
mv -f RConfigOptions-out.tmp $CONFIGOPTOUT
else
rm -f RConfigOptions-out.tmp
fi
else
mv -f RConfigOptions-out.tmp $CONFIGOPTOUT
fi
result "done"
Fons Rademakers
committed
#---------------------------------------------------------------------
# bin/root-config
#
message "Writing $RCONFOUT"
prefix2=$prefix
Fons Rademakers
committed
libdir2=$libdir
mandir2=$mandir
if test "$prefix2" = "\$(ROOTSYS)" ; then
Fons Rademakers
committed
prefix2=\$ROOTSYS
Fons Rademakers
committed
libdir2=\$ROOTSYS/lib
Fons Rademakers
committed
incdir2=\$ROOTSYS/include
mandir2=\$ROOTSYS/man/man1
fi
Fons Rademakers
committed
Fons Rademakers
committed
features=""