summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorๆž—ๅšไป(Buo-ren Lin) <Buo.Ren.Lin@gmail.com>2018-08-18 14:22:57 +0800
committerNick Wellnhofer <wellnhofer@aevum.de>2018-08-19 19:02:12 +0200
commit173ea684dd355c68c3a9f521d108ff10c2fb3f5d (patch)
treee7eac5056ff5086caeaf60028873c507dcc8049f
parent2240fbf5912054af025fb6e01e26375100275e74 (diff)
downloadlibxml2-173ea684dd355c68c3a9f521d108ff10c2fb3f5d.tar.gz
Don't instruct user to run make when autogen.sh failed
Currently the autogen script will always tell user to run make even when the configure script failed, this patch changes the behavior to only show this message when the configure script terminates without error.
-rwxr-xr-xautogen.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/autogen.sh b/autogen.sh
index 8b47ea50..4e7858a5 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -76,6 +76,11 @@ fi
if test -z "$NOCONFIGURE"; then
$srcdir/configure $EXTRA_ARGS "$@"
- echo
- echo "Now type 'make' to compile libxml2."
+ if test "$?" -ne 0; then
+ echo
+ echo "Configure script failed, check config.log for more info."
+ else
+ echo
+ echo "Now type 'make' to compile libxml2."
+ fi
fi