From 1a4fb4eb8ec42d170f13b3866091856aa8bb7ce1 Mon Sep 17 00:00:00 2001 From: Stéphane Raimbault Date: Mon, 9 Sep 2013 10:07:11 +0200 Subject: [PATCH] Check return value of autoreconf. Thanks to Lauri Nurmi. --- autogen.sh | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/autogen.sh b/autogen.sh index ea404e0..c49e3bc 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,9 +1,14 @@ #! /bin/sh -autoreconf --install --symlink --force - - -echo -echo "------------------------------------------------------" -echo "Initialized build system. You can now run ./configure " -echo "------------------------------------------------------" -echo +if autoreconf --install --symlink --force; then + echo + echo "------------------------------------------------------" + echo "Initialized build system. You can now run ./configure " + echo "------------------------------------------------------" + echo +else + echo + echo "--------------------------" + echo "Running autoreconf failed." + echo "--------------------------" + echo +fi -- libgit2 0.21.4