Forwarded: https://github.com/simsong/tcpflow/issues/135
Index: tcpflow/configure.ac
===================================================================
--- tcpflow.orig/configure.ac
+++ tcpflow/configure.ac
@@ -214,8 +214,11 @@ AC_CHECK_HEADERS([openssl/aes.h openssl/
 AC_CHECK_LIB([dl],[dlopen])                   dnl apparently OpenSSL now needs -ldl on some Linux
 AC_CHECK_LIB([crypto],[EVP_get_digestbyname])	# if crypto is available, get it
 AC_CHECK_LIB([md],[MD5])                        # if libmd is available, get it 
+
+# Need either SSL_library_init or OPENSSL_init_ssl, depending on openssl version
 AC_CHECK_LIB([ssl],[SSL_library_init],,
-     AC_MSG_ERROR([OpenSSL developer library 'libssl-dev' or 'openssl-devel' not installed]))
+     AC_CHECK_LIB([ssl],[OPENSSL_init_ssl],,
+          AC_MSG_ERROR([OpenSSL developer library 'libssl-dev' or 'openssl-devel' not installed])))
 AC_CHECK_FUNCS([MD5_Init EVP_get_digestbyname])
 
 ################################################################
