Fail the Configure script with no Configurations

* 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 https://github.com/openssl/openssl/pull/22855)
This commit is contained in:
Will Sackfield 2023-11-28 19:57:49 -05:00 committed by Tomas Mraz
parent 7054fc1ca3
commit 0a22436ea5
1 changed files with 6 additions and 0 deletions

View File

@ -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};