summaryrefslogtreecommitdiffstats
path: root/Configure
diff options
context:
space:
mode:
authorWill Sackfield <will.sackfield@gmail.com>2023-11-28 19:57:49 -0500
committerTomas Mraz <tomas@openssl.org>2024-01-08 14:17:16 +0100
commit0a22436ea5826d0089db7f1cd97b7c90135ca165 (patch)
treed218fb65bb5c16e8da684c61570ca998900e0a4b /Configure
parent7054fc1ca3945342777f588fba43b77f669509ad (diff)
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)
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure6
1 files changed, 6 insertions, 0 deletions
diff --git a/Configure b/Configure
index cca1ac8d16..846a427cff 100755
--- a/Configure
+++ b/Configure
@@ -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};