From 72c81f37b06d9cbd8edfa2b90929a793936a15fb Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sun, 16 Nov 2008 19:15:42 +0100 Subject: Added a raw check for liblua 5.1 to configure For when pkg-config files aren't available. They most often are not when Lua was installed manually, not sure if they come with the Lua distribution at all. --- configure.ac | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index d8ef919..6602a7a 100644 --- a/configure.ac +++ b/configure.ac @@ -97,8 +97,10 @@ AC_ARG_ENABLE( ) if test "$enable_lua_engine" = "yes"; then - PKG_CHECK_MODULES(LUA, [lua >= 5.1], , - [PKG_CHECK_MODULES(LUA, [lua5.1 >= 5.1])]) + PKG_CHECK_MODULES(LUA, [lua >= 5.2], , + [PKG_CHECK_MODULES(LUA, [lua5.1 >= 5.2], , + [AC_CHECK_LIB([lua5.1], [lua_newstate], , + AC_MSG_ERROR([ *** Unable to find liblua 5.1]))])]) CXXFLAGS="$CXXFLAGS $LUA_CFLAGS" LIBS="$LIBS $LUA_LIBS" fi -- cgit