From: Will Sackfield Date: Wed, 29 Nov 2023 00:57:49 +0000 (-0500) Subject: Fail the Configure script with no Configurations X-Git-Tag: openssl-3.3.0-alpha1~344 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0a22436ea5826d0089db7f1cd97b7c90135ca165;p=thirdparty%2Fopenssl.git 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) --- diff --git a/Configure b/Configure index cca1ac8d162..846a427cff8 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};