fi
if test "x$curl_gsasl_msg" = "xenabled"; then
- SUPPORT_FEATURES="$SUPPORT_FEATURES GSASL"
+ SUPPORT_FEATURES="$SUPPORT_FEATURES gsasl"
fi
if test "x$enable_altsvc" = "xyes"; then
open(CURL, "$ARGV[1]") || die "Can't get curl $what list\n";
while( <CURL> )
{
- $curl_protocols = lc($_) if ( /$what:/i );
+ $curl_protocols = $_ if ( /$what:/i );
}
close CURL;
$curl_protocols =~ s/\r//;
$curl_protocols =~ /\w+: (.*)$/;
@curl = split / /,$1;
-@curl = sort @curl;
# Read the output of curl-config
my @curl_config;
while( <CURLCONFIG> )
{
chomp;
- # ignore curl-config --features not in curl's feature list
- push @curl_config, lc($_);
+ $_ = lc($_) if($what eq "protocols"); # accept uppercase protocols in curl-config
+ push @curl_config, $_;
}
close CURLCONFIG;
-@curl_config = sort @curl_config;
+# allow order mismatch to handle autotools builds with no 'sort -f' available
+if($what eq "features") {
+ @curl = sort @curl;
+ @curl_config = sort @curl_config;
+}
my $curlproto = join ' ', @curl;
my $curlconfigproto = join ' ', @curl_config;