2 # GNU libc on the Hurd is always reentrant.
3 DEFINES="$DEFINES -D_LIBC_REENTRANT"
5 # Don't bother trying to generate any glue code to be compatible with the
6 # existing system library, because we are the only system library.
9 if test "x$prefix" != x; then
10 echo "configure: warning: --prefix= (empty) is required for GNU/Hurd to work normally" 1>&2
15 # The default oldest ABI is 2.2.6.
16 # We only need a "yes" here if the oldest ABI supported will be < 2.2.6.
17 if test "$oldest_abi" != default && test "$oldest_abi" \< "2.2.6"; then
18 libc_cv_gcc_unwind_find_fde=yes
25 # See if mig groks `retcode'.
26 echo $ac_n "checking whether $MIG supports the retcode keyword""... $ac_c" 1>&6
27 echo "configure:28: checking whether $MIG supports the retcode keyword" >&5
28 if eval "test \"`echo '$''{'hurd_cv_mig_retcode'+set}'`\" = set"; then
29 echo $ac_n "(cached) $ac_c" 1>&6
31 cat > conftest.defs <<\EOF
32 #include <mach/std_types.defs>
33 #include <mach/mach_types.defs>
34 subsystem foobar 1000;
35 type reply_port_t = polymorphic | MACH_MSG_TYPE_PORT_SEND_ONCE
37 simpleroutine foobar_reply (
38 reply_port: reply_port_t;
39 err: kern_return_t, RetCode);
41 if { ac_try='CC="${CC}" ${MIG-false} -n conftest.defs 1>&5'; { (eval echo configure:42: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
42 hurd_cv_mig_retcode=yes
44 hurd_cv_mig_retcode=no
49 echo "$ac_t""$hurd_cv_mig_retcode" 1>&6
50 if test $hurd_cv_mig_retcode = yes; then
51 cat >> confdefs.h <<\EOF
52 #define HAVE_MIG_RETCODE 1