diff options
author | Sheng Yang <sheng@linux.intel.com> | 2009-11-13 14:22:34 +0800 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-11-15 14:57:05 +0200 |
commit | b017b7afcbac33cacddf5a5bdfa27a8d976b802e (patch) | |
tree | f00facf8c3f4e52bc42255eb593a634f92179f2e /configure | |
parent | Use bios from upstream (seabios binary) (diff) | |
download | qemu-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-x | configure | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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" |