• Home
  • Raw
  • Download

Lines Matching +full:- +full:pkg +full:- +full:config

21 # SPDX-License-Identifier: curl
26 dnl ----------------------------------------------------
28 dnl ----------------------------------------------------
33 dnl backup the pre-ssl variables
40 dnl use pkg-config unless we have been given a path
41 dnl even then, try pkg-config first
45 dnl --with-rustls (without path) used
50 dnl check the provided --with-rustls path
54 dnl Try pkg-config even when cross-compiling. Since we
59 if test -f "$RUSTLS_PCDIR/rustls.pc"; then
67 if test -f "$RUSTLS_PCDIR/rustls.pc"; then
74 dnl pkg-config came up empty, use what we got
75 dnl via --with-rustls
77 addld=-L$PREFIX_RUSTLS/lib$libsuff
78 addcflags=-I$PREFIX_RUSTLS/include
82 if test "$addcflags" != "-I/usr/include"; then
87 *-apple-*)
88 RUSTLS_LDFLAGS="-framework Security -framework Foundation"
91 RUSTLS_LDFLAGS="-lpthread -ldl -lm"
102 AC_MSG_ERROR([--with-rustls was specified but could not find Rustls.]),
107 SSL_LDFLAGS="-L$LIB_RUSTLS $RUSTLS_LDFLAGS"
108 SSL_CPPFLAGS="-I$PREFIX_RUSTLS/include"
122 $PKGCONFIG --libs-only-l --libs-only-other rustls 2>/dev/null`
125 $PKGCONFIG --libs-only-L rustls 2>/dev/null`
128 $PKGCONFIG --cflags-only-I rustls 2>/dev/null`
130 AC_MSG_NOTICE([pkg-config: SSL_LIBS: "$SSL_LIBS"])
131 AC_MSG_NOTICE([pkg-config: SSL_LDFLAGS: "$SSL_LDFLAGS"])
132 AC_MSG_NOTICE([pkg-config: SSL_CPPFLAGS: "$SSL_CPPFLAGS"])
134 LIB_RUSTLS=`echo $SSL_LDFLAGS | sed -e 's/^-L//'`
136 dnl use the values pkg-config reported. This is here
138 dnl learn about this via pkg-config. If we only have
139 dnl the argument to --with-rustls we don't know what
150 AC_MSG_ERROR([pkg-config: Could not find Rustls])
154 dnl we did not use pkg-config, so we need to add the
156 LIBS="-lrustls -lpthread -ldl -lm $LIBS"
168 if test -n "$LIB_RUSTLS"; then
169 dnl when shared libs were found in a path that the run-time
179 if test -n "$link_pkgconfig"; then
184 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
190 AC_MSG_ERROR([--with-rustls was given but Rustls could not be detected])