From a0d893f9b403e2e435b39b4adf14ebffadd4ea89 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Sun, 22 Jul 2018 10:56:25 +0200 Subject: Configure: Display error/warning on deprecated/unsupported options after loop Fixes #6755 Reviewed-by: Tim Hudson (Merged from https://github.com/openssl/openssl/pull/6759) (cherry picked from commit ddbe700e93e34694519d303e1b4e4525184c9dad) --- Configure | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/Configure b/Configure index 7f073b6294..f819cab725 100755 --- 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,/ -- cgit v1.2.3