summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2010-05-26 16:08:16 +0200
committerAurelien Jarno <aurelien@aurel32.net>2010-06-10 00:09:48 +0200
commitb1dfa0b7f6402781a42bc177d2c3918445fb2327 (patch)
tree9059edc22a1e5a478b47f8bcc55ae4e7773da07b /configure
parent9a73a1ce191dc30852da33afbf9c7abdeaddb837 (diff)
downloadqemu-b1dfa0b7f6402781a42bc177d2c3918445fb2327.tar.gz
qemu-b1dfa0b7f6402781a42bc177d2c3918445fb2327.tar.bz2
qemu-b1dfa0b7f6402781a42bc177d2c3918445fb2327.zip
configure: bail out early on invalid -cpu option
It would fail later anyway. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files 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