tests: dist-check: added support for OPENSSL_PREFIX for using a different openssl installation.

This commit is contained in:
Yichun Zhang (agentzh) 2018-04-19 15:04:24 -07:00
parent 5d0235ea71
commit 4e202252f4
1 changed files with 7 additions and 0 deletions

View File

@ -45,6 +45,13 @@ if ($^O eq 'darwin') {
. "-I/usr/local/opt/pcre/include/'"
. " --with-ld-opt='-L/usr/local/opt/openssl/lib/ "
. "-L/usr/local/opt/pcre/lib/'";
} else {
my $ssl_prefix = $ENV{OPENSSL_PREFIX};
if (defined $ssl_prefix) {
$cfg_opts .= " --with-cc-opt='-I$ssl_prefix/include/' "
. " --with-ld-opt='-L$ssl_prefix/lib/' ";
}
}
my $prefix;