aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSheng Yang <sheng@linux.intel.com>2009-11-13 14:22:34 +0800
committerAvi Kivity <avi@redhat.com>2009-11-15 14:57:05 +0200
commitb017b7afcbac33cacddf5a5bdfa27a8d976b802e (patch)
treef00facf8c3f4e52bc42255eb593a634f92179f2e /configure
parentUse bios from upstream (seabios binary) (diff)
downloadqemu-kvm-b017b7afcbac33cacddf5a5bdfa27a8d976b802e.tar.gz
qemu-kvm-b017b7afcbac33cacddf5a5bdfa27a8d976b802e.tar.bz2
qemu-kvm-b017b7afcbac33cacddf5a5bdfa27a8d976b802e.zip
Fix unable to detect libpci
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 Signed-off-by: Sheng Yang <sheng@linux.intel.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index 9d3b8403c..5b08367ba 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"