Commit 99aeeecb authored by Richard Levitte's avatar Richard Levitte
Browse files

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: default avatarAndy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4818)
parent a064c615
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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) {