All pastes #2056286 Raw Edit

Someone

public text v1 · immutable
#2056286 ·published 2011-05-10 15:18 UTC
rendered paste body
diff --git a/autoconf/m4/lua.m4 b/autoconf/m4/lua.m4
index e66c2e8..7231649 100755
--- a/autoconf/m4/lua.m4
+++ b/autoconf/m4/lua.m4
@@ -53,6 +53,17 @@ if test "$LUA_MISSING" = "yes"; then
 			fi
 		fi
 	fi
+	
+	# Gentoo based test, and probably a basic last-hope
+	if test "$LUA_MISSING" = "yes"; then
+		if test -f /usr/include/lua.h; then
+			AC_CHECK_LIB( lua, luaL_newstate, [
+					LUA_LIBS="-L/usr/lib -llua"
+					LUA_CFLAGS="-I/usr/include"
+					LUA_MISSING="no"
+				])
+		fi
+	fi
 
 	if test "$LUA_MISSING" = "yes"; then
 		echo