summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorSteinar H. Gunderson <sesse@google.com>2016-03-10 18:37:05 +0100
committerSteinar H. Gunderson <sesse@google.com>2016-03-10 18:37:05 +0100
commit2b9152d9c5bed71dffb7f7f6c7a3ec48b058ff2d (patch)
treea3bdca2466663f7eaf787135c2f3e09cad61cad4 /autogen.sh
parent0800b1e4c7a9683af0ab3760f1e29e163b0d0f10 (diff)
downloadsnappy-2b9152d9c5bed71dffb7f7f6c7a3ec48b058ff2d.tar.gz
snappy-2b9152d9c5bed71dffb7f7f6c7a3ec48b058ff2d.tar.bz2
snappy-2b9152d9c5bed71dffb7f7f6c7a3ec48b058ff2d.zip
Default to glibtoolize instead of libtoolize if it exists,
and also make it customizable through the environment variable $LIBTOOLIZE. Fixes autogen.sh issues on OS X, which ships its own (incompatible) libtoolize. R=jeff
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index 9d0ebe9..9cb502e 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -2,6 +2,11 @@
rm -rf autom4te.cache
aclocal -I m4
autoheader
-libtoolize --copy
+if glibtoolize --version >/dev/null 2>/dev/null; then
+ LIBTOOLIZE=${LIBTOOLIZE:-glibtoolize}
+else
+ LIBTOOLIZE=${LIBTOOLIZE:-libtoolize}
+fi
+$LIBTOOLIZE --copy
automake --add-missing --copy
autoconf