From: Mike McQuaid Date: Tue, 5 Oct 2010 19:52:54 +0000 (+0100) Subject: libtoolize is called glibtoolize on OSX so check for it too. X-Git-Tag: dbus-1.4.1~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a19c3d2e8b590d95a4959c68895331b88d121ecb;p=thirdparty%2Fdbus.git libtoolize is called glibtoolize on OSX so check for it too. --- diff --git a/autogen.sh b/autogen.sh index 4e9fa3b60..a3a636856 100755 --- a/autogen.sh +++ b/autogen.sh @@ -47,7 +47,12 @@ fi DIE=1 } -(libtoolize --version) < /dev/null > /dev/null 2>&1 || { +LIBTOOLIZE=`which libtoolize` +if test -n $LIBTOOLIZE; then + LIBTOOLIZE=`which glibtoolize` +fi + +($LIBTOOLIZE --version) < /dev/null > /dev/null 2>&1 || { echo echo "You must have libtoolize installed to compile $PROJECT." echo "Install the libtool package from ftp.gnu.org or a mirror." @@ -68,7 +73,7 @@ if test -z "$*"; then echo "to pass any to it, please specify them on the $0 command line." fi -libtoolize --copy --force +$LIBTOOLIZE --copy --force $ACLOCAL $ACLOCAL_FLAGS