diff options
author | Bodo Möller <bodo@openssl.org> | 2005-03-13 19:46:58 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2005-03-13 19:46:58 +0000 |
commit | ab185b6038537fdab73a586289b0f02d74a5145d (patch) | |
tree | 6e2a431de49804478297409d09eb79195f35d4ee /Configure | |
parent | 1642000707b91d26ae7bc238838786c4bb56cfc1 (diff) |
It seems that Configure revision 1.404 broke "make depend" by hiding
from it which algorithms were disabled. With these new changes,
"make depend" will properly take into account algorithms that are skipped.
Diffstat (limited to 'Configure')
-rwxr-xr-x | Configure | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -611,6 +611,10 @@ my %disabled = ( # "what" => "comment" # To remove something from %disabled, use e.g. "enable-rc5". # For symmetry, "disable-..." is a synonym for "no-...". +# This is what $depflags will look like with the above default: +my $default_depflags = "-DOPENSSL_NO_MDC2 -DOPENSSL_NO_RC5 "; + + my $no_sse2=0; &usage if ($#ARGV < 0); @@ -891,6 +895,8 @@ foreach (sort (keys %disabled)) { push @skip, $algo; print " (skip dir)"; + + $depflags .="-DOPENSSL_NO_$ALGO "; } } } @@ -1531,7 +1537,7 @@ EOF my $make_command = "make -f Makefile.ssl PERL=\'$perl\'"; my $make_targets = ""; $make_targets .= " links" if $symlink; - $make_targets .= " depend" if $depflags ne "" && $make_depend; + $make_targets .= " depend" if $depflags ne $default_depflags && $make_depend; $make_targets .= " gentests" if $symlink; (system $make_command.$make_targets) == 0 or exit $? if $make_targets ne ""; @@ -1543,11 +1549,11 @@ EOF &dofile("tools/c_rehash",'/usr/local/bin/perl','^#!/', '#!%s','^my \$dir;$', 'my $dir = "' . $openssldir . '";'); &dofile("apps/CA.pl",'/usr/local/bin/perl','^#!/', '#!%s'); } - if ($depflags ne "" && !$make_depend) { + if ($depflags ne $default_depflags && !$make_depend) { print <<EOF; -Since you've disabled at least one algorithm, you need to do the following -before building: +Since you've disabled or enabled at least one algorithm, you need to do +the following before building: make depend EOF |