From 349753d12b83345ce6a972fa5d0ce191857ff6e0 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 18 Feb 2025 19:48:38 +0100 Subject: [PATCH] autotools: make autogen.sh more readable Signed-off-by: Karel Zak --- autogen.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/autogen.sh b/autogen.sh index 833f90415f5..52ddf020669 100755 --- a/autogen.sh +++ b/autogen.sh @@ -108,6 +108,10 @@ if test "$DIE" -eq 1; then exit 1 fi +version=$(./tools/git-version-gen) + +echo +echo "util-linux $version" echo echo "Generating build-system with:" echo " autopoint: $(autopoint --version | head -1)" @@ -123,13 +127,20 @@ echo rm -rf autom4te.cache set -e + +echo "== POT updates" po/update-potfiles + +echo "== autopoint --force $AP_OPTS" autopoint_fun --force $AP_OPTS + if ! grep -q datarootdir po/Makefile.in.in; then echo "INFO: autopoint does not honor dataroot variable, patching." sed -i -e 's/^datadir *=\(.*\)/datarootdir = @datarootdir@\ datadir = @datadir@/g' po/Makefile.in.in fi + +echo "== $LIBTOOLIZE --force $LT_OPTS" $LIBTOOLIZE --force $LT_OPTS # patch libtool @@ -147,10 +158,16 @@ if test -f tools/libtool.m4.patch; then set -e fi +echo "== aclocal $AL_OPTS" aclocal -I m4 $AL_OPTS + +echo "== autoconf $AC_OPTS" autoconf $AC_OPTS + +echo "== autoheader $AH_OPTS" autoheader $AH_OPTS +echo "== automake --add-missing $AM_OPTS" automake --add-missing $AM_OPTS