Commit 0a8e90f401ec602c007ae591138160b4de838630
1 parent
8637c67f
Configure options to enable/disable all softmmu/user targets.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1787 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
23 additions
and
2 deletions
configure
| @@ -90,6 +90,8 @@ kernel_path="" | @@ -90,6 +90,8 @@ kernel_path="" | ||
| 90 | cocoa="no" | 90 | cocoa="no" |
| 91 | check_gfx="yes" | 91 | check_gfx="yes" |
| 92 | check_gcc="yes" | 92 | check_gcc="yes" |
| 93 | +softmmu="yes" | ||
| 94 | +user="no" | ||
| 93 | 95 | ||
| 94 | # OS specific | 96 | # OS specific |
| 95 | targetos=`uname -s` | 97 | targetos=`uname -s` |
| @@ -123,6 +125,7 @@ darwin="yes" | @@ -123,6 +125,7 @@ darwin="yes" | ||
| 123 | *) | 125 | *) |
| 124 | oss="yes" | 126 | oss="yes" |
| 125 | linux="yes" | 127 | linux="yes" |
| 128 | +user="yes" | ||
| 126 | if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then | 129 | if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then |
| 127 | kqemu="yes" | 130 | kqemu="yes" |
| 128 | fi | 131 | fi |
| @@ -208,6 +211,14 @@ for opt do | @@ -208,6 +211,14 @@ for opt do | ||
| 208 | ;; | 211 | ;; |
| 209 | --disable-gcc-check) check_gcc="no" | 212 | --disable-gcc-check) check_gcc="no" |
| 210 | ;; | 213 | ;; |
| 214 | + --disable-softmmu) softmmu="no" | ||
| 215 | + ;; | ||
| 216 | + --enable-softmmu) softmmu="yes" | ||
| 217 | + ;; | ||
| 218 | + --disable-user) user="no" | ||
| 219 | + ;; | ||
| 220 | + --enable-user) user="yes" | ||
| 221 | + ;; | ||
| 211 | esac | 222 | esac |
| 212 | done | 223 | done |
| 213 | 224 | ||
| @@ -232,14 +243,20 @@ fi | @@ -232,14 +243,20 @@ fi | ||
| 232 | 243 | ||
| 233 | if test -z "$target_list" ; then | 244 | if test -z "$target_list" ; then |
| 234 | # these targets are portable | 245 | # these targets are portable |
| 235 | - target_list="i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu mips-softmmu mipsel-softmmu arm-softmmu" | 246 | + if [ "$softmmu" = "yes" ] ; then |
| 247 | + target_list="i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu mips-softmmu mipsel-softmmu arm-softmmu" | ||
| 248 | + fi | ||
| 236 | # the following are Linux specific | 249 | # the following are Linux specific |
| 237 | - if [ "$linux" = "yes" ] ; then | 250 | + if [ "$user" = "yes" ] ; then |
| 238 | target_list="i386-user arm-user armeb-user sparc-user ppc-user mips-user mipsel-user $target_list" | 251 | target_list="i386-user arm-user armeb-user sparc-user ppc-user mips-user mipsel-user $target_list" |
| 239 | fi | 252 | fi |
| 240 | else | 253 | else |
| 241 | target_list=$(echo "$target_list" | sed -e 's/,/ /g') | 254 | target_list=$(echo "$target_list" | sed -e 's/,/ /g') |
| 242 | fi | 255 | fi |
| 256 | +if test -z "$target_list" ; then | ||
| 257 | + echo "No targets enabled" | ||
| 258 | + exit 1 | ||
| 259 | +fi | ||
| 243 | 260 | ||
| 244 | if test -z "$cross_prefix" ; then | 261 | if test -z "$cross_prefix" ; then |
| 245 | 262 | ||
| @@ -385,6 +402,10 @@ echo " --enable-coreaudio enable Coreaudio audio driver" | @@ -385,6 +402,10 @@ echo " --enable-coreaudio enable Coreaudio audio driver" | ||
| 385 | echo " --enable-alsa enable ALSA audio driver" | 402 | echo " --enable-alsa enable ALSA audio driver" |
| 386 | echo " --enable-fmod enable FMOD audio driver" | 403 | echo " --enable-fmod enable FMOD audio driver" |
| 387 | echo " --enabled-dsound enable DirectSound audio driver" | 404 | echo " --enabled-dsound enable DirectSound audio driver" |
| 405 | +echo " --enable-system enable all system emulation targets" | ||
| 406 | +echo " --disable-system disable all system emulation targets" | ||
| 407 | +echo " --enable-user enable all linux usermode emulation targets" | ||
| 408 | +echo " --disable-user disable all linux usermode emulation targets" | ||
| 388 | echo " --fmod-lib path to FMOD library" | 409 | echo " --fmod-lib path to FMOD library" |
| 389 | echo " --fmod-inc path to FMOD includes" | 410 | echo " --fmod-inc path to FMOD includes" |
| 390 | echo "" | 411 | echo "" |