about summary refs log tree commit diff
path: root/sysdeps/mach/hurd/configure.ac
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2013-10-30 13:20:52 +1000
committerAllan McRae <allan@archlinux.org>2013-10-30 17:32:08 +1000
commitcb8a6dbd176ee59d61068bed92e2c8d22bd28b13 (patch)
tree9ead2c7bd7a279a0669afe49476dd1da4b3c8da9 /sysdeps/mach/hurd/configure.ac
parent36a4953a1dbc2b1994c1df0478c1c89a41398dba (diff)
downloadglibc-cb8a6dbd176ee59d61068bed92e2c8d22bd28b13.tar.gz
glibc-cb8a6dbd176ee59d61068bed92e2c8d22bd28b13.tar.xz
glibc-cb8a6dbd176ee59d61068bed92e2c8d22bd28b13.zip
rename configure.in to configure.ac
Autoconf has been deprecating configure.in for quite a long time.
Rename all our configure.in and preconfigure.in files to .ac.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'sysdeps/mach/hurd/configure.ac')
-rw-r--r--sysdeps/mach/hurd/configure.ac31
1 files changed, 31 insertions, 0 deletions
diff --git a/sysdeps/mach/hurd/configure.ac b/sysdeps/mach/hurd/configure.ac
new file mode 100644
index 0000000000..ad915a568b
--- /dev/null
+++ b/sysdeps/mach/hurd/configure.ac
@@ -0,0 +1,31 @@
+GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
+
+dnl We need this setting because of the need for PLT calls in ld.so.
+AC_DEFINE([NO_HIDDEN])
+
+# Don't bother trying to generate any glue code to be compatible with the
+# existing system library, because we are the only system library.
+inhibit_glue=yes
+
+case "$machine" in
+  i386*)
+    # The default oldest ABI is 2.2.6.
+    # We only need a "yes" here if the oldest ABI supported will be < 2.2.6.
+    if test "$oldest_abi" != default && test "$oldest_abi" \< "2.2.6"; then
+      libc_cv_gcc_unwind_find_fde=yes
+    fi
+    ;;
+esac
+
+AC_CACHE_CHECK(Hurd header version, libc_cv_hurd_version, [dnl
+AC_TRY_COMPILE(dnl
+[#include <hurd/version.h>], [
+#define NEED_VERSION 20020609
+#if HURD_INTERFACE_VERSION < NEED_VERSION
+# error Hurd version too old: HURD_INTERFACE_VERSION < NEED_VERSION
+#endif],
+	       libc_cv_hurd_version=ok,
+	       libc_cv_hurd_version=bad)])
+if test "x$libc_cv_hurd_version" != xok; then
+  AC_MSG_ERROR(Hurd headers not installed or too old)
+fi