mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 03:34:29 +03:00
Implement support for Lua 5.1
This commit is contained in:
committed by
Victor Hora
parent
eed6b5f86d
commit
dee9898449
18
build/lua.m4
18
build/lua.m4
@@ -6,7 +6,7 @@ AC_DEFUN([CHECK_LUA],
|
||||
[dnl
|
||||
|
||||
# Possible names for the lua library/package (pkg-config)
|
||||
LUA_POSSIBLE_LIB_NAMES="lua lua53 lua5.3 lua52 lua5.2"
|
||||
LUA_POSSIBLE_LIB_NAMES="lua lua53 lua5.3 lua52 lua5.2 lua51 lua5.1"
|
||||
|
||||
# Possible extensions for the library
|
||||
LUA_POSSIBLE_EXTENSIONS="so so0 la sl dll dylib so.0.0.0"
|
||||
@@ -88,10 +88,6 @@ if test -z "${LUA_CFLAGS}"; then
|
||||
LUA_FOUND=-1
|
||||
fi
|
||||
else
|
||||
if test "${lua_5_1}" = 1 && test "x${LUA_MANDATORY}" == "xyes" ; then
|
||||
AC_MSG_ERROR([LUA was explicitly referenced but LUA v5.1 was found and it is not currently supported on libModSecurity. LUA_VERSION: ${LUA_VERSION}])
|
||||
LUA_FOUND=-1
|
||||
fi
|
||||
if test -z "${LUA_MANDATORY}" || test "x${LUA_MANDATORY}" == "xno"; then
|
||||
LUA_FOUND=1
|
||||
AC_MSG_NOTICE([using LUA ${LUA_LDADD}])
|
||||
@@ -113,15 +109,6 @@ else
|
||||
fi
|
||||
fi
|
||||
|
||||
if test "${lua_5_1}" = 1 ; then
|
||||
AC_MSG_NOTICE([LUA 5.1 was found and it is not currently supported on libModSecurity. LUA_VERSION: ${LUA_VERSION}. LUA build disabled.])
|
||||
LUA_FOUND=2
|
||||
LUA_CFLAGS=
|
||||
LUA_DISPLAY=
|
||||
LUA_LDADD=
|
||||
LUA_LDFLAGS=
|
||||
fi
|
||||
|
||||
AC_SUBST(LUA_FOUND)
|
||||
|
||||
]) # AC_DEFUN [CHECK_LUA]
|
||||
@@ -179,6 +166,9 @@ AC_DEFUN([CHECK_FOR_LUA_AT], [
|
||||
elif test -e "${path}/include/lua5.2/lua.h"; then
|
||||
lua_inc_path="${path}/include/lua5.2"
|
||||
LUA_VERSION=502
|
||||
elif test -e "${path}/include/lua5.1/lua.h"; then
|
||||
lua_inc_path="${path}/include/lua5.1"
|
||||
LUA_VERSION=501
|
||||
fi
|
||||
|
||||
if test -n "${lua_lib_path}"; then
|
||||
|
Reference in New Issue
Block a user