aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2010-03-06 12:48:39 +0000
committerVincent Richard <[email protected]>2010-03-06 12:48:39 +0000
commitf69f48437fa66a05fcfa09284d9dfc85d8b20d2a (patch)
tree2054c45daf8937ae1e09e5585077b920c556e59c
parentFixed shebang for systems that don't have /bin/bash. (diff)
downloadvmime-f69f48437fa66a05fcfa09284d9dfc85d8b20d2a.tar.gz
vmime-f69f48437fa66a05fcfa09284d9dfc85d8b20d2a.zip
Use 'glibtoolize' instead of 'libtoolize' on MacOSX.
-rwxr-xr-xbootstrap9
1 files changed, 8 insertions, 1 deletions
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