]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
_AC_COMPILER_EXEEXT_CROSS: exit 77 if test program does not run
authorZack Weinberg <zackw@panix.com>
Tue, 18 Aug 2020 20:47:42 +0000 (16:47 -0400)
committerZack Weinberg <zackw@panix.com>
Tue, 18 Aug 2020 20:47:42 +0000 (16:47 -0400)
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

index 631e3cbc5d1960df47dc41d175a3a7de0230e712..27eaa1296f1067dfa0fe8871accdc98f7037e342 100644 (file)
@@ -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