From: Klaus Ethgen Date: Fri, 24 May 2019 08:04:42 +0000 (+0100) Subject: Working check for lua X-Git-Tag: v1.5~15 X-Git-Url: http://geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=commitdiff_plain;h=40c858bd64fc0b832f672cd28b5cb9c64f941094 Working check for lua This was not working on gentoo as gento use slotted packages instead of versioned package namens. --- diff --git a/configure.ac b/configure.ac index 941d6107..99b3e2d1 100644 --- a/configure.ac +++ b/configure.ac @@ -529,8 +529,15 @@ if test "x${liblua}" != "xno"; then AC_DEFINE(HAVE_LUA, 1, [define to enable lua support]) ], [ - HAVE_LUA=no - AC_MSG_WARN([$LUA_PKG_ERRORS]) + PKG_CHECK_MODULES(LUA, lua >= 5.1, + [ + HAVE_LUA=yes + AC_DEFINE(HAVE_LUA, 1, [define to enable lua support]) + ], + [ + HAVE_LUA=no + AC_MSG_WARN([$LUA_PKG_ERRORS]) + ]) ]) else HAVE_LUA=disabled