openssl: PKG_CHECK_MODULES can take a list of packages. Use this for openssl

This commit is contained in:
Priit Laes 2018-08-22 20:04:29 +03:00 committed by Frank Morgner
parent 9d16e6e177
commit 9fa730bb95
1 changed files with 12 additions and 14 deletions

View File

@ -612,11 +612,10 @@ fi
PKG_CHECK_MODULES(
[OPENSSL],
[libcrypto >= openssl_minimum_version],
[have_openssl="yes"],
[PKG_CHECK_MODULES(
[OPENSSL],
[openssl >= openssl_minimum_version],
[
libcrypto >= openssl_minimum_version
openssl >= openssl_minimum_version
],
[have_openssl="yes"],
[AC_CHECK_LIB(
[crypto],
@ -627,7 +626,6 @@ PKG_CHECK_MODULES(
],
[have_openssl="no"]
)]
)]
)
case "${enable_openssl}" in