From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Kiszka Subject: [PATCH 1/2] kvm: Use kvm-kmod headers if available Date: Tue, 12 Jan 2010 19:53:45 +0100 Message-ID: <4B4CC539.10306@siemens.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: Avi Kivity , Marcelo Tosatti , Gleb Natapov , qemu-devel , kvm To: Anthony Liguori Return-path: Received: from goliath.siemens.de ([192.35.17.28]:22463 "EHLO goliath.siemens.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753303Ab0ALSyN (ORCPT ); Tue, 12 Jan 2010 13:54:13 -0500 Sender: kvm-owner@vger.kernel.org List-ID: 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 --- Note: This is the upstream version first. qemu-kvm differs in this area, I will post corresponding patches for that tree later. configure | 2 +- 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NUlsL-0007re-9s for qemu-devel@nongnu.org; Tue, 12 Jan 2010 13:53:57 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NUlsF-0007jf-VA for qemu-devel@nongnu.org; Tue, 12 Jan 2010 13:53:56 -0500 Received: from [199.232.76.173] (port=48154 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NUlsF-0007jC-Ha for qemu-devel@nongnu.org; Tue, 12 Jan 2010 13:53:51 -0500 Received: from goliath.siemens.de ([192.35.17.28]:22430) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NUlsE-0006vo-RX for qemu-devel@nongnu.org; Tue, 12 Jan 2010 13:53:51 -0500 Message-ID: <4B4CC539.10306@siemens.com> Date: Tue, 12 Jan 2010 19:53:45 +0100 From: Jan Kiszka MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH 1/2] kvm: Use kvm-kmod headers if available List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: kvm , Marcelo Tosatti , Avi Kivity , Gleb Natapov , qemu-devel 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 --- Note: This is the upstream version first. qemu-kvm differs in this area, I will post corresponding patches for that tree later. configure | 2 +- 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