]> git.proxmox.com Git - qemu.git/commitdiff
Prevent configuring for a user emulator on a different type of OS
authorBlue Swirl <blauwirbel@gmail.com>
Tue, 17 Nov 2009 20:52:56 +0000 (20:52 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Tue, 17 Nov 2009 20:52:56 +0000 (20:52 +0000)
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
configure

index 73f8b7bb5565af817cdcd0541ca63185f5dddb0f..a49aaef32f215ad81cf1d3c97344bcf23c64cc89 100755 (executable)
--- 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"
     ;;