Fix major regression from 2020-01-04.
authorBruno Haible <bruno@clisp.org>
Fri, 10 Jan 2020 22:44:18 +0000 (23:44 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 10 Jan 2020 22:44:18 +0000 (23:44 +0100)
Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00072.html>.

* m4/00gnulib.m4 (gl_COMPILER_PREPARE_CHECK_DECL): Define through
AC_DEFUN_ONCE.
(AC_CHECK_DECL): Invoke, not require, it.

ChangeLog
m4/00gnulib.m4

index e5231622afebc8928e00bb4855c79ee10eb40500..1193d2209dd8f939454edf2d440e692f01aa4d79 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2020-01-10  Bruno Haible  <bruno@clisp.org>
+
+       Fix major regression from 2020-01-04.
+       Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
+       <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00072.html>.
+       * m4/00gnulib.m4 (gl_COMPILER_PREPARE_CHECK_DECL): Define through
+       AC_DEFUN_ONCE.
+       (AC_CHECK_DECL): Invoke, not require, it.
+
 2020-01-10  Bruno Haible  <bruno@clisp.org>
 
        c32snrtombs: Add tests.
index 77503eab16824ecd3971d8d5a65b5b2f2d5c3ac1..58bc4efb9c52249f39ef2cf7c9b33276e5a73f9c 100644 (file)
@@ -1,4 +1,4 @@
-# 00gnulib.m4 serial 4
+# 00gnulib.m4 serial 5
 dnl Copyright (C) 2009-2020 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -62,7 +62,7 @@ barfbarf
        [gl_cv_compiler_clang=no])
     ])
 ])
-AC_DEFUN([gl_COMPILER_PREPARE_CHECK_DECL],
+AC_DEFUN_ONCE([gl_COMPILER_PREPARE_CHECK_DECL],
 [
   AC_REQUIRE([AC_PROG_CC])
   AC_REQUIRE([gl_COMPILER_CLANG])
@@ -95,10 +95,11 @@ m4_define([_AC_CHECK_DECL_BODY],
 m4_defn([_AC_CHECK_DECL_BODY])[  ac_compile="$ac_save_ac_compile"
 ])
   ])
-dnl Redefine AC_CHECK_DECL so that it starts with
-dnl AC_REQUIRE([gl_COMPILER_PREPARE_CHECK_DECL]).
+dnl Redefine AC_CHECK_DECL so that it starts with an invocation of
+dnl gl_COMPILER_PREPARE_CHECK_DECL.
 m4_define([AC_CHECK_DECL],
-  [AC_REQUIRE([gl_COMPILER_PREPARE_CHECK_DECL])]m4_defn([AC_CHECK_DECL]))
+  [gl_COMPILER_PREPARE_CHECK_DECL dnl
+]m4_defn([AC_CHECK_DECL]))
 
 # gl_00GNULIB
 # -----------