26
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21
# is contrary to our usage. Disable this feature.
22
alias -g '${1+"$@"}'='"$@"'
29
23
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26
DUALCASE=1; export DUALCASE # for MKS sh
34
28
# Support unset when possible.
35
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
29
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
41
(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
42
{ $as_unset LANG || test "${LANG+set}" != set; } ||
43
{ LANG=C; export LANG; }
44
(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
45
{ $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
46
{ LC_ALL=C; export LC_ALL; }
47
(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
48
{ $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
49
{ LC_TIME=C; export LC_TIME; }
50
(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
51
{ $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
52
{ LC_CTYPE=C; export LC_CTYPE; }
53
(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
54
{ $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
55
{ LANGUAGE=C; export LANGUAGE; }
56
(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
57
{ $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
58
{ LC_COLLATE=C; export LC_COLLATE; }
59
(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
60
{ $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
61
{ LC_NUMERIC=C; export LC_NUMERIC; }
62
(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
63
{ $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
64
{ LC_MESSAGES=C; export LC_MESSAGES; }
36
# Work around bugs in pre-3.0 UWIN ksh.
37
$as_unset ENV MAIL MAILPATH
44
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49
eval $as_var=C; export $as_var
55
# Required to use basename.
56
if expr a : '\(a\)' >/dev/null 2>&1; then
62
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67
69
# Name of the executable.
68
as_me=`(basename "$0") 2>/dev/null ||
70
as_me=`$as_basename "$0" ||
69
71
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70
72
X"$0" : 'X\(//\)$' \| \
71
73
X"$0" : 'X\(/\)$' \| \
1030
1080
# Keep a trace of the command line.
1031
1081
# Strip out --no-create and --no-recursion so they do not pile up.
1082
# Strip out --silent because we don't want to record it for future runs.
1032
1083
# Also quote any args containing shell meta-characters.
1084
# Make two passes to allow for proper duplicate-argument suppression.
1033
1085
ac_configure_args=
1089
ac_must_keep_next=false
1038
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1039
| --no-cr | --no-c | -n ) continue ;;
1040
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1043
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1044
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1046
case " $ac_configure_args " in
1047
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1048
*) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1051
# Get rid of the leading space.
1095
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1096
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097
| -silent | --silent | --silen | --sile | --sil)
1099
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1100
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1103
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1105
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1106
if test $ac_must_keep_next = true; then
1107
ac_must_keep_next=false # Got value, back to normal.
1110
*=* | --config-cache | -C | -disable-* | --disable-* \
1111
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1112
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1113
| -with-* | --with-* | -without-* | --without-* | --x)
1114
case "$ac_configure_args0 " in
1115
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1118
-* ) ac_must_keep_next=true ;;
1121
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1122
# Get rid of the leading space.
1128
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1129
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1054
1131
# When interrupted or exit'd, cleanup temporary files, and complete
1055
1132
# config.log. We remove comments because anyway the quotes in there
1896
# Some people use a C++ compiler to compile C. Since we use `exit',
1897
# in C++ we need to declare it. In case someone uses the same compiler
1898
# for both compiling C and C++ we need to have the C++ compiler decide
1899
# the declaration of exit, since it's the most demanding environment.
1900
cat >conftest.$ac_ext <<_ACEOF
1905
rm -f conftest.$ac_objext
1906
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1907
(eval $ac_compile) 2>&5
1909
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1910
(exit $ac_status); } &&
1911
{ ac_try='test -s conftest.$ac_objext'
1912
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1915
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1916
(exit $ac_status); }; }; then
1917
for ac_declaration in \
1919
'#include <stdlib.h>' \
1920
'extern "C" void std::exit (int) throw (); using std::exit;' \
1921
'extern "C" void std::exit (int); using std::exit;' \
1922
'extern "C" void exit (int) throw ();' \
1923
'extern "C" void exit (int);' \
1926
cat >conftest.$ac_ext <<_ACEOF
1927
#line $LINENO "configure"
1928
#include "confdefs.h"
1931
#ifdef F77_DUMMY_MAIN
1935
int F77_DUMMY_MAIN() { return 1; }
1945
rm -f conftest.$ac_objext
1946
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1947
(eval $ac_compile) 2>&5
1949
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1950
(exit $ac_status); } &&
1951
{ ac_try='test -s conftest.$ac_objext'
1952
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1955
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956
(exit $ac_status); }; }; then
1959
echo "$as_me: failed program was:" >&5
1960
cat conftest.$ac_ext >&5
1963
rm -f conftest.$ac_objext conftest.$ac_ext
1964
cat >conftest.$ac_ext <<_ACEOF
1965
#line $LINENO "configure"
1966
#include "confdefs.h"
1968
#ifdef F77_DUMMY_MAIN
1972
int F77_DUMMY_MAIN() { return 1; }
1982
rm -f conftest.$ac_objext
1983
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1984
(eval $ac_compile) 2>&5
1986
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1987
(exit $ac_status); } &&
1988
{ ac_try='test -s conftest.$ac_objext'
1989
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1992
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1993
(exit $ac_status); }; }; then
1996
echo "$as_me: failed program was:" >&5
1997
cat conftest.$ac_ext >&5
1999
rm -f conftest.$ac_objext conftest.$ac_ext
2002
if test -n "$ac_declaration"; then
2003
echo '#ifdef __cplusplus' >>confdefs.h
2004
echo $ac_declaration >>confdefs.h
2005
echo '#endif' >>confdefs.h
2009
echo "$as_me: failed program was:" >&5
2010
cat conftest.$ac_ext >&5
2012
rm -f conftest.$ac_objext conftest.$ac_ext
2014
ac_cpp='$CPP $CPPFLAGS'
2015
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2016
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2017
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2023
ac_cpp='$CPP $CPPFLAGS'
2024
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2025
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2026
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2027
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2028
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2029
# On Suns, sometimes $CPP names a directory.
2030
if test -n "$CPP" && test -d "$CPP"; then
2033
if test -z "$CPP"; then
2034
if test "${ac_cv_prog_CPP+set}" = set; then
2035
echo $ECHO_N "(cached) $ECHO_C" >&6
2037
# Double quotes because CPP needs to be expanded
2038
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2041
for ac_c_preproc_warn_flag in '' yes
2043
# Use a header file that comes with gcc, so configuring glibc
2044
# with a fresh cross-compiler works.
2045
# On the NeXT, cc -E runs the code through the compiler's parser,
2046
# not just through cpp. "Syntax error" is here to catch this case.
2047
cat >conftest.$ac_ext <<_ACEOF
2048
#line $LINENO "configure"
2049
#include "confdefs.h"
2053
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2054
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2056
egrep -v '^ *\+' conftest.er1 >conftest.err
2058
cat conftest.err >&5
2059
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060
(exit $ac_status); } >/dev/null; then
2061
if test -s conftest.err; then
2062
ac_cpp_err=$ac_c_preproc_warn_flag
2069
if test -z "$ac_cpp_err"; then
2072
echo "$as_me: failed program was:" >&5
2073
cat conftest.$ac_ext >&5
2074
# Broken: fails on valid input.
2077
rm -f conftest.err conftest.$ac_ext
2079
# OK, works on sane cases. Now check whether non-existent headers
2080
# can be detected and how.
2081
cat >conftest.$ac_ext <<_ACEOF
2082
#line $LINENO "configure"
2083
#include "confdefs.h"
2084
#include <ac_nonexistent.h>
2086
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2087
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2089
egrep -v '^ *\+' conftest.er1 >conftest.err
2091
cat conftest.err >&5
2092
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093
(exit $ac_status); } >/dev/null; then
2094
if test -s conftest.err; then
2095
ac_cpp_err=$ac_c_preproc_warn_flag
2102
if test -z "$ac_cpp_err"; then
2103
# Broken: success on invalid input.
2106
echo "$as_me: failed program was:" >&5
2107
cat conftest.$ac_ext >&5
2108
# Passes both tests.
2112
rm -f conftest.err conftest.$ac_ext
2115
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2116
rm -f conftest.err conftest.$ac_ext
2117
if $ac_preproc_ok; then
2129
echo "$as_me:$LINENO: result: $CPP" >&5
2130
echo "${ECHO_T}$CPP" >&6
2132
for ac_c_preproc_warn_flag in '' yes
2134
# Use a header file that comes with gcc, so configuring glibc
2135
# with a fresh cross-compiler works.
2136
# On the NeXT, cc -E runs the code through the compiler's parser,
2137
# not just through cpp. "Syntax error" is here to catch this case.
2138
cat >conftest.$ac_ext <<_ACEOF
2139
#line $LINENO "configure"
2140
#include "confdefs.h"
2144
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2145
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2147
egrep -v '^ *\+' conftest.er1 >conftest.err
2149
cat conftest.err >&5
2150
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151
(exit $ac_status); } >/dev/null; then
2152
if test -s conftest.err; then
2153
ac_cpp_err=$ac_c_preproc_warn_flag
2160
if test -z "$ac_cpp_err"; then
2163
echo "$as_me: failed program was:" >&5
2164
cat conftest.$ac_ext >&5
2165
# Broken: fails on valid input.
2168
rm -f conftest.err conftest.$ac_ext
2170
# OK, works on sane cases. Now check whether non-existent headers
2171
# can be detected and how.
2172
cat >conftest.$ac_ext <<_ACEOF
2173
#line $LINENO "configure"
2174
#include "confdefs.h"
2175
#include <ac_nonexistent.h>
2177
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2178
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2180
egrep -v '^ *\+' conftest.er1 >conftest.err
2182
cat conftest.err >&5
2183
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184
(exit $ac_status); } >/dev/null; then
2185
if test -s conftest.err; then
2186
ac_cpp_err=$ac_c_preproc_warn_flag
2193
if test -z "$ac_cpp_err"; then
2194
# Broken: success on invalid input.
2197
echo "$as_me: failed program was:" >&5
2198
cat conftest.$ac_ext >&5
2199
# Passes both tests.
2203
rm -f conftest.err conftest.$ac_ext
2206
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2207
rm -f conftest.err conftest.$ac_ext
2208
if $ac_preproc_ok; then
2211
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2212
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2213
{ (exit 1); exit 1; }; }
2217
ac_cpp='$CPP $CPPFLAGS'
2218
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2219
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2220
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2223
2036
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2224
2037
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2225
2038
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2317
2147
CC="$CC $ac_cv_prog_cc_stdc" ;;
2150
# Some people use a C++ compiler to compile C. Since we use `exit',
2151
# in C++ we need to declare it. In case someone uses the same compiler
2152
# for both compiling C and C++ we need to have the C++ compiler decide
2153
# the declaration of exit, since it's the most demanding environment.
2154
cat >conftest.$ac_ext <<_ACEOF
2159
rm -f conftest.$ac_objext
2160
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2161
(eval $ac_compile) 2>conftest.er1
2163
grep -v '^ *+' conftest.er1 >conftest.err
2165
cat conftest.err >&5
2166
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167
(exit $ac_status); } &&
2168
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2169
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2172
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173
(exit $ac_status); }; } &&
2174
{ ac_try='test -s conftest.$ac_objext'
2175
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179
(exit $ac_status); }; }; then
2180
for ac_declaration in \
2182
'extern "C" void std::exit (int) throw (); using std::exit;' \
2183
'extern "C" void std::exit (int); using std::exit;' \
2184
'extern "C" void exit (int) throw ();' \
2185
'extern "C" void exit (int);' \
2188
cat >conftest.$ac_ext <<_ACEOF
2191
cat confdefs.h >>conftest.$ac_ext
2192
cat >>conftest.$ac_ext <<_ACEOF
2193
/* end confdefs.h. */
2204
rm -f conftest.$ac_objext
2205
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2206
(eval $ac_compile) 2>conftest.er1
2208
grep -v '^ *+' conftest.er1 >conftest.err
2210
cat conftest.err >&5
2211
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212
(exit $ac_status); } &&
2213
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2214
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218
(exit $ac_status); }; } &&
2219
{ ac_try='test -s conftest.$ac_objext'
2220
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2223
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224
(exit $ac_status); }; }; then
2227
echo "$as_me: failed program was:" >&5
2228
sed 's/^/| /' conftest.$ac_ext >&5
2232
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2233
cat >conftest.$ac_ext <<_ACEOF
2236
cat confdefs.h >>conftest.$ac_ext
2237
cat >>conftest.$ac_ext <<_ACEOF
2238
/* end confdefs.h. */
2248
rm -f conftest.$ac_objext
2249
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2250
(eval $ac_compile) 2>conftest.er1
2252
grep -v '^ *+' conftest.er1 >conftest.err
2254
cat conftest.err >&5
2255
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256
(exit $ac_status); } &&
2257
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2258
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2261
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262
(exit $ac_status); }; } &&
2263
{ ac_try='test -s conftest.$ac_objext'
2264
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2267
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268
(exit $ac_status); }; }; then
2271
echo "$as_me: failed program was:" >&5
2272
sed 's/^/| /' conftest.$ac_ext >&5
2275
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2278
if test -n "$ac_declaration"; then
2279
echo '#ifdef __cplusplus' >>confdefs.h
2280
echo $ac_declaration >>confdefs.h
2281
echo '#endif' >>confdefs.h
2285
echo "$as_me: failed program was:" >&5
2286
sed 's/^/| /' conftest.$ac_ext >&5
2289
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2291
ac_cpp='$CPP $CPPFLAGS'
2292
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2293
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2294
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2300
ac_cpp='$CPP $CPPFLAGS'
2301
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2302
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2303
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2304
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2305
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2306
# On Suns, sometimes $CPP names a directory.
2307
if test -n "$CPP" && test -d "$CPP"; then
2310
if test -z "$CPP"; then
2311
if test "${ac_cv_prog_CPP+set}" = set; then
2312
echo $ECHO_N "(cached) $ECHO_C" >&6
2314
# Double quotes because CPP needs to be expanded
2315
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2318
for ac_c_preproc_warn_flag in '' yes
2320
# Use a header file that comes with gcc, so configuring glibc
2321
# with a fresh cross-compiler works.
2322
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2323
# <limits.h> exists even on freestanding compilers.
2324
# On the NeXT, cc -E runs the code through the compiler's parser,
2325
# not just through cpp. "Syntax error" is here to catch this case.
2326
cat >conftest.$ac_ext <<_ACEOF
2329
cat confdefs.h >>conftest.$ac_ext
2330
cat >>conftest.$ac_ext <<_ACEOF
2331
/* end confdefs.h. */
2333
# include <limits.h>
2335
# include <assert.h>
2339
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2340
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2342
grep -v '^ *+' conftest.er1 >conftest.err
2344
cat conftest.err >&5
2345
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346
(exit $ac_status); } >/dev/null; then
2347
if test -s conftest.err; then
2348
ac_cpp_err=$ac_c_preproc_warn_flag
2349
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2356
if test -z "$ac_cpp_err"; then
2359
echo "$as_me: failed program was:" >&5
2360
sed 's/^/| /' conftest.$ac_ext >&5
2362
# Broken: fails on valid input.
2365
rm -f conftest.err conftest.$ac_ext
2367
# OK, works on sane cases. Now check whether non-existent headers
2368
# can be detected and how.
2369
cat >conftest.$ac_ext <<_ACEOF
2372
cat confdefs.h >>conftest.$ac_ext
2373
cat >>conftest.$ac_ext <<_ACEOF
2374
/* end confdefs.h. */
2375
#include <ac_nonexistent.h>
2377
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2378
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2380
grep -v '^ *+' conftest.er1 >conftest.err
2382
cat conftest.err >&5
2383
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384
(exit $ac_status); } >/dev/null; then
2385
if test -s conftest.err; then
2386
ac_cpp_err=$ac_c_preproc_warn_flag
2387
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2394
if test -z "$ac_cpp_err"; then
2395
# Broken: success on invalid input.
2398
echo "$as_me: failed program was:" >&5
2399
sed 's/^/| /' conftest.$ac_ext >&5
2401
# Passes both tests.
2405
rm -f conftest.err conftest.$ac_ext
2408
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2409
rm -f conftest.err conftest.$ac_ext
2410
if $ac_preproc_ok; then
2422
echo "$as_me:$LINENO: result: $CPP" >&5
2423
echo "${ECHO_T}$CPP" >&6
2425
for ac_c_preproc_warn_flag in '' yes
2427
# Use a header file that comes with gcc, so configuring glibc
2428
# with a fresh cross-compiler works.
2429
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2430
# <limits.h> exists even on freestanding compilers.
2431
# On the NeXT, cc -E runs the code through the compiler's parser,
2432
# not just through cpp. "Syntax error" is here to catch this case.
2433
cat >conftest.$ac_ext <<_ACEOF
2436
cat confdefs.h >>conftest.$ac_ext
2437
cat >>conftest.$ac_ext <<_ACEOF
2438
/* end confdefs.h. */
2440
# include <limits.h>
2442
# include <assert.h>
2446
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2447
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2449
grep -v '^ *+' conftest.er1 >conftest.err
2451
cat conftest.err >&5
2452
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453
(exit $ac_status); } >/dev/null; then
2454
if test -s conftest.err; then
2455
ac_cpp_err=$ac_c_preproc_warn_flag
2456
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2463
if test -z "$ac_cpp_err"; then
2466
echo "$as_me: failed program was:" >&5
2467
sed 's/^/| /' conftest.$ac_ext >&5
2469
# Broken: fails on valid input.
2472
rm -f conftest.err conftest.$ac_ext
2474
# OK, works on sane cases. Now check whether non-existent headers
2475
# can be detected and how.
2476
cat >conftest.$ac_ext <<_ACEOF
2479
cat confdefs.h >>conftest.$ac_ext
2480
cat >>conftest.$ac_ext <<_ACEOF
2481
/* end confdefs.h. */
2482
#include <ac_nonexistent.h>
2484
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2485
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2487
grep -v '^ *+' conftest.er1 >conftest.err
2489
cat conftest.err >&5
2490
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491
(exit $ac_status); } >/dev/null; then
2492
if test -s conftest.err; then
2493
ac_cpp_err=$ac_c_preproc_warn_flag
2494
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2501
if test -z "$ac_cpp_err"; then
2502
# Broken: success on invalid input.
2505
echo "$as_me: failed program was:" >&5
2506
sed 's/^/| /' conftest.$ac_ext >&5
2508
# Passes both tests.
2512
rm -f conftest.err conftest.$ac_ext
2515
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2516
rm -f conftest.err conftest.$ac_ext
2517
if $ac_preproc_ok; then
2520
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2521
See \`config.log' for more details." >&5
2522
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2523
See \`config.log' for more details." >&2;}
2524
{ (exit 1); exit 1; }; }
2528
ac_cpp='$CPP $CPPFLAGS'
2529
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2530
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2531
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2322
2536
for x in . .. ../.. ../../.. ../../../..; do
2988
3236
echo $ECHO_N "(cached) $ECHO_C" >&6
2990
3238
cat >conftest.$ac_ext <<_ACEOF
2991
#line $LINENO "configure"
2992
#include "confdefs.h"
3241
cat confdefs.h >>conftest.$ac_ext
3242
cat >>conftest.$ac_ext <<_ACEOF
3243
/* end confdefs.h. */
3244
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3245
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3246
#define gethostbyname innocuous_gethostbyname
2993
3248
/* System header to define __stub macros and hopefully few prototypes,
2994
which can conflict with char gethostbyname (); below. */
3249
which can conflict with char gethostbyname (); below.
3250
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3251
<limits.h> exists even on freestanding compilers. */
3254
# include <limits.h>
3256
# include <assert.h>
3259
#undef gethostbyname
2996
3261
/* Override any gcc2 internal prototype to avoid an error. */
2997
3262
#ifdef __cplusplus
3000
3266
/* We use char because int might match the return type of a gcc2
3001
3267
builtin and then its argument prototype would still apply. */
3002
3268
char gethostbyname ();
3005
#ifdef F77_DUMMY_MAIN
3009
int F77_DUMMY_MAIN() { return 1; }
3014
3269
/* The GNU C library defines this for functions which it implements
3015
3270
to always fail with ENOSYS. Some functions are actually named
3016
3271
something starting with __ and the normal name is an alias. */
3017
3272
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3275
char (*f) () = gethostbyname;
3284
return f != gethostbyname;
3027
3289
rm -f conftest.$ac_objext conftest$ac_exeext
3028
3290
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3029
(eval $ac_link) 2>&5
3291
(eval $ac_link) 2>conftest.er1
3293
grep -v '^ *+' conftest.er1 >conftest.err
3295
cat conftest.err >&5
3031
3296
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032
3297
(exit $ac_status); } &&
3033
{ ac_try='test -s conftest$ac_exeext'
3298
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3299
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3302
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303
(exit $ac_status); }; } &&
3304
{ ac_try='test -s conftest$ac_exeext'
3034
3305
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3035
3306
(eval $ac_try) 2>&5
3319
3624
echo $ECHO_N "(cached) $ECHO_C" >&6
3321
3626
cat >conftest.$ac_ext <<_ACEOF
3322
#line $LINENO "configure"
3323
#include "confdefs.h"
3629
cat confdefs.h >>conftest.$ac_ext
3630
cat >>conftest.$ac_ext <<_ACEOF
3631
/* end confdefs.h. */
3632
/* Define socket to an innocuous variant, in case <limits.h> declares socket.
3633
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3634
#define socket innocuous_socket
3324
3636
/* System header to define __stub macros and hopefully few prototypes,
3325
which can conflict with char socket (); below. */
3637
which can conflict with char socket (); below.
3638
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3639
<limits.h> exists even on freestanding compilers. */
3642
# include <limits.h>
3644
# include <assert.h>
3327
3649
/* Override any gcc2 internal prototype to avoid an error. */
3328
3650
#ifdef __cplusplus
3331
3654
/* We use char because int might match the return type of a gcc2
3332
3655
builtin and then its argument prototype would still apply. */
3333
3656
char socket ();
3336
#ifdef F77_DUMMY_MAIN
3340
int F77_DUMMY_MAIN() { return 1; }
3345
3657
/* The GNU C library defines this for functions which it implements
3346
3658
to always fail with ENOSYS. Some functions are actually named
3347
3659
something starting with __ and the normal name is an alias. */
3348
3660
#if defined (__stub_socket) || defined (__stub___socket)
3663
char (*f) () = socket;
3358
3677
rm -f conftest.$ac_objext conftest$ac_exeext
3359
3678
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3360
(eval $ac_link) 2>&5
3679
(eval $ac_link) 2>conftest.er1
3681
grep -v '^ *+' conftest.er1 >conftest.err
3683
cat conftest.err >&5
3362
3684
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363
3685
(exit $ac_status); } &&
3364
{ ac_try='test -s conftest$ac_exeext'
3686
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3687
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3690
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691
(exit $ac_status); }; } &&
3692
{ ac_try='test -s conftest$ac_exeext'
3365
3693
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3366
3694
(eval $ac_try) 2>&5
3597
3941
/* We use char because int might match the return type of a gcc2
3598
3942
builtin and then its argument prototype would still apply. */
3599
3943
char res_search ();
3602
#ifdef F77_DUMMY_MAIN
3606
int F77_DUMMY_MAIN() { return 1; }
3611
/* The GNU C library defines this for functions which it implements
3612
to always fail with ENOSYS. Some functions are actually named
3613
something starting with __ and the normal name is an alias. */
3614
#if defined (__stub_res_search) || defined (__stub___res_search)
3624
3952
rm -f conftest.$ac_objext conftest$ac_exeext
3625
3953
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3626
(eval $ac_link) 2>&5
3954
(eval $ac_link) 2>conftest.er1
3956
grep -v '^ *+' conftest.er1 >conftest.err
3958
cat conftest.err >&5
3628
3959
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629
3960
(exit $ac_status); } &&
3630
{ ac_try='test -s conftest$ac_exeext'
3961
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3962
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3965
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966
(exit $ac_status); }; } &&
3967
{ ac_try='test -s conftest$ac_exeext'
3631
3968
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3632
3969
(eval $ac_try) 2>&5
3634
3971
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635
3972
(exit $ac_status); }; }; then
3636
ac_cv_func_res_search=yes
3973
echo "$as_me:$LINENO: result: yes" >&5
3974
echo "${ECHO_T}yes" >&6
3638
3976
echo "$as_me: failed program was:" >&5
3639
cat conftest.$ac_ext >&5
3640
ac_cv_func_res_search=no
3642
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3644
echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
3645
echo "${ECHO_T}$ac_cv_func_res_search" >&6
3646
if test $ac_cv_func_res_search = yes; then
3649
echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
3977
sed 's/^/| /' conftest.$ac_ext >&5
3979
echo "$as_me:$LINENO: result: no" >&5
3980
echo "${ECHO_T}no" >&6
3982
rm -f conftest.err conftest.$ac_objext \
3983
conftest$ac_exeext conftest.$ac_ext
3985
LIBS="$LIBS -lresolv"
3986
echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
3650
3987
echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
3651
if test "${ac_cv_lib_resolv_res_search+set}" = set; then
3652
echo $ECHO_N "(cached) $ECHO_C" >&6
3654
ac_check_lib_save_LIBS=$LIBS
3655
LIBS="-lresolv $LIBS"
3656
cat >conftest.$ac_ext <<_ACEOF
3657
#line $LINENO "configure"
3658
#include "confdefs.h"
3988
cat >conftest.$ac_ext <<_ACEOF
3660
/* Override any gcc2 internal prototype to avoid an error. */
3664
/* We use char because int might match the return type of a gcc2
3665
builtin and then its argument prototype would still apply. */
3667
#ifdef F77_DUMMY_MAIN
3671
int F77_DUMMY_MAIN() { return 1; }
3993
res_search (0, 0, 0, 0, 0);
3681
3997
rm -f conftest.$ac_objext conftest$ac_exeext
3682
3998
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3683
(eval $ac_link) 2>&5
3999
(eval $ac_link) 2>conftest.er1
4001
grep -v '^ *+' conftest.er1 >conftest.err
4003
cat conftest.err >&5
3685
4004
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686
4005
(exit $ac_status); } &&
3687
{ ac_try='test -s conftest$ac_exeext'
4006
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4007
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4010
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011
(exit $ac_status); }; } &&
4012
{ ac_try='test -s conftest$ac_exeext'
3688
4013
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3689
4014
(eval $ac_try) 2>&5
3691
4016
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692
4017
(exit $ac_status); }; }; then
3693
ac_cv_lib_resolv_res_search=yes
4018
LIBS="$LIBS -lresolv"; RESOLV_LIB=-lresolv; echo "$as_me:$LINENO: result: yes" >&5
4019
echo "${ECHO_T}yes" >&6
3695
4021
echo "$as_me: failed program was:" >&5
3696
cat conftest.$ac_ext >&5
3697
ac_cv_lib_resolv_res_search=no
3699
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3700
LIBS=$ac_check_lib_save_LIBS
3702
echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
3703
echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6
3704
if test $ac_cv_lib_resolv_res_search = yes; then
3705
LIBS="$LIBS -lresolv" ; RESOLV_LIB=-lresolv
3707
{ { echo "$as_me:$LINENO: error: Cannot find resolver support routine res_search in -lresolv." >&5
3708
echo "$as_me: error: Cannot find resolver support routine res_search in -lresolv." >&2;}
3709
{ (exit 1); exit 1; }; }
4022
sed 's/^/| /' conftest.$ac_ext >&5
4024
LIBS="$saved_LIBS"; echo "$as_me:$LINENO: result: no" >&5
4025
echo "${ECHO_T}no" >&6
4027
rm -f conftest.err conftest.$ac_objext \
4028
conftest$ac_exeext conftest.$ac_ext
3842
4164
echo $ECHO_N "(cached) $ECHO_C" >&6
3844
4166
cat >conftest.$ac_ext <<_ACEOF
3845
#line $LINENO "configure"
3846
#include "confdefs.h"
4169
cat confdefs.h >>conftest.$ac_ext
4170
cat >>conftest.$ac_ext <<_ACEOF
4171
/* end confdefs.h. */
4172
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4173
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4174
#define $ac_func innocuous_$ac_func
3847
4176
/* System header to define __stub macros and hopefully few prototypes,
3848
which can conflict with char $ac_func (); below. */
4177
which can conflict with char $ac_func (); below.
4178
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4179
<limits.h> exists even on freestanding compilers. */
4182
# include <limits.h>
4184
# include <assert.h>
3850
4189
/* Override any gcc2 internal prototype to avoid an error. */
3851
4190
#ifdef __cplusplus
3854
4194
/* We use char because int might match the return type of a gcc2
3855
4195
builtin and then its argument prototype would still apply. */
3856
4196
char $ac_func ();
3859
#ifdef F77_DUMMY_MAIN
3863
int F77_DUMMY_MAIN() { return 1; }
3868
4197
/* The GNU C library defines this for functions which it implements
3869
4198
to always fail with ENOSYS. Some functions are actually named
3870
4199
something starting with __ and the normal name is an alias. */
3871
4200
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4203
char (*f) () = $ac_func;
4212
return f != $ac_func;
3881
4217
rm -f conftest.$ac_objext conftest$ac_exeext
3882
4218
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3883
(eval $ac_link) 2>&5
4219
(eval $ac_link) 2>conftest.er1
4221
grep -v '^ *+' conftest.er1 >conftest.err
4223
cat conftest.err >&5
3885
4224
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886
4225
(exit $ac_status); } &&
3887
{ ac_try='test -s conftest$ac_exeext'
4226
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4227
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4230
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231
(exit $ac_status); }; } &&
4232
{ ac_try='test -s conftest$ac_exeext'
3888
4233
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3889
4234
(eval $ac_try) 2>&5
3925
4279
echo $ECHO_N "(cached) $ECHO_C" >&6
3927
4281
cat >conftest.$ac_ext <<_ACEOF
3928
#line $LINENO "configure"
3929
#include "confdefs.h"
4284
cat confdefs.h >>conftest.$ac_ext
4285
cat >>conftest.$ac_ext <<_ACEOF
4286
/* end confdefs.h. */
4287
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4288
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4289
#define $ac_func innocuous_$ac_func
3930
4291
/* System header to define __stub macros and hopefully few prototypes,
3931
which can conflict with char $ac_func (); below. */
4292
which can conflict with char $ac_func (); below.
4293
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4294
<limits.h> exists even on freestanding compilers. */
4297
# include <limits.h>
4299
# include <assert.h>
3933
4304
/* Override any gcc2 internal prototype to avoid an error. */
3934
4305
#ifdef __cplusplus
3937
4309
/* We use char because int might match the return type of a gcc2
3938
4310
builtin and then its argument prototype would still apply. */
3939
4311
char $ac_func ();
3942
#ifdef F77_DUMMY_MAIN
3946
int F77_DUMMY_MAIN() { return 1; }
3951
4312
/* The GNU C library defines this for functions which it implements
3952
4313
to always fail with ENOSYS. Some functions are actually named
3953
4314
something starting with __ and the normal name is an alias. */
3954
4315
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4318
char (*f) () = $ac_func;
4327
return f != $ac_func;
3964
4332
rm -f conftest.$ac_objext conftest$ac_exeext
3965
4333
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3966
(eval $ac_link) 2>&5
4334
(eval $ac_link) 2>conftest.er1
4336
grep -v '^ *+' conftest.er1 >conftest.err
4338
cat conftest.err >&5
3968
4339
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969
4340
(exit $ac_status); } &&
3970
{ ac_try='test -s conftest$ac_exeext'
4341
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4342
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346
(exit $ac_status); }; } &&
4347
{ ac_try='test -s conftest$ac_exeext'
3971
4348
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3972
4349
(eval $ac_try) 2>&5
4373
echo "$as_me:$LINENO: checking for egrep" >&5
4374
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4375
if test "${ac_cv_prog_egrep+set}" = set; then
4376
echo $ECHO_N "(cached) $ECHO_C" >&6
4378
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4379
then ac_cv_prog_egrep='grep -E'
4380
else ac_cv_prog_egrep='egrep'
4383
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4384
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4385
EGREP=$ac_cv_prog_egrep
3994
4388
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3995
4389
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3996
4390
if test "${ac_cv_header_stdc+set}" = set; then
3997
4391
echo $ECHO_N "(cached) $ECHO_C" >&6
3999
4393
cat >conftest.$ac_ext <<_ACEOF
4000
#line $LINENO "configure"
4001
#include "confdefs.h"
4396
cat confdefs.h >>conftest.$ac_ext
4397
cat >>conftest.$ac_ext <<_ACEOF
4398
/* end confdefs.h. */
4002
4399
#include <stdlib.h>
4003
4400
#include <stdarg.h>
4004
4401
#include <string.h>
4005
4402
#include <float.h>
4008
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4009
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4412
rm -f conftest.$ac_objext
4413
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4414
(eval $ac_compile) 2>conftest.er1
4011
egrep -v '^ *\+' conftest.er1 >conftest.err
4416
grep -v '^ *+' conftest.er1 >conftest.err
4012
4417
rm -f conftest.er1
4013
4418
cat conftest.err >&5
4014
4419
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015
(exit $ac_status); } >/dev/null; then
4016
if test -s conftest.err; then
4017
ac_cpp_err=$ac_c_preproc_warn_flag
4024
if test -z "$ac_cpp_err"; then
4420
(exit $ac_status); } &&
4421
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4422
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4425
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426
(exit $ac_status); }; } &&
4427
{ ac_try='test -s conftest.$ac_objext'
4428
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4431
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432
(exit $ac_status); }; }; then
4025
4433
ac_cv_header_stdc=yes
4027
4435
echo "$as_me: failed program was:" >&5
4028
cat conftest.$ac_ext >&5
4029
ac_cv_header_stdc=no
4436
sed 's/^/| /' conftest.$ac_ext >&5
4438
ac_cv_header_stdc=no
4031
rm -f conftest.err conftest.$ac_ext
4440
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4033
4442
if test $ac_cv_header_stdc = yes; then
4034
4443
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4035
4444
cat >conftest.$ac_ext <<_ACEOF
4036
#line $LINENO "configure"
4037
#include "confdefs.h"
4447
cat confdefs.h >>conftest.$ac_ext
4448
cat >>conftest.$ac_ext <<_ACEOF
4449
/* end confdefs.h. */
4038
4450
#include <string.h>
4041
4453
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4042
egrep "memchr" >/dev/null 2>&1; then
4454
$EGREP "memchr" >/dev/null 2>&1; then
4045
4457
ac_cv_header_stdc=no
4270
4721
echo "${ECHO_T}$ac_header_preproc" >&6
4272
4723
# So? What about this header?
4273
case $ac_header_compiler:$ac_header_preproc in
4724
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4275
4726
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4276
4727
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4277
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4278
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4728
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4729
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4730
ac_header_preproc=yes
4280
4733
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4281
4734
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4282
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4283
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4735
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4736
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4737
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4738
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4739
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4740
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4284
4741
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4285
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4742
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4743
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4744
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4747
## ------------------------------------------ ##
4748
## Report this to the AC_PACKAGE_NAME lists. ##
4749
## ------------------------------------------ ##
4752
sed "s/^/$as_me: WARNING: /" >&2
4287
4755
echo "$as_me:$LINENO: checking for $ac_header" >&5
4288
4756
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4289
4757
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4290
4758
echo $ECHO_N "(cached) $ECHO_C" >&6
4292
eval "$as_ac_Header=$ac_header_preproc"
4760
eval "$as_ac_Header=\$ac_header_preproc"
4294
4762
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4295
4763
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5096
5597
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5600
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5601
# is contrary to our usage. Disable this feature.
5602
alias -g '${1+"$@"}'='"$@"'
5099
5603
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5606
DUALCASE=1; export DUALCASE # for MKS sh
5104
5608
# Support unset when possible.
5105
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5609
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5111
(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
5112
{ $as_unset LANG || test "${LANG+set}" != set; } ||
5113
{ LANG=C; export LANG; }
5114
(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
5115
{ $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
5116
{ LC_ALL=C; export LC_ALL; }
5117
(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
5118
{ $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
5119
{ LC_TIME=C; export LC_TIME; }
5120
(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
5121
{ $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
5122
{ LC_CTYPE=C; export LC_CTYPE; }
5123
(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
5124
{ $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
5125
{ LANGUAGE=C; export LANGUAGE; }
5126
(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
5127
{ $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
5128
{ LC_COLLATE=C; export LC_COLLATE; }
5129
(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
5130
{ $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
5131
{ LC_NUMERIC=C; export LC_NUMERIC; }
5132
(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
5133
{ $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
5134
{ LC_MESSAGES=C; export LC_MESSAGES; }
5616
# Work around bugs in pre-3.0 UWIN ksh.
5617
$as_unset ENV MAIL MAILPATH
5624
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5625
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5626
LC_TELEPHONE LC_TIME
5628
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5629
eval $as_var=C; export $as_var
5635
# Required to use basename.
5636
if expr a : '\(a\)' >/dev/null 2>&1; then
5642
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5643
as_basename=basename
5137
5649
# Name of the executable.
5138
as_me=`(basename "$0") 2>/dev/null ||
5650
as_me=`$as_basename "$0" ||
5139
5651
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5140
5652
X"$0" : 'X\(//\)$' \| \
5141
5653
X"$0" : 'X\(/\)$' \| \
5683
6228
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5684
6229
case $ac_file in
5685
6230
- | *:- | *:-:* ) # input from stdin
5687
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5688
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6232
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6233
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5689
6234
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5690
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6235
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5691
6236
* ) ac_file_in=$ac_file.in ;;
5694
6239
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5695
6240
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5696
6241
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5697
X"$ac_file" : 'X\(//\)[^/]' \| \
5698
X"$ac_file" : 'X\(//\)$' \| \
5699
X"$ac_file" : 'X\(/\)' \| \
5700
. : '\(.\)' 2>/dev/null ||
6242
X"$ac_file" : 'X\(//\)[^/]' \| \
6243
X"$ac_file" : 'X\(//\)$' \| \
6244
X"$ac_file" : 'X\(/\)' \| \
6245
. : '\(.\)' 2>/dev/null ||
5701
6246
echo X"$ac_file" |
5702
6247
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5703
6248
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
5704
6249
/^X\(\/\/\)$/{ s//\1/; q; }
5705
6250
/^X\(\/\).*/{ s//\1/; q; }
5708
[\\/]* | ?:[\\/]* ) as_incr_dir=;;
5712
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5713
case $as_mkdir_dir in
5714
# Skip DOS drivespec
5715
?:) as_incr_dir=$as_mkdir_dir ;;
5717
as_incr_dir=$as_incr_dir/$as_mkdir_dir
5718
test -d "$as_incr_dir" ||
5719
mkdir "$as_incr_dir" ||
5720
{ { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
5721
echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
5722
{ (exit 1); exit 1; }; }
6252
{ if $as_mkdir_p; then
6257
while test ! -d "$as_dir"; do
6258
as_dirs="$as_dir $as_dirs"
6259
as_dir=`(dirname "$as_dir") 2>/dev/null ||
6260
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6261
X"$as_dir" : 'X\(//\)[^/]' \| \
6262
X"$as_dir" : 'X\(//\)$' \| \
6263
X"$as_dir" : 'X\(/\)' \| \
6264
. : '\(.\)' 2>/dev/null ||
6266
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6267
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
6268
/^X\(\/\/\)$/{ s//\1/; q; }
6269
/^X\(\/\).*/{ s//\1/; q; }
6272
test ! -n "$as_dirs" || mkdir $as_dirs
6273
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6274
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6275
{ (exit 1); exit 1; }; }; }