diff options
author | Steinar H. Gunderson <sesse@google.com> | 2016-03-10 18:37:05 +0100 |
---|---|---|
committer | Steinar H. Gunderson <sesse@google.com> | 2016-03-10 18:37:05 +0100 |
commit | 2b9152d9c5bed71dffb7f7f6c7a3ec48b058ff2d (patch) | |
tree | a3bdca2466663f7eaf787135c2f3e09cad61cad4 /autogen.sh | |
parent | 0800b1e4c7a9683af0ab3760f1e29e163b0d0f10 (diff) | |
download | snappy-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-x | autogen.sh | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |