|
|
|
@ -2929,6 +2929,7 @@ esac
|
|
|
|
|
# Check C compiler features
|
|
|
|
|
# -------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ac_ext=c
|
|
|
|
|
ac_cpp='$CPP $CPPFLAGS'
|
|
|
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
|
@ -3164,80 +3165,6 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
|
|
|
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo "$as_me:$LINENO: checking for inline" >&5
|
|
|
|
|
echo $ECHO_N "checking for inline... $ECHO_C" >&6
|
|
|
|
|
if test "${ac_cv_c_inline+set}" = set; then
|
|
|
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
|
|
else
|
|
|
|
|
ac_cv_c_inline=no
|
|
|
|
|
for ac_kw in inline __inline__ __inline; do
|
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
|
|
|
/* confdefs.h. */
|
|
|
|
|
_ACEOF
|
|
|
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
|
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
|
|
/* end confdefs.h. */
|
|
|
|
|
#ifndef __cplusplus
|
|
|
|
|
typedef int foo_t;
|
|
|
|
|
static $ac_kw foo_t static_foo () {return 0; }
|
|
|
|
|
$ac_kw foo_t foo () {return 0; }
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
_ACEOF
|
|
|
|
|
rm -f conftest.$ac_objext
|
|
|
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
|
|
|
(eval $ac_compile) 2>conftest.er1
|
|
|
|
|
ac_status=$?
|
|
|
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
|
|
rm -f conftest.er1
|
|
|
|
|
cat conftest.err >&5
|
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
|
|
(exit $ac_status); } &&
|
|
|
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
|
|
|
|
|| test ! -s conftest.err'
|
|
|
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
|
|
|
(eval $ac_try) 2>&5
|
|
|
|
|
ac_status=$?
|
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
|
|
(exit $ac_status); }; } &&
|
|
|
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
|
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
|
|
|
(eval $ac_try) 2>&5
|
|
|
|
|
ac_status=$?
|
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
|
|
(exit $ac_status); }; }; then
|
|
|
|
|
ac_cv_c_inline=$ac_kw; break
|
|
|
|
|
else
|
|
|
|
|
echo "$as_me: failed program was:" >&5
|
|
|
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
|
|
|
|
|
echo "${ECHO_T}$ac_cv_c_inline" >&6
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case $ac_cv_c_inline in
|
|
|
|
|
inline | yes) ;;
|
|
|
|
|
*)
|
|
|
|
|
case $ac_cv_c_inline in
|
|
|
|
|
no) ac_val=;;
|
|
|
|
|
*) ac_val=$ac_cv_c_inline;;
|
|
|
|
|
esac
|
|
|
|
|
cat >>confdefs.h <<_ACEOF
|
|
|
|
|
#ifndef __cplusplus
|
|
|
|
|
#define inline $ac_val
|
|
|
|
|
#endif
|
|
|
|
|
_ACEOF
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# sizeof(char) is 1 by definition.
|
|
|
|
|
|
|
|
|
|
echo "$as_me:$LINENO: checking for egrep" >&5
|
|
|
|
|
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
|
|
|
|
|
if test "${ac_cv_prog_egrep+set}" = set; then
|
|
|
|
@ -3491,6 +3418,555 @@ fi
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if test "${ac_cv_header_minix_config_h+set}" = set; then
|
|
|
|
|
echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
|
|
|
|
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
|
|
|
|
if test "${ac_cv_header_minix_config_h+set}" = set; then
|
|
|
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
|
|
fi
|
|
|
|
|
echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
|
|
|
|
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
|
|
|
|
else
|
|
|
|
|
# Is the header compilable?
|
|
|
|
|
echo "$as_me:$LINENO: checking minix/config.h usability" >&5
|
|
|
|
|
echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
|
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
|
|
|
/* confdefs.h. */
|
|
|
|
|
_ACEOF
|
|
|
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
|
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
|
|
/* end confdefs.h. */
|
|
|
|
|
$ac_includes_default
|
|
|
|
|
#include <minix/config.h>
|
|
|
|
|
_ACEOF
|
|
|
|
|
rm -f conftest.$ac_objext
|
|
|
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
|
|
|
(eval $ac_compile) 2>conftest.er1
|
|
|
|
|
ac_status=$?
|
|
|
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
|
|
rm -f conftest.er1
|
|
|
|
|
cat conftest.err >&5
|
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
|
|
(exit $ac_status); } &&
|
|
|
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
|
|
|
|
|| test ! -s conftest.err'
|
|
|
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
|
|
|
(eval $ac_try) 2>&5
|
|
|
|
|
ac_status=$?
|
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
|
|
(exit $ac_status); }; } &&
|
|
|
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
|
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
|
|
|
(eval $ac_try) 2>&5
|
|
|
|
|
ac_status=$?
|
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
|
|
(exit $ac_status); }; }; then
|
|
|
|
|
ac_header_compiler=yes
|
|
|
|
|
else
|
|
|
|
|
echo "$as_me: failed program was:" >&5
|
|
|
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
|
|
|
|
|
|
ac_header_compiler=no
|
|
|
|
|
fi
|
|
|
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
|
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
|
|
|
|
echo "${ECHO_T}$ac_header_compiler" >&6
|
|
|
|
|
|
|
|
|
|
# Is the header present?
|
|
|
|
|
echo "$as_me:$LINENO: checking minix/config.h presence" >&5
|
|
|
|
|
echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
|
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
|
|
|
/* confdefs.h. */
|
|
|
|
|
_ACEOF
|
|
|
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
|
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
|
|
/* end confdefs.h. */
|
|
|
|
|
#include <minix/config.h>
|
|
|
|
|
_ACEOF
|
|
|
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
|
|
|
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
|
|
|
|
ac_status=$?
|
|
|
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
|
|
rm -f conftest.er1
|
|
|
|
|
cat conftest.err >&5
|
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
|
|
(exit $ac_status); } >/dev/null; then
|
|
|
|
|
if test -s conftest.err; then
|
|
|
|
|
ac_cpp_err=$ac_c_preproc_warn_flag
|
|
|
|
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
|
|
|
|
else
|
|
|
|
|
ac_cpp_err=
|
|
|
|
|
fi
|
|
|
|
|
else
|
|
|
|
|
ac_cpp_err=yes
|
|
|
|
|
fi
|
|
|
|
|
if test -z "$ac_cpp_err"; then
|
|
|
|
|
ac_header_preproc=yes
|
|
|
|
|
else
|
|
|
|
|
echo "$as_me: failed program was:" >&5
|
|
|
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
|
|
|
|
|
|
ac_header_preproc=no
|
|
|
|
|
fi
|
|
|
|
|
rm -f conftest.err conftest.$ac_ext
|
|
|
|
|
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
|
|
|
|
echo "${ECHO_T}$ac_header_preproc" >&6
|
|
|
|
|
|
|
|
|
|
# So? What about this header?
|
|
|
|
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
|
|
|
|
yes:no: )
|
|
|
|
|
{ echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
|
|
|
|
echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
|
|
|
|
{ echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
|
|
|
|
|
echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
|
|
|
|
|
ac_header_preproc=yes
|
|
|
|
|
;;
|
|
|
|
|
no:yes:* )
|
|
|
|
|
{ echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
|
|
|
|
|
echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
|
|
|
|
|
{ echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
|
|
|
|
|
echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
|
|
|
|
|
{ echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
|
|
|
|
|
echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
|
|
|
|
|
{ echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
|
|
|
|
|
echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
|
|
|
|
{ echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
|
|
|
|
|
echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
|
|
|
|
|
{ echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
|
|
|
|
|
echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
|
|
|
|
|
(
|
|
|
|
|
cat <<\_ASBOX
|
|
|
|
|
## ------------------------------------------ ##
|
|
|
|
|
## Report this to the AC_PACKAGE_NAME lists. ##
|
|
|
|
|
## ------------------------------------------ ##
|
|
|
|
|
_ASBOX
|
|
|
|
|
) |
|
|
|
|
|
sed "s/^/$as_me: WARNING: /" >&2
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
|
|
|
|
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
|
|
|
|
if test "${ac_cv_header_minix_config_h+set}" = set; then
|
|
|
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
|
|
else
|
|
|
|
|
ac_cv_header_minix_config_h=$ac_header_preproc
|
|
|
|
|
fi
|
|
|
|
|
echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
|
|
|
|
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
if test $ac_cv_header_minix_config_h = yes; then
|
|
|
|
|
MINIX=yes
|
|
|
|
|
else
|
|
|
|
|
MINIX=
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if test "$MINIX" = yes; then
|
|
|
|
|
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
|
|
|
#define _POSIX_SOURCE 1
|
|
|
|
|
_ACEOF
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
|
|
|
#define _POSIX_1_SOURCE 2
|
|
|
|
|
_ACEOF
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
|
|
|
#define _MINIX 1
|
|
|
|
|
_ACEOF
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
|
|
|
|
|
echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
|
|
|
|
|
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
|
|
|
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
|
|
else
|
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
|
|
|
/* confdefs.h. */
|
|
|
|
|
_ACEOF
|
|
|
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
|
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
|
|
/* end confdefs.h. */
|
|
|
|
|
|
|
|
|
|
# define __EXTENSIONS__ 1
|
|
|
|
|
$ac_includes_default
|
|
|
|
|
int
|
|
|
|
|
main ()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
;
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
_ACEOF
|
|
|
|
|
rm -f conftest.$ac_objext
|
|
|
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
|
|
|
(eval $ac_compile) 2>conftest.er1
|
|
|
|
|
ac_status=$?
|
|
|
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
|
|
rm -f conftest.er1
|
|
|
|
|
cat conftest.err >&5
|
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
|
|
(exit $ac_status); } &&
|
|
|
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
|
|
|
|
|| test ! -s conftest.err'
|
|
|
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
|
|
|
(eval $ac_try) 2>&5
|
|
|
|
|
ac_status=$?
|
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
|
|
(exit $ac_status); }; } &&
|
|
|
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
|
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
|
|
|
(eval $ac_try) 2>&5
|
|
|
|
|
ac_status=$?
|
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
|
|
(exit $ac_status); }; }; then
|
|
|
|
|
ac_cv_safe_to_define___extensions__=yes
|
|
|
|
|
else
|
|
|
|
|
echo "$as_me: failed program was:" >&5
|
|
|
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
|
|
|
|
|
|
ac_cv_safe_to_define___extensions__=no
|
|
|
|
|
fi
|
|
|
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
|
fi
|
|
|
|
|
echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
|
|
|
|
|
echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
|
|
|
|
|
test $ac_cv_safe_to_define___extensions__ = yes &&
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
|
|
|
#define __EXTENSIONS__ 1
|
|
|
|
|
_ACEOF
|
|
|
|
|
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
|
|
|
#define _ALL_SOURCE 1
|
|
|
|
|
_ACEOF
|
|
|
|
|
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
|
|
|
#define _GNU_SOURCE 1
|
|
|
|
|
_ACEOF
|
|
|
|
|
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
|
|
|
#define _POSIX_PTHREAD_SEMANTICS 1
|
|
|
|
|
_ACEOF
|
|
|
|
|
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
|
|
|
#define _TANDEM_SOURCE 1
|
|
|
|
|
_ACEOF
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ac_ext=c
|
|
|
|
|
ac_cpp='$CPP $CPPFLAGS'
|
|
|
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
|
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
|
|
|
|
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
|
|
|
|
|
# On Suns, sometimes $CPP names a directory.
|
|
|
|
|
if test -n "$CPP" && test -d "$CPP"; then
|
|
|
|
|
CPP=
|
|
|
|
|
fi
|
|
|
|
|
if test -z "$CPP"; then
|
|
|
|
|
if test "${ac_cv_prog_CPP+set}" = set; then
|
|
|
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
|
|
else
|
|
|
|
|
# Double quotes because CPP needs to be expanded
|
|
|
|
|
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
|
|
|
|
do
|
|
|
|
|
ac_preproc_ok=false
|
|
|
|
|
for ac_c_preproc_warn_flag in '' yes
|
|
|
|
|
do
|
|
|
|
|
# Use a header file that comes with gcc, so configuring glibc
|
|
|
|
|
# with a fresh cross-compiler works.
|
|
|
|
|
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
|
|
|
# <limits.h> exists even on freestanding compilers.
|
|
|
|
|
# On the NeXT, cc -E runs the code through the compiler's parser,
|
|
|
|
|
# not just through cpp. "Syntax error" is here to catch this case.
|
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
|
|
|
/* confdefs.h. */
|
|
|
|
|
_ACEOF
|
|
|
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
|
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
|
|
/* end confdefs.h. */
|
|
|
|
|
#ifdef __STDC__
|
|
|
|
|
# include <limits.h>
|
|
|
|
|
#else
|
|
|
|
|
# include <assert.h>
|
|
|
|
|
#endif
|
|
|
|
|
Syntax error
|
|
|
|
|
_ACEOF
|
|
|
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
|
|
|
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
|
|
|
|
ac_status=$?
|
|
|
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
|
|
rm -f conftest.er1
|
|
|
|
|
cat conftest.err >&5
|
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
|
|
(exit $ac_status); } >/dev/null; then
|
|
|
|
|
if test -s conftest.err; then
|
|
|
|
|
ac_cpp_err=$ac_c_preproc_warn_flag
|
|
|
|
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
|
|
|
|
else
|
|
|
|
|
ac_cpp_err=
|
|
|
|
|
fi
|
|
|
|
|
else
|
|
|
|
|
ac_cpp_err=yes
|
|
|
|
|
fi
|
|
|
|
|
if test -z "$ac_cpp_err"; then
|
|
|
|
|
:
|
|
|
|
|
else
|
|
|
|
|
echo "$as_me: failed program was:" >&5
|
|
|
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
|
|
|
|
|
|
# Broken: fails on valid input.
|
|
|
|
|
continue
|
|
|
|
|
fi
|
|
|
|
|
rm -f conftest.err conftest.$ac_ext
|
|
|
|
|
|
|
|
|
|
# OK, works on sane cases. Now check whether non-existent headers
|
|
|
|
|
# can be detected and how.
|
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
|
|
|
/* confdefs.h. */
|
|
|
|
|
_ACEOF
|
|
|
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
|
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
|
|
/* end confdefs.h. */
|
|
|
|
|
#include <ac_nonexistent.h>
|
|
|
|
|
_ACEOF
|
|
|
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
|
|
|
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
|
|
|
|
ac_status=$?
|
|
|
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
|
|
rm -f conftest.er1
|
|
|
|
|
cat conftest.err >&5
|
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
|
|
(exit $ac_status); } >/dev/null; then
|
|
|
|
|
if test -s conftest.err; then
|
|
|
|
|
ac_cpp_err=$ac_c_preproc_warn_flag
|
|
|
|
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
|
|
|
|
else
|
|
|
|
|
ac_cpp_err=
|
|
|
|
|
fi
|
|
|
|
|
else
|
|
|
|
|
ac_cpp_err=yes
|
|
|
|
|
fi
|
|
|
|
|
if test -z "$ac_cpp_err"; then
|
|
|
|
|
# Broken: success on invalid input.
|
|
|
|
|
continue
|
|
|
|
|
else
|
|
|
|
|
echo "$as_me: failed program was:" >&5
|
|
|
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
|
|
|
|
|
|
# Passes both tests.
|
|
|
|
|
ac_preproc_ok=:
|
|
|
|
|
break
|
|
|
|
|
fi
|
|
|
|
|
rm -f conftest.err conftest.$ac_ext
|
|
|
|
|
|
|
|
|
|
done
|
|
|
|
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
|
|
|
|
rm -f conftest.err conftest.$ac_ext
|
|
|
|
|
if $ac_preproc_ok; then
|
|
|
|
|
break
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
done
|
|
|
|
|
ac_cv_prog_CPP=$CPP
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
CPP=$ac_cv_prog_CPP
|
|
|
|
|
else
|
|
|
|
|
ac_cv_prog_CPP=$CPP
|
|
|
|
|
fi
|
|
|
|
|
echo "$as_me:$LINENO: result: $CPP" >&5
|
|
|
|
|
echo "${ECHO_T}$CPP" >&6
|
|
|
|
|
ac_preproc_ok=false
|
|
|
|
|
for ac_c_preproc_warn_flag in '' yes
|
|
|
|
|
do
|
|
|
|
|
# Use a header file that comes with gcc, so configuring glibc
|
|
|
|
|
# with a fresh cross-compiler works.
|
|
|
|
|
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
|
|
|
# <limits.h> exists even on freestanding compilers.
|
|
|
|
|
# On the NeXT, cc -E runs the code through the compiler's parser,
|
|
|
|
|
# not just through cpp. "Syntax error" is here to catch this case.
|
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
|
|
|
/* confdefs.h. */
|
|
|
|
|
_ACEOF
|
|
|
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
|
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
|
|
/* end confdefs.h. */
|
|
|
|
|
#ifdef __STDC__
|
|
|
|
|
# include <limits.h>
|
|
|
|
|
#else
|
|
|
|
|
# include <assert.h>
|
|
|
|
|
#endif
|
|
|
|
|
Syntax error
|
|
|
|
|
_ACEOF
|
|
|
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
|
|
|
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
|
|
|
|
ac_status=$?
|
|
|
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
|
|
rm -f conftest.er1
|
|
|
|
|
cat conftest.err >&5
|
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
|
|
(exit $ac_status); } >/dev/null; then
|
|
|
|
|
if test -s conftest.err; then
|
|
|
|
|
ac_cpp_err=$ac_c_preproc_warn_flag
|
|
|
|
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
|
|
|
|
else
|
|
|
|
|
ac_cpp_err=
|
|
|
|
|
fi
|
|
|
|
|
else
|
|
|
|
|
ac_cpp_err=yes
|
|
|
|
|
fi
|
|
|
|
|
if test -z "$ac_cpp_err"; then
|
|
|
|
|
:
|
|
|
|
|
else
|
|
|
|
|
echo "$as_me: failed program was:" >&5
|
|
|
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
|
|
|
|
|
|
# Broken: fails on valid input.
|
|
|
|
|
continue
|
|
|
|
|
fi
|
|
|
|
|
rm -f conftest.err conftest.$ac_ext
|
|
|
|
|
|
|
|
|
|
# OK, works on sane cases. Now check whether non-existent headers
|
|
|
|
|
# can be detected and how.
|
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
|
|
|
/* confdefs.h. */
|
|
|
|
|
_ACEOF
|
|
|
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
|
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
|
|
/* end confdefs.h. */
|
|
|
|
|
#include <ac_nonexistent.h>
|
|
|
|
|
_ACEOF
|
|
|
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
|
|
|
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
|
|
|
|
ac_status=$?
|
|
|
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
|
|
rm -f conftest.er1
|
|
|
|
|
cat conftest.err >&5
|
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
|
|
(exit $ac_status); } >/dev/null; then
|
|
|
|
|
if test -s conftest.err; then
|
|
|
|
|
ac_cpp_err=$ac_c_preproc_warn_flag
|
|
|
|
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
|
|
|
|
else
|
|
|
|
|
ac_cpp_err=
|
|
|
|
|
fi
|
|
|
|
|
else
|
|
|
|
|
ac_cpp_err=yes
|
|
|
|
|
fi
|
|
|
|
|
if test -z "$ac_cpp_err"; then
|
|
|
|
|
# Broken: success on invalid input.
|
|
|
|
|
continue
|
|
|
|
|
else
|
|
|
|
|
echo "$as_me: failed program was:" >&5
|
|
|
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
|
|
|
|
|
|
# Passes both tests.
|
|
|
|
|
ac_preproc_ok=:
|
|
|
|
|
break
|
|
|
|
|
fi
|
|
|
|
|
rm -f conftest.err conftest.$ac_ext
|
|
|
|
|
|
|
|
|
|
done
|
|
|
|
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
|
|
|
|
rm -f conftest.err conftest.$ac_ext
|
|
|
|
|
if $ac_preproc_ok; then
|
|
|
|
|
:
|
|
|
|
|
else
|
|
|
|
|
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
|
|
|
|
See \`config.log' for more details." >&5
|
|
|
|
|
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
|
|
|
|
See \`config.log' for more details." >&2;}
|
|
|
|
|
{ (exit 1); exit 1; }; }
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
ac_ext=c
|
|
|
|
|
ac_cpp='$CPP $CPPFLAGS'
|
|
|
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
|
|
|
|
|
|
echo "$as_me:$LINENO: checking for inline" >&5
|
|
|
|
|
echo $ECHO_N "checking for inline... $ECHO_C" >&6
|
|
|
|
|
if test "${ac_cv_c_inline+set}" = set; then
|
|
|
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
|
|
else
|
|
|
|
|
ac_cv_c_inline=no
|
|
|
|
|
for ac_kw in inline __inline__ __inline; do
|
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
|
|
|
/* confdefs.h. */
|
|
|
|
|
_ACEOF
|
|
|
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
|
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
|
|
/* end confdefs.h. */
|
|
|
|
|
#ifndef __cplusplus
|
|
|
|
|
typedef int foo_t;
|
|
|
|
|
static $ac_kw foo_t static_foo () {return 0; }
|
|
|
|
|
$ac_kw foo_t foo () {return 0; }
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
_ACEOF
|
|
|
|
|
rm -f conftest.$ac_objext
|
|
|
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
|
|
|
(eval $ac_compile) 2>conftest.er1
|
|
|
|
|
ac_status=$?
|
|
|
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
|
|
rm -f conftest.er1
|
|
|
|
|
cat conftest.err >&5
|
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
|
|
(exit $ac_status); } &&
|
|
|
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
|
|
|
|
|| test ! -s conftest.err'
|
|
|
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
|
|
|
(eval $ac_try) 2>&5
|
|
|
|
|
ac_status=$?
|
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
|
|
(exit $ac_status); }; } &&
|
|
|
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
|
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
|
|
|
(eval $ac_try) 2>&5
|
|
|
|
|
ac_status=$?
|
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
|
|
(exit $ac_status); }; }; then
|
|
|
|
|
ac_cv_c_inline=$ac_kw; break
|
|
|
|
|
else
|
|
|
|
|
echo "$as_me: failed program was:" >&5
|
|
|
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
|
|
|
|
|
echo "${ECHO_T}$ac_cv_c_inline" >&6
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case $ac_cv_c_inline in
|
|
|
|
|
inline | yes) ;;
|
|
|
|
|
*)
|
|
|
|
|
case $ac_cv_c_inline in
|
|
|
|
|
no) ac_val=;;
|
|
|
|
|
*) ac_val=$ac_cv_c_inline;;
|
|
|
|
|
esac
|
|
|
|
|
cat >>confdefs.h <<_ACEOF
|
|
|
|
|
#ifndef __cplusplus
|
|
|
|
|
#define inline $ac_val
|
|
|
|
|
#endif
|
|
|
|
|
_ACEOF
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# sizeof(char) is 1 by definition.
|
|
|
|
|
echo "$as_me:$LINENO: checking for void *" >&5
|
|
|
|
|
echo $ECHO_N "checking for void *... $ECHO_C" >&6
|
|
|
|
|
if test "${ac_cv_type_void_p+set}" = set; then
|
|
|
|
@ -7934,71 +8410,6 @@ fi
|
|
|
|
|
# Checks for C headers
|
|
|
|
|
# --------------------
|
|
|
|
|
|
|
|
|
|
echo "$as_me:$LINENO: checking for GNU C library" >&5
|
|
|
|
|
echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
|
|
|
|
|
if test "${gcc_cv_glibc+set}" = set; then
|
|
|
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
|
|
else
|
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
|
|
|
/* confdefs.h. */
|
|
|
|
|
_ACEOF
|
|
|
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
|
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
|
|
/* end confdefs.h. */
|
|
|
|
|
#include <features.h>
|
|
|
|
|
int
|
|
|
|
|
main ()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
#if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
|
|
|
|
|
#error Not a GNU C library system
|
|
|
|
|
#endif
|
|
|
|
|
;
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
_ACEOF
|
|
|
|
|
rm -f conftest.$ac_objext
|
|
|
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
|
|
|
(eval $ac_compile) 2>conftest.er1
|
|
|
|
|
ac_status=$?
|
|
|
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
|
|
rm -f conftest.er1
|
|
|
|
|
cat conftest.err >&5
|
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
|
|
(exit $ac_status); } &&
|
|
|
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
|
|
|
|
|| test ! -s conftest.err'
|
|
|
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
|
|
|
(eval $ac_try) 2>&5
|
|
|
|
|
ac_status=$?
|
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
|
|
(exit $ac_status); }; } &&
|
|
|
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
|
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
|
|
|
(eval $ac_try) 2>&5
|
|
|
|
|
ac_status=$?
|
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
|
|
(exit $ac_status); }; }; then
|
|
|
|
|
gcc_cv_glibc=yes
|
|
|
|
|
else
|
|
|
|
|
echo "$as_me: failed program was:" >&5
|
|
|
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
|
|
|
|
|
|
gcc_cv_glibc=no
|
|
|
|
|
fi
|
|
|
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
|
|
|
|
|
echo "${ECHO_T}$gcc_cv_glibc" >&6
|
|
|
|
|
if test $gcc_cv_glibc = yes; then
|
|
|
|
|
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
|
|
|
#define _GNU_SOURCE 1
|
|
|
|
|
_ACEOF
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# Need to reject headers which give warnings, so that the -Werror bootstrap
|
|
|
|
|
# works later. *sigh* This needs to come before all header checks.
|
|
|
|
|
|
|
|
|
|