summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorJan Kiszka2010-01-12 19:53:45 +0100
committerAnthony Liguori2010-01-12 21:32:19 +0100
commitffd8b67f5d90dd23aad5f549ed528228de8602e7 (patch)
treec6be913a347692f03723a2226b4dd63846da1f11 /configure
parentmonitor: fix dead assignment spotted by clang (diff)
downloadqemu-ffd8b67f5d90dd23aad5f549ed528228de8602e7.tar.gz
qemu-ffd8b67f5d90dd23aad5f549ed528228de8602e7.tar.xz
qemu-ffd8b67f5d90dd23aad5f549ed528228de8602e7.zip
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>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 5c056f51ba..623c30e219 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