configure: Use pkg-config to check for openssl
authorLuca Barbato <lu_zero@gentoo.org>
Fri, 15 Jan 2016 17:09:48 +0000 (18:09 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Tue, 19 Jan 2016 19:47:49 +0000 (20:47 +0100)
configure

index 8518e69..d776d0e 100755 (executable)
--- a/configure
+++ b/configure
@@ -4532,7 +4532,8 @@ enabled mmal              && { check_lib interface/mmal/mmal.h mmal_port_connect
                                     check_lib interface/mmal/mmal.h mmal_port_connect ; }
                                 check_lib interface/mmal/mmal.h mmal_port_connect ; } ||
                                die "ERROR: mmal not found"; }
-enabled openssl           && { check_lib openssl/ssl.h SSL_library_init -lssl -lcrypto ||
+enabled openssl           && { check_pkg_config openssl openssl/ssl.h SSL_library_init ||
+                               check_lib openssl/ssl.h SSL_library_init -lssl -lcrypto ||
                                check_lib openssl/ssl.h SSL_library_init -lssl32 -leay32 ||
                                check_lib openssl/ssl.h SSL_library_init -lssl -lcrypto -lws2_32 -lgdi32 ||
                                die "ERROR: openssl not found"; }