autogen.sh: warn about needing autoconf if autoreconf is not found

Changes the error message from:
./autogen.sh: 9: ./autogen.sh: autoreconf: not found

To:
configuration failed, please install autoconf first

(cherry picked from commit bitcoin/bitcoin@889426d37e)
This commit is contained in:
Andrés G. Aragoneses 2016-02-13 04:44:42 +08:00 committed by Jack Grigg
parent eb8858ce27
commit e4b9235274
1 changed files with 2 additions and 0 deletions

View File

@ -13,4 +13,6 @@ if [ -z ${LIBTOOLIZE} ] && GLIBTOOLIZE="$(command -v glibtoolize)"; then
LIBTOOLIZE="${GLIBTOOLIZE}"
export LIBTOOLIZE
fi
which autoreconf >/dev/null || \
(echo "configuration failed, please install autoconf first" && exit 1)
autoreconf --install --force --warnings=all