1
0
mirror of https://github.com/libssh2/libssh2.git synced 2026-10-24 03:48:58 +03:00

configure: detect OpenSSL via a header the code actually uses

Closes #1994
This commit is contained in:
Viktor Szakats
2026-06-07 17:38:35 +02:00
parent a981d10c32
commit 7071b7680a

View File

@@ -1010,7 +1010,7 @@ AC_DEFUN([LIBSSH2_CHECK_CRYPTO], [
if test "$use_crypto" = "auto" && test "$found_crypto" = "none" || test "$use_crypto" = "$1"; then
m4_case([$1],
[openssl], [
LIBSSH2_LIB_HAVE_LINKFLAGS([ssl], [crypto], [#include <openssl/ssl.h>], [
LIBSSH2_LIB_HAVE_LINKFLAGS([ssl], [crypto], [#include <openssl/opensslconf.h>], [
AC_DEFINE(LIBSSH2_OPENSSL, 1, [Use $1])
found_crypto="$1"
found_crypto_str="OpenSSL"