]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Fix ac_compiler_gnu bug
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 10 Jul 2020 19:03:44 +0000 (12:03 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 10 Jul 2020 19:50:57 +0000 (12:50 -0700)
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.

lib/autoconf/lang.m4

index 48cf5950c72b38ed78313383f90caa05033495ea..e39c30b07426b244f1e099c11831ab6464dbfa9f 100644 (file)
@@ -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