--- qemu/configure.orig 2007-04-22 07:16:13.000000000 +0200 +++ qemu/configure 2007-04-22 07:18:33.000000000 +0200 @@ -584,7 +584,7 @@ prefix="/usr/local" fi mandir="$prefix/share/man" -datadir="$prefix/share/qemu" +datadir="$prefix/share/kvm" docdir="$prefix/share/doc/qemu" bindir="$prefix/bin" fi @@ -820,7 +820,11 @@ if expr $target : '.*-user' > /dev/null ; then target_user_only="yes" fi - +target_kvm="no" +if expr $target : '.*-kvm' > /dev/null ; then + target_kvm="yes" + target_softmmu="yes" +fi target_linux_user="no" if expr $target : '.*-linux-user' > /dev/null ; then target_linux_user="yes" @@ -943,6 +947,10 @@ echo "CONFIG_SOFTMMU=yes" >> $config_mak echo "#define CONFIG_SOFTMMU 1" >> $config_h fi +if test "$target_kvm" = "yes" ; then + echo "CONFIG_KVM=yes" >> $config_mak + echo "#define CONFIG_KVM 1" >> $config_h +fi if test "$target_user_only" = "yes" ; then echo "CONFIG_USER_ONLY=yes" >> $config_mak echo "#define CONFIG_USER_ONLY 1" >> $config_h