File qemu-datadir.diff of Package kvm.853

Index: qemu-kvm-0.14.0.rc0/configure
===================================================================
--- qemu-kvm-0.14.0.rc0.orig/configure
+++ qemu-kvm-0.14.0.rc0/configure
@@ -151,7 +151,7 @@ mingw32="no"
 EXESUF=""
 prefix="/usr/local"
 mandir="\${prefix}/share/man"
-datadir="\${prefix}/share/qemu"
+datadir="\${prefix}/share/qemu-kvm"
 docdir="\${prefix}/share/doc/qemu"
 bindir="\${prefix}/bin"
 sysconfdir="\${prefix}/etc"
Index: qemu-kvm-0.14.0.rc0/os-posix.c
===================================================================
--- qemu-kvm-0.14.0.rc0.orig/os-posix.c
+++ qemu-kvm-0.14.0.rc0/os-posix.c
@@ -89,7 +89,7 @@ void os_setup_signal_handling(void)
 /* Find a likely location for support files using the location of the binary.
    For installed binaries this will be "$bindir/../share/qemu".  When
    running from the build tree this will be "$bindir/../pc-bios".  */
-#define SHARE_SUFFIX "/share/qemu"
+#define SHARE_SUFFIX "/share/qemu-kvm"
 #define BUILD_SUFFIX "/pc-bios"
 char *os_find_datadir(const char *argv0)
 {
Index: qemu-kvm-0.14.0.rc0/Makefile
===================================================================
--- qemu-kvm-0.14.0.rc0.orig/Makefile
+++ qemu-kvm-0.14.0.rc0/Makefile
@@ -231,8 +231,8 @@ ifdef CONFIG_POSIX
 endif
 
 install-sysconfig:
-	$(INSTALL_DIR) "$(DESTDIR)$(sysconfdir)/qemu"
-	$(INSTALL_DATA) $(SRC_PATH)/sysconfigs/target/target-x86_64.conf "$(DESTDIR)$(sysconfdir)/qemu"
+	$(INSTALL_DIR) "$(DESTDIR)$(sysconfdir)/qemu-kvm"
+	$(INSTALL_DATA) $(SRC_PATH)/sysconfigs/target/target-x86_64.conf "$(DESTDIR)$(sysconfdir)/qemu-kvm"
 
 install: all $(if $(BUILD_DOCS),install-doc) install-sysconfig
 	$(INSTALL_DIR) "$(DESTDIR)$(bindir)"