From 32b19d0291dfd4ee473875e1e562179179296b05 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 2 Sep 2023 14:32:57 +0300 Subject: [PATCH 12/12] Autotools: Make autoconf-2.69 a minimum requirement This does not affect meson based builds See osdn #48565 Signed-off-by: Marko Lindqvist --- INSTALL | 4 ++-- autogen.sh | 14 +++++++------- doc/README.packaging | 1 + 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/INSTALL b/INSTALL index 2493f73f7d..fbcaa6a42b 100644 --- a/INSTALL +++ b/INSTALL @@ -4,7 +4,7 @@ Installing Freeciv: This file describes how to compile and install Freeciv. Last time we made sure this file is up to date was 16-Jul-06. -Last minor update was 24-Jun-23. +Last minor update was 02-Sep-23. There may be a localized version of this file in the ./doc directory, named INSTALL. (e.g., INSTALL.de). @@ -99,7 +99,7 @@ contains the generated files. Especial the xgettext program is required to create the *.gmo files which aren't included in the git tree. - - GNU autoconf version 2.65 or better + - GNU autoconf version 2.69 or better Autoconf is required to create configure from configure.ac. diff --git a/autogen.sh b/autogen.sh index 3611ac2416..c08a746d23 100755 --- a/autogen.sh +++ b/autogen.sh @@ -236,10 +236,10 @@ cd "$SRCDIR" } # autoconf and autoheader version numbers must be kept in sync -real_package_name "autoconf" "ftp://ftp.gnu.org/pub/gnu/autoconf/" 2 65 || DIE=1 -AUTOCONF=$REALPKGNAME -real_package_name "autoheader" "ftp://ftp.gnu.org/pub/gnu/autoconf/" 2 65 || DIE=1 -AUTOHEADER=$REALPKGNAME +real_package_name "autoconf" "ftp://ftp.gnu.org/pub/gnu/autoconf/" 2 69 || DIE=1 +AUTOCONF="${REALPKGNAME}" +real_package_name "autoheader" "ftp://ftp.gnu.org/pub/gnu/autoconf/" 2 69 || DIE=1 +AUTOHEADER="${REALPKGNAME}" # automake and aclocal version numbers must be kept in sync real_package_name "automake" "ftp://ftp.gnu.org/pub/gnu/automake/" 1 13 || DIE=1 @@ -292,10 +292,10 @@ $ACLOCAL -I m4 -I dependencies/m4 $ACLOCAL_FLAGS || { echo "$ACLOCAL failed on libtool files run" exit 1 } -echo "+ running $AUTOCONF ... " -$AUTOCONF || { +echo "+ running ${AUTOCONF} ... " +"${AUTOCONF}" || { echo - echo "$AUTOCONF failed" + echo "${AUTOCONF} failed" exit 1 } echo "+ running $AUTOMAKE ... " diff --git a/doc/README.packaging b/doc/README.packaging index ce3534a53b..202cf727cd 100644 --- a/doc/README.packaging +++ b/doc/README.packaging @@ -20,6 +20,7 @@ Updating from 3.2 to 3.3 * Minimum version of Qt is Qt-5.15, when building in Qt5-mode * Configuring source directory is no longer allowed in autotools builds. You have to use separate build dir(s) +* Minimum autoconf version, for autotools based builds, is now 2.69 * New 'qt6x' mode for building Qt based components linked against relatively new Qt6 versions * Build with meson supports building gtk4x-client that is linked -- 2.40.1