diff --git a/autogen.sh b/autogen.sh index 6ec909dce..5d77d3264 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,8 +1,10 @@ #!/bin/sh LIBTOOLIZE=libtoolize -if [ "$(uname)" == "Darwin" ] ; then +if ! libtoolize --help >/dev/null 2>&1 && glibtoolize --help >/dev/null 2>&1 +then LIBTOOLIZE=glibtoolize fi +export LIBTOOLIZE autoreconf -fiv -I config -I m4