THRIFT-1071 configure.ac checks for openssl



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1073930 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/configure.ac b/configure.ac
index 8cad0a1..49843ba 100644
--- a/configure.ac
+++ b/configure.ac
@@ -301,6 +301,9 @@
 AC_CHECK_HEADERS([unistd.h])
 AC_CHECK_HEADERS([libintl.h])
 AC_CHECK_HEADERS([malloc.h])
+AC_CHECK_HEADERS([openssl/ssl.h])
+AC_CHECK_HEADERS([openssl/rand.h])
+AC_CHECK_HEADERS([openssl/x509v3.h])
 
 AC_CHECK_LIB(pthread, pthread_create)
 dnl NOTE(dreiss): I haven't been able to find any really solid docs
@@ -310,6 +313,7 @@
 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_TYPE_INT16_T
 AC_TYPE_INT32_T