--with-libsodium \
--enable-dnscrypt \
--enable-dns-over-tls \
- --enable-fstrm \
+ --enable-dnstap \
--prefix=$HOME/dnsdist \
--disable-silent-rules"
run "make -k -j3"
--libexecdir='$${prefix}/lib' \
--enable-dns-over-tls \
--enable-dnscrypt \
- --enable-fstrm \
+ --enable-dnstap \
--with-gnutls \
--with-libsodium \
--with-re2 \
--without-net-snmp
%endif
%if 0%{?rhel} >= 7
- --enable-fstrm \
+ --enable-dnstap \
--with-gnutls \
--with-protobuf \
--with-lua=%{lua_implementation} \
--- /dev/null
+AC_DEFUN([PDNS_CHECK_DNSTAP], [
+ AC_MSG_CHECKING([whether we will have dnstap])
+ AC_ARG_ENABLE([dnstap],
+ AS_HELP_STRING([--enable-dnstap],[enable dnstap support @<:@default=auto@:>@]),
+ [enable_dnstap=$enableval],
+ [enable_dnstap=auto],
+ )
+ AC_MSG_RESULT([$enable_dnstap])
+
+ AS_IF([test "x$enable_dnstap" != "xno"], [
+ AS_IF([test "x$enable_dnstap" = "xyes" -o "x$enable_dnstap" = "xauto"], [
+ PKG_CHECK_MODULES([FSTRM], [libfstrm], [
+ AC_DEFINE([HAVE_FSTRM], [1], [Define to 1 if you have libfstrm])
+ save_CFLAGS=$CFLAGS
+ save_LIBS=$LIBS
+ CFLAGS="$FSTRM_CFLAGS $CFLAGS"
+ LIBS="$FSTRM_LIBS $LIBS"
+ AC_CHECK_FUNCS([fstrm_tcp_writer_init])
+ CFLAGS=$save_CFLAGS
+ LIBS=$save_LIBS
+ ], [ : ])
+ ])
+ ])
+
+ AM_CONDITIONAL([FSTRM], [test "x$FSTRM_LIBS" != "x"])
+ AS_IF([test "x$enable_dnstap" = "xyes"], [
+ AS_IF([test x"$FSTRM_LIBS" = "x"], [
+ AC_MSG_ERROR([dnstap requested but libfstrm was not found])
+ ])
+ ])
+])
+++ /dev/null
-AC_DEFUN([PDNS_CHECK_FSTRM], [
- AC_MSG_CHECKING([whether we will be linking in fstrm])
- AC_ARG_ENABLE([fstrm],
- AS_HELP_STRING([--enable-fstrm],[use fstrm @<:@default=auto@:>@]),
- [enable_fstrm=$enableval],
- [enable_fstrm=auto],
- )
- AC_MSG_RESULT([$enable_fstrm])
-
- AS_IF([test "x$enable_fstrm" != "xno"], [
- AS_IF([test "x$enable_fstrm" = "xyes" -o "x$enable_fstrm" = "xauto"], [
- PKG_CHECK_MODULES([FSTRM], [libfstrm], [
- AC_DEFINE([HAVE_FSTRM], [1], [Define to 1 if you have libfstrm])
- save_CFLAGS=$CFLAGS
- save_LIBS=$LIBS
- CFLAGS="$FSTRM_CFLAGS $CFLAGS"
- LIBS="$FSTRM_LIBS $LIBS"
- AC_CHECK_FUNCS([fstrm_tcp_writer_init])
- CFLAGS=$save_CFLAGS
- LIBS=$save_LIBS
- ], [ : ])
- ])
- ])
- AM_CONDITIONAL([FSTRM], [test "x$FSTRM_LIBS" != "x"])
- AS_IF([test "x$enable_fstrm" = "xyes"], [
- AS_IF([test x"$FSTRM_LIBS" = "x"], [
- AC_MSG_ERROR([fstrm requested but libfstrm was not found])
- ])
- ])
-])
LT_INIT([disable-static])
PDNS_WITH_LIBSODIUM
-PDNS_CHECK_FSTRM
+PDNS_CHECK_DNSTAP
PDNS_CHECK_RAGEL([dnslabeltext.cc], [www.dnsdist.org])
PDNS_CHECK_LIBEDIT
PDNS_CHECK_CLOCK_GETTIME
[AC_MSG_NOTICE([DNSCrypt: no])]
)
AS_IF([test "x$FSTRM_LIBS" != "x"],
- [AC_MSG_NOTICE([fstrm: yes])],
- [AC_MSG_NOTICE([fstrm: no])]
+ [AC_MSG_NOTICE([dnstap: yes])],
+ [AC_MSG_NOTICE([dnstap: no])]
)
AS_IF([test "x$RE2_LIBS" != "x"],
[AC_MSG_NOTICE([re2: yes])],
--- /dev/null
+../../../m4/pdns_check_dnstap.m4
\ No newline at end of file
+++ /dev/null
-../../../m4/pdns_check_fstrm.m4
\ No newline at end of file