autogen.sh: fail cleanly if autoconf fails

Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
This commit is contained in:
Simon McVittie 2016-08-15 20:11:49 +01:00
parent 73b03e0bfb
commit 0bbfca6def
1 changed files with 4 additions and 1 deletions

View File

@ -81,7 +81,10 @@ $ACLOCAL -I m4 $ACLOCAL_FLAGS
(autoheader --version) < /dev/null > /dev/null 2>&1 && autoheader
$AUTOMAKE -a $am_opt
autoconf || echo "autoconf failed - version 2.5x is probably required"
if ! autoconf; then
echo "autoconf failed - version 2.5x is probably required" >&2
exit 1
fi
cd $ORIGDIR