1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 12:41: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

7
configure vendored
View File

@@ -6803,8 +6803,9 @@ ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua version >= 502" >&5 # We need Lua 5.2 exactly
$as_echo_n "checking for lua version >= 502... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua version == 502" >&5
$as_echo_n "checking for lua version == 502... " >&6; }
if test "$cross_compiling" = yes; then : if test "$cross_compiling" = yes; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling -- assuming yes" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling -- assuming yes" >&5
@@ -6816,7 +6817,7 @@ else
int int
main () main ()
{ {
if(LUA_VERSION_NUM < 502) return 1; if(LUA_VERSION_NUM != 502) return 1;
; ;
return 0; return 0;
} }

View File

@@ -642,10 +642,11 @@ else
) )
AC_LANG_PUSH(C++) 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( AC_RUN_IFELSE([ AC_LANG_PROGRAM(
[[#include <lua.h>]], [[#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) have_lua=yes, have_lua=no, AC_MSG_RESULT(cross-compiling -- assuming yes); have_lua=yes)
AC_LANG_POP(C++) AC_LANG_POP(C++)