ac_help=
ac_default_prefix=/usr/local
# Any additions from configure.in:
-ac_default_prefix=/usr/local/gromacs
-ac_help="$ac_help
- --enable-mpi Compile parallel version of GROMACS"
ac_help="$ac_help
- --enable-vector Compile for a vector machine"
+ --disable-dependency-tracking Speeds up one-time builds
+ --enable-dependency-tracking Do not reject slow dependency extractors"
+ac_default_prefix=/usr/local/gromacs
ac_help="$ac_help
- --enable-fortran Fortran loops (default on sgi,ibm,sun,axp)"
+ --disable-float use double instead of single precision"
ac_help="$ac_help
- --enable-float Compile single precision GROMACS"
+ --enable-fortran use fortran (default on sgi,ibm,sun,axp)"
ac_help="$ac_help
- --disable-type-suffix Don't add a suffix to double precision files"
+ --enable-mpi compile for parallel runs using MPI"
ac_help="$ac_help
- --enable-mpi-suffix Add a suffix to MPI files (default on ibm)"
+ --with-mpi-environment=VAR only start parallel runs when VAR is set"
ac_help="$ac_help
- --enable-simplewater Unroll water innerloops (default on sgi)"
+ --disable-nice disable the nice priority on programs"
ac_help="$ac_help
- --disable-waterwater-loops No special water-water loops (default on sgi)"
+ --disable-x86-asm don't build assembly loops for x86"
ac_help="$ac_help
- --disable-nice Disable the nice priority on mdrun"
+ --disable-cpu-optimization no detection or tuning flags for cpu version"
ac_help="$ac_help
- --disable-x86-asm Disable assembly loops on x86"
+ --disable-arch-subdirs don't use subdirectories in bindir and libdir"
ac_help="$ac_help
- --disable-xdr Disable portable trajectory routines"
+ --enable-vector create inner loops for a vector machine"
ac_help="$ac_help
- --disable-cpu-detection Don't extend detection with exact cpu type"
+ --disable-waterloop-unrolling expand water loops (hack for sgi)"
ac_help="$ac_help
- --enable-software-recip Do software 1/x (might be slower)"
+ --disable-waterwater-loops turn off double unrolled loops (hack for sgi)"
ac_help="$ac_help
- --disable-software-sqrt No software 1/sqrt (default on sgi,rs6000)"
+ --enable-software-recip perform software 1/x"
ac_help="$ac_help
- --enable-vectorized-recip Vectorize 1/x in LJ-only loops"
+ --disable-software-sqrt no software 1/sqrt (disabled on sgi,rs6000)"
ac_help="$ac_help
- --enable-vectorized-sqrt=A,B Loops to vectorize (default none)
- Choices: normal,solvent,water,water-water"
+ --enable-vectorized-recip vectorize LJ-only inner loops"
ac_help="$ac_help
- --enable-prefetch-x=A,B Prefetch coordinates in selected innerloops"
+ --enable-vectorized-sqrt=A,B vectorize selected inner loops (default none)
+ choices: normal,solvent,water,water-water"
ac_help="$ac_help
- --enable-prefetch-f=A,B Prefetch forces in selected innerloops"
+ --enable-prefetch-x=A,B prefetch coordinates in selected innerloops"
ac_help="$ac_help
- --enable-hide-square-latency Try to get coords to cache before using them"
+ --enable-prefetch-f=A,B prefetch forces in selected innerloops"
ac_help="$ac_help
- --enable-hide-table-latency Try to get table data to cache before using it"
+ --enable-hide-square-latency load coords to cache in advance"
ac_help="$ac_help
- --with-mpi-environment=VAR Only start MPI mdrun when VAR is set"
+ --enable-hide-table-latency load table data to cache in advance"
ac_help="$ac_help
--enable-shared[=PKGS] build shared libraries [default=yes]"
ac_help="$ac_help
--disable-libtool-lock avoid locking (might break parallel builds)"
ac_help="$ac_help
--with-pic try to use only PIC/non-PIC [default=both]"
+ac_help="$ac_help
+ --with-dmalloc use dmalloc, as in
+ http://www.dmalloc.com/dmalloc.tar.gz"
ac_help="$ac_help
--with-x use the X Window System"
ac_help="$ac_help
fi
done
-if test -r "$cache_file"; then
- echo "loading cache $cache_file"
- . $cache_file
-else
- echo "creating cache $cache_file"
- > $cache_file
-fi
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
fi
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
-echo "configure:587: checking for Cygwin environment" >&5
+echo "configure:582: checking for Cygwin environment" >&5
if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 592 "configure"
+#line 587 "configure"
#include "confdefs.h"
int main() {
return __CYGWIN__;
; return 0; }
EOF
-if { (eval echo configure:603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_cygwin=yes
else
CYGWIN=
test "$ac_cv_cygwin" = yes && CYGWIN=yes
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
-echo "configure:620: checking for mingw32 environment" >&5
+echo "configure:615: checking for mingw32 environment" >&5
if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 625 "configure"
+#line 620 "configure"
#include "confdefs.h"
int main() {
return __MINGW32__;
; return 0; }
EOF
-if { (eval echo configure:632: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_mingw32=yes
else
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
-echo "configure:681: checking for a BSD compatible install" >&5
+echo "configure:676: checking for a BSD compatible install" >&5
if test -z "$INSTALL"; then
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
-echo "configure:734: checking whether build environment is sane" >&5
+echo "configure:729: checking whether build environment is sane" >&5
# Just in case
sleep 1
-echo timestamp > conftestfile
+echo timestamp > conftest.file
# Do `set' in a subshell so we don't clobber the current shell's
# arguments. Must try -L first in case configure is actually a
# symlink; some systems play weird games with the mod time of symlinks
# (eg FreeBSD returns the mod time of the symlink's containing
# directory).
if (
- set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
+ set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
if test "$*" = "X"; then
# -L didn't work.
- set X `ls -t $srcdir/configure conftestfile`
+ set X `ls -t $srcdir/configure conftest.file`
fi
- if test "$*" != "X $srcdir/configure conftestfile" \
- && test "$*" != "X conftestfile $srcdir/configure"; then
+ rm -f conftest.file
+ if test "$*" != "X $srcdir/configure conftest.file" \
+ && test "$*" != "X conftest.file $srcdir/configure"; then
# If neither matched, then we have a broken ls. This can happen
# if, for instance, CONFIG_SHELL is bash and it inherits a
alias in your environment" 1>&2; exit 1; }
fi
- test "$2" = conftestfile
+ test "$2" = conftest.file
)
then
# Ok.
{ echo "configure: error: newly created file is older than distributed files!
Check your system clock" 1>&2; exit 1; }
fi
-rm -f conftest*
echo "$ac_t""yes" 1>&6
if test "$program_transform_name" = s,x,x,; then
program_transform_name=
# sed with no file args requires a program.
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
+test x"${MISSING+set}" = xset ||
+ MISSING="\${SHELL} `CDPATH=:; cd $ac_aux_dir && pwd`/missing"
+# Use eval to expand $SHELL
+if eval "$MISSING --run true"; then
+ am_missing_run="$MISSING --run "
+else
+ am_missing_run=
+ am_backtick='`'
+ echo "configure: warning: ${am_backtick}missing' script is too old or missing" 1>&2
+fi
+
+for ac_prog in gawk mawk nawk awk
+do
+# Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+echo "configure:801: checking for $ac_word" >&5
+if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ if test -n "$AWK"; then
+ ac_cv_prog_AWK="$AWK" # Let the user override the test.
+else
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ ac_dummy="$PATH"
+ for ac_dir in $ac_dummy; do
+ test -z "$ac_dir" && ac_dir=.
+ if test -f $ac_dir/$ac_word; then
+ ac_cv_prog_AWK="$ac_prog"
+ break
+ fi
+ done
+ IFS="$ac_save_ifs"
+fi
+fi
+AWK="$ac_cv_prog_AWK"
+if test -n "$AWK"; then
+ echo "$ac_t""$AWK" 1>&6
+else
+ echo "$ac_t""no" 1>&6
+fi
+
+test -n "$AWK" && break
+done
+
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
-echo "configure:791: checking whether ${MAKE-make} sets \${MAKE}" >&5
+echo "configure:831: checking whether ${MAKE-make} sets \${MAKE}" >&5
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
SET_MAKE="MAKE=${MAKE-make}"
fi
+# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
+if test "${enable_dependency_tracking+set}" = set; then
+ enableval="$enable_dependency_tracking"
+ :
+fi
+
+if test "x$enable_dependency_tracking" != xno; then
+ am_depcomp="$ac_aux_dir/depcomp"
+ AMDEPBACKSLASH='\'
+fi
-PACKAGE=gromacs
-VERSION=3.0
+if test "x$enable_dependency_tracking" != xno; then
+ AMDEP_TRUE=
+ AMDEP_FALSE='#'
+else
+ AMDEP_TRUE='#'
+ AMDEP_FALSE=
+fi
+
+
+
+
+if test -d .deps || mkdir .deps 2> /dev/null || test -d .deps; then
+ DEPDIR=.deps
+ # We redirect because .deps might already exist and be populated.
+ # In this situation we don't want to see an error.
+ rmdir .deps > /dev/null 2>&1
+else
+ DEPDIR=_deps
+fi
-if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
- { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
+
+# test to see if srcdir already configured
+if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
+ test -f $srcdir/config.status; then
+ { echo "configure: error: source directory already configured; run \"make distclean\" there first" 1>&2; exit 1; }
fi
+
+# Define the identity of the package.
+PACKAGE=gromacs
+VERSION=3.0
cat >> confdefs.h <<EOF
#define PACKAGE "$PACKAGE"
EOF
EOF
+# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
+# the ones we care about.
-missing_dir=`cd $ac_aux_dir && pwd`
-echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
-echo "configure:837: checking for working aclocal" >&5
-# Run test in a subshell; some versions of sh will print an error if
-# an executable is not found, even if stderr is redirected.
-# Redirect stdin to placate older versions of autoconf. Sigh.
-if (aclocal --version) < /dev/null > /dev/null 2>&1; then
- ACLOCAL=aclocal
- echo "$ac_t""found" 1>&6
-else
- ACLOCAL="$missing_dir/missing aclocal"
- echo "$ac_t""missing" 1>&6
-fi
+# Some tools Automake needs.
-echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
-echo "configure:850: checking for working autoconf" >&5
-# Run test in a subshell; some versions of sh will print an error if
-# an executable is not found, even if stderr is redirected.
-# Redirect stdin to placate older versions of autoconf. Sigh.
-if (autoconf --version) < /dev/null > /dev/null 2>&1; then
- AUTOCONF=autoconf
- echo "$ac_t""found" 1>&6
-else
- AUTOCONF="$missing_dir/missing autoconf"
- echo "$ac_t""missing" 1>&6
-fi
+ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
-echo $ac_n "checking for working automake""... $ac_c" 1>&6
-echo "configure:863: checking for working automake" >&5
-# Run test in a subshell; some versions of sh will print an error if
-# an executable is not found, even if stderr is redirected.
-# Redirect stdin to placate older versions of autoconf. Sigh.
-if (automake --version) < /dev/null > /dev/null 2>&1; then
- AUTOMAKE=automake
- echo "$ac_t""found" 1>&6
-else
- AUTOMAKE="$missing_dir/missing automake"
- echo "$ac_t""missing" 1>&6
-fi
-echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
-echo "configure:876: checking for working autoheader" >&5
-# Run test in a subshell; some versions of sh will print an error if
-# an executable is not found, even if stderr is redirected.
-# Redirect stdin to placate older versions of autoconf. Sigh.
-if (autoheader --version) < /dev/null > /dev/null 2>&1; then
- AUTOHEADER=autoheader
- echo "$ac_t""found" 1>&6
-else
- AUTOHEADER="$missing_dir/missing autoheader"
- echo "$ac_t""missing" 1>&6
-fi
+AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
-echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
-echo "configure:889: checking for working makeinfo" >&5
-# Run test in a subshell; some versions of sh will print an error if
-# an executable is not found, even if stderr is redirected.
-# Redirect stdin to placate older versions of autoconf. Sigh.
-if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
- MAKEINFO=makeinfo
- echo "$ac_t""found" 1>&6
-else
- MAKEINFO="$missing_dir/missing makeinfo"
- echo "$ac_t""missing" 1>&6
-fi
+AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
-SHARED_VERSION_INFO="1:0:0"
+AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
+MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
-#######################################################################
-# User options
-#######################################################################
+AMTAR=${AMTAR-"${am_missing_run}tar"}
-#####
-# Check whether --enable-mpi or --disable-mpi was given.
-if test "${enable_mpi+set}" = set; then
- enableval="$enable_mpi"
- enable_mpi=$enableval
-else
- enable_mpi=no
+if test -z "$install_sh"; then
+ for install_sh in "$ac_aux_dir/install-sh" \
+ "$ac_aux_dir/install.sh" \
+ "${am_missing_run}${ac_auxdir}/install-sh";
+ do
+ test -f "$install_sh" && break
+ done
+ # FIXME: an evil hack: we remove the SHELL invocation from
+ # install_sh because automake adds it back in. Sigh.
+ install_sh=`echo $install_sh | sed -e 's/\${SHELL}//'`
fi
+_am_dirpart="`echo $install_sh | sed -e 's,//*[^/]*$,,'`"
+INSTALL_STRIP_PROGRAM="\${SHELL} \`CDPATH=: && cd $_am_dirpart && pwd\`/install-sh -c -s"
+# We need awk for the "check" target. The system "awk" is bad on
+# some platforms.
-#####
-# Check whether --enable-vector or --disable-vector was given.
-if test "${enable_vector+set}" = set; then
- enableval="$enable_vector"
- enable_vector=$enableval
-else
- enable_vector=no
-fi
+
+
+SHARED_VERSION_INFO="1:0:0"
-#####
-# Check whether --enable-fortran or --disable-fortran was given.
-if test "${enable_fortran+set}" = set; then
- enableval="$enable_fortran"
- enable_fortran=$enableval
-else
- enable_fortran=check
+# Make sure we can run config.sub.
+if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
+else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
fi
+echo $ac_n "checking host system type""... $ac_c" 1>&6
+echo "configure:963: checking host system type" >&5
+
+host_alias=$host
+case "$host_alias" in
+NONE)
+ case $nonopt in
+ NONE)
+ if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
+ else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
+ fi ;;
+ *) host_alias=$nonopt ;;
+ esac ;;
+esac
+
+host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
+host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
+host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
+host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
+echo "$ac_t""$host" 1>&6
+
+
+
-#####
+
+
+
+
+#######################################################################
+# Simple options and makefile variables
+#######################################################################
+
+
+### Single/Double
# Check whether --enable-float or --disable-float was given.
if test "${enable_float+set}" = set; then
enableval="$enable_float"
- enable_float=$enableval
+ :
else
enable_float=yes
fi
+if test "enable_float" = "no"; then
+ cat >> confdefs.h <<\EOF
+#define DOUBLE
+EOF
+fi
-#####
-
-# Check whether --enable-type-suffix or --disable-type-suffix was given.
-if test "${enable_type_suffix+set}" = set; then
- enableval="$enable_type_suffix"
- enable_type_suffix=$enableval
+### Fortran or not
+# Check whether --enable-fortran or --disable-fortran was given.
+if test "${enable_fortran+set}" = set; then
+ enableval="$enable_fortran"
+ :
else
- enable_type_suffix=yes
+ case "${host_cpu}-${host_os}" in
+ sparc*-solaris* | alpha*-* | rs6000*-aix* | powerpc*-aix* | mips*-irix*) enable_fortran=yes ;;
+ *) enable_fortran=no ;;
+ esac
fi
+if test "$enable_fortran" = "yes"; then
+ cat >> confdefs.h <<\EOF
+#define USE_FORTRAN
+EOF
-
-#####
-
-# Check whether --enable-mpi-suffix or --disable-mpi-suffix was given.
-if test "${enable_mpi_suffix+set}" = set; then
- enableval="$enable_mpi_suffix"
- enable_mpi_suffix=$enableval
+ GMXLIB_LIBOBJS="${GMXLIB_LIBOBJS} innerf.lo f77_wrappers.lo"
+ if test "$enable_float" = "yes"; then
+ MDLIB_LIBOBJS="${MDLIB_LIBOBJS} flincs.lo fsettle.lo fshake.lo"
+ else
+ MDLIB_LIBOBJS="${MDLIB_LIBOBJS} flincsd.lo fsettled.lo fshaked.lo"
+ fi
else
- enable_mpi_suffix=check
+ GMXLIB_LIBOBJS="${GMXLIB_LIBOBJS} innerc.lo"
+ MDLIB_LIBOBJS="${MDLIB_LIBOBJS} clincs.lo csettle.lo cshake.lo"
fi
-#####
-
-# Check whether --enable-simplewater or --disable-simplewater was given.
-if test "${enable_simplewater+set}" = set; then
- enableval="$enable_simplewater"
- enable_simplewater=$enableval
+### MPI or not
+# Check whether --enable-mpi or --disable-mpi was given.
+if test "${enable_mpi+set}" = set; then
+ enableval="$enable_mpi"
+ :
else
- enable_simplewater=check
+ enable_mpi=no
fi
-#####
-# Check whether --enable-waterwater-loops or --disable-waterwater-loops was given.
-if test "${enable_waterwater_loops+set}" = set; then
- enableval="$enable_waterwater_loops"
- enable_waterwater_loops=$enableval
+### MPI environment
+# Check whether --with-mpi-environment or --without-mpi-environment was given.
+if test "${with_mpi_environment+set}" = set; then
+ withval="$with_mpi_environment"
+ :
else
- enable_waterwater_loops=check
+ case "${host_cpu}" in
+ mips*-irix*) with_mpi_environment="MPI_ENVIRONMENT" ;;
+ *) with_mpi_environment=no ;;
+esac
fi
+if test "$with_mpi_environment" != "no"; then
+ cat >> confdefs.h <<EOF
+#define CHECK_MPI_ENV "$with_mpi_environment"
+EOF
+fi
-#####
+### Automatic nicing of programs
# Check whether --enable-nice or --disable-nice was given.
if test "${enable_nice+set}" = set; then
enableval="$enable_nice"
- enable_nice=$enableval
+ :
else
enable_nice=yes
fi
+if test "$enable_nice" = "no"; then
+ cat >> confdefs.h <<\EOF
+#define NO_NICE
+EOF
+fi
-#####
+### X86 assembly code
# Check whether --enable-x86_asm or --disable-x86_asm was given.
if test "${enable_x86_asm+set}" = set; then
enableval="$enable_x86_asm"
- enable_x86_asm=$enableval
+ :
else
enable_x86_asm=yes
fi
+case "${host_cpu}" in
+ i?86) ;;
+ *) enable_x86_asm=no ;;
+esac
-#####
+### Optimize for host cpu version
+# Check whether --enable-cpu-optimization or --disable-cpu-optimization was given.
+if test "${enable_cpu_optimization+set}" = set; then
+ enableval="$enable_cpu_optimization"
+ :
+else
+ enable_cpu_optimization=yes
+fi
+
-# Check whether --enable-xdr or --disable-xdr was given.
-if test "${enable_xdr+set}" = set; then
- enableval="$enable_xdr"
- enable_xdr=$enableval
+
+### Remove the arch/cpu subdirs in bin and lib
+# Check whether --enable-arch-subdirs or --disable-arch-subdirs was given.
+if test "${enable_arch_subdirs+set}" = set; then
+ enableval="$enable_arch_subdirs"
+ :
else
- enable_xdr=yes
+ enable_arch_subdirs=yes
fi
-#####
+### Vector machine inner loops
+# Check whether --enable-vector or --disable-vector was given.
+if test "${enable_vector+set}" = set; then
+ enableval="$enable_vector"
+ :
+else
+ enable_vector=no
+fi
+
+if test "$enable_vector" = "yes"; then
+ cat >> confdefs.h <<\EOF
+#define USE_VECTOR
+EOF
+
+fi
+
-# Check whether --enable-cpu-detection or --disable-cpu-detection was given.
-if test "${enable_cpu_detection+set}" = set; then
- enableval="$enable_cpu_detection"
- enable_cpu_detection=$enableval
+### Simplewater hack for SGI - disabled unrolling is the same as simplewater=yes
+# Check whether --enable-waterloop-unrolling or --disable-waterloop-unrolling was given.
+if test "${enable_waterloop_unrolling+set}" = set; then
+ enableval="$enable_waterloop_unrolling"
+ :
else
- enable_cpu_detection=yes
+ case "${host_cpu}-${host_os}" in
+ mips*-irix*) enable_waterloop_unrolling=yes ;;
+ *) enable_waterloop_unrolling=no ;;
+esac
fi
+if test "$enable_waterloops_unrolling" = "no"; then
+ cat >> confdefs.h <<\EOF
+#define SIMPLEWATER
+EOF
+
+fi
-#####
+### Turn off the special water-water loops on SGI...
+# Check whether --enable-waterwater-loops or --disable-waterwater-loops was given.
+if test "${enable_waterwater_loops+set}" = set; then
+ enableval="$enable_waterwater_loops"
+ :
+else
+ case "${host_cpu}-${host_os}" in
+ mips*-irix*) enable_waterwater_loops=yes ;;
+ *) enable_waterwater_loops=no ;;
+esac
+fi
+
+if test "$enable_waterwater_loops" = "no"; then
+ cat >> confdefs.h <<\EOF
+#define DISABLE_WATERWATER_LOOPS
+EOF
+
+fi
+
+### Do software 1/x
# Check whether --enable-software-recip or --disable-software-recip was given.
if test "${enable_software_recip+set}" = set; then
enableval="$enable_software_recip"
- enable_softwarerecip=$enableval
+ :
else
- enable_softwarerecip=no
+ enable_software_recip=no
fi
+if test "$enable_software_recip" = "yes"; then
+ cat >> confdefs.h <<\EOF
+#define SOFTWARE_RECIP
+EOF
+fi
-#####
+### Do software 1/sqrt(x)
# Check whether --enable-software-sqrt or --disable-software-sqrt was given.
if test "${enable_software_sqrt+set}" = set; then
enableval="$enable_software_sqrt"
- enable_softwaresqrt=$enableval
+ :
else
- enable_softwaresqrt=check
+ case "${host_cpu}-${host_os}" in
+ mips*-irix* | rs6000*-aix*) enable_software_sqrt=no ;;
+ *) enable_software_sqrt=yes ;;
+esac
fi
+if test "$enable_software_sqrt" = "yes"; then
+ cat >> confdefs.h <<\EOF
+#define SOFTWARE_SQRT
+EOF
+fi
-#####
-# Check whether --enable-vectorized_recip or --disable-vectorized_recip was given.
+### Vectorize 1/x
+# Check whether --enable-vectorized-recip or --disable-vectorized-recip was given.
if test "${enable_vectorized_recip+set}" = set; then
enableval="$enable_vectorized_recip"
- enable_vectorized_recip=$enableval
+ :
else
enable_vectorized_recip=no
fi
+if test "$enable_vectorized_recip" = "yes"; then
+ cat >> confdefs.h <<\EOF
+#define VECTORIZE_RECIP
+EOF
+else
+ if test "$enable_vectorized_recip" != "no"; then
+ { echo "configure: error: Vectorized reciprocal is only meaningful for normal LJ-only loops" 1>&2; exit 1; }
+ fi
+fi
-#####
-
-# Check whether --enable-vectorized_sqrt or --disable-vectorized_sqrt was given.
+### Vectorize 1/sqrt(x)
+# Check whether --enable-vectorized-sqrt or --disable-vectorized-sqrt was given.
if test "${enable_vectorized_sqrt+set}" = set; then
enableval="$enable_vectorized_sqrt"
- enable_vectorized_sqrt=$enableval
+ :
else
- enable_vectorized_sqrt=no
+ enable_vectorized_sqrt=not_selected
fi
+# processing of vectorized_sqrt choices is done just before the final output stage!
-#####
-# Check whether --enable-prefetch_x or --disable-prefetch_x was given.
+# The four options below used to improve code scheduling, but the newest CPUs can usually rearrange
+# instructions dynamically at runtime, so they might not make much difference now:
+
+### Coordinate prefetching
+# Check whether --enable-prefetch-x or --disable-prefetch-x was given.
if test "${enable_prefetch_x+set}" = set; then
enableval="$enable_prefetch_x"
- enable_prefetch_x=$enableval
+ :
else
enable_prefetch_x=no
fi
+# processing of prefetch-x choices is done just before the final output stage!
-#####
-# Check whether --enable-prefetch_f or --disable-prefetch_f was given.
+### Force prefetching
+# Check whether --enable-prefetch-f or --disable-prefetch-f was given.
if test "${enable_prefetch_f+set}" = set; then
enableval="$enable_prefetch_f"
- enable_prefetch_f=$enableval
+ :
else
enable_prefetch_f=no
fi
+# processing of prefetch-f choices is done just before the final output stage!
-#####
-# Check whether --enable-hide_square_latency or --disable-hide_square_latency was given.
+### First load all coords in a water-water iteration, then square all pairs, then add the sums to get r2.
+# Check whether --enable-hide-square-latency or --disable-hide-square-latency was given.
if test "${enable_hide_square_latency+set}" = set; then
enableval="$enable_hide_square_latency"
- enable_hide_square_latency=$enableval
+ :
else
enable_hide_square_latency=no
fi
+if test "$enable_hide_square_latency" = "yes"; then
+ cat >> confdefs.h <<\EOF
+#define DECREASE_SQUARE_LATENCY
+EOF
+fi
-#####
-# Check whether --enable-hide_table_latency or --disable-hide_table_latency was given.
+
+### Do the table lookups for all interactions between two water molecules before using the results
+# Check whether --enable-hide-table-latency or --disable-hide-table-latency was given.
if test "${enable_hide_table_latency+set}" = set; then
enableval="$enable_hide_table_latency"
- enable_hide_table_latency=$enableval
+ :
else
enable_hide_table_latency=no
fi
+if test "$enable_hide_table_latency" = "yes"; then
+ cat >> confdefs.h <<\EOF
+#define DECREASE_LOOKUP_LATENCY
+EOF
-
-#####
-
-# Check whether --with-mpi-environment or --without-mpi-environment was given.
-if test "${with_mpi_environment+set}" = set; then
- withval="$with_mpi_environment"
- with_mpi_environment="$withval"
-else
- with_mpi_environment=check
-fi
-
-
-
-########################################################################
-# Process the options
-########################################################################
-
-
-# Make sure we can run config.sub.
-if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
-else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
fi
-echo $ac_n "checking host system type""... $ac_c" 1>&6
-echo "configure:1169: checking host system type" >&5
-
-host_alias=$host
-case "$host_alias" in
-NONE)
- case $nonopt in
- NONE)
- if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
- else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
- fi ;;
- *) host_alias=$nonopt ;;
- esac ;;
-esac
-
-host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
-host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
-host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
-host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
-echo "$ac_t""$host" 1>&6
-
-
-case "${host_cpu}" in
- i?86)
- x86=yes
- ;;
- *)
- x86=false
- ;;
-esac
-
-if test "$enable_fortran" = "check"; then
-case "${host_cpu}-${host_os}" in
-
- sparc*-solaris* | alpha*-* | rs6000*-aix* | mips*-irix*)
- enable_fortran=yes
- ;;
- *)
- enable_fortran=no
- ;;
- esac
-fi
-if test "$enable_mpi_suffix" = "check"; then
-case "${host_cpu}-${host_os}" in
- rs6000*-aix* | powerpc*-aix*)
- enable_mpi_suffix=yes
- ;;
- *)
- enable_mpi_suffix=no
- ;;
- esac
-fi
-if test "$enable_simplewater" = "check"; then
-case "${host_cpu}-${host_os}" in
- mips*-irix*)
- enable_simplewater=yes
- ;;
- *)
- enable_simplewater=no
- ;;
-esac
-fi
-if test "$enable_waterwater_loops" = "check"; then
-case "${host_cpu}-${host_os}" in
- mips*-irix*)
- enable_waterwater_loops=no
- ;;
- *)
- enable_waterwater_loops=yes
- ;;
-esac
-fi
+############################################################
+# Checks for programs
+############################################################
-if test "$enable_softwaresqrt" = "check"; then
+# normally we use the default compiler, but on alpha/linux we try the compaq ones first
case "${host_cpu}-${host_os}" in
-
- mips*-irix* | rs6000*-aix*)
- enable_softwaresqrt=no
- ;;
-
- *)
- enable_softwaresqrt=yes
- ;;
-esac
-fi
-
-if test "$with_mpi_environment" = "check" -a "$enable_mpi" = "yes"; then
-case "${host_cpu}" in
- mips*-irix*)
- with_mpi_environment="MPI_ENVIRONMENT"
+ alpha*-linux*)
+ cc_names="ccc cc gcc"
+ f77_names="fort f77 g77"
;;
- *)
- with_mpi_environment=no
+ *)
+ cc_names="cc xlc gcc"
+ f77_names="f77 xlf xlf77 cf77 fl32 g77 fort77 f90 xlf90 pgf77 cf77 fort fort77 pgf90"
;;
esac
-fi
-
-case "${host_cpu}" in
- alpha*)
- cat >> confdefs.h <<\EOF
-#define USE_AXP_ASM
-EOF
-
- ;;
- *)
- ;;
-esac
if test "$enable_fortran" = "yes"; then
- # vendor f77 before g77 - but special compiler list for alpha-linux
- case "${host_cpu}-${host_os}" in
- alpha*-linux*)
- for ac_prog in fort f77 g77
-do
-# Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1294: checking for $ac_word" >&5
-if eval "test \"`echo '$''{'ac_cv_prog_F77'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- if test -n "$F77"; then
- ac_cv_prog_F77="$F77" # Let the user override the test.
-else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_F77="$ac_prog"
- break
- fi
- done
- IFS="$ac_save_ifs"
-fi
-fi
-F77="$ac_cv_prog_F77"
-if test -n "$F77"; then
- echo "$ac_t""$F77" 1>&6
-else
- echo "$ac_t""no" 1>&6
-fi
-
-test -n "$F77" && break
-done
-
- ;;
- *)
- for ac_prog in f77 xlf xlf77 cf77 fl32 g77 fort77 f90 xlf90 pgf77 cf77 fort fort77 pgf90
+ for ac_prog in $f77_names
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1330: checking for $ac_word" >&5
+echo "configure:1344: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_F77'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
test -n "$F77" && break
done
- ;;
- esac
if test -z "$F77"; then
for ac_prog in g77 f77 f2c
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1367: checking for $ac_word" >&5
+echo "configure:1379: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_F77'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
fi
echo $ac_n "checking whether the Fortran 77 compiler ($F77 $FFLAGS $LDFLAGS) works""... $ac_c" 1>&6
-echo "configure:1400: checking whether the Fortran 77 compiler ($F77 $FFLAGS $LDFLAGS) works" >&5
+echo "configure:1412: checking whether the Fortran 77 compiler ($F77 $FFLAGS $LDFLAGS) works" >&5
ac_ext=f
ac_compile='${F77-f77} -c $FFLAGS conftest.$ac_ext 1>&5'
end
EOF
-if { (eval echo configure:1413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_prog_f77_works=yes
# If we can't run a trivial program, we are probably using a cross compiler.
if (./conftest; exit) 2>/dev/null; then
{ echo "configure: error: installation or configuration problem: Fortran 77 compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the Fortran 77 compiler ($F77 $FFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
-echo "configure:1439: checking whether the Fortran 77 compiler ($F77 $FFLAGS $LDFLAGS) is a cross-compiler" >&5
+echo "configure:1451: checking whether the Fortran 77 compiler ($F77 $FFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_f77_cross" 1>&6
cross_compiling=$ac_cv_prog_f77_cross
echo $ac_n "checking whether we are using GNU Fortran 77""... $ac_c" 1>&6
-echo "configure:1444: checking whether we are using GNU Fortran 77" >&5
+echo "configure:1456: checking whether we are using GNU Fortran 77" >&5
if eval "test \"`echo '$''{'ac_cv_prog_g77'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
yes
#endif
EOF
-if { ac_try='$F77 -E conftest.fpp'; { (eval echo configure:1453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
+if { ac_try='$F77 -E conftest.fpp'; { (eval echo configure:1465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
ac_cv_prog_g77=yes
else
ac_cv_prog_g77=no
ac_save_FFLAGS="$FFLAGS"
FFLAGS=
echo $ac_n "checking whether $F77 accepts -g""... $ac_c" 1>&6
-echo "configure:1468: checking whether $F77 accepts -g" >&5
+echo "configure:1480: checking whether $F77 accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_f77_g'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
fi
fi
-case "${host_cpu}-${host_os}" in
- alpha*-linux*)
- for ac_prog in ccc cc
+# the (non-mpi) c compiler, which is also used for programs executed during build stage
+for ac_prog in $cc_names
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1510: checking for $ac_word" >&5
+echo "configure:1521: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
test -n "$CC" && break
done
- # do vendor cc before gcc
- ;;
- *)
- # Extract the first word of "cc", so it can be a program name with args.
-set dummy cc; ac_word=$2
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1544: checking for $ac_word" >&5
-if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
-else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_CC="cc"
- break
- fi
- done
- IFS="$ac_save_ifs"
-fi
-fi
-CC="$ac_cv_prog_CC"
-if test -n "$CC"; then
- echo "$ac_t""$CC" 1>&6
-else
- echo "$ac_t""no" 1>&6
-fi
- # do vendor cc before gcc
- ;;
-esac
+
# Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1575: checking for $ac_word" >&5
+echo "configure:1553: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1605: checking for $ac_word" >&5
+echo "configure:1583: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "cl", so it can be a program name with args.
set dummy cl; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1656: checking for $ac_word" >&5
+echo "configure:1634: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
-echo "configure:1688: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
+echo "configure:1666: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
cat > conftest.$ac_ext << EOF
-#line 1699 "configure"
+#line 1677 "configure"
#include "confdefs.h"
main(){return(0);}
EOF
-if { (eval echo configure:1704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_prog_cc_works=yes
# If we can't run a trivial program, we are probably using a cross compiler.
if (./conftest; exit) 2>/dev/null; then
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
-echo "configure:1730: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
+echo "configure:1708: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
cross_compiling=$ac_cv_prog_cc_cross
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
-echo "configure:1735: checking whether we are using GNU C" >&5
+echo "configure:1713: checking whether we are using GNU C" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
yes;
#endif
EOF
-if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
+if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
ac_cv_prog_gcc=yes
else
ac_cv_prog_gcc=no
ac_save_CFLAGS="$CFLAGS"
CFLAGS=
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
-echo "configure:1763: checking whether ${CC-cc} accepts -g" >&5
+echo "configure:1741: checking whether ${CC-cc} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
fi
fi
+
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
-echo "configure:1795: checking how to run the C preprocessor" >&5
+echo "configure:1774: checking how to run the C preprocessor" >&5
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
CPP=
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp.
cat > conftest.$ac_ext <<EOF
-#line 1810 "configure"
+#line 1789 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:1816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:1795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
:
rm -rf conftest*
CPP="${CC-cc} -E -traditional-cpp"
cat > conftest.$ac_ext <<EOF
-#line 1827 "configure"
+#line 1806 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:1833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:1812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
:
rm -rf conftest*
CPP="${CC-cc} -nologo -E"
cat > conftest.$ac_ext <<EOF
-#line 1844 "configure"
+#line 1823 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:1850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:1829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
:
fi
echo "$ac_t""$CPP" 1>&6
-BUILD_CC=$CC
+am_make=${MAKE-make}
+cat > confinc << 'END'
+doit:
+ @echo done
+END
+# If we don't find an include directive, just comment out the code.
+echo $ac_n "checking for style of include used by $am_make""... $ac_c" 1>&6
+echo "configure:1860: checking for style of include used by $am_make" >&5
+_am_include='#'
+_am_quote=
+_am_result=none
+# First try GNU make style include.
+echo "include confinc" > confmf
+# We grep out `Entering directory' and `Leaving directory'
+# messages which can occur if `w' ends up in MAKEFLAGS.
+# In particular we don't look at `^make:' because GNU make might
+# be invoked under some other name (usually "gmake"), in which
+# case it prints its new name instead of `make'.
+if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
+ _am_include=include
+ _am_quote=
+ _am_result=GNU
+fi
+# Now try BSD make style include.
+if test "$_am_include" = "#"; then
+ echo '.include "confinc"' > confmf
+ if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
+ _am_include=.include
+ _am_quote='"'
+ _am_result=BSD
+ fi
+fi
+
+
+echo "$ac_t""$_am_result" 1>&6
+rm -f confinc confmf
+
+am_compiler_list=
+
+depcc="$CC"
+depcpp="$CPP"
+
+
+
+
+echo $ac_n "checking dependency style of $depcc""... $ac_c" 1>&6
+echo "configure:1899: checking dependency style of $depcc" >&5
+if eval "test \"`echo '$''{'am_cv_CC_dependencies_compiler_type'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
+ # We make a subdir and do the tests there. Otherwise we can end up
+ # making bogus files that we don't know about and never remove. For
+ # instance it was reported that on HP-UX the gcc test will end up
+ # making a dummy file named `D' -- because `-MD' means `put the output
+ # in D'.
+ mkdir confdir
+ # Copy depcomp to subdir because otherwise we won't find it if we're
+ # using a relative directory.
+ cp "$am_depcomp" confdir
+ cd confdir
+
+ am_cv_CC_dependencies_compiler_type=none
+ if test "$am_compiler_list" = ""; then
+ am_compiler_list="`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`"
+ fi
+ for depmode in $am_compiler_list; do
+ # We need to recreate these files for each test, as the compiler may
+ # overwrite some of them when testing with obscure command lines.
+ # This happens at least with the AIX C compiler.
+ echo '#include "conftest.h"' > conftest.c
+ echo 'int i;' > conftest.h
+
+ case "$depmode" in
+ nosideeffect)
+ # after this tag, mechanisms are not by side-effect, so they'll
+ # only be used when explicitly requested
+ if test "x$enable_dependency_tracking" = xyes; then
+ continue
+ else
+ break
+ fi
+ ;;
+ none) break ;;
+ esac
+ # We check with `-c' and `-o' for the sake of the "dashmstdout"
+ # mode. It turns out that the SunPro C++ compiler does not properly
+ # handle `-M -o', and we need to detect this.
+ if depmode="$depmode" \
+ source=conftest.c object=conftest.o \
+ depfile=conftest.Po tmpdepfile=conftest.TPo \
+ $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
+ grep conftest.h conftest.Po > /dev/null 2>&1; then
+ am_cv_CC_dependencies_compiler_type="$depmode"
+ break
+ fi
+ done
+
+ cd ..
+ rm -rf confdir
+else
+ am_cv_CC_dependencies_compiler_type=none
+fi
+
+fi
+
+echo "$ac_t""$am_cv_CC_dependencies_compiler_type" 1>&6
+CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
+
+
+# Check for environment variable CC_FOR_BUILD before overwriting it
+if test -z "$CC_FOR_BUILD"; then
+ CC_FOR_BUILD=$CC
+fi
+
+
+# if we are using mpi, also get an MPICC. We cannot set that in the PROG_CC macro
+# above, since autoconf checks that the created file can be executed. This would
+# fail on platforms where MPI executables can only be run through a batchqueue.
+
+if test "$enable_mpi" = "yes"; then
+ for ac_prog in mpicc mpcc mpxlf hcc
+do
+# Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+echo "configure:1979: checking for $ac_word" >&5
+if eval "test \"`echo '$''{'ac_cv_prog_MPICC'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ if test -n "$MPICC"; then
+ ac_cv_prog_MPICC="$MPICC" # Let the user override the test.
+else
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ ac_dummy="$PATH"
+ for ac_dir in $ac_dummy; do
+ test -z "$ac_dir" && ac_dir=.
+ if test -f $ac_dir/$ac_word; then
+ ac_cv_prog_MPICC="$ac_prog"
+ break
+ fi
+ done
+ IFS="$ac_save_ifs"
+fi
+fi
+MPICC="$ac_cv_prog_MPICC"
+if test -n "$MPICC"; then
+ echo "$ac_t""$MPICC" 1>&6
+else
+ echo "$ac_t""no" 1>&6
+fi
+
+test -n "$MPICC" && break
+done
+test -n "$MPICC" || MPICC="$CC"
+
+# now change the normal cc to the MPI one - see the comment above.
+ CC=$MPICC
+ echo $ac_n "checking whether the MPI cc command works""... $ac_c" 1>&6
+echo "configure:2012: checking whether the MPI cc command works" >&5 # be paranoid
+ cat > conftest.$ac_ext <<EOF
+#line 2014 "configure"
+#include "confdefs.h"
+#include <mpi.h>
+int main() {
+int argc; char **argv; MPI_Init(&argc,&argv);
+; return 0; }
+EOF
+if { (eval echo configure:2021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ echo "$ac_t""yes" 1>&6
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ { echo "configure: error: Cannot compile and link MPI code with $CC" 1>&2; exit 1; }
+fi
+rm -f conftest*
+ cat >> confdefs.h <<\EOF
+#define USE_MPI
+EOF
+ GMXLIB_LIBOBJS="${GMXLIB_LIBOBJS} mpiio.lo"
+else
+ GMXLIB_LIBOBJS="${GMXLIB_LIBOBJS} libnet.lo"
+fi
if test "$enable_fortran" = "yes"; then
echo $ac_n "checking for Fortran 77 libraries""... $ac_c" 1>&6
-echo "configure:1879: checking for Fortran 77 libraries" >&5
+echo "configure:2042: checking for Fortran 77 libraries" >&5
if eval "test \"`echo '$''{'ac_cv_flibs'+set}'`\" = set"; then
echo $ac_n "checking fortran name mangling""... $ac_c" 1>&6
-echo "configure:2038: checking fortran name mangling" >&5
+echo "configure:2201: checking fortran name mangling" >&5
cat > mangle-func.f <<EOF
subroutine foobar()
return
end
EOF
ac_try='$F77 -c $FFLAGS mangle-func.f 1>&5'
-if { (eval echo configure:2048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; then
+if { (eval echo configure:2211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; then
ac_try=""
else
echo "configure: failed program was:" >&5
ac_save_LIBS="$LIBS"
LIBS="mangle-func.o $FLIBS $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 2069 "configure"
+#line 2232 "configure"
#include "confdefs.h"
int main() {
foobar();
; return 0; }
EOF
-if { (eval echo configure:2076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:2239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
ac_f77_mangle_type=lowercase
else
cat conftest.$ac_ext >&5
rm -rf conftest*
cat > conftest.$ac_ext <<EOF
-#line 2084 "configure"
+#line 2247 "configure"
#include "confdefs.h"
int main() {
foobar_();
; return 0; }
EOF
-if { (eval echo configure:2091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:2254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
ac_f77_mangle_type=lowercase-underscore
else
cat conftest.$ac_ext >&5
rm -rf conftest*
cat > conftest.$ac_ext <<EOF
-#line 2099 "configure"
+#line 2262 "configure"
#include "confdefs.h"
int main() {
FOOBAR();
; return 0; }
EOF
-if { (eval echo configure:2106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:2269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
ac_f77_mangle_type=uppercase
else
cat conftest.$ac_ext >&5
rm -rf conftest*
cat > conftest.$ac_ext <<EOF
-#line 2114 "configure"
+#line 2277 "configure"
#include "confdefs.h"
int main() {
FOOBAR_();
; return 0; }
EOF
-if { (eval echo configure:2121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:2284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
ac_f77_mangle_type=uppercase-underscore
else
esac
echo $ac_n "checking whether f77 functions with underscore get an extra underscore""... $ac_c" 1>&6
-echo "configure:2178: checking whether f77 functions with underscore get an extra underscore" >&5
+echo "configure:2341: checking whether f77 functions with underscore get an extra underscore" >&5
ac_ext=c
ac_save_LIBS="$LIBS"
LIBS="mangle-func.o $FLIBS $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 2191 "configure"
+#line 2354 "configure"
#include "confdefs.h"
int main() {
$mangle_try();
; return 0; }
EOF
-if { (eval echo configure:2198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:2361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
ac_f77_mangle_underscore=yes;
cat >> confdefs.h <<\EOF
rm -f mangle-func*
echo "$ac_t""$ac_f77_mangle_underscore" 1>&6
-
+
fi
-# if we are using mpi, also get an MPICC. We cannot set that in the PROG_CC macro
-# above, since autoconf checks that the created file can be executed. This would
-# fail on platforms where MPI executables can only be run through a batchqueue.
-
-if test "$enable_mpi" = "yes"; then
- for ac_prog in mpicc mpcc mpxlf hcc
-do
-# Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2235: checking for $ac_word" >&5
-if eval "test \"`echo '$''{'ac_cv_prog_MPICC'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- if test -n "$MPICC"; then
- ac_cv_prog_MPICC="$MPICC" # Let the user override the test.
-else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_MPICC="$ac_prog"
- break
- fi
- done
- IFS="$ac_save_ifs"
-fi
+echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
+echo "configure:2389: checking how to run the C preprocessor" >&5
+# On Suns, sometimes $CPP names a directory.
+if test -n "$CPP" && test -d "$CPP"; then
+ CPP=
fi
-MPICC="$ac_cv_prog_MPICC"
-if test -n "$MPICC"; then
- echo "$ac_t""$MPICC" 1>&6
+if test -z "$CPP"; then
+if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
- echo "$ac_t""no" 1>&6
-fi
-
-test -n "$MPICC" && break
-done
-test -n "$MPICC" || MPICC="$CC"
-
-# now change the normal cc to the MPI one - see the comment above.
- CC=$MPICC
- echo $ac_n "checking whether the MPI cc command works""... $ac_c" 1>&6
-echo "configure:2268: checking whether the MPI cc command works" >&5 # be paranoid
+ # This must be in double quotes, not single quotes, because CPP may get
+ # substituted into the Makefile and "${CC-cc}" will confuse make.
+ CPP="${CC-cc} -E"
+ # On the NeXT, cc -E runs the code through the compiler's parser,
+ # not just through cpp.
cat > conftest.$ac_ext <<EOF
-#line 2270 "configure"
+#line 2404 "configure"
#include "confdefs.h"
-#include <mpi.h>
-int main() {
-int argc; char **argv; MPI_Init(&argc,&argv);
-; return 0; }
+#include <assert.h>
+Syntax Error
EOF
-if { (eval echo configure:2277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- echo "$ac_t""yes" 1>&6
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+{ (eval echo configure:2410: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+if test -z "$ac_err"; then
+ :
else
+ echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
- { echo "configure: error: Cannot compile and link MPI code with $CC" 1>&2; exit 1; }
-fi
-rm -f conftest*
-
-
-if true; then
- USE_MPI_TRUE=
- USE_MPI_FALSE='#'
-else
- USE_MPI_TRUE='#'
- USE_MPI_FALSE=
-fi
-else
-
-
-if false; then
- USE_MPI_TRUE=
- USE_MPI_FALSE='#'
-else
- USE_MPI_TRUE='#'
- USE_MPI_FALSE=
-fi
-fi
-
-# A rather complicated check for the capabilities of as, to make
-# sure we can compile the assembly innerloops.
-if test "$x86" = "yes"; then
- if test "$enable_x86_asm" = "yes"; then
- if test "$enable_float" = "no"; then
- echo "configure: warning: The assembly loops can only be used in single precision - disabling" 1>&2
- enable_x86_asm=no
- else
- echo $ac_n "checking whether as fully supports intel syntax""... $ac_c" 1>&6
-echo "configure:2317: checking whether as fully supports intel syntax" >&5
-cat > conftest.s << EOF
-.intel_syntax noprefix
-checkasm:
- emms
- pswapd mm0,mm0
- movups xmm0,checkasm
- emms
- ret
-EOF
- if { ac_try='$CC -c conftest.s'; { (eval echo configure:2327: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
- echo "$ac_t""yes" 1>&6
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: Upgrade to binutils>=2.11, download the as executable
- from www.gromacs.org, or disable assembly loops." 1>&2; exit 1; }
- fi
- fi
- fi
-else # not x86
-enable_x86_asm=no
-fi
-
-# Extract the first word of "ident", so it can be a program name with args.
-set dummy ident; ac_word=$2
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2343: checking for $ac_word" >&5
-if eval "test \"`echo '$''{'ac_cv_path_IDENT'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- case "$IDENT" in
- /*)
- ac_cv_path_IDENT="$IDENT" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_IDENT="$IDENT" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_IDENT="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_IDENT" && ac_cv_path_IDENT="no"
- ;;
-esac
-fi
-IDENT="$ac_cv_path_IDENT"
-if test -n "$IDENT"; then
- echo "$ac_t""$IDENT" 1>&6
-else
- echo "$ac_t""no" 1>&6
-fi
-
-if test "$IDENT" != "no"; then
- # seems as if we have the ident program, but does the
- # compiler support it?
- echo $ac_n "checking whether the compiler supports ident""... $ac_c" 1>&6
-echo "configure:2380: checking whether the compiler supports ident" >&5
+ CPP="${CC-cc} -E -traditional-cpp"
cat > conftest.$ac_ext <<EOF
-#line 2382 "configure"
+#line 2421 "configure"
#include "confdefs.h"
-#ident "@(#) file.h 1.1 12/16/92"
+#include <assert.h>
+Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:2387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:2427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
+ :
+else
+ echo "$ac_err" >&5
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
rm -rf conftest*
-
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<\EOF
-#define HAVE_IDENT
+ CPP="${CC-cc} -nologo -E"
+ cat > conftest.$ac_ext <<EOF
+#line 2438 "configure"
+#include "confdefs.h"
+#include <assert.h>
+Syntax Error
EOF
-
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+{ (eval echo configure:2444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+if test -z "$ac_err"; then
+ :
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
- echo "$ac_t""no" 1>&6
+ CPP=/lib/cpp
fi
rm -f conftest*
fi
-
-
-echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
-echo "configure:2409: checking whether ln -s works" >&5
-if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- rm -f conftestdata
-if ln -s X conftestdata 2>/dev/null
-then
- rm -f conftestdata
- ac_cv_prog_LN_S="ln -s"
-else
- ac_cv_prog_LN_S=ln
+rm -f conftest*
fi
+rm -f conftest*
+ ac_cv_prog_CPP="$CPP"
fi
-LN_S="$ac_cv_prog_LN_S"
-if test "$ac_cv_prog_LN_S" = "ln -s"; then
- echo "$ac_t""yes" 1>&6
+ CPP="$ac_cv_prog_CPP"
else
- echo "$ac_t""no" 1>&6
+ ac_cv_prog_CPP="$CPP"
fi
+echo "$ac_t""$CPP" 1>&6
-# Check whether --enable-shared or --disable-shared was given.
-if test "${enable_shared+set}" = set; then
- enableval="$enable_shared"
- p=${PACKAGE-default}
-case $enableval in
-yes) enable_shared=yes ;;
-no) enable_shared=no ;;
-*)
- enable_shared=no
- # Look at the argument we got. We use all the common list separators.
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
- for pkg in $enableval; do
- if test "X$pkg" = "X$p"; then
- enable_shared=yes
- fi
- done
- IFS="$ac_save_ifs"
- ;;
-esac
-else
- enable_shared=yes
-fi
-# Check whether --enable-static or --disable-static was given.
-if test "${enable_static+set}" = set; then
- enableval="$enable_static"
- p=${PACKAGE-default}
-case $enableval in
-yes) enable_static=yes ;;
-no) enable_static=no ;;
-*)
- enable_static=no
- # Look at the argument we got. We use all the common list separators.
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
- for pkg in $enableval; do
- if test "X$pkg" = "X$p"; then
- enable_static=yes
- fi
- done
- IFS="$ac_save_ifs"
- ;;
-esac
-else
- enable_static=yes
-fi
+if test "$enable_cpu_tuning" = "yes"; then
+
-# Check whether --enable-fast-install or --disable-fast-install was given.
-if test "${enable_fast_install+set}" = set; then
- enableval="$enable_fast_install"
- p=${PACKAGE-default}
-case $enableval in
-yes) enable_fast_install=yes ;;
-no) enable_fast_install=no ;;
-*)
- enable_fast_install=no
- # Look at the argument we got. We use all the common list separators.
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
- for pkg in $enableval; do
- if test "X$pkg" = "X$p"; then
- enable_fast_install=yes
- fi
- done
- IFS="$ac_save_ifs"
- ;;
-esac
-else
- enable_fast_install=yes
-fi
-echo $ac_n "checking build system type""... $ac_c" 1>&6
-echo "configure:2499: checking build system type" >&5
+#
+# Determine the exact cpu type on some common systems where it is
+# not visible from the host triplet.
+# (on e.g. intel and dec/tru64 the host type is enough)
-build_alias=$build
-case "$build_alias" in
-NONE)
- case $nonopt in
- NONE) build_alias=$host_alias ;;
- *) build_alias=$nonopt ;;
- esac ;;
-esac
-
-build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
-build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
-build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
-build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
-echo "$ac_t""$build" 1>&6
-
-# Check whether --with-gnu-ld or --without-gnu-ld was given.
-if test "${with_gnu_ld+set}" = set; then
- withval="$with_gnu_ld"
- test "$withval" = no || with_gnu_ld=yes
-else
- with_gnu_ld=no
-fi
-
-ac_prog=ld
-if test "$GCC" = yes; then
- # Check if gcc -print-prog-name=ld gives a path.
- echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
-echo "configure:2528: checking for ld used by GCC" >&5
- case $host in
- *-*-mingw*)
- # gcc leaves a trailing carriage return which upsets mingw
- ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
- *)
- ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
- esac
- case $ac_prog in
- # Accept absolute paths.
- [\\/]* | [A-Za-z]:[\\/]*)
- re_direlt='/[^/][^/]*/\.\./'
- # Canonicalize the path of ld
- ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
- while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
- ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
- done
- test -z "$LD" && LD="$ac_prog"
- ;;
- "")
- # If it fails, then pretend we aren't using GCC.
- ac_prog=ld
- ;;
- *)
- # If it is relative, then search for the first ld in PATH.
- with_gnu_ld=unknown
- ;;
- esac
-elif test "$with_gnu_ld" = yes; then
- echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
-echo "configure:2558: checking for GNU ld" >&5
-else
- echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
-echo "configure:2561: checking for non-GNU ld" >&5
-fi
-if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- if test -z "$LD"; then
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
- for ac_dir in $PATH; do
- test -z "$ac_dir" && ac_dir=.
- if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
- lt_cv_path_LD="$ac_dir/$ac_prog"
- # Check to see if the program is GNU ld. I'd rather use --version,
- # but apparently some GNU ld's only accept -v.
- # Break only if it was the GNU/non-GNU ld that we prefer.
- if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
- test "$with_gnu_ld" != no && break
- else
- test "$with_gnu_ld" != yes && break
- fi
- fi
- done
- IFS="$ac_save_ifs"
-else
- lt_cv_path_LD="$LD" # Let the user override the test with a path.
-fi
-fi
+case "${host_cpu}-${host_os}" in
-LD="$lt_cv_path_LD"
-if test -n "$LD"; then
- echo "$ac_t""$LD" 1>&6
-else
- echo "$ac_t""no" 1>&6
-fi
-test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
-echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
-echo "configure:2596: checking if the linker ($LD) is GNU ld" >&5
-if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- # I'd rather use --version here, but apparently some GNU ld's only accept -v.
-if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
- lt_cv_prog_gnu_ld=yes
-else
- lt_cv_prog_gnu_ld=no
-fi
-fi
+rs6000*-aix*)
+ # we need to fool the combination of m4, sh and awk - thus the seemingly unnecessary n
+ IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ n=1; print $n }'`
+ if /usr/sbin/lsattr -EHl ${IBM_CPU_ID} | grep POWER4 >/dev/null 2>&1; then
+ gmxcpu=power4
+ elif /usr/sbin/lsattr -EHl ${IBM_CPU_ID} | grep POWER3 >/dev/null 2>&1; then
+ gmxcpu=power3
+ elif /usr/sbin/lsattr -EHl ${IBM_CPU_ID} | grep POWER2 >/dev/null 2>&1; then
+ gmxcpu=power2
+ else
+ gmxcpu=""
+ fi
+ ;;
-echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
-with_gnu_ld=$lt_cv_prog_gnu_ld
+powerpc*-aix*)
+ if /usr/sbin/lscfg -vp | grep PowerPC | grep 604 >/dev/null 2>&1; then
+ gmxcpu=ppc604
+ elif /usr/sbin/lscfg -vp | grep PowerPC | grep 603 >/dev/null 2>&1; then
+ gmxcpu=ppc603
+ elif /usr/sbin/lscfg -vp | grep PowerPC | grep rs64a >/dev/null 2>&1; then
+ gmxcpu=rs64a
+ elif /usr/sbin/lscfg -vp | grep PowerPC | grep rs64b >/dev/null 2>&1; then
+ gmxcpu=rs64b
+ elif /usr/sbin/lscfg -vp | grep PowerPC | grep rs64c >/dev/null 2>&1; then
+ gmxcpu=rs64c
+ else
+ gmxcpu=""
+ fi
+ ;;
+mips*-irix*)
+ if /sbin/hinv | grep CPU | grep R12000 >/dev/null 2>&1; then
+ gmxcpu=r12000
+ elif /sbin/hinv | grep CPU | grep R10000 >/dev/null 2>&1; then
+ gmxcpu=r10000
+ elif /sbin/hinv | grep CPU | grep R8000 >/dev/null 2>&1; then
+ gmxcpu=r8000
+ elif /sbin/hinv | grep CPU | grep R5000 >/dev/null 2>&1; then
+ gmxcpu=r5000
+ else
+ gmxcpu=""
+ fi
+ ;;
-echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
-echo "configure:2613: checking for $LD option to reload object files" >&5
-if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- lt_cv_ld_reload_flag='-r'
-fi
+sparc*-solaris*)
+ if /usr/sbin/prtconf | grep UltraSPARC-III >/dev/null 2>&1; then
+ gmxcpu=ultrasparc3
+ elif /usr/sbin/prtconf | grep UltraSPARC-IIi >/dev/null 2>&1; then
+ gmxcpu=ultrasparc2i
+ elif /usr/sbin/prtconf | grep UltraSPARC-II >/dev/null 2>&1; then
+ gmxcpu=ultrasparc2
+ elif /usr/sbin/prtconf | grep UltraSPARC >/dev/null 2>&1; then
+ gmxcpu=ultrasparc
+ else
+ gmxcpu=""
+ fi
+ ;;
+*)
+ gmxcpu=""
+ ;;
-echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
-reload_flag=$lt_cv_ld_reload_flag
-test -n "$reload_flag" && reload_flag=" $reload_flag"
+esac
-echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
-echo "configure:2625: checking for BSD-compatible nm" >&5
-if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- if test -n "$NM"; then
- # Let the user override the test.
- lt_cv_path_NM="$NM"
else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
- for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
- test -z "$ac_dir" && ac_dir=.
- tmp_nm=$ac_dir/${ac_tool_prefix}nm
- if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
- # Check to see if the nm accepts a BSD-compat flag.
- # Adding the `sed 1q' prevents false positives on HP-UX, which says:
- # nm: unknown option "B" ignored
- # Tru64's nm complains that /dev/null is an invalid object file
- if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
- lt_cv_path_NM="$tmp_nm -B"
- break
- elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
- lt_cv_path_NM="$tmp_nm -p"
- break
- else
- lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
- continue # so that we can try to find one that supports BSD flags
- fi
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
-fi
+ gmxcpu=""
fi
-NM="$lt_cv_path_NM"
-echo "$ac_t""$NM" 1>&6
-echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
-echo "configure:2663: checking how to recognise dependant libraries" >&5
-if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- lt_cv_file_magic_cmd='$MAGIC_CMD'
-lt_cv_file_magic_test_file=
-lt_cv_deplibs_check_method='unknown'
-# Need to set the preceding variable on all platforms that support
-# interlibrary dependencies.
-# 'none' -- dependencies not supported.
-# `unknown' -- same as none, but documents that we really don't know.
-# 'pass_all' -- all dependencies passed with no checks.
-# 'test_compile' -- check by making test program.
-# 'file_magic [regex]' -- check by looking for files in library path
-# which responds to the $file_magic_cmd with a given egrep regex.
-# If you have `file' or equivalent on your system and you're not sure
-# whether `pass_all' will *always* work, you probably want this one.
-case $host_os in
-aix*)
- lt_cv_deplibs_check_method=pass_all
- ;;
-beos*)
- lt_cv_deplibs_check_method=pass_all
- ;;
-bsdi4*)
- lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
- lt_cv_file_magic_cmd='/usr/bin/file -L'
- lt_cv_file_magic_test_file=/shlib/libc.so
- ;;
+# Try to determine "good" native compiler flags if none specified on command
+# line. To avoid repeating the entire procedure for fortran flags, we first
+# determine our suggested choices for both C and fortran, and then possibly
+# override them with user choices.
-cygwin* | mingw* |pw32*)
- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
- lt_cv_file_magic_cmd='$OBJDUMP -f'
- ;;
+cc_vendor="unknown"
-darwin* | rhapsody*)
- lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
- lt_cv_file_magic_cmd='/usr/bin/file -L'
- case "$host_os" in
- rhapsody* | darwin1.012)
- lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
- ;;
- *) # Darwin 1.3 on
- lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
- ;;
- esac
- ;;
+case "${host_cpu}-${host_os}" in
-freebsd* )
- if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
- case $host_cpu in
- i*86 )
- # Not sure whether the presence of OpenBSD here was a mistake.
- # Let's accept both of them until this is cleared up.
- lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
- lt_cv_file_magic_cmd=/usr/bin/file
- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
- ;;
+ *-solaris2*)
+ case "${gmxcpu}" in
+ ultrasparc3*)
+ xCFLAGS="-fast -xO5 -xtarget=ultra3 -fsimple=2 -fnonstd -dalign"
+ xFFLAGS=$xCFLAGS
+ ;;
+ ultrasparc2i*)
+ xCFLAGS="-fast -xO5 -xtarget=ultra2i -fsimple=2 -fnonstd -dalign"
+ xFFLAGS=$xCFLAGS
+ ;;
+ ultrasparc2*)
+ xCFLAGS="-fast -xO5 -xtarget=ultra2 -fsimple=2 -fnonstd -dalign"
+ xFFLAGS=$xCFLAGS
+ ;;
+ ultrasparc*)
+ xCFLAGS="-fast -xO5 -xtarget=ultra -fsimple=2 -fnonstd -dalign"
+ xFFLAGS=$xCFLAGS
+ ;;
+ *)
+ xCFLAGS="-native -fast -xO5 -fsimple=2 -fnonstd -dalign"
+ xFFLAGS=$xCFLAGS
+ ;;
esac
- else
- lt_cv_deplibs_check_method=pass_all
- fi
- ;;
-
-gnu*)
- lt_cv_deplibs_check_method=pass_all
- ;;
-
-hpux10.20*|hpux11*)
- lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
- lt_cv_file_magic_cmd=/usr/bin/file
- lt_cv_file_magic_test_file=/usr/lib/libc.sl
- ;;
+ ;;
-irix5* | irix6*)
- case $host_os in
- irix5*)
- # this will be overridden with pass_all, but let us keep it just in case
- lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
+ *-hpux*)
+ xCFLAGS="-Ae +O3 +Oall"
+ xFFLAGS=$xCFLAGS
+ # If you haven't noticed, we don't like hp very much...
+ # but perhaps that will change if they make something nice out of ia64.
;;
- *)
- case $LD in
- *-32|*"-32 ") libmagic=32-bit;;
- *-n32|*"-n32 ") libmagic=N32;;
- *-64|*"-64 ") libmagic=64-bit;;
- *) libmagic=never-match;;
+
+ rs6000*-aix*)
+ # dont use inter-procedure analysis for the innerloops - they take
+ # forever to compile with it, and it doesnt help at all.
+ case "${gmxcpu}" in
+ power4*)
+ xCFLAGS="-O3 -qarch=pwr4 -qtune=pwr4 -qlanglvl=ansi -qmaxmem=16384"
+ xFFLAGS="-O3 -Q -qarch=pwr4 -qtune=pwr4 -qmaxmem=16384 -qhot -qnoipa"
+ ;;
+ power3*)
+ xCFLAGS="-O3 -qarch=pwr3 -qtune=pwr3 -qlanglvl=ansi -qmaxmem=16384"
+ xFFLAGS="-O3 -Q -qarch=pwr3 -qtune=pwr3 -qmaxmem=16384 -qhot -qnoipa"
+ ;;
+ power2*)
+ xCFLAGS="-O3 -qarch=pwr2 -qtune=pwr2 -qlanglvl=ansi -qmaxmem=16384"
+ xFFLAGS="-O3 -Q -qarch=pwr2 -qtune=pwr2 -qmaxmem=16384 -qhot -qnoipa"
+ ;;
+ power)
+ xCFLAGS="-O3 -qarch=pwr -qtune=pwr -qlanglvl=ansi -qmaxmem=16384"
+ xFFLAGS="-O3 -Q -qarch=pwr -qtune=pwr -qmaxmem=16384 -qhot -qnoipa"
+ ;;
+ *)
+ # I don't think people are using anything older than power2, so we tune for
+ # pwr, but dont set the arch since it is nice to have common binaries
+ # that run also on powerpc.
+ xCFLAGS="-O3 -qlanglvl=ansi -qtune=pwr -qmaxmem=16384"
+ xFFLAGS="-O3 -Q -qtune=pwr -qmaxmem=16384 -qhot"
+ ;;
esac
- # this will be overridden with pass_all, but let us keep it just in case
- lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
;;
- esac
- lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
- lt_cv_deplibs_check_method=pass_all
- ;;
-
-# This must be Linux ELF.
-linux-gnu*)
- case $host_cpu in
- alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
- lt_cv_deplibs_check_method=pass_all ;;
- *)
- # glibc up to 2.1.1 does not perform some relocations on ARM
- lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
- esac
- lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
- ;;
-
-netbsd*)
- if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
- lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
- else
- lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
- fi
- ;;
-
-newsos6)
- lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
- lt_cv_file_magic_cmd=/usr/bin/file
- lt_cv_file_magic_test_file=/usr/lib/libnls.so
- ;;
-osf3* | osf4* | osf5*)
- # this will be overridden with pass_all, but let us keep it just in case
- lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
- lt_cv_file_magic_test_file=/shlib/libc.so
- lt_cv_deplibs_check_method=pass_all
- ;;
+ powerpc*-aix*)
+ case "${gmxcpu}" in
+ ppc604)
+ xCFLAGS="-O3 -qarch=604 -qtune=604 -qlanglvl=ansi -qmaxmem=16384"
+ xFFLAGS="-O3 -Q -qarch=604 -qtune=604 -qmaxmem=16384 -qhot"
+ ;;
+ ppc603)
+ xCFLAGS="-O3 -qarch=603 -qtune=603 -qlanglvl=ansi -qmaxmem=16384"
+ xFFLAGS="-O3 -Q -qarch=603 -qtune=603 -qmaxmem=16384 -qhot"
+ ;;
+ rs64a)
+ xCFLAGS="-O3 -qarch=rs64a -qtune=rs64a -qlanglvl=ansi -qmaxmem=16384"
+ xFFLAGS="-O3 -Q -qarch=rs64a -qtune=rs64a -qmaxmem=16384 -qhot"
+ ;;
+ rs64b)
+ xCFLAGS="-O3 -qarch=rs64b -qtune=rs64b -qlanglvl=ansi -qmaxmem=16384"
+ xFFLAGS="-O3 -Q -qarch=rs64b -qtune=rs64b -qmaxmem=16384 -qhot"
+ ;;
+ rs64c)
+ xCFLAGS="-O3 -qarch=rs64c -qtune=rs64c -qlanglvl=ansi -qmaxmem=16384"
+ xFFLAGS="-O3 -Q -qarch=rs64c -qtune=rs64c -qmaxmem=16384 -qhot"
+ ;;
+ *)
+ xCFLAGS="-O3 -qlanglvl=ansi -qmaxmem=16384"
+ xFFLAGS="-O3 -Q -qmaxmem=16384 -qhot"
+ ;;
+ esac
+ ;;
-sco3.2v5*)
- lt_cv_deplibs_check_method=pass_all
- ;;
+ mips*-irix*)
+ xCFLAGS="-O3 -OPT:IEEE_arithmetic=3 -OPT:rsqrt=ON -SWP:loop_overhead -INLINE:=ON -LNO:opt=1 -LNO:ou_further=3 -OPT:Olimit=0:roundoff=3:alias=typed -fullwarn -woff 1174 -D__INLINE_INTRINSICS"
+ xFFLAGS="-O3 -OPT:IEEE_arithmetic=3 -OPT:rsqrt=ON -SWP:loop_overhead -INLINE:=ON -LNO:opt=1 -LNO:ou_further=3 -OPT:Olimit=0:roundoff=3:alias=typed -OPT:cray_ivdep=TRUE"
-solaris*)
- lt_cv_deplibs_check_method=pass_all
- lt_cv_file_magic_test_file=/lib/libc.so
- ;;
+ if $CC -version | grep "Version 7.1" > /dev/null 2>&1; then
+ xCFLAGS="$xCFLAGS -GCM:aggressive_speculation -GCM:array_speculation"
+ xFFLAGS="$xFFLAGS -GCM:aggressive_speculation -GCM:array_speculation"
+ fi
-sysv5uw[78]* | sysv4*uw2*)
- lt_cv_deplibs_check_method=pass_all
- ;;
+ if $CC -version | grep "Version 7.3" > /dev/null 2>&1; then
+ xCFLAGS="$xCFLAGS -SWP:heur=fdms,nhms,fdnms"
+ xFFLAGS="$xFFLAGS -SWP:heur=fdms,nhms,fdnms"
+ fi
-sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
- case $host_vendor in
- ncr)
- lt_cv_deplibs_check_method=pass_all
- ;;
- motorola)
- lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
+ case "${gmxcpu}" in
+ r12000*)
+ xCFLAGS="-n32 -r12000 -mips4 $xCFLAGS"
+ xFFLAGS="-n32 -r12000 -mips4 $xFFLAGS"
+ xLDFLAGS="-n32 -r12000 -mips4"
+ ;;
+ r10000*)
+ xCFLAGS="-n32 -r10000 -mips4 $xCFLAGS"
+ xFFLAGS="-n32 -r10000 -mips4 $xFFLAGS"
+ xLDFLAGS="-n32 -r10000 -mips4"
+ ;;
+ r8000*)
+ xCFLAGS="-n32 -r8000 -mips4 $xCFLAGS"
+ xFFLAGS="-n32 -r8000 -mips4 $xFFLAGS"
+ xLDFLAGS="-n32 -r8000 -mips4"
+ ;;
+ r5000*)
+ xCFLAGS="-n32 -r5000 -mips4 $xCFLAGS"
+ xFFLAGS="-n32 -r5000 -mips4 $xFFLAGS"
+ xLDFLAGS="-n32 -r5000 -mips4"
+ ;;
+ *)
+ xCFLAGS="-n32 $xCFLAGS"
+ xFFLAGS="-n32 $xFFLAGS"
+ xLDFLAGS="-n32"
+ ;;
+ esac
;;
- esac
- ;;
-esac
-
-fi
-
-echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
-file_magic_cmd=$lt_cv_file_magic_cmd
-deplibs_check_method=$lt_cv_deplibs_check_method
-echo $ac_n "checking for object suffix""... $ac_c" 1>&6
-echo "configure:2827: checking for object suffix" >&5
-if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- rm -f conftest*
-echo 'int i = 1;' > conftest.$ac_ext
-if { (eval echo configure:2833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- for ac_file in conftest.*; do
- case $ac_file in
- *.c) ;;
- *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
+ alpha*-osf*)
+ case "${host_cpu}" in
+ alphaev*)
+ # extract the processor from cpu type (e.g. alphaev56 -> ev56)
+ evtype=`echo ${host_cpu} | sed 's/alpha//'`
+ xCFLAGS="-O5 -arch $evtype -tune $evtype -fast -unroll 2 -fp_reorder"
+ xFFLAGS="$xCFLAGS -assume noaccuracy_sensitive"
+ xLDFLAGS="-O4"
+ ;;
+ *)
+ xCFLAGS="-O5 -arch host -tune host -fast -unroll 2 -fp_reorder"
+ xFFLAGS="$xCFLAGS -assume noaccuracy_sensitive"
+ xLDFLAGS="-O4"
+ ;;
esac
- done
-else
- { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
-fi
-rm -f conftest*
-fi
-
-echo "$ac_t""$ac_cv_objext" 1>&6
-OBJEXT=$ac_cv_objext
-ac_objext=$ac_cv_objext
-
-
+ ;;
-echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
-echo "configure:2853: checking for executable suffix" >&5
-if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
+ alpha*-linux*)
+ case "${host_cpu}" in
+ alphaev*)
+ # extract the processor from cpu type (e.g. alphaev56 -> ev56)
+ evtype=`echo ${host_cpu} | sed 's/alpha//'`
+ tmpCFLAGS="-O5 -arch $evtype -tune $evtype -fast -unroll 2 -fp_reorder"
+ tmpFFLAGS="$tmpCFLAGS -assume noaccuracy_sensitive"
+ tmpLDFLAGS="-O4"
+ ;;
+ *)
+ tmpCFLAGS="-O5 -arch host -tune host -fast -unroll 2 -fp_reorder"
+ tmpFFLAGS="$tmpCFLAGS -assume noaccuracy_sensitive"
+ tmpLDFLAGS="-O4"
+ ;;
+ esac
+ if $CC -V 2> /dev/null | grep Compaq > /dev/null 2>&1; then
+ xCFLAGS="$tmpCFLAGS"
+ cc_vendor="Compaq"
+ fi
+ if test "$enable_fortran" = "yes"; then
+ if $F77 -V 2> /dev/null | grep Compaq > /dev/null 2>&1; then
+ xFFLAGS="$tmpFFLAGS"
+ fi
+ fi
+ ;;
+
+ *-*)
+ # most of these systems (e.g. linux, FreeBSD) use gcc which is treated
+ # further down, but we can at least check if the Portland compilers are used:
+ if $CC -V 2> /dev/null | grep Portland > /dev/null 2>&1; then
+ case "${host_cpu}" in
+ i586)
+ pgiopt="-tp p5"
+ ;;
+ i686)
+ pgiopt="-tp p6"
+ ;;
+ esac
+ xCFLAGS="$pgiopt -fast -Minfo=loop -pc 32"
+ fi
+ if test "$enable_fortran" = "yes"; then
+ if $F77 -V 2> /dev/null | grep Portland > /dev/null 2>&1; then
+ xFFLAGS="$xCFLAGS -Mneginfo=loop"
+ fi
+ fi
+ ;;
+esac
+# Phew, end of all those operating systems and processors!
+
+# use default flags for gcc/g77 on all systems
+if test $ac_cv_prog_gcc = yes; then
+ xCFLAGS="-O6 -fomit-frame-pointer -finline-functions -funroll-all-loops -Wall -Wno-unused"
+ # -malign-double for x86 systems
+
+
+echo $ac_n "checking whether $CC accepts -malign-double""... $ac_c" 1>&6
+echo "configure:2767: checking whether $CC accepts -malign-double" >&5
+if eval "test \"`echo '$''{'ac_align_double'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
- ac_cv_exeext=.exe
+ echo 'void f(){}' > conftest.c
+if test -z "`$CC -malign-double -c conftest.c 2>&1`"; then
+ ac_align_double=yes
else
- rm -f conftest*
- echo 'int main () { return 0; }' > conftest.$ac_ext
- ac_cv_exeext=
- if { (eval echo configure:2863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
- for file in conftest.*; do
- case $file in
- *.c | *.o | *.obj) ;;
- *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
- esac
- done
- else
- { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
- fi
- rm -f conftest*
- test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
-fi
+ ac_align_double=no
fi
+rm -f conftest*
-EXEEXT=""
-test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
-echo "$ac_t""${ac_cv_exeext}" 1>&6
-ac_exeext=$EXEEXT
+fi
-if test $host != $build; then
- ac_tool_prefix=${host_alias}-
+echo "$ac_t""$ac_align_double" 1>&6
+if test "$ac_align_double" = yes; then
+ :
+ xCFLAGS="$xCFLAGS -malign-double"
else
- ac_tool_prefix=
+ :
+
fi
-# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
+fi
+
+if test $enable_fortran = yes; then
+ if test $ac_cv_prog_g77 = yes; then
+ xFFLAGS="-O3 -ffast-math -fomit-frame-pointer -finline-functions -funroll-all-loops -Wall -Wno-unused"
+ # -malign-double for f77 on x86 systems - haven't checked that this works yet.
+ #ACX_CHECK_F77_FLAGS(-malign-double,align_double,xFFLAGS="$xFFLAGS -malign-double")
+ fi
+fi
-# Only perform the check for file, if the check method requires it
-case $deplibs_check_method in
-file_magic*)
- if test "$file_magic_cmd" = '$MAGIC_CMD'; then
- echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
-echo "configure:2896: checking for ${ac_tool_prefix}file" >&5
-if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
+CPU_FLAGS=""
+
+if test "$GCC" = "yes"; then
+ ASFLAGS="$(ASFLAGS) -x assembler-with-cpp"
+ # try to guess correct CPU flags, at least for linux
+ case "${host_cpu}" in
+ # i586/i686 cpu flags don't improve speed, thus no need to use them.
+ # don't check f77 separately - we assume f77 and gcc are similar
+
+ powerpc*)
+ cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
+ is60x=`echo $cputype | egrep "^600-9e?$"`
+ if test -n "$is60x"; then
+
+
+echo $ac_n "checking whether $CC accepts -mcpu=$cputype""... $ac_c" 1>&6
+echo "configure:2816: checking whether $CC accepts -mcpu=$cputype" >&5
+if eval "test \"`echo '$''{'ac_m_cpu_60x'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- case $MAGIC_CMD in
- /*)
- lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
- ;;
- ?:/*)
- lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
- ;;
- *)
- ac_save_MAGIC_CMD="$MAGIC_CMD"
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="/usr/bin:$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/${ac_tool_prefix}file; then
- lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
- if test -n "$file_magic_test_file"; then
- case $deplibs_check_method in
- "file_magic "*)
- file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
- MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
- if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
- egrep "$file_magic_regex" > /dev/null; then
- :
- else
- cat <<EOF 1>&2
-
-*** Warning: the command libtool uses to detect shared libraries,
-*** $file_magic_cmd, produces output that libtool cannot recognize.
-*** The result is that libtool may fail to recognize shared libraries
-*** as such. This will affect the creation of libtool libraries that
-*** depend on shared libraries, but programs linked with such libtool
-*** libraries will work regardless of this problem. Nevertheless, you
-*** may want to report the problem to your system manager and/or to
-*** bug-libtool@gnu.org
+ echo 'void f(){}' > conftest.c
+if test -z "`$CC -mcpu=$cputype -c conftest.c 2>&1`"; then
+ ac_m_cpu_60x=yes
+else
+ ac_m_cpu_60x=no
+fi
+rm -f conftest*
-EOF
- fi ;;
- esac
- fi
- break
- fi
- done
- IFS="$ac_save_ifs"
- MAGIC_CMD="$ac_save_MAGIC_CMD"
- ;;
-esac
fi
-MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
-if test -n "$MAGIC_CMD"; then
- echo "$ac_t""$MAGIC_CMD" 1>&6
+echo "$ac_t""$ac_m_cpu_60x" 1>&6
+if test "$ac_m_cpu_60x" = yes; then
+ :
+ CPU_FLAGS=-mcpu=$cputype
else
- echo "$ac_t""no" 1>&6
+ :
+
fi
-if test -z "$lt_cv_path_MAGIC_CMD"; then
- if test -n "$ac_tool_prefix"; then
- echo $ac_n "checking for file""... $ac_c" 1>&6
-echo "configure:2958: checking for file" >&5
-if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
+ elif test "$cputype" = 750; then
+
+
+echo $ac_n "checking whether $CC accepts -mcpu=750""... $ac_c" 1>&6
+echo "configure:2843: checking whether $CC accepts -mcpu=750" >&5
+if eval "test \"`echo '$''{'ac_m_cpu_750'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- case $MAGIC_CMD in
- /*)
- lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
- ;;
- ?:/*)
- lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
- ;;
- *)
- ac_save_MAGIC_CMD="$MAGIC_CMD"
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="/usr/bin:$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/file; then
- lt_cv_path_MAGIC_CMD="$ac_dir/file"
- if test -n "$file_magic_test_file"; then
- case $deplibs_check_method in
- "file_magic "*)
- file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
- MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
- if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
- egrep "$file_magic_regex" > /dev/null; then
- :
- else
- cat <<EOF 1>&2
-
-*** Warning: the command libtool uses to detect shared libraries,
-*** $file_magic_cmd, produces output that libtool cannot recognize.
-*** The result is that libtool may fail to recognize shared libraries
-*** as such. This will affect the creation of libtool libraries that
-*** depend on shared libraries, but programs linked with such libtool
-*** libraries will work regardless of this problem. Nevertheless, you
-*** may want to report the problem to your system manager and/or to
-*** bug-libtool@gnu.org
-
-EOF
- fi ;;
- esac
- fi
- break
- fi
- done
- IFS="$ac_save_ifs"
- MAGIC_CMD="$ac_save_MAGIC_CMD"
- ;;
-esac
+ echo 'void f(){}' > conftest.c
+if test -z "`$CC -mcpu=750 -c conftest.c 2>&1`"; then
+ ac_m_cpu_750=yes
+else
+ ac_m_cpu_750=no
fi
+rm -f conftest*
-MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
-if test -n "$MAGIC_CMD"; then
- echo "$ac_t""$MAGIC_CMD" 1>&6
-else
- echo "$ac_t""no" 1>&6
fi
- else
- MAGIC_CMD=:
- fi
+echo "$ac_t""$ac_m_cpu_750" 1>&6
+if test "$ac_m_cpu_750" = yes; then
+ :
+ CPU_FLAGS=-mcpu=750
+else
+ :
+
fi
- fi
- ;;
-esac
+ fi
+ if test -z "$CPU_FLAGS"; then
+
-# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
-set dummy ${ac_tool_prefix}ranlib; ac_word=$2
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3029: checking for $ac_word" >&5
-if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
+echo $ac_n "checking whether $CC accepts -mcpu=powerpc""... $ac_c" 1>&6
+echo "configure:2871: checking whether $CC accepts -mcpu=powerpc" >&5
+if eval "test \"`echo '$''{'ac_m_cpu_powerpc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- if test -n "$RANLIB"; then
- ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
+ echo 'void f(){}' > conftest.c
+if test -z "`$CC -mcpu=powerpc -c conftest.c 2>&1`"; then
+ ac_m_cpu_powerpc=yes
else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
- break
- fi
- done
- IFS="$ac_save_ifs"
+ ac_m_cpu_powerpc=no
fi
+rm -f conftest*
+
fi
-RANLIB="$ac_cv_prog_RANLIB"
-if test -n "$RANLIB"; then
- echo "$ac_t""$RANLIB" 1>&6
+
+echo "$ac_t""$ac_m_cpu_powerpc" 1>&6
+if test "$ac_m_cpu_powerpc" = yes; then
+ :
+ CPU_FLAGS=-mcpu=powerpc
else
- echo "$ac_t""no" 1>&6
+ :
+
fi
+ fi
+ if test -z "$CPU_FLAGS"; then
+
-if test -z "$ac_cv_prog_RANLIB"; then
-if test -n "$ac_tool_prefix"; then
- # Extract the first word of "ranlib", so it can be a program name with args.
-set dummy ranlib; ac_word=$2
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3061: checking for $ac_word" >&5
-if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
+echo $ac_n "checking whether $CC accepts -mpowerpc""... $ac_c" 1>&6
+echo "configure:2899: checking whether $CC accepts -mpowerpc" >&5
+if eval "test \"`echo '$''{'ac_m_powerpc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- if test -n "$RANLIB"; then
- ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
+ echo 'void f(){}' > conftest.c
+if test -z "`$CC -mpowerpc -c conftest.c 2>&1`"; then
+ ac_m_powerpc=yes
else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_RANLIB="ranlib"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
-fi
+ ac_m_powerpc=no
fi
-RANLIB="$ac_cv_prog_RANLIB"
-if test -n "$RANLIB"; then
- echo "$ac_t""$RANLIB" 1>&6
-else
- echo "$ac_t""no" 1>&6
+rm -f conftest*
+
fi
+echo "$ac_t""$ac_m_powerpc" 1>&6
+if test "$ac_m_powerpc" = yes; then
+ :
+ CPU_FLAGS=-mpowerpc
else
- RANLIB=":"
-fi
+ :
+
fi
-# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
-set dummy ${ac_tool_prefix}strip; ac_word=$2
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3096: checking for $ac_word" >&5
-if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
+ fi
+ esac
else
- if test -n "$STRIP"; then
- ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
+
+
+if false; then
+ GNU_CC_TRUE=
+ GNU_CC_FALSE='#'
else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_STRIP="${ac_tool_prefix}strip"
- break
- fi
- done
- IFS="$ac_save_ifs"
+ GNU_CC_TRUE='#'
+ GNU_CC_FALSE=
fi
fi
-STRIP="$ac_cv_prog_STRIP"
-if test -n "$STRIP"; then
- echo "$ac_t""$STRIP" 1>&6
-else
- echo "$ac_t""no" 1>&6
+
+if test -n "$CPU_FLAGS"; then
+ xCFLAGS="$xCFLAGS $CPU_FLAGS"
+ xFFLAGS="$xFFLAGS $CPU_FLAGS"
fi
+# Now check if the user provided anything special for C or fortran...
+# Not nice to have checked everything then, but otherwise we would have
+# to use entirely separate checks for C and fortran flags, doubling the code.
+if test "$ac_test_CFLAGS" != "set"; then
+ CFLAGS="$xCFLAGS"
+ # Use the extra link optimization flags on e.g. irix only when
+ # we are using our own C compiler flags
+ LDFLAGS="$LDFLAGS $xLDFLAGS"
+
+ if test -z "$CFLAGS"; then
+ echo "*******************************************************************"
+ echo "* WARNING: No special optimization settings found for the C *"
+ echo "* compiler. Use make CFLAGS=..., or edit the top level Makefile. *"
+ echo "* Reverting to the default setting CFLAGS=-O3. (mail us about it!)*"
+ echo "*******************************************************************"
+ CFLAGS="-O3"
+ fi
+
-if test -z "$ac_cv_prog_STRIP"; then
-if test -n "$ac_tool_prefix"; then
- # Extract the first word of "strip", so it can be a program name with args.
-set dummy strip; ac_word=$2
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3128: checking for $ac_word" >&5
-if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
+echo $ac_n "checking whether $CC accepts ${CFLAGS}""... $ac_c" 1>&6
+echo "configure:2961: checking whether $CC accepts ${CFLAGS}" >&5
+if eval "test \"`echo '$''{'ac_guessed_cflags'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- if test -n "$STRIP"; then
- ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
+ echo 'void f(){}' > conftest.c
+if test -z "`$CC ${CFLAGS} -c conftest.c 2>&1`"; then
+ ac_guessed_cflags=yes
else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_STRIP="strip"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
+ ac_guessed_cflags=no
fi
+rm -f conftest*
+
fi
-STRIP="$ac_cv_prog_STRIP"
-if test -n "$STRIP"; then
- echo "$ac_t""$STRIP" 1>&6
+
+echo "$ac_t""$ac_guessed_cflags" 1>&6
+if test "$ac_guessed_cflags" = yes; then
+ :
+
else
- echo "$ac_t""no" 1>&6
+ :
+
+ echo "*******************************************************************"
+ echo "* Sorry, these optimization settings don't seem to work for *"
+ echo "* your C compiler. Use make CFLAGS=..., or edit the top Makefile. *"
+ echo "*******************************************************************"
+ CFLAGS=""
+
fi
else
- STRIP=":"
-fi
+ echo "******************************************"
+ echo "* Using CFLAGS from environment variable *"
+ echo "******************************************"
fi
+if test "$enable_fortran" = "yes"; then
+ if test "$ac_test_FFLAGS" != "set"; then
+ FFLAGS="$xFFLAGS"
+ if test -z "$FFLAGS"; then
+ echo "*******************************************************************"
+ echo "* WARNING: No special optimization settings found for the fortran *"
+ echo "* compiler. Use make FFLAGS=..., or edit the top level Makefile. *"
+ echo "* Reverting to the default setting FFLAGS=-O3. (mail us about it!)*"
+ echo "*******************************************************************"
+ FFLAGS="-O3"
+ fi
+
-# Check for any special flags to pass to ltconfig.
-libtool_flags="--cache-file=$cache_file"
-test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
-test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
-test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
-test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
-test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
-
-
-# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
-if test "${enable_libtool_lock+set}" = set; then
- enableval="$enable_libtool_lock"
- :
+echo $ac_n "checking whether $F77 accepts ${FFLAGS}""... $ac_c" 1>&6
+echo "configure:3010: checking whether $F77 accepts ${FFLAGS}" >&5
+if eval "test \"`echo '$''{'ac_guessed_fflags'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ cat > conftest.f << EOF
+ subroutine f
+ return
+ end
+EOF
+if test -z "`$F77 ${FFLAGS} -c conftest.f `"; then
+ ac_guessed_fflags=yes
+else
+ ac_guessed_fflags=no
fi
+rm -f conftest*
-test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
-test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
+fi
-# Check whether --with-pic or --without-pic was given.
-if test "${with_pic+set}" = set; then
- withval="$with_pic"
- pic_mode="$withval"
+echo "$ac_t""$ac_guessed_fflags" 1>&6
+if test "$ac_guessed_fflags" = yes; then
+ :
+
else
- pic_mode=default
+ :
+
+ echo "*******************************************************************"
+ echo "* Sorry, these optimization settings don't seem to work for *"
+ echo "* your f77 compiler. Use make FFLAGS=.., or edit the top Makefile.*"
+ echo "*******************************************************************"
+ FFLAGS=""
+
fi
-test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
-test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
+ else
+ echo "******************************************"
+ echo "* Using FFLAGS from environment variable *"
+ echo "******************************************"
+ fi
+fi
+
-# Some flags need to be propagated to the compiler or linker for good
-# libtool support.
-case $host in
-*-*-irix6*)
- # Find out which ABI we are using.
- echo '#line 3195 "configure"' > conftest.$ac_ext
- if { (eval echo configure:3196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- case `/usr/bin/file conftest.$ac_objext` in
- *32-bit*)
- LD="${LD-ld} -32"
- ;;
- *N32*)
- LD="${LD-ld} -n32"
- ;;
- *64-bit*)
- LD="${LD-ld} -64"
- ;;
- esac
+
+
+# Check x86 asm prerequisites and the capabilities of as
+if test "$enable_x86_asm" = "yes"; then
+ if test "$enable_float" = "no"; then
+ echo "configure: warning: x86 assembly loops can only be used in single precision - disabling" 1>&2
+ enable_x86_asm=no
+ else
+ echo $ac_n "checking whether as fully supports intel syntax""... $ac_c" 1>&6
+echo "configure:3060: checking whether as fully supports intel syntax" >&5
+cat > conftest.s << EOF
+.intel_syntax noprefix
+checkasm:
+ emms
+ pswapd mm0,mm0
+ movups xmm0,checkasm
+ emms
+ ret
+EOF
+ if { ac_try='$CC -c conftest.s'; { (eval echo configure:3070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
+ echo "$ac_t""yes" 1>&6
+ else
+ echo "$ac_t""no" 1>&6
+ { echo "configure: error: Upgrade to a more recent binutils, download the as executable
+ from www.gromacs.org, or disable assembly loops." 1>&2; exit 1; }
+ fi
+ GMXLIB_LIBOBJS="${GMXLIB_LIBOBJS} x86_cpuid.lo x86_sse.lo x86_3dnow.lo"
fi
- rm -rf conftest*
- ;;
+fi
-*-*-sco3.2v5*)
- # On SCO OpenServer 5, we need -belf to get full-featured binaries.
- SAVE_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS -belf"
- echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
-echo "configure:3217: checking whether the C compiler needs -belf" >&5
-if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
+# Extract the first word of "ident", so it can be a program name with args.
+set dummy ident; ac_word=$2
+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+echo "configure:3084: checking for $ac_word" >&5
+if eval "test \"`echo '$''{'ac_cv_path_IDENT'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
-
- ac_ext=c
-# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
-ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
-cross_compiling=$ac_cv_prog_cc_cross
+ case "$IDENT" in
+ /*)
+ ac_cv_path_IDENT="$IDENT" # Let the user override the test with a path.
+ ;;
+ ?:/*)
+ ac_cv_path_IDENT="$IDENT" # Let the user override the test with a dos path.
+ ;;
+ *)
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ ac_dummy="$PATH"
+ for ac_dir in $ac_dummy; do
+ test -z "$ac_dir" && ac_dir=.
+ if test -f $ac_dir/$ac_word; then
+ ac_cv_path_IDENT="$ac_dir/$ac_word"
+ break
+ fi
+ done
+ IFS="$ac_save_ifs"
+ test -z "$ac_cv_path_IDENT" && ac_cv_path_IDENT="no"
+ ;;
+esac
+fi
+IDENT="$ac_cv_path_IDENT"
+if test -n "$IDENT"; then
+ echo "$ac_t""$IDENT" 1>&6
+else
+ echo "$ac_t""no" 1>&6
+fi
- cat > conftest.$ac_ext <<EOF
-#line 3230 "configure"
+if test "$IDENT" != "no"; then
+ # seems as if we have the ident program, but does the
+ # compiler support it?
+ echo $ac_n "checking whether the compiler supports ident""... $ac_c" 1>&6
+echo "configure:3121: checking whether the compiler supports ident" >&5
+ cat > conftest.$ac_ext <<EOF
+#line 3123 "configure"
#include "confdefs.h"
-
-int main() {
-
-; return 0; }
+#ident "@(#) file.h 1.1 12/16/92"
EOF
-if { (eval echo configure:3237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+{ (eval echo configure:3128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+if test -z "$ac_err"; then
rm -rf conftest*
- lt_cv_cc_needs_belf=yes
+
+ echo "$ac_t""yes" 1>&6
+ cat >> confdefs.h <<\EOF
+#define HAVE_IDENT
+EOF
+
else
+ echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
- lt_cv_cc_needs_belf=no
+ echo "$ac_t""no" 1>&6
fi
rm -f conftest*
- ac_ext=c
-# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
-ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
-cross_compiling=$ac_cv_prog_cc_cross
-
fi
-echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
- if test x"$lt_cv_cc_needs_belf" != x"yes"; then
- # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
- CFLAGS="$SAVE_CFLAGS"
- fi
+# Check whether --enable-shared or --disable-shared was given.
+if test "${enable_shared+set}" = set; then
+ enableval="$enable_shared"
+ p=${PACKAGE-default}
+case $enableval in
+yes) enable_shared=yes ;;
+no) enable_shared=no ;;
+*)
+ enable_shared=no
+ # Look at the argument we got. We use all the common list separators.
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
+ for pkg in $enableval; do
+ if test "X$pkg" = "X$p"; then
+ enable_shared=yes
+ fi
+ done
+ IFS="$ac_save_ifs"
;;
-
-
esac
-
-
-# Save cache, so that ltconfig can load it
-cat > confcache <<\EOF
-# This file is a shell script that caches the results of configure
-# tests run on this system so they can be shared between configure
-# scripts and configure runs. It is not useful on other systems.
-# If it contains results you don't want to keep, you may remove or edit it.
-#
-# By default, configure uses ./config.cache as the cache file,
-# creating it if it does not exist already. You can give configure
-# the --cache-file=FILE option to use a different cache file; that is
-# what configure does when it calls configure scripts in
-# subdirectories, so they share the cache.
-# Giving --cache-file=/dev/null disables caching, for debugging configure.
-# config.status only pays attention to the cache file if you give it the
-# --recheck option to rerun configure.
-#
-EOF
-# The following way of writing the cache mishandles newlines in values,
-# but we know of no workaround that is simple, portable, and efficient.
-# So, don't put newlines in cache variables' values.
-# Ultrix sh set writes to stderr and can't be redirected directly,
-# and sets the high bit in the cache file unless we assign to the vars.
-(set) 2>&1 |
- case `(ac_space=' '; set | grep ac_space) 2>&1` in
- *ac_space=\ *)
- # `set' does not quote correctly, so add quotes (double-quote substitution
- # turns \\\\ into \\, and sed turns \\ into \).
- sed -n \
- -e "s/'/'\\\\''/g" \
- -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
- ;;
- *)
- # `set' quotes correctly as required by POSIX, so do not add quotes.
- sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
- ;;
- esac >> confcache
-if cmp -s $cache_file confcache; then
- :
else
- if test -w $cache_file; then
- echo "updating cache $cache_file"
- cat confcache > $cache_file
- else
- echo "not updating unwritable cache $cache_file"
- fi
+ enable_shared=yes
fi
-rm -f confcache
-
-
-# Actually configure libtool. ac_aux_dir is where install-sh is found.
-AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
-MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
-LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
-AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
-objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
-deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
-${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
-$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
-|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
-# Reload cache, that may have been modified by ltconfig
-if test -r "$cache_file"; then
- echo "loading cache $cache_file"
- . $cache_file
+# Check whether --enable-static or --disable-static was given.
+if test "${enable_static+set}" = set; then
+ enableval="$enable_static"
+ p=${PACKAGE-default}
+case $enableval in
+yes) enable_static=yes ;;
+no) enable_static=no ;;
+*)
+ enable_static=no
+ # Look at the argument we got. We use all the common list separators.
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
+ for pkg in $enableval; do
+ if test "X$pkg" = "X$p"; then
+ enable_static=yes
+ fi
+ done
+ IFS="$ac_save_ifs"
+ ;;
+esac
else
- echo "creating cache $cache_file"
- > $cache_file
+ enable_static=yes
fi
+# Check whether --enable-fast-install or --disable-fast-install was given.
+if test "${enable_fast_install+set}" = set; then
+ enableval="$enable_fast_install"
+ p=${PACKAGE-default}
+case $enableval in
+yes) enable_fast_install=yes ;;
+no) enable_fast_install=no ;;
+*)
+ enable_fast_install=no
+ # Look at the argument we got. We use all the common list separators.
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
+ for pkg in $enableval; do
+ if test "X$pkg" = "X$p"; then
+ enable_fast_install=yes
+ fi
+ done
+ IFS="$ac_save_ifs"
+ ;;
+esac
+else
+ enable_fast_install=yes
+fi
-# This can be used to rebuild libtool when needed
-LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
-
-# Always use our own libtool.
-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
-
-# Redirect the config.log output again, so that the ltconfig log is not
-# clobbered by the next message.
-exec 5>>./config.log
+echo $ac_n "checking build system type""... $ac_c" 1>&6
+echo "configure:3218: checking build system type" >&5
+build_alias=$build
+case "$build_alias" in
+NONE)
+ case $nonopt in
+ NONE) build_alias=$host_alias ;;
+ *) build_alias=$nonopt ;;
+ esac ;;
+esac
-LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-f77.sh"
-lt_save_CC="$CC"
-lt_save_CFLAGS="$CFLAGS"
-AR="$AR" LTCC="$CC" CC="$F77" F77="$F77" CFLAGS="$FFLAGS" CPPFLAGS="" \
-MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
-LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
-AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
-objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
-deplibs_check_method="$deplibs_check_method" \
-file_magic_cmd="$file_magic_cmd" \
-${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
---build="$build" --add-tag=F77 $ac_aux_dir/ltcf-f77.sh $host \
-|| { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
-CC="$lt_save_CC"
-CFLAGS="$lt_save_CFLAGS"
+build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
+build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
+build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
+build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
+echo "$ac_t""$build" 1>&6
-# Redirect the config.log output again, so that the ltconfig log is not
-# clobbered by the next message.
-exec 5>>./config.log
+# Check whether --with-gnu-ld or --without-gnu-ld was given.
+if test "${with_gnu_ld+set}" = set; then
+ withval="$with_gnu_ld"
+ test "$withval" = no || with_gnu_ld=yes
+else
+ with_gnu_ld=no
+fi
-
-
-
-
-
-
-for ac_func in strcasecmp
-do
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:3377: checking for $ac_func" >&5
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
+ac_prog=ld
+if test "$GCC" = yes; then
+ # Check if gcc -print-prog-name=ld gives a path.
+ echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
+echo "configure:3247: checking for ld used by GCC" >&5
+ case $host in
+ *-*-mingw*)
+ # gcc leaves a trailing carriage return which upsets mingw
+ ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
+ *)
+ ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
+ esac
+ case $ac_prog in
+ # Accept absolute paths.
+ [\\/]* | [A-Za-z]:[\\/]*)
+ re_direlt='/[^/][^/]*/\.\./'
+ # Canonicalize the path of ld
+ ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
+ while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
+ ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
+ done
+ test -z "$LD" && LD="$ac_prog"
+ ;;
+ "")
+ # If it fails, then pretend we aren't using GCC.
+ ac_prog=ld
+ ;;
+ *)
+ # If it is relative, then search for the first ld in PATH.
+ with_gnu_ld=unknown
+ ;;
+ esac
+elif test "$with_gnu_ld" = yes; then
+ echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
+echo "configure:3277: checking for GNU ld" >&5
+else
+ echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
+echo "configure:3280: checking for non-GNU ld" >&5
+fi
+if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- cat > conftest.$ac_ext <<EOF
-#line 3382 "configure"
-#include "confdefs.h"
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
-#include <assert.h>
-/* Override any gcc2 internal prototype to avoid an error. */
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char $ac_func();
-
-int main() {
-
-/* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
-choke me
-#else
-$ac_func();
-#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:3405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
+ if test -z "$LD"; then
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
+ for ac_dir in $PATH; do
+ test -z "$ac_dir" && ac_dir=.
+ if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
+ lt_cv_path_LD="$ac_dir/$ac_prog"
+ # Check to see if the program is GNU ld. I'd rather use --version,
+ # but apparently some GNU ld's only accept -v.
+ # Break only if it was the GNU/non-GNU ld that we prefer.
+ if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
+ test "$with_gnu_ld" != no && break
+ else
+ test "$with_gnu_ld" != yes && break
+ fi
+ fi
+ done
+ IFS="$ac_save_ifs"
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
+ lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
-rm -f conftest*
fi
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_func 1
-EOF
-
+LD="$lt_cv_path_LD"
+if test -n "$LD"; then
+ echo "$ac_t""$LD" 1>&6
else
echo "$ac_t""no" 1>&6
fi
-done
-
-for ac_func in strdup
-do
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:3432: checking for $ac_func" >&5
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
+test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
+echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
+echo "configure:3315: checking if the linker ($LD) is GNU ld" >&5
+if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- cat > conftest.$ac_ext <<EOF
-#line 3437 "configure"
-#include "confdefs.h"
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
-#include <assert.h>
-/* Override any gcc2 internal prototype to avoid an error. */
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char $ac_func();
+ # I'd rather use --version here, but apparently some GNU ld's only accept -v.
+if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
+ lt_cv_prog_gnu_ld=yes
+else
+ lt_cv_prog_gnu_ld=no
+fi
+fi
-int main() {
+echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
+with_gnu_ld=$lt_cv_prog_gnu_ld
-/* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
-choke me
-#else
-$ac_func();
-#endif
-; return 0; }
-EOF
-if { (eval echo configure:3460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
+echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
+echo "configure:3332: checking for $LD option to reload object files" >&5
+if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
+ lt_cv_ld_reload_flag='-r'
+fi
+
+echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
+reload_flag=$lt_cv_ld_reload_flag
+test -n "$reload_flag" && reload_flag=" $reload_flag"
+
+echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
+echo "configure:3344: checking for BSD-compatible nm" >&5
+if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ if test -n "$NM"; then
+ # Let the user override the test.
+ lt_cv_path_NM="$NM"
+else
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
+ for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
+ test -z "$ac_dir" && ac_dir=.
+ tmp_nm=$ac_dir/${ac_tool_prefix}nm
+ if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
+ # Check to see if the nm accepts a BSD-compat flag.
+ # Adding the `sed 1q' prevents false positives on HP-UX, which says:
+ # nm: unknown option "B" ignored
+ # Tru64's nm complains that /dev/null is an invalid object file
+ if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
+ lt_cv_path_NM="$tmp_nm -B"
+ break
+ elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
+ lt_cv_path_NM="$tmp_nm -p"
+ break
+ else
+ lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
+ continue # so that we can try to find one that supports BSD flags
+ fi
+ fi
+ done
+ IFS="$ac_save_ifs"
+ test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
fi
-rm -f conftest*
fi
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+NM="$lt_cv_path_NM"
+echo "$ac_t""$NM" 1>&6
+
+echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
+echo "configure:3382: checking whether ln -s works" >&5
+if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ rm -f conftestdata
+if ln -s X conftestdata 2>/dev/null
+then
+ rm -f conftestdata
+ ac_cv_prog_LN_S="ln -s"
+else
+ ac_cv_prog_LN_S=ln
+fi
+fi
+LN_S="$ac_cv_prog_LN_S"
+if test "$ac_cv_prog_LN_S" = "ln -s"; then
echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_func 1
-EOF
-
else
echo "$ac_t""no" 1>&6
fi
-done
+echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
+echo "configure:3403: checking how to recognise dependant libraries" >&5
+if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ lt_cv_file_magic_cmd='$MAGIC_CMD'
+lt_cv_file_magic_test_file=
+lt_cv_deplibs_check_method='unknown'
+# Need to set the preceding variable on all platforms that support
+# interlibrary dependencies.
+# 'none' -- dependencies not supported.
+# `unknown' -- same as none, but documents that we really don't know.
+# 'pass_all' -- all dependencies passed with no checks.
+# 'test_compile' -- check by making test program.
+# 'file_magic [regex]' -- check by looking for files in library path
+# which responds to the $file_magic_cmd with a given egrep regex.
+# If you have `file' or equivalent on your system and you're not sure
+# whether `pass_all' will *always* work, you probably want this one.
-# Try to detect the cpu - must be done before some lib searches
-if test "$enable_cpu_detection" = "yes"; then
-
+case $host_os in
+aix*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+beos*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
-#
-# Determine the exact cpu type on some common systems where it is
-# not visible from the host triplet.
-# (on e.g. intel and dec/tru64 the host type is enough)
+bsdi4*)
+ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
+ lt_cv_file_magic_cmd='/usr/bin/file -L'
+ lt_cv_file_magic_test_file=/shlib/libc.so
+ ;;
-case "${host_cpu}-${host_os}" in
+cygwin* | mingw* |pw32*)
+ lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
+ lt_cv_file_magic_cmd='$OBJDUMP -f'
+ ;;
-rs6000*-aix*)
- # we need to fool the combination of m4, sh and awk - thus the seemingly unnecessary n
- IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ n=1; print $n }'`
- if /usr/sbin/lsattr -EHl ${IBM_CPU_ID} | grep POWER4 >/dev/null 2>&1; then
- gmxcpu=power4
- elif /usr/sbin/lsattr -EHl ${IBM_CPU_ID} | grep POWER3 >/dev/null 2>&1; then
- gmxcpu=power3
- elif /usr/sbin/lsattr -EHl ${IBM_CPU_ID} | grep POWER2 >/dev/null 2>&1; then
- gmxcpu=power2
- else
- gmxcpu=""
- fi
+darwin* | rhapsody*)
+ lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
+ lt_cv_file_magic_cmd='/usr/bin/file -L'
+ case "$host_os" in
+ rhapsody* | darwin1.012)
+ lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
+ ;;
+ *) # Darwin 1.3 on
+ lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
+ ;;
+ esac
;;
-powerpc*-aix*)
- if /usr/sbin/lscfg -vp | grep PowerPC | grep 604 >/dev/null 2>&1; then
- gmxcpu=ppc604
- elif /usr/sbin/lscfg -vp | grep PowerPC | grep 603 >/dev/null 2>&1; then
- gmxcpu=ppc603
- elif /usr/sbin/lscfg -vp | grep PowerPC | grep rs64a >/dev/null 2>&1; then
- gmxcpu=rs64a
- elif /usr/sbin/lscfg -vp | grep PowerPC | grep rs64b >/dev/null 2>&1; then
- gmxcpu=rs64b
- elif /usr/sbin/lscfg -vp | grep PowerPC | grep rs64c >/dev/null 2>&1; then
- gmxcpu=rs64c
+freebsd* )
+ if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
+ case $host_cpu in
+ i*86 )
+ # Not sure whether the presence of OpenBSD here was a mistake.
+ # Let's accept both of them until this is cleared up.
+ lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
+ lt_cv_file_magic_cmd=/usr/bin/file
+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
+ ;;
+ esac
else
- gmxcpu=""
+ lt_cv_deplibs_check_method=pass_all
fi
;;
-mips*-irix*)
- if /sbin/hinv | grep CPU | grep R12000 >/dev/null 2>&1; then
- gmxcpu=r12000
- elif /sbin/hinv | grep CPU | grep R10000 >/dev/null 2>&1; then
- gmxcpu=r10000
- elif /sbin/hinv | grep CPU | grep R8000 >/dev/null 2>&1; then
- gmxcpu=r8000
- elif /sbin/hinv | grep CPU | grep R5000 >/dev/null 2>&1; then
- gmxcpu=r5000
- else
- gmxcpu=""
- fi
+gnu*)
+ lt_cv_deplibs_check_method=pass_all
;;
-sparc*-solaris*)
- if /usr/sbin/prtconf | grep UltraSPARC-III >/dev/null 2>&1; then
- gmxcpu=ultrasparc3
- elif /usr/sbin/prtconf | grep UltraSPARC-IIi >/dev/null 2>&1; then
- gmxcpu=ultrasparc2i
- elif /usr/sbin/prtconf | grep UltraSPARC-II >/dev/null 2>&1; then
- gmxcpu=ultrasparc2
- elif /usr/sbin/prtconf | grep UltraSPARC >/dev/null 2>&1; then
- gmxcpu=ultrasparc
+hpux10.20*|hpux11*)
+ lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
+ lt_cv_file_magic_cmd=/usr/bin/file
+ lt_cv_file_magic_test_file=/usr/lib/libc.sl
+ ;;
+
+irix5* | irix6*)
+ case $host_os in
+ irix5*)
+ # this will be overridden with pass_all, but let us keep it just in case
+ lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
+ ;;
+ *)
+ case $LD in
+ *-32|*"-32 ") libmagic=32-bit;;
+ *-n32|*"-n32 ") libmagic=N32;;
+ *-64|*"-64 ") libmagic=64-bit;;
+ *) libmagic=never-match;;
+ esac
+ # this will be overridden with pass_all, but let us keep it just in case
+ lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
+ ;;
+ esac
+ lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+# This must be Linux ELF.
+linux-gnu*)
+ case $host_cpu in
+ alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
+ lt_cv_deplibs_check_method=pass_all ;;
+ *)
+ # glibc up to 2.1.1 does not perform some relocations on ARM
+ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
+ esac
+ lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
+ ;;
+
+netbsd*)
+ if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
+ lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
else
- gmxcpu=""
+ lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
fi
;;
-*)
- gmxcpu=""
- ;;
-esac
+newsos6)
+ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
+ lt_cv_file_magic_cmd=/usr/bin/file
+ lt_cv_file_magic_test_file=/usr/lib/libnls.so
+ ;;
-else
- gmxcpu=""
-fi
+osf3* | osf4* | osf5*)
+ # this will be overridden with pass_all, but let us keep it just in case
+ lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
+ lt_cv_file_magic_test_file=/shlib/libc.so
+ lt_cv_deplibs_check_method=pass_all
+ ;;
-############################################################################
-# Checks for libraries.
-############################################################################
-echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
-echo "configure:3568: checking for sqrt in -lm" >&5
-ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- ac_save_LIBS="$LIBS"
-LIBS="-lm $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 3576 "configure"
-#include "confdefs.h"
-/* Override any gcc2 internal prototype to avoid an error. */
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char sqrt();
+sco3.2v5*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
-int main() {
-sqrt()
-; return 0; }
-EOF
-if { (eval echo configure:3587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
+solaris*)
+ lt_cv_deplibs_check_method=pass_all
+ lt_cv_file_magic_test_file=/lib/libc.so
+ ;;
-fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_lib 1
-EOF
+sysv5uw[78]* | sysv4*uw2*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
- LIBS="-lm $LIBS"
+sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+ case $host_vendor in
+ ncr)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+ motorola)
+ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
+ ;;
+ esac
+ ;;
+esac
-else
- echo "$ac_t""no" 1>&6
-{ echo "configure: error: No math library found" 1>&2; exit 1; }
fi
+echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
+file_magic_cmd=$lt_cv_file_magic_cmd
+deplibs_check_method=$lt_cv_deplibs_check_method
-#####
-# IBM provides a MASS library with vectorized and optimized math stuff,
-# and an xlopt library which partly overlaps this. They must come before
-# libm in the link list, thus the test goes after m!
-if test "${host_vendor}" = "ibm"; then
- echo $ac_n "checking for main in -lxlopt""... $ac_c" 1>&6
-echo "configure:3622: checking for main in -lxlopt" >&5
-ac_lib_var=`echo xlopt'_'main | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+echo $ac_n "checking for object suffix""... $ac_c" 1>&6
+echo "configure:3567: checking for object suffix" >&5
+if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- ac_save_LIBS="$LIBS"
-LIBS="-lxlopt $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 3630 "configure"
-#include "confdefs.h"
-
-int main() {
-main()
-; return 0; }
-EOF
-if { (eval echo configure:3637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
+ rm -f conftest*
+echo 'int i = 1;' > conftest.$ac_ext
+if { (eval echo configure:3573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ for ac_file in conftest.*; do
+ case $ac_file in
+ *.c) ;;
+ *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
+ esac
+ done
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
+ { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
fi
rm -f conftest*
-LIBS="$ac_save_LIBS"
-
fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo xlopt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_lib 1
-EOF
- LIBS="-lxlopt $LIBS"
+echo "$ac_t""$ac_cv_objext" 1>&6
+OBJEXT=$ac_cv_objext
+ac_objext=$ac_cv_objext
-else
- echo "$ac_t""no" 1>&6
-fi
- echo $ac_n "checking for main in -lmass""... $ac_c" 1>&6
-echo "configure:3665: checking for main in -lmass" >&5
-ac_lib_var=`echo mass'_'main | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+
+echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
+echo "configure:3593: checking for executable suffix" >&5
+if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- ac_save_LIBS="$LIBS"
-LIBS="-lmass $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 3673 "configure"
-#include "confdefs.h"
-
-int main() {
-main()
-; return 0; }
-EOF
-if { (eval echo configure:3680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
+ if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
+ ac_cv_exeext=.exe
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
+ rm -f conftest*
+ echo 'int main () { return 0; }' > conftest.$ac_ext
+ ac_cv_exeext=
+ if { (eval echo configure:3603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
+ for file in conftest.*; do
+ case $file in
+ *.c | *.o | *.obj) ;;
+ *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
+ esac
+ done
+ else
+ { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
+ fi
+ rm -f conftest*
+ test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
-
fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo mass | sed -e 's/[^a-zA-Z0-9_]/_/g' \
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_lib 1
-EOF
- LIBS="-lmass $LIBS"
+EXEEXT=""
+test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
+echo "$ac_t""${ac_cv_exeext}" 1>&6
+ac_exeext=$EXEEXT
+if test $host != $build; then
+ ac_tool_prefix=${host_alias}-
else
- echo "$ac_t""no" 1>&6
+ ac_tool_prefix=
fi
-
- vectmass=no
- case "$gmxcpu" in
- power4*)
- echo $ac_n "checking for main in -lmassvp4""... $ac_c" 1>&6
-echo "configure:3711: checking for main in -lmassvp4" >&5
-ac_lib_var=`echo massvp4'_'main | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+
+# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
+
+# Only perform the check for file, if the check method requires it
+case $deplibs_check_method in
+file_magic*)
+ if test "$file_magic_cmd" = '$MAGIC_CMD'; then
+ echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
+echo "configure:3636: checking for ${ac_tool_prefix}file" >&5
+if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- ac_save_LIBS="$LIBS"
-LIBS="-lmassvp4 $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 3719 "configure"
-#include "confdefs.h"
+ case $MAGIC_CMD in
+ /*)
+ lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
+ ;;
+ ?:/*)
+ lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
+ ;;
+ *)
+ ac_save_MAGIC_CMD="$MAGIC_CMD"
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ ac_dummy="/usr/bin:$PATH"
+ for ac_dir in $ac_dummy; do
+ test -z "$ac_dir" && ac_dir=.
+ if test -f $ac_dir/${ac_tool_prefix}file; then
+ lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
+ if test -n "$file_magic_test_file"; then
+ case $deplibs_check_method in
+ "file_magic "*)
+ file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
+ MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
+ if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
+ egrep "$file_magic_regex" > /dev/null; then
+ :
+ else
+ cat <<EOF 1>&2
+
+*** Warning: the command libtool uses to detect shared libraries,
+*** $file_magic_cmd, produces output that libtool cannot recognize.
+*** The result is that libtool may fail to recognize shared libraries
+*** as such. This will affect the creation of libtool libraries that
+*** depend on shared libraries, but programs linked with such libtool
+*** libraries will work regardless of this problem. Nevertheless, you
+*** may want to report the problem to your system manager and/or to
+*** bug-libtool@gnu.org
-int main() {
-main()
-; return 0; }
EOF
-if { (eval echo configure:3726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
+ fi ;;
+ esac
+ fi
+ break
+ fi
+ done
+ IFS="$ac_save_ifs"
+ MAGIC_CMD="$ac_save_MAGIC_CMD"
+ ;;
+esac
fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
-fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- vectmass=yes LIBS="$LIBS -lmassvp4"
+MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
+if test -n "$MAGIC_CMD"; then
+ echo "$ac_t""$MAGIC_CMD" 1>&6
else
echo "$ac_t""no" 1>&6
fi
- ;;
- power3*)
- echo $ac_n "checking for main in -lmassvp3""... $ac_c" 1>&6
-echo "configure:3748: checking for main in -lmassvp3" >&5
-ac_lib_var=`echo massvp3'_'main | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+
+if test -z "$lt_cv_path_MAGIC_CMD"; then
+ if test -n "$ac_tool_prefix"; then
+ echo $ac_n "checking for file""... $ac_c" 1>&6
+echo "configure:3698: checking for file" >&5
+if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- ac_save_LIBS="$LIBS"
-LIBS="-lmassvp3 $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 3756 "configure"
-#include "confdefs.h"
+ case $MAGIC_CMD in
+ /*)
+ lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
+ ;;
+ ?:/*)
+ lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
+ ;;
+ *)
+ ac_save_MAGIC_CMD="$MAGIC_CMD"
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ ac_dummy="/usr/bin:$PATH"
+ for ac_dir in $ac_dummy; do
+ test -z "$ac_dir" && ac_dir=.
+ if test -f $ac_dir/file; then
+ lt_cv_path_MAGIC_CMD="$ac_dir/file"
+ if test -n "$file_magic_test_file"; then
+ case $deplibs_check_method in
+ "file_magic "*)
+ file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
+ MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
+ if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
+ egrep "$file_magic_regex" > /dev/null; then
+ :
+ else
+ cat <<EOF 1>&2
+
+*** Warning: the command libtool uses to detect shared libraries,
+*** $file_magic_cmd, produces output that libtool cannot recognize.
+*** The result is that libtool may fail to recognize shared libraries
+*** as such. This will affect the creation of libtool libraries that
+*** depend on shared libraries, but programs linked with such libtool
+*** libraries will work regardless of this problem. Nevertheless, you
+*** may want to report the problem to your system manager and/or to
+*** bug-libtool@gnu.org
-int main() {
-main()
-; return 0; }
EOF
-if { (eval echo configure:3763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
+ fi ;;
+ esac
+ fi
+ break
+ fi
+ done
+ IFS="$ac_save_ifs"
+ MAGIC_CMD="$ac_save_MAGIC_CMD"
+ ;;
+esac
fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
-fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- vectmass=yes LIBS="$LIBS -lmassvp3"
+MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
+if test -n "$MAGIC_CMD"; then
+ echo "$ac_t""$MAGIC_CMD" 1>&6
else
echo "$ac_t""no" 1>&6
fi
+
+ else
+ MAGIC_CMD=:
+ fi
+fi
+
+ fi
;;
- power2*)
- echo $ac_n "checking for main in -lmassvp3""... $ac_c" 1>&6
-echo "configure:3785: checking for main in -lmassvp3" >&5
-ac_lib_var=`echo massvp3'_'main | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+esac
+
+# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
+set dummy ${ac_tool_prefix}ranlib; ac_word=$2
+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+echo "configure:3769: checking for $ac_word" >&5
+if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- ac_save_LIBS="$LIBS"
-LIBS="-lmassvp3 $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 3793 "configure"
-#include "confdefs.h"
-
-int main() {
-main()
-; return 0; }
-EOF
-if { (eval echo configure:3800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
+ if test -n "$RANLIB"; then
+ ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ ac_dummy="$PATH"
+ for ac_dir in $ac_dummy; do
+ test -z "$ac_dir" && ac_dir=.
+ if test -f $ac_dir/$ac_word; then
+ ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
+ break
+ fi
+ done
+ IFS="$ac_save_ifs"
fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
-
fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- vectmass=yes LIBS="$LIBS -lmassvp2"
+RANLIB="$ac_cv_prog_RANLIB"
+if test -n "$RANLIB"; then
+ echo "$ac_t""$RANLIB" 1>&6
else
echo "$ac_t""no" 1>&6
fi
- ;;
- *)
- echo $ac_n "checking for main in -lmassv""... $ac_c" 1>&6
-echo "configure:3822: checking for main in -lmassv" >&5
-ac_lib_var=`echo massv'_'main | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- ac_save_LIBS="$LIBS"
-LIBS="-lmassv $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 3830 "configure"
-#include "confdefs.h"
-int main() {
-main()
-; return 0; }
-EOF
-if { (eval echo configure:3837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
+
+if test -z "$ac_cv_prog_RANLIB"; then
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "ranlib", so it can be a program name with args.
+set dummy ranlib; ac_word=$2
+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+echo "configure:3801: checking for $ac_word" >&5
+if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
+ if test -n "$RANLIB"; then
+ ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
+else
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ ac_dummy="$PATH"
+ for ac_dir in $ac_dummy; do
+ test -z "$ac_dir" && ac_dir=.
+ if test -f $ac_dir/$ac_word; then
+ ac_cv_prog_RANLIB="ranlib"
+ break
+ fi
+ done
+ IFS="$ac_save_ifs"
+ test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
-
fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- vectmass=yes LIBS="$LIBS -lmassv"
+RANLIB="$ac_cv_prog_RANLIB"
+if test -n "$RANLIB"; then
+ echo "$ac_t""$RANLIB" 1>&6
else
echo "$ac_t""no" 1>&6
fi
- ;;
- esac
- if test "$vectmass" = "yes"; then
- cat >> confdefs.h <<\EOF
-#define USE_IBM_MASS
-EOF
-
- fi
-fi
-if test "$enable_float" = "yes"; then
- precision=4
else
- precision=8
+ RANLIB=":"
+fi
fi
-if test "$enable_mpi" = "yes"; then
-
-if test -z "$ac_fftw_firstname"; then
-
-if test "$precision" = "8"; then
- prec="double"
- fftwcheckprefix=d
+# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
+set dummy ${ac_tool_prefix}strip; ac_word=$2
+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+echo "configure:3836: checking for $ac_word" >&5
+if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
- prec="single"
- fftwcheckprefix=s
+ if test -n "$STRIP"; then
+ ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
+else
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ ac_dummy="$PATH"
+ for ac_dir in $ac_dummy; do
+ test -z "$ac_dir" && ac_dir=.
+ if test -f $ac_dir/$ac_word; then
+ ac_cv_prog_STRIP="${ac_tool_prefix}strip"
+ break
+ fi
+ done
+ IFS="$ac_save_ifs"
+fi
+fi
+STRIP="$ac_cv_prog_STRIP"
+if test -n "$STRIP"; then
+ echo "$ac_t""$STRIP" 1>&6
+else
+ echo "$ac_t""no" 1>&6
fi
-usedprefix=""
-ok="no"
-# check header doesn't work, since we must use mpicc to get includes, not just /lib/cpp
-echo $ac_n "checking for fftw_mpi.h""... $ac_c" 1>&6
-echo "configure:3888: checking for fftw_mpi.h" >&5
-cat > conftest.$ac_ext <<EOF
-#line 3890 "configure"
-#include "confdefs.h"
-#include <fftw_mpi.h>
-int main() {
-
-; return 0; }
-EOF
-if { (eval echo configure:3897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
-
-fftwname=fftw_mpi
-echo "$ac_t""yes" 1>&6
+if test -z "$ac_cv_prog_STRIP"; then
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "strip", so it can be a program name with args.
+set dummy strip; ac_word=$2
+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+echo "configure:3868: checking for $ac_word" >&5
+if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ if test -n "$STRIP"; then
+ ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
+else
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ ac_dummy="$PATH"
+ for ac_dir in $ac_dummy; do
+ test -z "$ac_dir" && ac_dir=.
+ if test -f $ac_dir/$ac_word; then
+ ac_cv_prog_STRIP="strip"
+ break
+ fi
+ done
+ IFS="$ac_save_ifs"
+ test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
+fi
+fi
+STRIP="$ac_cv_prog_STRIP"
+if test -n "$STRIP"; then
+ echo "$ac_t""$STRIP" 1>&6
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
echo "$ac_t""no" 1>&6
fi
-rm -f conftest*
-
-if test -n "$fftwname"; then
-# we cannot run the code since an MPI program might not be allowed on a login node of a supercomputer
-cat > conftest.$ac_ext <<EOF
-#line 3915 "configure"
-#include "confdefs.h"
-#include <$fftwname.h>
-int main() {
-int _array_ [1 - 2 * !((sizeof(fftw_real)) == $precision)];
-; return 0; }
-EOF
-if { (eval echo configure:3922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ok="yes"
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ok="no"
+ STRIP=":"
fi
-rm -f conftest*
fi
-fftwname=fftw_mpi
-if test "$ok" != "yes"; then
- xfftwname=${fftwcheckprefix}${fftwname}
- echo $ac_n "checking for $xfftwname.h""... $ac_c" 1>&6
-echo "configure:3939: checking for $xfftwname.h" >&5
- cat > conftest.$ac_ext <<EOF
-#line 3941 "configure"
-#include "confdefs.h"
-#include <$xfftwname.h>
-int main() {
+# Check for any special flags to pass to ltconfig.
+libtool_flags="--cache-file=$cache_file"
+test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
+test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
+test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
+test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
+test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
-; return 0; }
-EOF
-if { (eval echo configure:3948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- echo "$ac_t""yes" 1>&6
+
+# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
+if test "${enable_libtool_lock+set}" = set; then
+ enableval="$enable_libtool_lock"
+ :
+fi
+
+test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
+test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
+
+# Check whether --with-pic or --without-pic was given.
+if test "${with_pic+set}" = set; then
+ withval="$with_pic"
+ pic_mode="$withval"
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
+ pic_mode=default
+fi
+
+test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
+test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
+
+# Some flags need to be propagated to the compiler or linker for good
+# libtool support.
+case $host in
+*-*-irix6*)
+ # Find out which ABI we are using.
+ echo '#line 3935 "configure"' > conftest.$ac_ext
+ if { (eval echo configure:3936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ case `/usr/bin/file conftest.$ac_objext` in
+ *32-bit*)
+ LD="${LD-ld} -32"
+ ;;
+ *N32*)
+ LD="${LD-ld} -n32"
+ ;;
+ *64-bit*)
+ LD="${LD-ld} -64"
+ ;;
+ esac
+ fi
rm -rf conftest*
+ ;;
+
+*-*-sco3.2v5*)
+ # On SCO OpenServer 5, we need -belf to get full-featured binaries.
+ SAVE_CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS -belf"
+ echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
+echo "configure:3957: checking whether the C compiler needs -belf" >&5
+if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
-echo "$ac_t""no" 1>&6
-{ echo "configure: error: Cannot find any $prec precision $fftwname.h or $xfftwname.h
-Do you have $prec precision FFTW installed? If you are using packages,
-note that you also need fftw-devel to compile GROMACS. You can find the
-software at www.fftw.org, and detailed instructions at www.gromacs.org.
-If you compiled FFTW yourself:
-Note that the default FFTW setup is double precision. Change the FFTW
-configuration to single with --enable-float. If you want MPI support,
-use --enable-mpi. It is a good idea to install both single & double.
-If your sysadm doesn't want to install it you can do it to a location
-in your home directory and provide the correct paths in the CPPFLAGS
-and LDFLAGS environment variables before running configure.
-That is also necessary to do if your compiler doesn't search
-/usr/local/include and /usr/local/lib by default.
-You can find information at www.gromacs.org, or in the INSTALL file." 1>&2; exit 1; }
+ ac_ext=c
+# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
+ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
+cross_compiling=$ac_cv_prog_cc_cross
-fi
-rm -f conftest*
-cat > conftest.$ac_ext <<EOF
-#line 3975 "configure"
+ cat > conftest.$ac_ext <<EOF
+#line 3970 "configure"
#include "confdefs.h"
-#include <$xfftwname.h>
+
int main() {
-int _array_ [1 - 2 * !((sizeof(fftw_real)) == $precision)];
+
; return 0; }
EOF
-if { (eval echo configure:3982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:3977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
-
-fftwname=$xfftwname
-usedprefix=$fftwcheckprefix
-
+ lt_cv_cc_needs_belf=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
-
-{ echo "configure: error: Cannot find any $prec precision $fftwname.h or $xfftwname.h
-Do you have $prec precision FFTW installed? If you are using packages,
-note that you also need fftw-devel to compile GROMACS. You can find the
-software at www.fftw.org, and detailed instructions at www.gromacs.org.
-If you compiled FFTW yourself:
-Note that the default FFTW setup is double precision. Change the FFTW
-configuration to single with --enable-float. If you want MPI support,
-use --enable-mpi. It is a good idea to install both single & double.
-If your sysadm doesn't want to install it you can do it to a location
-in your home directory and provide the correct paths in the CPPFLAGS
-and LDFLAGS environment variables before running configure.
-That is also necessary to do if your compiler doesn't search
-/usr/local/include and /usr/local/lib by default.
-You can find information at www.gromacs.org, or in the INSTALL file." 1>&2; exit 1; }
+ lt_cv_cc_needs_belf=no
fi
rm -f conftest*
+ ac_ext=c
+# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
+ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
+cross_compiling=$ac_cv_prog_cc_cross
+
fi
-echo $ac_n "checking for main in -l$fftwname""... $ac_c" 1>&6
-echo "configure:4012: checking for main in -l$fftwname" >&5
-ac_lib_var=`echo $fftwname'_'main | sed 'y%./+-%__p_%'`
+echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
+ if test x"$lt_cv_cc_needs_belf" != x"yes"; then
+ # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
+ CFLAGS="$SAVE_CFLAGS"
+ fi
+ ;;
+
+
+esac
+
+
+# Save cache, so that ltconfig can load it
+
+
+# Actually configure libtool. ac_aux_dir is where install-sh is found.
+AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
+MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
+LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
+AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
+objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
+deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
+${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
+$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
+|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
+
+# Reload cache, that may have been modified by ltconfig
+
+
+# This can be used to rebuild libtool when needed
+LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
+
+# Always use our own libtool.
+LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+
+# Redirect the config.log output again, so that the ltconfig log is not
+# clobbered by the next message.
+exec 5>>./config.log
+
+
+LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-f77.sh"
+lt_save_CC="$CC"
+lt_save_CFLAGS="$CFLAGS"
+AR="$AR" LTCC="$CC" CC="$F77" F77="$F77" CFLAGS="$FFLAGS" CPPFLAGS="" \
+MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
+LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
+AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
+objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
+deplibs_check_method="$deplibs_check_method" \
+file_magic_cmd="$file_magic_cmd" \
+${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
+--build="$build" --add-tag=F77 $ac_aux_dir/ltcf-f77.sh $host \
+|| { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
+CC="$lt_save_CC"
+CFLAGS="$lt_save_CFLAGS"
+
+# Redirect the config.log output again, so that the ltconfig log is not
+# clobbered by the next message.
+exec 5>>./config.log
+
+
+
+
+
+
+
+echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
+echo "configure:4062: checking whether ln -s works" >&5
+if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ rm -f conftestdata
+if ln -s X conftestdata 2>/dev/null
+then
+ rm -f conftestdata
+ ac_cv_prog_LN_S="ln -s"
+else
+ ac_cv_prog_LN_S=ln
+fi
+fi
+LN_S="$ac_cv_prog_LN_S"
+if test "$ac_cv_prog_LN_S" = "ln -s"; then
+ echo "$ac_t""yes" 1>&6
+else
+ echo "$ac_t""no" 1>&6
+fi
+
+
+
+
+
+
+
+
+############################################################################
+# Checks for libraries.
+############################################################################
+echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
+echo "configure:4093: checking for sqrt in -lm" >&5
+ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
-LIBS="-l$fftwname $LIBS"
+LIBS="-lm $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 4020 "configure"
+#line 4101 "configure"
#include "confdefs.h"
+/* Override any gcc2 internal prototype to avoid an error. */
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char sqrt();
int main() {
-main()
+sqrt()
; return 0; }
EOF
-if { (eval echo configure:4027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo $fftwname | sed -e 's/[^a-zA-Z0-9_]/_/g' \
+ ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
- LIBS="-l$fftwname $LIBS"
+ LIBS="-lm $LIBS"
else
echo "$ac_t""no" 1>&6
-{ echo "configure: error: Can't find a library to match the $fftwname header" 1>&2; exit 1; }
+{ echo "configure: error: No math library found" 1>&2; exit 1; }
fi
-ac_fftw_savedprefix=$usedprefix
-ac_fftw_firstname=$fftwname
-
-else
-
-fftwname=${ac_fftw_savedprefix}fftw_mpi
-echo $ac_n "checking for $fftwname.h""... $ac_c" 1>&6
-echo "configure:4062: checking for $fftwname.h" >&5
-cat > conftest.$ac_ext <<EOF
-#line 4064 "configure"
-#include "confdefs.h"
-#include <$fftwname.h>
-int main() {
-; return 0; }
-EOF
-if { (eval echo configure:4071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- echo "$ac_t""yes" 1>&6
-echo $ac_n "checking for main in -l$fftwname""... $ac_c" 1>&6
-echo "configure:4075: checking for main in -l$fftwname" >&5
-ac_lib_var=`echo $fftwname'_'main | sed 'y%./+-%__p_%'`
+#####
+# IBM provides a MASS library with vectorized and optimized math stuff,
+# and an xlopt library which partly overlaps this. They must come before
+# libm in the link list, thus the test goes after that for libm!
+if test "${host_vendor}" = "ibm"; then
+ echo $ac_n "checking for main in -lxlopt""... $ac_c" 1>&6
+echo "configure:4147: checking for main in -lxlopt" >&5
+ac_lib_var=`echo xlopt'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
-LIBS="-l$fftwname $LIBS"
+LIBS="-lxlopt $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 4083 "configure"
+#line 4155 "configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
-if { (eval echo configure:4090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo $fftwname | sed -e 's/^a-zA-Z0-9_/_/g' \
+ ac_tr_lib=HAVE_LIB`echo xlopt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
- LIBS="-l$fftwname $LIBS"
+ LIBS="-lxlopt $LIBS"
else
echo "$ac_t""no" 1>&6
-{ echo "configure: error: Can't find a library to match the $fftwname header" 1>&2; exit 1; }
fi
+ echo $ac_n "checking for main in -lmass""... $ac_c" 1>&6
+echo "configure:4190: checking for main in -lmass" >&5
+ac_lib_var=`echo mass'_'main | sed 'y%./+-%__p_%'`
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ ac_save_LIBS="$LIBS"
+LIBS="-lmass $LIBS"
+cat > conftest.$ac_ext <<EOF
+#line 4198 "configure"
+#include "confdefs.h"
+
+int main() {
+main()
+; return 0; }
+EOF
+if { (eval echo configure:4205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
-
-echo "$ac_t""no" 1>&6
-{ echo "configure: error: Cant find $fftwname.h header. Make sure all your fftw prefixes match - we already use $ac_fftw_firstname.h" 1>&2; exit 1; }
-
+ eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
+LIBS="$ac_save_LIBS"
fi
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ ac_tr_lib=HAVE_LIB`echo mass | sed -e 's/[^a-zA-Z0-9_]/_/g' \
+ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
+ cat >> confdefs.h <<EOF
+#define $ac_tr_lib 1
+EOF
+ LIBS="-lmass $LIBS"
-
-if test -z "$ac_fftw_firstname"; then
-
-if test "$precision" = "8"; then
- prec="double"
- fftwcheckprefix=d
else
- prec="single"
- fftwcheckprefix=s
+ echo "$ac_t""no" 1>&6
fi
-
-usedprefix=""
-ok="no"
-# check header doesn't work, since we must use mpicc to get includes, not just /lib/cpp
-echo $ac_n "checking for rfftw_mpi.h""... $ac_c" 1>&6
-echo "configure:4147: checking for rfftw_mpi.h" >&5
+
+ vectmass=no
+ case "$gmxcpu" in
+ power4*)
+ # first check for a power4 lib, then power3, power2.
+
+echo $ac_n "checking for library containing main""... $ac_c" 1>&6
+echo "configure:4238: checking for library containing main" >&5
+if eval "test \"`echo '$''{'ac_cv_search_main'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ ac_func_search_save_LIBS="$LIBS"
+ac_cv_search_main="no"
cat > conftest.$ac_ext <<EOF
-#line 4149 "configure"
+#line 4245 "configure"
#include "confdefs.h"
-#include <rfftw_mpi.h>
-int main() {
+/* Override any gcc2 internal prototype to avoid an error. */
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char main();
+int main() {
+main()
; return 0; }
EOF
-if { (eval echo configure:4156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:4256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
-
-fftwname=rfftw_mpi
-echo "$ac_t""yes" 1>&6
-
+ ac_cv_search_main="none required"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
- rm -rf conftest*
- echo "$ac_t""no" 1>&6
fi
rm -f conftest*
-
-
-if test -n "$fftwname"; then
-# we cannot run the code since an MPI program might not be allowed on a login node of a supercomputer
+test "$ac_cv_search_main" = "no" && for i in massvp4,massvp3,massvp2,massv; do
+LIBS="-l$i $ac_func_search_save_LIBS"
cat > conftest.$ac_ext <<EOF
-#line 4174 "configure"
+#line 4267 "configure"
#include "confdefs.h"
-#include <$fftwname.h>
+/* Override any gcc2 internal prototype to avoid an error. */
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char main();
+
int main() {
-int _array_ [1 - 2 * !((sizeof(fftw_real)) == $precision)];
+main()
; return 0; }
EOF
-if { (eval echo configure:4181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:4278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
- ok="yes"
+ ac_cv_search_main="-l$i"
+break
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
- rm -rf conftest*
- ok="no"
fi
rm -f conftest*
+done
+LIBS="$ac_func_search_save_LIBS"
fi
-fftwname=rfftw_mpi
-
-if test "$ok" != "yes"; then
- xfftwname=${fftwcheckprefix}${fftwname}
- echo $ac_n "checking for $xfftwname.h""... $ac_c" 1>&6
-echo "configure:4198: checking for $xfftwname.h" >&5
- cat > conftest.$ac_ext <<EOF
-#line 4200 "configure"
+echo "$ac_t""$ac_cv_search_main" 1>&6
+if test "$ac_cv_search_main" != "no"; then
+ test "$ac_cv_search_main" = "none required" || LIBS="$ac_cv_search_main $LIBS"
+ vectmass=yes
+else :
+
+fi ;;
+ power3*)
+
+echo $ac_n "checking for library containing main""... $ac_c" 1>&6
+echo "configure:4301: checking for library containing main" >&5
+if eval "test \"`echo '$''{'ac_cv_search_main'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ ac_func_search_save_LIBS="$LIBS"
+ac_cv_search_main="no"
+cat > conftest.$ac_ext <<EOF
+#line 4308 "configure"
#include "confdefs.h"
-#include <$xfftwname.h>
-int main() {
+/* Override any gcc2 internal prototype to avoid an error. */
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char main();
+int main() {
+main()
; return 0; }
EOF
-if { (eval echo configure:4207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:4319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
- echo "$ac_t""yes" 1>&6
+ ac_cv_search_main="none required"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
- rm -rf conftest*
-
-echo "$ac_t""no" 1>&6
+fi
+rm -f conftest*
+test "$ac_cv_search_main" = "no" && for i in massvp3,massvp2,massv; do
+LIBS="-l$i $ac_func_search_save_LIBS"
+cat > conftest.$ac_ext <<EOF
+#line 4330 "configure"
+#include "confdefs.h"
+/* Override any gcc2 internal prototype to avoid an error. */
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char main();
+
+int main() {
+main()
+; return 0; }
+EOF
+if { (eval echo configure:4341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ ac_cv_search_main="-l$i"
+break
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+fi
+rm -f conftest*
+done
+LIBS="$ac_func_search_save_LIBS"
+fi
+
+echo "$ac_t""$ac_cv_search_main" 1>&6
+if test "$ac_cv_search_main" != "no"; then
+ test "$ac_cv_search_main" = "none required" || LIBS="$ac_cv_search_main $LIBS"
+ vectmass=yes
+else :
+
+fi ;;
+ power2*)
+
+echo $ac_n "checking for library containing main""... $ac_c" 1>&6
+echo "configure:4364: checking for library containing main" >&5
+if eval "test \"`echo '$''{'ac_cv_search_main'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ ac_func_search_save_LIBS="$LIBS"
+ac_cv_search_main="no"
+cat > conftest.$ac_ext <<EOF
+#line 4371 "configure"
+#include "confdefs.h"
+/* Override any gcc2 internal prototype to avoid an error. */
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char main();
+
+int main() {
+main()
+; return 0; }
+EOF
+if { (eval echo configure:4382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ ac_cv_search_main="none required"
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+fi
+rm -f conftest*
+test "$ac_cv_search_main" = "no" && for i in massvp2,massv; do
+LIBS="-l$i $ac_func_search_save_LIBS"
+cat > conftest.$ac_ext <<EOF
+#line 4393 "configure"
+#include "confdefs.h"
+/* Override any gcc2 internal prototype to avoid an error. */
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char main();
+
+int main() {
+main()
+; return 0; }
+EOF
+if { (eval echo configure:4404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ ac_cv_search_main="-l$i"
+break
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+fi
+rm -f conftest*
+done
+LIBS="$ac_func_search_save_LIBS"
+fi
+
+echo "$ac_t""$ac_cv_search_main" 1>&6
+if test "$ac_cv_search_main" != "no"; then
+ test "$ac_cv_search_main" = "none required" || LIBS="$ac_cv_search_main $LIBS"
+ vectmass=yes
+else :
+
+fi ;;
+ *)
+
+echo $ac_n "checking for library containing main""... $ac_c" 1>&6
+echo "configure:4427: checking for library containing main" >&5
+if eval "test \"`echo '$''{'ac_cv_search_main'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ ac_func_search_save_LIBS="$LIBS"
+ac_cv_search_main="no"
+cat > conftest.$ac_ext <<EOF
+#line 4434 "configure"
+#include "confdefs.h"
+/* Override any gcc2 internal prototype to avoid an error. */
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char main();
+
+int main() {
+main()
+; return 0; }
+EOF
+if { (eval echo configure:4445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ ac_cv_search_main="none required"
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+fi
+rm -f conftest*
+test "$ac_cv_search_main" = "no" && for i in massv; do
+LIBS="-l$i $ac_func_search_save_LIBS"
+cat > conftest.$ac_ext <<EOF
+#line 4456 "configure"
+#include "confdefs.h"
+/* Override any gcc2 internal prototype to avoid an error. */
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char main();
+
+int main() {
+main()
+; return 0; }
+EOF
+if { (eval echo configure:4467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ ac_cv_search_main="-l$i"
+break
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+fi
+rm -f conftest*
+done
+LIBS="$ac_func_search_save_LIBS"
+fi
+
+echo "$ac_t""$ac_cv_search_main" 1>&6
+if test "$ac_cv_search_main" != "no"; then
+ test "$ac_cv_search_main" = "none required" || LIBS="$ac_cv_search_main $LIBS"
+ vectmass=yes
+else :
+
+fi ;;
+ esac
+ if test "$vectmass" = "yes"; then
+ cat >> confdefs.h <<\EOF
+#define HAVE_LIBMASSV_ANY
+EOF
+
+ if test "$enable_vectorized_recip" = "not_selected"; then
+ echo "Note: vector MASS lib present - vectorizing 1/x inner loops"
+ enable_vectorized_recip="yes"
+ fi
+ if test "$enable_vectorized_sqrt" = "not_selected"; then
+ echo "Note: vector MASS lib present - vectorizing 1/sqrt inner loops"
+ enable_vectorized_sqrt="yes"
+ fi
+ else
+ echo "******************************************************************************"
+ echo "*Didn't find the IBM MASS library. It's not necessary, but can provide 20% *"
+ echo "*performance improvement by loop vectorization. Add the library search path *"
+ echo "*with -L in the LDFLAGS variable. If you can't find MASS, download it from *"
+ echo "*http://www.research.ibm.com/mass *"
+ echo "******************************************************************************"
+ fi
+fi
+
+
+if test -z "$ac_fftw_firstname"; then
+
+if test "$enable_float" = "no"; then
+ prec="double"
+ realsize=8
+ fftwcheckprefix=d
+else
+ prec="single"
+ realsize=4
+ fftwcheckprefix=s
+fi
+
+usedprefix=""
+ok="no"
+# check header doesn't work, since we must use mpicc to get includes, not just /lib/cpp
+echo $ac_n "checking for fftw.h""... $ac_c" 1>&6
+echo "configure:4528: checking for fftw.h" >&5
+cat > conftest.$ac_ext <<EOF
+#line 4530 "configure"
+#include "confdefs.h"
+#include <fftw.h>
+int main() {
+
+; return 0; }
+EOF
+if { (eval echo configure:4537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+
+fftwname=fftw
+echo "$ac_t""yes" 1>&6
+
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ echo "$ac_t""no" 1>&6
+fi
+rm -f conftest*
+
+
+if test -n "$fftwname"; then
+# we cannot run the code since an MPI program might not be allowed on a login node of a supercomputer
+cat > conftest.$ac_ext <<EOF
+#line 4555 "configure"
+#include "confdefs.h"
+#include <$fftwname.h>
+int main() {
+int _array_ [1 - 2 * !((sizeof(fftw_real)) == $realsize)];
+; return 0; }
+EOF
+if { (eval echo configure:4562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+ ok="yes"
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ ok="no"
+fi
+rm -f conftest*
+fi
+
+fftwname=fftw
+
+if test "$ok" != "yes"; then
+ xfftwname=${fftwcheckprefix}${fftwname}
+ echo $ac_n "checking for $xfftwname.h""... $ac_c" 1>&6
+echo "configure:4579: checking for $xfftwname.h" >&5
+ cat > conftest.$ac_ext <<EOF
+#line 4581 "configure"
+#include "confdefs.h"
+#include <$xfftwname.h>
+int main() {
+
+; return 0; }
+EOF
+if { (eval echo configure:4588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+ echo "$ac_t""yes" 1>&6
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+
+echo "$ac_t""no" 1>&6
{ echo "configure: error: Cannot find any $prec precision $fftwname.h or $xfftwname.h
Do you have $prec precision FFTW installed? If you are using packages,
note that you also need fftw-devel to compile GROMACS. You can find the
fi
rm -f conftest*
cat > conftest.$ac_ext <<EOF
-#line 4234 "configure"
+#line 4615 "configure"
#include "confdefs.h"
#include <$xfftwname.h>
int main() {
-int _array_ [1 - 2 * !((sizeof(fftw_real)) == $precision)];
+int _array_ [1 - 2 * !((sizeof(fftw_real)) == $realsize)];
; return 0; }
EOF
-if { (eval echo configure:4241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:4622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
fftwname=$xfftwname
fi
echo $ac_n "checking for main in -l$fftwname""... $ac_c" 1>&6
-echo "configure:4271: checking for main in -l$fftwname" >&5
+echo "configure:4652: checking for main in -l$fftwname" >&5
ac_lib_var=`echo $fftwname'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
ac_save_LIBS="$LIBS"
LIBS="-l$fftwname $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 4279 "configure"
+#line 4660 "configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
-if { (eval echo configure:4286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
else
-fftwname=${ac_fftw_savedprefix}rfftw_mpi
+fftwname=${ac_fftw_savedprefix}fftw
echo $ac_n "checking for $fftwname.h""... $ac_c" 1>&6
-echo "configure:4321: checking for $fftwname.h" >&5
+echo "configure:4702: checking for $fftwname.h" >&5
cat > conftest.$ac_ext <<EOF
-#line 4323 "configure"
+#line 4704 "configure"
#include "confdefs.h"
#include <$fftwname.h>
int main() {
; return 0; }
EOF
-if { (eval echo configure:4330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:4711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
echo $ac_n "checking for main in -l$fftwname""... $ac_c" 1>&6
-echo "configure:4334: checking for main in -l$fftwname" >&5
+echo "configure:4715: checking for main in -l$fftwname" >&5
ac_lib_var=`echo $fftwname'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
ac_save_LIBS="$LIBS"
LIBS="-l$fftwname $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 4342 "configure"
+#line 4723 "configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
-if { (eval echo configure:4349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
fi
-fi
-
if test -z "$ac_fftw_firstname"; then
-if test "$precision" = "8"; then
+if test "$enable_float" = "no"; then
prec="double"
+ realsize=8
fftwcheckprefix=d
else
prec="single"
+ realsize=4
fftwcheckprefix=s
fi
usedprefix=""
ok="no"
# check header doesn't work, since we must use mpicc to get includes, not just /lib/cpp
-echo $ac_n "checking for fftw.h""... $ac_c" 1>&6
-echo "configure:4408: checking for fftw.h" >&5
+echo $ac_n "checking for rfftw.h""... $ac_c" 1>&6
+echo "configure:4789: checking for rfftw.h" >&5
cat > conftest.$ac_ext <<EOF
-#line 4410 "configure"
+#line 4791 "configure"
#include "confdefs.h"
-#include <fftw.h>
+#include <rfftw.h>
int main() {
; return 0; }
EOF
-if { (eval echo configure:4417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:4798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
-fftwname=fftw
+fftwname=rfftw
echo "$ac_t""yes" 1>&6
else
if test -n "$fftwname"; then
# we cannot run the code since an MPI program might not be allowed on a login node of a supercomputer
cat > conftest.$ac_ext <<EOF
-#line 4435 "configure"
+#line 4816 "configure"
#include "confdefs.h"
#include <$fftwname.h>
int main() {
-int _array_ [1 - 2 * !((sizeof(fftw_real)) == $precision)];
+int _array_ [1 - 2 * !((sizeof(fftw_real)) == $realsize)];
; return 0; }
EOF
-if { (eval echo configure:4442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:4823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ok="yes"
else
rm -f conftest*
fi
-fftwname=fftw
+fftwname=rfftw
if test "$ok" != "yes"; then
xfftwname=${fftwcheckprefix}${fftwname}
echo $ac_n "checking for $xfftwname.h""... $ac_c" 1>&6
-echo "configure:4459: checking for $xfftwname.h" >&5
+echo "configure:4840: checking for $xfftwname.h" >&5
cat > conftest.$ac_ext <<EOF
-#line 4461 "configure"
+#line 4842 "configure"
#include "confdefs.h"
#include <$xfftwname.h>
int main() {
; return 0; }
EOF
-if { (eval echo configure:4468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:4849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
else
fi
rm -f conftest*
cat > conftest.$ac_ext <<EOF
-#line 4495 "configure"
+#line 4876 "configure"
#include "confdefs.h"
#include <$xfftwname.h>
int main() {
-int _array_ [1 - 2 * !((sizeof(fftw_real)) == $precision)];
+int _array_ [1 - 2 * !((sizeof(fftw_real)) == $realsize)];
; return 0; }
EOF
-if { (eval echo configure:4502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:4883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
fftwname=$xfftwname
fi
echo $ac_n "checking for main in -l$fftwname""... $ac_c" 1>&6
-echo "configure:4532: checking for main in -l$fftwname" >&5
+echo "configure:4913: checking for main in -l$fftwname" >&5
ac_lib_var=`echo $fftwname'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
ac_save_LIBS="$LIBS"
LIBS="-l$fftwname $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 4540 "configure"
+#line 4921 "configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
-if { (eval echo configure:4547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
else
-fftwname=${ac_fftw_savedprefix}fftw
+fftwname=${ac_fftw_savedprefix}rfftw
echo $ac_n "checking for $fftwname.h""... $ac_c" 1>&6
-echo "configure:4582: checking for $fftwname.h" >&5
+echo "configure:4963: checking for $fftwname.h" >&5
cat > conftest.$ac_ext <<EOF
-#line 4584 "configure"
+#line 4965 "configure"
#include "confdefs.h"
#include <$fftwname.h>
int main() {
; return 0; }
EOF
-if { (eval echo configure:4591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:4972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
echo $ac_n "checking for main in -l$fftwname""... $ac_c" 1>&6
-echo "configure:4595: checking for main in -l$fftwname" >&5
+echo "configure:4976: checking for main in -l$fftwname" >&5
ac_lib_var=`echo $fftwname'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
ac_save_LIBS="$LIBS"
LIBS="-l$fftwname $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 4603 "configure"
+#line 4984 "configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
-if { (eval echo configure:4610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
+if test "$enable_mpi" = "yes"; then
+
if test -z "$ac_fftw_firstname"; then
-if test "$precision" = "8"; then
+if test "$enable_float" = "no"; then
prec="double"
+ realsize=8
fftwcheckprefix=d
else
prec="single"
+ realsize=4
fftwcheckprefix=s
fi
usedprefix=""
ok="no"
# check header doesn't work, since we must use mpicc to get includes, not just /lib/cpp
-echo $ac_n "checking for rfftw.h""... $ac_c" 1>&6
-echo "configure:4667: checking for rfftw.h" >&5
+echo $ac_n "checking for fftw_mpi.h""... $ac_c" 1>&6
+echo "configure:5052: checking for fftw_mpi.h" >&5
cat > conftest.$ac_ext <<EOF
-#line 4669 "configure"
+#line 5054 "configure"
#include "confdefs.h"
-#include <rfftw.h>
+#include <fftw_mpi.h>
int main() {
; return 0; }
EOF
-if { (eval echo configure:4676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:5061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
-fftwname=rfftw
+fftwname=fftw_mpi
echo "$ac_t""yes" 1>&6
else
if test -n "$fftwname"; then
# we cannot run the code since an MPI program might not be allowed on a login node of a supercomputer
cat > conftest.$ac_ext <<EOF
-#line 4694 "configure"
+#line 5079 "configure"
#include "confdefs.h"
#include <$fftwname.h>
int main() {
-int _array_ [1 - 2 * !((sizeof(fftw_real)) == $precision)];
+int _array_ [1 - 2 * !((sizeof(fftw_real)) == $realsize)];
; return 0; }
EOF
-if { (eval echo configure:4701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:5086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ok="yes"
else
rm -f conftest*
fi
-fftwname=rfftw
+fftwname=fftw_mpi
if test "$ok" != "yes"; then
xfftwname=${fftwcheckprefix}${fftwname}
echo $ac_n "checking for $xfftwname.h""... $ac_c" 1>&6
-echo "configure:4718: checking for $xfftwname.h" >&5
+echo "configure:5103: checking for $xfftwname.h" >&5
cat > conftest.$ac_ext <<EOF
-#line 4720 "configure"
+#line 5105 "configure"
#include "confdefs.h"
#include <$xfftwname.h>
int main() {
; return 0; }
EOF
-if { (eval echo configure:4727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:5112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
else
fi
rm -f conftest*
cat > conftest.$ac_ext <<EOF
-#line 4754 "configure"
+#line 5139 "configure"
#include "confdefs.h"
#include <$xfftwname.h>
int main() {
-int _array_ [1 - 2 * !((sizeof(fftw_real)) == $precision)];
+int _array_ [1 - 2 * !((sizeof(fftw_real)) == $realsize)];
; return 0; }
EOF
-if { (eval echo configure:4761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:5146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
fftwname=$xfftwname
fi
echo $ac_n "checking for main in -l$fftwname""... $ac_c" 1>&6
-echo "configure:4791: checking for main in -l$fftwname" >&5
+echo "configure:5176: checking for main in -l$fftwname" >&5
ac_lib_var=`echo $fftwname'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
ac_save_LIBS="$LIBS"
LIBS="-l$fftwname $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 4799 "configure"
+#line 5184 "configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
-if { (eval echo configure:4806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
else
-fftwname=${ac_fftw_savedprefix}rfftw
+fftwname=${ac_fftw_savedprefix}fftw_mpi
echo $ac_n "checking for $fftwname.h""... $ac_c" 1>&6
-echo "configure:4841: checking for $fftwname.h" >&5
+echo "configure:5226: checking for $fftwname.h" >&5
cat > conftest.$ac_ext <<EOF
-#line 4843 "configure"
+#line 5228 "configure"
#include "confdefs.h"
#include <$fftwname.h>
int main() {
; return 0; }
EOF
-if { (eval echo configure:4850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:5235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
echo $ac_n "checking for main in -l$fftwname""... $ac_c" 1>&6
-echo "configure:4854: checking for main in -l$fftwname" >&5
+echo "configure:5239: checking for main in -l$fftwname" >&5
ac_lib_var=`echo $fftwname'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
ac_save_LIBS="$LIBS"
LIBS="-l$fftwname $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 4862 "configure"
+#line 5247 "configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
-if { (eval echo configure:4869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
fi
+
+if test -z "$ac_fftw_firstname"; then
-case ${ac_fftw_savedprefix} in
- d)
- cat >> confdefs.h <<\EOF
-#define FFTW_NAME_DFFTW
-EOF
+if test "$enable_float" = "no"; then
+ prec="double"
+ realsize=8
+ fftwcheckprefix=d
+else
+ prec="single"
+ realsize=4
+ fftwcheckprefix=s
+fi
- ;;
- s)
- cat >> confdefs.h <<\EOF
-#define FFTW_NAME_SFFTW
-EOF
+usedprefix=""
+ok="no"
+# check header doesn't work, since we must use mpicc to get includes, not just /lib/cpp
+echo $ac_n "checking for rfftw_mpi.h""... $ac_c" 1>&6
+echo "configure:5313: checking for rfftw_mpi.h" >&5
+cat > conftest.$ac_ext <<EOF
+#line 5315 "configure"
+#include "confdefs.h"
+#include <rfftw_mpi.h>
+int main() {
- ;;
- *)
- cat >> confdefs.h <<\EOF
-#define FFTW_NAME_FFTW
+; return 0; }
EOF
+if { (eval echo configure:5322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+
+fftwname=rfftw_mpi
+echo "$ac_t""yes" 1>&6
- ;;
-esac
-
-######
-if test "$enable_xdr" = "no"; then
- echo "configure: warning: * Not using XDR cripples GROMACS significantly. You won't be able to *
- * read or write any compressed trajectories. You have no choice on *
- * windows, but if you run UNIX locate the RPC files - you have them! *" 1>&2
-else
-# check for xtc headers
- for ac_hdr in rpc/rpc.h rpc/xdr.h
-do
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:4944: checking for $ac_hdr" >&5
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
else
- cat > conftest.$ac_ext <<EOF
-#line 4949 "configure"
-#include "confdefs.h"
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ echo "$ac_t""no" 1>&6
+fi
+rm -f conftest*
+
+
+if test -n "$fftwname"; then
+# we cannot run the code since an MPI program might not be allowed on a login node of a supercomputer
+cat > conftest.$ac_ext <<EOF
+#line 5340 "configure"
+#include "confdefs.h"
+#include <$fftwname.h>
+int main() {
+int _array_ [1 - 2 * !((sizeof(fftw_real)) == $realsize)];
+; return 0; }
+EOF
+if { (eval echo configure:5347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+ ok="yes"
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ ok="no"
+fi
+rm -f conftest*
+fi
+
+fftwname=rfftw_mpi
+
+if test "$ok" != "yes"; then
+ xfftwname=${fftwcheckprefix}${fftwname}
+ echo $ac_n "checking for $xfftwname.h""... $ac_c" 1>&6
+echo "configure:5364: checking for $xfftwname.h" >&5
+ cat > conftest.$ac_ext <<EOF
+#line 5366 "configure"
+#include "confdefs.h"
+#include <$xfftwname.h>
+int main() {
+
+; return 0; }
+EOF
+if { (eval echo configure:5373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+ echo "$ac_t""yes" 1>&6
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+
+echo "$ac_t""no" 1>&6
+{ echo "configure: error: Cannot find any $prec precision $fftwname.h or $xfftwname.h
+Do you have $prec precision FFTW installed? If you are using packages,
+note that you also need fftw-devel to compile GROMACS. You can find the
+software at www.fftw.org, and detailed instructions at www.gromacs.org.
+If you compiled FFTW yourself:
+Note that the default FFTW setup is double precision. Change the FFTW
+configuration to single with --enable-float. If you want MPI support,
+use --enable-mpi. It is a good idea to install both single & double.
+If your sysadm doesn't want to install it you can do it to a location
+in your home directory and provide the correct paths in the CPPFLAGS
+and LDFLAGS environment variables before running configure.
+That is also necessary to do if your compiler doesn't search
+/usr/local/include and /usr/local/lib by default.
+You can find information at www.gromacs.org, or in the INSTALL file." 1>&2; exit 1; }
+
+fi
+rm -f conftest*
+cat > conftest.$ac_ext <<EOF
+#line 5400 "configure"
+#include "confdefs.h"
+#include <$xfftwname.h>
+int main() {
+int _array_ [1 - 2 * !((sizeof(fftw_real)) == $realsize)];
+; return 0; }
+EOF
+if { (eval echo configure:5407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+
+fftwname=$xfftwname
+usedprefix=$fftwcheckprefix
+
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+
+{ echo "configure: error: Cannot find any $prec precision $fftwname.h or $xfftwname.h
+Do you have $prec precision FFTW installed? If you are using packages,
+note that you also need fftw-devel to compile GROMACS. You can find the
+software at www.fftw.org, and detailed instructions at www.gromacs.org.
+If you compiled FFTW yourself:
+Note that the default FFTW setup is double precision. Change the FFTW
+configuration to single with --enable-float. If you want MPI support,
+use --enable-mpi. It is a good idea to install both single & double.
+If your sysadm doesn't want to install it you can do it to a location
+in your home directory and provide the correct paths in the CPPFLAGS
+and LDFLAGS environment variables before running configure.
+That is also necessary to do if your compiler doesn't search
+/usr/local/include and /usr/local/lib by default.
+You can find information at www.gromacs.org, or in the INSTALL file." 1>&2; exit 1; }
+fi
+rm -f conftest*
+fi
+
+echo $ac_n "checking for main in -l$fftwname""... $ac_c" 1>&6
+echo "configure:5437: checking for main in -l$fftwname" >&5
+ac_lib_var=`echo $fftwname'_'main | sed 'y%./+-%__p_%'`
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ ac_save_LIBS="$LIBS"
+LIBS="-l$fftwname $LIBS"
+cat > conftest.$ac_ext <<EOF
+#line 5445 "configure"
+#include "confdefs.h"
+
+int main() {
+main()
+; return 0; }
+EOF
+if { (eval echo configure:5452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_lib_$ac_lib_var=yes"
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ eval "ac_cv_lib_$ac_lib_var=no"
+fi
+rm -f conftest*
+LIBS="$ac_save_LIBS"
+
+fi
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ ac_tr_lib=HAVE_LIB`echo $fftwname | sed -e 's/[^a-zA-Z0-9_]/_/g' \
+ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
+ cat >> confdefs.h <<EOF
+#define $ac_tr_lib 1
+EOF
+
+ LIBS="-l$fftwname $LIBS"
+
+else
+ echo "$ac_t""no" 1>&6
+{ echo "configure: error: Can't find a library to match the $fftwname header" 1>&2; exit 1; }
+fi
+
+ac_fftw_savedprefix=$usedprefix
+ac_fftw_firstname=$fftwname
+
+else
+
+fftwname=${ac_fftw_savedprefix}rfftw_mpi
+echo $ac_n "checking for $fftwname.h""... $ac_c" 1>&6
+echo "configure:5487: checking for $fftwname.h" >&5
+cat > conftest.$ac_ext <<EOF
+#line 5489 "configure"
+#include "confdefs.h"
+#include <$fftwname.h>
+int main() {
+
+; return 0; }
+EOF
+if { (eval echo configure:5496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+ echo "$ac_t""yes" 1>&6
+echo $ac_n "checking for main in -l$fftwname""... $ac_c" 1>&6
+echo "configure:5500: checking for main in -l$fftwname" >&5
+ac_lib_var=`echo $fftwname'_'main | sed 'y%./+-%__p_%'`
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ ac_save_LIBS="$LIBS"
+LIBS="-l$fftwname $LIBS"
+cat > conftest.$ac_ext <<EOF
+#line 5508 "configure"
+#include "confdefs.h"
+
+int main() {
+main()
+; return 0; }
+EOF
+if { (eval echo configure:5515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_lib_$ac_lib_var=yes"
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ eval "ac_cv_lib_$ac_lib_var=no"
+fi
+rm -f conftest*
+LIBS="$ac_save_LIBS"
+
+fi
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ ac_tr_lib=HAVE_LIB`echo $fftwname | sed -e 's/^a-zA-Z0-9_/_/g' \
+ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
+ cat >> confdefs.h <<EOF
+#define $ac_tr_lib 1
+EOF
+
+ LIBS="-l$fftwname $LIBS"
+
+else
+ echo "$ac_t""no" 1>&6
+{ echo "configure: error: Can't find a library to match the $fftwname header" 1>&2; exit 1; }
+fi
+
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+
+echo "$ac_t""no" 1>&6
+{ echo "configure: error: Cant find $fftwname.h header. Make sure all your fftw prefixes match - we already use $ac_fftw_firstname.h" 1>&2; exit 1; }
+
+fi
+rm -f conftest*
+
+fi
+
+
+fi
+
+case ${ac_fftw_savedprefix} in
+ d) cat >> confdefs.h <<\EOF
+#define FFTW_NAME_DFFTW
+EOF
+ ;;
+ s) cat >> confdefs.h <<\EOF
+#define FFTW_NAME_SFFTW
+EOF
+ ;;
+ *) cat >> confdefs.h <<\EOF
+#define FFTW_NAME_FFTW
+EOF
+ ;;
+esac
+
+######
+# check for xtc headers
+for ac_hdr in rpc/rpc.h rpc/xdr.h
+do
+ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
+echo "configure:5580: checking for $ac_hdr" >&5
+if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ cat > conftest.$ac_ext <<EOF
+#line 5585 "configure"
+#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:4954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:5590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
-
-else
- echo "$ac_t""no" 1>&6
-{ echo "configure: error: RPC/XDR include headers not found" 1>&2; exit 1; }
-fi
-done
-
-# check for xtc libs
-# on solaris the xdr stuff is in -lnsl
- echo $ac_n "checking for xdr_float in -lnsl""... $ac_c" 1>&6
-echo "configure:4984: checking for xdr_float in -lnsl" >&5
+ # check for xtc libs if we found headers - on solaris the xdr stuff is in libnsl
+echo $ac_n "checking for xdr_float in -lnsl""... $ac_c" 1>&6
+echo "configure:5612: checking for xdr_float in -lnsl" >&5
ac_lib_var=`echo nsl'_'xdr_float | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
ac_save_LIBS="$LIBS"
LIBS="-lnsl $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 4992 "configure"
+#line 5620 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
xdr_float()
; return 0; }
EOF
-if { (eval echo configure:5003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "$ac_t""no" 1>&6
fi
- cat > conftest.$ac_ext <<EOF
-#line 5031 "configure"
+cat > conftest.$ac_ext <<EOF
+#line 5659 "configure"
#include "confdefs.h"
#include<rpc/rpc.h>
- #include<rpc/xdr.h>
+#include<rpc/xdr.h>
int main() {
XDR *xd; float f; xdr_float(xd,&f);
; return 0; }
EOF
-if { (eval echo configure:5039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- :
+if { (eval echo configure:5667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ have_xdr=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
- { echo "configure: error: RPC/XDR libraries not found" 1>&2; exit 1; }
+ echo "configure: warning: RPC/XDR libraries not found - disabling xtc" 1>&2
fi
rm -f conftest*
-
-if true; then
- GMX_USE_XDR_TRUE=
- GMX_USE_XDR_FALSE='#'
else
- GMX_USE_XDR_TRUE='#'
- GMX_USE_XDR_FALSE=
+ echo "$ac_t""no" 1>&6
+echo "configure: warning: RPC/XDR include headers not found - disabling xtc" 1>&2
fi
+done
+
+
+if test "$have_xdr" != "yes"; then
+ echo "*****************************************************************************"
+ echo "*WARNING - XDR not found. This cripples GROMACS significantly - you can't *"
+ echo "*read/write portable trajectories. No choice on windows, but locate the RPC *"
+ echo "*header files and libraries if you run UNIX - they do exist! *"
+ echo "*****************************************************************************"
fi
#####
-# Look for X
-# If we find X, set shell vars x_includes and x_libraries to the
-# paths, otherwise set no_x=yes.
-# Uses ac_ vars as temps to allow command line to override cache and checks.
-# --without-x overrides everything else, but does not touch the cache.
-echo $ac_n "checking for X""... $ac_c" 1>&6
-echo "configure:5066: checking for X" >&5
-
-# Check whether --with-x or --without-x was given.
-if test "${with_x+set}" = set; then
- withval="$with_x"
- :
-fi
-
-# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
-if test "x$with_x" = xno; then
- # The user explicitly disabled X.
- have_x=disabled
-else
- if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
- # Both variables are already set.
- have_x=yes
- else
-if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
+# Checks for additional and/or optional functions or libraries.
+#AC_FUNC_MALLOC
+echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
+echo "configure:5697: checking for 8-bit clean memcmp" >&5
+if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- # One or both of the vars are not set, and there is no cached value.
-ac_x_includes=NO ac_x_libraries=NO
-rm -fr conftestdir
-if mkdir conftestdir; then
- cd conftestdir
- # Make sure to not put "make" in the Imakefile rules, since we grep it out.
- cat > Imakefile <<'EOF'
-acfindx:
- @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
+ if test "$cross_compiling" = yes; then
+ ac_cv_func_memcmp_clean=no
+else
+ cat > conftest.$ac_ext <<EOF
+#line 5705 "configure"
+#include "confdefs.h"
+
+main()
+{
+ char c0 = 0x40, c1 = 0x80, c2 = 0x81;
+ exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
+}
+
EOF
- if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
- # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
- eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
- # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
- for ac_extension in a so sl; do
- if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
- test -f $ac_im_libdir/libX11.$ac_extension; then
- ac_im_usrlibdir=$ac_im_libdir; break
- fi
- done
- # Screen out bogus values from the imake configuration. They are
- # bogus both because they are the default anyway, and because
- # using them would break gcc on systems where it needs fixed includes.
- case "$ac_im_incroot" in
- /usr/include) ;;
- *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
- esac
- case "$ac_im_usrlibdir" in
- /usr/lib | /lib) ;;
- *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
- esac
- fi
- cd ..
- rm -fr conftestdir
+if { (eval echo configure:5715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+then
+ ac_cv_func_memcmp_clean=yes
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -fr conftest*
+ ac_cv_func_memcmp_clean=no
+fi
+rm -fr conftest*
fi
-if test "$ac_x_includes" = NO; then
- # Guess where to find include files, by looking for this one X11 .h file.
- test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
+fi
- # First, try using that file with no special directory specified.
-cat > conftest.$ac_ext <<EOF
-#line 5128 "configure"
+echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
+test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
+
+echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
+echo "configure:5733: checking return type of signal handlers" >&5
+if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ cat > conftest.$ac_ext <<EOF
+#line 5738 "configure"
#include "confdefs.h"
-#include <$x_direct_test_include>
+#include <sys/types.h>
+#include <signal.h>
+#ifdef signal
+#undef signal
+#endif
+#ifdef __cplusplus
+extern "C" void (*signal (int, void (*)(int)))(int);
+#else
+void (*signal ()) ();
+#endif
+
+int main() {
+int i;
+; return 0; }
EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:5133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
+if { (eval echo configure:5755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
- # We can compile using X headers with no special include directory.
-ac_x_includes=
+ ac_cv_type_signal=void
else
- echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
- # Look for the header file in a standard set of common directories.
-# Check X11 before X11Rn because it is often a symlink to the current release.
- for ac_dir in \
- /usr/X11/include \
- /usr/X11R6/include \
- /usr/X11R5/include \
- /usr/X11R4/include \
- \
- /usr/include/X11 \
- /usr/include/X11R6 \
- /usr/include/X11R5 \
- /usr/include/X11R4 \
- \
- /usr/local/X11/include \
- /usr/local/X11R6/include \
- /usr/local/X11R5/include \
- /usr/local/X11R4/include \
- \
- /usr/local/include/X11 \
- /usr/local/include/X11R6 \
- /usr/local/include/X11R5 \
- /usr/local/include/X11R4 \
- \
- /usr/X386/include \
- /usr/x386/include \
- /usr/XFree86/include/X11 \
- \
- /usr/include \
- /usr/local/include \
- /usr/unsupported/include \
- /usr/athena/include \
- /usr/local/x11r5/include \
- /usr/lpp/Xamples/include \
- \
- /usr/openwin/include \
- /usr/openwin/share/include \
- ; \
- do
- if test -r "$ac_dir/$x_direct_test_include"; then
- ac_x_includes=$ac_dir
- break
- fi
- done
+ ac_cv_type_signal=int
fi
rm -f conftest*
-fi # $ac_x_includes = NO
+fi
-if test "$ac_x_libraries" = NO; then
- # Check for the libraries.
+echo "$ac_t""$ac_cv_type_signal" 1>&6
+cat >> confdefs.h <<EOF
+#define RETSIGTYPE $ac_cv_type_signal
+EOF
- test -z "$x_direct_test_library" && x_direct_test_library=Xt
- test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
- # See if we find them without any special options.
- # Don't add to $LIBS permanently.
- ac_save_LIBS="$LIBS"
- LIBS="-l$x_direct_test_library $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 5202 "configure"
+echo $ac_n "checking for vprintf""... $ac_c" 1>&6
+echo "configure:5774: checking for vprintf" >&5
+if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ cat > conftest.$ac_ext <<EOF
+#line 5779 "configure"
#include "confdefs.h"
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char vprintf(); below. */
+#include <assert.h>
+/* Override any gcc2 internal prototype to avoid an error. */
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char vprintf();
int main() {
-${x_direct_test_function}()
+
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined (__stub_vprintf) || defined (__stub___vprintf)
+choke me
+#else
+vprintf();
+#endif
+
; return 0; }
EOF
-if { (eval echo configure:5209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
- LIBS="$ac_save_LIBS"
-# We can link X programs with no special library path.
-ac_x_libraries=
+ eval "ac_cv_func_vprintf=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
- LIBS="$ac_save_LIBS"
-# First see if replacing the include by lib works.
-# Check X11 before X11Rn because it is often a symlink to the current release.
-for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
- /usr/X11/lib \
- /usr/X11R6/lib \
- /usr/X11R5/lib \
- /usr/X11R4/lib \
- \
- /usr/lib/X11 \
- /usr/lib/X11R6 \
- /usr/lib/X11R5 \
- /usr/lib/X11R4 \
- \
- /usr/local/X11/lib \
- /usr/local/X11R6/lib \
- /usr/local/X11R5/lib \
- /usr/local/X11R4/lib \
- \
- /usr/local/lib/X11 \
- /usr/local/lib/X11R6 \
- /usr/local/lib/X11R5 \
- /usr/local/lib/X11R4 \
- \
- /usr/X386/lib \
- /usr/x386/lib \
- /usr/XFree86/lib/X11 \
- \
- /usr/lib \
- /usr/local/lib \
- /usr/unsupported/lib \
- /usr/athena/lib \
- /usr/local/x11r5/lib \
- /usr/lpp/Xamples/lib \
- /lib/usr/lib/X11 \
- \
- /usr/openwin/lib \
- /usr/openwin/share/lib \
- ; \
-do
- for ac_extension in a so sl; do
- if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
- ac_x_libraries=$ac_dir
- break 2
- fi
- done
-done
+ eval "ac_cv_func_vprintf=no"
fi
rm -f conftest*
-fi # $ac_x_libraries = NO
+fi
+
+if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ cat >> confdefs.h <<\EOF
+#define HAVE_VPRINTF 1
+EOF
-if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
- # Didn't find X anywhere. Cache the known absence of X.
- ac_cv_have_x="have_x=no"
else
- # Record where we found X for the cache.
- ac_cv_have_x="have_x=yes \
- ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
+ echo "$ac_t""no" 1>&6
fi
-fi
- fi
- eval "$ac_cv_have_x"
-fi # $with_x != no
-
-if test "$have_x" != yes; then
- echo "$ac_t""$have_x" 1>&6
- no_x=yes
-else
- # If each of the values was on the command line, it overrides each guess.
- test "x$x_includes" = xNONE && x_includes=$ac_x_includes
- test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
- # Update the cache value to reflect the command line values.
- ac_cv_have_x="have_x=yes \
- ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
- echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
-fi
-
-if test "$no_x" = yes; then
- # Not all programs may use this symbol, but it does not hurt to define it.
- cat >> confdefs.h <<\EOF
-#define X_DISPLAY_MISSING 1
-EOF
-
- X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
-else
- if test -n "$x_includes"; then
- X_CFLAGS="$X_CFLAGS -I$x_includes"
- fi
-
- # It would also be nice to do this for all -L options, not just this one.
- if test -n "$x_libraries"; then
- X_LIBS="$X_LIBS -L$x_libraries"
- # For Solaris; some versions of Sun CC require a space after -R and
- # others require no space. Words are not sufficient . . . .
- case "`(uname -sr) 2>/dev/null`" in
- "SunOS 5"*)
- echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
-echo "configure:5315: checking whether -R must be followed by a space" >&5
- ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
- cat > conftest.$ac_ext <<EOF
-#line 5318 "configure"
-#include "confdefs.h"
-
-int main() {
-
-; return 0; }
-EOF
-if { (eval echo configure:5325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- ac_R_nospace=yes
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_R_nospace=no
-fi
-rm -f conftest*
- if test $ac_R_nospace = yes; then
- echo "$ac_t""no" 1>&6
- X_LIBS="$X_LIBS -R$x_libraries"
- else
- LIBS="$ac_xsave_LIBS -R $x_libraries"
- cat > conftest.$ac_ext <<EOF
-#line 5341 "configure"
-#include "confdefs.h"
-
-int main() {
-; return 0; }
-EOF
-if { (eval echo configure:5348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- ac_R_space=yes
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_R_space=no
-fi
-rm -f conftest*
- if test $ac_R_space = yes; then
- echo "$ac_t""yes" 1>&6
- X_LIBS="$X_LIBS -R $x_libraries"
- else
- echo "$ac_t""neither works" 1>&6
- fi
- fi
- LIBS="$ac_xsave_LIBS"
- esac
- fi
-
- # Check for system-dependent libraries X programs must link with.
- # Do this before checking for the system-independent R6 libraries
- # (-lICE), since we may need -lsocket or whatever for X linking.
-
- if test "$ISC" = yes; then
- X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
- else
- # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
- # libraries were built with DECnet support. And karl@cs.umb.edu says
- # the Alpha needs dnet_stub (dnet does not exist).
- echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
-echo "configure:5380: checking for dnet_ntoa in -ldnet" >&5
-ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+if test "$ac_cv_func_vprintf" != yes; then
+echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
+echo "configure:5826: checking for _doprnt" >&5
+if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- ac_save_LIBS="$LIBS"
-LIBS="-ldnet $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 5388 "configure"
+ cat > conftest.$ac_ext <<EOF
+#line 5831 "configure"
#include "confdefs.h"
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char _doprnt(); below. */
+#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char dnet_ntoa();
+char _doprnt();
int main() {
-dnet_ntoa()
+
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined (__stub__doprnt) || defined (__stub____doprnt)
+choke me
+#else
+_doprnt();
+#endif
+
; return 0; }
EOF
-if { (eval echo configure:5399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
+ eval "ac_cv_func__doprnt=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
+ eval "ac_cv_func__doprnt=no"
fi
rm -f conftest*
-LIBS="$ac_save_LIBS"
-
fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+
+if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
echo "$ac_t""yes" 1>&6
- X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
+ cat >> confdefs.h <<\EOF
+#define HAVE_DOPRNT 1
+EOF
+
else
echo "$ac_t""no" 1>&6
fi
- if test $ac_cv_lib_dnet_dnet_ntoa = no; then
- echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
-echo "configure:5421: checking for dnet_ntoa in -ldnet_stub" >&5
-ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- ac_save_LIBS="$LIBS"
-LIBS="-ldnet_stub $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 5429 "configure"
-#include "confdefs.h"
-/* Override any gcc2 internal prototype to avoid an error. */
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char dnet_ntoa();
+fi
-int main() {
-dnet_ntoa()
-; return 0; }
+echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&6
+echo "configure:5879: checking if malloc debugging is wanted" >&5
+# Check whether --with-dmalloc or --without-dmalloc was given.
+if test "${with_dmalloc+set}" = set; then
+ withval="$with_dmalloc"
+ if test "$withval" = yes; then
+ echo "$ac_t""yes" 1>&6
+ cat >> confdefs.h <<\EOF
+#define WITH_DMALLOC 1
EOF
-if { (eval echo configure:5440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
+ LIBS="$LIBS -ldmalloc"
+ LDFLAGS="$LDFLAGS -g"
+else
+ echo "$ac_t""no" 1>&6
fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
else
echo "$ac_t""no" 1>&6
fi
- fi
- # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
- # to get the SysV transport functions.
- # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
- # needs -lnsl.
- # The nsl library prevents programs from opening the X display
- # on Irix 5.2, according to dickey@clark.net.
- echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
-echo "configure:5469: checking for gethostbyname" >&5
-if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
+for ac_func in strcasecmp
+do
+echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+echo "configure:5902: checking for $ac_func" >&5
+if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5474 "configure"
+#line 5907 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char gethostbyname(); below. */
+ which can conflict with char $ac_func(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char gethostbyname();
+char $ac_func();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
-#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
+#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
-gethostbyname();
+$ac_func();
#endif
; return 0; }
EOF
-if { (eval echo configure:5497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
- eval "ac_cv_func_gethostbyname=yes"
+ eval "ac_cv_func_$ac_func=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
- eval "ac_cv_func_gethostbyname=no"
+ eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi
-if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
+if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
echo "$ac_t""yes" 1>&6
- :
+ ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ cat >> confdefs.h <<EOF
+#define $ac_tr_func 1
+EOF
+
else
echo "$ac_t""no" 1>&6
fi
+done
- if test $ac_cv_func_gethostbyname = no; then
- echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
-echo "configure:5518: checking for gethostbyname in -lnsl" >&5
-ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+for ac_func in strdup
+do
+echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+echo "configure:5957: checking for $ac_func" >&5
+if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- ac_save_LIBS="$LIBS"
-LIBS="-lnsl $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 5526 "configure"
+ cat > conftest.$ac_ext <<EOF
+#line 5962 "configure"
#include "confdefs.h"
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func(); below. */
+#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char gethostbyname();
+char $ac_func();
int main() {
-gethostbyname()
+
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+choke me
+#else
+$ac_func();
+#endif
+
; return 0; }
EOF
-if { (eval echo configure:5537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
+ eval "ac_cv_func_$ac_func=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
+ eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
-LIBS="$ac_save_LIBS"
-
fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+
+if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
echo "$ac_t""yes" 1>&6
- X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
+ ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ cat >> confdefs.h <<EOF
+#define $ac_tr_func 1
+EOF
+
else
echo "$ac_t""no" 1>&6
fi
+done
- fi
- # lieder@skyler.mavd.honeywell.com says without -lsocket,
- # socket/setsockopt and other routines are undefined under SCO ODT
- # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
- # on later versions), says simon@lia.di.epfl.ch: it contains
- # gethostby* variants that don't use the nameserver (or something).
- # -lsocket must be given before -lnsl if both are needed.
- # We assume that if connect needs -lnsl, so does gethostbyname.
- echo $ac_n "checking for connect""... $ac_c" 1>&6
-echo "configure:5567: checking for connect" >&5
-if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
+#####
+# Look for X
+# If we find X, set shell vars x_includes and x_libraries to the
+# paths, otherwise set no_x=yes.
+# Uses ac_ vars as temps to allow command line to override cache and checks.
+# --without-x overrides everything else, but does not touch the cache.
+echo $ac_n "checking for X""... $ac_c" 1>&6
+echo "configure:6017: checking for X" >&5
+
+# Check whether --with-x or --without-x was given.
+if test "${with_x+set}" = set; then
+ withval="$with_x"
+ :
+fi
+
+# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
+if test "x$with_x" = xno; then
+ # The user explicitly disabled X.
+ have_x=disabled
+else
+ if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
+ # Both variables are already set.
+ have_x=yes
+ else
+if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- cat > conftest.$ac_ext <<EOF
-#line 5572 "configure"
-#include "confdefs.h"
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char connect(); below. */
-#include <assert.h>
-/* Override any gcc2 internal prototype to avoid an error. */
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char connect();
-
-int main() {
+ # One or both of the vars are not set, and there is no cached value.
+ac_x_includes=NO ac_x_libraries=NO
+rm -fr conftestdir
+if mkdir conftestdir; then
+ cd conftestdir
+ # Make sure to not put "make" in the Imakefile rules, since we grep it out.
+ cat > Imakefile <<'EOF'
+acfindx:
+ @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
+EOF
+ if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
+ # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
+ eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
+ # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
+ for ac_extension in a so sl; do
+ if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
+ test -f $ac_im_libdir/libX11.$ac_extension; then
+ ac_im_usrlibdir=$ac_im_libdir; break
+ fi
+ done
+ # Screen out bogus values from the imake configuration. They are
+ # bogus both because they are the default anyway, and because
+ # using them would break gcc on systems where it needs fixed includes.
+ case "$ac_im_incroot" in
+ /usr/include) ;;
+ *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
+ esac
+ case "$ac_im_usrlibdir" in
+ /usr/lib | /lib) ;;
+ *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
+ esac
+ fi
+ cd ..
+ rm -fr conftestdir
+fi
-/* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
-#if defined (__stub_connect) || defined (__stub___connect)
-choke me
-#else
-connect();
-#endif
+if test "$ac_x_includes" = NO; then
+ # Guess where to find include files, by looking for this one X11 .h file.
+ test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
-; return 0; }
+ # First, try using that file with no special directory specified.
+cat > conftest.$ac_ext <<EOF
+#line 6079 "configure"
+#include "confdefs.h"
+#include <$x_direct_test_include>
EOF
-if { (eval echo configure:5595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+{ (eval echo configure:6084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+if test -z "$ac_err"; then
rm -rf conftest*
- eval "ac_cv_func_connect=yes"
+ # We can compile using X headers with no special include directory.
+ac_x_includes=
else
+ echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
- eval "ac_cv_func_connect=no"
+ # Look for the header file in a standard set of common directories.
+# Check X11 before X11Rn because it is often a symlink to the current release.
+ for ac_dir in \
+ /usr/X11/include \
+ /usr/X11R6/include \
+ /usr/X11R5/include \
+ /usr/X11R4/include \
+ \
+ /usr/include/X11 \
+ /usr/include/X11R6 \
+ /usr/include/X11R5 \
+ /usr/include/X11R4 \
+ \
+ /usr/local/X11/include \
+ /usr/local/X11R6/include \
+ /usr/local/X11R5/include \
+ /usr/local/X11R4/include \
+ \
+ /usr/local/include/X11 \
+ /usr/local/include/X11R6 \
+ /usr/local/include/X11R5 \
+ /usr/local/include/X11R4 \
+ \
+ /usr/X386/include \
+ /usr/x386/include \
+ /usr/XFree86/include/X11 \
+ \
+ /usr/include \
+ /usr/local/include \
+ /usr/unsupported/include \
+ /usr/athena/include \
+ /usr/local/x11r5/include \
+ /usr/lpp/Xamples/include \
+ \
+ /usr/openwin/include \
+ /usr/openwin/share/include \
+ ; \
+ do
+ if test -r "$ac_dir/$x_direct_test_include"; then
+ ac_x_includes=$ac_dir
+ break
+ fi
+ done
fi
rm -f conftest*
-fi
+fi # $ac_x_includes = NO
-if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
-else
- echo "$ac_t""no" 1>&6
-fi
+if test "$ac_x_libraries" = NO; then
+ # Check for the libraries.
- if test $ac_cv_func_connect = no; then
- echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
-echo "configure:5616: checking for connect in -lsocket" >&5
-ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
+ test -z "$x_direct_test_library" && x_direct_test_library=Xt
+ test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
+
+ # See if we find them without any special options.
+ # Don't add to $LIBS permanently.
ac_save_LIBS="$LIBS"
-LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
+ LIBS="-l$x_direct_test_library $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 5624 "configure"
+#line 6153 "configure"
#include "confdefs.h"
-/* Override any gcc2 internal prototype to avoid an error. */
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char connect();
int main() {
-connect()
+${x_direct_test_function}()
; return 0; }
EOF
-if { (eval echo configure:5635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:6160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
+ LIBS="$ac_save_LIBS"
+# We can link X programs with no special library path.
+ac_x_libraries=
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
+ LIBS="$ac_save_LIBS"
+# First see if replacing the include by lib works.
+# Check X11 before X11Rn because it is often a symlink to the current release.
+for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
+ /usr/X11/lib \
+ /usr/X11R6/lib \
+ /usr/X11R5/lib \
+ /usr/X11R4/lib \
+ \
+ /usr/lib/X11 \
+ /usr/lib/X11R6 \
+ /usr/lib/X11R5 \
+ /usr/lib/X11R4 \
+ \
+ /usr/local/X11/lib \
+ /usr/local/X11R6/lib \
+ /usr/local/X11R5/lib \
+ /usr/local/X11R4/lib \
+ \
+ /usr/local/lib/X11 \
+ /usr/local/lib/X11R6 \
+ /usr/local/lib/X11R5 \
+ /usr/local/lib/X11R4 \
+ \
+ /usr/X386/lib \
+ /usr/x386/lib \
+ /usr/XFree86/lib/X11 \
+ \
+ /usr/lib \
+ /usr/local/lib \
+ /usr/unsupported/lib \
+ /usr/athena/lib \
+ /usr/local/x11r5/lib \
+ /usr/lpp/Xamples/lib \
+ /lib/usr/lib/X11 \
+ \
+ /usr/openwin/lib \
+ /usr/openwin/share/lib \
+ ; \
+do
+ for ac_extension in a so sl; do
+ if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
+ ac_x_libraries=$ac_dir
+ break 2
+ fi
+ done
+done
fi
rm -f conftest*
-LIBS="$ac_save_LIBS"
+fi # $ac_x_libraries = NO
+if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
+ # Didn't find X anywhere. Cache the known absence of X.
+ ac_cv_have_x="have_x=no"
+else
+ # Record where we found X for the cache.
+ ac_cv_have_x="have_x=yes \
+ ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
+fi
+ fi
+ eval "$ac_cv_have_x"
+fi # $with_x != no
+
+if test "$have_x" != yes; then
+ echo "$ac_t""$have_x" 1>&6
+ no_x=yes
else
- echo "$ac_t""no" 1>&6
+ # If each of the values was on the command line, it overrides each guess.
+ test "x$x_includes" = xNONE && x_includes=$ac_x_includes
+ test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
+ # Update the cache value to reflect the command line values.
+ ac_cv_have_x="have_x=yes \
+ ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
+ echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
fi
- fi
+if test "$no_x" = yes; then
+ # Not all programs may use this symbol, but it does not hurt to define it.
+ cat >> confdefs.h <<\EOF
+#define X_DISPLAY_MISSING 1
+EOF
- # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
- echo $ac_n "checking for remove""... $ac_c" 1>&6
-echo "configure:5659: checking for remove" >&5
-if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
+ X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
+else
+ if test -n "$x_includes"; then
+ X_CFLAGS="$X_CFLAGS -I$x_includes"
+ fi
+
+ # It would also be nice to do this for all -L options, not just this one.
+ if test -n "$x_libraries"; then
+ X_LIBS="$X_LIBS -L$x_libraries"
+ # For Solaris; some versions of Sun CC require a space after -R and
+ # others require no space. Words are not sufficient . . . .
+ case "`(uname -sr) 2>/dev/null`" in
+ "SunOS 5"*)
+ echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
+echo "configure:6266: checking whether -R must be followed by a space" >&5
+ ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
+ cat > conftest.$ac_ext <<EOF
+#line 6269 "configure"
+#include "confdefs.h"
+
+int main() {
+
+; return 0; }
+EOF
+if { (eval echo configure:6276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ ac_R_nospace=yes
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ ac_R_nospace=no
+fi
+rm -f conftest*
+ if test $ac_R_nospace = yes; then
+ echo "$ac_t""no" 1>&6
+ X_LIBS="$X_LIBS -R$x_libraries"
+ else
+ LIBS="$ac_xsave_LIBS -R $x_libraries"
+ cat > conftest.$ac_ext <<EOF
+#line 6292 "configure"
+#include "confdefs.h"
+
+int main() {
+
+; return 0; }
+EOF
+if { (eval echo configure:6299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ ac_R_space=yes
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ ac_R_space=no
+fi
+rm -f conftest*
+ if test $ac_R_space = yes; then
+ echo "$ac_t""yes" 1>&6
+ X_LIBS="$X_LIBS -R $x_libraries"
+ else
+ echo "$ac_t""neither works" 1>&6
+ fi
+ fi
+ LIBS="$ac_xsave_LIBS"
+ esac
+ fi
+
+ # Check for system-dependent libraries X programs must link with.
+ # Do this before checking for the system-independent R6 libraries
+ # (-lICE), since we may need -lsocket or whatever for X linking.
+
+ if test "$ISC" = yes; then
+ X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
+ else
+ # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
+ # libraries were built with DECnet support. And karl@cs.umb.edu says
+ # the Alpha needs dnet_stub (dnet does not exist).
+ echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
+echo "configure:6331: checking for dnet_ntoa in -ldnet" >&5
+ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- cat > conftest.$ac_ext <<EOF
-#line 5664 "configure"
+ ac_save_LIBS="$LIBS"
+LIBS="-ldnet $LIBS"
+cat > conftest.$ac_ext <<EOF
+#line 6339 "configure"
#include "confdefs.h"
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char remove(); below. */
-#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char remove();
+char dnet_ntoa();
int main() {
-
-/* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
-#if defined (__stub_remove) || defined (__stub___remove)
-choke me
-#else
-remove();
-#endif
-
+dnet_ntoa()
; return 0; }
EOF
-if { (eval echo configure:5687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:6350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
- eval "ac_cv_func_remove=yes"
+ eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
- eval "ac_cv_func_remove=no"
+ eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
-fi
+LIBS="$ac_save_LIBS"
-if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
+fi
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
- :
+ X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
else
echo "$ac_t""no" 1>&6
fi
- if test $ac_cv_func_remove = no; then
- echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
-echo "configure:5708: checking for remove in -lposix" >&5
-ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
+ if test $ac_cv_lib_dnet_dnet_ntoa = no; then
+ echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
+echo "configure:6372: checking for dnet_ntoa in -ldnet_stub" >&5
+ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
-LIBS="-lposix $LIBS"
+LIBS="-ldnet_stub $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 5716 "configure"
+#line 6380 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char remove();
+char dnet_ntoa();
int main() {
-remove()
+dnet_ntoa()
; return 0; }
EOF
-if { (eval echo configure:5727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:6391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
- X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
+ X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
else
echo "$ac_t""no" 1>&6
fi
fi
- # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
- echo $ac_n "checking for shmat""... $ac_c" 1>&6
-echo "configure:5751: checking for shmat" >&5
-if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
+ # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
+ # to get the SysV transport functions.
+ # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
+ # needs -lnsl.
+ # The nsl library prevents programs from opening the X display
+ # on Irix 5.2, according to dickey@clark.net.
+ echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
+echo "configure:6420: checking for gethostbyname" >&5
+if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5756 "configure"
+#line 6425 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char shmat(); below. */
+ which can conflict with char gethostbyname(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char shmat();
+char gethostbyname();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
-#if defined (__stub_shmat) || defined (__stub___shmat)
+#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
choke me
#else
-shmat();
+gethostbyname();
#endif
; return 0; }
EOF
-if { (eval echo configure:5779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:6448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
- eval "ac_cv_func_shmat=yes"
+ eval "ac_cv_func_gethostbyname=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
- eval "ac_cv_func_shmat=no"
+ eval "ac_cv_func_gethostbyname=no"
fi
rm -f conftest*
fi
-if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
+if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
echo "$ac_t""yes" 1>&6
:
else
echo "$ac_t""no" 1>&6
fi
- if test $ac_cv_func_shmat = no; then
- echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
-echo "configure:5800: checking for shmat in -lipc" >&5
-ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
+ if test $ac_cv_func_gethostbyname = no; then
+ echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
+echo "configure:6469: checking for gethostbyname in -lnsl" >&5
+ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
-LIBS="-lipc $LIBS"
+LIBS="-lnsl $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 5808 "configure"
+#line 6477 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char shmat();
+char gethostbyname();
int main() {
-shmat()
+gethostbyname()
; return 0; }
EOF
-if { (eval echo configure:5819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:6488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
- X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
+ X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
else
echo "$ac_t""no" 1>&6
fi
fi
- fi
- # Check for libraries that X11R6 Xt/Xaw programs need.
- ac_save_LDFLAGS="$LDFLAGS"
- test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
- # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
- # check for ICE first), but we must link in the order -lSM -lICE or
- # we get undefined symbols. So assume we have SM if we have ICE.
- # These have to be linked with before -lX11, unlike the other
- # libraries we check for below, so use a different variable.
- # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
- echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
-echo "configure:5852: checking for IceConnectionNumber in -lICE" >&5
-ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
+ # lieder@skyler.mavd.honeywell.com says without -lsocket,
+ # socket/setsockopt and other routines are undefined under SCO ODT
+ # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
+ # on later versions), says simon@lia.di.epfl.ch: it contains
+ # gethostby* variants that don't use the nameserver (or something).
+ # -lsocket must be given before -lnsl if both are needed.
+ # We assume that if connect needs -lnsl, so does gethostbyname.
+ echo $ac_n "checking for connect""... $ac_c" 1>&6
+echo "configure:6518: checking for connect" >&5
+if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ cat > conftest.$ac_ext <<EOF
+#line 6523 "configure"
+#include "confdefs.h"
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char connect(); below. */
+#include <assert.h>
+/* Override any gcc2 internal prototype to avoid an error. */
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char connect();
+
+int main() {
+
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined (__stub_connect) || defined (__stub___connect)
+choke me
+#else
+connect();
+#endif
+
+; return 0; }
+EOF
+if { (eval echo configure:6546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_func_connect=yes"
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ eval "ac_cv_func_connect=no"
+fi
+rm -f conftest*
+fi
+
+if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ :
+else
+ echo "$ac_t""no" 1>&6
+fi
+
+ if test $ac_cv_func_connect = no; then
+ echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
+echo "configure:6567: checking for connect in -lsocket" >&5
+ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
-LIBS="-lICE $X_EXTRA_LIBS $LIBS"
+LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 5860 "configure"
+#line 6575 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char IceConnectionNumber();
+char connect();
int main() {
-IceConnectionNumber()
+connect()
; return 0; }
EOF
-if { (eval echo configure:5871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:6586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
- X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
+ X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
else
echo "$ac_t""no" 1>&6
fi
- LDFLAGS="$ac_save_LDFLAGS"
+ fi
-fi
+ # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
+ echo $ac_n "checking for remove""... $ac_c" 1>&6
+echo "configure:6610: checking for remove" >&5
+if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ cat > conftest.$ac_ext <<EOF
+#line 6615 "configure"
+#include "confdefs.h"
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char remove(); below. */
+#include <assert.h>
+/* Override any gcc2 internal prototype to avoid an error. */
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char remove();
+int main() {
-# try to find motif headers and libraries
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined (__stub_remove) || defined (__stub___remove)
+choke me
+#else
+remove();
+#endif
+
+; return 0; }
+EOF
+if { (eval echo configure:6638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_func_remove=yes"
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ eval "ac_cv_func_remove=no"
+fi
+rm -f conftest*
+fi
+
+if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ :
+else
+ echo "$ac_t""no" 1>&6
+fi
+
+ if test $ac_cv_func_remove = no; then
+ echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
+echo "configure:6659: checking for remove in -lposix" >&5
+ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ ac_save_LIBS="$LIBS"
+LIBS="-lposix $LIBS"
+cat > conftest.$ac_ext <<EOF
+#line 6667 "configure"
+#include "confdefs.h"
+/* Override any gcc2 internal prototype to avoid an error. */
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char remove();
+
+int main() {
+remove()
+; return 0; }
+EOF
+if { (eval echo configure:6678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_lib_$ac_lib_var=yes"
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ eval "ac_cv_lib_$ac_lib_var=no"
+fi
+rm -f conftest*
+LIBS="$ac_save_LIBS"
+
+fi
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
+else
+ echo "$ac_t""no" 1>&6
+fi
+
+ fi
+
+ # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
+ echo $ac_n "checking for shmat""... $ac_c" 1>&6
+echo "configure:6702: checking for shmat" >&5
+if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ cat > conftest.$ac_ext <<EOF
+#line 6707 "configure"
+#include "confdefs.h"
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char shmat(); below. */
+#include <assert.h>
+/* Override any gcc2 internal prototype to avoid an error. */
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char shmat();
+
+int main() {
+
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined (__stub_shmat) || defined (__stub___shmat)
+choke me
+#else
+shmat();
+#endif
+
+; return 0; }
+EOF
+if { (eval echo configure:6730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_func_shmat=yes"
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ eval "ac_cv_func_shmat=no"
+fi
+rm -f conftest*
+fi
+
+if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ :
+else
+ echo "$ac_t""no" 1>&6
+fi
+
+ if test $ac_cv_func_shmat = no; then
+ echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
+echo "configure:6751: checking for shmat in -lipc" >&5
+ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ ac_save_LIBS="$LIBS"
+LIBS="-lipc $LIBS"
+cat > conftest.$ac_ext <<EOF
+#line 6759 "configure"
+#include "confdefs.h"
+/* Override any gcc2 internal prototype to avoid an error. */
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char shmat();
+
+int main() {
+shmat()
+; return 0; }
+EOF
+if { (eval echo configure:6770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_lib_$ac_lib_var=yes"
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ eval "ac_cv_lib_$ac_lib_var=no"
+fi
+rm -f conftest*
+LIBS="$ac_save_LIBS"
+
+fi
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
+else
+ echo "$ac_t""no" 1>&6
+fi
+
+ fi
+ fi
+
+ # Check for libraries that X11R6 Xt/Xaw programs need.
+ ac_save_LDFLAGS="$LDFLAGS"
+ test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
+ # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
+ # check for ICE first), but we must link in the order -lSM -lICE or
+ # we get undefined symbols. So assume we have SM if we have ICE.
+ # These have to be linked with before -lX11, unlike the other
+ # libraries we check for below, so use a different variable.
+ # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
+ echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
+echo "configure:6803: checking for IceConnectionNumber in -lICE" >&5
+ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ ac_save_LIBS="$LIBS"
+LIBS="-lICE $X_EXTRA_LIBS $LIBS"
+cat > conftest.$ac_ext <<EOF
+#line 6811 "configure"
+#include "confdefs.h"
+/* Override any gcc2 internal prototype to avoid an error. */
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char IceConnectionNumber();
+
+int main() {
+IceConnectionNumber()
+; return 0; }
+EOF
+if { (eval echo configure:6822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_lib_$ac_lib_var=yes"
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ eval "ac_cv_lib_$ac_lib_var=no"
+fi
+rm -f conftest*
+LIBS="$ac_save_LIBS"
+
+fi
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
+else
+ echo "$ac_t""no" 1>&6
+fi
+
+ LDFLAGS="$ac_save_LDFLAGS"
+
+fi
+
+# try to find motif headers and libraries
echo $ac_n "checking for Motif""... $ac_c" 1>&6
-echo "configure:5925: checking for Motif" >&5
+echo "configure:6875: checking for Motif" >&5
#
#
ac_cv_motif_includes="none"
cat > conftest.$ac_ext <<EOF
-#line 5949 "configure"
+#line 6899 "configure"
#include "confdefs.h"
#include <Xm/Xm.h>
int main() {
int a;
; return 0; }
EOF
-if { (eval echo configure:5956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:6906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
# Xm/Xm.h is in the standard search path.
#
ac_cv_motif_libraries="none"
cat > conftest.$ac_ext <<EOF
-#line 6021 "configure"
+#line 6971 "configure"
#include "confdefs.h"
#include <Xm/Xm.h>
int main() {
XtToolkitInitialize();
; return 0; }
EOF
-if { (eval echo configure:6028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:6978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
# libXm.a is in the standard search path.
test "$motif_includes_result" = "none" && motif_includes_result="(none)"
echo "$ac_t""libraries $motif_libraries_result, headers $motif_includes_result" 1>&6
-if test "$motif_includes" = "none" -a "$motif_libraries" != "none"; then
- echo "configure: warning: In addition to Motif/Lesstif libraries we also need includes. Disabling." 1>&2
- motif_include=none
+use_motif=no
+if test "$motif_libraries" != "none"; then
+ if test "$motif_includes" != "none"; then
+ GMXLIB_LIBOBJS="${GMXLIB_LIBOBJS} mgmx.lo widget.lo"
+ use_motif=yes
+ else
+ echo "configure: warning: Sorry, we need both Motif/Lesstif libraries and includes. Disabling." 1>&2
+ motif_include=none
+ fi
fi
+if test "$no_x" != "yes"; then
+ LIBS="$X_LIBS $LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
+ INCLUDES="$INCLUDES $X_CFLAGS $MOTIF_CFLAGS"
+
-if test "$motif_includes" != "none"; then
- use_motif="yes"
+if true; then
+ USE_X11_TRUE=
+ USE_X11_FALSE='#'
else
- use_motif="no"
+ USE_X11_TRUE='#'
+ USE_X11_FALSE=
fi
+else
+
+
+if false; then
+ USE_X11_TRUE=
+ USE_X11_FALSE='#'
+else
+ USE_X11_TRUE='#'
+ USE_X11_FALSE=
+fi
+fi
+
+####
+# And collect the f77 libs to the linker - on Solaris, f77 stuff must go first,
+# but on e.g. ibm the mass libraries must come before -lm...
+case "${host_cpu}-${host_os}" in
+ sparc*-solaris*) LIBS="$FLIBS $LIBS" ;;
+ *) LIBS="$LIBS $FLIBS" ;;
+esac
+
+
+
+
+
-#####
-# Checks for header files.
+
+
+########################################################################
+# Checks for header files and types
+########################################################################
for ac_hdr in limits.h malloc.h strings.h unistd.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:6135: checking for $ac_hdr" >&5
+echo "configure:7124: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 6140 "configure"
+#line 7129 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:6145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:7134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
fi
done
-
-#####
-# Checks for typedefs, structures, and compiler characteristics.
-echo $ac_n "checking for working const""... $ac_c" 1>&6
-echo "configure:6176: checking for working const" >&5
-if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
+for ac_hdr in unistd.h
+do
+ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
+echo "configure:7165: checking for $ac_hdr" >&5
+if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 6181 "configure"
+#line 7170 "configure"
#include "confdefs.h"
-
-int main() {
-
+#include <$ac_hdr>
+EOF
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+{ (eval echo configure:7175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+if test -z "$ac_err"; then
+ rm -rf conftest*
+ eval "ac_cv_header_$ac_safe=yes"
+else
+ echo "$ac_err" >&5
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ eval "ac_cv_header_$ac_safe=no"
+fi
+rm -f conftest*
+fi
+if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+ cat >> confdefs.h <<EOF
+#define $ac_tr_hdr 1
+EOF
+
+else
+ echo "$ac_t""no" 1>&6
+fi
+done
+
+
+#####
+# Checks for typedefs, structures, and compiler characteristics.
+echo $ac_n "checking for working const""... $ac_c" 1>&6
+echo "configure:7205: checking for working const" >&5
+if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ cat > conftest.$ac_ext <<EOF
+#line 7210 "configure"
+#include "confdefs.h"
+
+int main() {
+
/* Ultrix mips cc rejects this. */
typedef int charset[2]; const charset x;
/* SunOS 4.1.1 cc rejects this. */
; return 0; }
EOF
-if { (eval echo configure:6230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:7259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_c_const=yes
else
fi
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
-echo "configure:6251: checking for ANSI C header files" >&5
+echo "configure:7280: checking for ANSI C header files" >&5
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 6256 "configure"
+#line 7285 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
#include <float.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:6264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:7293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
if test $ac_cv_header_stdc = yes; then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
-#line 6281 "configure"
+#line 7310 "configure"
#include "confdefs.h"
#include <string.h>
EOF
if test $ac_cv_header_stdc = yes; then
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
-#line 6299 "configure"
-#include "confdefs.h"
-#include <stdlib.h>
-EOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "free" >/dev/null 2>&1; then
- :
-else
- rm -rf conftest*
- ac_cv_header_stdc=no
-fi
-rm -f conftest*
-
-fi
-
-if test $ac_cv_header_stdc = yes; then
- # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
-if test "$cross_compiling" = yes; then
- :
-else
- cat > conftest.$ac_ext <<EOF
-#line 6320 "configure"
-#include "confdefs.h"
-#include <ctype.h>
-#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
-#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
-#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
-int main () { int i; for (i = 0; i < 256; i++)
-if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
-exit (0); }
-
-EOF
-if { (eval echo configure:6331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
-then
- :
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_header_stdc=no
-fi
-rm -fr conftest*
-fi
-
-fi
-fi
-
-echo "$ac_t""$ac_cv_header_stdc" 1>&6
-if test $ac_cv_header_stdc = yes; then
- cat >> confdefs.h <<\EOF
-#define STDC_HEADERS 1
-EOF
-
-fi
-
-echo $ac_n "checking for size_t""... $ac_c" 1>&6
-echo "configure:6355: checking for size_t" >&5
-if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 6360 "configure"
+#line 7328 "configure"
#include "confdefs.h"
-#include <sys/types.h>
-#if STDC_HEADERS
#include <stdlib.h>
-#include <stddef.h>
-#endif
-EOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
- rm -rf conftest*
- ac_cv_type_size_t=yes
-else
- rm -rf conftest*
- ac_cv_type_size_t=no
-fi
-rm -f conftest*
-
-fi
-echo "$ac_t""$ac_cv_type_size_t" 1>&6
-if test $ac_cv_type_size_t = no; then
- cat >> confdefs.h <<\EOF
-#define size_t unsigned
-EOF
-
-fi
-
-echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
-echo "configure:6388: checking whether struct tm is in sys/time.h or time.h" >&5
-if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 6393 "configure"
-#include "confdefs.h"
-#include <sys/types.h>
-#include <time.h>
-int main() {
-struct tm *tp; tp->tm_sec;
-; return 0; }
-EOF
-if { (eval echo configure:6401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_struct_tm=time.h
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_struct_tm=sys/time.h
-fi
-rm -f conftest*
-fi
-
-echo "$ac_t""$ac_cv_struct_tm" 1>&6
-if test $ac_cv_struct_tm = sys/time.h; then
- cat >> confdefs.h <<\EOF
-#define TM_IN_SYS_TIME 1
-EOF
-
-fi
-
-echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
-echo "configure:6422: checking for uid_t in sys/types.h" >&5
-if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 6427 "configure"
-#include "confdefs.h"
-#include <sys/types.h>
-EOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "uid_t" >/dev/null 2>&1; then
- rm -rf conftest*
- ac_cv_type_uid_t=yes
-else
- rm -rf conftest*
- ac_cv_type_uid_t=no
-fi
-rm -f conftest*
-
-fi
-
-echo "$ac_t""$ac_cv_type_uid_t" 1>&6
-if test $ac_cv_type_uid_t = no; then
- cat >> confdefs.h <<\EOF
-#define uid_t int
-EOF
-
- cat >> confdefs.h <<\EOF
-#define gid_t int
-EOF
-
-fi
-
-echo $ac_n "checking for inline""... $ac_c" 1>&6
-echo "configure:6456: checking for inline" >&5
-if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- ac_cv_c_inline=no
-for ac_kw in inline __inline__ __inline; do
- cat > conftest.$ac_ext <<EOF
-#line 6463 "configure"
-#include "confdefs.h"
-
-int main() {
-} $ac_kw foo() {
-; return 0; }
-EOF
-if { (eval echo configure:6470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_c_inline=$ac_kw; break
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
-fi
-rm -f conftest*
-done
-
-fi
-
-echo "$ac_t""$ac_cv_c_inline" 1>&6
-case "$ac_cv_c_inline" in
- inline | yes) ;;
- no) cat >> confdefs.h <<\EOF
-#define inline
-EOF
- ;;
- *) cat >> confdefs.h <<EOF
-#define inline $ac_cv_c_inline
-EOF
- ;;
-esac
-
-
-#####
-# Checks for library functions.
-#AC_FUNC_MALLOC
-echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
-echo "configure:6500: checking for 8-bit clean memcmp" >&5
-if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- if test "$cross_compiling" = yes; then
- ac_cv_func_memcmp_clean=no
-else
- cat > conftest.$ac_ext <<EOF
-#line 6508 "configure"
-#include "confdefs.h"
-
-main()
-{
- char c0 = 0x40, c1 = 0x80, c2 = 0x81;
- exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
-}
-
EOF
-if { (eval echo configure:6518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
-then
- ac_cv_func_memcmp_clean=yes
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_func_memcmp_clean=no
-fi
-rm -fr conftest*
-fi
-
-fi
-
-echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
-test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
-
-echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
-echo "configure:6536: checking return type of signal handlers" >&5
-if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 6541 "configure"
-#include "confdefs.h"
-#include <sys/types.h>
-#include <signal.h>
-#ifdef signal
-#undef signal
-#endif
-#ifdef __cplusplus
-extern "C" void (*signal (int, void (*)(int)))(int);
-#else
-void (*signal ()) ();
-#endif
-
-int main() {
-int i;
-; return 0; }
-EOF
-if { (eval echo configure:6558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_type_signal=void
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_type_signal=int
-fi
-rm -f conftest*
-fi
-
-echo "$ac_t""$ac_cv_type_signal" 1>&6
-cat >> confdefs.h <<EOF
-#define RETSIGTYPE $ac_cv_type_signal
-EOF
-
-
-echo $ac_n "checking for vprintf""... $ac_c" 1>&6
-echo "configure:6577: checking for vprintf" >&5
-if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 6582 "configure"
-#include "confdefs.h"
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char vprintf(); below. */
-#include <assert.h>
-/* Override any gcc2 internal prototype to avoid an error. */
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char vprintf();
-
-int main() {
-
-/* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
-#if defined (__stub_vprintf) || defined (__stub___vprintf)
-choke me
-#else
-vprintf();
-#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:6605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_vprintf=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_vprintf=no"
-fi
-rm -f conftest*
-fi
-
-if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<\EOF
-#define HAVE_VPRINTF 1
-EOF
-
-else
- echo "$ac_t""no" 1>&6
-fi
-
-if test "$ac_cv_func_vprintf" != yes; then
-echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
-echo "configure:6629: checking for _doprnt" >&5
-if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 6634 "configure"
-#include "confdefs.h"
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char _doprnt(); below. */
-#include <assert.h>
-/* Override any gcc2 internal prototype to avoid an error. */
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char _doprnt();
-
-int main() {
-
-/* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
-#if defined (__stub__doprnt) || defined (__stub____doprnt)
-choke me
-#else
-_doprnt();
-#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:6657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func__doprnt=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func__doprnt=no"
-fi
-rm -f conftest*
-fi
-
-if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<\EOF
-#define HAVE_DOPRNT 1
-EOF
-
-else
- echo "$ac_t""no" 1>&6
-fi
-
-fi
-
-
-#####
-# Collect the libraries and includes for X and/or motif
-if test "$no_x" != "yes"; then
- LIBS="$X_LIBS $LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
- INCLUDES="$INCLUDES $X_CFLAGS $MOTIF_CFLAGS"
-
-
-if true; then
- USE_X11_TRUE=
- USE_X11_FALSE='#'
-else
- USE_X11_TRUE='#'
- USE_X11_FALSE=
-fi
- use_x11="yes"
-else
- use_x11="no"
-
-
-if false; then
- USE_X11_TRUE=
- USE_X11_FALSE='#'
-else
- USE_X11_TRUE='#'
- USE_X11_FALSE=
-fi
-fi
-
-####
-# And collect the f77 libs to the linker - on Solaris, f77 stuff must go first,
-# but on e.g. ibm the mass libraries must come before -lm...
-case "${host_cpu}-${host_os}" in
- sparc*-solaris*)
- LIBS="$FLIBS $LIBS"
- ;;
- *)
- LIBS="$LIBS $FLIBS"
- ;;
-esac
-
-########################################################################
-# Substitute things in output and header files.
-########################################################################
-SUFFIX=""
-GMXLIB_COND_OBJ=""
-
-if test "$enable_mpi" = "yes"; then
- cat >> confdefs.h <<\EOF
-#define USE_MPI
-EOF
-
- GMXLIB_COND_OBJ="${GMXLIB_COND_OBJ} mpiio.lo"
- if test "$enable_mpi_suffix" = "yes"; then
- SUFFIX="_mpi"
- fi
-else
- GMXLIB_COND_OBJ="${GMXLIB_COND_OBJ} libnet.lo"
-fi
-
-if test "$enable_vector" = "yes"; then
- cat >> confdefs.h <<\EOF
-#define USE_VECTOR
-EOF
-
-fi
-
-if test "$enable_fortran" = "yes"; then
- cat >> confdefs.h <<\EOF
-#define USE_FORTRAN
-EOF
-
- GMXLIB_COND_OBJ="${GMXLIB_COND_OBJ} innerf.lo f77_wrappers.lo"
- if test "$enable_float" = "yes"; then
- MDLIB_COND_OBJ="flincs.lo fsettle.lo fshake.lo"
- else
- MDLIB_COND_OBJ="flincsd.lo fsettled.lo fshaked.lo"
- fi
-
-
-if true; then
- USE_FORTRAN_TRUE=
- USE_FORTRAN_FALSE='#'
-else
- USE_FORTRAN_TRUE='#'
- USE_FORTRAN_FALSE=
-fi
-else
- GMXLIB_COND_OBJ="${GMXLIB_COND_OBJ} innerc.lo"
- MDLIB_COND_OBJ="clincs.lo csettle.lo cshake.lo"
-
-
-if false; then
- USE_FORTRAN_TRUE=
- USE_FORTRAN_FALSE='#'
-else
- USE_FORTRAN_TRUE='#'
- USE_FORTRAN_FALSE=
-fi
-fi
-
-if test "$enable_float" = "no"; then
- cat >> confdefs.h <<\EOF
-#define DOUBLE
-EOF
-
- if test "$enable_type_suffix" = "yes"; then
- SUFFIX="${SUFFIX}_d"
- fi
-
-
-if true; then
- USE_DOUBLE_TRUE=
- USE_DOUBLE_FALSE='#'
-else
- USE_DOUBLE_TRUE='#'
- USE_DOUBLE_FALSE=
-fi
-else
-
-
-if false; then
- USE_DOUBLE_TRUE=
- USE_DOUBLE_FALSE='#'
-else
- USE_DOUBLE_TRUE='#'
- USE_DOUBLE_FALSE=
-fi
-fi
-
-if test "$enable_simplewater" = "yes"; then
- cat >> confdefs.h <<\EOF
-#define SIMPLEWATER
-EOF
-
-fi
-
-if test "$enable_waterwater_loops" = "no"; then
- cat >> confdefs.h <<\EOF
-#define DISABLE_WATERWATER_LOOPS
-EOF
-
-fi
-
-if test "$enable_nice" = "no"; then
- cat >> confdefs.h <<\EOF
-#define NO_NICE
-EOF
-
-fi
-
-if test "$enable_x86_asm" = "yes"; then
- cat >> confdefs.h <<\EOF
-#define USE_SSE
-EOF
-
- GMXLIB_COND_OBJ="${GMXLIB_COND_OBJ} x86_cpuid.lo x86_sse.lo x86_3dnow.lo"
-fi
-
-if test "$motif_includes" != "none" -a "$motif_libraries" != "none"; then
- GMXLIB_COND_OBJ="${GMXLIB_COND_OBJ} mgmx.lo widget.lo"
-fi
-
-if test "$enable_xdr" = "yes"; then
- cat >> confdefs.h <<\EOF
-#define USE_XDR
-EOF
-
- GMXLIB_COND_OBJ="${GMXLIB_COND_OBJ} libxdrf.lo ftocstr.lo"
-else
- GMXLIB_COND_OBJ="${GMXLIB_COND_OBJ} dumxdrf.lo"
-fi
-
-if test "$enable_softwaresqrt" = "yes"; then
- cat >> confdefs.h <<\EOF
-#define SOFTWARE_SQRT
-EOF
-
-fi
-
-if test "$enable_softwarerecip" = "yes"; then
- cat >> confdefs.h <<\EOF
-#define SOFTWARE_RECIP
-EOF
-
-fi
-
-if test "$enable_hide_square_latency" = "yes"; then
- cat >> confdefs.h <<\EOF
-#define DECREASE_SQUARE_LATENCY
-EOF
-
-fi
-
-if test "$enable_hide_table_latency" = "yes"; then
- cat >> confdefs.h <<\EOF
-#define DECREASE_LOOKUP_LATENCY
-EOF
-
-fi
-
-if test "$with_mpi_environment" != "no" -a "$enable_mpi" = "yes"; then
- cat >> confdefs.h <<EOF
-#define CHECK_MPI_ENV "$with_mpi_environment"
-EOF
-
-fi
-
-
-list_of_vectorized_sqrt=""
-if test "$enable_vectorized_sqrt" != "no"; then
- if test "$enable_vectorized_sqrt" = "yes"; then
- enable_vectorized_sqrt="normal,solvent,water,water-water"
- fi
- if echo $enable_vectorized_sqrt | grep "normal" >/dev/null; then
- list_of_vectorized_sqrt="normal "
- cat >> confdefs.h <<\EOF
-#define VECTORIZE_INVSQRT
-EOF
-
- fi
- if echo $enable_vectorized_sqrt | grep "solvent" >/dev/null; then
- list_of_vectorized_sqrt="${list_of_vectorized_sqrt}solvent "
- cat >> confdefs.h <<\EOF
-#define VECTORIZE_INVSQRT_S
-EOF
-
- fi
- if echo $enable_vectorized_sqrt | sed 's/water-water//' | grep "water" >/dev/null; then
- list_of_vectorized_sqrt="${list_of_vectorized_sqrt}water "
- cat >> confdefs.h <<\EOF
-#define VECTORIZE_INVSQRT_W
-EOF
-
- fi
- if echo $enable_vectorized_sqrt | grep "water-water" >/dev/null; then
- list_of_vectorized_sqrt="${list_of_vectorized_sqrt}water-water "
- cat >> confdefs.h <<\EOF
-#define VECTORIZE_INVSQRT_WW
-EOF
-
- fi
-fi
-if test -z "$list_of_vectorized_sqrt"; then
- list_of_vectorized_sqrt="no"
-fi
-
-
-list_of_prefetch_x=""
-if test "$enable_prefetch_x" != "no"; then
- if test "$enable_prefetch_x" = "yes"; then
- enable_prefetch_x="normal,solvent,water,water-water"
- fi
- if echo $enable_prefetch_x | grep "normal" >/dev/null; then
- list_of_prefetch_x="normal "
- cat >> confdefs.h <<\EOF
-#define PREFETCH_X
-EOF
-
- fi
- if echo $enable_prefetch_x | grep "solvent" >/dev/null; then
- list_of_prefetch_x="${list_of_prefetch_x}solvent "
- cat >> confdefs.h <<\EOF
-#define PREFETCH_X_S
-EOF
-
- fi
- if echo $enable_prefetch_x | sed 's/water-water//' | grep "water" >/dev/null; then
- list_of_prefetch_x="${list_of_prefetch_x}water "
- cat >> confdefs.h <<\EOF
-#define PREFETCH_X_W
-EOF
-
- fi
- if echo $enable_prefetch_x | grep "water-water" >/dev/null; then
- list_of_prefetch_x="${list_of_prefetch_x}water-water "
- cat >> confdefs.h <<\EOF
-#define PREFETCH_X_WW
-EOF
-
- fi
-fi
-if test -z "$list_of_prefetch_x"; then
- list_of_prefetch_x="no"
-fi
-
-list_of_prefetch_f=""
-if test "$enable_prefetch_f" != "no"; then
- if test "$enable_prefetch_f" = "yes"; then
- enable_prefetch_f="normal,solvent,water,water-water"
- fi
- if echo $enable_prefetch_f | grep "normal" >/dev/null; then
- list_of_prefetch_f="normal "
- cat >> confdefs.h <<\EOF
-#define PREFETCH_F
-EOF
-
- fi
- if echo $enable_prefetch_f | grep "solvent" >/dev/null; then
- list_of_prefetch_f="${list_of_prefetch_f}solvent "
- cat >> confdefs.h <<\EOF
-#define PREFETCH_F_S
-EOF
-
- fi
- if echo $enable_prefetch_f | sed 's/water-water//' | grep "water"; then
- list_of_prefetch_f="${list_of_prefetch_f}water "
- cat >> confdefs.h <<\EOF
-#define PREFETCH_F_W
-EOF
-
- fi
- if echo $enable_prefetch_f | grep "water-water" >/dev/null; then
- list_of_prefetch_f="${list_of_prefetch_f}water-water "
- cat >> confdefs.h <<\EOF
-#define PREFETCH_F_WW
-EOF
-
- fi
-fi
-if test -z "$list_of_prefetch_f"; then
- list_of_prefetch_f="no"
-fi
-
-if test "$enable_vectorized_recip" != "yes" -a "$enable_vectorized_recip" != "no"; then
- { echo "configure: error: Vectorized reciprocal is only meaningful for normal loops" 1>&2; exit 1; }
-fi
-
-if test "$enable_vectorized_recip" = "yes"; then
- cat >> confdefs.h <<\EOF
-#define VECTORIZE_RECIP
-EOF
-
-fi
-
-echo "1: ${datadir}"
-echo '2: ${datadir}'
-cat >> confdefs.h <<EOF
-#define GMXLIBDIR "${datadir}/top"
-EOF
-
-
-
-# Check if there are any optimizations and options for this arch and cpu
-
-
-
-
-
-# Try to determine "good" native compiler flags if none specified on command
-# line. To avoid repeating the entire procedure for fortran flags, we first
-# determine our suggested choices for both C and fortran, and then possibly
-# override them with user choices.
-
-cc_vendor="unknown"
-
-case "${host_cpu}-${host_os}" in
-
- *-solaris2*)
- case "${gmxcpu}" in
- ultrasparc3*)
- xCFLAGS="-fast -xO5 -xtarget=ultra3 -fsimple=2 -fnonstd -dalign"
- xFFLAGS=$xCFLAGS
- ;;
- ultrasparc2i*)
- xCFLAGS="-fast -xO5 -xtarget=ultra2i -fsimple=2 -fnonstd -dalign"
- xFFLAGS=$xCFLAGS
- ;;
- ultrasparc2*)
- xCFLAGS="-fast -xO5 -xtarget=ultra2 -fsimple=2 -fnonstd -dalign"
- xFFLAGS=$xCFLAGS
- ;;
- ultrasparc*)
- xCFLAGS="-fast -xO5 -xtarget=ultra -fsimple=2 -fnonstd -dalign"
- xFFLAGS=$xCFLAGS
- ;;
- *)
- xCFLAGS="-native -fast -xO5 -fsimple=2 -fnonstd -dalign"
- xFFLAGS=$xCFLAGS
- ;;
- esac
- ;;
-
- *-hpux*)
- xCFLAGS="-Ae +O3 +Oall"
- xFFLAGS=$xCFLAGS
- # If you haven't noticed, we don't like hp very much...
- # but perhaps that will change if they make something nice out of ia64.
- ;;
-
- rs6000*-aix*)
- # dont use inter-procedure analysis for the innerloops - they take
- # forever to compile with it, and it doesnt help at all.
- case "${gmxcpu}" in
- power4*)
- xCFLAGS="-O3 -qarch=pwr4 -qtune=pwr4 -qlanglvl=ansi -qmaxmem=16384"
- xFFLAGS="-O3 -Q -qarch=pwr4 -qtune=pwr4 -qmaxmem=16384 -qhot -qnoipa"
- ;;
- power3*)
- xCFLAGS="-O3 -qarch=pwr3 -qtune=pwr3 -qlanglvl=ansi -qmaxmem=16384"
- xFFLAGS="-O3 -Q -qarch=pwr3 -qtune=pwr3 -qmaxmem=16384 -qhot -qnoipa"
- ;;
- power2*)
- xCFLAGS="-O3 -qarch=pwr2 -qtune=pwr2 -qlanglvl=ansi -qmaxmem=16384"
- xFFLAGS="-O3 -Q -qarch=pwr2 -qtune=pwr2 -qmaxmem=16384 -qhot -qnoipa"
- ;;
- power)
- xCFLAGS="-O3 -qarch=pwr -qtune=pwr -qlanglvl=ansi -qmaxmem=16384"
- xFFLAGS="-O3 -Q -qarch=pwr -qtune=pwr -qmaxmem=16384 -qhot -qnoipa"
- ;;
- *)
- # I don't think people are using anything older than power2, so we tune for
- # pwr, but dont set the arch since it is nice to have common binaries
- # that run also on powerpc.
- xCFLAGS="-O3 -qlanglvl=ansi -qtune=pwr -qmaxmem=16384"
- xFFLAGS="-O3 -Q -qtune=pwr -qmaxmem=16384 -qhot"
- ;;
- esac
- ;;
-
- powerpc*-aix*)
- case "${gmxcpu}" in
- ppc604)
- xCFLAGS="-O3 -qarch=604 -qtune=604 -qlanglvl=ansi -qmaxmem=16384"
- xFFLAGS="-O3 -Q -qarch=604 -qtune=604 -qmaxmem=16384 -qhot"
- ;;
- ppc603)
- xCFLAGS="-O3 -qarch=603 -qtune=603 -qlanglvl=ansi -qmaxmem=16384"
- xFFLAGS="-O3 -Q -qarch=603 -qtune=603 -qmaxmem=16384 -qhot"
- ;;
- rs64a)
- xCFLAGS="-O3 -qarch=rs64a -qtune=rs64a -qlanglvl=ansi -qmaxmem=16384"
- xFFLAGS="-O3 -Q -qarch=rs64a -qtune=rs64a -qmaxmem=16384 -qhot"
- ;;
- rs64b)
- xCFLAGS="-O3 -qarch=rs64b -qtune=rs64b -qlanglvl=ansi -qmaxmem=16384"
- xFFLAGS="-O3 -Q -qarch=rs64b -qtune=rs64b -qmaxmem=16384 -qhot"
- ;;
- rs64c)
- xCFLAGS="-O3 -qarch=rs64c -qtune=rs64c -qlanglvl=ansi -qmaxmem=16384"
- xFFLAGS="-O3 -Q -qarch=rs64c -qtune=rs64c -qmaxmem=16384 -qhot"
- ;;
- *)
- xCFLAGS="-O3 -qlanglvl=ansi -qmaxmem=16384"
- xFFLAGS="-O3 -Q -qmaxmem=16384 -qhot"
- ;;
- esac
- ;;
-
- mips*-irix*)
- xCFLAGS="-O3 -OPT:IEEE_arithmetic=3 -OPT:rsqrt=ON -SWP:loop_overhead -INLINE:=ON -LNO:opt=1 -LNO:ou_further=3 -OPT:Olimit=0:roundoff=3:alias=typed -fullwarn -woff 1174 -D__INLINE_INTRINSICS"
- xFFLAGS="-O3 -OPT:IEEE_arithmetic=3 -OPT:rsqrt=ON -SWP:loop_overhead -INLINE:=ON -LNO:opt=1 -LNO:ou_further=3 -OPT:Olimit=0:roundoff=3:alias=typed -OPT:cray_ivdep=TRUE"
-
- if $CC -version | grep "Version 7.1" > /dev/null 2>&1; then
- xCFLAGS="$xCFLAGS -GCM:aggressive_speculation -GCM:array_speculation"
- xFFLAGS="$xFFLAGS -GCM:aggressive_speculation -GCM:array_speculation"
- fi
-
- if $CC -version | grep "Version 7.3" > /dev/null 2>&1; then
- xCFLAGS="$xCFLAGS -SWP:heur=fdms,nhms,fdnms"
- xFFLAGS="$xFFLAGS -SWP:heur=fdms,nhms,fdnms"
- fi
-
- case "${gmxcpu}" in
- r12000*)
- xCFLAGS="-n32 -r12000 -mips4 $xCFLAGS"
- xFFLAGS="-n32 -r12000 -mips4 $xFFLAGS"
- xLDFLAGS="-n32 -r12000 -mips4"
- ;;
- r10000*)
- xCFLAGS="-n32 -r10000 -mips4 $xCFLAGS"
- xFFLAGS="-n32 -r10000 -mips4 $xFFLAGS"
- xLDFLAGS="-n32 -r10000 -mips4"
- ;;
- r8000*)
- xCFLAGS="-n32 -r8000 -mips4 $xCFLAGS"
- xFFLAGS="-n32 -r8000 -mips4 $xFFLAGS"
- xLDFLAGS="-n32 -r8000 -mips4"
- ;;
- r5000*)
- xCFLAGS="-n32 -r5000 -mips4 $xCFLAGS"
- xFFLAGS="-n32 -r5000 -mips4 $xFFLAGS"
- xLDFLAGS="-n32 -r5000 -mips4"
- ;;
- *)
- xCFLAGS="-n32 $xCFLAGS"
- xFFLAGS="-n32 $xFFLAGS"
- xLDFLAGS="-n32"
- ;;
- esac
- ;;
-
- alpha*-osf*)
- case "${host_cpu}" in
- alphaev*)
- # extract the processor from cpu type (e.g. alphaev56 -> ev56)
- evtype=`echo ${host_cpu} | sed 's/alpha//'`
- xCFLAGS="-O5 -arch $evtype -tune $evtype -fast -unroll 2 -fp_reorder"
- xFFLAGS="$xCFLAGS -assume noaccuracy_sensitive"
- xLDFLAGS="-O4"
- ;;
- *)
- xCFLAGS="-O5 -arch host -tune host -fast -unroll 2 -fp_reorder"
- xFFLAGS="$xCFLAGS -assume noaccuracy_sensitive"
- xLDFLAGS="-O4"
- ;;
- esac
- ;;
-
- alpha*-linux*)
- case "${host_cpu}" in
- alphaev*)
- # extract the processor from cpu type (e.g. alphaev56 -> ev56)
- evtype=`echo ${host_cpu} | sed 's/alpha//'`
- tmpCFLAGS="-O5 -arch $evtype -tune $evtype -fast -unroll 2 -fp_reorder"
- tmpFFLAGS="$tmpCFLAGS -assume noaccuracy_sensitive"
- tmpLDFLAGS="-O4"
- ;;
- *)
- tmpCFLAGS="-O5 -arch host -tune host -fast -unroll 2 -fp_reorder"
- tmpFFLAGS="$tmpCFLAGS -assume noaccuracy_sensitive"
- tmpLDFLAGS="-O4"
- ;;
- esac
- if $CC -V 2> /dev/null | grep Compaq > /dev/null 2>&1; then
- xCFLAGS="$tmpCFLAGS"
- cc_vendor="Compaq"
- fi
- if test "$enable_fortran" = "yes"; then
- if $F77 -V 2> /dev/null | grep Compaq > /dev/null 2>&1; then
- xFFLAGS="$tmpFFLAGS"
- fi
- fi
- ;;
-
- *-*)
- # most of these systems (e.g. linux, FreeBSD) use gcc which is treated
- # further down, but we can at least check if the Portland compilers are used:
- if $CC -V 2> /dev/null | grep Portland > /dev/null 2>&1; then
- case "${host_cpu}" in
- i586)
- pgiopt="-tp p5"
- ;;
- i686)
- pgiopt="-tp p6"
- ;;
- esac
- xCFLAGS="$pgiopt -fast -Minfo=loop -pc 32"
- fi
- if test "$enable_fortran" = "yes"; then
- if $F77 -V 2> /dev/null | grep Portland > /dev/null 2>&1; then
- xFFLAGS="$xCFLAGS -Mneginfo=loop"
- fi
- fi
- ;;
-esac
-# Phew, end of all those operating systems and processors!
-
-# use default flags for gcc/g77 on all systems
-if test $ac_cv_prog_gcc = yes; then
- xCFLAGS="-O6 -fomit-frame-pointer -finline-functions -funroll-all-loops -Wall -Wno-unused"
- # -malign-double for x86 systems
-
-
-echo $ac_n "checking whether $CC accepts -malign-double""... $ac_c" 1>&6
-echo "configure:7246: checking whether $CC accepts -malign-double" >&5
-if eval "test \"`echo '$''{'ac_align_double'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- echo 'void f(){}' > conftest.c
-if test -z "`$CC -malign-double -c conftest.c 2>&1`"; then
- ac_align_double=yes
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ egrep "free" >/dev/null 2>&1; then
+ :
else
- ac_align_double=no
+ rm -rf conftest*
+ ac_cv_header_stdc=no
fi
rm -f conftest*
fi
-echo "$ac_t""$ac_align_double" 1>&6
-if test "$ac_align_double" = yes; then
- :
- xCFLAGS="$xCFLAGS -malign-double"
+if test $ac_cv_header_stdc = yes; then
+ # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
+if test "$cross_compiling" = yes; then
+ :
else
- :
-
-fi
+ cat > conftest.$ac_ext <<EOF
+#line 7349 "configure"
+#include "confdefs.h"
+#include <ctype.h>
+#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
+#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
+#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
+int main () { int i; for (i = 0; i < 256; i++)
+if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
+exit (0); }
+EOF
+if { (eval echo configure:7360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+then
+ :
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -fr conftest*
+ ac_cv_header_stdc=no
fi
-
-if test $enable_fortran = yes; then
- if test $ac_cv_prog_g77 = yes; then
- xFFLAGS="-O3 -ffast-math -fomit-frame-pointer -finline-functions -funroll-all-loops -Wall -Wno-unused"
- # -malign-double for f77 on x86 systems - haven't checked that this works yet.
- #ACX_CHECK_F77_FLAGS(-malign-double,align_double,xFFLAGS="$xFFLAGS -malign-double")
- fi
+rm -fr conftest*
fi
-CPU_FLAGS=""
+fi
+fi
-if test "$GCC" = "yes"; then
-
+echo "$ac_t""$ac_cv_header_stdc" 1>&6
+if test $ac_cv_header_stdc = yes; then
+ cat >> confdefs.h <<\EOF
+#define STDC_HEADERS 1
+EOF
-if true; then
- GNU_CC_TRUE=
- GNU_CC_FALSE='#'
-else
- GNU_CC_TRUE='#'
- GNU_CC_FALSE=
fi
- # try to guess correct CPU flags, at least for linux
- case "${host_cpu}" in
- # i586/i686 cpu flags don't improve speed, thus no need to use them.
- # don't check f77 separately - we assume f77 and gcc are similar
-
- powerpc*)
- cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
- is60x=`echo $cputype | egrep "^600-9e?$"`
- if test -n "$is60x"; then
-
-echo $ac_n "checking whether $CC accepts -mcpu=$cputype""... $ac_c" 1>&6
-echo "configure:7303: checking whether $CC accepts -mcpu=$cputype" >&5
-if eval "test \"`echo '$''{'ac_m_cpu_60x'+set}'`\" = set"; then
+echo $ac_n "checking for size_t""... $ac_c" 1>&6
+echo "configure:7384: checking for size_t" >&5
+if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- echo 'void f(){}' > conftest.c
-if test -z "`$CC -mcpu=$cputype -c conftest.c 2>&1`"; then
- ac_m_cpu_60x=yes
+ cat > conftest.$ac_ext <<EOF
+#line 7389 "configure"
+#include "confdefs.h"
+#include <sys/types.h>
+#if STDC_HEADERS
+#include <stdlib.h>
+#include <stddef.h>
+#endif
+EOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
+ rm -rf conftest*
+ ac_cv_type_size_t=yes
else
- ac_m_cpu_60x=no
+ rm -rf conftest*
+ ac_cv_type_size_t=no
fi
rm -f conftest*
fi
+echo "$ac_t""$ac_cv_type_size_t" 1>&6
+if test $ac_cv_type_size_t = no; then
+ cat >> confdefs.h <<\EOF
+#define size_t unsigned
+EOF
-echo "$ac_t""$ac_m_cpu_60x" 1>&6
-if test "$ac_m_cpu_60x" = yes; then
- :
- CPU_FLAGS=-mcpu=$cputype
-else
- :
-
fi
- elif test "$cputype" = 750; then
-
-
-echo $ac_n "checking whether $CC accepts -mcpu=750""... $ac_c" 1>&6
-echo "configure:7330: checking whether $CC accepts -mcpu=750" >&5
-if eval "test \"`echo '$''{'ac_m_cpu_750'+set}'`\" = set"; then
+echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
+echo "configure:7417: checking whether struct tm is in sys/time.h or time.h" >&5
+if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- echo 'void f(){}' > conftest.c
-if test -z "`$CC -mcpu=750 -c conftest.c 2>&1`"; then
- ac_m_cpu_750=yes
+ cat > conftest.$ac_ext <<EOF
+#line 7422 "configure"
+#include "confdefs.h"
+#include <sys/types.h>
+#include <time.h>
+int main() {
+struct tm *tp; tp->tm_sec;
+; return 0; }
+EOF
+if { (eval echo configure:7430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+ ac_cv_struct_tm=time.h
else
- ac_m_cpu_750=no
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ ac_cv_struct_tm=sys/time.h
fi
rm -f conftest*
-
fi
-echo "$ac_t""$ac_m_cpu_750" 1>&6
-if test "$ac_m_cpu_750" = yes; then
- :
- CPU_FLAGS=-mcpu=750
-else
- :
-
-fi
+echo "$ac_t""$ac_cv_struct_tm" 1>&6
+if test $ac_cv_struct_tm = sys/time.h; then
+ cat >> confdefs.h <<\EOF
+#define TM_IN_SYS_TIME 1
+EOF
- fi
- if test -z "$CPU_FLAGS"; then
-
+fi
-echo $ac_n "checking whether $CC accepts -mcpu=powerpc""... $ac_c" 1>&6
-echo "configure:7358: checking whether $CC accepts -mcpu=powerpc" >&5
-if eval "test \"`echo '$''{'ac_m_cpu_powerpc'+set}'`\" = set"; then
+echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
+echo "configure:7451: checking for uid_t in sys/types.h" >&5
+if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- echo 'void f(){}' > conftest.c
-if test -z "`$CC -mcpu=powerpc -c conftest.c 2>&1`"; then
- ac_m_cpu_powerpc=yes
+ cat > conftest.$ac_ext <<EOF
+#line 7456 "configure"
+#include "confdefs.h"
+#include <sys/types.h>
+EOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ egrep "uid_t" >/dev/null 2>&1; then
+ rm -rf conftest*
+ ac_cv_type_uid_t=yes
else
- ac_m_cpu_powerpc=no
+ rm -rf conftest*
+ ac_cv_type_uid_t=no
fi
rm -f conftest*
fi
-echo "$ac_t""$ac_m_cpu_powerpc" 1>&6
-if test "$ac_m_cpu_powerpc" = yes; then
- :
- CPU_FLAGS=-mcpu=powerpc
-else
- :
-
-fi
+echo "$ac_t""$ac_cv_type_uid_t" 1>&6
+if test $ac_cv_type_uid_t = no; then
+ cat >> confdefs.h <<\EOF
+#define uid_t int
+EOF
- fi
- if test -z "$CPU_FLAGS"; then
-
+ cat >> confdefs.h <<\EOF
+#define gid_t int
+EOF
-echo $ac_n "checking whether $CC accepts -mpowerpc""... $ac_c" 1>&6
-echo "configure:7386: checking whether $CC accepts -mpowerpc" >&5
-if eval "test \"`echo '$''{'ac_m_powerpc'+set}'`\" = set"; then
+fi
+
+echo $ac_n "checking for inline""... $ac_c" 1>&6
+echo "configure:7485: checking for inline" >&5
+if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- echo 'void f(){}' > conftest.c
-if test -z "`$CC -mpowerpc -c conftest.c 2>&1`"; then
- ac_m_powerpc=yes
+ ac_cv_c_inline=no
+for ac_kw in inline __inline__ __inline; do
+ cat > conftest.$ac_ext <<EOF
+#line 7492 "configure"
+#include "confdefs.h"
+
+int main() {
+} $ac_kw foo() {
+; return 0; }
+EOF
+if { (eval echo configure:7499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+ ac_cv_c_inline=$ac_kw; break
else
- ac_m_powerpc=no
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
fi
rm -f conftest*
+done
+
+fi
+
+echo "$ac_t""$ac_cv_c_inline" 1>&6
+case "$ac_cv_c_inline" in
+ inline | yes) ;;
+ no) cat >> confdefs.h <<\EOF
+#define inline
+EOF
+ ;;
+ *) cat >> confdefs.h <<EOF
+#define inline $ac_cv_c_inline
+EOF
+ ;;
+esac
+
+
+
+
+
+
+
+
+
+
+
+
+
+########################################################################
+# Process vectorization and prefetch options for inner loops
+########################################################################
+# check which loops to vectorize
+list_of_vectorized_sqrt=""
+if test "$enable_vectorized_sqrt" != "no"; then
+ if test "$enable_vectorized_sqrt" = "yes" -o "$enable_vectorized_sqrt" = "all" ; then
+ enable_vectorized_sqrt="normal,solvent,water,water-water"
+ fi
+ if echo $enable_vectorized_sqrt | grep "normal" >/dev/null; then
+ list_of_vectorized_sqrt="normal "
+ cat >> confdefs.h <<\EOF
+#define VECTORIZE_INVSQRT
+EOF
+
+ fi
+ if echo $enable_vectorized_sqrt | grep "solvent" >/dev/null; then
+ list_of_vectorized_sqrt="${list_of_vectorized_sqrt}solvent "
+ cat >> confdefs.h <<\EOF
+#define VECTORIZE_INVSQRT_S
+EOF
+
+ fi
+ if echo $enable_vectorized_sqrt | sed 's/water-water//' | grep "water" >/dev/null; then
+ list_of_vectorized_sqrt="${list_of_vectorized_sqrt}water "
+ cat >> confdefs.h <<\EOF
+#define VECTORIZE_INVSQRT_W
+EOF
-fi
+ fi
+ if echo $enable_vectorized_sqrt | grep "water-water" >/dev/null; then
+ list_of_vectorized_sqrt="${list_of_vectorized_sqrt}water-water "
+ cat >> confdefs.h <<\EOF
+#define VECTORIZE_INVSQRT_WW
+EOF
-echo "$ac_t""$ac_m_powerpc" 1>&6
-if test "$ac_m_powerpc" = yes; then
- :
- CPU_FLAGS=-mpowerpc
-else
- :
-
+ fi
+fi
+if test -z "$list_of_vectorized_sqrt"; then
+ list_of_vectorized_sqrt="no"
fi
- fi
- esac
-else
-
-if false; then
- GNU_CC_TRUE=
- GNU_CC_FALSE='#'
-else
- GNU_CC_TRUE='#'
- GNU_CC_FALSE=
-fi
-fi
+# check loops to prefetch coordinates in
+list_of_prefetch_x=""
+if test "$enable_prefetch_x" != "no"; then
+ if test "$enable_prefetch_x" = "yes" -o "$enable_prefetch_x" = "all"; then
+ enable_prefetch_x="normal,solvent,water,water-water"
+ fi
+ if echo $enable_prefetch_x | grep "normal" >/dev/null; then
+ list_of_prefetch_x="normal "
+ cat >> confdefs.h <<\EOF
+#define PREFETCH_X
+EOF
-if test -n "$CPU_FLAGS"; then
- xCFLAGS="$xCFLAGS $CPU_FLAGS"
- xFFLAGS="$xFFLAGS $CPU_FLAGS"
-fi
+ fi
+ if echo $enable_prefetch_x | grep "solvent" >/dev/null; then
+ list_of_prefetch_x="${list_of_prefetch_x}solvent "
+ cat >> confdefs.h <<\EOF
+#define PREFETCH_X_S
+EOF
-# Now check if the user provided anything special for C or fortran...
-# Not nice to have checked everything then, but otherwise we would have
-# to use entirely separate checks for C and fortran flags, doubling the code.
-if test "$ac_test_CFLAGS" != "set"; then
- CFLAGS="$xCFLAGS"
- # Use the extra link optimization flags on e.g. irix only when
- # we are using our own C compiler flags
- LDFLAGS="$LDFLAGS $xLDFLAGS"
-
- if test -z "$CFLAGS"; then
- echo "*******************************************************************"
- echo "* WARNING: No special optimization settings found for the C *"
- echo "* compiler. Use make CFLAGS=..., or edit the top level Makefile. *"
- echo "* Reverting to the default setting CFLAGS=-O3. (mail us about it!)*"
- echo "*******************************************************************"
- CFLAGS="-O3"
fi
-
+ if echo $enable_prefetch_x | sed 's/water-water//' | grep "water" >/dev/null; then
+ list_of_prefetch_x="${list_of_prefetch_x}water "
+ cat >> confdefs.h <<\EOF
+#define PREFETCH_X_W
+EOF
-echo $ac_n "checking whether $CC accepts ${CFLAGS}""... $ac_c" 1>&6
-echo "configure:7448: checking whether $CC accepts ${CFLAGS}" >&5
-if eval "test \"`echo '$''{'ac_guessed_cflags'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- echo 'void f(){}' > conftest.c
-if test -z "`$CC ${CFLAGS} -c conftest.c 2>&1`"; then
- ac_guessed_cflags=yes
-else
- ac_guessed_cflags=no
-fi
-rm -f conftest*
+ fi
+ if echo $enable_prefetch_x | grep "water-water" >/dev/null; then
+ list_of_prefetch_x="${list_of_prefetch_x}water-water "
+ cat >> confdefs.h <<\EOF
+#define PREFETCH_X_WW
+EOF
+ fi
fi
-
-echo "$ac_t""$ac_guessed_cflags" 1>&6
-if test "$ac_guessed_cflags" = yes; then
- :
-
-else
- :
-
- echo "*******************************************************************"
- echo "* Sorry, these optimization settings don't seem to work for *"
- echo "* your C compiler. Use make CFLAGS=..., or edit the top Makefile. *"
- echo "*******************************************************************"
- CFLAGS=""
-
+if test -z "$list_of_prefetch_x"; then
+ list_of_prefetch_x="no"
fi
-else
- echo "******************************************"
- echo "* Using CFLAGS from environment variable *"
- echo "******************************************"
-fi
-if test "$enable_fortran" = "yes"; then
- if test "$ac_test_FFLAGS" != "set"; then
- FFLAGS="$xFFLAGS"
- if test -z "$FFLAGS"; then
- echo "*******************************************************************"
- echo "* WARNING: No special optimization settings found for the fortran *"
- echo "* compiler. Use make FFLAGS=..., or edit the top level Makefile. *"
- echo "* Reverting to the default setting FFLAGS=-O3. (mail us about it!)*"
- echo "*******************************************************************"
- FFLAGS="-O3"
- fi
-
+# check loops to prefetch forces in
+list_of_prefetch_f=""
+if test "$enable_prefetch_f" != "no"; then
+ if test "$enable_prefetch_f" = "yes" -o "$enable_prefetch_f" = "all"; then
+ enable_prefetch_f="normal,solvent,water,water-water"
+ fi
+ if echo $enable_prefetch_f | grep "normal" >/dev/null; then
+ list_of_prefetch_f="normal "
+ cat >> confdefs.h <<\EOF
+#define PREFETCH_F
+EOF
-echo $ac_n "checking whether $F77 accepts ${FFLAGS}""... $ac_c" 1>&6
-echo "configure:7497: checking whether $F77 accepts ${FFLAGS}" >&5
-if eval "test \"`echo '$''{'ac_guessed_fflags'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.f << EOF
- subroutine f
- return
- end
+ fi
+ if echo $enable_prefetch_f | grep "solvent" >/dev/null; then
+ list_of_prefetch_f="${list_of_prefetch_f}solvent "
+ cat >> confdefs.h <<\EOF
+#define PREFETCH_F_S
EOF
-if test -z "`$F77 ${FFLAGS} -c conftest.f `"; then
- ac_guessed_fflags=yes
-else
- ac_guessed_fflags=no
-fi
-rm -f conftest*
-fi
+ fi
+ if echo $enable_prefetch_f | sed 's/water-water//' | grep "water"; then
+ list_of_prefetch_f="${list_of_prefetch_f}water "
+ cat >> confdefs.h <<\EOF
+#define PREFETCH_F_W
+EOF
-echo "$ac_t""$ac_guessed_fflags" 1>&6
-if test "$ac_guessed_fflags" = yes; then
- :
-
-else
- :
-
- echo "*******************************************************************"
- echo "* Sorry, these optimization settings don't seem to work for *"
- echo "* your f77 compiler. Use make FFLAGS=.., or edit the top Makefile.*"
- echo "*******************************************************************"
- FFLAGS=""
-
-fi
+ fi
+ if echo $enable_prefetch_f | grep "water-water" >/dev/null; then
+ list_of_prefetch_f="${list_of_prefetch_f}water-water "
+ cat >> confdefs.h <<\EOF
+#define PREFETCH_F_WW
+EOF
- else
- echo "******************************************"
- echo "* Using FFLAGS from environment variable *"
- echo "******************************************"
fi
fi
-
+if test -z "$list_of_prefetch_f"; then
+ list_of_prefetch_f="no"
+fi
- # should be automatic, but doesnt seem to be?
-# put binaries and libraries in subdirectories named as the arch
-if test -n "$gmxcpu"; then
- bindir="\${exec_prefix}/bin/${host}/${gmxcpu}"
- libdir="\${exec_prefix}/lib/${host}/${gmxcpu}"
-else
- bindir="\${exec_prefix}/bin/${host}"
- libdir="\${exec_prefix}/lib/${host}"
-fi
+########################################################################
+# Final output stage
+########################################################################
+ASFLAGS="$ASFLAGS $CFLAGS"
+AS="$CC"
+ # should be automatic, but doesnt seem to be?
-trap '' 1 2 15
-cat > confcache <<\EOF
-# This file is a shell script that caches the results of configure
-# tests run on this system so they can be shared between configure
-# scripts and configure runs. It is not useful on other systems.
-# If it contains results you don't want to keep, you may remove or edit it.
-#
-# By default, configure uses ./config.cache as the cache file,
-# creating it if it does not exist already. You can give configure
-# the --cache-file=FILE option to use a different cache file; that is
-# what configure does when it calls configure scripts in
-# subdirectories, so they share the cache.
-# Giving --cache-file=/dev/null disables caching, for debugging configure.
-# config.status only pays attention to the cache file if you give it the
-# --recheck option to rerun configure.
-#
-EOF
-# The following way of writing the cache mishandles newlines in values,
-# but we know of no workaround that is simple, portable, and efficient.
-# So, don't put newlines in cache variables' values.
-# Ultrix sh set writes to stderr and can't be redirected directly,
-# and sets the high bit in the cache file unless we assign to the vars.
-(set) 2>&1 |
- case `(ac_space=' '; set | grep ac_space) 2>&1` in
- *ac_space=\ *)
- # `set' does not quote correctly, so add quotes (double-quote substitution
- # turns \\\\ into \\, and sed turns \\ into \).
- sed -n \
- -e "s/'/'\\\\''/g" \
- -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
- ;;
- *)
- # `set' quotes correctly as required by POSIX, so do not add quotes.
- sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
- ;;
- esac >> confcache
-if cmp -s $cache_file confcache; then
- :
+# To tell libraries apart, we use four versions of the name. For instance, libgmx:
+# libgmx single prec, no mpi.
+# libgmx_d double prec, no mpi.
+# libgmx_mpi single prec, mpi.
+# libgmx_mpi_d double prec, mpi.
+# However, the non-suffixed names are linked to the _mpi and/or _d suffixed
+# ones upon installation if that is the only version available.
+
+if test "$enable_mpi" = "yes"; then
+ LIBSUFFIX="_mpi"
+fi
+if test "$enable_float" = "no"; then
+ LIBSUFFIX="${LIBSUFFIX}_d"
+fi
+
+
+# Unless the user has explicitly requested a prefix/suffix/transform, we
+# use _d on double precision files. Don't add anything for mpi, but at the
+# end we tell the user it is possible and smart to do in some cases!
+if test "$program_transform_name" = "s,x,x,"; then
+ name_transform_provided=no;
+ if test "$enable_float" = "no"; then
+ program_transform_name="s,\$\$,_d,"
+ fi
else
- if test -w $cache_file; then
- echo "updating cache $cache_file"
- cat confcache > $cache_file
+ name_transform_provided=yes;
+fi
+
+# put binaries and libraries in subdirectories named as the arch and cpu
+if test "$enable_arch_subdirs" = "yes"; then
+ if test -n "$gmxcpu"; then
+ bindir="${bindir}/${host}/${gmxcpu}"
+ libdir="${libdir}/${host}/${gmxcpu}"
else
- echo "not updating unwritable cache $cache_file"
+ bindir="${bindir}/${host}"
+ libdir="${libdir}/${host}"
fi
fi
-rm -f confcache
+
+
+
+
+trap '' 1 2 15
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
ac_given_srcdir=$srcdir
ac_given_INSTALL="$INSTALL"
-trap 'rm -fr `echo "Makefile
- src/Makefile
- src/gmxlib/Makefile
- src/mdlib/Makefile
- src/kernel/Makefile
- src/tools/Makefile
- src/ngmx/Makefile
- src/contrib/Makefile
- include/Makefile
- include/types/Makefile
- scripts/Makefile
- admin/Makefile
- share/Makefile
- share/tutor/Makefile
- share/tutor/gmxdemo/Makefile
- share/tutor/nmr1/Makefile
- share/tutor/nmr2/Makefile
- share/tutor/water/Makefile
- share/tutor/speptide/Makefile
- share/template/Makefile
- share/template/Template.mak
- share/top/Makefile
- share/html/Makefile
- share/html/images/Makefile
- share/html/online/Makefile
- man/Makefile
- man/man1/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
+trap 'rm -fr `echo "Makefile include/Makefile include/types/Makefile src/Makefile
+ src/gmxlib/Makefile src/mdlib/Makefile src/kernel/Makefile
+ src/tools/Makefile src/ngmx/Makefile src/contrib/Makefile
+ scripts/Makefile admin/Makefile share/Makefile share/tutor/Makefile
+ share/tutor/gmxdemo/Makefile share/tutor/nmr1/Makefile
+ share/tutor/nmr2/Makefile share/tutor/water/Makefile
+ share/tutor/speptide/Makefile share/template/Makefile
+ share/top/Makefile share/html/Makefile share/html/images/Makefile
+ share/html/online/Makefile man/Makefile man/man1/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
EOF
cat >> $CONFIG_STATUS <<EOF
s%@AUTOMAKE@%$AUTOMAKE%g
s%@AUTOHEADER@%$AUTOHEADER%g
s%@MAKEINFO@%$MAKEINFO%g
+s%@AMTAR@%$AMTAR%g
+s%@install_sh@%$install_sh%g
+s%@INSTALL_STRIP_PROGRAM@%$INSTALL_STRIP_PROGRAM%g
+s%@AWK@%$AWK%g
s%@SET_MAKE@%$SET_MAKE%g
+s%@AMDEP_TRUE@%$AMDEP_TRUE%g
+s%@AMDEP_FALSE@%$AMDEP_FALSE%g
+s%@AMDEPBACKSLASH@%$AMDEPBACKSLASH%g
+s%@DEPDIR@%$DEPDIR%g
+s%@SHARED_VERSION_INFO@%$SHARED_VERSION_INFO%g
s%@host@%$host%g
s%@host_alias@%$host_alias%g
s%@host_cpu@%$host_cpu%g
s%@F77@%$F77%g
s%@CC@%$CC%g
s%@CPP@%$CPP%g
-s%@BUILD_CC@%$BUILD_CC%g
-s%@FLIBS@%$FLIBS%g
+s%@_am_include@%$_am_include%g
+s%@_am_quote@%$_am_quote%g
+s%@CCDEPMODE@%$CCDEPMODE%g
+s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
s%@MPICC@%$MPICC%g
-s%@USE_MPI_TRUE@%$USE_MPI_TRUE%g
-s%@USE_MPI_FALSE@%$USE_MPI_FALSE%g
+s%@FLIBS@%$FLIBS%g
+s%@GNU_CC_TRUE@%$GNU_CC_TRUE%g
+s%@GNU_CC_FALSE@%$GNU_CC_FALSE%g
s%@IDENT@%$IDENT%g
-s%@LN_S@%$LN_S%g
s%@build@%$build%g
s%@build_alias@%$build_alias%g
s%@build_cpu@%$build_cpu%g
s%@build_vendor@%$build_vendor%g
s%@build_os@%$build_os%g
+s%@LN_S@%$LN_S%g
s%@OBJEXT@%$OBJEXT%g
s%@EXEEXT@%$EXEEXT%g
s%@RANLIB@%$RANLIB%g
s%@STRIP@%$STRIP%g
s%@LIBTOOL@%$LIBTOOL%g
-s%@GMX_USE_XDR_TRUE@%$GMX_USE_XDR_TRUE%g
-s%@GMX_USE_XDR_FALSE@%$GMX_USE_XDR_FALSE%g
+s%@LIBOBJS@%$LIBOBJS%g
s%@X_CFLAGS@%$X_CFLAGS%g
s%@X_PRE_LIBS@%$X_PRE_LIBS%g
s%@X_LIBS@%$X_LIBS%g
s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
-s%@LIBOBJS@%$LIBOBJS%g
s%@USE_X11_TRUE@%$USE_X11_TRUE%g
s%@USE_X11_FALSE@%$USE_X11_FALSE%g
-s%@USE_FORTRAN_TRUE@%$USE_FORTRAN_TRUE%g
-s%@USE_FORTRAN_FALSE@%$USE_FORTRAN_FALSE%g
-s%@USE_DOUBLE_TRUE@%$USE_DOUBLE_TRUE%g
-s%@USE_DOUBLE_FALSE@%$USE_DOUBLE_FALSE%g
-s%@GNU_CC_TRUE@%$GNU_CC_TRUE%g
-s%@GNU_CC_FALSE@%$GNU_CC_FALSE%g
+s%@ASFLAGS@%$ASFLAGS%g
+s%@AS@%$AS%g
s%@INCLUDES@%$INCLUDES%g
-s%@GMXLIB_COND_OBJ@%$GMXLIB_COND_OBJ%g
-s%@MDLIB_COND_OBJ@%$MDLIB_COND_OBJ%g
-s=XXX_SUFFIX_XXX=$SUFFIX=g
-s%@SUFFIX@%$SUFFIX%g
-s%@SHARED_VERSION_INFO@%$SHARED_VERSION_INFO%g
+s%@GMXLIB_LIBOBJS@%$GMXLIB_LIBOBJS%g
+s%@MDLIB_LIBOBJS@%$MDLIB_LIBOBJS%g
+s%@LIBSUFFIX@%$LIBSUFFIX%g
CEOF
EOF
cat >> $CONFIG_STATUS <<EOF
-CONFIG_FILES=\${CONFIG_FILES-"Makefile
- src/Makefile
- src/gmxlib/Makefile
- src/mdlib/Makefile
- src/kernel/Makefile
- src/tools/Makefile
- src/ngmx/Makefile
- src/contrib/Makefile
- include/Makefile
- include/types/Makefile
- scripts/Makefile
- admin/Makefile
- share/Makefile
- share/tutor/Makefile
- share/tutor/gmxdemo/Makefile
- share/tutor/nmr1/Makefile
- share/tutor/nmr2/Makefile
- share/tutor/water/Makefile
- share/tutor/speptide/Makefile
- share/template/Makefile
- share/template/Template.mak
- share/top/Makefile
- share/html/Makefile
- share/html/images/Makefile
- share/html/online/Makefile
- man/Makefile
- man/man1/Makefile"}
+CONFIG_FILES=\${CONFIG_FILES-"Makefile include/Makefile include/types/Makefile src/Makefile
+ src/gmxlib/Makefile src/mdlib/Makefile src/kernel/Makefile
+ src/tools/Makefile src/ngmx/Makefile src/contrib/Makefile
+ scripts/Makefile admin/Makefile share/Makefile share/tutor/Makefile
+ share/tutor/gmxdemo/Makefile share/tutor/nmr1/Makefile
+ share/tutor/nmr2/Makefile share/tutor/water/Makefile
+ share/tutor/speptide/Makefile share/template/Makefile
+ share/top/Makefile share/html/Makefile share/html/images/Makefile
+ share/html/online/Makefile man/Makefile man/man1/Makefile"}
EOF
cat >> $CONFIG_STATUS <<\EOF
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
EOF
cat >> $CONFIG_STATUS <<EOF
-
+am_indx=1
+ for am_file in include/config.h; do
+ case " $CONFIG_HEADERS " in
+ *" $am_file "*)
+ echo timestamp > `echo $am_file | sed 's%:.*%%;s%[^/]*$%%'`stamp-h$am_indx
+ ;;
+ esac
+ am_indx=\`expr \$am_indx + 1\`
+ done
+AMDEP_TRUE="$AMDEP_TRUE"
+ac_aux_dir="$ac_aux_dir"
EOF
cat >> $CONFIG_STATUS <<\EOF
-test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h
+test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h
+
+test x"$AMDEP_TRUE" != x"" ||
+for mf in $CONFIG_FILES; do
+ case "$mf" in
+ Makefile) dirpart=.;;
+ */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
+ *) continue;;
+ esac
+ grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
+ # Extract the definition of DEP_FILES from the Makefile without
+ # running `make'.
+ DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
+ test -z "$DEPDIR" && continue
+ # When using ansi2knr, U may be empty or an underscore; expand it
+ U=`sed -n -e '/^U = / s///p' < "$mf"`
+ test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
+ # We invoke sed twice because it is the simplest approach to
+ # changing $(DEPDIR) to its actual value in the expansion.
+ for file in `sed -n -e '
+ /^DEP_FILES = .*\\\\$/ {
+ s/^DEP_FILES = //
+ :loop
+ s/\\\\$//
+ p
+ n
+ /\\\\$/ b loop
+ p
+ }
+ /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
+ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
+ # Make sure the directory exists.
+ test -f "$dirpart/$file" && continue
+ fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
+ $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
+ # echo "creating $dirpart/$file"
+ echo '# dummy' > "$dirpart/$file"
+ done
+done
+
exit 0
EOF
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
+
+
+
+
+
+
+
+#########################################################
+# Print the most important options, to avoid stupid mistakes
+#
+
echo ""
echo "GROMACS is ready to compile. Summary of main options:"
-echo "Architecture : $host"
-if test "$enable_cpu_detection" = "yes"; then
-if test -n "$gmxcpu"; then
-echo "Optimize for CPU : $gmxcpu"
+if test "$enable_cpu_detection" = "yes" -a -n "$gmxcpu"; then
+ echo "Architecture : $host / CPU $gmxcpu"
else
-echo "(Extra CPU detection not necessary or unavailable on this host)"
+ echo "Architecture : $host"
fi
-fi
-echo "Vector architecture : $enable_vector"
+if test "$enable_mpi" = "yes" -a "$with_mpi_environment" != "no"; then
+echo "MPI parallelization : yes, when $with_mpi_environment is set"
+else
echo "MPI parallelization : $enable_mpi"
-if test "$enable_mpi" = "yes"; then
-echo "Checking MPI environment : $with_mpi_environment"
-echo "MPI suffix on files : $enable_mpi_suffix"
fi
echo "Using Fortran code : $enable_fortran"
-echo "Single precision : $enable_float"
if test "$enable_float" = "no"; then
-echo "Suffix on double prec. files : $enable_type_suffix"
+ echo "Precision : double"
+ if test "$name_transform_provided" = "no"; then
+ echo "(Program names will be suffixed with _d, override with --program-suffix)"
+ fi
+else
+ echo "Precision : single"
fi
-echo "Automatically nice mdrun : $enable_nice"
-echo "Using x86 SSE/3DNow assembly : $enable_x86_asm"
-echo "Software 1/x : $enable_softwarerecip"
-echo "Software 1/sqrt(x) : $enable_softwaresqrt"
+case "${host_cpu}" in
+ i?86) echo "Using x86 assembly : $enable_x86_asm" ;;
+ *) ;;
+esac
+echo "Software 1/x : $enable_software_recip"
+echo "Software 1/sqrt(x) : $enable_software_sqrt"
echo "Vectorize 1/x : $enable_vectorized_recip"
echo "Vectorize 1/sqrt(x) : $list_of_vectorized_sqrt"
echo "Prefetch coordinates in loops : $list_of_prefetch_x"
echo "Prefetch forces in loops : $list_of_prefetch_f"
-echo "X11 support : $use_x11"
echo "Motif support : $use_motif"
-echo ""
-echo "GROMACS will be installed under $prefix"
-echo "Make sure to update your PATH and MANPATH to find the"
-echo "programs and unix manual pages, and possibly LD_LIBRARY_PATH"
-echo "or /etc/ld.so.conf if you are using dynamic libraries"
-
+if test "$name_transform_provided" = "no" -a "$enable_mpi" = "yes"; then
+ echo ""
+ echo "You can install MPI programs with suffixed names to have both MPI and non-MPI"
+ echo "versions. It is useful when you need a charge queue to run MPI-linked programs."
+ echo "Set a suffix with --program-suffix=_mpi (or _mpi_d for double). In that case"
+ echo "you only need MPI for mdrun, so you can issue make mdrun; make mdrun-install."
+fi