From: Andrew Nelless Date: Sat, 27 Feb 2016 23:20:42 +0000 (+0000) Subject: Disable boost.m4's BOOST_CONTEXT tests for Boost <= 1.51 X-Git-Tag: rec-4.0.0-alpha2~41^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7158b2f57aae97b507cfab19914c1e584377f1b6;p=pdns Disable boost.m4's BOOST_CONTEXT tests for Boost <= 1.51 --- diff --git a/pdns/recursordist/configure.ac b/pdns/recursordist/configure.ac index 72753c92d..f3c61897a 100644 --- a/pdns/recursordist/configure.ac +++ b/pdns/recursordist/configure.ac @@ -33,8 +33,26 @@ AC_PROG_LIBTOOL PDNS_CHECK_OS +AC_DEFUN([PDNS_SELECT_CONTEXT_IMPL], [ + AC_MSG_CHECKING([for Boost version >= 1.52]) + AC_PREPROC_IFELSE([AC_LANG_SOURCE([[ +#include +#if BOOST_VERSION <= 105100 +#error +#endif + ]])], [ + AC_MSG_RESULT([yes]) + AC_MSG_NOTICE([MTasker will use the Boost Context library for context switching]) + BOOST_CONTEXT + ], [ + AC_MSG_RESULT([no]) + AC_MSG_NOTICE([MTasker will use System V contexts for context switching]) + ]) +]) + BOOST_REQUIRE([1.35]) -BOOST_CONTEXT() +PDNS_SELECT_CONTEXT_IMPL + PDNS_ENABLE_REPRODUCIBLE PDNS_WITH_LUAJIT