From b2ab38c39c4e82c92ee5883bd3b3b075f3ea7ad0 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Thu, 28 Jul 2016 16:33:06 +0200 Subject: [PATCH] Auth: Fail configure on missing boost components Prevents issues like #4239 --- configure.ac | 3 +++ m4/pdns_enable_unit_tests.m4 | 3 +++ 2 files changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index 7cc72107f5..e3c556ade4 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 d72644de81..abc4ec00b2 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]) + ]) ]) ]) -- 2.47.2