[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master afebc70 10/28: Use boost_regex.hpp wrapper in
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master afebc70 10/28: Use boost_regex.hpp wrapper in configure test too |
Date: |
Wed, 12 May 2021 18:14:43 -0400 (EDT) |
branch: master
commit afebc70364a2d3ccf368c1d20da868c903df10c7
Author: Vadim Zeitlin <vadim@tt-solutions.com>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Use boost_regex.hpp wrapper in configure test too
Instead of manually disabling some of the warnings disabled in this
header when testing, just include it to disable all of them.
This allows configure to detect Boost.Regex in the CI build as the test
failed due -Wparentheses-equality being given by clang-11 without it.
---
configure.ac | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/configure.ac b/configure.ac
index 4febcda..cf2844d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -392,10 +392,6 @@ else
if it is installed in non default location"
fi
-dnl Prevent warnings due to the use of "register" in Boost.Regex headers that
-dnl are actually fatal errors with clang in C++17 mode.
-CPPFLAGS="$save_CPPFLAGS -Dregister="
-
dnl latest versions of boost extract some common functionality in
dnl libboost_system which we must link when using any other Boost library, so
dnl check for it first
@@ -403,10 +399,12 @@
AC_CHECK_LIB($boost_libsystem,main,BOOST_LIBS="-l$boost_libsystem")
dnl usually when we want to check for a library we use AC_CHECK_LIB and main()
dnl but since under mingw with -pedantic and -std= options test does not pass
-dnl we are forced to use a bit more sophisticated construct
+dnl we are forced to use a bit more sophisticated construct and include our own
+dnl wrapper header which disables various warnings that occur in Boost headers
+CPPFLAGS="$save_CPPFLAGS -I$srcdir"
LIBS="$save_LIBS -l$boost_libregex"
-AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <boost/regex.hpp>]],
+AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include "boost_regex.hpp"]],
[[boost::regex *r]])],
[],
[AC_MSG_FAILURE([Boost regex library $boost_libregex not found, $errmsg])]
- [lmi-commits] [lmi] master updated (f62151a -> 0ed65f7), Greg Chicares, 2021/05/12
- [lmi-commits] [lmi] master 9c3addb 04/28: Combine "libtool" and "environment variables" steps, Greg Chicares, 2021/05/12
- [lmi-commits] [lmi] master 2b7bd98 01/28: Don't run CI builds when some irrelevant files change, Greg Chicares, 2021/05/12
- [lmi-commits] [lmi] master f597cba 03/28: Run CI jobs in Debian Sid container, Greg Chicares, 2021/05/12
- [lmi-commits] [lmi] master 8e237e4 16/28: Change the keys used for caching files, Greg Chicares, 2021/05/12
- [lmi-commits] [lmi] master afebc70 10/28: Use boost_regex.hpp wrapper in configure test too,
Greg Chicares <=
- [lmi-commits] [lmi] master 2537153 26/28: Fix test_path_validation() for compilers without char8_t support, Greg Chicares, 2021/05/12
- [lmi-commits] [lmi] master 0ed65f7 28/28: Restore (commented out) a test that failed spectacularly, Greg Chicares, 2021/05/12
- [lmi-commits] [lmi] master 2808a1b 13/28: Use consistent flags for Boost.Regex build in the CI job, Greg Chicares, 2021/05/12
- [lmi-commits] [lmi] master 521017e 05/28: Show environment and compiler information in the CI output, Greg Chicares, 2021/05/12
- [lmi-commits] [lmi] master e94f977 15/28: Run CI job steps as non-root container user, Greg Chicares, 2021/05/12
- [lmi-commits] [lmi] master 2213a23 22/28: Disable clang deprecated declarations warnings in uBLAS headers, Greg Chicares, 2021/05/12
- [lmi-commits] [lmi] master 7e32f37 02/28: Don't build Boost.Filesystem library in the CI builds any more, Greg Chicares, 2021/05/12
- [lmi-commits] [lmi] master 0713a8f 14/28: Don't put NORMAL_UID in the environment unnecessarily, Greg Chicares, 2021/05/12
- [lmi-commits] [lmi] master aa750df 12/28: Work around global_settings_test failure in autotools builds, Greg Chicares, 2021/05/12
- [lmi-commits] [lmi] master 0d89ef3 07/28: Install sudo without using sudo, Greg Chicares, 2021/05/12