tools/gnulib: ignore AC_PREREQ error if actual version passes
authorMichael Pratt <mcpratt@pm.me>
Sun, 19 May 2024 23:33:13 +0000 (19:33 -0400)
committerRobert Marko <robimarko@gmail.com>
Wed, 19 Jun 2024 09:22:13 +0000 (11:22 +0200)
commite6d106284eeaf632c581dc593ce4d5b774229604
treefe02b6ede327455810ab0dc879d1684775609fe8
parentefdd65cb871c1fe369a56351064aca363fd792af
tools/gnulib: ignore AC_PREREQ error if actual version passes

The gnulib-tool script is written to have a fatal error
whenever the minimum required version of autoconf
for the project that gnulib is being imported into
as defined in configure.ac was less than
the minimum required version required by gnulib.

However, none of this matters if the version of autoconf
that we use is newer than both requirements.

Instead, use functions from the bootstrap script
to check for the version of autoconf being used
and print a warning whenever this case occurs.

Signed-off-by: Michael Pratt <mcpratt@pm.me>
Link: https://github.com/openwrt/openwrt/pull/15690
Signed-off-by: Robert Marko <robimarko@gmail.com>
tools/gnulib/patches/010-autoconf-version.patch [new file with mode: 0644]