From: Richard Levitte Date: Wed, 9 Mar 2016 08:04:01 +0000 (+0100) Subject: Don't check the conditions to build e_afalg if configured "no-engine" X-Git-Tag: OpenSSL_1_1_0-pre4~161 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=79fff39d71708c5dffa205045767d7bc522da789;p=oweals%2Fopenssl.git Don't check the conditions to build e_afalg if configured "no-engine" Reviewed-by: Matt Caswell --- diff --git a/Configure b/Configure index cbd93957eb..9a2ac4e531 100755 --- a/Configure +++ b/Configure @@ -1193,22 +1193,24 @@ else { $no_user_defines=1; } # ALL MODIFICATIONS TO %config and %target MUST BE DONE FROM HERE ON -$config{afalg}=""; -if ($target =~ m/^linux/) { - my $minver = 4*10000 + 1*100 + 0; - if ($config{cross_compile_prefix} eq "") { - my $verstr = `uname -r`; - my ($ma, $mi1, $mi2) = split("\\.", $verstr); - ($mi2) = $mi2 =~ /(\d+)/; - my $ver = $ma*10000 + $mi1*100 + $mi2; - if ($ver < $minver) { - $disabled{afalg} = "too-old-kernel"; - } else { - push @{$config{engdirs}}, "afalg"; +unless ($disabled{engine}) { + $config{afalg}=""; + if ($target =~ m/^linux/) { + my $minver = 4*10000 + 1*100 + 0; + if ($config{cross_compile_prefix} eq "") { + my $verstr = `uname -r`; + my ($ma, $mi1, $mi2) = split("\\.", $verstr); + ($mi2) = $mi2 =~ /(\d+)/; + my $ver = $ma*10000 + $mi1*100 + $mi2; + if ($ver < $minver) { + $disabled{afalg} = "too-old-kernel"; + } else { + push @{$config{engdirs}}, "afalg"; + } } + } else { + $disabled{afalg} = "not-linux"; } -} else { - $disabled{afalg} = "not-linux"; } push @{$config{openssl_other_defines}}, "OPENSSL_NO_AFALGENG" if ($disabled{afalg});