Kaydet (Commit) be048935 authored tarafından Luboš Luňák's avatar Luboš Luňák

boost signals2 with clang and C++11 require at least boost 1.55

https://svn.boost.org/trac/boost/ticket/8260

Change-Id: I06b4d45b91c99d1152fa79e419346c0668573bca
üst aa3696b1
...@@ -8527,13 +8527,18 @@ if test "$with_system_boost" = "yes"; then ...@@ -8527,13 +8527,18 @@ if test "$with_system_boost" = "yes"; then
fi fi
AC_LANG_PUSH([C++]) AC_LANG_PUSH([C++])
save_CXXFLAGS=$CXXFLAGS save_CXXFLAGS=$CXXFLAGS
CXXFLAGS="$CXXFLAGS $BOOST_CPPFLAGS" CXXFLAGS="$CXXFLAGS $BOOST_CPPFLAGS $CXXFLAGS_CXX11"
AC_CHECK_HEADER(boost/shared_ptr.hpp, [], AC_CHECK_HEADER(boost/shared_ptr.hpp, [],
[AC_MSG_ERROR(boost/shared_ptr.hpp not found. install boost)], []) [AC_MSG_ERROR(boost/shared_ptr.hpp not found. install boost)], [])
AC_CHECK_HEADER(boost/spirit/include/classic_core.hpp, [], AC_CHECK_HEADER(boost/spirit/include/classic_core.hpp, [],
[AC_MSG_ERROR(boost/spirit/include/classic_core.hpp not found. install boost >= 1.36)], []) [AC_MSG_ERROR(boost/spirit/include/classic_core.hpp not found. install boost >= 1.36)], [])
AC_CHECK_HEADER(boost/function.hpp, [], AC_CHECK_HEADER(boost/function.hpp, [],
[AC_MSG_ERROR(boost/function.hpp not found. install boost)], []) [AC_MSG_ERROR(boost/function.hpp not found. install boost)], [])
AC_MSG_CHECKING([whether boost signals2 works])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <boost/signals2/signal.hpp>]],
[[ boost::signals2::signal<void()> s; s(); ]])],
[AC_MSG_RESULT([yes])],
[AC_MSG_ERROR([no, install boost >= 1.55 or use --without-system-boost])])
CXXFLAGS="$CXXFLAGS -fno-exceptions" CXXFLAGS="$CXXFLAGS -fno-exceptions"
AC_MSG_CHECKING([whether boost/function.hpp compiles with -fno-exceptions]) AC_MSG_CHECKING([whether boost/function.hpp compiles with -fno-exceptions])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <boost/function.hpp> AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <boost/function.hpp>
......
Markdown is supported
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