Bug #64244 lua libraries not detected correctly despite the configure.in detection code
Submitted: 6 Feb 2012 20:17 Modified: 9 Jan 2015 10:18
Reporter: Matteo Nastasi Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Proxy: Install/Config Severity:S3 (Non-critical)
Version:0.8 and trunk OS:Linux (Ubuntu 11.10)
Assigned to: CPU Architecture:Any
Tags: configure, Contribution, lua, pkg-config

[6 Feb 2012 20:17] Matteo Nastasi
Description:
Into configure.in there is a wrong check that inhibits the correct detection of lua5.1 into debian based sistems.

How to repeat:
running ./configure without explicit lua5.1 references into arguments

Suggested fix:
=== modified file 'configure.in'
--- configure.in	2010-10-28 11:58:51 +0000
+++ configure.in	2012-02-06 10:45:44 +0000
@@ -287,7 +287,7 @@
    AC_DEFINE([HAVE_LUA_H], [1], [lua.h])
   ],[
    AC_MSG_RESULT([... checked for Lua via pkg-config: $LUA_PKG_ERRORS. retrying with lua5.1])
-   if test x"$LUA_PKG_ERROR" != "x"; then
+   if test x"$LUA_PKG_ERRORS" != "x"; then
     PKG_CHECK_MODULES(LUA, lua5.1 >= 5.1, [
      AC_DEFINE([HAVE_LUA], [1], [liblua])
      AC_DEFINE([HAVE_LUA_H], [1], [lua.h])
[7 Feb 2012 4:54] Valeriy Kravchuk
Thank you for the problem report and patch contributed.