@ -71,6 +71,7 @@ my @modules = (
[http_postgres => 'ngx_postgres', 'disabled'],
[http_srcache => 'srcache-nginx-module'],
[http_lua => 'ngx_lua'],
[http_lua_upstream => 'ngx_lua_upstream'],
[http_headers_more => 'headers-more-nginx-module'],
[http_array_var => 'array-var-nginx-module'],
[http_memc => 'memc-nginx-module'],
@ -188,6 +189,9 @@ for my $opt (@ARGV) {
} elsif ($opt eq '--without-lua_resty_core') {
$resty_opts{no_lua_resty_core} = 1;
} elsif ($opt eq '--without-lua_resty_upstream_healthcheck') {
$resty_opts{no_lua_resty_upstream_healthcheck} = 1;
} elsif ($opt eq '--without-lua_rds_parser') {
$resty_opts{no_lua_rds_parser} = 1;
@ -400,6 +404,7 @@ _END_
if (!$opts->{lua}
&& !$opts->{lua_path}
&& !$opts->{no_http_lua}
&& !$opts->{no_http_lua_upstream}
&& !$opts->{luajit_path})
{
$opts->{luajit} = 1;
@ -665,25 +670,27 @@ _EOC_
}
my $extra_opts = " DESTDIR=\$(DESTDIR) LUA_INCLUDE_DIR=$lua_inc " .
"LUA_LIB _DIR=$lualib_prefix";
"LUA_CMODULE_DIR=$lualib_prefix LUA_MODULE _DIR=$lualib_prefix";
if ($on_solaris) {
$extra_opts .= " INSTALL=$root_dir/build/install";
# $extra_opts .= " INSTALL=$root_dir/build/install";
if ($opts->{debug}) {
$extra_opts .= " CFLAGS=\"-g -O -Wall -pedantic -DMISSING _ISINF\"";
$extra_opts .= " CJSON_CFLAGS=\"-g -O -fpic -DUSE_INTERNAL _ISINF\"";
} else {
$extra_opts .= " CFLAGS=\"-g -O3 -Wall -pedantic -DMISSING _ISINF\"";
$extra_opts .= " CJSON_CFLAGS=\"-g -fpic -DUSE_INTERNAL _ISINF\"";
}
} else {
if ($opts->{debug}) {
$extra_opts .= " CFLAGS=\"-g -O -Wall -pedantic\"";
$extra_opts .= " CJSON_CFLAGS=\"-g -O -fpic\"";
} else {
$extra_opts .= " CJSON_CFLAGS=\"-g -fpic\"";
}
}
if ($platform eq 'macosx') {
$extra_opts .= " LDFLAGS='-bundle -undefined dynamic_lookup'";
$extra_opts .= " CJSON_ LDFLAGS='-bundle -undefined dynamic_lookup'";
}
if (defined $cc) {
@ -794,10 +801,11 @@ _EOC_
}
for my $key (qw(dns memcached redis mysql string upload websocket
lock core))
lock core upstream_healthcheck ))
{
unless ($opts->{"no_lua_resty_$key"}) {
my $name = "lua-resty-$key";
(my $key2 = $key) =~ s/_/-/g;
my $name = "lua-resty-$key2";
my $dir = auto_complete $name;
if (!defined $dir) {
die "No $name found";