diff options
| author | Tom Callaway <spot@fedoraproject.org> | 2015-01-16 10:14:21 -0500 |
|---|---|---|
| committer | Tom Callaway <spot@fedoraproject.org> | 2015-01-16 10:14:21 -0500 |
| commit | 5ba464150dd161c5327216a92642dfe293efb68a (patch) | |
| tree | 5e197ca5ca6f8430954aeea87e52f8b5db9b66b3 /lua-5.3.0-configure-compat-module.patch | |
| parent | 0e340ec15043382c6c3f0eb81e04fe71019167de (diff) | |
| download | lua-5ba464150dd161c5327216a92642dfe293efb68a.tar.gz lua-5ba464150dd161c5327216a92642dfe293efb68a.tar.xz lua-5ba464150dd161c5327216a92642dfe293efb68a.zip | |
lua 5.3 (with 5.2 library as to not break the whole freaking universe while we rebuild things)
Diffstat (limited to 'lua-5.3.0-configure-compat-module.patch')
| -rw-r--r-- | lua-5.3.0-configure-compat-module.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/lua-5.3.0-configure-compat-module.patch b/lua-5.3.0-configure-compat-module.patch new file mode 100644 index 0000000..567a5fc --- /dev/null +++ b/lua-5.3.0-configure-compat-module.patch @@ -0,0 +1,34 @@ +diff -up lua-5.2.2/configure.ac.compat-module lua-5.2.2/configure.ac +--- lua-5.2.2/configure.ac.compat-module 2013-05-10 10:16:05.344137597 -0400 ++++ lua-5.2.2/configure.ac 2013-05-10 10:16:05.357137596 -0400 +@@ -11,6 +11,19 @@ AC_PROG_CC + AC_PROG_LIBTOOL + + AC_ARG_WITH( ++ [compat-module], ++ [AC_HELP_STRING([--with-compat-module], [Enable LUA_COMPAT_MODULE functions [default=no]])], ++ [use_compat_module=$withval], ++ [use_compat_module=no] ++) ++ ++COMPAT_DEFS="#undef LUA_COMPAT_ALL" ++if test "x$use_compat_module" == "xyes"; then ++ COMPAT_DEFS="#define LUA_COMPAT_5_1" ++fi ++AC_SUBST(COMPAT_DEFS) ++ ++AC_ARG_WITH( + [readline], + [AC_HELP_STRING([--with-readline], [Use readline for interpreter input [default=yes]])], + [use_readline=$withval], +diff -up lua-5.2.2/src/luaconf.h.template.in.compat-module lua-5.2.2/src/luaconf.h.template.in +--- lua-5.2.2/src/luaconf.h.template.in.compat-module 2013-05-10 10:25:42.586116963 -0400 ++++ lua-5.2.2/src/luaconf.h.template.in 2013-05-10 10:26:29.957115269 -0400 +@@ -15,6 +15,7 @@ + @LUA_DL_DEFS@ + @LUA_BUILD_AS_DLL_DEFS@ + @READLINE_DEFS@ ++@COMPAT_DEFS@ + + + /* |
