mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 11:16:33 +03:00
Moved api examples to "ext" dir and hooked them into autotools for building with "--enable-extentions".
Upgraded to autoconf 2.65.
This commit is contained in:
23
configure.ac
23
configure.ac
@@ -90,6 +90,26 @@ if test "$build_apache2_module" -eq 1; then
|
||||
fi
|
||||
|
||||
|
||||
# Extensions
|
||||
AC_ARG_ENABLE(extentions,
|
||||
AS_HELP_STRING([--enable-extentions],
|
||||
[Enable building extension.]),
|
||||
[
|
||||
if test "$enableval" != "no"; then
|
||||
build_extentions=1
|
||||
else
|
||||
build_extentions=0
|
||||
fi
|
||||
],
|
||||
[
|
||||
build_extentions=0
|
||||
])
|
||||
AM_CONDITIONAL([BUILD_extentions], [test "$build_extentions" -eq 1])
|
||||
if test "$build_extentions" -eq 1; then
|
||||
TOPLEVEL_SUBDIRS="$TOPLEVEL_SUBDIRS ext"
|
||||
fi
|
||||
|
||||
|
||||
# Mlogc
|
||||
AC_ARG_ENABLE(mlogc,
|
||||
AS_HELP_STRING([--disable-mlogc],
|
||||
@@ -498,6 +518,9 @@ AC_CONFIG_FILES([tools/Makefile])
|
||||
if test "$build_apache2_module" -ne 0; then
|
||||
AC_CONFIG_FILES([apache2/Makefile])
|
||||
fi
|
||||
if test "$build_extentions" -ne 0; then
|
||||
AC_CONFIG_FILES([ext/Makefile])
|
||||
fi
|
||||
AC_CONFIG_FILES([build/apxs-wrapper], [chmod +x build/apxs-wrapper])
|
||||
if test -e "$PERL"; then
|
||||
if test "$build_mlogc" -ne 0; then
|
||||
|
Reference in New Issue
Block a user