bugfix: configure: spaces in the --with-cc option values resulted in errors.

This commit is contained in:
Yichun Zhang (agentzh) 2013-07-09 18:17:51 -07:00
parent cee1aca97f
commit 6f31d3b261
1 changed files with 6 additions and 6 deletions

12
util/configure vendored
View File

@ -128,7 +128,7 @@ for my $opt (@ARGV) {
if ($opt =~ /^--with-cc=(.+)/) {
$cc = $1;
push @ngx_opts, $opt;
push @ngx_opts, "'$opt'";
next;
}
@ -536,7 +536,7 @@ _END_
}
if (defined $cc) {
$extra_opts .= " CC=$cc";
$extra_opts .= " CC='$cc'";
}
if (defined $cores) {
@ -590,7 +590,7 @@ _END_
my $extra_opts = '';
if (defined $cc) {
$extra_opts .= " CC=$cc";
$extra_opts .= " CC='$cc'";
}
if (defined $cores) {
@ -670,7 +670,7 @@ _EOC_
}
if (defined $cc) {
$extra_opts .= " CC=$cc";
$extra_opts .= " CC='$cc'";
} else {
$extra_opts .= " CC=gcc";
}
@ -717,7 +717,7 @@ _EOC_
}
if (defined $cc) {
$extra_opts .= " CC=$cc";
$extra_opts .= " CC='$cc'";
} else {
$extra_opts .= " CC=gcc";
}
@ -764,7 +764,7 @@ _EOC_
}
if (defined $cc) {
$extra_opts .= " CC=$cc";
$extra_opts .= " CC='$cc'";
} else {
$extra_opts .= " CC=gcc";
}