Relax the requirements for a debug build
[openssl.git] / Configure
index ee60a39bd8ecf91567f5b97471ec762c748d9058..c309485b24cb215f75b0de88dc9ccca1af130bd5 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -1268,22 +1268,17 @@ print "Configuring for $target\n";
 my ($d, $t) = $target =~ m/^(debug-)?(.*)$/;
 if ($d) {
     $build_prefix = "debug_";
+    $target = $t;
 
     # If we do not find debug-foo in the table, the target is set to foo,
     # but only if the foo target has a noon-empty debug_cflags or debug_lflags
     # attribute.
-    if (!$table{$target} && ($table{$t}->{debug_cflags}
-                            || $table{$t}->{debug_lflags})) {
+    if (!$table{$target}) {
        $target = $t;
     }
 }
 
-&usage if (!defined($table{$target})
-          || $table{$target}->{template}
-          || ($build_prefix eq "debug_"
-              && $target !~ /^debug-/
-              && !($table{$target}->{debug_cflags}
-                   || $table{$target}->{debug_lflags})));
+&usage if (!defined($table{$target}) || $table{$target}->{template});
 
 if ($fips)
        {
@@ -2089,8 +2084,8 @@ while (<IN>)
                { printf OUT "#%s EIGHT_BIT\n",($b8)?"define":"undef"; }
        elsif   (/^#((define)|(undef))\s+BN_LLONG\s*$/)
                { printf OUT "#%s BN_LLONG\n",($bn_ll)?"define":"undef"; }
-       elsif   (/^\#define\s+DES_LONG\s+.*/)
-               { printf OUT "#define DES_LONG unsigned %s\n",
+       elsif   (/^\#define\s+OSSL_DES_LONG\s+.*/)
+               { printf OUT "#define OSSL_DES_LONG unsigned %s\n",
                        ($des_int)?'int':'long'; }
        elsif   (/^\#(define|undef)\s+DES_PTR/)
                { printf OUT "#%s DES_PTR\n",($des_ptr)?'define':'undef'; }