From 93a3b8fafe1a3f240aa0cf4e2681271fb12b3188 Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Thu, 14 Jul 2005 13:05:08 +0000 Subject: [PATCH] try to use old autoconf if it's installed Author: hp Date: 2002-07-25 03:52:37 GMT try to use old autoconf if it's installed --- autogen.sh | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/autogen.sh b/autogen.sh index 784e29f..ab5a9f9 100755 --- a/autogen.sh +++ b/autogen.sh @@ -13,7 +13,16 @@ FILE=pkg.m4 DIE=0 -(autoconf --version) < /dev/null > /dev/null 2>&1 || { +AUTOCONF=autoconf-2.13 +AUTOHEADER=autoheader-2.13 + +($AUTOCONF --version) < /dev/null > /dev/null 2>&1 || { + AUTOCONF=autoconf + AUTOHEADER=autoheader +} + + +($AUTOCONF --version) < /dev/null > /dev/null 2>&1 || { echo echo "You must have autoconf installed to compile $PROJECT." echo "Download the appropriate package for your distribution," @@ -62,7 +71,7 @@ perl -p -i.bak -e "s/man_MANS/noinst_MANS/g" `find glib-1.2.8 -name Makefile.am` ## patch gslist.c to have stable sort perl -p -w -i.bak -e 's/if \(compare_func\(l1->data,l2->data\) < 0\)/if \(compare_func\(l1->data,l2->data\) <= 0\)/g' glib-1.2.8/gslist.c -(cd glib-1.2.8 && libtoolize --copy --force && $ACLOCAL $ACLOCAL_FLAGS && $AUTOMAKE && autoconf) +(cd glib-1.2.8 && libtoolize --copy --force && $ACLOCAL $ACLOCAL_FLAGS && $AUTOMAKE && $AUTOCONF) if test -z "$*"; then echo "I am going to run ./configure with no arguments - if you wish " @@ -75,10 +84,10 @@ echo $ACLOCAL $ACLOCAL_FLAGS $ACLOCAL $ACLOCAL_FLAGS # optionally feature autoheader -(autoheader --version) < /dev/null > /dev/null 2>&1 && autoheader +($AUTOHEADER --version) < /dev/null > /dev/null 2>&1 && $AUTOHEADER $AUTOMAKE -a $am_opt -autoconf +$AUTOCONF cd $ORIGDIR -- 2.39.5