mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 03:34:29 +03:00
Adds MODSEC_NO_LOGS option to be part of the configure
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user