]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-lua: Build test-dict-lua only with Lua 5.3+
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Fri, 17 Sep 2021 09:26:35 +0000 (12:26 +0300)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Fri, 17 Sep 2021 09:26:35 +0000 (12:26 +0300)
Fixes building with Lua 5.1

src/lib-lua/Makefile.am

index 3d92c3194d35af76fc144b69cc5f6b947bf2cc2e..20ce3113f09f55b531a863623488acc29b35efa9 100644 (file)
@@ -15,9 +15,12 @@ libdovecot_lua_la_SOURCES = \
        dlua-table.c \
        dlua-thread.c
 
+test_programs = test-lua
+
 LIBDICT_LUA=
 if DLUA_WITH_YIELDS
 LIBDICT_LUA += ../lib-dict/libdict_lua.la
+test_programs += test-dict-lua
 endif
 
 # Note: the only things this lib should depend on are libdovecot and lua.
@@ -39,8 +42,6 @@ headers = \
 pkginc_libdir=$(pkgincludedir)
 pkginc_lib_HEADERS = $(headers)
 
-test_programs = test-lua test-dict-lua
-
 noinst_PROGRAMS = $(test_programs)
 
 test_libs =\