summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreschnett <eschnett@17b73243-c579-4c4c-a9d2-2d5706c11dac>2010-12-22 02:29:43 +0000
committereschnett <eschnett@17b73243-c579-4c4c-a9d2-2d5706c11dac>2010-12-22 02:29:43 +0000
commit23426162c0c1d7adf746edcc74e2106d90a65df8 (patch)
treea64b60e92bbb189cf7f3c39d43a139594091750f
parente4d3c5386e6b262b00ca30003105c94b351b7c19 (diff)
Add new configuration flags CPP_DEBUG_FLAGS etc., which allow passing
special CPP flags for debugging. These complement the existing C_DEBUG_FLAGS and CPPFLAGS. In particular, the following flags are added: CPP_DEBUG_FLAGS FPP_DEBUG_FLAGS CPP_OPTIMISE_FLAGS FPP_OPTIMISE_FLAGS CPP_PROFILE_FLAGS FPP_PROFILE_FLAGS CPP_OPENMP_FLAGS FPP_OPENMP_FLAGS CPP_WARN_FLAGS FPP_WARN_FLAGS Applications are e.g. adding -Wall to CPP_WARN_FLAGS, or -fopenmp to CPP_OPENMP_FLAGS. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4656 17b73243-c579-4c4c-a9d2-2d5706c11dac
-rwxr-xr-xlib/make/configure578
-rw-r--r--lib/make/configure.in26
-rw-r--r--lib/make/force-reconfigure1
-rw-r--r--lib/make/make.config.defn.in21
4 files changed, 350 insertions, 276 deletions
diff --git a/lib/make/configure b/lib/make/configure
index 98ebdd51..2f465b37 100755
--- a/lib/make/configure
+++ b/lib/make/configure
@@ -1482,6 +1482,12 @@ CCTK_WriteLine cctk_Archdefs.h '#endif /* _CCTK_ARCHDEFS_H_ */'
# Set the warning flags if they've not been set by now
# (using GNU compiler warning flags as a reasonable default)
+: ${CPP_WARN_FLAGS='-Wall'}
+
+
+: ${FPP_WARN_FLAGS='-Wall'}
+
+
if test "$CC" = 'gcc' ; then
: ${C_WARN_FLAGS='-Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wbad-function-cast -Wsign-compare'}
else
@@ -1519,6 +1525,12 @@ fi
# Set the debug flags if they've not been set by now
# (using '-g' as a reasonable default)
+: ${CPP_DEBUG_FLAGS='-g'}
+
+
+: ${FPP_DEBUG_FLAGS='-g'}
+
+
: ${C_DEBUG_FLAGS='-g'}
@@ -1536,6 +1548,12 @@ fi
+: ${CPP_OPTIMISE_FLAGS=''}
+
+
+: ${FPP_OPTIMISE_FLAGS=''}
+
+
: ${C_OPTIMISE_FLAGS='-O2'}
@@ -1557,6 +1575,12 @@ fi
+: ${CPP_PROFILE_FLAGS=''}
+
+
+: ${FPP_PROFILE_FLAGS=''}
+
+
: ${C_PROFILE_FLAGS='-pg'}
@@ -1577,6 +1601,8 @@ fi
+
+
##########################################################################
# Deal with the Fortran compiler issues.
@@ -1630,7 +1656,7 @@ unset LDFLAGS
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
-echo "configure:1634: checking how to run the C preprocessor" >&5
+echo "configure:1660: checking how to run the C preprocessor" >&5
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
CPP=
@@ -1645,13 +1671,13 @@ else
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp.
cat > conftest.$ac_ext <<EOF
-#line 1649 "configure"
+#line 1675 "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:1655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:1681: \"$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
:
@@ -1662,13 +1688,13 @@ else
rm -rf conftest*
CPP="${CC-cc} -E -traditional-cpp"
cat > conftest.$ac_ext <<EOF
-#line 1666 "configure"
+#line 1692 "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:1672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:1698: \"$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
:
@@ -1679,13 +1705,13 @@ else
rm -rf conftest*
CPP="${CC-cc} -nologo -E"
cat > conftest.$ac_ext <<EOF
-#line 1683 "configure"
+#line 1709 "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:1689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:1715: \"$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
:
@@ -1710,12 +1736,12 @@ fi
echo "$ac_t""$CPP" 1>&6
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
-echo "configure:1714: checking for ANSI C header files" >&5
+echo "configure:1740: 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 1719 "configure"
+#line 1745 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
@@ -1723,7 +1749,7 @@ else
#include <float.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:1727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:1753: \"$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*
@@ -1740,7 +1766,7 @@ rm -f 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 1744 "configure"
+#line 1770 "configure"
#include "confdefs.h"
#include <string.h>
EOF
@@ -1758,7 +1784,7 @@ fi
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 1762 "configure"
+#line 1788 "configure"
#include "confdefs.h"
#include <stdlib.h>
EOF
@@ -1779,7 +1805,7 @@ if test "$cross_compiling" = yes; then
:
else
cat > conftest.$ac_ext <<EOF
-#line 1783 "configure"
+#line 1809 "configure"
#include "confdefs.h"
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
@@ -1790,7 +1816,7 @@ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }
EOF
-if { (eval echo configure:1794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:1820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
:
else
@@ -1817,14 +1843,14 @@ fi
if test "x$cross_compiling" = 'xno' ; then
echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
-echo "configure:1821: checking whether byte ordering is bigendian" >&5
+echo "configure:1847: checking whether byte ordering is bigendian" >&5
if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_cv_c_bigendian=unknown
# See if sys/param.h defines the BYTE_ORDER macro.
cat > conftest.$ac_ext <<EOF
-#line 1828 "configure"
+#line 1854 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
@@ -1835,11 +1861,11 @@ int main() {
#endif
; return 0; }
EOF
-if { (eval echo configure:1839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
# It does; now see whether it defined to BIG_ENDIAN or not.
cat > conftest.$ac_ext <<EOF
-#line 1843 "configure"
+#line 1869 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
@@ -1850,7 +1876,7 @@ int main() {
#endif
; return 0; }
EOF
-if { (eval echo configure:1854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_c_bigendian=yes
else
@@ -1870,7 +1896,7 @@ if test "$cross_compiling" = yes; then
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
-#line 1874 "configure"
+#line 1900 "configure"
#include "confdefs.h"
main () {
/* Are we little or big endian? From Harbison&Steele. */
@@ -1883,7 +1909,7 @@ main () {
exit (u.c[sizeof (long) - 1] == 1);
}
EOF
-if { (eval echo configure:1887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:1913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
ac_cv_c_bigendian=no
else
@@ -1926,7 +1952,7 @@ if test "x$cross_compiling" = 'xyes' -a -z "$SIZEOF_LONG_LONG" ; then
fi
echo $ac_n "checking size of long long""... $ac_c" 1>&6
-echo "configure:1930: checking size of long long" >&5
+echo "configure:1956: checking size of long long" >&5
if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -1934,10 +1960,9 @@ else
ac_cv_sizeof_long_long=$SIZEOF_LONG_LONG
else
cat > conftest.$ac_ext <<EOF
-#line 1938 "configure"
+#line 1964 "configure"
#include "confdefs.h"
#include <stdio.h>
-#include <sys/types.h>
main()
{
FILE *f=fopen("conftestval", "w");
@@ -1946,7 +1971,7 @@ main()
exit(0);
}
EOF
-if { (eval echo configure:1950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:1975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
ac_cv_sizeof_long_long=`cat conftestval`
else
@@ -1971,7 +1996,7 @@ if test "x$cross_compiling" = 'xyes' -a -z "$SIZEOF_LONG_INT" ; then
fi
echo $ac_n "checking size of long int""... $ac_c" 1>&6
-echo "configure:1975: checking size of long int" >&5
+echo "configure:2000: checking size of long int" >&5
if eval "test \"`echo '$''{'ac_cv_sizeof_long_int'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -1979,10 +2004,9 @@ else
ac_cv_sizeof_long_int=$SIZEOF_LONG_INT
else
cat > conftest.$ac_ext <<EOF
-#line 1983 "configure"
+#line 2008 "configure"
#include "confdefs.h"
#include <stdio.h>
-#include <sys/types.h>
main()
{
FILE *f=fopen("conftestval", "w");
@@ -1991,7 +2015,7 @@ main()
exit(0);
}
EOF
-if { (eval echo configure:1995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:2019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
ac_cv_sizeof_long_int=`cat conftestval`
else
@@ -2016,7 +2040,7 @@ if test "x$cross_compiling" = 'xyes' -a -z "$SIZEOF_INT" ; then
fi
echo $ac_n "checking size of int""... $ac_c" 1>&6
-echo "configure:2020: checking size of int" >&5
+echo "configure:2044: checking size of int" >&5
if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -2024,10 +2048,9 @@ else
ac_cv_sizeof_int=$SIZEOF_INT
else
cat > conftest.$ac_ext <<EOF
-#line 2028 "configure"
+#line 2052 "configure"
#include "confdefs.h"
#include <stdio.h>
-#include <sys/types.h>
main()
{
FILE *f=fopen("conftestval", "w");
@@ -2036,7 +2059,7 @@ main()
exit(0);
}
EOF
-if { (eval echo configure:2040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:2063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
ac_cv_sizeof_int=`cat conftestval`
else
@@ -2061,7 +2084,7 @@ if test "x$cross_compiling" = 'xyes' -a -z "$SIZEOF_SHORT_INT" ; then
fi
echo $ac_n "checking size of short int""... $ac_c" 1>&6
-echo "configure:2065: checking size of short int" >&5
+echo "configure:2088: checking size of short int" >&5
if eval "test \"`echo '$''{'ac_cv_sizeof_short_int'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -2069,10 +2092,9 @@ else
ac_cv_sizeof_short_int=$SIZEOF_SHORT_INT
else
cat > conftest.$ac_ext <<EOF
-#line 2073 "configure"
+#line 2096 "configure"
#include "confdefs.h"
#include <stdio.h>
-#include <sys/types.h>
main()
{
FILE *f=fopen("conftestval", "w");
@@ -2081,7 +2103,7 @@ main()
exit(0);
}
EOF
-if { (eval echo configure:2085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:2107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
ac_cv_sizeof_short_int=`cat conftestval`
else
@@ -2108,7 +2130,7 @@ if test "x$cross_compiling" = 'xyes' -a -z "$SIZEOF_LONG_DOUBLE" ; then
fi
echo $ac_n "checking size of long double""... $ac_c" 1>&6
-echo "configure:2112: checking size of long double" >&5
+echo "configure:2134: checking size of long double" >&5
if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -2116,10 +2138,9 @@ else
ac_cv_sizeof_long_double=$SIZEOF_LONG_DOUBLE
else
cat > conftest.$ac_ext <<EOF
-#line 2120 "configure"
+#line 2142 "configure"
#include "confdefs.h"
#include <stdio.h>
-#include <sys/types.h>
main()
{
FILE *f=fopen("conftestval", "w");
@@ -2128,7 +2149,7 @@ main()
exit(0);
}
EOF
-if { (eval echo configure:2132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:2153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
ac_cv_sizeof_long_double=`cat conftestval`
else
@@ -2153,7 +2174,7 @@ if test "x$cross_compiling" = 'xyes' -a -z "$SIZEOF_DOUBLE" ; then
fi
echo $ac_n "checking size of double""... $ac_c" 1>&6
-echo "configure:2157: checking size of double" >&5
+echo "configure:2178: checking size of double" >&5
if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -2161,10 +2182,9 @@ else
ac_cv_sizeof_double=$SIZEOF_DOUBLE
else
cat > conftest.$ac_ext <<EOF
-#line 2165 "configure"
+#line 2186 "configure"
#include "confdefs.h"
#include <stdio.h>
-#include <sys/types.h>
main()
{
FILE *f=fopen("conftestval", "w");
@@ -2173,7 +2193,7 @@ main()
exit(0);
}
EOF
-if { (eval echo configure:2177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:2197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
ac_cv_sizeof_double=`cat conftestval`
else
@@ -2199,7 +2219,7 @@ if test "x$cross_compiling" = 'xyes' -a -z "$SIZEOF_FLOAT" ; then
fi
echo $ac_n "checking size of float""... $ac_c" 1>&6
-echo "configure:2203: checking size of float" >&5
+echo "configure:2223: checking size of float" >&5
if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -2207,10 +2227,9 @@ else
ac_cv_sizeof_float=$SIZEOF_FLOAT
else
cat > conftest.$ac_ext <<EOF
-#line 2211 "configure"
+#line 2231 "configure"
#include "confdefs.h"
#include <stdio.h>
-#include <sys/types.h>
main()
{
FILE *f=fopen("conftestval", "w");
@@ -2219,7 +2238,7 @@ main()
exit(0);
}
EOF
-if { (eval echo configure:2223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:2242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
ac_cv_sizeof_float=`cat conftestval`
else
@@ -2246,7 +2265,7 @@ if test "x$cross_compiling" = 'xyes' -a -z "$SIZEOF_POINTER" ; then
fi
echo $ac_n "checking size of char *""... $ac_c" 1>&6
-echo "configure:2250: checking size of char *" >&5
+echo "configure:2269: checking size of char *" >&5
if eval "test \"`echo '$''{'ac_cv_sizeof_char_p'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -2254,10 +2273,9 @@ else
ac_cv_sizeof_char_p=$SIZEOF_POINTER
else
cat > conftest.$ac_ext <<EOF
-#line 2258 "configure"
+#line 2277 "configure"
#include "confdefs.h"
#include <stdio.h>
-#include <sys/types.h>
main()
{
FILE *f=fopen("conftestval", "w");
@@ -2266,7 +2284,7 @@ main()
exit(0);
}
EOF
-if { (eval echo configure:2270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:2288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
ac_cv_sizeof_char_p=`cat conftestval`
else
@@ -2301,7 +2319,7 @@ EOF
else
echo $ac_n "checking for the null device""... $ac_c" 1>&6
-echo "configure:2305: checking for the null device" >&5
+echo "configure:2323: checking for the null device" >&5
if eval "test \"`echo '$''{'cctk_cv_nulldevice'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -2364,12 +2382,12 @@ ac_link='${CC-cc} -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_
for ac_func in gethostbyname
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:2368: checking for $ac_func" >&5
+echo "configure:2386: 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 2373 "configure"
+#line 2391 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
@@ -2392,7 +2410,7 @@ $ac_func();
; return 0; }
EOF
-if { (eval echo configure:2396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:2414: \"$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"
else
@@ -2414,7 +2432,7 @@ EOF
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for gethostbyname in library nsl""... $ac_c" 1>&6
-echo "configure:2418: checking for gethostbyname in library nsl" >&5
+echo "configure:2436: checking for gethostbyname in library nsl" >&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
@@ -2423,7 +2441,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="nsl $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 2427 "configure"
+#line 2445 "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
@@ -2434,7 +2452,7 @@ int main() {
gethostbyname()
; return 0; }
EOF
-if { (eval echo configure:2438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:2456: \"$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
@@ -2465,12 +2483,12 @@ done
# Check if we have mode_t available
echo $ac_n "checking whether mode_t is defined""... $ac_c" 1>&6
-echo "configure:2469: checking whether mode_t is defined" >&5
+echo "configure:2487: checking whether mode_t is defined" >&5
if eval "test \"`echo '$''{'cctk_cv_have_mode_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2474 "configure"
+#line 2492 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <stdlib.h>
@@ -2480,7 +2498,7 @@ int main() {
mode_t foo; return 0
; return 0; }
EOF
-if { (eval echo configure:2484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:2502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "cctk_cv_have_mode_t=yes"
else
@@ -2506,12 +2524,12 @@ fi
echo $ac_n "checking for availability of gettimeofday timing""... $ac_c" 1>&6
-echo "configure:2510: checking for availability of gettimeofday timing" >&5
+echo "configure:2528: checking for availability of gettimeofday timing" >&5
if eval "test \"`echo '$''{'cctk_cv_time_gettimeofday'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2515 "configure"
+#line 2533 "configure"
#include "confdefs.h"
int main() {
@@ -2519,7 +2537,7 @@ gettimeofday(0, 0);
return 0;
; return 0; }
EOF
-if { (eval echo configure:2523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:2541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "cctk_cv_time_gettimeofday=yes"
else
@@ -2541,12 +2559,12 @@ else
fi
if eval "test \"`echo '$cctk_cv_time_gettimeofday'`\" = yes"; then
echo $ac_n "checking if gettimeofday needs timezone""... $ac_c" 1>&6
-echo "configure:2545: checking if gettimeofday needs timezone" >&5
+echo "configure:2563: checking if gettimeofday needs timezone" >&5
if eval "test \"`echo '$''{'cctk_cv_time_gettimeofday_timezone'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2550 "configure"
+#line 2568 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <sys/time.h>
@@ -2559,7 +2577,7 @@ struct timeval tp;
return 0;
; return 0; }
EOF
-if { (eval echo configure:2563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:2581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "cctk_cv_time_gettimeofday_timezone=yes"
else
@@ -2582,12 +2600,12 @@ fi
fi
echo $ac_n "checking for availability of getrusage timing""... $ac_c" 1>&6
-echo "configure:2586: checking for availability of getrusage timing" >&5
+echo "configure:2604: checking for availability of getrusage timing" >&5
if eval "test \"`echo '$''{'cctk_cv_time_getrusage'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2591 "configure"
+#line 2609 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <sys/time.h>
@@ -2600,7 +2618,7 @@ struct rusage ru;
return 0;
; return 0; }
EOF
-if { (eval echo configure:2604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:2622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "cctk_cv_time_getrusage=yes"
else
@@ -2622,12 +2640,12 @@ else
fi
echo $ac_n "checking for availability of _ftime timing""... $ac_c" 1>&6
-echo "configure:2626: checking for availability of _ftime timing" >&5
+echo "configure:2644: checking for availability of _ftime timing" >&5
if eval "test \"`echo '$''{'cctk_cv_time_ftime'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2631 "configure"
+#line 2649 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <time.h>
@@ -2640,7 +2658,7 @@ int main() {
return 0;
; return 0; }
EOF
-if { (eval echo configure:2644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:2662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "cctk_cv_time_ftime=yes"
else
@@ -2667,12 +2685,12 @@ for cctk_hdr in time.h
do
cctk_safe=`echo "$cctk_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $cctk_hdr""... $ac_c" 1>&6
-echo "configure:2671: checking for $cctk_hdr" >&5
+echo "configure:2689: checking for $cctk_hdr" >&5
if eval "test \"`echo '$''{'cctk_cv_header_$cctk_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2676 "configure"
+#line 2694 "configure"
#include "confdefs.h"
#include <$cctk_hdr>
@@ -2680,7 +2698,7 @@ int main() {
; return 0; }
EOF
-if { (eval echo configure:2684: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:2702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "cctk_cv_header_$cctk_safe=yes"
else
@@ -2707,12 +2725,12 @@ for cctk_hdr in sys/time.h
do
cctk_safe=`echo "$cctk_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $cctk_hdr""... $ac_c" 1>&6
-echo "configure:2711: checking for $cctk_hdr" >&5
+echo "configure:2729: checking for $cctk_hdr" >&5
if eval "test \"`echo '$''{'cctk_cv_header_$cctk_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2716 "configure"
+#line 2734 "configure"
#include "confdefs.h"
#include <$cctk_hdr>
@@ -2720,7 +2738,7 @@ int main() {
; return 0; }
EOF
-if { (eval echo configure:2724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:2742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "cctk_cv_header_$cctk_safe=yes"
else
@@ -2747,12 +2765,12 @@ for cctk_hdr in sys/types.h
do
cctk_safe=`echo "$cctk_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $cctk_hdr""... $ac_c" 1>&6
-echo "configure:2751: checking for $cctk_hdr" >&5
+echo "configure:2769: checking for $cctk_hdr" >&5
if eval "test \"`echo '$''{'cctk_cv_header_$cctk_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2756 "configure"
+#line 2774 "configure"
#include "confdefs.h"
#include <$cctk_hdr>
@@ -2760,7 +2778,7 @@ int main() {
; return 0; }
EOF
-if { (eval echo configure:2764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:2782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "cctk_cv_header_$cctk_safe=yes"
else
@@ -2787,12 +2805,12 @@ for cctk_hdr in unistd.h
do
cctk_safe=`echo "$cctk_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $cctk_hdr""... $ac_c" 1>&6
-echo "configure:2791: checking for $cctk_hdr" >&5
+echo "configure:2809: checking for $cctk_hdr" >&5
if eval "test \"`echo '$''{'cctk_cv_header_$cctk_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2796 "configure"
+#line 2814 "configure"
#include "confdefs.h"
#include <$cctk_hdr>
@@ -2800,7 +2818,7 @@ int main() {
; return 0; }
EOF
-if { (eval echo configure:2804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:2822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "cctk_cv_header_$cctk_safe=yes"
else
@@ -2827,12 +2845,12 @@ for cctk_hdr in string.h
do
cctk_safe=`echo "$cctk_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $cctk_hdr""... $ac_c" 1>&6
-echo "configure:2831: checking for $cctk_hdr" >&5
+echo "configure:2849: checking for $cctk_hdr" >&5
if eval "test \"`echo '$''{'cctk_cv_header_$cctk_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2836 "configure"
+#line 2854 "configure"
#include "confdefs.h"
#include <$cctk_hdr>
@@ -2840,7 +2858,7 @@ int main() {
; return 0; }
EOF
-if { (eval echo configure:2844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:2862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "cctk_cv_header_$cctk_safe=yes"
else
@@ -2867,12 +2885,12 @@ for cctk_hdr in assert.h
do
cctk_safe=`echo "$cctk_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $cctk_hdr""... $ac_c" 1>&6
-echo "configure:2871: checking for $cctk_hdr" >&5
+echo "configure:2889: checking for $cctk_hdr" >&5
if eval "test \"`echo '$''{'cctk_cv_header_$cctk_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2876 "configure"
+#line 2894 "configure"
#include "confdefs.h"
#include <$cctk_hdr>
@@ -2880,7 +2898,7 @@ int main() {
; return 0; }
EOF
-if { (eval echo configure:2884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:2902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "cctk_cv_header_$cctk_safe=yes"
else
@@ -2907,12 +2925,12 @@ for cctk_hdr in tgmath.h
do
cctk_safe=`echo "$cctk_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $cctk_hdr""... $ac_c" 1>&6
-echo "configure:2911: checking for $cctk_hdr" >&5
+echo "configure:2929: checking for $cctk_hdr" >&5
if eval "test \"`echo '$''{'cctk_cv_header_$cctk_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2916 "configure"
+#line 2934 "configure"
#include "confdefs.h"
#include <$cctk_hdr>
@@ -2920,7 +2938,7 @@ int main() {
; return 0; }
EOF
-if { (eval echo configure:2924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:2942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "cctk_cv_header_$cctk_safe=yes"
else
@@ -2947,12 +2965,12 @@ for cctk_hdr in sys/stat.h
do
cctk_safe=`echo "$cctk_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $cctk_hdr""... $ac_c" 1>&6
-echo "configure:2951: checking for $cctk_hdr" >&5
+echo "configure:2969: checking for $cctk_hdr" >&5
if eval "test \"`echo '$''{'cctk_cv_header_$cctk_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2956 "configure"
+#line 2974 "configure"
#include "confdefs.h"
#include <$cctk_hdr>
@@ -2960,7 +2978,7 @@ int main() {
; return 0; }
EOF
-if { (eval echo configure:2964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:2982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "cctk_cv_header_$cctk_safe=yes"
else
@@ -2987,12 +3005,12 @@ for cctk_hdr in getopt.h
do
cctk_safe=`echo "$cctk_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $cctk_hdr""... $ac_c" 1>&6
-echo "configure:2991: checking for $cctk_hdr" >&5
+echo "configure:3009: checking for $cctk_hdr" >&5
if eval "test \"`echo '$''{'cctk_cv_header_$cctk_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2996 "configure"
+#line 3014 "configure"
#include "confdefs.h"
#include <$cctk_hdr>
@@ -3000,7 +3018,7 @@ int main() {
; return 0; }
EOF
-if { (eval echo configure:3004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:3022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "cctk_cv_header_$cctk_safe=yes"
else
@@ -3027,12 +3045,12 @@ for cctk_hdr in dirent.h
do
cctk_safe=`echo "$cctk_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $cctk_hdr""... $ac_c" 1>&6
-echo "configure:3031: checking for $cctk_hdr" >&5
+echo "configure:3049: checking for $cctk_hdr" >&5
if eval "test \"`echo '$''{'cctk_cv_header_$cctk_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 3036 "configure"
+#line 3054 "configure"
#include "confdefs.h"
#include <$cctk_hdr>
@@ -3040,7 +3058,7 @@ int main() {
; return 0; }
EOF
-if { (eval echo configure:3044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:3062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "cctk_cv_header_$cctk_safe=yes"
else
@@ -3067,12 +3085,12 @@ for cctk_hdr in c_asm.h
do
cctk_safe=`echo "$cctk_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $cctk_hdr""... $ac_c" 1>&6
-echo "configure:3071: checking for $cctk_hdr" >&5
+echo "configure:3089: checking for $cctk_hdr" >&5
if eval "test \"`echo '$''{'cctk_cv_header_$cctk_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 3076 "configure"
+#line 3094 "configure"
#include "confdefs.h"
#include <$cctk_hdr>
@@ -3080,7 +3098,7 @@ int main() {
; return 0; }
EOF
-if { (eval echo configure:3084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:3102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "cctk_cv_header_$cctk_safe=yes"
else
@@ -3107,12 +3125,12 @@ for cctk_hdr in intrinsics.h
do
cctk_safe=`echo "$cctk_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $cctk_hdr""... $ac_c" 1>&6
-echo "configure:3111: checking for $cctk_hdr" >&5
+echo "configure:3129: checking for $cctk_hdr" >&5
if eval "test \"`echo '$''{'cctk_cv_header_$cctk_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 3116 "configure"
+#line 3134 "configure"
#include "confdefs.h"
#include <$cctk_hdr>
@@ -3120,7 +3138,7 @@ int main() {
; return 0; }
EOF
-if { (eval echo configure:3124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:3142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "cctk_cv_header_$cctk_safe=yes"
else
@@ -3147,12 +3165,12 @@ for cctk_hdr in mach/mach_time.h
do
cctk_safe=`echo "$cctk_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $cctk_hdr""... $ac_c" 1>&6
-echo "configure:3151: checking for $cctk_hdr" >&5
+echo "configure:3169: checking for $cctk_hdr" >&5
if eval "test \"`echo '$''{'cctk_cv_header_$cctk_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 3156 "configure"
+#line 3174 "configure"
#include "confdefs.h"
#include <$cctk_hdr>
@@ -3160,7 +3178,7 @@ int main() {
; return 0; }
EOF
-if { (eval echo configure:3164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:3182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "cctk_cv_header_$cctk_safe=yes"
else
@@ -3184,12 +3202,12 @@ fi
done
echo $ac_n "checking for regex.h""... $ac_c" 1>&6
-echo "configure:3188: checking for regex.h" >&5
+echo "configure:3206: checking for regex.h" >&5
if eval "test \"`echo '$''{'cctk_cv_header_regex_h'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 3193 "configure"
+#line 3211 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <regex.h>
@@ -3197,7 +3215,7 @@ int main() {
return 0;
; return 0; }
EOF
-if { (eval echo configure:3201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:3219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "cctk_cv_header_regex_h=yes"
else
@@ -3222,12 +3240,12 @@ for cctk_hdr in sys/filio.h
do
cctk_safe=`echo "$cctk_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $cctk_hdr""... $ac_c" 1>&6
-echo "configure:3226: checking for $cctk_hdr" >&5
+echo "configure:3244: checking for $cctk_hdr" >&5
if eval "test \"`echo '$''{'cctk_cv_header_$cctk_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 3231 "configure"
+#line 3249 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
@@ -3237,7 +3255,7 @@ int main() {
; return 0; }
EOF
-if { (eval echo configure:3241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:3259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "cctk_cv_header_$cctk_safe=yes"
else
@@ -3264,12 +3282,12 @@ for cctk_hdr in sys/ioctl.h
do
cctk_safe=`echo "$cctk_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $cctk_hdr""... $ac_c" 1>&6
-echo "configure:3268: checking for $cctk_hdr" >&5
+echo "configure:3286: checking for $cctk_hdr" >&5
if eval "test \"`echo '$''{'cctk_cv_header_$cctk_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 3273 "configure"
+#line 3291 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
@@ -3279,7 +3297,7 @@ int main() {
; return 0; }
EOF
-if { (eval echo configure:3283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:3301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "cctk_cv_header_$cctk_safe=yes"
else
@@ -3306,12 +3324,12 @@ for cctk_hdr in sys/socket.h
do
cctk_safe=`echo "$cctk_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $cctk_hdr""... $ac_c" 1>&6
-echo "configure:3310: checking for $cctk_hdr" >&5
+echo "configure:3328: checking for $cctk_hdr" >&5
if eval "test \"`echo '$''{'cctk_cv_header_$cctk_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 3315 "configure"
+#line 3333 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
@@ -3321,7 +3339,7 @@ int main() {
; return 0; }
EOF
-if { (eval echo configure:3325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:3343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "cctk_cv_header_$cctk_safe=yes"
else
@@ -3348,12 +3366,12 @@ for cctk_hdr in netinet/in.h
do
cctk_safe=`echo "$cctk_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $cctk_hdr""... $ac_c" 1>&6
-echo "configure:3352: checking for $cctk_hdr" >&5
+echo "configure:3370: checking for $cctk_hdr" >&5
if eval "test \"`echo '$''{'cctk_cv_header_$cctk_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 3357 "configure"
+#line 3375 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
@@ -3363,7 +3381,7 @@ int main() {
; return 0; }
EOF
-if { (eval echo configure:3367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:3385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "cctk_cv_header_$cctk_safe=yes"
else
@@ -3390,12 +3408,12 @@ for cctk_hdr in netdb.h
do
cctk_safe=`echo "$cctk_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $cctk_hdr""... $ac_c" 1>&6
-echo "configure:3394: checking for $cctk_hdr" >&5
+echo "configure:3412: checking for $cctk_hdr" >&5
if eval "test \"`echo '$''{'cctk_cv_header_$cctk_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 3399 "configure"
+#line 3417 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
@@ -3405,7 +3423,7 @@ int main() {
; return 0; }
EOF
-if { (eval echo configure:3409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:3427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "cctk_cv_header_$cctk_safe=yes"
else
@@ -3432,12 +3450,12 @@ for cctk_hdr in arpa/inet.h
do
cctk_safe=`echo "$cctk_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $cctk_hdr""... $ac_c" 1>&6
-echo "configure:3436: checking for $cctk_hdr" >&5
+echo "configure:3454: checking for $cctk_hdr" >&5
if eval "test \"`echo '$''{'cctk_cv_header_$cctk_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 3441 "configure"
+#line 3459 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
@@ -3447,7 +3465,7 @@ int main() {
; return 0; }
EOF
-if { (eval echo configure:3451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:3469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "cctk_cv_header_$cctk_safe=yes"
else
@@ -3474,12 +3492,12 @@ for cctk_hdr in winsock2.h
do
cctk_safe=`echo "$cctk_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $cctk_hdr""... $ac_c" 1>&6
-echo "configure:3478: checking for $cctk_hdr" >&5
+echo "configure:3496: checking for $cctk_hdr" >&5
if eval "test \"`echo '$''{'cctk_cv_header_$cctk_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 3483 "configure"
+#line 3501 "configure"
#include "confdefs.h"
#include <$cctk_hdr>
@@ -3487,7 +3505,7 @@ int main() {
; return 0; }
EOF
-if { (eval echo configure:3491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:3509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "cctk_cv_header_$cctk_safe=yes"
else
@@ -3514,12 +3532,12 @@ for cctk_hdr in crypt.h
do
cctk_safe=`echo "$cctk_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $cctk_hdr""... $ac_c" 1>&6
-echo "configure:3518: checking for $cctk_hdr" >&5
+echo "configure:3536: checking for $cctk_hdr" >&5
if eval "test \"`echo '$''{'cctk_cv_header_$cctk_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 3523 "configure"
+#line 3541 "configure"
#include "confdefs.h"
#ifdef HAVE_UNISTD_H
#include <unistd.h>
@@ -3529,7 +3547,7 @@ int main() {
; return 0; }
EOF
-if { (eval echo configure:3533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:3551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "cctk_cv_header_$cctk_safe=yes"
else
@@ -3556,12 +3574,12 @@ for cctk_hdr in signal.h
do
cctk_safe=`echo "$cctk_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $cctk_hdr""... $ac_c" 1>&6
-echo "configure:3560: checking for $cctk_hdr" >&5
+echo "configure:3578: checking for $cctk_hdr" >&5
if eval "test \"`echo '$''{'cctk_cv_header_$cctk_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 3565 "configure"
+#line 3583 "configure"
#include "confdefs.h"
#include <$cctk_hdr>
@@ -3569,7 +3587,7 @@ int main() {
; return 0; }
EOF
-if { (eval echo configure:3573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:3591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "cctk_cv_header_$cctk_safe=yes"
else
@@ -3596,12 +3614,12 @@ for cctk_hdr in malloc.h
do
cctk_safe=`echo "$cctk_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $cctk_hdr""... $ac_c" 1>&6
-echo "configure:3600: checking for $cctk_hdr" >&5
+echo "configure:3618: checking for $cctk_hdr" >&5
if eval "test \"`echo '$''{'cctk_cv_header_$cctk_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 3605 "configure"
+#line 3623 "configure"
#include "confdefs.h"
#include <$cctk_hdr>
@@ -3609,7 +3627,7 @@ int main() {
; return 0; }
EOF
-if { (eval echo configure:3613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:3631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "cctk_cv_header_$cctk_safe=yes"
else
@@ -3634,12 +3652,12 @@ done
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
-echo "configure:3638: checking whether time.h and sys/time.h may both be included" >&5
+echo "configure:3656: checking whether time.h and sys/time.h may both be included" >&5
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 3643 "configure"
+#line 3661 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
@@ -3648,7 +3666,7 @@ int main() {
struct tm *tp;
; return 0; }
EOF
-if { (eval echo configure:3652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:3670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_header_time=yes
else
@@ -3673,12 +3691,12 @@ fi
# Check if we have socklen_t available
echo $ac_n "checking whether socklen_t is defined""... $ac_c" 1>&6
-echo "configure:3677: checking whether socklen_t is defined" >&5
+echo "configure:3695: checking whether socklen_t is defined" >&5
if eval "test \"`echo '$''{'cctk_cv_have_socklen_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 3682 "configure"
+#line 3700 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <stdlib.h>
@@ -3698,7 +3716,7 @@ int main() {
socklen_t foo; return 0
; return 0; }
EOF
-if { (eval echo configure:3702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:3720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "cctk_cv_have_socklen_t=yes"
else
@@ -3723,12 +3741,12 @@ fi
# Check if someone has defined SOCKET
echo $ac_n "checking whether SOCKET is defined""... $ac_c" 1>&6
-echo "configure:3727: checking whether SOCKET is defined" >&5
+echo "configure:3745: checking whether SOCKET is defined" >&5
if eval "test \"`echo '$''{'cctk_cv_have_SOCKET'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 3732 "configure"
+#line 3750 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <stdlib.h>
@@ -3748,7 +3766,7 @@ int main() {
SOCKET foo; return 0
; return 0; }
EOF
-if { (eval echo configure:3752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:3770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "cctk_cv_have_SOCKET=yes"
else
@@ -3774,12 +3792,12 @@ fi
# Check for timing functions
echo $ac_n "checking for hrtime_t""... $ac_c" 1>&6
-echo "configure:3778: checking for hrtime_t" >&5
+echo "configure:3796: checking for hrtime_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_hrtime_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 3783 "configure"
+#line 3801 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
@@ -3810,12 +3828,12 @@ fi
for ac_func in gethrtime read_real_time time_base_to_time clock_gettime mach_absolute_time
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:3814: checking for $ac_func" >&5
+echo "configure:3832: 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 3819 "configure"
+#line 3837 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
@@ -3838,7 +3856,7 @@ $ac_func();
; return 0; }
EOF
-if { (eval echo configure:3842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:3860: \"$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"
else
@@ -3864,10 +3882,10 @@ done
echo $ac_n "checking for _rtc intrinsic""... $ac_c" 1>&6
-echo "configure:3868: checking for _rtc intrinsic" >&5
+echo "configure:3886: checking for _rtc intrinsic" >&5
rtc_ok=yes
cat > conftest.$ac_ext <<EOF
-#line 3871 "configure"
+#line 3889 "configure"
#include "confdefs.h"
#ifdef HAVE_INTRINSICS_H
#include <intrinsics.h>
@@ -3876,7 +3894,7 @@ int main() {
_rtc()
; return 0; }
EOF
-if { (eval echo configure:3880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:3898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cat >> confdefs.h <<\EOF
#define HAVE__RTC 1
@@ -3897,12 +3915,12 @@ ac_link='${CC-cc} -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_
for ac_func in mallinfo
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:3901: checking for $ac_func" >&5
+echo "configure:3919: 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 3906 "configure"
+#line 3924 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
@@ -3925,7 +3943,7 @@ $ac_func();
; return 0; }
EOF
-if { (eval echo configure:3929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:3947: \"$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"
else
@@ -3954,12 +3972,12 @@ ac_link='${CC-cc} -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_
for ac_func in mallopt
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:3958: checking for $ac_func" >&5
+echo "configure:3976: 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 3963 "configure"
+#line 3981 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
@@ -3982,7 +4000,7 @@ $ac_func();
; return 0; }
EOF
-if { (eval echo configure:3986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4004: \"$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"
else
@@ -4010,12 +4028,12 @@ done
# Check if M_MMAP_THRESHOLD is defined
echo $ac_n "checking whether M_MMAP_THRESHOLD is defined""... $ac_c" 1>&6
-echo "configure:4014: checking whether M_MMAP_THRESHOLD is defined" >&5
+echo "configure:4032: checking whether M_MMAP_THRESHOLD is defined" >&5
if eval "test \"`echo '$''{'cctk_cv_have_M_MMAP_THRESHOLD'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4019 "configure"
+#line 4037 "configure"
#include "confdefs.h"
#include <stdlib.h>
#ifdef HAVE_MALLOC_H
@@ -4025,7 +4043,7 @@ int main() {
int x=M_MMAP_THRESHOLD; return 0
; return 0; }
EOF
-if { (eval echo configure:4029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:4047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "cctk_cv_have_M_MMAP_THRESHOLD=yes"
else
@@ -4051,19 +4069,19 @@ fi
# Check if we have __int64
echo $ac_n "checking if __int64 is defined""... $ac_c" 1>&6
-echo "configure:4055: checking if __int64 is defined" >&5
+echo "configure:4073: checking if __int64 is defined" >&5
if eval "test \"`echo '$''{'cctk_cv_have___int64'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4060 "configure"
+#line 4078 "configure"
#include "confdefs.h"
int main() {
__int64 foo; return 0
; return 0; }
EOF
-if { (eval echo configure:4067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:4085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "cctk_cv_have___int64=yes"
else
@@ -4098,12 +4116,12 @@ cross_compiling=$ac_cv_prog_cxx_cross
do
cctk_safe=`echo "$cctk_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $cctk_hdr""... $ac_c" 1>&6
-echo "configure:4102: checking for $cctk_hdr" >&5
+echo "configure:4120: checking for $cctk_hdr" >&5
if eval "test \"`echo '$''{'cctk_cv_header_$cctk_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4107 "configure"
+#line 4125 "configure"
#include "confdefs.h"
#include <$cctk_hdr>
@@ -4111,7 +4129,7 @@ int main() {
; return 0; }
EOF
-if { (eval echo configure:4115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:4133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "cctk_cv_header_$cctk_safe=yes"
else
@@ -4150,12 +4168,12 @@ ac_link='${CC-cc} -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_
for ac_func in getopt_long_only
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:4154: checking for $ac_func" >&5
+echo "configure:4172: 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 4159 "configure"
+#line 4177 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
@@ -4178,7 +4196,7 @@ $ac_func();
; return 0; }
EOF
-if { (eval echo configure:4182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4200: \"$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"
else
@@ -4221,12 +4239,12 @@ else
fi
echo $ac_n "checking for working const""... $ac_c" 1>&6
-echo "configure:4225: checking for working const" >&5
+echo "configure:4243: 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 4230 "configure"
+#line 4248 "configure"
#include "confdefs.h"
int main() {
@@ -4275,7 +4293,7 @@ ccp = (char const *const *) p;
; return 0; }
EOF
-if { (eval echo configure:4279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:4297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_c_const=yes
else
@@ -4297,14 +4315,14 @@ fi
#AC_C_INLINE
echo $ac_n "checking for C inline""... $ac_c" 1>&6
-echo "configure:4301: checking for C inline" >&5
+echo "configure:4319: checking for C inline" >&5
if eval "test \"`echo '$''{'cctk_cv_c_inline'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cctk_cv_c_inline=no
for ac_kw in inline __inline__ __inline '__inline__ __attribute__((__gnu_inline__))'; do
cat > conftest.$ac_ext <<EOF
-#line 4308 "configure"
+#line 4326 "configure"
#include "confdefs.h"
int main() {
@@ -4312,14 +4330,14 @@ foo();
; return 0; }
EOF
cat > conftest2.$ac_ext <<EOF
-#line 4316 "configure"
+#line 4334 "configure"
#include "confdefs.h"
int main2() {
;} $ac_kw foo() {
; return 0; }
EOF
-if { (eval echo configure:4323: \"$ac_link conftest2.$ac_ext\") 1>&5; (eval $ac_link conftest2.$ac_ext) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4341: \"$ac_link conftest2.$ac_ext\") 1>&5; (eval $ac_link conftest2.$ac_ext) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cctk_cv_c_inline=$ac_kw; break
else
@@ -4349,14 +4367,14 @@ EOF
esac
echo $ac_n "checking for C static inline""... $ac_c" 1>&6
-echo "configure:4353: checking for C static inline" >&5
+echo "configure:4371: checking for C static inline" >&5
if eval "test \"`echo '$''{'cctk_cv_c_static_inline'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cctk_cv_c_static_inline=no
for ac_kw in 'static inline' 'static __inline__' 'static __inline' 'static __inline__ __attribute__((__gnu_inline__))'; do
cat > conftest.$ac_ext <<EOF
-#line 4360 "configure"
+#line 4378 "configure"
#include "confdefs.h"
int main() {
@@ -4364,14 +4382,14 @@ int main() {
; return 0; }
EOF
cat > conftest2.$ac_ext <<EOF
-#line 4368 "configure"
+#line 4386 "configure"
#include "confdefs.h"
int main2() {
;} $ac_kw ifoo(){} foo2(){ifoo();
; return 0; }
EOF
-if { (eval echo configure:4375: \"$ac_link conftest2.$ac_ext\") 1>&5; (eval $ac_link conftest2.$ac_ext) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4393: \"$ac_link conftest2.$ac_ext\") 1>&5; (eval $ac_link conftest2.$ac_ext) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cctk_cv_c_static_inline=$ac_kw; break
else
@@ -4397,14 +4415,14 @@ esac
echo $ac_n "checking for C restrict""... $ac_c" 1>&6
-echo "configure:4401: checking for C restrict" >&5
+echo "configure:4419: checking for C restrict" >&5
if eval "test \"`echo '$''{'cctk_cv_c_restrict'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cctk_cv_c_restrict=no
for ac_kw in restrict __restrict__ __restrict; do
cat > conftest.$ac_ext <<EOF
-#line 4408 "configure"
+#line 4426 "configure"
#include "confdefs.h"
int main() {
@@ -4416,7 +4434,7 @@ void func (void * arr[$ac_kw]);
; return 0; }
EOF
-if { (eval echo configure:4420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:4438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cctk_cv_c_restrict=$ac_kw; break
else
@@ -4446,7 +4464,7 @@ EOF
esac
echo $ac_n "checking for C++ restrict""... $ac_c" 1>&6
-echo "configure:4450: checking for C++ restrict" >&5
+echo "configure:4468: checking for C++ restrict" >&5
if eval "test \"`echo '$''{'cctk_cv_cxx_restrict'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4461,7 +4479,7 @@ cross_compiling=$ac_cv_prog_cxx_cross
for ac_kw in restrict __restrict__ __restrict; do
cat > conftest.$ac_ext <<EOF
-#line 4465 "configure"
+#line 4483 "configure"
#include "confdefs.h"
int main() {
@@ -4472,7 +4490,7 @@ struct tux { char * $ac_kw arr[3]; };
; return 0; }
EOF
-if { (eval echo configure:4476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:4494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cctk_cv_cxx_restrict=$ac_kw; break
else
@@ -4510,20 +4528,20 @@ esac
echo $ac_n "checking for C bool""... $ac_c" 1>&6
-echo "configure:4514: checking for C bool" >&5
+echo "configure:4532: checking for C bool" >&5
if eval "test \"`echo '$''{'cctk_cv_have_c_bool'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cctk_cv_have_c_bool=no
cat > conftest.$ac_ext <<EOF
-#line 4520 "configure"
+#line 4538 "configure"
#include "confdefs.h"
int main() {
bool foo;
; return 0; }
EOF
-if { (eval echo configure:4527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:4545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cctk_cv_have_c_bool=yes
else
@@ -4545,7 +4563,7 @@ EOF
fi
echo $ac_n "checking for CXX bool""... $ac_c" 1>&6
-echo "configure:4549: checking for CXX bool" >&5
+echo "configure:4567: checking for CXX bool" >&5
if eval "test \"`echo '$''{'cctk_cv_have_cxx_bool'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4559,14 +4577,14 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes
cross_compiling=$ac_cv_prog_cxx_cross
cat > conftest.$ac_ext <<EOF
-#line 4563 "configure"
+#line 4581 "configure"
#include "confdefs.h"
int main() {
bool foo;
; return 0; }
EOF
-if { (eval echo configure:4570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:4588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cctk_cv_have_cxx_bool=yes
else
@@ -4596,20 +4614,20 @@ fi
echo $ac_n "checking for C _Pragma""... $ac_c" 1>&6
-echo "configure:4600: checking for C _Pragma" >&5
+echo "configure:4618: checking for C _Pragma" >&5
if eval "test \"`echo '$''{'cctk_cv_have_c__Pragma'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cctk_cv_have_c__Pragma=no
cat > conftest.$ac_ext <<EOF
-#line 4606 "configure"
+#line 4624 "configure"
#include "confdefs.h"
int main() {
int x; _Pragma ("omp barrier") x=0;
; return 0; }
EOF
-if { (eval echo configure:4613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:4631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cctk_cv_have_c__Pragma=yes
else
@@ -4647,20 +4665,20 @@ fi
# Find out whether the C compiler supports __attribute__((unused))
echo $ac_n "checking for C __attribute__((__unused__))""... $ac_c" 1>&6
-echo "configure:4651: checking for C __attribute__((__unused__))" >&5
+echo "configure:4669: checking for C __attribute__((__unused__))" >&5
if eval "test \"`echo '$''{'cctk_cv_have_c_attribute_unused'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cctk_cv_have_c_attribute_unused=no
cat > conftest.$ac_ext <<EOF
-#line 4657 "configure"
+#line 4675 "configure"
#include "confdefs.h"
int main() {
double * foo __attribute__((__unused__));
; return 0; }
EOF
-if { (eval echo configure:4664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:4682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cctk_cv_have_c_attribute_unused=yes
else
@@ -4682,7 +4700,7 @@ EOF
fi
echo $ac_n "checking for CXX __attribute__((__unused__))""... $ac_c" 1>&6
-echo "configure:4686: checking for CXX __attribute__((__unused__))" >&5
+echo "configure:4704: checking for CXX __attribute__((__unused__))" >&5
if eval "test \"`echo '$''{'cctk_cv_have_cxx_attribute_unused'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4696,14 +4714,14 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes
cross_compiling=$ac_cv_prog_cxx_cross
cat > conftest.$ac_ext <<EOF
-#line 4700 "configure"
+#line 4718 "configure"
#include "confdefs.h"
int main() {
double * foo __attribute__((__unused__));
; return 0; }
EOF
-if { (eval echo configure:4707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:4725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cctk_cv_have_cxx_attribute_unused=yes
else
@@ -4740,7 +4758,7 @@ fi
#CCTK_C_ATTRIBUTE_HOT
#CCTK_CXX_ATTRIBUTE_HOT
echo $ac_n "checking for Fortran REAL*4""... $ac_c" 1>&6
-echo "configure:4744: checking for Fortran REAL*4" >&5
+echo "configure:4762: checking for Fortran REAL*4" >&5
if eval "test \"`echo '$''{'cctk_cv_have_fortran_real4'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4756,7 +4774,7 @@ cat > conftest.$ac_ext <<EOF
REAL*4 a
end
EOF
-if { (eval echo configure:4760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:4778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cctk_cv_have_fortran_real4=yes
else
@@ -4785,7 +4803,7 @@ EOF
fi
echo $ac_n "checking for Fortran REAL*8""... $ac_c" 1>&6
-echo "configure:4789: checking for Fortran REAL*8" >&5
+echo "configure:4807: checking for Fortran REAL*8" >&5
if eval "test \"`echo '$''{'cctk_cv_have_fortran_real8'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4801,7 +4819,7 @@ cat > conftest.$ac_ext <<EOF
REAL*8 a
end
EOF
-if { (eval echo configure:4805: \"$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*
cctk_cv_have_fortran_real8=yes
else
@@ -4830,7 +4848,7 @@ EOF
fi
echo $ac_n "checking for Fortran REAL*16""... $ac_c" 1>&6
-echo "configure:4834: checking for Fortran REAL*16" >&5
+echo "configure:4852: checking for Fortran REAL*16" >&5
if eval "test \"`echo '$''{'cctk_cv_have_fortran_real16'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4846,7 +4864,7 @@ cat > conftest.$ac_ext <<EOF
REAL*16 a
end
EOF
-if { (eval echo configure:4850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:4868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cctk_cv_have_fortran_real16=yes
else
@@ -4876,7 +4894,7 @@ fi
echo $ac_n "checking for Fortran COMPLEX*8""... $ac_c" 1>&6
-echo "configure:4880: checking for Fortran COMPLEX*8" >&5
+echo "configure:4898: checking for Fortran COMPLEX*8" >&5
if eval "test \"`echo '$''{'cctk_cv_have_fortran_complex8'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4892,7 +4910,7 @@ cat > conftest.$ac_ext <<EOF
COMPLEX*8 a
end
EOF
-if { (eval echo configure:4896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:4914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cctk_cv_have_fortran_complex8=yes
else
@@ -4921,7 +4939,7 @@ EOF
fi
echo $ac_n "checking for Fortran COMPLEX*16""... $ac_c" 1>&6
-echo "configure:4925: checking for Fortran COMPLEX*16" >&5
+echo "configure:4943: checking for Fortran COMPLEX*16" >&5
if eval "test \"`echo '$''{'cctk_cv_have_fortran_complex16'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4937,7 +4955,7 @@ cat > conftest.$ac_ext <<EOF
COMPLEX*16 a
end
EOF
-if { (eval echo configure:4941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:4959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cctk_cv_have_fortran_complex16=yes
else
@@ -4966,7 +4984,7 @@ EOF
fi
echo $ac_n "checking for Fortran COMPLEX*32""... $ac_c" 1>&6
-echo "configure:4970: checking for Fortran COMPLEX*32" >&5
+echo "configure:4988: checking for Fortran COMPLEX*32" >&5
if eval "test \"`echo '$''{'cctk_cv_have_fortran_complex32'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4982,7 +5000,7 @@ cat > conftest.$ac_ext <<EOF
COMPLEX*32 a
end
EOF
-if { (eval echo configure:4986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:5004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cctk_cv_have_fortran_complex32=yes
else
@@ -5013,12 +5031,12 @@ fi
ac_link='${CC-cc} -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext `CCTK_Wrap "$LIBDIR_PREFIX" "$LIBDIR_SUFFIX" "$LIBDIRS"` `CCTK_Wrap "$LIBLINK_PREFIX" "$LIBLINK_SUFFIX" "$LIBS"` >&5'
echo $ac_n "checking for crypt""... $ac_c" 1>&6
-echo "configure:5017: checking for crypt" >&5
+echo "configure:5035: checking for crypt" >&5
if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5022 "configure"
+#line 5040 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char crypt(); below. */
@@ -5041,7 +5059,7 @@ crypt();
; return 0; }
EOF
-if { (eval echo configure:5045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_crypt=yes"
else
@@ -5059,7 +5077,7 @@ if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for crypt in library crypt""... $ac_c" 1>&6
-echo "configure:5063: checking for crypt in library crypt" >&5
+echo "configure:5081: checking for crypt in library crypt" >&5
ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -5068,7 +5086,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="crypt $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 5072 "configure"
+#line 5090 "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
@@ -5079,7 +5097,7 @@ int main() {
crypt()
; return 0; }
EOF
-if { (eval echo configure:5083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5101: \"$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
@@ -5120,12 +5138,12 @@ ac_link='${CC-cc} -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_
for ac_func in finite
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:5124: checking for $ac_func" >&5
+echo "configure:5142: 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 5129 "configure"
+#line 5147 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
@@ -5148,7 +5166,7 @@ $ac_func();
; return 0; }
EOF
-if { (eval echo configure:5152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5170: \"$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"
else
@@ -5170,7 +5188,7 @@ EOF
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for finite in library m""... $ac_c" 1>&6
-echo "configure:5174: checking for finite in library m" >&5
+echo "configure:5192: checking for finite in library m" >&5
ac_lib_var=`echo m'_'finite | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -5179,7 +5197,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="m $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 5183 "configure"
+#line 5201 "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
@@ -5190,7 +5208,7 @@ int main() {
finite()
; return 0; }
EOF
-if { (eval echo configure:5194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5212: \"$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
@@ -5232,12 +5250,12 @@ ac_link='${CC-cc} -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_
for ac_func in isnan
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:5236: checking for $ac_func" >&5
+echo "configure:5254: 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 5241 "configure"
+#line 5259 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
@@ -5260,7 +5278,7 @@ $ac_func();
; return 0; }
EOF
-if { (eval echo configure:5264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5282: \"$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"
else
@@ -5282,7 +5300,7 @@ EOF
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for isnan in library m""... $ac_c" 1>&6
-echo "configure:5286: checking for isnan in library m" >&5
+echo "configure:5304: checking for isnan in library m" >&5
ac_lib_var=`echo m'_'isnan | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -5291,7 +5309,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="m $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 5295 "configure"
+#line 5313 "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
@@ -5302,7 +5320,7 @@ int main() {
isnan()
; return 0; }
EOF
-if { (eval echo configure:5306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5324: \"$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
@@ -5344,12 +5362,12 @@ ac_link='${CC-cc} -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_
for ac_func in isinf
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:5348: checking for $ac_func" >&5
+echo "configure:5366: 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 5353 "configure"
+#line 5371 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
@@ -5372,7 +5390,7 @@ $ac_func();
; return 0; }
EOF
-if { (eval echo configure:5376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5394: \"$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"
else
@@ -5394,7 +5412,7 @@ EOF
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for isinf in library m""... $ac_c" 1>&6
-echo "configure:5398: checking for isinf in library m" >&5
+echo "configure:5416: checking for isinf in library m" >&5
ac_lib_var=`echo m'_'isinf | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -5403,7 +5421,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="m $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 5407 "configure"
+#line 5425 "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
@@ -5414,7 +5432,7 @@ int main() {
isinf()
; return 0; }
EOF
-if { (eval echo configure:5418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5436: \"$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
@@ -5456,12 +5474,12 @@ ac_link='${CC-cc} -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_
for ac_func in mkstemp
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:5460: checking for $ac_func" >&5
+echo "configure:5478: 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 5465 "configure"
+#line 5483 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
@@ -5484,7 +5502,7 @@ $ac_func();
; return 0; }
EOF
-if { (eval echo configure:5488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5506: \"$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"
else
@@ -5506,7 +5524,7 @@ EOF
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for mkstemp in library c""... $ac_c" 1>&6
-echo "configure:5510: checking for mkstemp in library c" >&5
+echo "configure:5528: checking for mkstemp in library c" >&5
ac_lib_var=`echo c'_'mkstemp | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -5515,18 +5533,18 @@ else
ac_save_LIBS="$LIBS"
LIBS="c $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 5519 "configure"
+#line 5537 "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 fRQzfT;
+char GMpCAp;
int main() {
-pSqC0Q
+qOuLaU
; return 0; }
EOF
-if { (eval echo configure:5530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5548: \"$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
@@ -5565,19 +5583,19 @@ done
echo $ac_n "checking for va_copy""... $ac_c" 1>&6
-echo "configure:5569: checking for va_copy" >&5
+echo "configure:5587: checking for va_copy" >&5
if eval "test \"`echo '$''{'cctk_cv_have_va_copy'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5574 "configure"
+#line 5592 "configure"
#include "confdefs.h"
#include <stdarg.h>
int main() {
va_list src, dest; va_copy(dest, src); return 0
; return 0; }
EOF
-if { (eval echo configure:5581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "cctk_cv_have_va_copy=yes"
else
@@ -5616,7 +5634,7 @@ if test "$PTHREADS_MODE" = 'yes'; then
if test -z "$PTHREAD_LIBS"; then
PTHREAD_LIBS=
echo $ac_n "checking for main in library c_r""... $ac_c" 1>&6
-echo "configure:5620: checking for main in library c_r" >&5
+echo "configure:5638: checking for main in library c_r" >&5
ac_lib_var=`echo c_r'_'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
@@ -5625,14 +5643,14 @@ else
ac_save_LIBS="$LIBS"
LIBS="c_r $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 5629 "configure"
+#line 5647 "configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
-if { (eval echo configure:5636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5654: \"$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
@@ -5653,7 +5671,7 @@ else
fi
echo $ac_n "checking for main in library pthread""... $ac_c" 1>&6
-echo "configure:5657: checking for main in library pthread" >&5
+echo "configure:5675: checking for main in library pthread" >&5
ac_lib_var=`echo pthread'_'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
@@ -5662,14 +5680,14 @@ else
ac_save_LIBS="$LIBS"
LIBS="pthread $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 5666 "configure"
+#line 5684 "configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
-if { (eval echo configure:5673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5691: \"$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
@@ -5688,7 +5706,7 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for main in library pthreads""... $ac_c" 1>&6
-echo "configure:5692: checking for main in library pthreads" >&5
+echo "configure:5710: checking for main in library pthreads" >&5
ac_lib_var=`echo pthreads'_'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
@@ -5697,14 +5715,14 @@ else
ac_save_LIBS="$LIBS"
LIBS="pthreads $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 5701 "configure"
+#line 5719 "configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
-if { (eval echo configure:5708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5726: \"$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
@@ -6171,7 +6189,7 @@ if test "x$CCTK_NEED_X" = 'xyes' ; then
# 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:6175: checking for X" >&5
+echo "configure:6193: checking for X" >&5
# Check whether --with-x or --without-x was given.
if test "${with_x+set}" = set; then
@@ -6233,12 +6251,12 @@ if test "$ac_x_includes" = NO; then
# First, try using that file with no special directory specified.
cat > conftest.$ac_ext <<EOF
-#line 6237 "configure"
+#line 6255 "configure"
#include "confdefs.h"
#include <$x_direct_test_include>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:6242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:6260: \"$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*
@@ -6307,14 +6325,14 @@ if test "$ac_x_libraries" = NO; then
ac_save_LIBS="$LIBS"
LIBS="-l$x_direct_test_library $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 6311 "configure"
+#line 6329 "configure"
#include "confdefs.h"
int main() {
${x_direct_test_function}()
; return 0; }
EOF
-if { (eval echo configure:6318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:6336: \"$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.
@@ -6566,26 +6584,36 @@ s%@AR@%$AR%g
s%@MKDIR@%$MKDIR%g
s%@LD@%$LD%g
s%@WARN_MODE@%$WARN_MODE%g
+s%@CPP_WARN_FLAGS@%$CPP_WARN_FLAGS%g
+s%@FPP_WARN_FLAGS@%$FPP_WARN_FLAGS%g
s%@C_WARN_FLAGS@%$C_WARN_FLAGS%g
s%@CXX_WARN_FLAGS@%$CXX_WARN_FLAGS%g
s%@F77_WARN_FLAGS@%$F77_WARN_FLAGS%g
s%@F90_WARN_FLAGS@%$F90_WARN_FLAGS%g
s%@DEBUG_MODE@%$DEBUG_MODE%g
+s%@CPP_DEBUG_FLAGS@%$CPP_DEBUG_FLAGS%g
+s%@FPP_DEBUG_FLAGS@%$FPP_DEBUG_FLAGS%g
s%@C_DEBUG_FLAGS@%$C_DEBUG_FLAGS%g
s%@CXX_DEBUG_FLAGS@%$CXX_DEBUG_FLAGS%g
s%@F77_DEBUG_FLAGS@%$F77_DEBUG_FLAGS%g
s%@F90_DEBUG_FLAGS@%$F90_DEBUG_FLAGS%g
s%@OPTIMISE_MODE@%$OPTIMISE_MODE%g
+s%@CPP_OPTIMISE_FLAGS@%$CPP_OPTIMISE_FLAGS%g
+s%@FPP_OPTIMISE_FLAGS@%$FPP_OPTIMISE_FLAGS%g
s%@C_OPTIMISE_FLAGS@%$C_OPTIMISE_FLAGS%g
s%@CXX_OPTIMISE_FLAGS@%$CXX_OPTIMISE_FLAGS%g
s%@F77_OPTIMISE_FLAGS@%$F77_OPTIMISE_FLAGS%g
s%@F90_OPTIMISE_FLAGS@%$F90_OPTIMISE_FLAGS%g
s%@PROFILE_MODE@%$PROFILE_MODE%g
+s%@CPP_PROFILE_FLAGS@%$CPP_PROFILE_FLAGS%g
+s%@FPP_PROFILE_FLAGS@%$FPP_PROFILE_FLAGS%g
s%@C_PROFILE_FLAGS@%$C_PROFILE_FLAGS%g
s%@CXX_PROFILE_FLAGS@%$CXX_PROFILE_FLAGS%g
s%@F77_PROFILE_FLAGS@%$F77_PROFILE_FLAGS%g
s%@F90_PROFILE_FLAGS@%$F90_PROFILE_FLAGS%g
s%@OPENMP_MODE@%$OPENMP_MODE%g
+s%@CPP_OPENMP_FLAGS@%$CPP_OPENMP_FLAGS%g
+s%@FPP_OPENMP_FLAGS@%$FPP_OPENMP_FLAGS%g
s%@C_OPENMP_FLAGS@%$C_OPENMP_FLAGS%g
s%@CXX_OPENMP_FLAGS@%$CXX_OPENMP_FLAGS%g
s%@F77_OPENMP_FLAGS@%$F77_OPENMP_FLAGS%g
diff --git a/lib/make/configure.in b/lib/make/configure.in
index 4152e7b6..6ddfb8d0 100644
--- a/lib/make/configure.in
+++ b/lib/make/configure.in
@@ -270,6 +270,12 @@ AC_SUBST(WARN_MODE)
# Set the warning flags if they've not been set by now
# (using GNU compiler warning flags as a reasonable default)
+AC_SUBST(CPP_WARN_FLAGS)
+: ${CPP_WARN_FLAGS='-Wall'}
+
+AC_SUBST(FPP_WARN_FLAGS)
+: ${FPP_WARN_FLAGS='-Wall'}
+
AC_SUBST(C_WARN_FLAGS)
if test "$CC" = 'gcc' ; then
: ${C_WARN_FLAGS='-Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wbad-function-cast -Wsign-compare'}
@@ -307,6 +313,12 @@ fi
# Set the debug flags if they've not been set by now
# (using '-g' as a reasonable default)
+AC_SUBST(CPP_DEBUG_FLAGS)
+: ${CPP_DEBUG_FLAGS='-g'}
+
+AC_SUBST(FPP_DEBUG_FLAGS)
+: ${FPP_DEBUG_FLAGS='-g'}
+
AC_SUBST(C_DEBUG_FLAGS)
: ${C_DEBUG_FLAGS='-g'}
@@ -324,6 +336,12 @@ AC_SUBST(F90_DEBUG_FLAGS)
# (using '-O2' as a reasonable default)
AC_SUBST(OPTIMISE_MODE)
+AC_SUBST(CPP_OPTIMISE_FLAGS)
+: ${CPP_OPTIMISE_FLAGS=''}
+
+AC_SUBST(FPP_OPTIMISE_FLAGS)
+: ${FPP_OPTIMISE_FLAGS=''}
+
AC_SUBST(C_OPTIMISE_FLAGS)
: ${C_OPTIMISE_FLAGS='-O2'}
@@ -345,6 +363,12 @@ AC_SUBST(F90_OPTIMISE_FLAGS)
# (using '-pg' as a reasonable default)
AC_SUBST(PROFILE_MODE)
+AC_SUBST(CPP_PROFILE_FLAGS)
+: ${CPP_PROFILE_FLAGS=''}
+
+AC_SUBST(FPP_PROFILE_FLAGS)
+: ${FPP_PROFILE_FLAGS=''}
+
AC_SUBST(C_PROFILE_FLAGS)
: ${C_PROFILE_FLAGS='-pg'}
@@ -361,6 +385,8 @@ AC_SUBST(F90_PROFILE_FLAGS)
# Set the OpenMP flags if they've not been set by now
AC_SUBST(OPENMP_MODE)
+AC_SUBST(CPP_OPENMP_FLAGS)
+AC_SUBST(FPP_OPENMP_FLAGS)
AC_SUBST(C_OPENMP_FLAGS)
AC_SUBST(CXX_OPENMP_FLAGS)
AC_SUBST(F77_OPENMP_FLAGS)
diff --git a/lib/make/force-reconfigure b/lib/make/force-reconfigure
index b296a8c9..6169ddc2 100644
--- a/lib/make/force-reconfigure
+++ b/lib/make/force-reconfigure
@@ -25,3 +25,4 @@
26 Mar 2010: Add RUNDIR_PREFIX configuration option
13 Oct 2010: Updated ExternalLibraries/HDF5
23 Nov 2010: Improve handling of unused variables
+21 Dec 2010: Add new options CPP_*_FLAGS and FPP_*_FLAGS
diff --git a/lib/make/make.config.defn.in b/lib/make/make.config.defn.in
index 3e5f9314..47f4cbe3 100644
--- a/lib/make/make.config.defn.in
+++ b/lib/make/make.config.defn.in
@@ -61,30 +61,40 @@ export RUNDIR_PREFIX = @RUNDIR_PREFIX@
export LIBLINK_PREFIX = @LIBLINK_PREFIX@
# Debug flags
+export CPP_DEBUG_FLAGS = @CPP_DEBUG_FLAGS@
+export FPP_DEBUG_FLAGS = @FPP_DEBUG_FLAGS@
export C_DEBUG_FLAGS = @C_DEBUG_FLAGS@
export CXX_DEBUG_FLAGS = @CXX_DEBUG_FLAGS@
export F90_DEBUG_FLAGS = @F90_DEBUG_FLAGS@
export F77_DEBUG_FLAGS = @F77_DEBUG_FLAGS@
# Optimisation flags
+export CPP_OPTIMISE_FLAGS = @CPP_OPTIMISE_FLAGS@
+export FPP_OPTIMISE_FLAGS = @FPP_OPTIMISE_FLAGS@
export C_OPTIMISE_FLAGS = @C_OPTIMISE_FLAGS@
export CXX_OPTIMISE_FLAGS = @CXX_OPTIMISE_FLAGS@
export F90_OPTIMISE_FLAGS = @F90_OPTIMISE_FLAGS@
export F77_OPTIMISE_FLAGS = @F77_OPTIMISE_FLAGS@
# Profiling flags
+export CPP_PROFILE_FLAGS = @CPP_PROFILE_FLAGS@
+export FPP_PROFILE_FLAGS = @FPP_PROFILE_FLAGS@
export C_PROFILE_FLAGS = @C_PROFILE_FLAGS@
export CXX_PROFILE_FLAGS = @CXX_PROFILE_FLAGS@
export F90_PROFILE_FLAGS = @F90_PROFILE_FLAGS@
export F77_PROFILE_FLAGS = @F77_PROFILE_FLAGS@
# OpenMP flags
+export CPP_OPENMP_FLAGS = @CPP_OPENMP_FLAGS@
+export FPP_OPENMP_FLAGS = @FPP_OPENMP_FLAGS@
export C_OPENMP_FLAGS = @C_OPENMP_FLAGS@
export CXX_OPENMP_FLAGS = @CXX_OPENMP_FLAGS@
export F90_OPENMP_FLAGS = @F90_OPENMP_FLAGS@
export F77_OPENMP_FLAGS = @F77_OPENMP_FLAGS@
# Warning flags
+export CPP_WARN_FLAGS = @CPP_WARN_FLAGS@
+export FPP_WARN_FLAGS = @FPP_WARN_FLAGS@
export C_WARN_FLAGS = @C_WARN_FLAGS@
export CXX_WARN_FLAGS = @CXX_WARN_FLAGS@
export F90_WARN_FLAGS = @F90_WARN_FLAGS@
@@ -200,6 +210,8 @@ export EXE = @EXE@
export CCTK_DEBUG_MODE = @DEBUG_MODE@
ifeq ($(strip $(CCTK_DEBUG_MODE)),yes)
+ CPPFLAGS += $(CPP_DEBUG_FLAGS)
+ FPPFLAGS += $(FPP_DEBUG_FLAGS)
CFLAGS += $(C_DEBUG_FLAGS)
CXXFLAGS += $(CXX_DEBUG_FLAGS)
F77FLAGS += $(F77_DEBUG_FLAGS)
@@ -210,6 +222,8 @@ endif
CCTK_OPTIMISE_MODE = @OPTIMISE_MODE@
ifeq ($(strip $(CCTK_OPTIMISE_MODE)),yes)
+ CPPFLAGS += $(CPP_OPTIMISE_FLAGS)
+ FPPFLAGS += $(FPP_OPTIMISE_FLAGS)
CFLAGS += $(C_OPTIMISE_FLAGS)
CXXFLAGS += $(CXX_OPTIMISE_FLAGS)
F77FLAGS += $(F77_OPTIMISE_FLAGS)
@@ -220,6 +234,8 @@ endif
CCTK_PROFILE_MODE = @PROFILE_MODE@
ifeq ($(strip $(CCTK_PROFILE_MODE)),yes)
+ CPPFLAGS += $(CPP_PROFILE_FLAGS)
+ FPPFLAGS += $(FPP_PROFILE_FLAGS)
CFLAGS += $(C_PROFILE_FLAGS)
CXXFLAGS += $(CXX_PROFILE_FLAGS)
F77FLAGS += $(F77_PROFILE_FLAGS)
@@ -230,11 +246,12 @@ endif
CCTK_OPENMP_MODE = @OPENMP_MODE@
ifeq ($(strip $(CCTK_OPENMP_MODE)),yes)
+ CPPFLAGS += $(CPP_OPENMP_FLAGS)
+ FPPFLAGS += $(FPP_OPENMP_FLAGS)
CFLAGS += $(C_OPENMP_FLAGS)
CXXFLAGS += $(CXX_OPENMP_FLAGS)
F77FLAGS += $(F77_OPENMP_FLAGS)
F90FLAGS += $(F90_OPENMP_FLAGS)
- FPPFLAGS += -D_OPENMP
endif
# Are we building with all warnings switched on ?
@@ -246,6 +263,8 @@ else
endif
ifeq ($(strip $(CCTK_WARN_MODE)),yes)
+ CPPFLAGS += $(CPP_WARN_FLAGS)
+ FPPFLAGS += $(FPP_WARN_FLAGS)
CFLAGS += $(C_WARN_FLAGS)
CXXFLAGS += $(CXX_WARN_FLAGS)
F77FLAGS += $(F77_WARN_FLAGS)