From patchwork Tue Jan 12 18:53:48 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 72421 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id o0CIsGtB020153 for ; Tue, 12 Jan 2010 18:54:16 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754121Ab0ALSyO (ORCPT ); Tue, 12 Jan 2010 13:54:14 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753666Ab0ALSyO (ORCPT ); Tue, 12 Jan 2010 13:54:14 -0500 Received: from david.siemens.de ([192.35.17.14]:23638 "EHLO david.siemens.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751221Ab0ALSyN (ORCPT ); Tue, 12 Jan 2010 13:54:13 -0500 Received: from mail3.siemens.de (localhost [127.0.0.1]) by david.siemens.de (8.12.11.20060308/8.12.11) with ESMTP id o0CIrk62023269; Tue, 12 Jan 2010 19:53:47 +0100 Received: from [139.25.109.167] (mchn012c.ww002.siemens.net [139.25.109.167] (may be forged)) by mail3.siemens.de (8.12.11.20060308/8.12.11) with ESMTP id o0CIrkQK021211; Tue, 12 Jan 2010 19:53:46 +0100 Message-ID: <4B4CC53C.30403@siemens.com> Date: Tue, 12 Jan 2010 19:53:48 +0100 From: Jan Kiszka User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: Anthony Liguori CC: Avi Kivity , Marcelo Tosatti , Gleb Natapov , qemu-devel , kvm Subject: [PATCH 2/2] kvm: Detect availability of kvm_para.h Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org diff --git a/configure b/configure index 623c30e..1ddb3a1 100755 --- a/configure +++ b/configure @@ -216,6 +216,7 @@ curses="" docs="" fdt="" kvm="" +kvm_para="" nptl="" sdl="" sparse="no" @@ -1388,6 +1389,13 @@ EOF fi if compile_prog "$kvm_cflags" "" ; then kvm=yes + cat > $TMPC < +int main(void) { return 0; } +EOF + if compile_prog "$kvm_cflags" "" ; then + kvm_para=yes + fi else if test "$kvm" = "yes" ; then if [ -x "`which awk 2>/dev/null`" ] && \ @@ -2384,6 +2392,9 @@ case "$target_arch2" in \( "$target_arch2" = "i386" -a "$cpu" = "x86_64" \) \) ; then echo "CONFIG_KVM=y" >> $config_target_mak echo "KVM_CFLAGS=$kvm_cflags" >> $config_target_mak + if test "$kvm_para" = "yes"; then + echo "CONFIG_KVM_PARA=y" >> $config_target_mak + fi fi esac echo "TARGET_PHYS_ADDR_BITS=$target_phys_bits" >> $config_target_mak