summaryrefslogtreecommitdiff
path: root/src/luaconf.h.in
diff options
context:
space:
mode:
authorPeter Drahoš <drahosp@gmail.com>2011-03-20 18:13:13 +0100
committerPeter Drahoš <drahosp@gmail.com>2011-03-20 18:13:13 +0100
commit7bf3f1411507859e51d62d285f777938780d42e7 (patch)
tree2d602e2f5114d20dbf158e6633116ad9cd7dfbec /src/luaconf.h.in
parent6ea5c6d55dfbc43ab581f8032cacd4ccea82a754 (diff)
downloadlua-7bf3f1411507859e51d62d285f777938780d42e7.tar.gz
Updated install defaults. Now only LUA_ROOT needs to be changed LUA_CDIR and LUA_LDIR are now automated
Diffstat (limited to 'src/luaconf.h.in')
-rw-r--r--src/luaconf.h.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/luaconf.h.in b/src/luaconf.h.in
index 1e7c39a..027691d 100644
--- a/src/luaconf.h.in
+++ b/src/luaconf.h.in
@@ -63,11 +63,13 @@
** Any exclamation mark ('!') in the path is replaced by the
** path of the directory of the executable file of the current process.
*/
+#cmakedefine LUA_MODULE_SUFFIX "@LUA_MODULE_SUFFIX@"
#cmakedefine LUA_ROOT "@LUA_ROOT@"
#cmakedefine LUA_LDIR "@LUA_LDIR@"
#cmakedefine LUA_CDIR "@LUA_CDIR@"
-#cmakedefine LUA_PATH_DEFAULT "@LUA_PATH_DEFAULT@"
-#cmakedefine LUA_CPATH_DEFAULT "@LUA_CPATH_DEFAULT@"
+
+#define LUA_PATH_DEFAULT "./?.lua;" LUA_ROOT "/" LUA_LDIR "/?.lua;" LUA_ROOT "/" LUA_LDIR "/?/init.lua"
+#define LUA_CPATH_DEFAULT "./?" LUA_MODULE_SUFFIX ";" LUA_ROOT "/" LUA_CDIR "/?" LUA_MODULE_SUFFIX ";" LUA_ROOT "/" LUA_CDIR "/loadall" LUA_MODULE_SUFFIX
/*
@@ LUA_DIRSEP is the directory separator (for submodules).