aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/mach/hurd/configure.in
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-01-05 21:53:04 +0000
committerRoland McGrath <roland@gnu.org>2002-01-05 21:53:04 +0000
commitdde2f4a0b846b1d819cf47881e767a2904bc16d5 (patch)
treebe9f2186d49624520d85bf94509091a3a35956d5 /sysdeps/mach/hurd/configure.in
parent2912efb570d425670b473d70ae62770926070407 (diff)
downloadglibc-dde2f4a0b846b1d819cf47881e767a2904bc16d5.tar
glibc-dde2f4a0b846b1d819cf47881e767a2904bc16d5.tar.gz
glibc-dde2f4a0b846b1d819cf47881e767a2904bc16d5.tar.bz2
glibc-dde2f4a0b846b1d819cf47881e767a2904bc16d5.zip
2002-01-05 Roland McGrath <roland@frob.com>
* config.h.in (HAVE_MIG_RETCODE): New #undef. * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE. * sysdeps/mach/hurd/configure: Regenerated.
Diffstat (limited to 'sysdeps/mach/hurd/configure.in')
-rw-r--r--sysdeps/mach/hurd/configure.in26
1 files changed, 26 insertions, 0 deletions
diff --git a/sysdeps/mach/hurd/configure.in b/sysdeps/mach/hurd/configure.in
index 9d023dfe32..752366bf2c 100644
--- a/sysdeps/mach/hurd/configure.in
+++ b/sysdeps/mach/hurd/configure.in
@@ -26,3 +26,29 @@ case "$machine" in
fi
;;
esac
+
+dnl Swiped from hurd/aclocal.m4
+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])
+
+hurd_MIG_RETCODE