File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -304,7 +304,20 @@ if test "$build_docs" -eq 1; then
304
304
AC_CONFIG_FILES ( [ doc/Makefile] )
305
305
fi
306
306
307
-
307
+ AC_ARG_ENABLE ( assertions ,
308
+ AS_HELP_STRING ( [ --enable-assertions] ,
309
+ [ Turn on assertions checks (undefine NDEBUG] ) ) ,
310
+ [
311
+ if test "${enableval}" = "yes"; then
312
+ assertions=-UNDEBUG
313
+ MODSEC_EXTRA_CFLAGS="$MODSEC_EXTRA_CFLAGS $assertions"
314
+ else
315
+ assertions=
316
+ fi
317
+ ] ],
318
+ [
319
+ assertions=
320
+ ] )
308
321
# Add PCRE Studying
309
322
310
323
AC_ARG_ENABLE ( pcre-study ,
827
840
EXTRA_CFLAGS="-O2 -g -Wall $strict_compile"
828
841
fi
829
842
fi
830
-
843
+ EXTRA_CFLAGS="$EXTRA_CFLAGS $assertions"
844
+
831
845
MODSEC_EXTRA_CFLAGS="$pcre_study $pcre_match_limit $pcre_match_limit_recursion $pcre_jit $request_early $htaccess_config $lua_cache $debug_conf $debug_cache $debug_acmp $debug_mem $perf_meas $modsec_api $cpu_type $unique_id $log_filename $log_server $log_collection_delete_problem $log_dechunk $log_stopwatch $log_handler $log_server_context $collection_global_lock $large_stream_input"
832
846
833
847
APXS_WRAPPER=build/apxs-wrapper
@@ -905,7 +919,7 @@ AC_LINK_IFELSE(
905
919
CFLAGS="$ORIG_CFLAGS"
906
920
CPPFLAGS="$ORIG_CPPFLAGS"
907
921
908
- # Current our unique download backend is curl, furhter we can support more.
922
+ # Currently our unique download backend is curl, further we can support more.
909
923
if test ! -z "${CURL_VERSION}"; then
910
924
AC_DEFINE ( [ WITH_REMOTE_RULES] , [ 1] , [ Enables SecRemoteRules support] )
911
925
MODSEC_EXTRA_CFLAGS="$MODSEC_EXTRA_CFLAGS -DWITH_REMOTE_RULES"
You can’t perform that action at this time.
0 commit comments