mirror of
https://github.com/nmap/nmap.git
synced 2026-01-03 05:09:14 +00:00
Link with -lcrypto when testing for -lssl in the main configure.
This commit is contained in:
2
configure
vendored
2
configure
vendored
@@ -4437,7 +4437,7 @@ if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
|
||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||
else
|
||||
ac_check_lib_save_LIBS=$LIBS
|
||||
LIBS="-lssl $LIBS"
|
||||
LIBS="-lssl -lcrypto $LIBS"
|
||||
cat >conftest.$ac_ext <<_ACEOF
|
||||
/* confdefs.h. */
|
||||
_ACEOF
|
||||
|
||||
@@ -245,7 +245,8 @@ if test "$use_openssl" = "yes" -a -z "$specialssldir"; then
|
||||
AC_CHECK_LIB(ssl, SSL_new,
|
||||
[ 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]) ])
|
||||
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]) ],
|
||||
[ -lcrypto ])
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user