summaryrefslogtreecommitdiff
path: root/m4/printf.m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2020-10-12 01:12:42 +0200
committerBruno Haible <bruno@clisp.org>2020-10-12 01:12:42 +0200
commit160d5e7d9a64a29a52d4821fd0ef2136d7e2102a (patch)
treee096a87d95745525be3d39a7f7cc0b06bccdd9d0 /m4/printf.m4
parentd60a35e94c4f5b8f09f15828242418f5073d46e7 (diff)
downloadgnulib-160d5e7d9a64a29a52d4821fd0ef2136d7e2102a.tar.gz
*printf: Avoid "expanded before it was required" warning.
* m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99): Define through AC_DEFUN_ONCE.
Diffstat (limited to 'm4/printf.m4')
-rw-r--r--m4/printf.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/printf.m4 b/m4/printf.m4
index c6a7ef684f..eeb792b1e4 100644
--- a/m4/printf.m4
+++ b/m4/printf.m4
@@ -1,4 +1,4 @@
-# printf.m4 serial 69
+# printf.m4 serial 70
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,
@@ -1198,7 +1198,7 @@ dnl Test whether the string produced by the snprintf function is always NUL
dnl terminated. (ISO C99, POSIX:2001)
dnl Result is gl_cv_func_snprintf_truncation_c99.
-AC_DEFUN([gl_SNPRINTF_TRUNCATION_C99],
+AC_DEFUN_ONCE([gl_SNPRINTF_TRUNCATION_C99],
[
AC_REQUIRE([AC_PROG_CC])
AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles