* shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
[platform/upstream/glibc.git] / sysdeps / mach / hurd / configure.in
1 sinclude(./aclocal.m4)dnl Autoconf lossage.
2 GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
3
4 # GNU libc on the Hurd is always reentrant.
5 DEFINES="$DEFINES -D_LIBC_REENTRANT"
6
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.
9 inhibit_glue=yes
10
11 if test "x$prefix" != x; then
12   AC_MSG_WARN([--prefix= (empty) is required for GNU/Hurd to work normally])
13 fi
14
15 case "$machine" in
16   i386*)
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"
22        else
23          test "$oldest_abi" = default || test "$oldest_abi" \< "2.2.6"
24        fi; then
25       libc_cv_gcc_unwind_find_fde=yes
26     fi
27     ;;
28 esac
29
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
39         ctype: mach_port_t;
40 simpleroutine foobar_reply (
41         reply_port: reply_port_t;
42         err: kern_return_t, RetCode);
43 EOF
44 if AC_TRY_COMMAND([CC="${CC}" ${MIG-false} -n conftest.defs 1>&AC_FD_CC]); then
45   hurd_cv_mig_retcode=yes
46 else
47   hurd_cv_mig_retcode=no
48 fi
49 rm -f conftest*])
50 if test $hurd_cv_mig_retcode = yes; then
51   AC_DEFINE(HAVE_MIG_RETCODE)
52 fi])
53
54 hurd_MIG_RETCODE