Use hazptr_local and hazptr_array
[folly.git] / folly / m4 / ax_boost_context.m4
index 6843c390a7c6d36eb3182a6e79d52d2a48fa390f..47f79471aa08a66c53164991e47b74fedb3d78e6 100644 (file)
@@ -69,10 +69,16 @@ AC_DEFUN([AX_BOOST_CONTEXT],
                        CXXFLAGS_SAVE=$CXXFLAGS
 
                        AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
-                               [[@%:@include <boost/context/all.hpp>
-#include <boost/version.hpp>
+                               [[@%:@include <boost/version.hpp>
+#if BOOST_VERSION >= 106100
+#include <boost/context/detail/fcontext.hpp>
+#else
+#include <boost/context/fcontext.hpp>
+#endif
 ]],
-                               [[#if BOOST_VERSION >= 105600
+                               [[#if BOOST_VERSION >= 106100
+  boost::context::detail::fcontext_t fc = boost::context::detail::make_fcontext(0, 0, 0);
+#elif BOOST_VERSION >= 105600
   boost::context::fcontext_t fc = boost::context::make_fcontext(0, 0, 0);
 #else
   boost::context::fcontext_t* fc = boost::context::make_fcontext(0, 0, 0);