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:
7
configure
vendored
7
configure
vendored
@@ -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_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
||||
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua version >= 502" >&5
|
||||
$as_echo_n "checking for lua version >= 502... " >&6; }
|
||||
# We need Lua 5.2 exactly
|
||||
{ $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 :
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling -- assuming yes" >&5
|
||||
@@ -6816,7 +6817,7 @@ else
|
||||
int
|
||||
main ()
|
||||
{
|
||||
if(LUA_VERSION_NUM < 502) return 1;
|
||||
if(LUA_VERSION_NUM != 502) return 1;
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -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++)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user