From: Rick L Bird Date: Thu, 28 Apr 2011 19:18:25 +0000 (-0400) Subject: Added lib checking for local directory lua checking X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=113441f6d353d3d3d5d6076b88c5bec3a8e62a18;p=cobramush.git Added lib checking for local directory lua checking IssueID #240 --- diff --git a/m4/ax_lua.m4 b/m4/ax_lua.m4 index e500855..41b19cd 100644 --- a/m4/ax_lua.m4 +++ b/m4/ax_lua.m4 @@ -120,7 +120,11 @@ dnl AC_DEFUN([AX_FIND_LUA],[ AC_CHECK_HEADER([lua.h], [ AC_SEARCH_LIBS([lua_call], [lua lua5.1], , AC_MSG_ERROR([CobraMUSH requires lua]))], [ - AX_CHECK_LOCAL_LUA()])]) + AX_CHECK_LOCAL_LUA() + LDFLAGS="$LDFLAGS $lua_ldflags" + CFLAGS="$CFLAGS -I$lua_h_path" + AC_SEARCH_LIBS([lua_call], [lua lua5.1], , AC_MSG_ERROR([CobraMUSH requires lua])) + ])]) dnl Helper function to declare extra options AC_DEFUN([_AX_LUA_OPTS],