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
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