From: Pieter Lexis Date: Thu, 17 Sep 2020 07:53:33 +0000 (+0200) Subject: dnsdist, rec: dnstap requires protobuf X-Git-Tag: rec-4.5.0-alpha0~1^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21598da2f30417117246338900a49331a16ec710;p=thirdparty%2Fpdns.git dnsdist, rec: dnstap requires protobuf Fail the configure when protobuf is disabled or not found but dnstap was enabled. --- diff --git a/m4/pdns_check_dnstap.m4 b/m4/pdns_check_dnstap.m4 index 1be83c676f..651eaccf67 100644 --- a/m4/pdns_check_dnstap.m4 +++ b/m4/pdns_check_dnstap.m4 @@ -1,4 +1,5 @@ AC_DEFUN([PDNS_CHECK_DNSTAP], [ + AC_REQUIRE([PDNS_WITH_PROTOBUF]) AC_MSG_CHECKING([whether we will have dnstap]) AC_ARG_ENABLE([dnstap], AS_HELP_STRING([--enable-dnstap],[enable dnstap support @<:@default=$1@:>@]), @@ -27,5 +28,8 @@ AC_DEFUN([PDNS_CHECK_DNSTAP], [ AS_IF([test x"$FSTRM_LIBS" = "x"], [ AC_MSG_ERROR([dnstap requested but libfstrm was not found]) ]) + AS_IF([test "x$PROTOBUF_LIBS" = "x" -a x"$PROTOC" = "x"], [ + AC_MSG_ERROR([dnstap requested but protobuf was not found]) + ]) ]) ])