From 6b57800e3b8836eefb39cb9f315faf6b35a8df3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 31 May 2020 11:31:46 +0200 Subject: [PATCH 2/3] configure.ac: check for plain Lua first instead of lua5.1 Checking for lua with version 5.1 is required for systems with single version of Lua while lua5.1 is required for those providing multiple versions. --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index aec813cb..7421534a 100644 --- a/configure.ac +++ b/configure.ac @@ -23,7 +23,8 @@ AS_IF([test -n "$with_embed_busybox"], AC_DEFINE_UNQUOTED([BUSYBOX_EMBED], [$with_embed_busybox], [Embded Busybox]) ]) -PKG_CHECK_MODULES([LUA], [lua5.1]) +PKG_CHECK_MODULES([LUA], [lua >= 5.1 lua < 5.2],, + [PKG_CHECK_MODULES([LUA], [lua5.1])]) PKG_CHECK_MODULES([LIBEVENT], [libevent >= 2.0]) PKG_CHECK_MODULES([LIBARCHIVE], [libarchive]) PKG_CHECK_MODULES([LIBCURL], [libcurl]) -- 2.26.2