From fa0754f704d7442cb2780d740fa4aabe2ba19f86 Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Tue, 18 Aug 2020 16:47:42 -0400 Subject: [PATCH] _AC_COMPILER_EXEEXT_CROSS: exit 77 if test program does not run MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This causes our testsuite to report a skipped test, rather than a failure, if the detected compiler for _AC_LANG produces broken executables. It matches the behavior of _AC_COMPILER_EXEEXT_DEFAULT, which has exited with that code for a long time if it hits the “_AC_LANG compiler cannot *create* executables” failure case. Partially addresses bug #110267. The Solaris 10 machine I have access to, has a broken gccgo installation that generates executables that crash on startup. Without this patch, test “358: Go” fails. With this patch, it is skipped. --- lib/autoconf/lang.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/autoconf/lang.m4 b/lib/autoconf/lang.m4 index 631e3cbc5..27eaa1296 100644 --- a/lib/autoconf/lang.m4 +++ b/lib/autoconf/lang.m4 @@ -608,7 +608,7 @@ if test "$cross_compiling" != yes; then cross_compiling=yes else AC_MSG_FAILURE([cannot run _AC_LANG compiled programs. -If you meant to cross compile, use `--host'.]) +If you meant to cross compile, use `--host'.], 77) fi fi fi -- 2.47.3