From b8fea9bcb14ea10e618c539c400139dd43d90e02 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 5 Jan 2026 15:01:19 +0100 Subject: support lua 5.5... ... and replace the functions for unsigned integers with their signed equivalents, using a type cast where needed. Actually the functions for unsigned integers were deprecated since lua 5.3... https://www.lua.org/manual/5.3/manual.html#8.3 Also lua_newstate() requires a third argument since 5.5... https://www.lua.org/manual/5.5/manual.html#8.3 Finally the key in a for loop is now const, so use a temporary variable instead. --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 1842e23..5760fe6 100755 --- a/configure +++ b/configure @@ -436,7 +436,7 @@ int main(int argc, char *argv[]) { } EOF - for liblua in lua lua5.4 lua5.3 lua5.2 lua-5.4 lua-5.3 lua-5.2 lua54 lua53 lua52; do + for liblua in lua lua5.5 lua5.4 lua5.3 lua5.2 lua-5.5 lua-5.4 lua-5.3 lua-5.2 lua55 lua54 lua53 lua52; do printf " checking for %s... " "$liblua" if test "$have_pkgconfig" = "yes" ; then @@ -490,7 +490,7 @@ int main(int argc, char *argv[]) { } EOF - for liblpeg in lpeg lua5.4-lpeg lua5.3-lpeg lua5.2-lpeg; do + for liblpeg in lpeg lua5.5-lpeg lua5.4-lpeg lua5.3-lpeg lua5.2-lpeg; do printf " checking for static %s... " "$liblpeg" if test "$have_pkgconfig" = "yes" ; then -- cgit v1.2.3