From: Juan Quintela Subject: Re: [PATCH 1/1] Fix unable to detect libpci Date: Fri, 13 Nov 2009 12:04:12 +0100 Message-ID: References: <1258093354-5048-1-git-send-email-sheng@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Avi Kivity , Marcelo Tosatti , kvm@vger.kernel.org To: Sheng Yang Return-path: Received: from mx1.redhat.com ([209.132.183.28]:13431 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753835AbZKMLEg (ORCPT ); Fri, 13 Nov 2009 06:04:36 -0500 In-Reply-To: <1258093354-5048-1-git-send-email-sheng@linux.intel.com> (Sheng Yang's message of "Fri, 13 Nov 2009 14:22:34 +0800") Sender: kvm-owner@vger.kernel.org List-ID: Sheng Yang wrote: > commit 75fe7882 "Test for libpci, not only for header" compile a libpci > test file. But the pciutils with defined PCI_COMPRESSED_IDS also need zlib > when compile, otherwise the compile would fail, and detection fail then > > CC: Juan Quintela > Signed-off-by: Sheng Yang Reviewed-by: Juan Quintela configure already requires -lz sooner, i.e. nothing new, and everything execpt *-user links with -lz already. Later, Juan. > --- > configure | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/configure b/configure > index 9d3b840..5b08367 100755 > --- a/configure > +++ b/configure > @@ -1477,8 +1477,8 @@ if test $kvm_cap_device_assignment = "yes" ; then > #endif > int main(void) { struct pci_access a; pci_init(&a); return 0; } > EOF > - if compile_prog "" "-lpci" ; then > - libs_softmmu="-lpci $libs_softmmu" > + if compile_prog "" "-lpci -lz" ; then > + libs_softmmu="-lpci -lz $libs_softmmu" > else > echo > echo "Error: libpci check failed"