Skip to content

Commit

Permalink
fix missing "lua" pathname component in LUA_ELDIR, LUA_LDIR, LUA_CDIR
Browse files Browse the repository at this point in the history
  • Loading branch information
djerius committed Apr 27, 2015
1 parent ad10251 commit 14e72aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/luaconf.h.template.in
Expand Up @@ -100,9 +100,9 @@

#define LUA_VDIR "%LUA_VDIR%/"

#define LUA_ELDIR "%exec_datadir%/" LUA_VDIR
#define LUA_LDIR "%datadir%/" LUA_VDIR
#define LUA_CDIR "%libdir%/" LUA_VDIR
#define LUA_ELDIR "%exec_datadir%/lua/" LUA_VDIR
#define LUA_LDIR "%datadir%/lua/" LUA_VDIR
#define LUA_CDIR "%libdir%/lua/" LUA_VDIR

#if !defined(LUA_PATH_DEFAULT)

Expand Down
3 changes: 3 additions & 0 deletions test.configure/tests.bats
Expand Up @@ -19,6 +19,9 @@ LUA_CPATH_DEFAULT='"./[?].so;"\s+LUA_CDIR"[?].so;"\s+LUA_CDIR"loadall.so"'
subst_is LUA_PC "lua.pc"
define_is LUA_VDIR '"'"${LUA_V}/"'"'

define_like LUA_LDIR '^"/usr/local/share/lua/"'
define_like LUA_CDIR '^"/usr/local/lib/lua/"'

define_like LUA_PATH_DEFAULT "$LUA_PATH_DEFAULT"
define_like LUA_CPATH_DEFAULT "$LUA_CPATH_DEFAULT"

Expand Down

0 comments on commit 14e72aa

Please sign in to comment.