]> Savannah Git Hosting - gnulib.git/commitdiff
snprintf: Avoid autoconf warning regarding gl_PRINTF_POSITIONS.
authorBruno Haible <bruno@clisp.org>
Thu, 30 Mar 2023 10:52:14 +0000 (12:52 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 30 Mar 2023 10:52:43 +0000 (12:52 +0200)
* m4/printf.m4 (gl_PRINTF_POSITIONS): Define through AC_DEFUN_ONCE.

ChangeLog
m4/printf.m4

index c0cda0b3bae69ce1429a71866fa6b478cc6e3785..a406074a46e21300ebb3331dcbc848fd88d8ed3e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-03-30  Bruno Haible  <bruno@clisp.org>
+
+       snprintf: Avoid autoconf warning regarding gl_PRINTF_POSITIONS.
+       * m4/printf.m4 (gl_PRINTF_POSITIONS): Define through AC_DEFUN_ONCE.
+
 2023-03-28  Bruno Haible  <bruno@clisp.org>
 
        doc: Document string-desc and related modules.
index 7178533a88591ae64681dd8f7456577dfea7d462..cf4e225cfe10fc0c4f8ff81b2f0a1307d98b3c92 100644 (file)
@@ -1,4 +1,4 @@
-# printf.m4 serial 79
+# printf.m4 serial 80
 dnl Copyright (C) 2003, 2007-2023 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -1076,7 +1076,7 @@ dnl Test whether the *printf family of functions supports POSIX/XSI format
 dnl strings with positions. (POSIX:2001)
 dnl Result is gl_cv_func_printf_positions.
 
-AC_DEFUN([gl_PRINTF_POSITIONS],
+AC_DEFUN_ONCE([gl_PRINTF_POSITIONS],
 [
   AC_REQUIRE([AC_PROG_CC])
   AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles