Hi, Bootstrapping https://git.savannah.gnu.org/git/wget/wget2.git with the GNU gettext tools version 0.26 in PATH fails:
----------------------------------------------------------------------------- $ ./bootstrap --no-git --gnulib-srcdir=... Wget2 Wiki Cloning in progress... Wiki pages cloned ./bootstrap: Bootstrapping from checked-out wget2 sources... ./bootstrap: getting translations into po/.reference for wget2... Last-modified header missing -- time-stamps turned off. 2025-09-03 18:01:33 URL:https://translationproject.org/latest/wget2/ [6423/6423] -> "po/.reference/index.html.tmp" [1] Last-modified header missing -- time-stamps turned off. 2025-09-03 18:01:33 URL:https://translationproject.org/latest/wget2/?C=N;O=D [6423/6423] -> "po/.reference/index.html?C=N;O=D.tmp" [1] Last-modified header missing -- time-stamps turned off. 2025-09-03 18:01:33 URL:https://translationproject.org/latest/wget2/?C=M;O=A [6423/6423] -> "po/.reference/index.html?C=M;O=A.tmp" [1] Last-modified header missing -- time-stamps turned off. 2025-09-03 18:01:33 URL:https://translationproject.org/latest/wget2/?C=S;O=A [6423/6423] -> "po/.reference/index.html?C=S;O=A.tmp" [1] Last-modified header missing -- time-stamps turned off. 2025-09-03 18:01:33 URL:https://translationproject.org/latest/wget2/?C=D;O=A [6423/6423] -> "po/.reference/index.html?C=D;O=A.tmp" [1] Last-modified header missing -- time-stamps turned off. 2025-09-03 18:01:33 URL:https://translationproject.org/latest/ [29646] -> "po/.reference/index.html.tmp" [1] FINISHED --2025-09-03 18:01:34-- Total wall clock time: 2.3s Downloaded: 6 files, 60K in 0.02s (3.46 MB/s) ./bootstrap: autopoint --force autopoint: *** The AM_GNU_GETTEXT_VERSION declaration in your configure.ac file requires the infrastructure from gettext- 0.21 but this version is older. Please upgrade to gettext- 0.21 or newer. autopoint: *** Stop. ./bootstrap: could not generate auxiliary files ----------------------------------------------------------------------------- The reason is that since version 0.26, 'autopoint' recognizes m4 macro invocations without arguments, and this recognition hits in the lines m4_ifdef([AM_GNU_GETTEXT] and m4_ifdef([AM_GNU_GETTEXT_VERSION] That is, it sees an AM_GNU_GETTEXT_VERSION invocation with an empty version. After modifying the second of these lines, the error we get is: ----------------------------------------------------------------------------- $ ./bootstrap --no-git --gnulib-srcdir=... ... ./bootstrap: autopoint --force autopoint: *** AM_GNU_GETTEXT without 'external' argument is no longer supported in version 0.21 autopoint: *** Stop. ./bootstrap: could not generate auxiliary files ----------------------------------------------------------------------------- It would be too much effort to teach autopoint about m4_ifdef. It's simpler to just hide the macro name from autopoint. Here's a proposed patch, that fixes the issue: diff --git a/configure.ac b/configure.ac index 7429f614..690e81eb 100644 --- a/configure.ac +++ b/configure.ac @@ -410,14 +410,14 @@ test "${ENABLE_XATTR}" = "yes" && AC_DEFINE([ENABLE_XATTR], 1, # # Gettext # -m4_ifdef([AM_GNU_GETTEXT], [ +m4_ifdef([AM_GNU_GET][TEXT], [ AM_GNU_GETTEXT([external],[need-ngettext]) AC_CONFIG_FILES([po/Makefile.in]) have_po=yes ], [ have_po=no ]) -m4_ifdef([AM_GNU_GETTEXT_VERSION], [ +m4_ifdef([AM_GNU_GET][TEXT_VERSION], [ #do not indent here AM_GNU_GETTEXT_VERSION([0.21]) ])