]> Savannah Git Hosting - gnulib.git/commitdiff
*printf-posix: Fix m4 error (regression from 2020-03-08).
authorBruno Haible <bruno@clisp.org>
Mon, 16 Mar 2020 13:14:52 +0000 (14:14 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 16 Mar 2020 13:14:52 +0000 (14:14 +0100)
* m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): Enable interpretation of
brackets in AC_COMPILE_IFELSE invocation.

ChangeLog
m4/printf.m4

index 889f75ae22c760d3227f443b305282dfd91b0d4b..0019334ca930d5efcf4de2fa8398b924ba9bf371 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2020-03-16  Bruno Haible  <bruno@clisp.org>
+
+       *printf-posix: Fix m4 error (regression from 2020-03-08).
+       * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): Enable interpretation of
+       brackets in AC_COMPILE_IFELSE invocation.
+
 2020-03-08  Bruno Haible  <bruno@clisp.org>
 
        crypto/af_alg, renameatu, same, term-style-control: Depend on fstat.
index 54a2d71314cdfa0d4d1f958823a214b0a85fd41a..df473d8788822aeae50c036326748ef40352aba6 100644 (file)
@@ -1,4 +1,4 @@
-# printf.m4 serial 63
+# printf.m4 serial 64
 dnl Copyright (C) 2003, 2007-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,
@@ -1422,7 +1422,6 @@ int main ()
         [gl_cv_func_snprintf_directive_n=yes],
         [gl_cv_func_snprintf_directive_n=no],
         [
-changequote(,)dnl
          case "$host_os" in
                                  # Guess no on glibc when _FORTIFY_SOURCE >= 2.
            *-gnu* | gnu*)        AC_COMPILE_IFELSE(
@@ -1434,6 +1433,7 @@ changequote(,)dnl
                                    [gl_cv_func_snprintf_directive_n="guessing yes"],
                                    [gl_cv_func_snprintf_directive_n="guessing no"])
                                  ;;
+changequote(,)dnl
                                  # Guess yes on musl systems.
            *-musl*)              gl_cv_func_snprintf_directive_n="guessing yes";;
                                  # Guess yes on FreeBSD >= 5.
@@ -1466,8 +1466,8 @@ changequote(,)dnl
            mingw*)               gl_cv_func_snprintf_directive_n="guessing no";;
                                  # If we don't know, obey --enable-cross-guesses.
            *)                    gl_cv_func_snprintf_directive_n="$gl_cross_guess_normal";;
-         esac
 changequote([,])dnl
+         esac
         ])
     ])
 ])