From a2c3b2f03ab16ae211630103a82400dc4aadfe2a Mon Sep 17 00:00:00 2001 From: dmiller Date: Wed, 13 Jan 2016 20:53:37 +0000 Subject: [PATCH] Include -lcrypto when checking for -lssl. Fails on OpenBSD 5.5 w/1.0.1c --- ncat/configure | 2 +- ncat/configure.ac | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ncat/configure b/ncat/configure index 013bc7237..6a136c8b6 100755 --- a/ncat/configure +++ b/ncat/configure @@ -4690,7 +4690,7 @@ if ${ac_cv_lib_ssl_SSL_new+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lssl $LIBS" +LIBS="-lssl -lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ diff --git a/ncat/configure.ac b/ncat/configure.ac index a3afade0a..dcccf0352 100644 --- a/ncat/configure.ac +++ b/ncat/configure.ac @@ -97,7 +97,8 @@ if test "$use_openssl" = "yes" -a -z "$specialssldir" ; then [ use_openssl="yes"], [ use_openssl="no" AC_MSG_WARN([Failed to find libssl so OpenSSL will not be used. -If it is installed you can try the --with-openssl=DIR argument]) ]) +If it is installed you can try the --with-openssl=DIR argument]) ], + [ -lcrypto ]) fi fi