---- vlc-0.9.3/configure.ac.orig 2008-09-25 20:23:10.000000000 +0200
-+++ vlc-0.9.3/configure.ac 2008-10-02 21:57:13.000000000 +0200
-@@ -1651,7 +1651,7 @@
- plugins (default enabled)]))
- if test "${enable_lua}" != "no"
- then
-- PKG_CHECK_MODULES(LUA, lua5.1,
-+ PKG_CHECK_MODULES(LUA, lua51,
- [ have_lua=yes ],
+--- vlc-1.1.1/configure.ac~ 2010-07-19 23:21:46.000000000 +0200
++++ vlc-1.1.1/configure.ac 2010-07-22 09:14:02.123884890 +0200
+@@ -1511,7 +1511,7 @@
[
- AC_MSG_WARN([lua5.1 not found, trying lua >= 5.1 instead])
-@@ -3111,7 +3111,7 @@
- VLC_SAVE_FLAGS
- CPPFLAGS="${CPPFLAGS} ${POSTPROC_CFLAGS}"
- CFLAGS="${CFLAGS} ${POSTPROC_CFLAGS}"
-- AC_CHECK_HEADERS(libpostproc/postproc.h postproc/postprocess.h)
-+ AC_CHECK_HEADERS(libpostproc/postproc.h libpostproc/postprocess.h)
- VLC_ADD_PLUGIN([postproc])
- VLC_ADD_LIBS([postproc],[$POSTPROC_LIBS])
- VLC_ADD_CFLAGS([postproc],[$POSTPROC_CFLAGS])
+ AC_MSG_WARN([${LUA_PKG_ERRORS}, trying lua 5.1 instead])
+
+- PKG_CHECK_MODULES(LUA, lua5.1,
++ PKG_CHECK_MODULES(LUA, lua51,
+ [ have_lua=yes ],
+ [
+ AC_MSG_WARN([${LUA_PKG_ERRORS}, trying lua >= 5.1 instead])
+@@ -1644,7 +1644,7 @@
+ AC_MSG_ERROR([Could not find lua. Lua is needed for some interfaces (rc, telnet, http) as well as many other custom scripts. Use --disable-lua to ignore this error.])
+ fi
+ AC_ARG_VAR([LUAC], [LUA byte compiler])
+- AC_PATH_PROGS(LUAC,[${LUAC} luac], [false])
++ AC_PATH_PROGS(LUAC,[${LUAC} luac51], [false])
+ AS_IF([test "${LUAC}" = "false"], [
+ AC_MSG_ERROR([Could not find the LUA byte compiler.])
+ ])