From 4f8cf634e5543b7ed0157aca17e4654fe3bbdccc Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Fri, 3 Dec 2021 16:01:17 -0300 Subject: [PATCH] Adjustments in autogen.sh --- autogen.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/autogen.sh b/autogen.sh index 06382c4..b716527 100755 --- a/autogen.sh +++ b/autogen.sh @@ -8,7 +8,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 @@ -36,7 +45,7 @@ automake --add-missing 2> /dev/null | true autopoint -test -n "$NOCONFIGURE" || "$srcdir/configure" "$@" +test -n "$NOCONFIGURE" || "$srcdir/configure" $@ -- libgit2 0.21.2