• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:versioned +full:- +full:dirs

8 # Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
27 AC_INIT([curl], [-], [a suitable curl mailing list: https://curl.haxx.se/mail/])
34 AC_COPYRIGHT([Copyright (c) 1998 - 2020 Daniel Stenberg, <daniel@haxx.se>
64 if test -z "$SED"; then
68 if test -z "$SED" || test "$SED" = "not_found"; then
76 if test -z "$GREP"; then
80 if test -z "$GREP" || test "$GREP" = "not_found"; then
88 if test -z "$EGREP"; then
90 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
92 EGREP="$GREP -E"
99 if test -z "$EGREP" || test "$EGREP" = "not_found"; then
106 if test -z "$AR"; then
110 if test -z "$AR" || test "$AR" = "not_found"; then
119 CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)".*/\1/p' ${srcdir}/include/curl/curlver.h`
122 dnl for --enable-code-coverage
132 dnl we extract the numerical version for curl-config only
133 VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/c…
138 PKGADD_NAME="curl - a client that groks URLs"
146 …curl_ssl_msg="no (--with-{ssl,gnutls,nss,mbedtls,wolfssl,schannel,secure-transport,mesalink,a…
147 curl_ssh_msg="no (--with-{libssh,libssh2})"
148 curl_zlib_msg="no (--with-zlib)"
149 curl_brotli_msg="no (--with-brotli)"
150 curl_zstd_msg="no (--with-zstd)"
151 curl_gss_msg="no (--with-gssapi)"
152 curl_tls_srp_msg="no (--enable-tls-srp)"
153 curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
154 curl_ipv6_msg="no (--enable-ipv6)"
155 curl_unix_sockets_msg="no (--enable-unix-sockets)"
156 curl_idn_msg="no (--with-{libidn2,winidn})"
157 curl_manual_msg="no (--enable-manual)"
158 curl_libcurl_msg="enabled (--disable-libcurl-option)"
159 curl_verbose_msg="enabled (--disable-verbose)"
160 curl_sspi_msg="no (--enable-sspi)"
161 curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
162 curl_ldaps_msg="no (--enable-ldaps)"
163 curl_rtsp_msg="no (--enable-rtsp)"
164 curl_rtmp_msg="no (--with-librtmp)"
165 curl_mtlnk_msg="no (--with-libmetalink)"
166 curl_psl_msg="no (--with-libpsl)"
182 AC_DEFINE_UNQUOTED(OS, "${host}", [cpu-machine-OS])
217 # the '-DPIC' CFLAG that libtool provides is not valid given that the
237 CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
243 if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
267 if test "$compiler_num" -ge "1000"; then
269 CFLAGS="$CFLAGS -shared-intel"
270 elif test "$compiler_num" -ge "900"; then
272 CFLAGS="$CFLAGS -i-dynamic"
279 CURL_CFLAG_EXTRAS="-Werror"
281 dnl enable -pedantic-errors for GCC 5 and later,
282 dnl as before that it was the same as -Werror=pedantic
283 if test "$compiler_num" -ge "500"; then
284 CURL_CFLAG_EXTRAS="$CURL_CFLAG_EXTRAS -pedantic-errors"
299 # cross-compilation of unit tests static library/programs fails when
311 mips-sgi-irix6.5)
327 dnl Build unit tests when option --enable-debug is given.
349 case X-"$curl_cv_native_windows" in
350 X-yes)
376 AC_HELP_STRING([--enable-http],[Enable HTTP support])
377 AC_HELP_STRING([--disable-http],[Disable HTTP support]),
395 AC_HELP_STRING([--enable-ftp],[Enable FTP support])
396 AC_HELP_STRING([--disable-ftp],[Disable FTP support]),
410 AC_HELP_STRING([--enable-file],[Enable FILE support])
411 AC_HELP_STRING([--disable-file],[Disable FILE support]),
425 AC_HELP_STRING([--enable-ldap],[Enable LDAP support])
426 AC_HELP_STRING([--disable-ldap],[Disable LDAP support]),
441 AC_HELP_STRING([--enable-ldaps],[Enable LDAPS support])
442 AC_HELP_STRING([--disable-ldaps],[Disable LDAPS support]),
473 AC_HELP_STRING([--enable-rtsp],[Enable RTSP support])
474 AC_HELP_STRING([--disable-rtsp],[Disable RTSP support]),
499 AC_HELP_STRING([--enable-proxy],[Enable proxy support])
500 AC_HELP_STRING([--disable-proxy],[Disable proxy support]),
516 AC_HELP_STRING([--enable-dict],[Enable DICT support])
517 AC_HELP_STRING([--disable-dict],[Disable DICT support]),
531 AC_HELP_STRING([--enable-telnet],[Enable TELNET support])
532 AC_HELP_STRING([--disable-telnet],[Disable TELNET support]),
546 AC_HELP_STRING([--enable-tftp],[Enable TFTP support])
547 AC_HELP_STRING([--disable-tftp],[Disable TFTP support]),
562 AC_HELP_STRING([--enable-pop3],[Enable POP3 support])
563 AC_HELP_STRING([--disable-pop3],[Disable POP3 support]),
579 AC_HELP_STRING([--enable-imap],[Enable IMAP support])
580 AC_HELP_STRING([--disable-imap],[Disable IMAP support]),
596 AC_HELP_STRING([--enable-smb],[Enable SMB/CIFS support])
597 AC_HELP_STRING([--disable-smb],[Disable SMB/CIFS support]),
612 AC_HELP_STRING([--enable-smtp],[Enable SMTP support])
613 AC_HELP_STRING([--disable-smtp],[Disable SMTP support]),
628 AC_HELP_STRING([--enable-gopher],[Enable Gopher support])
629 AC_HELP_STRING([--disable-gopher],[Disable Gopher support]),
644 AC_HELP_STRING([--enable-mqtt],[Enable MQTT support])
645 AC_HELP_STRING([--disable-mqtt],[Disable MQTT support]),
659 dnl Check for built-in manual
662 AC_MSG_CHECKING([whether to provide built-in manual])
664 AC_HELP_STRING([--enable-manual],[Enable built-in manual])
665 AC_HELP_STRING([--disable-manual],[Disable built-in manual]),
685 AC_HELP_STRING([--enable-libcurl-option],[Enable --libcurl C code generation support])
686 AC_HELP_STRING([--disable-libcurl-option],[Disable --libcurl C code generation support]),
690 AC_DEFINE(CURL_DISABLE_LIBCURL_OPTION, 1, [to disable --libcurl C code generation option])
705 AC_HELP_STRING([--enable-libgcc],[use libgcc when linking]),
708 LIBS="-lgcc $LIBS"
725 LIBS="-lnsl $LIBS"
734 LIBS="-lsocket $LIBS"
743 CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
744 LDFLAGS="-L/dev/env/WATT_ROOT/lib"
745 LIBS="-lwatt $LIBS"
755 LIBS="-lnsl -lsocket $LIBS"
776 *-*-mingw32ce*)
777 winsock_LIB="-lwinsock"
780 winsock_LIB="-lwsock32"
785 winsock_LIB="-lws2_32"
787 if test ! -z "$winsock_LIB"; then
861 dnl This is for AmigaOS with bsdsocket.library - needs testing before -lnet
883 dnl gethostbyname in the network lib - for Haiku OS
886 LIBS="-lnetwork $LIBS"
892 dnl gethostbyname in the net lib - for BeOS
895 LIBS="-lnet $LIBS"
926 dnl Check for & handle argument to --with-zlib.
933 AC_HELP_STRING([--with-zlib=PATH],[search for zlib in PATH])
934 AC_HELP_STRING([--without-zlib],[disable use of zlib]),
944 if test -z "$OPT_ZLIB" ; then
948 LIBS="`$PKGCONFIG --libs-only-l zlib` $LIBS"
949 LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`"
950 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags-only-I zlib`"
955 if test -z "$HAVE_LIBZ"; then
963 LIBS="-lz $LIBS"],
970 if test -n "$OPT_ZLIB"; then
971 CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
972 LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
985 LIBS="-lz $LIBS"
1017 ZLIB_LIBS="-lz"
1018 LIBS="-lz $clean_LIBS"
1040 AC_HELP_STRING([--with-brotli=PATH],[Where to look for brotli, PATH points to the BROTLI installati…
1041 AC_HELP_STRING([--without-brotli], [disable BROTLI]),
1045 dnl backup the pre-brotli variables
1052 dnl --with-brotli (without path) used
1056 LIB_BROTLI=`$PKGCONFIG --libs-only-l libbrotlidec`
1057 LD_BROTLI=`$PKGCONFIG --libs-only-L libbrotlidec`
1058 CPP_BROTLI=`$PKGCONFIG --cflags-only-I libbrotlidec`
1059 version=`$PKGCONFIG --modversion libbrotlidec`
1060 DIR_BROTLI=`echo $LD_BROTLI | $SED -e 's/^-L//'`
1065 dnl no --with-brotli option given, just check default places
1068 dnl use the given --with-brotli spot
1073 dnl if given with a prefix, we set -L and -I based on that
1074 if test -n "$PREFIX_BROTLI"; then
1075 LIB_BROTLI="-lbrotlidec"
1076 LD_BROTLI=-L${PREFIX_BROTLI}/lib$libsuff
1077 CPP_BROTLI=-I${PREFIX_BROTLI}/include
1100 if test -n "$DIR_BROTLI"; then
1101 dnl when the brotli shared libs were found in a path that the run-time
1126 AC_HELP_STRING([--with-zstd=PATH],[Where to look for libzstd, PATH points to the libzstd installati…
1127 AC_HELP_STRING([--without-zstd], [disable libzstd]),
1131 dnl backup the pre-zstd variables
1138 dnl --with-zstd (without path) used
1142 LIB_ZSTD=`$PKGCONFIG --libs-only-l libzstd`
1143 LD_ZSTD=`$PKGCONFIG --libs-only-L libzstd`
1144 CPP_ZSTD=`$PKGCONFIG --cflags-only-I libzstd`
1145 version=`$PKGCONFIG --modversion libzstd`
1146 DIR_ZSTD=`echo $LD_ZSTD | $SED -e 's/-L//'`
1151 dnl no --with-zstd option given, just check default places
1154 dnl use the given --with-zstd spot
1159 dnl if given with a prefix, we set -L and -I based on that
1160 if test -n "$PREFIX_ZSTD"; then
1161 LIB_ZSTD="-lzstd"
1162 LD_ZSTD=-L${PREFIX_ZSTD}/lib$libsuff
1163 CPP_ZSTD=-I${PREFIX_ZSTD}/include
1186 if test -n "$DIR_ZSTD"; then
1187 dnl when the zstd shared lib were found in a path that the run-time
1211 AC_ARG_WITH(ldap-lib,
1212 AC_HELP_STRING([--with-ldap-lib=libname],[Specify name of ldap lib file]),
1216 AC_ARG_WITH(lber-lib,
1217 AC_HELP_STRING([--with-lber-lib=libname],[Specify name of lber lib file]),
1227 if test -z "$LDAPLIBNAME" ; then
1245 case X-"$curl_cv_ldap_LIBS" in
1246 X-unknown)
1282 AC_DEFINE(USE_OPENLDAP, 1, [Use OpenLDAP-specific code])
1298 AC_HELP_STRING([--enable-ipv6],[Enable IPv6 (with IPv4) support])
1299 AC_HELP_STRING([--disable-ipv6],[Disable IPv6 support]),
1402 dnl Check for GSS-API libraries
1405 dnl check for GSS-API stuff in the /usr as default
1408 AC_ARG_WITH(gssapi-includes,
1409 AC_HELP_STRING([--with-gssapi-includes=DIR],
1410 [Specify location of GSS-API headers]),
1411 [ GSSAPI_INCS="-I$withval"
1415 AC_ARG_WITH(gssapi-libs,
1416 AC_HELP_STRING([--with-gssapi-libs=DIR],
1417 [Specify location of GSS-API libs]),
1418 [ GSSAPI_LIB_DIR="-L$withval"
1423 AC_HELP_STRING([--with-gssapi=DIR],
1424 [Where to look for GSS-API]), [
1435 : ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"}
1438 AC_MSG_CHECKING([if GSS-API support is requested])
1442 if test -z "$GSSAPI_INCS"; then
1443 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
1444 GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
1445 elif test -f "$KRB5CONFIG"; then
1446 GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
1448 GSSAPI_INCS="-I$GSSAPI_ROOT/include"
1456 dnl found in the given dirs
1483 AC_MSG_WARN(disabling GSS-API support since no header files were found)
1490 AC_MSG_CHECKING([if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE])
1517 AC_DEFINE(HAVE_GSSAPI, 1, [if you have GSS-API libraries])
1521 if test -n "$gnu_gss"; then
1524 LIBS="-lgss $LIBS"
1525 elif test -z "$GSSAPI_LIB_DIR"; then
1527 *-*-darwin*)
1528 LIBS="-lgssapi_krb5 -lresolv $LIBS"
1531 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
1532 dnl krb5-config doesn't have --libs-only-L or similar, put everything
1534 gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
1536 elif test -f "$KRB5CONFIG"; then
1537 dnl krb5-config doesn't have --libs-only-L or similar, put everything
1539 gss_libs=`$KRB5CONFIG --libs gssapi`
1543 *-hp-hpux*)
1552 LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
1553 LIBS="-l$gss_libname $LIBS"
1555 LIBS="-l$gss_libname $LIBS"
1563 *-hp-hpux*)
1564 LIBS="-lgss $LIBS"
1567 LIBS="-lgssapi $LIBS"
1582 dnl -------------------------------------------------------------
1583 dnl parse --with-default-ssl-backend so it can be validated below
1584 dnl -------------------------------------------------------------
1588 AC_ARG_WITH(default-ssl-backend,
1589 AC_HELP_STRING([--with-default-ssl-backend=NAME],[Use NAME as default SSL backend])
1590 AC_HELP_STRING([--without-default-ssl-backend],[Use implicit default SSL backend]),
1594 dnl --without-default-ssl-backend option used
1597 dnl --with-default-ssl-backend option used without name
1601 dnl --with-default-ssl-backend option used with name
1610 dnl -------------------------------------------------
1612 dnl -------------------------------------------------
1616 AC_HELP_STRING([--with-winssl],[enable Windows native SSL/TLS])
1617 AC_HELP_STRING([--without-winssl], [disable Windows native SSL/TLS]),
1621 AC_HELP_STRING([--with-schannel],[enable Windows native SSL/TLS])
1622 AC_HELP_STRING([--without-schannel], [disable Windows native SSL/TLS]),
1626 if test -z "$ssl_backends" -o "x$OPT_SCHANNEL" != xno; then
1633 ssl_msg="Windows-native"
1636 # --with-schannel implies --enable-sspi
1640 LIBS="-lcrypt32 $LIBS"
1644 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
1651 AC_HELP_STRING([--with-darwinssl],[enable Apple OS native SSL/TLS])
1652 AC_HELP_STRING([--without-darwinssl], [disable Apple OS native SSL/TLS]),
1655 AC_ARG_WITH(secure-transport,dnl
1656 AC_HELP_STRING([--with-secure-transport],[enable Apple OS native SSL/TLS])
1657 AC_HELP_STRING([--without-secure-transport], [disable Apple OS native SSL/TLS]),
1661 if test -z "$ssl_backends" -o "x$OPT_SECURETRANSPORT" != xno; then
1663 …(test "x$cross_compiling" != "xno" || test -d "/System/Library/Frameworks/Security.framework"); th…
1668 test secure-transport != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
1670 LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
1674 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
1681 AC_HELP_STRING([--with-amissl],[enable Amiga native SSL/TLS (AmiSSL)])
1682 AC_HELP_STRING([--without-amissl], [disable Amiga native SSL/TLS (AmiSSL)]),
1687 if test -z "$ssl_backends" -o "x$OPT_AMISSL" != xno; then
1694 LIBS="-lamisslauto $LIBS"
1700 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
1717 AC_HELP_STRING([--with-ssl=PATH],[Where to look for OpenSSL, PATH points to the SSL installation (d…
1718 AC_HELP_STRING([--without-ssl], [disable OpenSSL]),
1721 if test -z "$ssl_backends" -o "x$OPT_SSL" != xno &&
1725 dnl backup the pre-ssl variables
1732 *-*-msys* | *-*-mingw*)
1735 LIBS="-lgdi32 $LIBS"
1750 dnl --with-ssl (without path) used
1752 dnl only do pkg-config magic when not cross-compiling
1759 dnl no --with-ssl option given, just check default places
1761 dnl only do pkg-config magic when not cross-compiling
1767 dnl check the given --with-ssl spot
1771 dnl Try pkg-config even when cross-compiling. Since we
1775 if test -f "$OPENSSL_PCDIR/openssl.pc"; then
1778 elif test ! -f "$PREFIX_OPENSSL/include/openssl/ssl.h"; then
1779 AC_MSG_ERROR([$PREFIX_OPENSSL is a bad --with-ssl prefix!])
1782 dnl in case pkg-config comes up empty, use what we got
1783 dnl via --with-ssl
1786 SSL_LDFLAGS="-L$LIB_OPENSSL"
1787 SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
1789 SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
1799 $PKGCONFIG --libs-only-l --libs-only-other openssl 2>/dev/null`
1802 $PKGCONFIG --libs-only-L openssl 2>/dev/null`
1805 $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
1808 AC_MSG_NOTICE([pkg-config: SSL_LIBS: "$SSL_LIBS"])
1809 AC_MSG_NOTICE([pkg-config: SSL_LDFLAGS: "$SSL_LDFLAGS"])
1810 AC_MSG_NOTICE([pkg-config: SSL_CPPFLAGS: "$SSL_CPPFLAGS"])
1812 LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/^-L//'`
1814 dnl use the values pkg-config reported. This is here
1816 dnl learn about this via pkg-config. If we only have
1817 dnl the argument to --with-ssl we don't know what
1830 LIBS="-lcrypto $LIBS"
1832 LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
1834 # only set this if pkg-config wasn't used
1835 CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
1837 # Linking previously failed, try extra paths from --with-ssl or pkg-config.
1841 LIBS="-lcrypto $LIBS"], [
1843 dnl still no, but what about with -ldl?
1844 AC_MSG_CHECKING([OpenSSL linking with -ldl])
1845 LIBS="$CLEANLIBS -lcrypto -ldl"
1859 dnl ok, so what about both -ldl and -lpthread?
1862 AC_MSG_CHECKING([OpenSSL linking with -ldl and -lpthread])
1863 LIBS="$CLEANLIBS -lcrypto -ldl -lpthread"
1898 LIBS="-lRSAglue -lrsaref $LIBS"
1910 dnl Have the libraries--check for OpenSSL headers
2005 CPPFLAGS="$CPPFLAGS -DOPENSSL_SUPPRESS_DEPRECATED"
2013 if test -n "$LIB_OPENSSL"; then
2014 dnl when the ssl shared libs were found in a path that the run-time
2027 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
2035 AC_MSG_ERROR([--with-ssl was given but OpenSSL could not be detected])
2043 AC_ARG_WITH(egd-socket,
2044 AC_HELP_STRING([--with-egd-socket=FILE],
2048 if test -n "$EGD_SOCKET" ; then
2053 dnl Check for user-specified random device
2055 AC_HELP_STRING([--with-random=FILE],
2063 AC_MSG_WARN([skipped the /dev/urandom detection when cross-compiling])
2067 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
2074 dnl ---
2076 dnl ---
2085 dnl ---
2087 dnl ---
2089 AC_ARG_ENABLE(openssl-auto-load-config,
2090 AC_HELP_STRING([--enable-openssl-auto-load-config],[Enable automatic loading of OpenSSL configurati…
2091 AC_HELP_STRING([--disable-openssl-auto-load-config],[Disable automatic loading of OpenSSL configura…
2099 dnl ----------------------------------------------------
2101 dnl ----------------------------------------------------
2107 AC_HELP_STRING([--with-gnutls=PATH],[where to look for GnuTLS, PATH points to the installation root…
2108 AC_HELP_STRING([--without-gnutls], [disable GnuTLS detection]),
2111 if test -z "$ssl_backends" -o "x$OPT_GNUTLS" != xno; then
2127 addlib=`$PKGCONFIG --libs-only-l gnutls`
2128 addld=`$PKGCONFIG --libs-only-L gnutls`
2129 addcflags=`$PKGCONFIG --cflags-only-I gnutls`
2130 version=`$PKGCONFIG --modversion gnutls`
2131 gtlslib=`echo $addld | $SED -e 's/^-L//'`
2133 dnl without pkg-config, we try libgnutls-config as that was how it
2135 check=`libgnutls-config --version 2>/dev/null`
2136 if test -n "$check"; then
2137 addlib=`libgnutls-config --libs`
2138 addcflags=`libgnutls-config --cflags`
2139 version=`libgnutls-config --version`
2140 gtlslib=`libgnutls-config --prefix`/lib$libsuff
2144 dnl this is with a given path, first check if there's a libgnutls-config
2146 cfg=$OPT_GNUTLS/bin/libgnutls-config
2147 check=`$cfg --version 2>/dev/null`
2148 if test -n "$check"; then
2149 addlib=`$cfg --libs`
2150 addcflags=`$cfg --cflags`
2151 version=`$cfg --version`
2152 gtlslib=`$cfg --prefix`/lib$libsuff
2154 dnl without pkg-config and libgnutls-config, we guess a lot!
2155 addlib=-lgnutls
2156 addld=-L$OPT_GNUTLS/lib$libsuff
2157 addcflags=-I$OPT_GNUTLS/include
2163 if test -z "$version"; then
2168 if test -n "$addlib"; then
2176 if test "$addcflags" != "-I/usr/include"; then
2198 if test -n "$gtlslib"; then
2199 dnl when shared libs were found in a path that the run-time
2215 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
2218 dnl ---
2220 dnl ---
2242 LIBS="-lnettle $LIBS"
2244 LIBS="-lgcrypt $LIBS"
2248 dnl ---
2250 dnl ---
2259 dnl ----------------------------------------------------
2261 dnl ----------------------------------------------------
2268 AC_HELP_STRING([--with-mbedtls=PATH],[where to look for mbedTLS, PATH points to the installation ro…
2269 AC_HELP_STRING([--without-mbedtls], [disable mbedTLS detection]),
2272 if test -z "$ssl_backends" -o "x$OPT_MBEDTLS" != xno; then
2281 if test -z "$OPT_MBEDTLS" ; then
2293 ], [], -lmbedx509 -lmbedcrypto)
2303 addld=-L$OPT_MBEDTLS/lib$libsuff
2304 addcflags=-I$OPT_MBEDTLS/include
2308 if test "$addcflags" != "-I/usr/include"; then
2324 ], -lmbedx509 -lmbedcrypto)
2331 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
2333 if test -n "$mbedtlslib"; then
2334 dnl when shared libs were found in a path that the run-time
2348 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
2351 dnl ----------------------------------------------------
2353 dnl ----------------------------------------------------
2362 AC_HELP_STRING([--with-wolfssl=PATH],[where to look for WolfSSL, PATH points to the installation ro…
2363 AC_HELP_STRING([--without-wolfssl], [disable WolfSSL detection]),
2375 if test -z "$ssl_backends" -o "x$OPT_WOLFSSL" != xno; then
2384 dnl try pkg-config magic
2393 $PKGCONFIG --libs-only-l wolfssl`
2395 $PKGCONFIG --libs-only-L wolfssl`
2397 $PKGCONFIG --cflags-only-I wolfssl`
2399 $PKGCONFIG --modversion wolfssl`
2400 wolfssllibpath=`echo $addld | $SED -e 's/^-L//'`
2402 addlib=-lwolfssl
2404 if test -n "$OPT_WOLFSSL"; then
2405 addld=-L$OPT_WOLFSSL/lib$libsuff
2406 addcflags=-I$OPT_WOLFSSL/include
2415 if test "$addcflags" != "-I/usr/include"; then
2424 AC_MSG_CHECKING([for wolfSSL_Init in -lwolfssl])
2460 LIBS="$addlib -lm $LIBS"
2463 dnl WolfSSL needs configure --enable-opensslextra to have *get_peer*
2476 if test -n "$addcflags"; then
2486 CPPFLAGS="-I$includedir/wolfssl $CPPFLAGS"
2493 if test -n "$wolfssllibpath"; then
2494 dnl when shared libs were found in a path that the run-time
2509 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
2512 dnl ----------------------------------------------------
2514 dnl ----------------------------------------------------
2522 AC_HELP_STRING([--with-mesalink=PATH],[where to look for MesaLink, PATH points to the installation …
2523 AC_HELP_STRING([--without-mesalink], [disable MesaLink detection]),
2526 if test -z "$ssl_backends" -o "x$OPT_MESALINK" != xno; then
2535 if test -z "$OPT_MESALINK" ; then
2557 addld=-L$OPT_MESALINK/lib$libsuff
2558 addcflags=-I$OPT_MESALINK/include
2562 if test "$addcflags" != "-I/usr/include"; then
2584 LIBS="-lmesalink $LIBS"
2586 if test -n "$mesalinklib"; then
2587 dnl when shared libs were found in a path that the run-time
2601 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
2604 dnl ----------------------------------------------------
2606 dnl ----------------------------------------------------
2613 AC_HELP_STRING([--with-bearssl=PATH],[where to look for BearSSL, PATH points to the installation ro…
2614 AC_HELP_STRING([--without-bearssl], [disable BearSSL detection]),
2617 if test -z "$ssl_backends" -o "x$OPT_BEARSSL" != xno; then
2626 if test -z "$OPT_BEARSSL" ; then
2638 ], [], -lbearssl)
2648 addld=-L$OPT_BEARSSL/lib$libsuff
2649 addcflags=-I$OPT_BEARSSL/include
2653 if test "$addcflags" != "-I/usr/include"; then
2669 ], -lbearssl)
2676 LIBS="-lbearssl $LIBS"
2678 if test -n "$bearssllib"; then
2679 dnl when shared libs were found in a path that the run-time
2693 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
2696 dnl ----------------------------------------------------
2698 dnl ----------------------------------------------------
2704 AC_HELP_STRING([--with-nss=PATH],[where to look for NSS, PATH points to the installation root])
2705 AC_HELP_STRING([--without-nss], [disable NSS detection]),
2708 if test -z "$ssl_backends" -o "x$OPT_NSS" != xno; then
2724 addlib=`$PKGCONFIG --libs nss`
2725 addcflags=`$PKGCONFIG --cflags nss`
2726 version=`$PKGCONFIG --modversion nss`
2727 nssprefix=`$PKGCONFIG --variable=prefix nss`
2729 dnl Without pkg-config, we check for nss-config
2731 check=`nss-config --version 2>/dev/null`
2732 if test -n "$check"; then
2733 addlib=`nss-config --libs`
2734 addcflags=`nss-config --cflags`
2735 version=`nss-config --version`
2736 nssprefix=`nss-config --prefix`
2738 addlib="-lnss3"
2745 if test -f "$NSS_PCDIR/nss.pc"; then
2748 addld=`CURL_EXPORT_PCDIR([$NSS_PCDIR]) $PKGCONFIG --libs-only-L nss`
2749 addlib=`CURL_EXPORT_PCDIR([$NSS_PCDIR]) $PKGCONFIG --libs-only-l nss`
2750 addcflags=`CURL_EXPORT_PCDIR([$NSS_PCDIR]) $PKGCONFIG --cflags nss`
2751 version=`CURL_EXPORT_PCDIR([$NSS_PCDIR]) $PKGCONFIG --modversion nss`
2752 nssprefix=`CURL_EXPORT_PCDIR([$NSS_PCDIR]) $PKGCONFIG --variable=prefix nss`
2757 if test -z "$addlib"; then
2758 # Without pkg-config, we'll kludge in some defaults
2759 AC_MSG_WARN([Using hard-wired libraries and compilation flags for NSS.])
2760 addld="-L$OPT_NSS/lib"
2761 addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4"
2762 addcflags="-I$OPT_NSS/include"
2773 if test "$addcflags" != "-I/usr/include"; then
2809 dnl when shared libs were found in a path that the run-time
2823 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
2829--with-ssl, --with-gnutls, --with-wolfssl, --with-mbedtls, --with-nss, --with-schannel, --with-sec…
2848 if test -n "$ssl_backends"; then
2854 if test -n "$SSL_ENABLED"
2869 if test -n "$check_for_ca_bundle"; then
2878 AS_HELP_STRING([--without-libpsl],
2901 AC_HELP_STRING([--with-libmetalink=PATH],[where to look for libmetalink, PATH points to the install…
2902 AC_HELP_STRING([--without-libmetalink], [disable libmetalink detection]),
2922 if test -f "$LIBMETALINK_PCDIR/libmetalink.pc"; then
2931 $PKGCONFIG --libs-only-l libmetalink`
2933 $PKGCONFIG --libs-only-L libmetalink`
2935 $PKGCONFIG --cflags-only-I libmetalink`
2937 $PKGCONFIG --modversion libmetalink`
2938 libmetalinklib=`echo $addld | $SED -e 's/^-L//'`
2940 if test -n "$addlib"; then
2964 if test "x$OPENSSL_ENABLED" != "x1" -a "x$USE_WINDOWS_SSPI" != "x1" \
2965 -a "x$GNUTLS_ENABLED" != "x1" -a "x$NSS_ENABLED" != "x1" \
2966 -a "x$SECURETRANSPORT_ENABLED" != "x1"; then
2995 AC_HELP_STRING([--with-libssh2=PATH],[Where to look for libssh2, PATH points to the libssh2 install…
2996 AC_HELP_STRING([--with-libssh2], [enable libssh2]),
3002 AC_HELP_STRING([--with-libssh=PATH],[Where to look for libssh, PATH points to the libssh installati…
3003 AC_HELP_STRING([--with-libssh], [enable libssh]),
3008 AC_HELP_STRING([--with-wolfssh=PATH],[Where to look for wolfssh, PATH points to the wolfSSH install…
3009 AC_HELP_STRING([--with-wolfssh], [enable wolfssh]),
3013 dnl backup the pre-libssh2 variables
3020 dnl --with-libssh2 (without path) used
3024 LIB_SSH2=`$PKGCONFIG --libs libssh2`
3025 LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
3026 CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
3027 version=`$PKGCONFIG --modversion libssh2`
3028 DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/^-L//'`
3033 dnl no --with-libssh2 option given, just check default places
3036 dnl use the given --with-libssh2 spot
3041 dnl if given with a prefix, we set -L and -I based on that
3042 if test -n "$PREFIX_SSH2"; then
3043 LIB_SSH2="-lssh2"
3044 LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
3045 CPP_SSH2=-I${PREFIX_SSH2}/include
3068 if test -n "$DIR_SSH2"; then
3069 dnl when the libssh2 shared libs were found in a path that the run-time
3086 dnl backup the pre-libssh variables
3093 dnl --with-libssh (without path) used
3097 LIB_SSH=`$PKGCONFIG --libs-only-l libssh`
3098 LD_SSH=`$PKGCONFIG --libs-only-L libssh`
3099 CPP_SSH=`$PKGCONFIG --cflags-only-I libssh`
3100 version=`$PKGCONFIG --modversion libssh`
3101 DIR_SSH=`echo $LD_SSH | $SED -e 's/^-L//'`
3106 dnl no --with-libssh option given, just check default places
3109 dnl use the given --with-libssh spot
3114 dnl if given with a prefix, we set -L and -I based on that
3115 if test -n "$PREFIX_SSH"; then
3116 LIB_SSH="-lssh"
3117 LD_SSH=-L${PREFIX_SSH}/lib$libsuff
3118 CPP_SSH=-I${PREFIX_SSH}/include
3141 if test -n "$DIR_SSH"; then
3142 dnl when the libssh shared libs were found in a path that the run-time
3159 dnl backup the pre-wolfssh variables
3166 WOLFCONFIG="$OPT_WOLFSSH/bin/wolfssh-config"
3167 LDFLAGS="$LDFLAGS `$WOLFCONFIG --libs`"
3168 CPPFLAGS="$CPPFLAGS `$WOLFCONFIG --cflags`"
3189 AC_HELP_STRING([--with-librtmp=PATH],[Where to look for librtmp, PATH points to the LIBRTMP install…
3190 AC_HELP_STRING([--without-librtmp], [disable LIBRTMP]),
3194 dnl backup the pre-librtmp variables
3201 dnl --with-librtmp (without path) used
3205 LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
3206 LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
3207 CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
3208 version=`$PKGCONFIG --modversion librtmp`
3209 DIR_RTMP=`echo $LD_RTMP | $SED -e 's/^-L//'`
3211 dnl To avoid link errors, we do not allow --librtmp without
3213 AC_MSG_ERROR([--librtmp was specified but could not find librtmp pkgconfig file.])
3218 dnl no --with-librtmp option given, just check default places
3219 LIB_RTMP="-lrtmp"
3222 dnl use the given --with-librtmp spot
3223 LIB_RTMP="-lrtmp"
3228 dnl if given with a prefix, we set -L and -I based on that
3229 if test -n "$PREFIX_RTMP"; then
3230 LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
3231 CPP_RTMP=-I${PREFIX_RTMP}/include
3262 dnl Check for linker switch for versioned symbols
3266 AC_MSG_CHECKING([whether versioned symbols are wanted])
3267 AC_ARG_ENABLE(versioned-symbols,
3268 AC_HELP_STRING([--enable-versioned-symbols], [Enable versioned symbols in shared library])
3269 AC_HELP_STRING([--disable-versioned-symbols], [Disable versioned symbols in shared library]),
3272 AC_MSG_CHECKING([if libraries can be versioned])
3273 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
3274 if test -z "$GLD"; then
3276 AC_MSG_WARN([You need an ld version supporting the --version-script option])
3313 dnl -------------------------------------------------
3315 dnl -------------------------------------------------
3320 AC_HELP_STRING([--with-winidn=PATH],[enable Windows native IDN])
3321 AC_HELP_STRING([--without-winidn], [disable Windows native IDN]),
3325 dnl --without-winidn option used or configure option not specified
3330 dnl --with-winidn option used without path
3336 dnl --with-winidn option used with path
3348 WINIDN_LIBS="-lnormaliz"
3349 WINIDN_CPPFLAGS="-DWINVER=0x0600"
3353 dnl pkg-config not available or provides no info
3354 WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
3355 WINIDN_CPPFLAGS="-I$want_winidn_path/include"
3379 …AC_DEFINE(USE_WIN32_IDN, 1, [Define to 1 if you have the `normaliz' (WinIDN) library (-lnormaliz).…
3382 curl_idn_msg="enabled (Windows-native)"
3398 AC_HELP_STRING([--with-libidn2=PATH],[Enable libidn2 usage])
3399 AC_HELP_STRING([--without-libidn2],[Disable libidn2 usage]),
3403 dnl --without-libidn2 option used
3414 dnl --with-libidn2 option used without path
3420 dnl --with-libidn2 option used with path
3440 $PKGCONFIG --libs-only-l libidn2 2>/dev/null`
3442 $PKGCONFIG --libs-only-L libidn2 2>/dev/null`
3444 $PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
3445 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/^-L//'`
3447 dnl pkg-config not available or provides no info
3448 IDN_LIBS="-lidn2"
3449 IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
3450 IDN_CPPFLAGS="-I$want_idn_path/include"
3457 IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null`
3458 IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null`
3459 IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
3460 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/^-L//'`
3462 dnl pkg-config not available or provides no info
3463 IDN_LIBS="-lidn2"
3468 AC_MSG_NOTICE([pkg-config: IDN_LIBS: "$IDN_LIBS"])
3469 AC_MSG_NOTICE([pkg-config: IDN_LDFLAGS: "$IDN_LDFLAGS"])
3470 AC_MSG_NOTICE([pkg-config: IDN_CPPFLAGS: "$IDN_CPPFLAGS"])
3471 AC_MSG_NOTICE([pkg-config: IDN_DIR: "$IDN_DIR"])
3497 AC_DEFINE(HAVE_LIBIDN2, 1, [Define to 1 if you have the `idn2' library (-lidn2).])
3502 if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
3533 AC_HELP_STRING([--with-nghttp2=PATH],[Enable nghttp2 usage])
3534 AC_HELP_STRING([--without-nghttp2],[Disable nghttp2 usage]),
3538 dnl --without-nghttp2 option used
3542 dnl --with-nghttp2 option used without path
3547 dnl --with-nghttp2 option used with path
3553 curl_h2_msg="no (--with-nghttp2)"
3555 dnl backup the pre-nghttp2 variables
3564 $PKGCONFIG --libs-only-l libnghttp2`
3565 AC_MSG_NOTICE([-l is $LIB_H2])
3568 $PKGCONFIG --cflags-only-I libnghttp2`
3569 AC_MSG_NOTICE([-I is $CPP_H2])
3572 $PKGCONFIG --libs-only-L libnghttp2`
3573 AC_MSG_NOTICE([-L is $LD_H2])
3597 dnl no nghttp2 pkg-config found, deal with it
3599 dnl To avoid link errors, we do not allow --with-nghttp2 without
3601 AC_MSG_ERROR([--with-nghttp2 was specified but could not find libnghttp2 pkg-config file.])
3612 curl_h3_msg="no (--with-ngtcp2, --with-quiche)"
3620 AC_HELP_STRING([--with-ngtcp2=PATH],[Enable ngtcp2 usage])
3621 AC_HELP_STRING([--without-ngtcp2],[Disable ngtcp2 usage]),
3625 dnl --without-ngtcp2 option used
3629 dnl --with-ngtcp2 option used without path
3634 dnl --with-ngtcp2 option used with path
3640 curl_tcp2_msg="no (--with-ngtcp2)"
3642 dnl backup the pre-ngtcp2 variables
3651 $PKGCONFIG --libs-only-l libngtcp2`
3652 AC_MSG_NOTICE([-l is $LIB_TCP2])
3655 $PKGCONFIG --cflags-only-I libngtcp2`
3656 AC_MSG_NOTICE([-I is $CPP_TCP2])
3659 $PKGCONFIG --libs-only-L libngtcp2`
3660 AC_MSG_NOTICE([-L is $LD_TCP2])
3667 DIR_TCP2=`echo $LD_TCP2 | $SED -e 's/^-L//'`
3687 dnl no ngtcp2 pkg-config found, deal with it
3689 dnl To avoid link errors, we do not allow --with-ngtcp2 without
3691 AC_MSG_ERROR([--with-ngtcp2 was specified but could not find ngtcp2 pkg-config file.])
3697 if test "x$NGTCP2_ENABLED" = "x1" -a "x$OPENSSL_ENABLED" = "x1"; then
3698 dnl backup the pre-ngtcp2_crypto_openssl variables
3707 $PKGCONFIG --libs-only-l libngtcp2_crypto_openssl`
3708 AC_MSG_NOTICE([-l is $LIB_NGTCP2_CRYPTO_OPENSSL])
3711 $PKGCONFIG --cflags-only-I libngtcp2_crypto_openssl`
3712 AC_MSG_NOTICE([-I is $CPP_NGTCP2_CRYPTO_OPENSSL])
3715 $PKGCONFIG --libs-only-L libngtcp2_crypto_openssl`
3716 AC_MSG_NOTICE([-L is $LD_NGTCP2_CRYPTO_OPENSSL])
3723 DIR_NGTCP2_CRYPTO_OPENSSL=`echo $LD_NGTCP2_CRYPTO_OPENSSL | $SED -e 's/^-L//'`
3743 dnl no ngtcp2_crypto_openssl pkg-config found, deal with it
3745 dnl To avoid link errors, we do not allow --with-ngtcp2 without
3747 …AC_MSG_ERROR([--with-ngtcp2 was specified but could not find ngtcp2_crypto_openssl pkg-config file…
3752 if test "x$NGTCP2_ENABLED" = "x1" -a "x$GNUTLS_ENABLED" = "x1"; then
3753 dnl backup the pre-ngtcp2_crypto_gnutls variables
3762 $PKGCONFIG --libs-only-l libngtcp2_crypto_gnutls`
3763 AC_MSG_NOTICE([-l is $LIB_NGTCP2_CRYPTO_GNUTLS])
3766 $PKGCONFIG --cflags-only-I libngtcp2_crypto_gnutls`
3767 AC_MSG_NOTICE([-I is $CPP_NGTCP2_CRYPTO_GNUTLS])
3770 $PKGCONFIG --libs-only-L libngtcp2_crypto_gnutls`
3771 AC_MSG_NOTICE([-L is $LD_NGTCP2_CRYPTO_GNUTLS])
3778 DIR_NGTCP2_CRYPTO_GNUTLS=`echo $LD_NGTCP2_CRYPTO_GNUTLS | $SED -e 's/^-L//'`
3798 dnl no ngtcp2_crypto_gnutls pkg-config found, deal with it
3800 dnl To avoid link errors, we do not allow --with-ngtcp2 without
3802 …AC_MSG_ERROR([--with-ngtcp2 was specified but could not find ngtcp2_crypto_gnutls pkg-config file.…
3819 AC_HELP_STRING([--with-nghttp3=PATH],[Enable nghttp3 usage])
3820 AC_HELP_STRING([--without-nghttp3],[Disable nghttp3 usage]),
3824 dnl --without-nghttp3 option used
3828 dnl --with-nghttp3 option used without path
3833 dnl --with-nghttp3 option used with path
3839 curl_http3_msg="no (--with-nghttp3)"
3841 dnl backup the pre-nghttp3 variables
3850 $PKGCONFIG --libs-only-l libnghttp3`
3851 AC_MSG_NOTICE([-l is $LIB_NGHTTP3])
3854 $PKGCONFIG --cflags-only-I libnghttp3`
3855 AC_MSG_NOTICE([-I is $CPP_NGHTTP3])
3858 $PKGCONFIG --libs-only-L libnghttp3`
3859 AC_MSG_NOTICE([-L is $LD_NGHTTP3])
3866 DIR_NGHTTP3=`echo $LD_NGHTTP3 | $SED -e 's/^-L//'`
3888 dnl no nghttp3 pkg-config found, deal with it
3890 dnl To avoid link errors, we do not allow --with-nghttp3 without
3892 AC_MSG_ERROR([--with-nghttp3 was specified but could not find nghttp3 pkg-config file.])
3904 if test "x$disable_http" = "xyes" -o "x$USE_NGTCP" = "x1"; then
3910 AC_HELP_STRING([--with-quiche=PATH],[Enable quiche usage])
3911 AC_HELP_STRING([--without-quiche],[Disable quiche usage]),
3915 dnl --without-quiche option used
3919 dnl --with-quiche option used without path
3924 dnl --with-quiche option used with path
3931 dnl backup the pre-quiche variables
3940 $PKGCONFIG --libs-only-l quiche`
3941 AC_MSG_NOTICE([-l is $LIB_QUICHE])
3944 $PKGCONFIG --cflags-only-I quiche`
3945 AC_MSG_NOTICE([-I is $CPP_QUICHE])
3948 $PKGCONFIG --libs-only-L quiche`
3949 AC_MSG_NOTICE([-L is $LD_QUICHE])
3956 DIR_QUICHE=`echo $LD_QUICHE | $SED -e 's/^-L//'`
3979 dnl no quiche pkg-config found, deal with it
3981 dnl To avoid link errors, we do not allow --with-quiche without
3983 AC_MSG_ERROR([--with-quiche was specified but could not find quiche pkg-config file.])
3993 AC_ARG_WITH(zsh-functions-dir,
3994 AC_HELP_STRING([--with-zsh-functions-dir=PATH],[Install zsh completions to PATH])
3995 AC_HELP_STRING([--without-zsh-functions-dir],[Do not install zsh completions]),
3999 dnl --without-zsh-functions-dir option used
4002 dnl --with-zsh-functions-dir option used without path
4003 ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions"
4007 dnl --with-zsh-functions-dir option used with path
4018 AC_ARG_WITH(fish-functions-dir,
4019 AC_HELP_STRING([--with-fish-functions-dir=PATH],[Install fish completions to PATH])
4020 AC_HELP_STRING([--without-fish-functions-dir],[Do not install fish completions]),
4024 dnl --without-fish-functions-dir option used
4027 dnl --with-fish-functions-dir option used without path
4030 FISH_FUNCTIONS_DIR="$($PKGCONFIG --variable completionsdir fish)"
4037 dnl --with-fish-functions-dir option used with path
4054 dnl ones as default-headers when checking for the rest!
4147 CPPFLAGS="-I$srcdir/include $CPPFLAGS"
4230 time_t t = -1;
4238 dnl cross-compiling, most systems are unsigned
4376 if test -n "$NROFF"; then
4380 MANOPT="-man"
4382 if test -z "$mancheck"; then
4383 MANOPT="-mandoc"
4385 if test -z "$mancheck"; then
4398 if test -z "$MANOPT"
4401 dnl was found, then disable the built-in manual stuff
4402 AC_MSG_WARN([disabling built-in manual])
4407 dnl If the manual variable still is set, then we go with providing a built-in
4411 AC_DEFINE(USE_MANUAL, 1, [If you want to build curl with the built-in manual])
4438 AC_HELP_STRING([--enable-pthreads],
4440 AC_HELP_STRING([--disable-pthreads],[Disable POSIX threads]),
4457 AC_MSG_ERROR([options --enable-pthreads and --disable-rt are mutually exclusive])
4460 dnl if --enable-pthreads was explicit then warn it's being ignored
4462 AC_MSG_WARN([--enable-pthreads Ignored since librt is disabled.])
4478 dnl When statically linking against boringssl, -lpthread is added to LIBS.
4480 dnl -pthread in CFLAGS as recommended for GCC. This also ensures that
4492 *-hp-hpux*)
4493 dnl it doesn't actually work without -lpthread
4503 CFLAGS="$CFLAGS -pthread"
4520 AC_MSG_ERROR([--enable-pthreads but pthreads was not found])
4539 AC_HELP_STRING([--enable-verbose],[Enable verbose strings])
4540 AC_HELP_STRING([--disable-verbose],[Disable verbose strings]),
4558 AC_HELP_STRING([--enable-sspi],[Enable SSPI])
4559 AC_HELP_STRING([--disable-sspi],[Disable SSPI]),
4569 AC_MSG_WARN([--enable-sspi Ignored. Only supported on native Windows builds.])
4574 # --with-schannel implies --enable-sspi
4582 # --with-schannel implies --enable-sspi
4593 AC_ARG_ENABLE(crypto-auth,
4594 AC_HELP_STRING([--enable-crypto-auth],[Enable cryptographic authentication])
4595 AC_HELP_STRING([--disable-crypto-auth],[Disable cryptographic authentication]),
4613 dnl disable TLS-SRP authentication
4615 AC_MSG_CHECKING([whether to enable TLS-SRP authentication])
4616 AC_ARG_ENABLE(tls-srp,
4617 AC_HELP_STRING([--enable-tls-srp],[Enable TLS-SRP authentication])
4618 AC_HELP_STRING([--disable-tls-srp],[Disable TLS-SRP authentication]),
4633 AC_DEFINE(USE_TLS_SRP, 1, [Use TLS-SRP authentication])
4642 AC_ARG_ENABLE(unix-sockets,
4643 AC_HELP_STRING([--enable-unix-sockets],[Enable Unix domain sockets])
4644 AC_HELP_STRING([--disable-unix-sockets],[Disable Unix domain sockets]),
4664 AC_MSG_ERROR([--enable-unix-sockets is not available on this platform!])
4676 AC_HELP_STRING([--enable-cookies],[Enable cookies support])
4677 AC_HELP_STRING([--disable-cookies],[Disable cookies support]),
4694 AC_HELP_STRING([--enable-socketpair],[Enable socketpair support])
4695 AC_HELP_STRING([--disable-socketpair],[Disable socketpair support]),
4711 AC_ARG_ENABLE(http-auth,
4712 AC_HELP_STRING([--enable-http-auth],[Enable HTTP authentication support])
4713 AC_HELP_STRING([--disable-http-auth],[Disable HTTP authentication support]),
4730 AC_HELP_STRING([--enable-doh],[Enable DoH support])
4731 AC_HELP_STRING([--disable-doh],[Disable DoH support]),
4748 AC_HELP_STRING([--enable-mime],[Enable mime API support])
4749 AC_HELP_STRING([--disable-mime],[Disable mime API support]),
4766 AC_HELP_STRING([--enable-dateparse],[Enable date parsing])
4767 AC_HELP_STRING([--disable-dateparse],[Disable date parsing]),
4784 AC_HELP_STRING([--enable-netrc],[Enable netrc parsing])
4785 AC_HELP_STRING([--disable-netrc],[Disable netrc parsing]),
4798 dnl disable progress-meter
4800 AC_MSG_CHECKING([whether to support progress-meter])
4801 AC_ARG_ENABLE(progress-meter,
4802 AC_HELP_STRING([--enable-progress-meter],[Enable progress-meter])
4803 AC_HELP_STRING([--disable-progress-meter],[Disable progress-meter]),
4807 AC_DEFINE(CURL_DISABLE_PROGRESS_METER, 1, [disable progress-meter])
4820 AC_HELP_STRING([--enable-dnsshuffle],[Enable DNS shuffling])
4821 AC_HELP_STRING([--disable-dnsshuffle],[Disable DNS shuffling]),
4837 AC_ARG_ENABLE(get-easy-option,
4838 AC_HELP_STRING([--enable-get-easy-options],[Enable curl_easy_options])
4839 AC_HELP_STRING([--disable-get-easy-options],[Disable curl_easy_options]),
4852 dnl switch on/off alt-svc
4854 curl_altsvc_msg="no (--enable-alt-svc)";
4855 AC_MSG_CHECKING([whether to support alt-svc])
4856 AC_ARG_ENABLE(alt-svc,
4857 AC_HELP_STRING([--enable-alt-svc],[Enable alt-svc support])
4858 AC_HELP_STRING([--disable-alt-svc],[Disable alt-svc support]),
4872 AC_DEFINE(USE_ALTSVC, 1, [to enable alt-svc])
4873 experimental="$experimental alt-svc"
4902 AC_MSG_ERROR([--enable-ech ignored: No ECH support found])
4933 dnl to let curl-config output the static libraries correctly
4937 dnl merge the pkg-config Libs.private field into Libs when static-only
4946 dnl For keeping supported features and protocols also in pkg-config file
4947 dnl since it is more cross-compile friendly than curl-config
4952 elif test -n "$SSL_ENABLED"; then
4970 if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \
4971 -o "x$USE_THREADS_WIN32" = "x1"; then
4982 SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
4990 SUPPORT_FEATURES="$SUPPORT_FEATURES alt-svc"
4993 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
4994 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
4998 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
4999 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
5004 if test "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
5005 -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
5006 -o "x$NSS_ENABLED" = "x1" -o "x$SECURETRANSPORT_ENABLED" = "x1" \
5007 -o "x$WOLFSSL_NTLM" = "x1"; then
5010 if test "x$CURL_DISABLE_HTTP" != "x1" -a \
5018 SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
5025 if test "x$USE_NGTCP2" = "x1" -o "x$USE_QUICHE" = "x1"; then
5033 dnl if not explictily turned off, HTTPS-proxy comes with some TLS backends
5035 if test "x$OPENSSL_ENABLED" = "x1" -o "x$GNUTLS_ENABLED" = "x1" \
5036 -o "x$NSS_ENABLED" = "x1"; then
5037 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
5051 dnl For supported protocols in pkg-config file
5104 -a "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" \
5105 -a \( "x$OPENSSL_ENABLED" = "x1" \
5106 -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
5107 -o "x$NSS_ENABLED" = "x1" -o "x$SECURETRANSPORT_ENABLED" = "x1" \
5108 -o "x$WOLFSSL_NTLM" = "x1" \); then
5167 ac_configure_args="$ac_configure_args --enable-curldebug"
5175 docs/cmdline-opts/Makefile \
5191 curl-config \
5216 GSS-API: ${curl_gss_msg}
5217 TLS-SRP: ${curl_tls_srp_msg}
5223 Built-in manual: ${curl_manual_msg}
5224 --libcurl option: ${curl_libcurl_msg}
5237 Alt-svc: ${curl_altsvc_msg}
5244 if test -n "$experimental"; then