mirror of
https://github.com/openresty/openresty.git
synced 2024-10-13 00:29:41 +00:00
support to add relative path module in configure
This commit is contained in:
parent
1a91ab941c
commit
35afee967e
19
util/configure
vendored
19
util/configure
vendored
@ -212,6 +212,25 @@ for my $opt (@ARGV) {
|
|||||||
} elsif ($opt eq '--without-http_ssl_module') {
|
} elsif ($opt eq '--without-http_ssl_module') {
|
||||||
$resty_opts{no_http_ssl} = 1;
|
$resty_opts{no_http_ssl} = 1;
|
||||||
|
|
||||||
|
} elsif ($opt =~ /^--add-module=(.*)/) {
|
||||||
|
|
||||||
|
my $mod_path=$1;
|
||||||
|
my $path;
|
||||||
|
my $new_opt;
|
||||||
|
|
||||||
|
if ($mod_path =~ /^\//) {
|
||||||
|
#absolute path
|
||||||
|
$path = $mod_path;
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
#relative path
|
||||||
|
$path = "$root_dir/$mod_path";
|
||||||
|
}
|
||||||
|
|
||||||
|
$new_opt = "--add-module=$path";
|
||||||
|
|
||||||
|
push @ngx_opts, $new_opt;
|
||||||
|
|
||||||
} elsif ($opt =~ /^--\w.*/) {
|
} elsif ($opt =~ /^--\w.*/) {
|
||||||
push @ngx_opts, $opt;
|
push @ngx_opts, $opt;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user