summaryrefslogtreecommitdiff
path: root/infrastructure/m4
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2012-04-28 18:08:11 +0000
committerChris Wilson <chris+github@qwirx.com>2012-04-28 18:08:11 +0000
commit2eea13f46a8778a89d9b98454cb8e9d6c1d5af95 (patch)
treeb458788d130e97da66ba924087bab56a736be7b8 /infrastructure/m4
parent83d7c9689efe3933c74e4d4fbee026d3d4de4676 (diff)
Check for -lcrypto before -lssl, to ensure correct order in LIBS and successful link.
Diffstat (limited to 'infrastructure/m4')
-rw-r--r--infrastructure/m4/ax_check_ssl.m43
1 files changed, 2 insertions, 1 deletions
diff --git a/infrastructure/m4/ax_check_ssl.m4 b/infrastructure/m4/ax_check_ssl.m4
index 03362bb6..9b2beac4 100644
--- a/infrastructure/m4/ax_check_ssl.m4
+++ b/infrastructure/m4/ax_check_ssl.m4
@@ -27,7 +27,8 @@ AC_DEFUN([AX_CHECK_SSL], [
ax_check_ssl_found=yes
AC_CHECK_HEADERS([openssl/ssl.h],, [ax_check_ssl_found=no])
- AC_CHECK_LIB([ssl], [SSL_read],, [ax_check_ssl_found=no], [-lcrypto])
+ AC_CHECK_LIB([crypto], [HMAC_CTX_init])
+ AC_CHECK_LIB([ssl], [SSL_read],, [ax_check_ssl_found=no])
if test "x$ax_check_ssl_found" = "xyes"; then
AC_DEFINE([HAVE_SSL], 1, [Define to 1 if SSL is available])