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>
This commit is contained in:
Jan Kiszka 2010-01-12 19:53:45 +01:00 committed by Anthony Liguori
parent 23842aabe6
commit ffd8b67f5d

2
configure vendored
View file

@ -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