From 012dfdab4cdc1cae4b23cfed91b9ade8a9c8aacb Mon Sep 17 00:00:00 2001 From: Jake Farrell Date: Mon, 29 Aug 2011 18:18:55 +0000 Subject: [PATCH] Thrift-1296: SSL detection is broken Patch: jfarrell Updated configure to check for crypto and then ssl and error along the way if unavailable. git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1162925 13f79535-47bb-0310-9956-ffa450edef68 --- configure.ac | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index b55d6015..36b6751b 100644 --- a/configure.ac +++ b/configure.ac @@ -312,7 +312,16 @@ dnl of the POSIX Real-Time Extensions. This seems necessary on Linux, dnl and we haven't yet found a system where this is a problem. AC_CHECK_LIB(rt, clock_gettime) AC_CHECK_LIB(socket, setsockopt) -AC_CHECK_LIB(ssl, SSL_ctrl) +AC_CHECK_LIB(crypto, + BN_init, + [AC_CHECK_LIB(ssl, + SSL_ctrl, + [LIBS="-lssl -lcrypto $LIBS"], + [AC_MSG_ERROR(["Error: libssl required"])], + -lcrypto + )], + [AC_MSG_ERROR(["Error: libcrypto required."])] +) AC_TYPE_INT16_T AC_TYPE_INT32_T -- 2.17.1