21 lines
714 B
Diff
21 lines
714 B
Diff
|
--- configure.in
|
||
|
+++ configure.in
|
||
|
@@ -36,6 +36,8 @@
|
||
|
LUA_CFLAGS="`[$LUACONFIG --include]`"
|
||
|
LUA_LIBS="`[$LUACONFIG --static]`"
|
||
|
else dnl ...otherwise, attempt to guess
|
||
|
+ PKG_CHECK_MODULES(LUA,lua >= 5.1,LUA_FOUND=yes,LUA_FOUND=no)
|
||
|
+ if test "$LUA_FOUND" = no ; then
|
||
|
LUA_CFLAGS=""
|
||
|
LUA_LIBS="-ldl"
|
||
|
AC_CHECK_LIB(lua, lua_setfenv, LUA_LIBS="$LUA_LIBS -llua",
|
||
|
@@ -51,7 +53,8 @@
|
||
|
[AC_CHECK_LIB(lualib5.0, luaopen_base, LUA_LIBS="$LUA_LIBS -llualib5.0",
|
||
|
[AC_MSG_ERROR([*** Lualib5 is required.
|
||
|
You can download lua from http://www.lua.org])],
|
||
|
$LUA_LIBS)], $LUA_LIBS)], $LUA_LIBS)
|
||
|
+ fi
|
||
|
fi
|
||
|
fi
|
||
|
AC_SUBST(LUA_CFLAGS)
|