Some configure-related decrufting.
[glibc.git] / sysdeps / mach / hurd / configure.ac
blob40b0743a174050f307e95c1a434db427de2410a6
1 GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
3 dnl We need this setting because of the need for PLT calls in ld.so.
4 AC_DEFINE([NO_HIDDEN])
6 case "$machine" in
7   i386*)
8     # The default oldest ABI is 2.2.6.
9     # We only need a "yes" here if the oldest ABI supported will be < 2.2.6.
10     if test "$oldest_abi" != default && test "$oldest_abi" \< "2.2.6"; then
11       libc_cv_gcc_unwind_find_fde=yes
12     fi
13     ;;
14 esac
16 AC_CACHE_CHECK(Hurd header version, libc_cv_hurd_version, [dnl
17 AC_TRY_COMPILE(dnl
18 [#include <hurd/version.h>], [
19 #define NEED_VERSION 20020609
20 #if HURD_INTERFACE_VERSION < NEED_VERSION
21 # error Hurd version too old: HURD_INTERFACE_VERSION < NEED_VERSION
22 #endif],
23                libc_cv_hurd_version=ok,
24                libc_cv_hurd_version=bad)])
25 if test "x$libc_cv_hurd_version" != xok; then
26   AC_MSG_ERROR(Hurd headers not installed or too old)