chiark / gitweb /
eglibc (2.11.3-4+deb6u3) squeeze-lts; urgency=medium
[eglibc.git] / sysdeps / mach / hurd / configure.in
1 GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
2
3 # GNU libc on the Hurd is always reentrant.
4 DEFINES="$DEFINES -D_LIBC_REENTRANT"
5
6 dnl We need this setting because of the need for PLT calls in ld.so.
7 AC_DEFINE([NO_HIDDEN])
8
9 # Don't bother trying to generate any glue code to be compatible with the
10 # existing system library, because we are the only system library.
11 inhibit_glue=yes
12
13 if test "x$prefix" != x; then
14   AC_MSG_WARN([--prefix= (empty) is required for GNU/Hurd to work normally])
15 fi
16
17 case "$machine" in
18   i386*)
19     # The default oldest ABI is 2.2.6.
20     # We only need a "yes" here if the oldest ABI supported will be < 2.2.6.
21     if test "$oldest_abi" != default && test "$oldest_abi" \< "2.2.6"; then
22       libc_cv_gcc_unwind_find_fde=yes
23     fi
24     ;;
25 esac
26
27 AC_CACHE_CHECK(Hurd header version, libc_cv_hurd_version, [dnl
28 AC_TRY_COMPILE(dnl
29 [#include <hurd/version.h>], [
30 #define NEED_VERSION 20020609
31 #if HURD_INTERFACE_VERSION < NEED_VERSION
32 # error Hurd version too old: HURD_INTERFACE_VERSION < NEED_VERSION
33 #endif],
34                libc_cv_hurd_version=ok,
35                libc_cv_hurd_version=bad)])
36 if test "x$libc_cv_hurd_version" != xok; then
37   AC_MSG_ERROR(Hurd headers not installed or too old)
38 fi