Skip to content

Commit

Permalink
Report correct chosen lua
Browse files Browse the repository at this point in the history
  • Loading branch information
cmouse authored and mind04 committed Jan 19, 2015
1 parent dd8853c commit 920f987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion m4/pdns_with_lua.m4
Expand Up @@ -8,12 +8,12 @@ AC_DEFUN([PDNS_WITH_LUA],[
AS_IF([test "x$with_lua" != "xno"],[
AS_IF([test "x$with_lua" = "xyes" -o "x$with_lua" = "xauto"],
[for LUAPC in lua5.2 lua-5.2 lua5.1 lua-5.1 lua; do
if test "x$LUA_LIBS" != "x"; then break; fi
PKG_CHECK_MODULES([LUA], $LUAPC >= 5.1, [
AC_DEFINE([HAVE_LUA], [1], [liblua])
AC_DEFINE([HAVE_LUA_H], [1], [lua.h])
with_lua=yes
], [LUAPC=""]) # otherwise pkg_check will fail
if test "x$LUA_LIBS" != "x"; then break; fi
done
],
[LUAPC="$with_lua"
Expand Down

0 comments on commit 920f987

Please sign in to comment.