Signed-off-by: Sheng Yang <[EMAIL PROTECTED]>
---
qemu/Makefile.target | 2 +-
qemu/configure | 19 +++++++++++++++++++
2 files changed, 20 insertions(+), 1 deletions(-)
diff --git a/qemu/Makefile.target b/qemu/Makefile.target
index 58c816e..48b4493 100644
--- a/qemu/Makefile.target
+++ b/qemu/Makefile.target
@@ -658,7 +658,7 @@ ifdef CONFIG_AIO
OBJS+=compatfd.o
endif
-LIBS+=-lz
+LIBS+=-lz -lpci
ifdef CONFIG_ALSA
LIBS += -lasound
endif
diff --git a/qemu/configure b/qemu/configure
index de30a95..3751ccc 100755
--- a/qemu/configure
+++ b/qemu/configure
@@ -814,6 +814,25 @@ else
fi
##########################################
+# libpci probe
+cat > $TMPC << EOF
+#include <pci/pci.h>
+#ifndef PCI_VENDOR_ID
+#error NO LIBPCI
+#endif
+int main(void) { return 0; }
+EOF
+if $cc $ARCH_CFLAGS -o $TMPE ${OS_CFLAGS} $TMPC 2>/dev/null ; then
+ :
+else
+ echo
+ echo "Error: libpci check failed"
+ echo "Make sure to have the libpci libs and headers installed."
+ echo
+ exit 1
+fi
+
+##########################################
# SDL probe
sdl_too_old=no
--
1.5.4.5
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html