From patchwork Fri Sep 18 11:41:25 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 48516 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n8IBgRFX014041 for ; Fri, 18 Sep 2009 11:42:27 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756747AbZIRLmV (ORCPT ); Fri, 18 Sep 2009 07:42:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756651AbZIRLmA (ORCPT ); Fri, 18 Sep 2009 07:42:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42198 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756641AbZIRLl7 (ORCPT ); Fri, 18 Sep 2009 07:41:59 -0400 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n8IBg3Ts002367 for ; Fri, 18 Sep 2009 07:42:03 -0400 Received: from localhost.localdomain (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n8IBfa8x017440; Fri, 18 Sep 2009 07:41:58 -0400 From: Juan Quintela To: kvm@vger.kernel.org Subject: [PATCH 14/24] Test for libpci, not only for header Date: Fri, 18 Sep 2009 13:41:25 +0200 Message-Id: <3701617ecc82610119d45abfe5683bc3d157cbc8.1253272938.git.quintela@redhat.com> In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.67 on 10.5.11.18 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Signed-off-by: Juan Quintela --- configure | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 8c69894..fc067a4 100755 --- a/configure +++ b/configure @@ -961,9 +961,9 @@ cat > $TMPC << EOF #ifndef PCI_VENDOR_ID #error NO LIBPCI #endif -int main(void) { return 0; } +int main(void) { struct pci_access a; pci_init(&a); return 0; } EOF - if compile_prog "" "" ; then + if compile_prog "" "-lpci" ; then libs_softmmu="-lpci $libs_softmmu" else echo