From: Quentin Young Date: Tue, 23 Mar 2021 19:20:38 +0000 (+0000) Subject: configure.ac: better lua detection X-Git-Tag: base_8.0~231^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=428df07cd5348c416f3981efcef0383cb177a9bf;p=matthieu%2Ffrr.git configure.ac: better lua detection Make sure to constrain the Lua autoconf search to Lua 5.3 interpreter and libraries. Signed-off-by: Quentin Young --- diff --git a/configure.ac b/configure.ac index b034fab50c..19a619e951 100755 --- a/configure.ac +++ b/configure.ac @@ -288,11 +288,17 @@ if test "$enable_clang_coverage" = "yes"; then fi if test "$enable_scripting" = "yes"; then - AX_PROG_LUA([5.3]) - AX_LUA_HEADERS + AX_PROG_LUA([5.3], [5.4], [], [ + AC_MSG_ERROR([Lua 5.3 is required to build with Lua support. No other version is supported.]) + ]) + AX_LUA_HEADERS([], [ + AC_MSG_ERROR([Lua 5.3 headers are required to build with Lua support. No other version is supported.]) + ]) AX_LUA_LIBS([ - AC_DEFINE([HAVE_SCRIPTING], [1], [Have support for scripting]) - LIBS="$LIBS $LUA_LIB" + AC_DEFINE([HAVE_SCRIPTING], [1], [Have support for scripting]) + LIBS="$LIBS $LUA_LIB" + ], [ + AC_MSG_ERROR([Lua 5.3 libraries are required to build with Lua support. No other version is supported.]) ]) fi