• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:openssl

21 # SPDX-License-Identifier: curl
29 dnl Check for OpenSSL libraries and headers
36 dnl backup the pre-ssl variables
43 *-*-msys* | *-*-mingw*)
46 LIBS="-lgdi32 $LIBS"
65 dnl --with-openssl (without path) used
70 dnl check the given --with-openssl spot
74 dnl Try pkg-config even when cross-compiling. Since we
78 if test -f "$OPENSSL_PCDIR/openssl.pc"; then
86 if test -f "$OPENSSL_PCDIR/openssl.pc"; then
93 if test ! -f "$PREFIX_OPENSSL/include/openssl/ssl.h"; then
94 AC_MSG_ERROR([$PREFIX_OPENSSL is a bad --with-openssl prefix!])
98 dnl in case pkg-config comes up empty, use what we got
99 dnl via --with-openssl
102 SSL_LDFLAGS="-L$LIB_OPENSSL"
103 SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
110 CURL_CHECK_PKGCONFIG(openssl, [$OPENSSL_PCDIR])
114 $PKGCONFIG --libs-only-l --libs-only-other openssl 2>/dev/null`
117 $PKGCONFIG --libs-only-L openssl 2>/dev/null`
120 $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
123 AC_MSG_NOTICE([pkg-config: SSL_LIBS: "$SSL_LIBS"])
124 AC_MSG_NOTICE([pkg-config: SSL_LDFLAGS: "$SSL_LDFLAGS"])
125 AC_MSG_NOTICE([pkg-config: SSL_CPPFLAGS: "$SSL_CPPFLAGS"])
127 LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/^-L//'`
129 dnl use the values pkg-config reported. This is here
131 dnl learn about this via pkg-config. If we only have
132 dnl the argument to --with-openssl we don't know what
145 LIBS="-lcrypto $LIBS"
147 if test -n "$LIB_OPENSSL" ; then
148 LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
150 if test "$PKGCONFIG" = "no" -a -n "$PREFIX_OPENSSL" ; then
151 # only set this if pkg-config wasn't used
152 CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include"
154 # Linking previously failed, try extra paths from --with-openssl or
155 # pkg-config. Use a different function name to avoid reusing the earlier
159 LIBS="-lcrypto $LIBS"], [
161 dnl still no, but what about with -ldl?
162 AC_MSG_CHECKING([OpenSSL linking with -ldl])
163 LIBS="-lcrypto $CLEANLIBS -ldl"
165 #include <openssl/err.h>
175 dnl ok, so what about both -ldl and -lpthread?
178 AC_MSG_CHECKING([OpenSSL linking with -ldl and -lpthread])
179 LIBS="-lcrypto $CLEANLIBS -ldl -lpthread"
182 #include <openssl/err.h>
213 LIBS="-lRSAglue -lrsaref $LIBS"
225 dnl Have the libraries--check for OpenSSL headers
226 AC_CHECK_HEADERS(openssl/x509.h openssl/rsa.h openssl/crypto.h \
227 openssl/pem.h openssl/ssl.h openssl/err.h,
228 ssl_msg="OpenSSL"
229 test openssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
231 AC_DEFINE(USE_OPENSSL, 1, [if OpenSSL is in use]))
243 ssl_msg="OpenSSL"
255 AC_MSG_ERROR([OpenSSL libs and/or directories were not found where specified!])
260 dnl These can only exist if OpenSSL exists
265 #include <openssl/base.h>
279 AC_MSG_CHECKING([for AWS-LC])
282 #include <openssl/base.h>
285 #error not AWS-LC
290 ssl_msg="AWS-LC"
299 #include <openssl/opensslv.h>
312 AC_MSG_CHECKING([for OpenSSL >= v3])
315 #include <openssl/opensslv.h>
326 [Define to 1 if using OpenSSL 3 or later.])
327 ssl_msg="OpenSSL v3+"
333 dnl is this OpenSSL (fork) providing the original QUIC API?
337 AC_MSG_NOTICE([OpenSSL fork speaks QUIC API])
339 AC_MSG_NOTICE([OpenSSL version does not speak QUIC API])
343 if test -n "$LIB_OPENSSL"; then
344 dnl when the ssl shared libs were found in a path that the run-time
356 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
363 AC_MSG_ERROR([--with-openssl was given but OpenSSL could not be detected])
371 dnl Check for user-specified random device
373 AS_HELP_STRING([--with-random=FILE],
381 AC_MSG_WARN([skipped the /dev/urandom detection when cross-compiling])
385 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
392 dnl ---
393 dnl We require OpenSSL with SRP support.
394 dnl ---
396 AC_MSG_CHECKING([for SRP support in OpenSSL])
399 #include <openssl/ssl.h>
413 dnl ---
414 dnl Whether the OpenSSL configuration will be loaded automatically
415 dnl ---
417 AC_ARG_ENABLE(openssl-auto-load-config,
418 AS_HELP_STRING([--enable-openssl-auto-load-config],[Enable automatic loading of OpenSSL configurati…
419 AS_HELP_STRING([--disable-openssl-auto-load-config],[Disable automatic loading of OpenSSL configura…
421 AC_MSG_NOTICE([automatic loading of OpenSSL configuration disabled])
422 …AC_DEFINE(CURL_DISABLE_OPENSSL_AUTO_LOAD_CONFIG, 1, [if the OpenSSL configuration won't be loaded …
427 dnl ---
428 dnl We may use OpenSSL QUIC.
429 dnl ---
431 AC_MSG_CHECKING([for QUIC support in OpenSSL])
434 #include <openssl/ssl.h>