From: Marko Kreen Date: Tue, 20 Dec 2011 21:00:59 +0000 (+0200) Subject: std-autogen: more random workarounds X-Git-Url: http://git.postgresql.org/gitweb/delmail?a=commitdiff_plain;h=39719f56c4acf02bafdfcee513e0357cda264d6e;p=libusual.git std-autogen: more random workarounds --- diff --git a/mk/std-autogen.sh b/mk/std-autogen.sh index 3128a22..c80e84e 100755 --- a/mk/std-autogen.sh +++ b/mk/std-autogen.sh @@ -15,25 +15,26 @@ test -f "${USUAL_DIR}/m4/usual.m4" || { } # -# workaround for libtoolize bug - it does not update -# the file if they dont exist +# Workarounds for libtoolize randomness - it does not update +# the files if they exist, except it requires install-sh. +# rm -f config.guess config.sub install-sh ltmain.sh libtool +cp -p ${USUAL_DIR}/mk/install-sh . if libtoolize --help | grep "[-][-]install" > /dev/null; then - libtoolize -i -q -f + libtoolize -i -f -q else libtoolize fi # drop ltmain.sh if libtool is not used -grep -qE 'LT_INIT|LIBTOOL' configure.ac || rm -f ltmain.sh +grep -E 'LT_INIT|LIBTOOL' configure.ac > /dev/null || rm -f ltmain.sh # Now generate configure & config.h aclocal -I ${USUAL_DIR}/m4 -autoheader -autoconf -# workaround for old autotools that dont provide install-sh -test -f install-sh || cp -p ${USUAL_DIR}/mk/install-sh . +grep AC_CONFIG_HEADER configure.ac > /dev/null && autoheader + +autoconf # clean junk rm -rf autom4te.* aclocal*