]> git.ipfire.org Git - thirdparty/pdns.git/blob - m4/pdns_check_dnstap.m4
Merge pull request #7844 from Habbie/auth-regress-docker-daemons
[thirdparty/pdns.git] / m4 / pdns_check_dnstap.m4
1 AC_DEFUN([PDNS_CHECK_DNSTAP], [
2 AC_MSG_CHECKING([whether we will have dnstap])
3 AC_ARG_ENABLE([dnstap],
4 AS_HELP_STRING([--enable-dnstap],[enable dnstap support @<:@default=auto@:>@]),
5 [enable_dnstap=$enableval],
6 [enable_dnstap=auto],
7 )
8 AC_MSG_RESULT([$enable_dnstap])
9
10 AS_IF([test "x$enable_dnstap" != "xno"], [
11 AS_IF([test "x$enable_dnstap" = "xyes" -o "x$enable_dnstap" = "xauto"], [
12 PKG_CHECK_MODULES([FSTRM], [libfstrm], [
13 AC_DEFINE([HAVE_FSTRM], [1], [Define to 1 if you have libfstrm])
14 save_CFLAGS=$CFLAGS
15 save_LIBS=$LIBS
16 CFLAGS="$FSTRM_CFLAGS $CFLAGS"
17 LIBS="$FSTRM_LIBS $LIBS"
18 AC_CHECK_FUNCS([fstrm_tcp_writer_init])
19 CFLAGS=$save_CFLAGS
20 LIBS=$save_LIBS
21 ], [ : ])
22 ])
23 ])
24
25 AM_CONDITIONAL([FSTRM], [test "x$FSTRM_LIBS" != "x"])
26 AS_IF([test "x$enable_dnstap" = "xyes"], [
27 AS_IF([test x"$FSTRM_LIBS" = "x"], [
28 AC_MSG_ERROR([dnstap requested but libfstrm was not found])
29 ])
30 ])
31 ])