Skip to content

Commit 3a83196

Browse files
authored
Merge pull request #3219 from eduar-hte/cpp17
Simplifiy configuration to build using std C++17
2 parents 6f0e566 + 59254fe commit 3a83196

File tree

12 files changed

+1020
-184
lines changed

12 files changed

+1020
-184
lines changed

build/ax_cxx_compile_stdcxx.m4

+1,018
Large diffs are not rendered by default.

build/ax_cxx_compile_stdcxx_11.m4

-171
This file was deleted.

configure.ac

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ AC_PROG_MAKE_SET
5252
PKG_PROG_PKG_CONFIG
5353

5454

55-
# Check if the compiler is c++17 compatible.
56-
# AX_CXX_COMPILE_STDCXX_17(,mandatory)
55+
# Set C++ standard version and check if compiler supports it.
56+
AX_CXX_COMPILE_STDCXX(17, noext, mandatory)
5757

5858
# Check for libinjection
5959
if ! test -f "${srcdir}/others/libinjection/src/libinjection_html5.c"; then

examples/reading_logs_via_rule_message/Makefile.am

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ simple_request_LDFLAGS = \
3232

3333
simple_request_CPPFLAGS = \
3434
$(GLOBAL_CFLAGS) \
35-
-std=c++17 \
3635
-I$(top_builddir)/headers \
3736
-I$(top_builddir) \
3837
-g \

examples/reading_logs_with_offset/Makefile.am

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ read_LDFLAGS = \
3232

3333
read_CPPFLAGS = \
3434
$(GLOBAL_CFLAGS) \
35-
-std=c++17 \
3635
-I$(top_builddir)/headers \
3736
-I$(top_builddir) \
3837
-g \

examples/using_bodies_in_chunks/Makefile.am

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ simple_request_LDFLAGS = \
3333

3434
simple_request_CPPFLAGS = \
3535
$(GLOBAL_CFLAGS) \
36-
-std=c++17 \
3736
-I$(top_builddir)/headers \
3837
-I$(top_builddir) \
3938
-g \

src/Makefile.am

-1
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,6 @@ libmodsecurity_la_CFLAGS =
311311

312312

313313
libmodsecurity_la_CPPFLAGS = \
314-
-std=c++17 \
315314
-I.. \
316315
-g \
317316
-I../others \

src/parser/Makefile.am

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ libmodsec_parser_la_SOURCES = \
1111
test.cc
1212

1313
libmodsec_parser_la_CPPFLAGS = \
14-
-std=c++17 \
1514
-I../.. \
1615
-I../../headers \
1716
-I../../others \

test/Makefile.am

-3
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ unit_tests_LDFLAGS = \
7070

7171

7272
unit_tests_CPPFLAGS = \
73-
-std=c++17 \
7473
-Icommon \
7574
-I../ \
7675
-g \
@@ -126,7 +125,6 @@ regression_tests_LDFLAGS = \
126125

127126

128127
regression_tests_CPPFLAGS = \
129-
-std=c++17 \
130128
-Icommon \
131129
-I../ \
132130
-g \
@@ -179,7 +177,6 @@ rules_optimization_LDFLAGS = \
179177
$(YAJL_LDFLAGS)
180178

181179
rules_optimization_CPPFLAGS = \
182-
-std=c++17 \
183180
-Icommon \
184181
-I../ \
185182
-g \

test/benchmark/Makefile.am

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ benchmark_LDFLAGS = \
3232
$(LUA_LDFLAGS)
3333

3434
benchmark_CPPFLAGS = \
35-
-std=c++17 \
3635
-I$(top_builddir)/headers \
3736
$(GLOBAL_CPPFLAGS) \
3837
$(PCRE_CFLAGS) \

test/fuzzer/Makefile.am

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ afl_fuzzer_LDADD = \
3030

3131

3232
afl_fuzzer_CPPFLAGS = \
33-
-std=c++17 \
3433
-Icommon \
3534
-I../ \
3635
-I../../ \

tools/rules-check/Makefile.am

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ modsec_rules_check_LDFLAGS = \
2828
$(YAJL_LDFLAGS)
2929

3030
modsec_rules_check_CPPFLAGS = \
31-
-std=c++17 \
3231
-I$(top_builddir)/headers \
3332
$(GLOBAL_CPPFLAGS) \
3433
$(PCRE_CFLAGS) \

0 commit comments

Comments
 (0)