From: Ruben Kerkhof Date: Mon, 14 May 2018 20:54:34 +0000 (+0200) Subject: Look for more variants of liblua X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=ec4062feac1b0b315a0394d7bb6efdf1875fffe7;p=collectd.git Look for more variants of liblua So we pick up liblua automatically on OpenBSD. --- diff --git a/configure.ac b/configure.ac index f37d6dad..6876829d 100644 --- a/configure.ac +++ b/configure.ac @@ -3049,18 +3049,33 @@ else PKG_CHECK_MODULES([LUA], [lua5.3], [with_liblua="yes"], [ - PKG_CHECK_MODULES([LUA], [lua-5.2], + PKG_CHECK_MODULES([LUA], [lua53], [with_liblua="yes"], [ - PKG_CHECK_MODULES([LUA], [lua5.2], + PKG_CHECK_MODULES([LUA], [lua-5.2], [with_liblua="yes"], [ - PKG_CHECK_MODULES([LUA], [lua-5.1], + PKG_CHECK_MODULES([LUA], [lua5.2], [with_liblua="yes"], [ - PKG_CHECK_MODULES([LUA], [lua5.1], + PKG_CHECK_MODULES([LUA], [lua52], [with_liblua="yes"], - [with_liblua="no (pkg-config cannot find liblua)"] + [ + PKG_CHECK_MODULES([LUA], [lua-5.1], + [with_liblua="yes"], + [ + PKG_CHECK_MODULES([LUA], [lua5.1], + [with_liblua="yes"], + [ + PKG_CHECK_MODULES([LUA], [lua51], + [with_liblua="yes"], + [with_liblua="no (pkg-config cannot find liblua)"] + ) + ] + ) + ] + ) + ] ) ] )