summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Bogado <bogado@amazon.com>2016-01-01 14:10:48 -0800
committerPeter Simons <simons@cryp.to>2016-01-11 11:08:00 +0100
commitd48ec2210047bbf17702700811c3f16a5369e06c (patch)
tree79163475d640d756652f8c89a7b608f1e1ebe33b
parentd05c255928aee18e4edf644f23f003a90d7ff76d (diff)
downloadautoconf-archive-d48ec2210047bbf17702700811c3f16a5369e06c.tar.gz
Fix ax_boost_system for new versions of boost.
Newer version of boost::system have a breaking change that makes the test on ax_boost_system fail even though the library is present. Changed the test to use another construct that did not change. Also reseted the "CXX_FLAG" to an empty value in case of it having a "-Werror" that also makes the test break.
-rw-r--r--m4/ax_boost_system.m45
1 files changed, 3 insertions, 2 deletions
diff --git a/m4/ax_boost_system.m4 b/m4/ax_boost_system.m4
index c4c4555..43570a5 100644
--- a/m4/ax_boost_system.m4
+++ b/m4/ax_boost_system.m4
@@ -31,7 +31,7 @@
# and this notice are preserved. This file is offered as-is, without any
# warranty.
-#serial 17
+#serial 18
AC_DEFUN([AX_BOOST_SYSTEM],
[
@@ -68,9 +68,10 @@ AC_DEFUN([AX_BOOST_SYSTEM],
ax_cv_boost_system,
[AC_LANG_PUSH([C++])
CXXFLAGS_SAVE=$CXXFLAGS
+ CXXFLAGS=
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <boost/system/error_code.hpp>]],
- [[boost::system::system_category]])],
+ [[boost::system::error_category *a = 0;]])],
ax_cv_boost_system=yes, ax_cv_boost_system=no)
CXXFLAGS=$CXXFLAGS_SAVE
AC_LANG_POP([C++])