Thanks Kelner. That was the answer I was searching for. With that this patch should allow both the existing lua detection (that seems to be working on whatever linux taylor is using, as he was the one that added this check when we went to using the platform headers on linux) and the debian based linuxes.
Index: configure.ac
===================================================================
--- configure.ac (revision 6028)
+++ configure.ac (working copy)
@@ -397,7 +397,12 @@
FS2_LDFLAGS=$FS2_LDFLAGS" $PNG_LIBS"
dnl LUA
-PKG_CHECK_MODULES([LUA], [lua >= 5.1.3])
+## Checking for lua.pc and if that fails lua5.1.pc
+PKG_CHECK_MODULES(
+ [LUA],
+ [lua >= 5.1.3],
+ [], ## do nothing special
+ [PKG_CHECK_MODULES([LUA], [lua5.1 >= 5.1.3], [])])
D_CFLAGS=$D_CFLAGS" $LUA_CFLAGS"
FS2_LDFLAGS=$FS2_LDFLAGS" $LUA_LIBS"