diff options
author | Roland McGrath <roland@gnu.org> | 2002-01-19 23:44:37 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2002-01-19 23:44:37 +0000 |
commit | 47e0b4eb66a95e7f05444538a97d91fb121a75c5 (patch) | |
tree | cdfdd776a5e79ca2322f62579a5f9582ee749370 /aclocal.m4 | |
parent | 78726377e4cc74b0ec1b1d0ccfac81a048e3858a (diff) |
2002-01-05 Roland McGrath <roland@frob.com>
* aclocal.m4 (hurd_MIG_RETCODE): New macro.
* configure.in: Broken out of here, now use that.
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -71,3 +71,26 @@ AC_MSG_RESULT($ac_cv_prog_cc_cross) AC_SUBST(cross_linkable) cross_compiling=$ac_cv_prog_cc_cross ]) + +AC_DEFUN([hurd_MIG_RETCODE], [dnl +# See if mig groks `retcode'. +AC_CACHE_CHECK(whether $MIG supports the retcode keyword, hurd_cv_mig_retcode, +[cat > conftest.defs <<\EOF +#include <mach/std_types.defs> +#include <mach/mach_types.defs> +subsystem foobar 1000; +type reply_port_t = polymorphic | MACH_MSG_TYPE_PORT_SEND_ONCE + ctype: mach_port_t; +simpleroutine foobar_reply ( + reply_port: reply_port_t; + err: kern_return_t, RetCode); +EOF +if AC_TRY_COMMAND([CC="${CC}" ${MIG-false} -n conftest.defs 1>&AC_FD_CC]); then + hurd_cv_mig_retcode=yes +else + hurd_cv_mig_retcode=no +fi +rm -f conftest*]) +if test $hurd_cv_mig_retcode = yes; then + AC_DEFINE(HAVE_MIG_RETCODE) +fi]) |