]> git.ipfire.org Git - thirdparty/lxc.git/commit
lua: respect configure's --prefix
authorNatanael Copa <ncopa@alpinelinux.org>
Tue, 4 Mar 2014 09:50:27 +0000 (09:50 +0000)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 4 Mar 2014 15:59:08 +0000 (10:59 -0500)
commit94863addaec3fabeafda9ac7df091a00416af013
treee0f5d6f37932611e247ec3d25a35031673b5612f
parent47c50f7a6206034cc0c1cc10d652384613ef9b23
lua: respect configure's --prefix

Install lua files under the confiugred --prefix rather than use the
pkg-config's variables LUA_INSTALL_[CL]MOD.

Users will likely want user --prefix while packagers will use DESTDIR.
Set the default to $datadir/lua/$LUA_VERSION for arch independent
lua modules and $libdir/lua/$LUA_VERSION for arch dependant .so module.

This should work for most distros. If it does not, then packagers
can still do:

  make install lualibdir=$(pkg-config lua --variable=INSTALL_CMOD) ...

This fixes #169

Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
Acked-by: Dwight Engen <dwight.engen@oracle.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
configure.ac
src/lua-lxc/Makefile.am