automatically use no-mdc2 if no-des is requested.
[openssl.git] / Configure
index 30927aeed7bca6f60b33e9e6dcb4f4f35d5f02c9..e16ad081ccd7832cdc32561afcde11bc9e45ecb5 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -364,6 +364,12 @@ foreach (@ARGV)
                $algo =~ tr/[a-z]/[A-Z]/;
                $flags .= "-DNO_$algo ";
                $depflags .= "-DNO_$algo ";
+               if ($algo eq "DES")
+                       {
+                       $options .= " no-mdc2";
+                       $flags .= "-DNO_MDC2 ";
+                       $depflags .= "-DNO_MDC2 ";
+                       }
                }
        elsif (/^386$/)
                { $processor=386; }