util/perl/OpenSSL/config.pm: refactor map_guess()
authorRichard Levitte <levitte@openssl.org>
Mon, 2 Mar 2020 23:01:35 +0000 (00:01 +0100)
committerRichard Levitte <levitte@openssl.org>
Sun, 28 Jun 2020 16:34:35 +0000 (18:34 +0200)
commite39795af0a871a0bd560838ce54610a34c92fb49
tree47b23986b305c2d61e040b75f84871fa385d2e8f
parent081436bf732c0889b2649426df4e1c23c671d6d7
util/perl/OpenSSL/config.pm: refactor map_guess()

map_guess() is now table driven, just like get_system().
Additionally, it now takes a config hash table and returns one of its
own.  This way, 'Configure' can pass whatever it has already found to
OpenSSL::config::get_platform(), and easily merge the returned hash
table into its %config.

This also gets rid of variables that we no longer need.  That includes
$PERL and all the $__CNF_ environment variables.

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