2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-22 01:49:48 +00:00

[#3731] Added system vs boost regex.h check

This commit is contained in:
Francis Dupont 2025-03-11 13:03:00 +01:00
parent 1d60359a19
commit db7e9ca4bd
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,8 @@
#include <regex.h>
#ifdef BOOST_RE_REGEX_H
#error "boost/regex.h"
#endif
int main() {
return 0;
}

View File

@ -254,6 +254,17 @@ conf_data.set('HAVE_PGSQL', POSTGRESQL_DEP.found())
#### Compiler Checks
if cpp.has_header('boost/regex.h', dependencies: [boost_dep], required: false)
result = cpp.run(
fs.read('compiler-checks/boost-regex.cc'),
dependencies: [boost_dep],
name: 'GET_SYSTEM_VS_BOOST_REGEX_HEADER',
)
if result.returncode() != 0
error('boost/regex.h is used in place of system regex.h')
endif
endif
result = cpp.run(
fs.read('compiler-checks/chrono-same-duration.cc'),
name: 'CHRONO_SAME_DURATION',