1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-12 04:25:08 -05:00

Avoid false positive detection of yaSSL

This commit is contained in:
Yang Tse 2007-03-19 15:41:28 +00:00
parent 2b6a0c0a7c
commit 248f057137

View File

@ -1080,21 +1080,23 @@ if test X"$OPT_SSL" != Xno; then
dnl OpenSSL emulation layer. We still leave everything else believing dnl OpenSSL emulation layer. We still leave everything else believing
dnl and acting like OpenSSL. dnl and acting like OpenSSL.
AC_MSG_CHECKING([for yassl in disguise]) AC_MSG_CHECKING([for yaSSL using OpenSSL compatibility mode])
AC_EGREP_CPP([^check for YASSL_VERSION], [ AC_TRY_COMPILE([
#include <openssl/ssl.h> #include <openssl/ssl.h>
check for YASSL_VERSION ],[
], #if defined(YASSL_VERSION) && defined(OPENSSL_VERSION_NUMBER)
dnl action if the text is found, this it has not been replaced by the int dummy = SSL_ERROR_NONE;
dnl cpp #else
AC_MSG_RESULT([no]) Not the yaSSL OpenSSL compatibility header.
, #endif
dnl the text was not found, it was replaced by the cpp ],[
yassl="yes" AC_MSG_RESULT([yes])
AC_DEFINE(USE_YASSLEMUL, 1, [if you use yassl]) AC_DEFINE_UNQUOTED(USE_YASSLEMUL, 1,
AC_MSG_RESULT([yes]) [Define to 1 if using yaSSL in OpenSSL compatibility mode.])
curl_ssl_msg="enabled (OpenSSL emulation by yassl)" curl_ssl_msg="enabled (OpenSSL emulation by yaSSL)"
) ],[
AC_MSG_RESULT([no])
])
fi fi
if test "$OPENSSL_ENABLED" = "1"; then if test "$OPENSSL_ENABLED" = "1"; then