aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerry Zhang <zhangjerry@google.com>2017-06-13 15:27:28 -0700
committerJerry Zhang <zhangjerry@google.com>2017-06-15 11:49:01 -0700
commitc58b24651a56989fdf39b42202c77e72749e8bab (patch)
tree44b791cc2f19706738d8a2948ee3c1647875660a
parent60d0226d791d6a80e716c4c8ac29aa41315cf308 (diff)
downloadlibmtp-c58b24651a56989fdf39b42202c77e72749e8bab.tar.gz
Look for glibtoolize if libtoolize is not found.
libtoolize is sometimes installed as glibtoolize on Darwin.
-rwxr-xr-xautogen.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index ae7e6a1..65c4e2c 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -16,7 +16,8 @@ fail() {
echo "Removing libtool cruft"
rm -f ltmain.sh config.guess config.sub
echo "Running libtoolize"
-libtoolize --copy --force || fail
+(glibtoolize --version) < /dev/null > /dev/null 2>&1 && LIBTOOLIZE=glibtoolize || LIBTOOLIZE=libtoolize
+$LIBTOOLIZE --copy --force || fail
# Refresh GNU autotools toolchain: aclocal autoheader
echo "Removing aclocal cruft"