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
This commit is contained in:
Steinar H. Gunderson 2016-03-10 18:37:05 +01:00
parent 0800b1e4c7
commit 2b9152d9c5
1 changed files with 6 additions and 1 deletions

View File

@ -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