diff options
Diffstat (limited to 'net-mail/dovecot/files/dovecot-2.3.11.3-autoconf-lua-version.patch')
-rw-r--r-- | net-mail/dovecot/files/dovecot-2.3.11.3-autoconf-lua-version.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/net-mail/dovecot/files/dovecot-2.3.11.3-autoconf-lua-version.patch b/net-mail/dovecot/files/dovecot-2.3.11.3-autoconf-lua-version.patch new file mode 100644 index 000000000000..5572271929ef --- /dev/null +++ b/net-mail/dovecot/files/dovecot-2.3.11.3-autoconf-lua-version.patch @@ -0,0 +1,17 @@ +--- a/m4/want_lua.m4 ++++ b/m4/want_lua.m4 +@@ -13,13 +13,12 @@ + AC_MSG_RESULT([$with_lua]) + + AS_IF([test "x$with_lua" != "xno"], +- [for LUAPC in lua5.3 lua-5.3 lua53 lua5.2 lua-5.2 lua52 lua5.1 lua-5.1 lua51 lua; do ++ [ + PKG_CHECK_MODULES([LUA], $LUAPC >= 5.1, [ + AC_DEFINE([HAVE_LUA], [1], [Define to 1 if you have lua]) + with_lua=yes + ], [LUAPC=""]) # otherwise pkg_check will fail + if test "x$LUA_LIBS" != "x"; then break; fi +- done + ]) + + AS_IF([test "x$with_lua" = "xyes"], [ |