Configure: Display error/warning on deprecated/unsupported options after loop
authorRichard Levitte <levitte@openssl.org>
Sun, 22 Jul 2018 08:56:25 +0000 (10:56 +0200)
committerRichard Levitte <levitte@openssl.org>
Sun, 22 Jul 2018 09:07:39 +0000 (11:07 +0200)
Fixes #6755

Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6759)

(cherry picked from commit ddbe700e93e34694519d303e1b4e4525184c9dad)

Configure

index 7f073b6294ec20cf12ac5c91e177197f1f342da8..f819cab725b35974faa5acb19c0cddcd83a69318 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -756,21 +756,21 @@ while (@argvcopy)
                else
                        { $config{options} .= " ".$_; }
                }
+       }
 
-        if (defined($config{api}) && !exists $apitable->{$config{api}}) {
-               die "***** Unsupported api compatibility level: $config{api}\n",
-        }
+if (defined($config{api}) && !exists $apitable->{$config{api}}) {
+       die "***** Unsupported api compatibility level: $config{api}\n",
+}
 
-       if (keys %deprecated_options)
-               {
-               warn "***** Deprecated options: ",
-                       join(", ", keys %deprecated_options), "\n";
-               }
-       if (keys %unsupported_options)
-               {
-               die "***** Unsupported options: ",
-                       join(", ", keys %unsupported_options), "\n";
-               }
+if (keys %deprecated_options)
+       {
+       warn "***** Deprecated options: ",
+               join(", ", keys %deprecated_options), "\n";
+       }
+if (keys %unsupported_options)
+       {
+       die "***** Unsupported options: ",
+               join(", ", keys %unsupported_options), "\n";
        }
 
 if ($libs =~ /(^|\s)-Wl,-rpath,/