From 2d8a1c75fdc54dee2c92d8b4a3b74c0249ab59f6 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Fri, 27 May 2016 10:12:58 +0200 Subject: [PATCH] Dnsdist: test for boost 1.42 when protobuf is enabled --- pdns/dnsdistdist/configure.ac | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pdns/dnsdistdist/configure.ac b/pdns/dnsdistdist/configure.ac index faff12c109..e98e7c5b5d 100644 --- a/pdns/dnsdistdist/configure.ac +++ b/pdns/dnsdistdist/configure.ac @@ -15,12 +15,21 @@ PDNS_CHECK_LIBSODIUM DNSDIST_CHECK_RAGEL PDNS_CHECK_LIBEDIT PDNS_CHECK_CLOCK_GETTIME -BOOST_REQUIRE([1.35]) + +boost_required_version=1.35 + +PDNS_WITH_PROTOBUF +AS_IF([test "x$PROTOBUF_LIBS" != "x" -a x"$PROTOC" != "x"], + # The protobuf code needs boost::uuid, which is available from 1.42 onward + [boost_required_version=1.42] +) + +BOOST_REQUIRE([$boost_required_version]) BOOST_FOREACH + PDNS_ENABLE_UNIT_TESTS PDNS_CHECK_RE2 DNSDIST_ENABLE_DNSCRYPT -PDNS_WITH_PROTOBUF AX_AVAILABLE_SYSTEMD AM_CONDITIONAL([HAVE_SYSTEMD], [ test x"$systemd" = "xy" ]) -- 2.47.2