config/lua: Cross-compiling support

This commit guards the run-time check for a Lua integer so that it no
longer attempts execution in a cross-compilation environment.
pull/5356/head
Jeff Lucovsky 5 years ago committed by Victor Julien
parent 3e8db21ef3
commit 5c725d5050

@ -2261,7 +2261,7 @@ return 0;
AM_CONDITIONAL([HAVE_LUA], [test "x$enable_lua" != "xno"])
# If Lua is enabled, test the integer size.
if test "x$enable_lua" = "xyes"; then
if test "x$enable_lua" = "xyes" -a "$cross_compiling" != "yes"; then
TMPLIBS="$LIBS"
LIBS=""

Loading…
Cancel
Save