scripts: report autotools failures in bootstrap.
authorKrisztian Litkey <krisztian.litkey@intel.com>
Thu, 13 Sep 2012 06:56:39 +0000 (09:56 +0300)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Fri, 26 Oct 2012 16:03:50 +0000 (19:03 +0300)
bootstrap

index 4d66f16..ac327fd 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -9,11 +9,13 @@ aclocal -I m4 && \
 status=$?
 
 if [ $status == 0 ]; then
-    if [ "$1" == "configure" ]; then
-        shift
+    if [ -n "$1" ]; then
+        [ "$1" == "configure" ] && shift || :
         ./configure $*
         status=$?
     fi
+else
+    echo "Failed to bootstrap."
 fi
 
 exit $status