From f69f48437fa66a05fcfa09284d9dfc85d8b20d2a Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Sat, 6 Mar 2010 12:48:39 +0000 Subject: [PATCH] Use 'glibtoolize' instead of 'libtoolize' on MacOSX. --- bootstrap | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bootstrap b/bootstrap index 01309cef..1540429c 100755 --- a/bootstrap +++ b/bootstrap @@ -13,6 +13,13 @@ rm -Rf autom4te.cache (mkdir autotools >& /dev/null) (cd autotools && rm -f config.guess config.sub missing mkinstalldirs compile ltmain.sh depcomp install-sh) +# Check for "glibtoolize" instead of "libtoolize" on OSX +LIBTOOLIZE=libtoolize +if which glibtoolize > /dev/null 2>&1; then + LIBTOOLIZE=glibtoolize +fi + + DIE=0 echo "" @@ -36,7 +43,7 @@ if test $DIE = 0 ; then fi if test $DIE = 0 ; then - echo -n "* Running libtoolize... " ; (libtoolize --copy --force --automake >& bootstrap.tmpout) \ + echo -n "* Running libtoolize... " ; ($LIBTOOLIZE --copy --force --automake >& bootstrap.tmpout) \ && (echo "[OK]" ; cat bootstrap.tmpout ; rm -f bootstrap.tmpout) \ || (echo "[NO]" ; cat bootstrap.tmpout ; rm -f bootstrap.tmpout ; not_a_command >& /dev/null) || DIE=1 fi