feature: bundled new Lua library, lua-resty-lrucache, which is also enabled by default.

This commit is contained in:
Yichun Zhang (agentzh) 2014-05-31 22:15:40 -07:00
parent 20ace16258
commit bc3cb9243f
2 changed files with 12 additions and 1 deletions

6
util/configure vendored
View File

@ -186,6 +186,9 @@ for my $opt (@ARGV) {
} elsif ($opt eq '--without-lua_resty_lock') {
$resty_opts{no_lua_resty_lock} = 1;
} elsif ($opt eq '--without-lua_resty_lrucache') {
$resty_opts{no_lua_resty_lrucache} = 1;
} elsif ($opt eq '--without-lua_resty_core') {
$resty_opts{no_lua_resty_core} = 1;
@ -801,7 +804,7 @@ _EOC_
}
for my $key (qw(dns memcached redis mysql string upload websocket
lock core upstream_healthcheck))
lock lrucache core upstream_healthcheck))
{
unless ($opts->{"no_lua_resty_$key"}) {
(my $key2 = $key) =~ s/_/-/g;
@ -928,6 +931,7 @@ _EOC_
--without-lua_resty_string disable the lua-resty-string library
--without-lua_resty_websocket disable the lua-resty-websocket library
--without-lua_resty_lock disable the lua-resty-lock library
--without-lua_resty_lrucache disable the lua-resty-lrucache library
--without-lua_resty_core disable the lua-resty-core library
--with-lua51 enable and build the bundled standard Lua 5.1 interpreter

View File

@ -538,6 +538,13 @@ mv openresty-lua-resty-lock-* lua-resty-lock-$ver || exit 1
#################################
ver=0.01
$root/util/get-tarball "https://github.com/openresty/lua-resty-lrucache/tarball/v$ver" -O "lua-resty-lrucache-$ver.tar.gz" || exit 1
tar -xzf lua-resty-lrucache-$ver.tar.gz || exit 1
mv openresty-lua-resty-lrucache-* lua-resty-lrucache-$ver || exit 1
#################################
ver=0.0.7
$root/util/get-tarball "https://github.com/openresty/lua-resty-core/tarball/v$ver" -O "lua-resty-core-$ver.tar.gz" || exit 1
tar -xzf lua-resty-core-$ver.tar.gz || exit 1