mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:31:41 +03:00
parent
0fb4e59269
commit
c5cb8e7c7e
25 changed files with 50 additions and 49 deletions
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
AC_DEFUN([CURL_WITH_RUSTLS], [
|
||||
dnl ----------------------------------------------------
|
||||
dnl check for rustls
|
||||
dnl check for Rustls
|
||||
dnl ----------------------------------------------------
|
||||
|
||||
if test "x$OPT_RUSTLS" != xno; then
|
||||
|
|
@ -90,14 +90,14 @@ if test "x$OPT_RUSTLS" != xno; then
|
|||
|
||||
AC_CHECK_LIB(rustls, rustls_connection_read,
|
||||
[
|
||||
AC_DEFINE(USE_RUSTLS, 1, [if rustls is enabled])
|
||||
AC_DEFINE(USE_RUSTLS, 1, [if Rustls is enabled])
|
||||
AC_SUBST(USE_RUSTLS, [1])
|
||||
RUSTLS_ENABLED=1
|
||||
USE_RUSTLS="yes"
|
||||
ssl_msg="rustls"
|
||||
test rustls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
|
||||
],
|
||||
AC_MSG_ERROR([--with-rustls was specified but could not find rustls.]),
|
||||
AC_MSG_ERROR([--with-rustls was specified but could not find Rustls.]),
|
||||
-lpthread -ldl -lm)
|
||||
|
||||
LIB_RUSTLS="$PREFIX_RUSTLS/lib$libsuff"
|
||||
|
|
@ -138,18 +138,18 @@ if test "x$OPT_RUSTLS" != xno; then
|
|||
dnl don't need any.
|
||||
LIBS="$SSL_LIBS $LIBS"
|
||||
ssl_msg="rustls"
|
||||
AC_DEFINE(USE_RUSTLS, 1, [if rustls is enabled])
|
||||
AC_DEFINE(USE_RUSTLS, 1, [if Rustls is enabled])
|
||||
AC_SUBST(USE_RUSTLS, [1])
|
||||
USE_RUSTLS="yes"
|
||||
RUSTLS_ENABLED=1
|
||||
test rustls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
|
||||
else
|
||||
AC_MSG_ERROR([pkg-config: Could not find rustls])
|
||||
AC_MSG_ERROR([pkg-config: Could not find Rustls])
|
||||
fi
|
||||
|
||||
else
|
||||
dnl we did not use pkg-config, so we need to add the
|
||||
dnl rustls lib to LIBS
|
||||
dnl Rustls lib to LIBS
|
||||
LIBS="-lrustls -lpthread -ldl -lm $LIBS"
|
||||
fi
|
||||
|
||||
|
|
@ -158,7 +158,7 @@ if test "x$OPT_RUSTLS" != xno; then
|
|||
LDFLAGS="$CLAN_LDFLAGS $SSL_LDFLAGS"
|
||||
|
||||
if test "x$USE_RUSTLS" = "xyes"; then
|
||||
AC_MSG_NOTICE([detected rustls])
|
||||
AC_MSG_NOTICE([detected Rustls])
|
||||
check_for_ca_bundle=1
|
||||
|
||||
if test -n "$LIB_RUSTLS"; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue