doctrees
latex
PowerDNS-Recursor.pdf
+/*.pb.cc
+/*.pb.h
dnsmessage.pb.cc: dnsmessage.proto
$(AM_V_GEN)$(PROTOC) --cpp_out=./ $<
+if DNSTAP_ENABLED
+dnstap.pb.cc: dnstap.proto
+ $(AM_V_GEN)$(PROTOC) -I$(srcdir) --cpp_out=./ $<
+endif
+
+
BUILT_SOURCES += dnsmessage.pb.cc
pdns_recursor_LDADD += $(PROTOBUF_LIBS)
nodist_pdns_recursor_SOURCES = dnsmessage.pb.cc dnsmessage.pb.h
pdns_recursor.$(OBJEXT): dnsmessage.pb.cc
+if DNSTAP_ENABLED
+BUILT_SOURCES += dnsmessage.pb.cc
+nodist_pdns_recursor_SOURCES += dnstap.pb.cc dnstap.pb.h
+pdns_recursor.$(OBJEXT): dnstap.pb.cc
+endif
+
nodist_testrunner_SOURCES = dnsmessage.pb.cc dnsmessage.pb.h
testrunner_LDADD += $(PROTOBUF_LIBS)
testrunner$(OBJEXT): dnsmessage.pb.cc
endif
+if DNSTAP_ENABLED
+pdns_recursor_SOURCES += \
+ dnstap.cc dnstap.hh
+endif
+
rec_control_SOURCES = \
arguments.cc arguments.hh \
dnsname.hh dnsname.cc \
[nodcachedir="$withval"]
)
+PDNS_ENABLE_DNSTAP
+
AC_MSG_CHECKING([whether we will enable compiler security checks])
AC_ARG_ENABLE([hardening],
[AS_HELP_STRING([--disable-hardening], [disable compiler security checks @<:@default=no@:>@])],
[AC_MSG_NOTICE([nod: yes])],
[AC_MSG_NOTICE([nod: no])]
)
+AM_COND_IF([DNSTAP_ENABLED],
+ [AC_MSG_NOTICE([dnstap: yes])],
+ [AC_MSG_NOTICE([dnstap: no])]
+)
AC_MSG_NOTICE([Context library: $pdns_context_library])
AC_MSG_NOTICE([])
--- /dev/null
+../dnstap.cc
\ No newline at end of file
--- /dev/null
+../dnstap.hh
\ No newline at end of file
--- /dev/null
+../dnstap.proto
\ No newline at end of file
--- /dev/null
+AC_DEFUN([PDNS_ENABLE_DNSTAP],[
+ AC_MSG_CHECKING([whether to enable logging of outgoing queries using dnstap])
+
+ AC_ARG_ENABLE([dnstap],
+ AS_HELP_STRING([--enable-dnstap],
+ [enable logging of outgoing queries using dnstap @<:@default=no@:>@]
+ ),
+ [enable_dnstap=$enableval],
+ [enable_dnstap=no]
+ )
+
+ AS_IF([test "x$enable_dnstap" != "xno"],
+ [AC_DEFINE([DNSTAP_ENABLED], [1], [Define to 1 if dnstap is enabled])]
+ )
+
+ AM_CONDITIONAL([DNSTAP_ENABLED], [test "x$enable_dnstap" != "xno"])
+
+ AC_MSG_RESULT([$enable_dnstap])
+])