]> Savannah Git Hosting - gnulib.git/commitdiff
libtextstyle-optional: Fix generation of textstyle.h (regr. 2021-12-15).
authorBruno Haible <bruno@clisp.org>
Sat, 18 Dec 2021 16:22:01 +0000 (17:22 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 18 Dec 2021 16:22:01 +0000 (17:22 +0100)
* m4/libtextstyle-optional.m4 (gl_LIBTEXTSTYLE_OPTIONAL): Invoke
gl_CONDITIONAL_HEADER.

ChangeLog
m4/libtextstyle-optional.m4

index 07fce5e48bc36f2d31b6651fc71fcaead7edc77f..0dcd3c0dcad9ff78e29f3b0022493995c98862b6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2021-12-18  Bruno Haible  <bruno@clisp.org>
+
+       libtextstyle-optional: Fix generation of textstyle.h (regr. 2021-12-15).
+       * m4/libtextstyle-optional.m4 (gl_LIBTEXTSTYLE_OPTIONAL): Invoke
+       gl_CONDITIONAL_HEADER.
+
 2021-12-18  Bruno Haible  <bruno@clisp.org>
 
        Fix support for --gnu-make in tests (regression 2021-12-15).
index 74a5aeaf2804d07898b118d3d21aa865e8ccac7a..2b29ae4a5d4969ccd1cfdc71b0cf6adaf5477ba5 100644 (file)
@@ -1,4 +1,4 @@
-# libtextstyle-optional.m4 serial 3
+# libtextstyle-optional.m4 serial 4
 dnl Copyright (C) 2019-2021 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -29,4 +29,11 @@ AC_DEFUN([gl_LIBTEXTSTYLE_OPTIONAL],
     AC_REQUIRE([AC_C_INLINE])
     AC_CHECK_FUNCS_ONCE([tcdrain])
   fi
+
+  dnl Update the value of the TEXTSTYLE_H variable and the
+  dnl GL_GENERATE_TEXTSTYLE_H conditional.
+  dnl In most modules, the gl_CONDITIONAL_HEADER invocation belongs in the
+  dnl module description, not the .m4 file. But here it's OK, because it does
+  dnl not make sense to AC_REQUIRE([gl_LIBTEXTSTYLE_OPTIONAL]).
+  gl_CONDITIONAL_HEADER([textstyle.h])
 ])