]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
configure: enable-dnstap 7026/head
authorJosh Soref <jsoref@users.noreply.github.com>
Fri, 5 Oct 2018 03:01:27 +0000 (23:01 -0400)
committerJosh Soref <jsoref@users.noreply.github.com>
Fri, 5 Oct 2018 03:01:27 +0000 (23:01 -0400)
build-scripts/travis.sh
builder-support/debian/dnsdist/debian-stretch/rules
builder-support/specs/dnsdist.spec
m4/pdns_check_dnstap.m4 [new file with mode: 0644]
m4/pdns_check_fstrm.m4 [deleted file]
pdns/dnsdistdist/configure.ac
pdns/dnsdistdist/m4/pdns_check_dnstap.m4 [new symlink]
pdns/dnsdistdist/m4/pdns_check_fstrm.m4 [deleted symlink]

index 95dc1f3ccf5a6e4a2648d0a11edb0dd6fffc2383..d5e9151f2988b760d6b7217e6131f405af67988b 100755 (executable)
@@ -462,7 +462,7 @@ build_dnsdist(){
     --with-libsodium \
     --enable-dnscrypt \
     --enable-dns-over-tls \
-    --enable-fstrm \
+    --enable-dnstap \
     --prefix=$HOME/dnsdist \
     --disable-silent-rules"
   run "make -k -j3"
index eafbd4e166c84a6d3d2c5bd4ea4d199478015a9d..fb65e47ef9723f13b5a70590647229bb61f230e6 100755 (executable)
@@ -39,7 +39,7 @@ override_dh_auto_configure:
          --libexecdir='$${prefix}/lib' \
          --enable-dns-over-tls \
          --enable-dnscrypt \
-         --enable-fstrm \
+         --enable-dnstap \
          --with-gnutls \
          --with-libsodium \
          --with-re2 \
index cf92e2ed4783c1316b7d54edd0d759ad87d7be88..e028e25edc47c4d3a8785cd1ba062506e509a897 100644 (file)
@@ -93,7 +93,7 @@ sed -i '/^ExecStart/ s/dnsdist/dnsdist -u dnsdist -g dnsdist/' dnsdist.service.i
   --without-net-snmp
 %endif
 %if 0%{?rhel} >= 7
-  --enable-fstrm \
+  --enable-dnstap \
   --with-gnutls \
   --with-protobuf \
   --with-lua=%{lua_implementation} \
diff --git a/m4/pdns_check_dnstap.m4 b/m4/pdns_check_dnstap.m4
new file mode 100644 (file)
index 0000000..7900942
--- /dev/null
@@ -0,0 +1,31 @@
+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])
+    ])
+  ])
+])
diff --git a/m4/pdns_check_fstrm.m4 b/m4/pdns_check_fstrm.m4
deleted file mode 100644 (file)
index 2eb7936..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-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])
-    ])
-  ])
-])
index dda139319d4a6efa335559599160ba4421eeafeb..a1b41989cff632799882b3f48f5289a6f9e5fa16 100644 (file)
@@ -18,7 +18,7 @@ LT_PREREQ([2.2.2])
 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
@@ -147,8 +147,8 @@ AS_IF([test "x$enable_dnscrypt" != "xno"],
   [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])],
diff --git a/pdns/dnsdistdist/m4/pdns_check_dnstap.m4 b/pdns/dnsdistdist/m4/pdns_check_dnstap.m4
new file mode 120000 (symlink)
index 0000000..ed71845
--- /dev/null
@@ -0,0 +1 @@
+../../../m4/pdns_check_dnstap.m4
\ No newline at end of file
diff --git a/pdns/dnsdistdist/m4/pdns_check_fstrm.m4 b/pdns/dnsdistdist/m4/pdns_check_fstrm.m4
deleted file mode 120000 (symlink)
index f6852de..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../../m4/pdns_check_fstrm.m4
\ No newline at end of file