The command ./gnulib-tool --create-testdir --dir=../testdir --with-c++-tests --without-privileged-tests --single-configure supersede
produces this warning: executing autoconf configure.ac:952: warning: AC_REQUIRE: `gl_DOUBLE_EXPONENT_LOCATION' was expanded before it was required configure.ac:952: https://www.gnu.org/software/autoconf/manual/autoconf.html#Expanded-Before-Required glm4/vasnprintf.m4:15: gl_REPLACE_VASNPRINTF is expanded from... glm4/vasnprintf.m4:7: gl_FUNC_VASNPRINTF is expanded from... configure.ac:38: gl_INIT is expanded from... configure.ac:952: the top level This patch fixes it. 2023-04-08 Bruno Haible <br...@clisp.org> Avoid Autoconf "was expanded before it was required" warning. * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Define through AC_DEFUN_ONCE. * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise. * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise. diff --git a/m4/exponentd.m4 b/m4/exponentd.m4 index 2ef46437de..163114b89e 100644 --- a/m4/exponentd.m4 +++ b/m4/exponentd.m4 @@ -1,9 +1,9 @@ -# exponentd.m4 serial 3 +# exponentd.m4 serial 4 dnl Copyright (C) 2007-2008, 2010-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, dnl with or without modifications, as long as this notice is preserved. -AC_DEFUN([gl_DOUBLE_EXPONENT_LOCATION], +AC_DEFUN_ONCE([gl_DOUBLE_EXPONENT_LOCATION], [ AC_CACHE_CHECK([where to find the exponent in a 'double'], [gl_cv_cc_double_expbit0], diff --git a/m4/exponentf.m4 b/m4/exponentf.m4 index f6395f23f2..e761883939 100644 --- a/m4/exponentf.m4 +++ b/m4/exponentf.m4 @@ -1,9 +1,9 @@ -# exponentf.m4 serial 2 +# exponentf.m4 serial 3 dnl Copyright (C) 2007-2008, 2010-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, dnl with or without modifications, as long as this notice is preserved. -AC_DEFUN([gl_FLOAT_EXPONENT_LOCATION], +AC_DEFUN_ONCE([gl_FLOAT_EXPONENT_LOCATION], [ AC_CACHE_CHECK([where to find the exponent in a 'float'], [gl_cv_cc_float_expbit0], diff --git a/m4/exponentl.m4 b/m4/exponentl.m4 index e1fa5c48cc..bc5638737e 100644 --- a/m4/exponentl.m4 +++ b/m4/exponentl.m4 @@ -1,9 +1,9 @@ -# exponentl.m4 serial 5 +# exponentl.m4 serial 6 dnl Copyright (C) 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, dnl with or without modifications, as long as this notice is preserved. -AC_DEFUN([gl_LONG_DOUBLE_EXPONENT_LOCATION], +AC_DEFUN_ONCE([gl_LONG_DOUBLE_EXPONENT_LOCATION], [ AC_REQUIRE([gl_BIGENDIAN]) AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles