From: Pieter Lexis Date: Thu, 28 Jul 2016 14:33:06 +0000 (+0200) Subject: Auth: Fail configure on missing boost components X-Git-Tag: auth-4.0.1~10^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b2ab38c39c4e82c92ee5883bd3b3b075f3ea7ad0;p=pdns Auth: Fail configure on missing boost components Prevents issues like #4239 --- diff --git a/configure.ac b/configure.ac index 7cc72107f..e3c556ade 100644 --- a/configure.ac +++ b/configure.ac @@ -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 diff --git a/m4/pdns_enable_unit_tests.m4 b/m4/pdns_enable_unit_tests.m4 index d72644de8..abc4ec00b 100644 --- a/m4/pdns_enable_unit_tests.m4 +++ b/m4/pdns_enable_unit_tests.m4 @@ -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]) + ]) ]) ])