Lines Matching +full:pkg +full:- +full:config
21 # SPDX-License-Identifier: curl
26 dnl ----------------------------------------------------
28 dnl ----------------------------------------------------
33 dnl backup the pre-ssl variables
39 LDFLAGS="$LDFLAGS -framework Security"
46 dnl use pkg-config unless we have been given a path
47 dnl even then, try pkg-config first
51 dnl --with-rustls (without path) used
56 dnl check the provided --with-rustls path
60 dnl Try pkg-config even when cross-compiling. Since we
65 if test -f "$RUSTLS_PCDIR/rustls.pc"; then
73 if test -f "$RUSTLS_PCDIR/rustls.pc"; then
80 dnl pkg-config came up empty, use what we got
81 dnl via --with-rustls
83 addld=-L$PREFIX_RUSTLS/lib$libsuff
84 addcflags=-I$PREFIX_RUSTLS/include
87 if test "$addcflags" != "-I/usr/include"; then
100 AC_MSG_ERROR([--with-rustls was specified but could not find rustls.]),
101 -lpthread -ldl -lm)
105 SSL_LDFLAGS="-L$LIB_RUSTLS"
106 SSL_CPPFLAGS="-I$PREFIX_RUSTLS/include"
118 $PKGCONFIG --libs-only-l --libs-only-other rustls 2>/dev/null`
121 $PKGCONFIG --libs-only-L rustls 2>/dev/null`
124 $PKGCONFIG --cflags-only-I rustls 2>/dev/null`
127 AC_MSG_NOTICE([pkg-config: SSL_LIBS: "$SSL_LIBS"])
128 AC_MSG_NOTICE([pkg-config: SSL_LDFLAGS: "$SSL_LDFLAGS"])
129 AC_MSG_NOTICE([pkg-config: SSL_CPPFLAGS: "$SSL_CPPFLAGS"])
131 LIB_RUSTLS=`echo $SSL_LDFLAGS | sed -e 's/^-L//'`
133 dnl use the values pkg-config reported. This is here
135 dnl learn about this via pkg-config. If we only have
136 dnl the argument to --with-rustls we don't know what
147 AC_MSG_ERROR([pkg-config: Could not find rustls])
151 dnl we did not use pkg-config, so we need to add the
153 LIBS="-lrustls -lpthread -ldl -lm $LIBS"
164 if test -n "$LIB_RUSTLS"; then
165 dnl when shared libs were found in a path that the run-time
177 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
183 AC_MSG_ERROR([--with-rustls was given but Rustls could not be detected])