Configure: die if there are other arguments with 'reconf'

It's better to inform the user about this than silently ignoring
something that the user might expect to work, somehow.

Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4818)
This commit is contained in:
Richard Levitte 2017-11-30 21:46:53 +01:00
parent a064c6158e
commit 99aeeecb9f
1 changed files with 2 additions and 0 deletions

View File

@ -211,6 +211,8 @@ $config{builddir} = abs2rel($blddir);
my @argvcopy=@ARGV;
if (grep /^reconf(igure)?$/, @argvcopy) {
die "reconfiguring with other arguments present isn't supported"
if scalar @argvcopy > 1;
if (-f "./configdata.pm") {
my $file = "./configdata.pm";
unless (my $return = do $file) {