2.9
[glibc/nacl-glibc.git] / sysdeps / mach / hurd / configure
blob959a779fa5ddf3e4bd7ee51a38ba40aab58ee361
1 # This file is generated from configure.in by Autoconf.  DO NOT EDIT!
3 # GNU libc on the Hurd is always reentrant.
4 DEFINES="$DEFINES -D_LIBC_REENTRANT"
6 cat >>confdefs.h <<\_ACEOF
7 #define NO_HIDDEN 1
8 _ACEOF
11 # Don't bother trying to generate any glue code to be compatible with the
12 # existing system library, because we are the only system library.
13 inhibit_glue=yes
15 if test "x$prefix" != x; then
16   { echo "$as_me:$LINENO: WARNING: --prefix= (empty) is required for GNU/Hurd to work normally" >&5
17 echo "$as_me: WARNING: --prefix= (empty) is required for GNU/Hurd to work normally" >&2;}
20 case "$machine" in
21   i386*)
22     # The default oldest ABI is 2.2.6.
23     # We only need a "yes" here if the oldest ABI supported will be < 2.2.6.
24     if test "$oldest_abi" != default && test "$oldest_abi" \< "2.2.6"; then
25       libc_cv_gcc_unwind_find_fde=yes
26     fi
27     ;;
28 esac
31 echo "$as_me:$LINENO: checking Hurd header version" >&5
32 echo $ECHO_N "checking Hurd header version... $ECHO_C" >&6
33 if test "${libc_cv_hurd_version+set}" = set; then
34   echo $ECHO_N "(cached) $ECHO_C" >&6
35 else
36   cat >conftest.$ac_ext <<_ACEOF
37 /* confdefs.h.  */
38 _ACEOF
39 cat confdefs.h >>conftest.$ac_ext
40 cat >>conftest.$ac_ext <<_ACEOF
41 /* end confdefs.h.  */
42 #include <hurd/version.h>
43 int
44 main ()
47 #define NEED_VERSION 20020609
48 #if HURD_INTERFACE_VERSION < NEED_VERSION
49 # error Hurd version too old: HURD_INTERFACE_VERSION < NEED_VERSION
50 #endif
51   ;
52   return 0;
54 _ACEOF
55 rm -f conftest.$ac_objext
56 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57   (eval $ac_compile) 2>conftest.er1
58   ac_status=$?
59   grep -v '^ *+' conftest.er1 >conftest.err
60   rm -f conftest.er1
61   cat conftest.err >&5
62   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63   (exit $ac_status); } &&
64          { ac_try='test -z "$ac_c_werror_flag"
65                          || test ! -s conftest.err'
66   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67   (eval $ac_try) 2>&5
68   ac_status=$?
69   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70   (exit $ac_status); }; } &&
71          { ac_try='test -s conftest.$ac_objext'
72   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
73   (eval $ac_try) 2>&5
74   ac_status=$?
75   echo "$as_me:$LINENO: \$? = $ac_status" >&5
76   (exit $ac_status); }; }; then
77   libc_cv_hurd_version=ok
78 else
79   echo "$as_me: failed program was:" >&5
80 sed 's/^/| /' conftest.$ac_ext >&5
82 libc_cv_hurd_version=bad
84 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
86 echo "$as_me:$LINENO: result: $libc_cv_hurd_version" >&5
87 echo "${ECHO_T}$libc_cv_hurd_version" >&6
88 if test "x$libc_cv_hurd_version" != xok; then
89   { { echo "$as_me:$LINENO: error: Hurd headers not installed or too old" >&5
90 echo "$as_me: error: Hurd headers not installed or too old" >&2;}
91    { (exit 1); exit 1; }; }