util/perl/OpenSSL/config.pm: Fix determine_compiler_settings()
authorRichard Levitte <levitte@openssl.org>
Mon, 22 Feb 2021 06:29:03 +0000 (07:29 +0100)
committerRichard Levitte <levitte@openssl.org>
Tue, 23 Feb 2021 08:35:04 +0000 (09:35 +0100)
commit9e1094ad3df16a7d9a1224925ed8a9c3f76b9bba
treed0d43cfd5f5e2e46e1acda5d0f803bb73a7c12a9
parent444b25b1e96fa444ffe3a67671796cfc1b599735
util/perl/OpenSSL/config.pm: Fix determine_compiler_settings()

There may be times when a compiler can't be detected, in which case
determine_compiler_settings() bailed out too early, before platform
specific fallbacks have a chance to set the record straight.  That
bail out has been moved to be done after the platform specific
fallbacks.

Furthermore, the attempt to check for gcc or clang and get their
version number was done even if no compiler had been automatically
detected or pre-specified via $CC.  It now only does this when there
is a compiler specified or detected.  The platform specific fallbacks
check the versions separately.

Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14270)
util/perl/OpenSSL/config.pm