summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2020-07-10 12:03:44 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2020-07-10 12:50:57 -0700
commit63e8f7ad4dd62cd1edba955d2a50d3eaaebc8eaf (patch)
tree7a7553b67f33e8bc13f123ec8cb99af22f508713
parent83798d2971a46fb0f49c020e3fdf0c0d43cfb63d (diff)
downloadautoconf-63e8f7ad4dd62cd1edba955d2a50d3eaaebc8eaf.tar.gz
Fix ac_compiler_gnu bug
Problem and fix reported by Jannick in: https://lists.gnu.org/r/autoconf/2020-03/msg00045.html except that I omitted the comment, which I thought unnecessary. * lib/autoconf/lang.m4 (_AC_LANG_COMPILER_GNU): Set ac_compiler_gnu regardless of whether result was from cache.
-rw-r--r--lib/autoconf/lang.m44
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/autoconf/lang.m4 b/lib/autoconf/lang.m4
index 48cf5950..e39c30b0 100644
--- a/lib/autoconf/lang.m4
+++ b/lib/autoconf/lang.m4
@@ -353,7 +353,9 @@ m4_define([_AC_LANG_COMPILER_GNU],
[ac_compiler_gnu=yes],
[ac_compiler_gnu=no])
ac_cv_[]_AC_LANG_ABBREV[]_compiler_gnu=$ac_compiler_gnu
-])])# _AC_LANG_COMPILER_GNU
+])
+ac_compiler_gnu=$ac_cv_[]_AC_LANG_ABBREV[]_compiler_gnu
+])# _AC_LANG_COMPILER_GNU
# AC_LANG_PREPROC