]> granicus.if.org Git - pdns/commitdiff
Rec: Don't fail configure on missing fcontext.hpp
authorPieter Lexis <pieter.lexis@powerdns.com>
Mon, 27 Jun 2016 11:02:15 +0000 (13:02 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Mon, 27 Jun 2016 13:19:18 +0000 (15:19 +0200)
Fixes #4014

pdns/recursordist/configure.ac

index 5fcf6a2c947595b526b5fb06026fed2a0d7ec956..0ee0c5a17e607c1737840ca9c1c0564021196549 100644 (file)
@@ -54,7 +54,9 @@ AC_DEFUN([PDNS_SELECT_CONTEXT_IMPL], [
       LDFLAGS="$LDFLAGS $BOOST_THREAD_LDFLAGS"
     fi
     AC_MSG_NOTICE([checking whether the Boost context library actually links...])
-    BOOST_FIND_LIB([context], [$1], [boost/context/fcontext.hpp], [[]])
+    BOOST_FIND_HEADER([boost/context/fcontext.hpp], [ : ], [
+      BOOST_FIND_LIB([context], [$1], [boost/context/fcontext.hpp], [[]])
+    ])
     case $boost_cv_lib_context in
       (yes)
         AC_MSG_NOTICE([MTasker will use the Boost context library for context switching])