From e903eaea59467f0253ab9dbaeeb980f318d05f70 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Tue, 28 May 2019 10:26:57 +0200 Subject: [PATCH] Re-order commands in autogen.sh This avoids an unnecessary reconfiguration when running ./autogen.sh && ./configure && make Signed-off-by: Stefan Weil --- autogen.sh | 43 ++++++++++++++++++++++--------------------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/autogen.sh b/autogen.sh index 2faf72ed..f2ecb435 100755 --- a/autogen.sh +++ b/autogen.sh @@ -13,8 +13,9 @@ # better deal with the GNU autotools, specifically: # # aclocal -# autoheader +# libtoolize # autoconf +# autoheader # automake # # The whole thing is quite complex... @@ -87,26 +88,7 @@ echo "Running $LIBTOOLIZE" $LIBTOOLIZE -f -c || bail_out $LIBTOOLIZE --automake || bail_out -# --- Step 3: Generate config.h.in from: -# . configure.ac (look for AM_CONFIG_HEADER tag or AC_CONFIG_HEADER tag) - -echo "Running autoheader" -autoheader -f || bail_out - -# --- Step 4: Generate Makefile.in, src/Makefile.in, and a whole bunch of -# files in config (config.guess, config.sub, depcomp, -# install-sh, missing, mkinstalldirs) plus COPYING and -# INSTALL from: -# . Makefile.am -# . src/Makefile.am -# -# Using --add-missing --copy makes sure that, if these files are missing, -# they are copied from the system so they can be used in a distribution. - -echo "Running automake --add-missing --copy" -automake --add-missing --copy --warnings=all || bail_out - -# --- Step 5: Generate configure and include/miaconfig.h from: +# --- Step 3: Generate configure and include/miaconfig.h from: # . configure.ac # @@ -120,6 +102,25 @@ if grep -q PKG_CHECK_MODULES configure; then bail_out fi +# --- Step 4: Generate config.h.in from: +# . configure.ac (look for AM_CONFIG_HEADER tag or AC_CONFIG_HEADER tag) + +echo "Running autoheader" +autoheader -f || bail_out + +# --- Step 5: Generate Makefile.in, src/Makefile.in, and a whole bunch of +# files in config (config.guess, config.sub, depcomp, +# install-sh, missing, mkinstalldirs) plus COPYING and +# INSTALL from: +# . Makefile.am +# . src/Makefile.am +# +# Using --add-missing --copy makes sure that, if these files are missing, +# they are copied from the system so they can be used in a distribution. + +echo "Running automake --add-missing --copy" +automake --add-missing --copy --warnings=all || bail_out + echo "" echo "All done." echo "To build the software now, do something like:"