Commit bff94ff4 authored by Christophe Mutricy's avatar Christophe Mutricy

Lua configuration: Add a test for system with no .pc

		   Revert [20203]
parent 1b3d5283
......@@ -1560,10 +1560,18 @@ then
PKG_CHECK_MODULES(LUA, lua >= 5.1,
[ have_lua=yes ],
[
AC_MSG_WARN([lua >= 5.1 not found!])
have_lua=yes
AC_CHECK_HEADERS([lua.h lauxlib.h lualib.h],
[],
[ have_lua=no ] )
AC_CHECK_LIB( lua5.1 , luaL_newstate,
[],
[ have_lua=no
AC_MSG_WARN([lua >= 5.1 not found!])
])
])
])
if test "x${have_lua}" = "xyes" -o "x${enable_lua}" = "xyes"; then
if test "x${have_lua}" = "xyes" ; then
AC_DEFINE(HAVE_LUA, [], [Define if you have the lua library])
VLC_ADD_PLUGINS([luaplaylist])
VLC_ADD_LDFLAGS([luaplaylist],[$LUA_LIBS])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment