util/perl/OpenSSL/config.pm: refactor guess_system()
authorRichard Levitte <levitte@openssl.org>
Tue, 3 Mar 2020 13:33:19 +0000 (14:33 +0100)
committerRichard Levitte <levitte@openssl.org>
Sun, 28 Jun 2020 16:34:36 +0000 (18:34 +0200)
commitbfa684622af3f50acefb32ed5e5f252240e1fe44
tree278f1007d8a2ff4957722bf21ecbaa3ba36c0b57
parent019e3a0b6b34ee0fdd8796a65ec99f5d11a2b7eb
util/perl/OpenSSL/config.pm: refactor guess_system()

There's no reason to have two different tables, when we can simply
detect if the tuple elements are code or scalar.  Furthermore, order
is important in some cases, and that order is harder not to say
impossible when maintaining two tables.

Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/11230)
util/perl/OpenSSL/config.pm