]> granicus.if.org Git - pdns/commitdiff
Auth: Fail configure on missing boost components
authorPieter Lexis <pieter.lexis@powerdns.com>
Thu, 28 Jul 2016 14:33:06 +0000 (16:33 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Thu, 28 Jul 2016 14:33:06 +0000 (16:33 +0200)
Prevents issues like #4239

configure.ac
m4/pdns_enable_unit_tests.m4

index 7cc72107f56e72f10417ea4edbe6872c68352adb..e3c556ade419a841c444cf8c190f2f3f55ea93c7 100644 (file)
@@ -108,6 +108,9 @@ BOOST_REQUIRE([1.35])
 AM_CONDITIONAL([HAVE_BOOST_GE_148], [test "$boost_major_version" -ge 148])
 
 BOOST_PROGRAM_OPTIONS([mt])
+AS_IF([test "$boost_cv_lib_program_options" = "no"], [
+  AC_MSG_ERROR([Boost Program Options library not found])
+])
 PDNS_ENABLE_UNIT_TESTS
 PDNS_ENABLE_REPRODUCIBLE
 
index d72644de817dcb633d12ebd8a736e2c6379de9f3..abc4ec00b249e86959805e9f54c5857173385f88 100644 (file)
@@ -21,5 +21,8 @@ AC_DEFUN([PDNS_ENABLE_UNIT_TESTS], [
 
   AS_IF([test "x$enable_unit_tests" != "xno" || test "x$enable_backend_unit_tests" != "xno"], [
      BOOST_TEST([mt])
+     AS_IF([test "$boost_cv_lib_unit_test_framework" = "no"], [
+       AC_MSG_ERROR([Boost Unit Test library not found])
+     ])
    ])
 ])