1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Check for Lua 5.2 instead of Lua >=5.2. Closes #259

This commit is contained in:
dmiller
2016-01-07 05:45:47 +00:00
parent b2d67c470f
commit bc3ece44c9
2 changed files with 7 additions and 5 deletions

View File

@@ -642,10 +642,11 @@ else
)
AC_LANG_PUSH(C++)
AC_MSG_CHECKING([for lua version >= 502])
# We need Lua 5.2 exactly
AC_MSG_CHECKING([for lua version == 502])
AC_RUN_IFELSE([ AC_LANG_PROGRAM(
[[#include <lua.h>]],
[[if(LUA_VERSION_NUM < 502) return 1;]])],
[[if(LUA_VERSION_NUM != 502) return 1;]])],
have_lua=yes, have_lua=no, AC_MSG_RESULT(cross-compiling -- assuming yes); have_lua=yes)
AC_LANG_POP(C++)