Extends [#1233](https://github.com/geany/geany-plugins/pull/1233) to add support for Lua 5.1 and LuaJIT by adding compatibility functions/defines. The build script is fixed to not ignore the `--with-lua-pkg` option and to recognize Lua variants: lua, lua53, lua54, lua52, luajit, lua51 (currently in this order). Systems that use a different basename will have to explicitly specify the name, eg lua5.1 or lua-5.1, during configure. To change variants, reconfigure and rebuild. ``` ./configure --with-lua-pkg=[lua] make -C geanylua clean make -C geanylua ```
Supercedes #1231, #1233, #1235. Resolves #1228, #1133. You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany-plugins/pull/1238
-- Commit Summary --
* GeanyLua: Use luaL_Reg instead of luaL_reg * GeanyLua: Don't ignore with-lua-pkg configure option * GeanyLua: Add support for Lua 5.2+ * GeanyLua: Add compatibility for Lua 5.1 and LuaJIT
-- File Changes --
M build/geanylua.m4 (28) M geanylua/Makefile.am (2) M geanylua/glspi.h (2) M geanylua/glspi_app.c (4) A geanylua/glspi_compat.c (55) A geanylua/glspi_compat.h (28) M geanylua/glspi_dlg.c (6) M geanylua/glspi_doc.c (4) M geanylua/glspi_init.c (4) M geanylua/glspi_kfile.c (10) M geanylua/glspi_run.c (30) M geanylua/glspi_sci.c (6) M geanylua/gsdlg_lua.c (11)
-- Patch Links --
https://github.com/geany/geany-plugins/pull/1238.patch https://github.com/geany/geany-plugins/pull/1238.diff