Bug #29945 pkg-config check for lua doesn't work on debian

Submitted: 21 Jul 2007 5:17 Modified: 27 Jul 2007 18:49
Reporter: Monty Taylor Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Proxy: Core Severity:S3 (Non-critical)
Version: OS:Any
Assigned to: CPU Architecture:Any
Tags: Contribution

[21 Jul 2007 5:17] Monty Taylor
Description:
Debian installs lua v5.1 as lua5.1 with a symlink from lua and the pkg-config record is also lua5.1. So the pkg-config check in configure checks for lua and doesn't find it, even if it is, in fact, installed. 

How to repeat:
Try to run configure on a debian or ubuntu system. 

Suggested fix:
# Bazaar revision bundle v0.9
#
# message:
#   Fixed configure script for debian systems, which put lua into pkg-config as lua5.1 instead of lua. Not 100% happy with how this works...
#   
# committer: Monty Taylor <monty@inaugust.com>
# date: Fri 2007-07-20 22:09:34.881999969 -0700

=== modified file trunk/configure.in
--- trunk/configure.in
+++ trunk/configure.in
@@ -145,6 +145,11 @@
  PKG_CHECK_MODULES(LUA, $LUAPC >= 5.1, [
    AC_DEFINE([HAVE_LUA], [1], [liblua])
    AC_DEFINE([HAVE_LUA_H], [1], [lua.h])
+ ],[
+   PKG_CHECK_MODULES(LUA, lua5.1 >= 5.1, [
+     AC_DEFINE([HAVE_LUA], [1], [liblua])
+     AC_DEFINE([HAVE_LUA_H], [1], [lua.h])
+   ]) 
  ])
 
  AC_SUBST(LUA_CFLAGS)

# revision id: monty@inaugust.com-20070721050934-peod26ikl8n3997q
# sha1: 8662337a787efeb76c6501c0b1386e183fbb66bb
# inventory sha1: 6e9f732ac7124278cf8965b7e81554a59e842c7e
# parent ids:
#   svn-v3-none:73445669-8e33-0410-87ee-b77a43983475::124
# base id: svn-v3-none:73445669-8e33-0410-87ee-b77a43983475::124
# properties:
#   branch-nick: mysql-proxy
[24 Jul 2007 19:50] Jan Kneschke
It is documented in INSTALL to use:

$ ./configure --with-lua=lua5.1 

to pass in the .pc file name.

Automating it is fine and will simplify the run on Debian.
[27 Jul 2007 18:49] Monty Taylor
Committed a fix for this.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.039 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.