1 sinclude(./aclocal.m4)dnl Autoconf lossage.
2 GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
4 # GNU libc on the Hurd is always reentrant.
5 DEFINES="$DEFINES -D_LIBC_REENTRANT"
7 # Don't bother trying to generate any glue code to be compatible with the
8 # existing system library, because we are the only system library.
11 if test "x$prefix" != x; then
12 AC_MSG_WARN([--prefix= (empty) is required for GNU/Hurd to work normally])
17 # With --enable-libio, the default oldest ABI is 2.2.6;
18 # without --enable-libio, the default oldest ABI is 2.0.
19 # We only need a "yes" here if the oldest ABI supported will be < 2.2.6.
20 if if test "$stdio" = libio; then
21 test "$oldest_abi" != default && test "$oldest_abi" \< "2.2.6"
23 test "$oldest_abi" = default || test "$oldest_abi" \< "2.2.6"
25 libc_cv_gcc_unwind_find_fde=yes
30 dnl Swiped from hurd/aclocal.m4
31 AC_DEFUN([hurd_MIG_RETCODE], [dnl
32 # See if mig groks `retcode'.
33 AC_CACHE_CHECK(whether $MIG supports the retcode keyword, hurd_cv_mig_retcode,
34 [cat > conftest.defs <<\EOF
35 #include <mach/std_types.defs>
36 #include <mach/mach_types.defs>
37 subsystem foobar 1000;
38 type reply_port_t = polymorphic | MACH_MSG_TYPE_PORT_SEND_ONCE
40 simpleroutine foobar_reply (
41 reply_port: reply_port_t;
42 err: kern_return_t, RetCode);
44 if AC_TRY_COMMAND([CC="${CC}" ${MIG-false} -n conftest.defs 1>&AC_FD_CC]); then
45 hurd_cv_mig_retcode=yes
47 hurd_cv_mig_retcode=no
50 if test $hurd_cv_mig_retcode = yes; then
51 AC_DEFINE(HAVE_MIG_RETCODE)