mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-16 23:22:31 +00:00
chore(lua): Make LUA_DATADIR instead of PACKAGE_DATADIR
This commit is contained in:
+1
-1
@@ -284,7 +284,7 @@ AC_DEFUN([TORRENT_WITH_LUA], [
|
||||
AX_LUA_LIBS
|
||||
AX_LUA_HEADERS
|
||||
AC_DEFINE(HAVE_LUA, 1, Use LUA.)
|
||||
AC_DEFINE_UNQUOTED(PACKAGE_DATADIR, ["${prefix}/share/rtorrent"], Use LUA.)
|
||||
AC_DEFINE_UNQUOTED(LUA_DATADIR, ["${prefix}/share/rtorrent/lua"], Use LUA.)
|
||||
LIBS="$LIBS $LUA_LIB"
|
||||
CXXFLAGS="$CXXFLAGS $LUA_INCLUDE"
|
||||
fi
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@ namespace rpc {
|
||||
|
||||
const int LuaEngine::flag_string;
|
||||
const std::string LuaEngine::module_name = "rtorrent";
|
||||
const std::string LuaEngine::local_path = PACKAGE_DATADIR "/lua/?.lua;" PACKAGE_DATADIR "/lua/?/init.lua";
|
||||
const std::string LuaEngine::local_path = LUA_DATADIR "/?.lua;" LUA_DATADIR "/?/init.lua";
|
||||
|
||||
#ifdef HAVE_LUA
|
||||
|
||||
|
||||
Reference in New Issue
Block a user