Commit 0acc164c authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[1727] define BOOST_DISABLE_THREADS if Boost doesn't use theads by default.

this will fix a crash in asiolink tests on OpenBSD due to its deviant
behavior that could result in different configuration on the use of
boost threads in different .cc files.
parent da4d1f0f
......@@ -780,7 +780,22 @@ if test "${boost_include_path}" ; then
AC_CHECK_HEADERS([boost/shared_ptr.hpp boost/foreach.hpp boost/interprocess/sync/interprocess_upgradable_mutex.hpp boost/date_time/posix_time/posix_time_types.hpp boost/bind.hpp boost/function.hpp],,
AC_MSG_ERROR([Missing required header files.]))
# Detect whether Boost tries to use threads by default, and, if not,
# make it sure explicitly. In some systems the automatic detection
# may depend on preceding header files, and if inconsistency happens
# it could lead to a critical disruption.
AC_MSG_CHECKING([whether Boost tries to use threads])
#include <boost/config.hpp>
#error "boost will use threads"
# I can't get some of the #include <asio.hpp> right without this
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment