From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55532) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YqhZv-0001GT-FX for qemu-devel@nongnu.org; Fri, 08 May 2015 08:40:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YqhZo-0006lA-1A for qemu-devel@nongnu.org; Fri, 08 May 2015 08:40:31 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46303) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YqhZn-0006l6-QA for qemu-devel@nongnu.org; Fri, 08 May 2015 08:40:23 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t48CeNdT019250 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Fri, 8 May 2015 08:40:23 -0400 From: Juan Quintela Date: Fri, 8 May 2015 14:40:21 +0200 Message-Id: <1431088821-27609-1-git-send-email-quintela@redhat.com> Subject: [Qemu-devel] [PATCH] configure: Don't exit until all errors have been detected List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Currently, it exits until each error, so if you are installing on a new machine, it requires lots of configure runs until you get all the dependencies that you need. With this change, it shows all the errors with the selected configured options. Signed-off-by: Juan Quintela --- configure | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/configure b/configure index b18aa9e..1d7966b 100755 --- a/configure +++ b/configure @@ -38,6 +38,8 @@ printf " '%s'" "$0" "$@" >> config.log echo >> config.log echo "#" >> config.log +has_errors="no" + error_exit() { echo echo "ERROR: $1" @@ -46,7 +48,7 @@ error_exit() { shift done echo - exit 1 + has_errors="yes" } do_compiler() { @@ -5254,6 +5256,13 @@ case "$target_name" in error_exit "Unsupported target CPU" ;; esac + + +if [ "x$has_errors" == "xyes" ]; then + echo "There are errors with this configuration. Exiting." + exit 1; +fi + # TARGET_BASE_ARCH needs to be defined after TARGET_ARCH if [ "$TARGET_BASE_ARCH" = "" ]; then TARGET_BASE_ARCH=$TARGET_ARCH -- 2.4.0