I don’t see why we should *prefer* the `AC_CHECK_LIB` test to the pkg-config output. This would break the `OPENSSL_CFLAGS` and `OPENSSL_LIBS` overrides provided by `PKG_CHECK_MODULES`.