You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-libs/libsrtp/files/libsrtp-2.2.0-pcap-automagi...

21 lines
729 B

diff -uNr libsrtp-2.2.0.ORIG/configure.ac libsrtp-2.2.0/configure.ac
--- libsrtp-2.2.0.ORIG/configure.ac 2018-06-18 13:28:52.385014993 +0100
+++ libsrtp-2.2.0/configure.ac 2018-06-18 13:31:09.217020686 +0100
@@ -273,6 +273,8 @@
dnl Checking for PCAP
+AC_ARG_ENABLE([pcap], AS_HELP_STRING([--disable-pcap], [Build without `pcap' library (-lpcap)]))
+AS_IF([test "x$enable_pcap" != "xno"], [
PCAP_LIB=""
AC_CHECK_LIB([pcap], [pcap_create],
[PCAP_LIB="-lpcap"
@@ -284,6 +286,7 @@
AC_DEFINE([HAVE_PCAP], [1], [Define to 1 if you have the `winpcap' library (-lwpcap)])
AC_SUBST([HAVE_PCAP], [1])])
AC_SUBST([PCAP_LIB])
+])
AC_MSG_CHECKING([whether to redirect logging to stdout])
AC_ARG_ENABLE([log-stdout],