]> granicus.if.org Git - pdns/commitdiff
Dnsdist: test for boost 1.42 when protobuf is enabled
authorPieter Lexis <pieter.lexis@powerdns.com>
Fri, 27 May 2016 08:12:58 +0000 (10:12 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Fri, 27 May 2016 08:12:58 +0000 (10:12 +0200)
pdns/dnsdistdist/configure.ac

index faff12c1091ef2643416492d9ba4a1d114d46a06..e98e7c5b5d17e34b381d09dfaa2f55faec4d608d 100644 (file)
@@ -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" ])