9265ea23fa0648f075d01d3f6e77e0ff7cbd68a0
[platform/upstream/glibc.git] / sysdeps / mach / hurd / configure
1  
2 # GNU libc on the Hurd is always reentrant.
3 DEFINES="$DEFINES -D_LIBC_REENTRANT"
4
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.
7 inhibit_glue=yes
8
9 if test "x$prefix" != x; then
10   echo "configure: warning: --prefix= (empty) is required for GNU/Hurd to work normally" 1>&2
11 fi
12
13 case "$machine" in
14   i386*)
15     # With --enable-libio, the default oldest ABI is 2.5.5;
16     # without --enable-libio, the default oldest ABI is 2.0.
17     # We only need a "yes" here if the oldest ABI supported will be < 2.2.5.
18     if if test "$stdio" = libio; then
19          test "$oldest_abi" != default && test "$oldest_abi" \< "2.2.5"
20        else
21          test "$oldest_abi" = default || test "$oldest_abi" \< "2.2.5"
22        fi; then
23       libc_cv_gcc_unwind_find_fde=yes
24     fi
25     ;;
26 esac
27
28
29
30 # See if mig groks `retcode'.
31 echo $ac_n "checking whether $MIG supports the retcode keyword""... $ac_c" 1>&6
32 echo "configure:33: checking whether $MIG supports the retcode keyword" >&5
33 if eval "test \"`echo '$''{'hurd_cv_mig_retcode'+set}'`\" = set"; then
34   echo $ac_n "(cached) $ac_c" 1>&6
35 else
36   cat > conftest.defs <<\EOF
37 #include <mach/std_types.defs>
38 #include <mach/mach_types.defs>
39 subsystem foobar 1000;
40 type reply_port_t = polymorphic | MACH_MSG_TYPE_PORT_SEND_ONCE
41         ctype: mach_port_t;
42 simpleroutine foobar_reply (
43         reply_port: reply_port_t;
44         err: kern_return_t, RetCode);
45 EOF
46 if { ac_try='CC="${CC}" ${MIG-false} -n conftest.defs 1>&5'; { (eval echo configure:47: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
47   hurd_cv_mig_retcode=yes
48 else
49   hurd_cv_mig_retcode=no
50 fi
51 rm -f conftest*
52 fi
53
54 echo "$ac_t""$hurd_cv_mig_retcode" 1>&6
55 if test $hurd_cv_mig_retcode = yes; then
56   cat >> confdefs.h <<\EOF
57 #define HAVE_MIG_RETCODE 1
58 EOF
59
60 fi