From ddb319dfbd284c9067c1dbe17e9b18b050ee3173 Mon Sep 17 00:00:00 2001 From: Will Sackfield Date: Tue, 28 Nov 2023 19:57:49 -0500 Subject: [PATCH] Fail the Configure script with no Configurations * Print a message about why the failure is happening. * Send the usage information. Reviewed-by: Richard Levitte Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/22855) --- Configure | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Configure b/Configure index cca1ac8d162ee..846a427cff8a1 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};