Bug 80631. Fix missing double quotes in ac options that (as-input) have
spaces. git-svn-id: svn://10.0.0.236/trunk@165968 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -198,11 +198,16 @@ sub print_script {
|
||||
$out .= "\n" if $have_client_mk_options;
|
||||
foreach $param ($query->param()) {
|
||||
if ($param =~ /^--/) {
|
||||
next if $query->param($param) eq '';
|
||||
my $value = $query->param($param);
|
||||
next if $value eq '';
|
||||
|
||||
# Wrap in double quotes if $value contains a space.
|
||||
$value = "\"$value\"" if $value =~ /\s/;
|
||||
|
||||
$out .= "# Options for 'configure' (same as command-line options).\n"
|
||||
if not $have_configure_options;
|
||||
$out .= "ac_add_options $param";
|
||||
$out .= "=".$query->param($param) if $query->param($param) ne "yes";
|
||||
$out .= "=".$value if $value ne "yes";
|
||||
$out .= "\n";
|
||||
$have_configure_options = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user