m4/virt-libpcap: remove unreasonable dependency on QEMU

Libpcap is used by nwfilter driver and it could be build without QEMU
driver.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
Pavel Hrdina 2016-12-12 09:57:37 +01:00
parent 41872ffade
commit 368e143a1c

View File

@ -28,9 +28,8 @@ AC_DEFUN([LIBVIRT_CHECK_LIBPCAP], [
LIBPCAP_LIBS=""
LIBPCAP_FOUND="no"
if test "$with_qemu" = "yes"; then
if test "x$with_libpcap" != "xno"; then
case $with_libpcap in
no) LIBPCAP_CONFIG= ;;
''|yes|check) LIBPCAP_CONFIG="pcap-config" ;;
*) LIBPCAP_CONFIG="$with_libpcap/bin/pcap-config" ;;
esac