summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorBlue Swirl2009-11-17 21:52:56 +0100
committerBlue Swirl2009-11-17 21:52:56 +0100
commit9c7a420265c24b5917314d3976db8ca940642254 (patch)
treeeadae47382182673701a969de51def77b6f9eaa4 /configure
parentAdd linuxboot to BLOBS (diff)
downloadqemu-9c7a420265c24b5917314d3976db8ca940642254.tar.gz
qemu-9c7a420265c24b5917314d3976db8ca940642254.tar.xz
qemu-9c7a420265c24b5917314d3976db8ca940642254.zip
Prevent configuring for a user emulator on a different type of OS
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure12
1 files changed, 12 insertions, 0 deletions
diff --git a/configure b/configure
index 73f8b7bb55..a49aaef32f 100755
--- a/configure
+++ b/configure
@@ -2172,14 +2172,26 @@ case "$target" in
target_softmmu="yes"
;;
${target_arch2}-linux-user)
+ if test "$linux" != "yes" ; then
+ echo "ERROR: Target '$target' is only available on a Linux host"
+ exit 1
+ fi
target_user_only="yes"
target_linux_user="yes"
;;
${target_arch2}-darwin-user)
+ if test "$darwin" != "yes" ; then
+ echo "ERROR: Target '$target' is only available on a Darwin host"
+ exit 1
+ fi
target_user_only="yes"
target_darwin_user="yes"
;;
${target_arch2}-bsd-user)
+ if test "bsd" != "yes" ; then
+ echo "ERROR: Target '$target' is only available on a BSD host"
+ exit 1
+ fi
target_user_only="yes"
target_bsd_user="yes"
;;