1
0
Fork 0

[configure.ac] lua compilation fix

This commit is contained in:
Witold Filipczyk 2021-12-04 19:06:51 +01:00
parent 68f5007252
commit 12d36f3ec9
1 changed files with 8 additions and 1 deletions

View File

@ -1005,9 +1005,16 @@ if test -n "$luapkg" && $PKG_CONFIG $pkg_config_static "$luapkg"; then
LIBS="$LUA_LIBS $LIBS_X"
# Check that it is a compatible Lua version
AC_LINK_IFELSE([AC_LANG_PROGRAM([[ #include <lauxlib.h>]
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
#ifdef __cplusplus
extern "C" {
#endif
#include <lauxlib.h>]
#include <lua.h>
#include <lualib.h>
#ifdef __cplusplus
}
#endif
], [[lua_State *L = luaL_newstate();
luaL_openlibs(L);
lua_pushboolean(L, 1);