From aa44a34bedc4f8558780bf9650c0178c3695050b Mon Sep 17 00:00:00 2001 From: alexpeshkoff Date: Wed, 24 Dec 2008 12:43:37 +0000 Subject: [PATCH] Newer (appears 2.X) versions of libtoolize require switch --install to create additional files (config.sub, config.guess). Added detection of that switch - based on original patch from Bill Oliver. --- autogen.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/autogen.sh b/autogen.sh index e124058e94..f1dd322e56 100755 --- a/autogen.sh +++ b/autogen.sh @@ -77,7 +77,18 @@ if test "x$LIBTOOL_M4" != "x"; then rm -f aclocal.m4 cp $LIBTOOL_M4 aclocal.m4 fi -$LIBTOOLIZE --copy --force || exit 1 + +TEMPFILE="./lt.out" +$LIBTOOLIZE --install --dry-run >$TEMPFILE 2>&1 +LIBTOOL_AUX_FILES=`grep 'unrecognized option' $TEMPFILE` +rm -f $TEMPFILE +if test "x$LIBTOOL_AUX_FILES" != "x"; then + $LIBTOOLIZE --copy --force || exit 1 +else +# libtoolize no longer installs config.guess and config.sub by default. +# Use new --install option to get old behavior. + $LIBTOOLIZE --copy --force --install || exit 1 +fi echo "Running autoreconf ..." autoreconf -if