aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 10ace14..e4747ae 100644
--- a/configure.ac
+++ b/configure.ac
@@ -22,7 +22,9 @@ AX_CHECK_COMPILE_FLAG([-Wduplicated-cond], [CXXFLAGS="$CXXFLAGS -Wduplicated-con
AX_CHECK_COMPILE_FLAG([-Wduplicated-branches], [CXXFLAGS="$CXXFLAGS -Wduplicated-branches"], [], ["-Werror"])
AX_CHECK_COMPILE_FLAG([-Wlogical-op], [CXXFLAGS="$CXXFLAGS -Wlogical-op"], [], ["-Werror"])
AX_CHECK_COMPILE_FLAG([-Wrestrict], [CXXFLAGS="$CXXFLAGS -Wrestrict"], [], ["-Werror"])
-AX_CHECK_COMPILE_FLAG([-Wpedantic], [CXXFLAGS="$CXXFLAGS -Wpedantic"], [], ["-Werror"])
+AX_CHECK_COMPILE_FLAG([-pedantic], [CXXFLAG_PEDANTIC="-pedantic"], [], ["-Werror"])
+AX_CHECK_COMPILE_FLAG([-Wpedantic], [CXXFLAG_PEDANTIC="-Wpedantic"], [], ["-Werror"])
+CXXFLAGS="$CXXFLAGS $CXXFLAG_PEDANTIC"
AX_CHECK_COMPILE_FLAG(["-Wformat=2"], [CXXFLAGS="$CXXFLAGS -Wformat=2"], [], ["-Werror"])
AC_LANG_POP([C++])