From: Bruno Haible Date: Thu, 30 Mar 2023 10:52:14 +0000 (+0200) Subject: snprintf: Avoid autoconf warning regarding gl_PRINTF_POSITIONS. X-Git-Tag: v1.0~1548 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=c091927f0efdb8fb13c99add1b2c3d3db3c79605;p=gnulib.git snprintf: Avoid autoconf warning regarding gl_PRINTF_POSITIONS. * m4/printf.m4 (gl_PRINTF_POSITIONS): Define through AC_DEFUN_ONCE. --- diff --git a/ChangeLog b/ChangeLog index c0cda0b3ba..a406074a46 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2023-03-30 Bruno Haible + + snprintf: Avoid autoconf warning regarding gl_PRINTF_POSITIONS. + * m4/printf.m4 (gl_PRINTF_POSITIONS): Define through AC_DEFUN_ONCE. + 2023-03-28 Bruno Haible doc: Document string-desc and related modules. diff --git a/m4/printf.m4 b/m4/printf.m4 index 7178533a88..cf4e225cfe 100644 --- a/m4/printf.m4 +++ b/m4/printf.m4 @@ -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