f8f384dcc2
- "H5BlockDissolveGhosts" added to parallel TTARGET - "H5BlockTest1" removed from serial TTARGET
619 lines
18 KiB
Plaintext
619 lines
18 KiB
Plaintext
# Every configure script must call AC_INIT before doing anything else.
|
|
# AC_INIT (package, version, [bug-report], [tarname])
|
|
AC_INIT([H5Part], [Ver.1.0], [vis@hpcrdm.lbl.gov])
|
|
|
|
|
|
# Ensure that a recent enough version of Autoconf is being used.
|
|
# If the version of Autoconf being used to create configure is earlier than version,
|
|
# print an error message to the standard error output and do not create configure.
|
|
#AC_PREREQ(2.59)
|
|
|
|
|
|
# should be called right after AC_INIT.
|
|
# configure scripts can create a C header file containing `#define' directives.
|
|
# The AC_CONFIG_HEADERS macro selects this kind of output.
|
|
AC_CONFIG_HEADER(config.h)
|
|
|
|
|
|
##################################################################################
|
|
#################### A SIMPLE WORK AROUND TO USE ENV. VARS #######################
|
|
##################################################################################
|
|
|
|
|
|
SAVE_CC=$CC
|
|
SAVE_CXX=$CXX
|
|
SAVE_FC=$FC
|
|
SAVE_MPICC=$MPICC
|
|
SAVE_MPICXX=$MPICXX
|
|
SAVE_MPIFC=$MPIFC
|
|
SAVE_MPILIB=$MPILIB
|
|
SAVE_MPIINC=$MPIINC
|
|
SAVE_CFLAGS=$CFLAGS
|
|
SAVE_FFLAGS=$FFLAGS
|
|
SAVE_MPIROOT=$MPIROOT
|
|
SAVE_HDF5ROOT=$HDF5ROOT
|
|
SAVE_PHDF5ROOT=$PHDF5ROOT
|
|
SAVE_LDFLAGS=$LDFLAGS
|
|
|
|
|
|
##################################################################################
|
|
################## PATH SERACH FUNCTION - to be used later... ####################
|
|
##################################################################################
|
|
# /*@@
|
|
# @routine CCTK_Search
|
|
# @date Wed Jul 21 11:16:35 1999
|
|
# @author Tom Goodale
|
|
# @desc
|
|
# Used to search for something in various directories
|
|
# @enddesc
|
|
#@@*/
|
|
|
|
PATH_Search()
|
|
{
|
|
eval $1=""
|
|
if test $# -lt 4 ; then
|
|
h5part_basedir=""
|
|
else
|
|
h5part_basedir="$4/"
|
|
fi
|
|
for h5part_place in $2
|
|
do
|
|
echo -n "Looking in $h5part_place ... $ac_c" #1>&6
|
|
if test -r "$h5part_basedir$h5part_place/$3" ; then
|
|
echo "$ac_t"" Found" #1>&6
|
|
eval $1="$h5part_place"
|
|
break
|
|
fi
|
|
if test -d "$h5part_basedir$h5part_place/$3" ; then
|
|
echo "$ac_t"" Found" #1>&6
|
|
eval $1="$h5part_place"
|
|
break
|
|
fi
|
|
echo "$ac_t"" No" #1>&6
|
|
done
|
|
|
|
return
|
|
}
|
|
|
|
|
|
|
|
##################################################################################
|
|
################ MISC SETTINGS INCLUDING C & C++ COMPILER SETTING ################
|
|
##################################################################################
|
|
# Compute the canonical host-system type variable, host, and its three individual
|
|
# parts host_cpu, host_vendor, and host_os.
|
|
AC_CANONICAL_HOST
|
|
|
|
|
|
uname=`uname -s`
|
|
if test $uname = "AIX"; then
|
|
# Notify the user that configure is checking for a particular feature.
|
|
# This macro prints a message that starts with `checking ' and ends with `...' and no newline.
|
|
# It must be (?) followed by a call to AC_MSG_RESULT to print the result of the check and the newline.
|
|
AC_MSG_CHECKING([if system is AIX])
|
|
|
|
# AC_MSG_RESULT (result-description)
|
|
# Notify the user of the results of a check
|
|
AC_MSG_RESULT([OK])
|
|
|
|
# If on AIX, define _ALL_SOURCE. Allows the use of some BSD functions.
|
|
# Should be called before any macros that run the C compiler.
|
|
AC_AIX
|
|
fi
|
|
|
|
|
|
# DAVINCI SPECIFIC!!!
|
|
if test `uname -n` = "davinci"; then
|
|
echo "DAVINCI SPECIFIC TESTING FOR STDC++ LIBRARY!"
|
|
PATH_Search STDCXX_CHECK '/usr/lib64 /usr/lib' libstdc++.a
|
|
|
|
# if STDCXX_CHECK is set...
|
|
if test "$STDCXX_CHECK" = "/usr/lib64"; then
|
|
echo "STDCXX setting ..."
|
|
echo "STDCXX_CHECK = $STDCXX_CHECK ..."
|
|
STDCXX="-L/usr/lib64 -lstdc++"
|
|
echo "STDCXX = $STDCXX ..."
|
|
elif test "$STDCXX_CHECK" = "/usr/lib"; then
|
|
echo "STDCXX setting ..."
|
|
echo "STDCXX_CHECK = $STDCXX_CHECK ..."
|
|
STDCXX="-L/usr/lib -lstdc++"
|
|
echo "STDCXX = $STDCXX ..."
|
|
fi
|
|
fi
|
|
|
|
|
|
# Determine a C compiler to use.
|
|
# If CC is not already set in the environment, check for gcc and cc, then for other C compilers.
|
|
# Set output variable CC to the name of the compiler found.
|
|
# Look for mpicc first, then icc, mpcc_r
|
|
AC_PROG_CC(pathcc icc cc_r gcc cc)
|
|
|
|
# AC_PROG_CC doesn't pick up cc_r in Bassi. The following AC_PATH_PROGS is the fix.
|
|
AC_PATH_PROGS([BAS_CC], [cc_r], [], [$PATH])
|
|
|
|
# if BAS_CC not empty
|
|
if test -n "$BAS_CC"; then
|
|
echo "CC setting for Bassi ..."
|
|
CC=$BAS_CC
|
|
echo "CC = $CC ..."
|
|
fi
|
|
|
|
|
|
# Determine a C++ compiler to use.
|
|
# Check if the environment variable CXX or CCC (in that order) is set;
|
|
# if so, then set output variable CXX to its value.
|
|
# Otherwise, if the macro is invoked without an argument,
|
|
# then search for a C++ compiler under the likely names (first g++ and c++ then other names).
|
|
# If none of those checks succeed, then as a last resort set CXX to g++.
|
|
AC_PROG_CXX(pathCC icc cc_r g++ gcc cc)
|
|
|
|
|
|
# Set output variable INSTALL to the path of a BSD-compatible install program, if one is
|
|
# found in the current PATH.
|
|
# Otherwise, set INSTALL to `dir/install-sh -c`
|
|
AC_PROG_INSTALL
|
|
|
|
|
|
# AM_INIT_AUTOMAKE is required to use autoconf with automake
|
|
AM_INIT_AUTOMAKE()
|
|
|
|
|
|
AC_PROG_RANLIB
|
|
|
|
# Default prefix for bindir, etc... (eg >> ./build/bin)
|
|
AC_PREFIX_DEFAULT(`pwd`/build)
|
|
|
|
|
|
# AC_DEFINE_UNQUOTED (variable, value, [description])
|
|
# Define the C preprocessor variable variable to value
|
|
# Use this macro instead of AC_DEFINE when variable or value is a shell variable.
|
|
AC_DEFINE_UNQUOTED(MY_BUILD_VENDOR, "$host_vendor", "")
|
|
AC_DEFINE_UNQUOTED(MY_BUILD_CPU, "$host_cpu", "")
|
|
AC_DEFINE_UNQUOTED(MY_BUILD_OS, "$host_os", "")
|
|
AC_DEFINE_UNQUOTED(MY_GNUNAME, "${host_cpu}-${host_vendor}-${host_os}", "")
|
|
AC_DEFINE_UNQUOTED(MY_UNAME, "$uname", "")
|
|
|
|
|
|
|
|
##################################################################################
|
|
########################### CONFIGURE LINE OPTIONS ###############################
|
|
##################################################################################
|
|
|
|
######################### 64-bit compilation enabled #############################
|
|
AC_MSG_CHECKING([if 64-bit compilation is enabled])
|
|
|
|
# AC_ARG_ENABLE (feature, help-string, [action-if-given], [action-if-not-given])
|
|
# If the user gave configure the option `--enable-feature' or `--disable-feature',
|
|
# run shell commands action-if-given.
|
|
# You should format your help-string with the macro AC_HELP_STRING.
|
|
AC_ARG_ENABLE([64],
|
|
[AC_HELP_STRING([--enable-64],[Compile using 64-bit flags [default=no]])],
|
|
[USE_64=$enableval])
|
|
|
|
|
|
# If --enable-64 is set in the configure line
|
|
if test "X$USE_64" = "Xyes"; then
|
|
echo "YES, 64-BIT ENABLED"
|
|
if test $uname = "AIX"; then
|
|
CFLAGS="$CFLAGS -q64"
|
|
FFLAGS="$FFLAGS -q64"
|
|
fi
|
|
|
|
if test $uname = "IRIX64"; then
|
|
CFLAGS="$CFLAGS -64"
|
|
FFLAGS="$FFLAGS -64 -fPIC -fno-second-underscore"
|
|
fi
|
|
else
|
|
echo "NO, 64-BIT NOT ENABLED"
|
|
fi
|
|
|
|
|
|
############################### fortran enabled ##################################
|
|
AC_MSG_CHECKING([if fortran interface enabled])
|
|
AC_MSG_RESULT([])
|
|
AC_ARG_ENABLE([fortran],
|
|
[AC_HELP_STRING([--enable-fortran], [Compile the Fortran interface [default=no]])],
|
|
[USE_FORTRAN=$enableval])
|
|
|
|
|
|
if test "X$USE_FORTRAN" = "Xyes"; then
|
|
echo "YES, FORTRAN ENABLED"
|
|
|
|
# Start looking for ifort first
|
|
AC_PROG_FC(ifort xlf_r pathf90 g95 g90 ftn)
|
|
|
|
if test -n "$FC" ; then
|
|
if test "X$FC" = "Xg95"; then
|
|
FFLAGS="${FFLAGS} -fno-second-underscore"
|
|
fi
|
|
AC_MSG_CHECKING([Test Number of FC Underscores])
|
|
AC_MSG_RESULT([OK])
|
|
`cd src && rm -f TestUnderscore.o TestUnderscoreC.o TestUnderscore`
|
|
`cd src && ${FC} ${FFLAGS} -c TestUnderscore.f`
|
|
`cd src && ${CC} ${CFLAGS} -c TestUnderscoreC.c`
|
|
`cd src && ${FC} ${FFLAGS} -o TestUnderscore TestUnderscore.o TestUnderscoreC.o -lc`
|
|
|
|
if test -f src/TestUnderscore ; then
|
|
UNDERSCORE_H=Underscore.h
|
|
`cd src && cat COPYRIGHT > Underscore.h`
|
|
`cd src && ./TestUnderscore >> Underscore.h`
|
|
echo "==== Underscore.h contains ============="
|
|
cat src/Underscore.h
|
|
echo "========================================"
|
|
else
|
|
AC_MSG_ERROR(could not build fortran executable)
|
|
USE_FORTRAN = "no"
|
|
fi
|
|
else
|
|
AC_MSG_ERROR(could not find a fortran compiler)
|
|
USE_FORTRAN = "no"
|
|
exit 1
|
|
fi
|
|
else
|
|
echo "NO, FORTRAN NOT ENABLED"
|
|
fi
|
|
|
|
|
|
########################### parallel interface enabled ###########################
|
|
AC_MSG_CHECKING([if parallel interface enabled])
|
|
AC_ARG_ENABLE([parallel],
|
|
[AC_HELP_STRING([--enable-parallel], [Compile the MPI/IO interface [default=no]])],
|
|
[USE_PARALLEL=$enableval])
|
|
|
|
if test "X$USE_PARALLEL" = "Xyes"; then
|
|
AC_MSG_RESULT([YES, PARALLEL ENABLED])
|
|
|
|
AC_MSG_CHECKING([if we can compile MPI code without setting flags])
|
|
AC_TRY_LINK([#include "mpi.h"], [
|
|
MPI_Comm comm;
|
|
int n;
|
|
MPI_Comm_size( comm, &n ); ],
|
|
[echo 'yes'; r='yes'], [echo "no"; r='no'] )
|
|
|
|
if test "X$r" = "Xyes"; then
|
|
MPICC=$CC
|
|
set -x
|
|
if test -z "$MPICXX"; then
|
|
# we should add a test whether this C++ wrapper exists or not
|
|
MPICXX=${MPICC%/*}/mpicxx
|
|
fi
|
|
set +x
|
|
else
|
|
AC_PATH_PROGS([MPICC], [mpicc mpcc_r], [], [$PATH])
|
|
AC_PATH_PROGS([MPICXX], [mpicxx mpcc_r], [], [$PATH])
|
|
if test -z "$MPICC" -o -z "$MPICXX"; then
|
|
AC_ARG_ENABLE([mpipath],
|
|
[AC_HELP_STRING([--enable-mpipath], [path to MPI installation [default=""]])],
|
|
[MPIROOT=$enableval], [MPIROOT=""])
|
|
if test -z "$MPIROOT"; then
|
|
AC_MSG_CHECKING([for MPI root ])
|
|
echo
|
|
P=''
|
|
P="$P /usr"
|
|
P="$P /usr/local"
|
|
P="$P /usr/local/mpi"
|
|
P="$P /usr/local/packages/mpi"
|
|
P="$P /usr/local/mpich2"
|
|
P="$P /usr/local/mpich"
|
|
P="$P /opt/xt-mpt/default/mpich2-64/P2"
|
|
PATH_Search MPIROOT "$P" include/mpi.h
|
|
fi
|
|
if test ! -n "$MPIROOT"; then
|
|
AC_MSG_RESULT([Cannot determine MPIROOT])
|
|
exit 1
|
|
fi
|
|
if test ! -n "$MPICC"; then
|
|
AC_MSG_CHECKING([No MPICC detected. Setting MPICC to CC.])
|
|
MPICC=$CC
|
|
echo "MPICC = $MPICC"
|
|
fi
|
|
|
|
# if MPICXX empty
|
|
if test ! -n "$MPICXX"; then
|
|
MPICXX=$CXX
|
|
AC_MSG_CHECKING([No MPICXX detected. Setting MPICXX = CXX = $MPICXX ])
|
|
echo
|
|
fi
|
|
|
|
MPIINC="${MPIINC} -I${MPIROOT}/include"
|
|
FFLAGS="${FFLAGS} -I${MPIROOT}/include"
|
|
AC_MSG_CHECKING([for name of MPI lib ])
|
|
if test -e ${MPIROOT}/lib/libmpi.a; then
|
|
MPILIB="-L${MPIROOT}/lib -lmpi"
|
|
elif test -e ${MPIROOT}/lib/libmpi.so; then
|
|
MPILIB="-L${MPIROOT}/lib -lmpi"
|
|
elif test -e ${MPIROOT}/lib/libmpich.a; then
|
|
MPILIB="-L${MPIROOT}/lib -lmpich"
|
|
elif test -e ${MPIROOT}/lib/libmpich.so; then
|
|
MPILIB="-L${MPIROOT}/lib -lmpich"
|
|
else
|
|
AC_MSG_RESULT([not found])
|
|
exit 1
|
|
fi
|
|
AC_MSG_RESULT([${MPILIB}])
|
|
fi
|
|
fi
|
|
|
|
MTARGET="libpH5Part.a"
|
|
TTARGET="H5PartTestP H5PartAndreasTest Bench"
|
|
TTARGET="${TTARGET} H5BlockParTestScalarField"
|
|
TTARGET="${TTARGET} H5BlockDissolveGhosts"
|
|
|
|
# parallel + fortran
|
|
if test "X$USE_FORTRAN" = "Xyes"; then
|
|
echo "PARALLEL ENABLED WITH FORTRAN"
|
|
|
|
AC_PATH_PROGS([MPIFC], [mpxlf_r mpif90], [], [$PATH])
|
|
|
|
# if MPIFC empty
|
|
if test ! -n "$MPIFC"; then
|
|
AC_MSG_CHECKING([ No MPIFC detected. Setting MPIFC to FC.])
|
|
MPIFC=$FC
|
|
echo "MPIFC = $MPIFC ..."
|
|
fi
|
|
|
|
MTARGET="${MTARGET} libpH5PartF.a"
|
|
TTARGET="${TTARGET} H5testFpar"
|
|
else
|
|
echo "PARALLEL ENABLED WITHOUT FORTRAN"
|
|
fi
|
|
|
|
else
|
|
echo "NO, PARALLEL NOT ENABLED"
|
|
|
|
MTARGET="libH5Part.a"
|
|
TTARGET="H5PartTest H5test"
|
|
|
|
if test "X$USE_FORTRAN" = "Xyes"; then
|
|
echo "PARALLEL NOT ENABLED WITH FORTRAN ENABLED"
|
|
|
|
MTARGET="${MTARGET} libH5PartF.a"
|
|
TTARGET="${TTARGET} H5testF"
|
|
else
|
|
echo "BOTH PARALLEL & FORTRAN NOT ENABLED"
|
|
fi
|
|
fi
|
|
|
|
AC_MSG_CHECKING([for h5pTools file: ])
|
|
AC_MSG_RESULT([OK])
|
|
AC_ARG_ENABLE([tools],
|
|
[AC_HELP_STRING([--enable-tools], [Compile h5part tools [default=no]])],
|
|
[USE_TOOLS=$enableval])
|
|
|
|
|
|
if test "X$USE_TOOLS" = "Xyes"; then
|
|
BUILD_TOOLS="h5pAttrib h5pToGNUplot"
|
|
fi
|
|
|
|
##################################################################################
|
|
############################ PATH CHECKING & SETTING #############################
|
|
##################################################################################
|
|
|
|
AC_ARG_ENABLE([hdf5path],
|
|
[AC_HELP_STRING([--enable-hdf5path], [path to HDF5 installation [default=""]])],
|
|
[XROOT=$enableval], [XROOT=""])
|
|
|
|
if test "X$USE_PARALLEL" = "Xyes"; then
|
|
PHDF5ROOT=$XROOT
|
|
if test -z "$PHDF5ROOT"; then
|
|
AC_MSG_CHECKING([for Parallel HDF5 root ])
|
|
AC_MSG_RESULT([])
|
|
P=''
|
|
P="$P /usr"
|
|
P="$P /usr/local"
|
|
P="$P /usr/local/phdf5"
|
|
P="$P /usr/local/hdf5"
|
|
P="$P /usr/local/packages/hdf5"
|
|
P="$P /usr/local/hdf5/hdf5_par"
|
|
P="$P /apps/hdf5"
|
|
|
|
if test "X$USE_64" = "Xyes"; then
|
|
P="$P /usr/common/usg/hdf5/64/default/parallel"
|
|
else
|
|
P="$P /usr/common/usg/hdf5/32/default/parallel"
|
|
fi
|
|
PATH_Search PHDF5ROOT "$P" include/hdf5.h
|
|
XROOT=$HDF5ROOT
|
|
fi
|
|
else
|
|
HDF5ROOT=$XROOT
|
|
if test -z "$HDF5ROOT"; then
|
|
AC_MSG_CHECKING([for HDF5 library location ])
|
|
AC_MSG_RESULT([])
|
|
P=''
|
|
P="$P /usr"
|
|
P="$P /usr/local"
|
|
P="$P /usr/local/hdf5"
|
|
P="$P /usr/local/packages/hdf5"
|
|
P="$P /usr/local/hdf5/hdf5_serial"
|
|
P="$P /apps/hdf5"
|
|
if test "X$USE_64" = "Xyes"; then
|
|
P="$P /usr/common/usg/hdf5/64/default/serial"
|
|
else
|
|
P="$P /usr/common/usg/hdf5/32/default/serial"
|
|
fi
|
|
PATH_Search HDF5ROOT "$P" include/hdf5.h
|
|
XROOT=$HDF5ROOT
|
|
fi
|
|
fi
|
|
|
|
AC_MSG_CHECKING([if we need to link to libsz ])
|
|
if test -n "$XROOT"; then
|
|
if test -f $XROOT/lib/libsz.a; then
|
|
AC_MSG_RESULT([yes])
|
|
SZLIB="-L$XROOT/lib/ -lsz"
|
|
else
|
|
AC_MSG_RESULT([no])
|
|
SZLIB=""
|
|
fi
|
|
fi
|
|
|
|
AC_MSG_CHECKING([for static zlib root ])
|
|
echo
|
|
PATH_Search ZLIBROOT '/apps/zlib' lib/libz.a
|
|
if test -n "$ZLIBROOT"; then
|
|
LDFLAGS="$LDFLAGS -L$ZLIBROOT/lib"
|
|
fi
|
|
|
|
|
|
##################################################################################
|
|
####################### MISC SETTINGS - path, flags, etc #########################
|
|
##################################################################################
|
|
|
|
# if not AIX
|
|
if test ! $uname = "AIX"; then
|
|
# Additional flags
|
|
echo "SETTING ADDITIONAL FLAGS"
|
|
ADDFLAGS="-fPIC -fno-second-underscore"
|
|
fi
|
|
|
|
|
|
H5P_LIB_LOC=`pwd`/src
|
|
|
|
##################################################################################
|
|
#################### A SIMPLE WORK AROUND TO USE ENV. VARS #######################
|
|
##################################################################################
|
|
|
|
#if there was an external input for the variable...
|
|
if test -n "$SAVE_CC"; then
|
|
CC=$SAVE_CC
|
|
fi
|
|
|
|
if test -n "$SAVE_CXX"; then
|
|
CXX=$SAVE_CXX
|
|
fi
|
|
|
|
if test -n "$SAVE_FC"; then
|
|
FC=$SAVE_FC
|
|
fi
|
|
|
|
if test -n "$SAVE_MPICC"; then
|
|
MPICC=$SAVE_MPICC
|
|
fi
|
|
|
|
if test -n "$SAVE_MPICXX"; then
|
|
MPICXX=$SAVE_MPICXX
|
|
fi
|
|
|
|
if test -n "$SAVE_MPIFC"; then
|
|
MPIFC=$SAVE_MPIFC
|
|
fi
|
|
|
|
if test -n "$SAVE_MPILIB"; then
|
|
MPILIB=$SAVE_MPILIB
|
|
fi
|
|
|
|
if test -n "$SAVE_MPIINC"; then
|
|
MPIINC=$SAVE_MPIINC
|
|
fi
|
|
|
|
if test -n "$SAVE_CFLAGS"; then
|
|
CFLAGS=$SAVE_CFLAGS
|
|
fi
|
|
|
|
if test -n "$SAVE_FFLAGS"; then
|
|
FFLAGS=$SAVE_FFLAGS
|
|
fi
|
|
|
|
if test -n "$SAVE_MPIROOT"; then
|
|
MPIROOT=$SAVE_MPIROOT
|
|
fi
|
|
|
|
if test -n "$SAVE_HDF5ROOT"; then
|
|
HDF5ROOT=$SAVE_HDF5ROOT
|
|
fi
|
|
|
|
if test -n "$SAVE_PHDF5ROOT"; then
|
|
PHDF5ROOT=$SAVE_PHDF5ROOT
|
|
fi
|
|
|
|
if test -n "$SAVE_LDFLAGS"; then
|
|
LDFLAGS=$SAVE_LDFLAGS
|
|
fi
|
|
|
|
if test -n "$MPICXX"; then
|
|
TOOLS_CXX=$MPICXX
|
|
TOOLS_H5PART_LIB="-lpH5Part"
|
|
TOOLS_HDFLIB="-L$PHDF5ROOT/lib -lhdf5"
|
|
else
|
|
TOOLS_CXX=$CXX
|
|
TOOLS_H5PART_LIB="-lH5Part"
|
|
TOOLS_HDFLIB="-L$HDF5ROOT/lib -lhdf5"
|
|
fi
|
|
|
|
##################################################################################
|
|
############################# PRINTING SUMMARY ###################################
|
|
##################################################################################
|
|
echo "+++++++++++++++++++++++++++++++"
|
|
echo "+++++++++ SUMMARY for `(hostname || uname -n) 2>/dev/null | sed 1q` +++++++++"
|
|
echo "CC = $CC"
|
|
echo "CXX = $CXX"
|
|
echo "FC = $FC"
|
|
echo "MPICC = $MPICC"
|
|
echo "MPICXX = $MPICXX"
|
|
echo "MPIFC = $MPIFC"
|
|
echo "CFLAGS = $CFLAGS"
|
|
echo "FFLAGS = $FFLAGS"
|
|
echo "MPILIB = $MPILIB"
|
|
echo "MPIINC = $MPIINC"
|
|
echo "MPIROOT = $MPIROOT"
|
|
echo "HDF5ROOT = $HDF5ROOT"
|
|
echo "PHDF5ROOT = $PHDF5ROOT"
|
|
echo "LDFLAGS = $LDFLAGS"
|
|
echo "host_os = $host_os"
|
|
echo "host_cpu = $host_cpu"
|
|
echo "host_vendor = $host_vendor"
|
|
echo "Will Be Building Libraries ... : $MTARGET"
|
|
echo "Will Be Building Test Programs ... : $TTARGET"
|
|
echo "TOOLS_CXX = $TOOLS_CXX"
|
|
echo "TOOLS_H5PART_LIB = $TOOLS_H5PART_LIB"
|
|
echo "TOOLS_HDFLIB = $TOOLS_HDFLIB"
|
|
echo "BUILD_TOOLS = $BUILD_TOOLS"
|
|
echo "+++++++++++++++++++++++++++++++"
|
|
|
|
|
|
##################################################################################
|
|
################# EXPORTING VARIABLES & CREATING OUTPUT FILES ####################
|
|
##################################################################################
|
|
# AC_SUBST (variable, [value])
|
|
# Create an output variable from a shell variable.
|
|
# Make AC_OUTPUT substitute the variable variable into output files (typically one or more `Makefile's).
|
|
# This means that AC_OUTPUT will replace instances of `@variable@' in input files with the value that
|
|
# the shell variable variable has when AC_OUTPUT is called.
|
|
# This value of variable should not contain literal newlines.
|
|
# If value is given, in addition assign it to variable.
|
|
AC_SUBST(MPIROOT)
|
|
AC_SUBST(HDF5ROOT)
|
|
AC_SUBST(PHDF5ROOT)
|
|
AC_SUBST(MPIINC)
|
|
AC_SUBST(MPILIB)
|
|
AC_SUBST(MPICC)
|
|
AC_SUBST(MPICXX)
|
|
AC_SUBST(MPIFC)
|
|
AC_SUBST(MTARGET)
|
|
AC_SUBST(TTARGET)
|
|
AC_SUBST(SZLIB)
|
|
AC_SUBST(CFLAGS)
|
|
AC_SUBST(FFLAGS)
|
|
AC_SUBST(ADDFLAGS)
|
|
AC_SUBST(STDCXX)
|
|
AC_SUBST(H5P_LIB_LOC)
|
|
AC_SUBST(UNDERSCORE_H)
|
|
AC_SUBST(BUILD_TOOLS)
|
|
AC_SUBST(LDFLAGS)
|
|
AC_SUBST(TOOLS_CXX)
|
|
AC_SUBST(TOOLS_H5PART_LIB)
|
|
AC_SUBST(TOOLS_HDFLIB)
|
|
|
|
# Make AC_OUTPUT create each `file' by copying an input file (by default `file.in'),
|
|
# substituting the output variable values.
|
|
AC_CONFIG_FILES([
|
|
Makefile
|
|
src/Makefile
|
|
test/Makefile
|
|
tools/Makefile
|
|
])
|
|
|
|
|
|
AC_OUTPUT
|