Skip to content

Commit

Permalink
Fail the Configure script with no Configurations
Browse files Browse the repository at this point in the history
* Print a message about why the failure is
happening.
* Send the usage information.

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from openssl#22855)
  • Loading branch information
8W9aG authored and wbeck10p committed Jan 8, 2024
1 parent 781bc1a commit ddb319d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Configure
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,12 @@ if (defined env($local_config_envname)) {
}
}

# Fail if no configuration is apparent
if (!%table) {
print "Failed to find any os/compiler configurations. Please make sure the Configurations directory is included.\n";
&usage;
}

# Save away perl command information
$config{perl_cmd} = $^X;
$config{perl_version} = $Config{version};
Expand Down

0 comments on commit ddb319d

Please sign in to comment.