mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2026-01-13 06:57:10 +03:00
Add searching for lua in /usr/lib{64|32}.
Do not default to using -Werror (warnings are errors).
This commit is contained in:
@@ -126,6 +126,21 @@ sinclude(build/find_curl.m4)
|
||||
|
||||
### Configure Options
|
||||
|
||||
# Strict Compile
|
||||
AC_ARG_ENABLE(strict-compile,
|
||||
AS_HELP_STRING([--enable-strict-compile],
|
||||
[Enable strict compilation (warnings are errors).]),
|
||||
[
|
||||
if test "$enableval" != "no"; then
|
||||
strict_compile="-Werror"
|
||||
else
|
||||
strict_compile=
|
||||
fi
|
||||
],
|
||||
[
|
||||
strict_compile=
|
||||
])
|
||||
|
||||
# DEBUG_CONF
|
||||
AC_ARG_ENABLE(debug-conf,
|
||||
AS_HELP_STRING([--enable-debug-conf],
|
||||
@@ -203,7 +218,7 @@ AC_ARG_ENABLE(modsec-api,
|
||||
|
||||
### Build *EXTRA_CFLAGS vars
|
||||
|
||||
EXTRA_CFLAGS="-O2 -g -Wall -Werror"
|
||||
EXTRA_CFLAGS="-O2 -g -Wall $strict_compile"
|
||||
MODSEC_EXTRA_CFLAGS="$debug_conf $debug_cache $debug_acmp $perf_meas $modsec_api"
|
||||
|
||||
APXS_WRAPPER=build/apxs-wrapper
|
||||
|
||||
Reference in New Issue
Block a user