lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On Thu, Aug 4, 2011 at 11:14 AM, Jim Whitehead II <> wrote:
I previously reported this for Lua-5.1, but I'd like to reiterate it
for Lua-5.2 if possible before that version is released. I quite
frequently script the installation of Lua in a non-global environment,
sandboxing it to a project directory. This works fine, I can specify
INSTALL_TOP on the command line, but the path /usr/local is still
hardcoded in luaconf.h and there's no way to overwrite it without
editing the file directly.

--- luaconf_orig.h      2011-08-04 16:02:16.000000000 +0100
+++ luaconf.h   2011-08-04 16:03:15.000000000 +0100
@@ -99,7 +99,9 @@
 #else                  /* }{ */

+#ifndef LUA_ROOT
 #define LUA_ROOT       "/usr/local/"
 #define LUA_LDIR       LUA_ROOT "share/lua/" LUA_VDIR
 #define LUA_CDIR       LUA_ROOT "lib/lua/" LUA_VDIR
 #define LUA_PATH_DEFAULT  \

This would allow me to define LUA_ROOT on the command line and invoke
make in the src directory. I'm not tied to this particular solution,
but I would love to be able to specify a custom value for LUA_ROOT
without needing to alter luaconf.h.

+1 I think would be a nice addition