Description: Detect OpenSSL by using an actual function not a macro
Origin: other
Author: Guillem Jover <gjover@sipwise.com>
Last-Update: 2017-06-15

---

--- sip-tester-3.5.1.orig/configure.ac
+++ sip-tester-3.5.1/configure.ac
@@ -143,7 +143,7 @@ if test "$openssl" = 'yes'; then
     AC_CHECK_HEADERS([openssl/rand.h],,[AC_MSG_ERROR([<openssl/rand.h> header missing])])
     AC_CHECK_HEADERS([openssl/ssl.h],,[AC_MSG_ERROR([<openssl/ssl.h> header missing])])
     AC_CHECK_HEADERS([openssl/x509v3.h],,[AC_MSG_ERROR([<openssl/x509v3.h> header missing])])
-    AC_CHECK_LIB([ssl], [SSL_library_init],,[AC_MSG_ERROR([ssl library missing])])
+    AC_CHECK_LIB([ssl], [OPENSSL_init_ssl],,[AC_MSG_ERROR([ssl library missing])])
     AC_CHECK_LIB([crypto], [CRYPTO_num_locks],,[AC_MSG_ERROR([crypto library missing])])
 fi
 # For Makefile.am
