hurd: Define EXEC_PAGESIZE
[glibc.git] / sysdeps / mach / hurd / configure.ac
blob774ffc80a96c8791f084ca415d7ee11530b38bf1
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 dnl See Roland's comment in
5 dnl https://sourceware.org/bugzilla/show_bug.cgi?id=15605
6 AC_DEFINE([NO_RTLD_HIDDEN])
8 if test -n "$sysheaders"; then
9   OLD_CPPFLAGS=$CPPFLAGS
10   CPPFLAGS="$CPPFLAGS $SYSINCLUDES"
13 AC_CACHE_CHECK(Hurd header version, libc_cv_hurd_version, [dnl
14 AC_TRY_COMPILE(dnl
15 [#include <hurd/version.h>], [
16 #define NEED_VERSION 20020609
17 #if HURD_INTERFACE_VERSION < NEED_VERSION
18 # error Hurd version too old: HURD_INTERFACE_VERSION < NEED_VERSION
19 #endif],
20                libc_cv_hurd_version=ok,
21                libc_cv_hurd_version=bad)])
22 if test "x$libc_cv_hurd_version" != xok; then
23   AC_MSG_ERROR(Hurd headers not installed or too old)
26 if test -n "$sysheaders"; then
27   CPPFLAGS=$OLD_CPPFLAGS
30 dnl ifunc does not work yet for static binaries
31 dnl http://www.gnu.org/software/hurd/open_issues/ifunc.html
32 libc_cv_ld_gnu_indirect_function=no