71 |
AC_SUBST(cross_linkable) |
AC_SUBST(cross_linkable) |
72 |
cross_compiling=$ac_cv_prog_cc_cross |
cross_compiling=$ac_cv_prog_cc_cross |
73 |
]) |
]) |
74 |
|
|
75 |
|
AC_DEFUN([hurd_MIG_RETCODE], [dnl |
76 |
|
# See if mig groks `retcode'. |
77 |
|
AC_CACHE_CHECK(whether $MIG supports the retcode keyword, hurd_cv_mig_retcode, |
78 |
|
[cat > conftest.defs <<\EOF |
79 |
|
#include <mach/std_types.defs> |
80 |
|
#include <mach/mach_types.defs> |
81 |
|
subsystem foobar 1000; |
82 |
|
type reply_port_t = polymorphic | MACH_MSG_TYPE_PORT_SEND_ONCE |
83 |
|
ctype: mach_port_t; |
84 |
|
simpleroutine foobar_reply ( |
85 |
|
reply_port: reply_port_t; |
86 |
|
err: kern_return_t, RetCode); |
87 |
|
EOF |
88 |
|
if AC_TRY_COMMAND([CC="${CC}" ${MIG-false} -n conftest.defs 1>&AC_FD_CC]); then |
89 |
|
hurd_cv_mig_retcode=yes |
90 |
|
else |
91 |
|
hurd_cv_mig_retcode=no |
92 |
|
fi |
93 |
|
rm -f conftest*]) |
94 |
|
if test $hurd_cv_mig_retcode = yes; then |
95 |
|
AC_DEFINE(HAVE_MIG_RETCODE) |
96 |
|
fi]) |