From 7f0b18b05363219fbc7da724660d9f9852ff8310 Mon Sep 17 00:00:00 2001 From: tilghman Date: Wed, 22 Apr 2009 06:37:09 +0000 Subject: Merged revisions 189813 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ........ r189813 | tilghman | 2009-04-22 01:33:08 -0500 (Wed, 22 Apr 2009) | 3 lines Detect liblua on SuSE, and add libm for linking for Fedora. (Reported via the -dev list, Subject: Compiling Asterisk with LUA) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@189816 f38db490-d61c-443f-a65b-d21fe96a405b --- configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index ac129accc..49ae5174e 100644 --- a/configure.ac +++ b/configure.ac @@ -1469,7 +1469,9 @@ if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then [${PWLIB_INCLUDE}], [${PWLIB_LIB}]) fi -AST_EXT_LIB_CHECK([LUA], [lua5.1], [luaL_newstate], [lua5.1/lua.h]) +AST_EXT_LIB_CHECK([LUA], [lua5.1], [luaL_newstate], [lua5.1/lua.h], [-lm]) +# Some distributions (like SuSE) remove the 5.1 suffix. +AST_EXT_LIB_CHECK([LUA], [lua], [luaL_register], [lua.h], [-lm]) AST_EXT_LIB_CHECK([RADIUS], [radiusclient-ng], [rc_read_config], [radiusclient-ng.h]) -- cgit v1.2.3