diff --git a/autogen.sh b/autogen.sh index 8eea9b1..1ca89ff 100755 --- a/autogen.sh +++ b/autogen.sh @@ -9,7 +9,16 @@ cd "$srcdir" mkdir -p scripts mkdir -p m4 -libtoolize --force +LIBTOOLIZE=$(which libtoolize) +if [ -z ${LIBTOOLIZE} ]; then + LIBTOOLIZE=$(which glibtoolize) +fi +if [ -z ${LIBTOOLIZE} ]; then + echo "Can't find libtoolize" + exit -1 +fi + +${LIBTOOLIZE} --force if test $? != 0 ; then echo "libtoolize failed." exit -1 -- libgit2 0.21.2