BIND 10 trac3049, updated. a635a6d6ce769d71109e683f0e0480f73b818112 [3049] Check for offset_ptr with -Werror

BIND 10 source code commits bind10-changes at lists.isc.org
Fri Aug 16 08:03:33 UTC 2013


The branch, trac3049 has been updated
       via  a635a6d6ce769d71109e683f0e0480f73b818112 (commit)
      from  6ce7437c65b714361b3c100154af4c352859bd13 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit a635a6d6ce769d71109e683f0e0480f73b818112
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date:   Fri Aug 16 09:59:55 2013 +0200

    [3049] Check for offset_ptr with -Werror

-----------------------------------------------------------------------

Summary of changes:
 configure.ac                    |    2 +-
 m4macros/ax_boost_for_bind10.m4 |    3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

-----------------------------------------------------------------------
diff --git a/configure.ac b/configure.ac
index 35bc5b4..1b2d31f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -883,7 +883,7 @@ LIBS=$LIBS_SAVED
 AX_BOOST_FOR_BIND10
 # Boost offset_ptr is required in one library and not optional right now, so
 # we unconditionally fail here if it doesn't work.
-if test "$BOOST_OFFSET_PTR_WOULDFAIL" = "yes"; then
+if test "$BOOST_OFFSET_PTR_WOULDFAIL" = "yes" -a "$werror_ok" = 1; then
     AC_MSG_ERROR([Failed to compile a required header file.  Try upgrading Boost to 1.44 or higher (when using clang++) or specifying --without-werror.  See the ChangeLog entry for Trac no. 2147 for more details.])
 fi
 
diff --git a/m4macros/ax_boost_for_bind10.m4 b/m4macros/ax_boost_for_bind10.m4
index cc6408c..3045dfb 100644
--- a/m4macros/ax_boost_for_bind10.m4
+++ b/m4macros/ax_boost_for_bind10.m4
@@ -86,6 +86,8 @@ AC_TRY_COMPILE([
 
 # Boost offset_ptr is known to not compile on some platforms, depending on
 # boost version, its local configuration, and compiler.  Detect it.
+CXXFLAGS_SAVED="$CXXFLAGS"
+CXXFLAGS="$CXXFLAGS -Werror"
 AC_MSG_CHECKING([Boost offset_ptr compiles])
 AC_TRY_COMPILE([
 #include <boost/interprocess/offset_ptr.hpp>
@@ -94,6 +96,7 @@ AC_TRY_COMPILE([
  BOOST_OFFSET_PTR_WOULDFAIL=no],
 [AC_MSG_RESULT(no)
  BOOST_OFFSET_PTR_WOULDFAIL=yes])
+CXXFLAGS="$CXXFLAGS_SAVED"
 
 # Detect build failure case known to happen with Boost installed via
 # FreeBSD ports



More information about the bind10-changes mailing list