summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
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