From 68d81870dfffc35c2ae608e4bc287c5f32b7d711 Mon Sep 17 00:00:00 2001 From: Pavlov Konstantin Date: Tue, 15 May 2007 15:35:20 +0000 Subject: [PATCH] Fix liblua5.1 detection on non-debian system (e.g. mine) that doesn't have lua5.1.pc but do have lua.pc. Check for lua >= 5.1. --- configure.ac | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac index 222cd7f728..a9c2a744cc 100644 --- a/configure.ac +++ b/configure.ac @@ -1538,12 +1538,21 @@ AC_ARG_ENABLE(luaplaylist, if test "${enable_lua}" != "no" then PKG_CHECK_MODULES(LUA, lua5.1, - [ AC_DEFINE(HAVE_LUA, [], [Define if you have the lua library]) - VLC_ADD_PLUGINS([luaplaylist]) - VLC_ADD_LDFLAGS([luaplaylist],[$LUA_LIBS]) - VLC_ADD_CFLAGS([luaplaylist],[$LUA_CFLAGS]) - ], - [AC_MSG_WARN(lua 5.0 not found)]) + [ have_lua=yes ], + [ + AC_MSG_WARN([lua5.1 not found, trying lua >= 5.1 instead]) + PKG_CHECK_MODULES(LUA, lua >= 5.1, + [ have_lua=yes ], + [ + AC_MSG_WARN([lua >= 5.1 not found!]) + ]) + ]) + 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]) + VLC_ADD_CFLAGS([luaplaylist],[$LUA_CFLAGS]) + fi fi dnl -- GitLab