---- vlc-config.in.in.orig 2004-10-14 12:37:30.795197390 +0200
-+++ vlc-config.in.in 2004-10-14 12:38:42.448875646 +0200
-@@ -14,10 +14,10 @@
- builtins="@BUILTINS@"
+--- 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([${LUA_PKG_ERRORS}, trying lua 5.1 instead])
- cppflags=""
--cflags=""
-+cflags="-I/usr/include/ncurses"
- cxxflags=""
- objcflags=""
--ldflags=""
-+ldflags="-lpostproc"
-
- cflags_tuning="@CFLAGS_TUNING@"
- cflags_optim="@CFLAGS_OPTIM@"
+- 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.])
+ ])