mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-13 21:36:00 +03:00
Adds MODSEC_NO_LOGS option to be part of the configure
This commit is contained in:
parent
74045beab5
commit
b0089cfde9
@ -152,6 +152,9 @@ MSC_VERSION_INFO=msc_version_info
|
||||
AC_SUBST([MSC_VERSION_INFO])
|
||||
|
||||
|
||||
# MODSEC_NO_LOGS="-DNO_LOGS=1"
|
||||
# AC_SUBST(MODSEC_NO_LOGS)
|
||||
|
||||
|
||||
# Files to be generated via autotools.
|
||||
AC_CONFIG_FILES([\
|
||||
|
@ -204,6 +204,7 @@ libmodsecurity_la_CPPFLAGS = \
|
||||
-O3 \
|
||||
-I ../headers \
|
||||
$(GEOIP_CFLAGS) \
|
||||
$(MODSEC_NO_LOGS) \
|
||||
$(PCRE_CPPFLAGS)
|
||||
|
||||
libmodsecurity_la_LIBADD = \
|
||||
|
@ -39,6 +39,7 @@ unit_tests_CPPFLAGS = \
|
||||
-g \
|
||||
-I$(top_builddir)/headers \
|
||||
$(CURL_CFLAGS) \
|
||||
$(MODSEC_NO_LOGS) \
|
||||
$(GEOIP_CFLAGS) \
|
||||
$(PCRE_CPPFLAGS) \
|
||||
$(YAJL_CFLAGS)
|
||||
@ -67,6 +68,7 @@ regression_tests_CPPFLAGS = \
|
||||
-g \
|
||||
-I$(top_builddir)/headers \
|
||||
$(CURL_CFLAGS) \
|
||||
$(MODSEC_NO_LOGS) \
|
||||
$(GEOIP_CFLAGS) \
|
||||
$(PCRE_CPPFLAGS) \
|
||||
$(YAJL_CFLAGS)
|
||||
|
@ -262,6 +262,10 @@ int main(int argc, char **argv) {
|
||||
ModSecurityTest<RegressionTest> test;
|
||||
ModSecurityTestResults<RegressionTest> results;
|
||||
|
||||
#ifdef NO_LOGS
|
||||
std::cout << "Test utility cannot work without logging support." \
|
||||
<< std::endl;
|
||||
#else
|
||||
test.cmd_options(argc, argv);
|
||||
std::cout << test.header();
|
||||
|
||||
@ -324,6 +328,6 @@ int main(int argc, char **argv) {
|
||||
}
|
||||
delete vec;
|
||||
}
|
||||
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user