From a447d4dc5607176a70361aed9361e1b63dc67ec9 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Wed, 26 May 2010 16:08:16 +0200 Subject: [PATCH] configure: bail out early on invalid -cpu option It would fail later anyway. Signed-off-by: Paolo Bonzini Signed-off-by: Aurelien Jarno --- configure | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/configure b/configure index 8d3084a72f..1d4f1e4235 100755 --- a/configure +++ b/configure @@ -232,7 +232,8 @@ case "$cpu" in cpu="sparc" ;; *) - cpu="unknown" + echo "Unsupported CPU = $cpu" + exit 1 ;; esac @@ -2068,10 +2069,6 @@ case "$cpu" in armv4b|armv4l) ARCH=arm ;; - *) - echo "Unsupported CPU = $cpu" - exit 1 - ;; esac echo "ARCH=$ARCH" >> $config_host_mak if test "$debug_tcg" = "yes" ; then -- 2.11.4.GIT