From 2b9152d9c5bed71dffb7f7f6c7a3ec48b058ff2d Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 10 Mar 2016 18:37:05 +0100 Subject: [PATCH] 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 --- autogen.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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