From ef5924402864ef049f40a39e73967628583bc1a4 Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Sun, 7 May 2023 23:30:36 -0400 Subject: Stop checking if MiG supports retcode. Due to MiG requiring the subsystem to be defined early in order to know the size of a port, this was causing a division by zero error during ./configure. We could have just move subsystem to the top of the snippet, however it is simpler to just remove the check given that we have no plans to use some other MiG anyway. We force RETURN_CODE_ARG to use retcode which is a no-op. Message-Id: --- aclocal.m4 | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'aclocal.m4') diff --git a/aclocal.m4 b/aclocal.m4 index 911dca2b..d54c7c2b 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -2,30 +2,6 @@ dnl These modifications are to allow for an empty cross compiler tree. dnl In the situation that cross-linking is impossible, the variable dnl `cross_linkable' will be substituted with "yes". -dnl -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 -#include -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>&AS_MESSAGE_LOG_FD()]); 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]) - dnl The following check is based on a similar check in GNU inetutils 1.4.0. dnl dnl hurd_LIB_NCURSESW -- check for, and configure, ncursesw -- cgit v1.2.3