Configure: actually disable Lua on systems with liblua5.1

In particular, on CentOS 7.3.1611 building libmodsecurity with
default configure options ends up with failure while compiling
src/engine/lua.cc, while config.log states that Lua was disabled.
This commit is contained in:
Andrei Belov 2017-12-26 16:04:23 +03:00
parent c1cd668acb
commit f4a05b6e1f
No known key found for this signature in database
GPG Key ID: 1465F6CF06C1F0CD

View File

@ -116,6 +116,10 @@ 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)