]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
m4/virt-libpcap: remove unreasonable dependency on QEMU
authorPavel Hrdina <phrdina@redhat.com>
Mon, 12 Dec 2016 08:57:37 +0000 (09:57 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Wed, 21 Dec 2016 14:39:38 +0000 (15:39 +0100)
Libpcap is used by nwfilter driver and it could be build without QEMU
driver.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
m4/virt-libpcap.m4

index a360194ee769cef57d8f320c197546b791d2a13f..9cf47e66ab5f27ec15930c7d8e458e8ab4d91adb 100644 (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