THRIFT-2914 explicit dependency to Lua5.2 fails on some systems
Client: Lua
Patch: Nobuaki Sukegawa <nsukeg@gmail.com>
This closes #373
diff --git a/configure.ac b/configure.ac
index 54eb1e4..44d7d6e 100755
--- a/configure.ac
+++ b/configure.ac
@@ -246,9 +246,10 @@
AX_THRIFT_LIB(lua, [Lua], yes)
have_lua=no
if test "$with_lua" = "yes"; then
- AC_PATH_PROGS([LUA], [lua])
- if test "x$LUA" != "x"; then
- have_lua="yes"
+ AX_PROG_LUA(5.2,, have_lua="yes", have_lua="no")
+ if test "$have_lua" = "yes"; then
+ AX_LUA_HEADERS(, have_lua="no")
+ AX_LUA_LIBS(, have_lua="no")
fi
fi
AM_CONDITIONAL(WITH_LUA, [test "$have_lua" = "yes"])