aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2010-01-12 19:53:45 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2010-01-12 14:32:19 -0600
commitffd8b67f5d90dd23aad5f549ed528228de8602e7 (patch)
treec6be913a347692f03723a2226b4dd63846da1f11
parent23842aabe63bab798fecaff968153edde898b970 (diff)
downloadqemu-ffd8b67f5d90dd23aad5f549ed528228de8602e7.zip
qemu-ffd8b67f5d90dd23aad5f549ed528228de8602e7.tar.gz
qemu-ffd8b67f5d90dd23aad5f549ed528228de8602e7.tar.bz2
kvm: Use kvm-kmod headers if available
Since kvm-kmod-2.6.32.2 we have an alternative source for recent KVM kernel headers. Use it when available and not overruled by --kerneldir. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 5c056f5..623c30e 100755
--- a/configure
+++ b/configure
@@ -1384,7 +1384,7 @@ EOF
kvm_cflags="$kvm_cflags -I$kerneldir/arch/$cpu/include"
fi
else
- kvm_cflags=""
+ kvm_cflags=`pkg-config --cflags kvm-kmod 2> /dev/null`
fi
if compile_prog "$kvm_cflags" "" ; then
kvm=yes