# this lists complete lines that will be removed from the output if
# matching
my %remove = (
- '#define _FILE_OFFSET_BITS 64' => 1,
'#define CURL_EXTERN_SYMBOL' => 1,
- '#define CURL_SA_FAMILY_T sa_family_t' => 1,
+ '#define CURL_OS "Linux"' => 1,
+ '#define CURL_OS "x86_64-pc-linux-gnu"' => 1,
'#define CURL_SA_FAMILY_T ADDRESS_FAMILY' => 1,
- '#define HAVE_ADDRESS_FAMILY 1' => 1,
- '#define GETHOSTNAME_TYPE_ARG2 size_t' => 1,
+ '#define CURL_SA_FAMILY_T sa_family_t' => 1,
'#define GETHOSTNAME_TYPE_ARG2 int' => 1,
+ '#define GETHOSTNAME_TYPE_ARG2 size_t' => 1,
+ '#define HAVE_ADDRESS_FAMILY 1' => 1,
'#define HAVE_BROTLI 1' => 1,
'#define HAVE_BROTLI_DECODE_H 1' => 1,
- '#define HAVE_DECL_GETPWUID_R 1' => 1,
'#define HAVE_DECL_GETPWUID_R 0' => 1,
+ '#define HAVE_DECL_GETPWUID_R 1' => 1,
'#define HAVE_DECL_GETPWUID_R_MISSING 1' => 1,
'#define HAVE_DLFCN_H 1' => 1,
- '#define HAVE_GETHOSTBYNAME 1' => 1,
'#define HAVE_GSSAPI_GSSAPI_KRB5_H 1' => 1,
'#define HAVE_INTTYPES_H 1' => 1,
'#define HAVE_IOCTL 1' => 1,
'#define HAVE_LDAP_H 1' => 1,
'#define HAVE_LDAP_SSL 1' => 1,
'#define HAVE_LIBBROTLIDEC 1' => 1,
+ '#define HAVE_LIBPSL_H 1' => 1,
+ '#define HAVE_LIBRTMP_RTMP_H 1' => 1,
'#define HAVE_LIBSOCKET 1' => 1,
+ '#define HAVE_LIBSSH' => 1,
'#define HAVE_LIBSSH2 1' => 1,
'#define HAVE_LIBSSL 1' => 1,
+ '#define HAVE_LIBWOLFSSH' => 1,
'#define HAVE_LIBZSTD 1' => 1,
+ '#define HAVE_MSH3_H 1' => 1,
'#define HAVE_NGHTTP2_NGHTTP2_H 1' => 1,
+ '#define HAVE_NGHTTP3_NGHTTP3_H 1' => 1,
+ '#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1' => 1,
+ '#define HAVE_NGTCP2_NGTCP2_H 1' => 1,
'#define HAVE_OPENSSL_CRYPTO_H 1' => 1,
'#define HAVE_OPENSSL_ERR_H 1' => 1,
'#define HAVE_OPENSSL_PEM_H 1' => 1,
'#define HAVE_OPENSSL_RSA_H 1' => 1,
'#define HAVE_OPENSSL_SSL_H 1' => 1,
'#define HAVE_OPENSSL_X509_H 1' => 1,
+ '#define HAVE_QUICHE_H 1' => 1,
'#define HAVE_SA_FAMILY_T 1' => 1,
'#define HAVE_SETJMP_H 1' => 1,
+ '#define HAVE_SSL_ECH_SET1_ECHCONFIG 1' => 1,
+ '#define HAVE_SSL_SET1_ECH_CONFIG_LIST 1' => 1,
+ '#define HAVE_SSL_SET_QUIC_USE_LEGACY_CODEPOINT 1' => 1,
'#define HAVE_STDINT_H 1' => 1,
'#define HAVE_STDIO_H 1' => 1,
'#define HAVE_STDLIB_H 1' => 1,
'#define HAVE_STRING_H 1' => 1,
'#define HAVE_SYS_XATTR_H 1' => 1,
+ '#define HAVE_UNICODE_UIDNA_H 1' => 1,
+ '#define HAVE_WOLFSSH_SSH_H 1' => 1,
+ '#define HAVE_WOLFSSL_CTX_GENERATEECHCONFIG 1' => 1,
'#define HAVE_ZSTD 1' => 1,
'#define HAVE_ZSTD_H 1' => 1,
'#define LT_OBJDIR ".libs/"' => 1,
'#define NEED_LBER_H 1' => 1,
- '#define CURL_OS "Linux"' => 1,
- '#define CURL_OS "x86_64-pc-linux-gnu"' => 1,
'#define PACKAGE "curl"' => 1,
'#define PACKAGE_BUGREPORT "a suitable curl mailing list: https://curl.se/mail/"' => 1,
'#define PACKAGE_NAME "curl"' => 1,
'#define PACKAGE_VERSION "-"' => 1,
'#define SIZEOF_LONG_LONG 8' => 1,
'#define VERSION "-"' => 1,
+ '#define _FILE_OFFSET_BITS 64' => 1,
);
sub filter {
VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/curl/curlver.h`
AC_SUBST(VERSIONNUM)
-dnl Solaris pkgadd support definitions
-PKGADD_PKG="HAXXcurl"
-PKGADD_NAME="curl - a client that groks URLs"
-PKGADD_VENDOR="curl.se"
-AC_SUBST(PKGADD_PKG)
-AC_SUBST(PKGADD_NAME)
-AC_SUBST(PKGADD_VENDOR)
-
dnl
dnl initialize all the info variables
curl_ssl_msg="no (--with-{openssl,gnutls,mbedtls,wolfssl,schannel,secure-transport,amissl,bearssl,rustls} )"
AC_DEFINE(CURL_DISABLE_HTTP, 1, [to disable HTTP])
disable_http="yes"
AC_MSG_WARN([disable HTTP disables FTP over proxy, IPFS and RTSP])
- AC_SUBST(CURL_DISABLE_HTTP, [1])
+ CURL_DISABLE_HTTP=1
AC_DEFINE(CURL_DISABLE_IPFS, 1, [to disable IPFS])
- AC_SUBST(CURL_DISABLE_IPFS, [1])
+ CURL_DISABLE_IPFS=1
AC_DEFINE(CURL_DISABLE_RTSP, 1, [to disable RTSP])
- AC_SUBST(CURL_DISABLE_RTSP, [1])
+ CURL_DISABLE_RTSP=1
dnl toggle off alt-svc too when HTTP is disabled
AC_DEFINE(CURL_DISABLE_ALTSVC, 1, [disable alt-svc])
AC_DEFINE(CURL_DISABLE_HSTS, 1, [disable HSTS])
no)
AC_MSG_RESULT(no)
AC_DEFINE(CURL_DISABLE_FTP, 1, [to disable FTP])
- AC_SUBST(CURL_DISABLE_FTP, [1])
+ CURL_DISABLE_FTP=1
;;
*)
AC_MSG_RESULT(yes)
no)
AC_MSG_RESULT(no)
AC_DEFINE(CURL_DISABLE_FILE, 1, [to disable FILE])
- AC_SUBST(CURL_DISABLE_FILE, [1])
+ CURL_DISABLE_FILE=1
;;
*)
AC_MSG_RESULT(yes)
no)
AC_MSG_RESULT(no)
AC_DEFINE(CURL_DISABLE_IPFS, 1, [to disable IPFS])
- AC_SUBST(CURL_DISABLE_IPFS, [1])
+ CURL_DISABLE_IPFS=1
;;
*)
if test x$CURL_DISABLE_HTTP = x1; then
no)
AC_MSG_RESULT(no)
AC_DEFINE(CURL_DISABLE_LDAP, 1, [to disable LDAP])
- AC_SUBST(CURL_DISABLE_LDAP, [1])
+ CURL_DISABLE_LDAP=1
;;
yes)
ldap_askedfor="yes"
no)
AC_MSG_RESULT(no)
AC_DEFINE(CURL_DISABLE_LDAPS, 1, [to disable LDAPS])
- AC_SUBST(CURL_DISABLE_LDAPS, [1])
+ CURL_DISABLE_LDAPS=1
;;
*)
if test "x$CURL_DISABLE_LDAP" = "x1"; then
AC_MSG_RESULT(LDAP needs to be enabled to support LDAPS)
AC_DEFINE(CURL_DISABLE_LDAPS, 1, [to disable LDAPS])
- AC_SUBST(CURL_DISABLE_LDAPS, [1])
+ CURL_DISABLE_LDAPS=1
else
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_LDAP_SSL, 1, [Use LDAPS implementation])
- AC_SUBST(HAVE_LDAP_SSL, [1])
+ HAVE_LDAP_SSL=1
fi
;;
esac ],[
if test "x$CURL_DISABLE_LDAP" = "x1"; then
AC_MSG_RESULT(no)
AC_DEFINE(CURL_DISABLE_LDAPS, 1, [to disable LDAPS])
- AC_SUBST(CURL_DISABLE_LDAPS, [1])
+ CURL_DISABLE_LDAPS=1
else
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_LDAP_SSL, 1, [Use LDAPS implementation])
- AC_SUBST(HAVE_LDAP_SSL, [1])
+ HAVE_LDAP_SSL=1
fi ]
)
if test X"$want_hyper" != Xno; then
AC_MSG_NOTICE([Disable RTSP support with hyper])
AC_DEFINE(CURL_DISABLE_RTSP, 1, [to disable RTSP])
- AC_SUBST(CURL_DISABLE_RTSP, [1])
+ CURL_DISABLE_RTSP=1
else
AC_MSG_CHECKING([whether to support rtsp])
AC_ARG_ENABLE(rtsp,
no)
AC_MSG_RESULT(no)
AC_DEFINE(CURL_DISABLE_RTSP, 1, [to disable RTSP])
- AC_SUBST(CURL_DISABLE_RTSP, [1])
+ CURL_DISABLE_RTSP=1
;;
*)
if test x$CURL_DISABLE_HTTP = x1; then
no)
AC_MSG_RESULT(no)
AC_DEFINE(CURL_DISABLE_PROXY, 1, [to disable proxies])
- AC_SUBST(CURL_DISABLE_PROXY, [1])
+ CURL_DISABLE_PROXY=1
https_proxy="no"
;;
*)
no)
AC_MSG_RESULT(no)
AC_DEFINE(CURL_DISABLE_DICT, 1, [to disable DICT])
- AC_SUBST(CURL_DISABLE_DICT, [1])
+ CURL_DISABLE_DICT=1
;;
*)
AC_MSG_RESULT(yes)
no)
AC_MSG_RESULT(no)
AC_DEFINE(CURL_DISABLE_TELNET, 1, [to disable TELNET])
- AC_SUBST(CURL_DISABLE_TELNET, [1])
+ CURL_DISABLE_TELNET=1
;;
*)
AC_MSG_RESULT(yes)
no)
AC_MSG_RESULT(no)
AC_DEFINE(CURL_DISABLE_TFTP, 1, [to disable TFTP])
- AC_SUBST(CURL_DISABLE_TFTP, [1])
+ CURL_DISABLE_TFTP=1
;;
*)
AC_MSG_RESULT(yes)
no)
AC_MSG_RESULT(no)
AC_DEFINE(CURL_DISABLE_POP3, 1, [to disable POP3])
- AC_SUBST(CURL_DISABLE_POP3, [1])
+ CURL_DISABLE_POP3=1
;;
*)
AC_MSG_RESULT(yes)
no)
AC_MSG_RESULT(no)
AC_DEFINE(CURL_DISABLE_IMAP, 1, [to disable IMAP])
- AC_SUBST(CURL_DISABLE_IMAP, [1])
+ CURL_DISABLE_IMAP=1
;;
*)
AC_MSG_RESULT(yes)
no)
AC_MSG_RESULT(no)
AC_DEFINE(CURL_DISABLE_SMB, 1, [to disable SMB/CIFS])
- AC_SUBST(CURL_DISABLE_SMB, [1])
+ CURL_DISABLE_SMB=1
;;
*)
AC_MSG_RESULT(yes)
no)
AC_MSG_RESULT(no)
AC_DEFINE(CURL_DISABLE_SMTP, 1, [to disable SMTP])
- AC_SUBST(CURL_DISABLE_SMTP, [1])
+ CURL_DISABLE_SMTP=1
;;
*)
AC_MSG_RESULT(yes)
no)
AC_MSG_RESULT(no)
AC_DEFINE(CURL_DISABLE_GOPHER, 1, [to disable Gopher])
- AC_SUBST(CURL_DISABLE_GOPHER, [1])
+ CURL_DISABLE_GOPHER=1
;;
*)
AC_MSG_RESULT(yes)
no)
AC_MSG_RESULT(no)
AC_DEFINE(CURL_DISABLE_MQTT, 1, [to disable MQTT])
- AC_SUBST(CURL_DISABLE_MQTT, [1])
+ CURL_DISABLE_MQTT=1
;;
*)
AC_MSG_RESULT(yes)
HAVE_GETHOSTBYNAME="1"
HAVE_PROTO_BSDSOCKET_H="1"
AC_DEFINE(HAVE_PROTO_BSDSOCKET_H, 1, [if Amiga bsdsocket.library is in use])
- AC_SUBST(HAVE_PROTO_BSDSOCKET_H, [1])
],[
AC_MSG_RESULT([no])
])
CURL_CHECK_LIBS_CONNECT
-CURL_NETWORK_LIBS=$LIBS
-
dnl **********************************************************************
dnl In case that function clock_gettime with monotonic timer is available,
dnl check for additional required libraries.
curl_brotli_msg="enabled (libbrotlidec)"
HAVE_BROTLI=1
AC_DEFINE(HAVE_BROTLI, 1, [if BROTLI is in use])
- AC_SUBST(HAVE_BROTLI, [1])
)
if test X"$OPT_BROTLI" != Xoff &&
curl_zstd_msg="enabled (libzstd)"
HAVE_ZSTD=1
AC_DEFINE(HAVE_ZSTD, 1, [if libzstd is in use])
- AC_SUBST(HAVE_ZSTD, [1])
)
if test X"$OPT_ZSTD" != Xoff &&
fi
AC_MSG_WARN(["$LDAPLIBNAME" is not an LDAP library: LDAP disabled])
AC_DEFINE(CURL_DISABLE_LDAP, 1, [to disable LDAP])
- AC_SUBST(CURL_DISABLE_LDAP, [1])
+ CURL_DISABLE_LDAP=1
AC_DEFINE(CURL_DISABLE_LDAPS, 1, [to disable LDAPS])
- AC_SUBST(CURL_DISABLE_LDAPS, [1])])
+ CURL_DISABLE_LDAPS=1
+ ]
+ )
else
dnl Try to find the right ldap libraries for this system
CURL_CHECK_LIBS_LDAP
fi
AC_MSG_WARN([Cannot find libraries for LDAP support: LDAP disabled])
AC_DEFINE(CURL_DISABLE_LDAP, 1, [to disable LDAP])
- AC_SUBST(CURL_DISABLE_LDAP, [1])
+ CURL_DISABLE_LDAP=1
AC_DEFINE(CURL_DISABLE_LDAPS, 1, [to disable LDAPS])
- AC_SUBST(CURL_DISABLE_LDAPS, [1])
+ CURL_DISABLE_LDAPS=1
;;
esac
fi
AC_CHECK_LIB("$LBERLIBNAME", ber_free,, [
AC_MSG_WARN(["$LBERLIBNAME" is not an LBER library: LDAP disabled])
AC_DEFINE(CURL_DISABLE_LDAP, 1, [to disable LDAP])
- AC_SUBST(CURL_DISABLE_LDAP, [1])
+ CURL_DISABLE_LDAP=1
AC_DEFINE(CURL_DISABLE_LDAPS, 1, [to disable LDAPS])
- AC_SUBST(CURL_DISABLE_LDAPS, [1])])
+ CURL_DISABLE_LDAPS=1
+ ]
+ )
fi
fi
fi
if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
curl_ldap_msg="enabled (OpenLDAP)"
AC_DEFINE(USE_OPENLDAP, 1, [Use OpenLDAP-specific code])
- AC_SUBST(USE_OPENLDAP, [1])
+ USE_OPENLDAP=1
else
curl_ldap_msg="enabled (ancient OpenLDAP)"
fi
curl_ipv6_msg="enabled"
AC_DEFINE(USE_IPV6, 1, [Define if you want to enable IPv6 support])
IPV6_ENABLED=1
- AC_SUBST(IPV6_ENABLED)
AC_MSG_CHECKING([if struct sockaddr_in6 has sin6_scope_id member])
AC_COMPILE_IFELSE([ AC_LANG_PROGRAM([[
;;
*)
dnl --with-default-ssl-backend option used with name
- AC_SUBST(DEFAULT_SSL_BACKEND)
dnl needs to be validated below
VALID_DEFAULT_SSL_BACKEND=no
;;
CURL_WITH_BEARSSL
CURL_WITH_RUSTLS
-dnl link required libraries for USE_WIN32_CRYPTO or USE_SCHANNEL
-if test "x$USE_WIN32_CRYPTO" = "x1" -o "x$USE_SCHANNEL" = "x1"; then
+dnl link required libraries for USE_WIN32_CRYPTO or SCHANNEL_ENABLED
+if test "x$USE_WIN32_CRYPTO" = "x1" -o "x$SCHANNEL_ENABLED" = "x1"; then
LIBS="-ladvapi32 -lcrypt32 $LIBS"
fi
;;
x1)
# one SSL backend is enabled
- AC_SUBST(SSL_ENABLED)
SSL_ENABLED="1"
AC_MSG_NOTICE([built with one SSL backend])
;;
;;
*)
# more than one SSL backend is enabled
- AC_SUBST(SSL_ENABLED)
SSL_ENABLED="1"
- AC_SUBST(CURL_WITH_MULTI_SSL)
CURL_WITH_MULTI_SSL="1"
AC_DEFINE(CURL_WITH_MULTI_SSL, 1, [built with multiple SSL backends])
AC_MSG_NOTICE([built with multiple SSL backends])
[
AC_CHECK_HEADERS(libpsl.h,
curl_psl_msg="enabled"
- LIBPSL_ENABLED=1
AC_DEFINE(USE_LIBPSL, 1, [if libpsl is in use])
- AC_SUBST(USE_LIBPSL, [1])
+ USE_LIBPSL=1
LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE libpsl"
)
],
LIBS=$CLEANLIBS
)
- if test "$LIBPSL_ENABLED" != "1"; then
+ if test "$USE_LIBPSL" != "1"; then
AC_MSG_ERROR([libpsl libs and/or directories were not found where specified!])
fi
fi
AC_CHECK_HEADER(libssh2.h,
curl_ssh_msg="enabled (libssh2)"
- LIBSSH2_ENABLED=1
AC_DEFINE(USE_LIBSSH2, 1, [if libssh2 is in use])
- AC_SUBST(USE_LIBSSH2, [1])
+ USE_LIBSSH2=1
)
if test X"$OPT_LIBSSH2" != Xoff &&
- test "$LIBSSH2_ENABLED" != "1"; then
+ test "$USE_LIBSSH2" != "1"; then
AC_MSG_ERROR([libssh2 libs and/or directories were not found where specified!])
fi
- if test "$LIBSSH2_ENABLED" = "1"; then
+ if test "$USE_LIBSSH2" = "1"; then
if test -n "$DIR_SSH2"; then
dnl when the libssh2 shared libs were found in a path that the run-time
dnl linker doesn't search through, we need to add it to CURL_LIBRARY_PATH
AC_CHECK_HEADER(libssh/libssh.h,
curl_ssh_msg="enabled (libssh)"
- LIBSSH_ENABLED=1
AC_DEFINE(USE_LIBSSH, 1, [if libssh is in use])
- AC_SUBST(USE_LIBSSH, [1])
+ USE_LIBSSH=1
)
if test X"$OPT_LIBSSH" != Xoff &&
- test "$LIBSSH_ENABLED" != "1"; then
+ test "$USE_LIBSSH" != "1"; then
AC_MSG_ERROR([libssh libs and/or directories were not found where specified!])
fi
- if test "$LIBSSH_ENABLED" = "1"; then
+ if test "$USE_LIBSSH" = "1"; then
if test "$curl_cv_native_windows" = "yes"; then
dnl for if_nametoindex
LIBS="-liphlpapi $LIBS"
AC_CHECK_HEADERS(wolfssh/ssh.h,
curl_ssh_msg="enabled (wolfSSH)"
- WOLFSSH_ENABLED=1
AC_DEFINE(USE_WOLFSSH, 1, [if wolfSSH is in use])
- AC_SUBST(USE_WOLFSSH, [1])
+ USE_WOLFSSH=1
)
fi
[
AC_CHECK_HEADERS(librtmp/rtmp.h,
curl_rtmp_msg="enabled (librtmp)"
- LIBRTMP_ENABLED=1
AC_DEFINE(USE_LIBRTMP, 1, [if librtmp is in use])
- AC_SUBST(USE_LIBRTMP, [1])
+ USE_LIBRTMP=1
LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE librtmp"
)
],
)
if test X"$OPT_LIBRTMP" != Xoff &&
- test "$LIBRTMP_ENABLED" != "1"; then
+ test "$USE_LIBRTMP" != "1"; then
AC_MSG_ERROR([librtmp libs and/or directories were not found where specified!])
fi
fi
#
if test "$tst_links_winidn" = "yes"; then
AC_DEFINE(USE_WIN32_IDN, 1, [Define to 1 if you have the `normaliz' (WinIDN) library (-lnormaliz).])
- AC_SUBST([IDN_ENABLED], [1])
+ IDN_ENABLED=1
curl_idn_msg="enabled (Windows-native)"
else
AC_MSG_WARN([Cannot find libraries for IDN support: IDN disabled])
AC_CHECK_HEADERS(unicode/uidna.h,
curl_idn_msg="enabled (AppleIDN)"
AC_DEFINE(USE_APPLE_IDN, 1, [if AppleIDN])
- AC_SUBST(USE_APPLE_IDN, [1])
- AC_SUBST([IDN_ENABLED], [1])
+ USE_APPLE_IDN=1
+ IDN_ENABLED=1
LIBS="-licucore -liconv $LIBS"
tst_links_appleidn='yes'
)
AC_DEFINE(HAVE_LIBIDN2, 1, [Define to 1 if you have the `idn2' library (-lidn2).])
dnl different versions of libidn have different setups of these:
- AC_SUBST([IDN_ENABLED], [1])
+ IDN_ENABLED=1
curl_idn_msg="enabled (libidn2)"
if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$IDN_DIR"
[
AC_CHECK_HEADERS(nghttp2/nghttp2.h,
curl_h2_msg="enabled (nghttp2)"
- NGHTTP2_ENABLED=1
AC_DEFINE(USE_NGHTTP2, 1, [if nghttp2 is in use])
- AC_SUBST(USE_NGHTTP2, [1])
+ USE_NGHTTP2=1
LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE libnghttp2"
)
AC_CHECK_LIB(ngtcp2, ngtcp2_conn_client_new_versioned,
[
AC_CHECK_HEADERS(ngtcp2/ngtcp2.h,
- NGTCP2_ENABLED=1
AC_DEFINE(USE_NGTCP2, 1, [if ngtcp2 is in use])
- AC_SUBST(USE_NGTCP2, [1])
+ USE_NGTCP2=1
CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_TCP2"
export CURL_LIBRARY_PATH
AC_MSG_NOTICE([Added $DIR_TCP2 to CURL_LIBRARY_PATH])
fi
fi
-if test "x$NGTCP2_ENABLED" = "x1" -a "x$OPENSSL_ENABLED" = "x1" -a "x$OPENSSL_IS_BORINGSSL" != "x1"; then
+if test "x$USE_NGTCP2" = "x1" -a "x$OPENSSL_ENABLED" = "x1" -a "x$OPENSSL_IS_BORINGSSL" != "x1"; then
dnl backup the pre-ngtcp2_crypto_quictls variables
CLEANLDFLAGS="$LDFLAGS"
CLEANLDFLAGSPC="$LDFLAGSPC"
AC_CHECK_LIB(ngtcp2_crypto_quictls, ngtcp2_crypto_recv_client_initial_cb,
[
AC_CHECK_HEADERS(ngtcp2/ngtcp2_crypto.h,
- NGTCP2_ENABLED=1
- AC_DEFINE(USE_NGTCP2_CRYPTO_QUICTLS, 1, [if ngtcp2_crypto_quictls is in use])
- AC_SUBST(USE_NGTCP2_CRYPTO_QUICTLS, [1])
+ USE_NGTCP2=1
CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_QUICTLS"
export CURL_LIBRARY_PATH
AC_MSG_NOTICE([Added $DIR_NGTCP2_CRYPTO_QUICTLS to CURL_LIBRARY_PATH])
fi
fi
-if test "x$NGTCP2_ENABLED" = "x1" -a "x$OPENSSL_ENABLED" = "x1" -a "x$OPENSSL_IS_BORINGSSL" = "x1"; then
+if test "x$USE_NGTCP2" = "x1" -a "x$OPENSSL_ENABLED" = "x1" -a "x$OPENSSL_IS_BORINGSSL" = "x1"; then
dnl backup the pre-ngtcp2_crypto_boringssl variables
CLEANLDFLAGS="$LDFLAGS"
CLEANLDFLAGSPC="$LDFLAGSPC"
AC_CHECK_LIB(ngtcp2_crypto_boringssl, ngtcp2_crypto_recv_client_initial_cb,
[
AC_CHECK_HEADERS(ngtcp2/ngtcp2_crypto.h,
- NGTCP2_ENABLED=1
- AC_DEFINE(USE_NGTCP2_CRYPTO_BORINGSSL, 1, [if ngtcp2_crypto_boringssl is in use])
- AC_SUBST(USE_NGTCP2_CRYPTO_BORINGSSL, [1])
+ USE_NGTCP2=1
CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_BORINGSSL"
export CURL_LIBRARY_PATH
AC_MSG_NOTICE([Added $DIR_NGTCP2_CRYPTO_BORINGSSL to CURL_LIBRARY_PATH])
fi
fi
-if test "x$NGTCP2_ENABLED" = "x1" -a "x$GNUTLS_ENABLED" = "x1"; then
+if test "x$USE_NGTCP2" = "x1" -a "x$GNUTLS_ENABLED" = "x1"; then
dnl backup the pre-ngtcp2_crypto_gnutls variables
CLEANLDFLAGS="$LDFLAGS"
CLEANLDFLAGSPC="$LDFLAGSPC"
AC_CHECK_LIB(ngtcp2_crypto_gnutls, ngtcp2_crypto_recv_client_initial_cb,
[
AC_CHECK_HEADERS(ngtcp2/ngtcp2_crypto.h,
- NGTCP2_ENABLED=1
- AC_DEFINE(USE_NGTCP2_CRYPTO_GNUTLS, 1, [if ngtcp2_crypto_gnutls is in use])
- AC_SUBST(USE_NGTCP2_CRYPTO_GNUTLS, [1])
+ USE_NGTCP2=1
CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_GNUTLS"
export CURL_LIBRARY_PATH
AC_MSG_NOTICE([Added $DIR_NGTCP2_CRYPTO_GNUTLS to CURL_LIBRARY_PATH])
fi
fi
-if test "x$NGTCP2_ENABLED" = "x1" -a "x$WOLFSSL_ENABLED" = "x1"; then
+if test "x$USE_NGTCP2" = "x1" -a "x$WOLFSSL_ENABLED" = "x1"; then
dnl backup the pre-ngtcp2_crypto_wolfssl variables
CLEANLDFLAGS="$LDFLAGS"
CLEANLDFLAGSPC="$LDFLAGSPC"
AC_CHECK_LIB(ngtcp2_crypto_wolfssl, ngtcp2_crypto_recv_client_initial_cb,
[
AC_CHECK_HEADERS(ngtcp2/ngtcp2_crypto.h,
- NGTCP2_ENABLED=1
- AC_DEFINE(USE_NGTCP2_CRYPTO_WOLFSSL, 1, [if ngtcp2_crypto_wolfssl is in use])
- AC_SUBST(USE_NGTCP2_CRYPTO_WOLFSSL, [1])
+ USE_NGTCP2=1
CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_WOLFSSL"
export CURL_LIBRARY_PATH
AC_MSG_NOTICE([Added $DIR_NGTCP2_CRYPTO_WOLFSSL to CURL_LIBRARY_PATH])
curl_openssl_quic_msg="no (--with-openssl-quic)"
if test "x$want_openssl_quic" = "xyes"; then
- if test "$NGTCP2_ENABLED" = 1; then
+ if test "$USE_NGTCP2" = 1; then
AC_MSG_ERROR([--with-openssl-quic and --with-ngtcp2 are mutually exclusive])
fi
if test "$have_openssl_quic" != 1; then
AC_MSG_ERROR([--with-openssl-quic requires quic support and OpenSSL >= 3.3.0])
fi
AC_DEFINE(USE_OPENSSL_QUIC, 1, [if openssl QUIC is in use])
- AC_SUBST(USE_OPENSSL_QUIC, [1])
+ USE_OPENSSL_QUIC=1
fi
dnl **********************************************************************
[
AC_CHECK_HEADERS(nghttp3/nghttp3.h,
AC_DEFINE(USE_NGHTTP3, 1, [if nghttp3 is in use])
- AC_SUBST(USE_NGHTTP3, [1])
+ USE_NGHTTP3=1
CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGHTTP3"
export CURL_LIBRARY_PATH
AC_MSG_NOTICE([Added $DIR_NGHTTP3 to CURL_LIBRARY_PATH])
dnl Check for ngtcp2 and nghttp3 (HTTP/3 with ngtcp2 + nghttp3)
dnl **********************************************************************
-if test "x$NGTCP2_ENABLED" = "x1" -a "x$USE_NGHTTP3" = "x1"; then
- AC_DEFINE(USE_NGTCP2_H3, 1, [if ngtcp2 + nghttp3 is in use])
- AC_SUBST(USE_NGTCP2_H3, [1])
+if test "x$USE_NGTCP2" = "x1" -a "x$USE_NGHTTP3" = "x1"; then
+ USE_NGTCP2_H3=1
AC_MSG_NOTICE([HTTP3 support is experimental])
curl_h3_msg="enabled (ngtcp2 + nghttp3)"
fi
if test "x$USE_OPENSSL_QUIC" = "x1" -a "x$USE_NGHTTP3" = "x1"; then
experimental="$experimental HTTP3"
- AC_DEFINE(USE_OPENSSL_H3, 1, [if openssl quic + nghttp3 is in use])
- AC_SUBST(USE_OPENSSL_H3, [1])
+ USE_OPENSSL_H3=1
AC_MSG_NOTICE([HTTP3 support is experimental])
curl_h3_msg="enabled (openssl + nghttp3)"
fi
experimental="$experimental HTTP3"
AC_MSG_NOTICE([HTTP3 support is experimental])
curl_h3_msg="enabled (quiche)"
- QUICHE_ENABLED=1
AC_DEFINE(USE_QUICHE, 1, [if quiche is in use])
- AC_SUBST(USE_QUICHE, [1])
+ USE_QUICHE=1
AC_CHECK_FUNCS([quiche_conn_set_qlog_fd])
CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_QUICHE"
export CURL_LIBRARY_PATH
if test "$NGHTTP3_ENABLED" = 1; then
AC_MSG_ERROR([--with-msh3 and --with-ngtcp2 are mutually exclusive])
fi
- if test "$QUICHE_ENABLED" = 1; then
+ if test "$USE_QUICHE" = 1; then
AC_MSG_ERROR([--with-msh3 and --with-quiche are mutually exclusive])
fi
[
AC_CHECK_HEADERS(msh3.h,
curl_h3_msg="enabled (msh3)"
- MSH3_ENABLED=1
AC_DEFINE(USE_MSH3, 1, [if msh3 is in use])
- AC_SUBST(USE_MSH3, [1])
+ USE_MSH3=1
CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_MSH3"
export CURL_LIBRARY_PATH
AC_MSG_NOTICE([Added $DIR_MSH3 to CURL_LIBRARY_PATH])
AC_CHECK_LIB(uv, uv_default_loop,
[
AC_CHECK_HEADERS(uv.h,
- LIBUV_ENABLED=1
AC_DEFINE(USE_LIBUV, 1, [if libuv is in use])
- AC_SUBST(USE_LIBUV, [1])
+ USE_LIBUV=1
CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_LIBUV"
export CURL_LIBRARY_PATH
AC_MSG_NOTICE([Added $DIR_LIBUV to CURL_LIBRARY_PATH])
locale.h \
stdbool.h \
sys/filio.h \
- sys/wait.h \
sys/eventfd.h \
setjmp.h,
dnl to do if not found
CURL_CHECK_FUNC_FSETXATTR
CURL_CHECK_FUNC_FTRUNCATE
CURL_CHECK_FUNC_GETADDRINFO
-CURL_CHECK_FUNC_GETHOSTBYNAME
CURL_CHECK_FUNC_GETHOSTBYNAME_R
CURL_CHECK_FUNC_GETHOSTNAME
CURL_CHECK_FUNC_GETPEERNAME
if test "$curl_cv_native_windows" = "yes"; then
AC_MSG_RESULT(yes)
AC_DEFINE(USE_WINDOWS_SSPI, 1, [to enable SSPI support])
- AC_SUBST(USE_WINDOWS_SSPI, [1])
+ USE_WINDOWS_SSPI=1
curl_sspi_msg="enabled"
else
AC_MSG_RESULT(no)
no)
AC_MSG_RESULT(no)
AC_DEFINE(CURL_DISABLE_BASIC_AUTH, 1, [to disable basic authentication])
- CURL_DISABLE_BASIC_AUTH=1
;;
*)
AC_MSG_RESULT(yes)
no)
AC_MSG_RESULT(no)
AC_DEFINE(CURL_DISABLE_BEARER_AUTH, 1, [to disable bearer authentication])
- CURL_DISABLE_BEARER_AUTH=1
;;
*)
AC_MSG_RESULT(yes)
no)
AC_MSG_RESULT(no)
AC_DEFINE(CURL_DISABLE_DIGEST_AUTH, 1, [to disable digest authentication])
- CURL_DISABLE_DIGEST_AUTH=1
;;
*)
AC_MSG_RESULT(yes)
no)
AC_MSG_RESULT(no)
AC_DEFINE(CURL_DISABLE_AWS, 1, [to disable AWS sig support])
- CURL_DISABLE_AWS=1
;;
*)
AC_MSG_RESULT(yes)
else
AC_CHECK_MEMBER([struct sockaddr_un.sun_path], [
AC_DEFINE(USE_UNIX_SOCKETS, 1, [Use Unix domain sockets])
- AC_SUBST(USE_UNIX_SOCKETS, [1])
+ USE_UNIX_SOCKETS=1
curl_unix_sockets_msg="enabled"
], [
if test "x$want_unix_sockets" = "xyes"; then
no)
AC_MSG_RESULT(no)
AC_DEFINE(CURL_DISABLE_WEBSOCKETS, [1], [disable WebSockets])
- AC_SUBST(CURL_DISABLE_WEBSOCKETS, [1])
+ CURL_DISABLE_WEBSOCKETS=1
;;
*)
if test ${ac_cv_sizeof_curl_off_t} -gt 4; then
AC_MSG_RESULT(no)
AC_MSG_WARN([WebSockets disabled due to lack of >32 bit curl_off_t])
AC_DEFINE(CURL_DISABLE_WEBSOCKETS, [1], [disable WebSockets])
- AC_SUBST(CURL_DISABLE_WEBSOCKETS, [1])
+ CURL_DISABLE_WEBSOCKETS=1
fi
;;
esac ],
else
AC_MSG_WARN([WebSockets disabled because HTTP is disabled])
AC_DEFINE(CURL_DISABLE_WEBSOCKETS, [1], [disable WebSockets])
- AC_SUBST(CURL_DISABLE_WEBSOCKETS, [1])
+ CURL_DISABLE_WEBSOCKETS=1
fi
dnl ************************************************************
AC_SUBST(LIBCURL_PC_LDFLAGS_PRIVATE)
AC_SUBST(LIBCURL_PC_LIBS_PRIVATE)
-AC_SUBST(CURL_NETWORK_LIBS)
AC_SUBST(CURL_NETWORK_AND_TIME_LIBS)
dnl BLANK_AT_MAKETIME may be used in our Makefile.am files to blank
squeeze LIBCURL_PC_LDFLAGS_PRIVATE
squeeze LIBCURL_PC_LIBS_PRIVATE
-squeeze CURL_NETWORK_LIBS
squeeze CURL_NETWORK_AND_TIME_LIBS
squeeze SUPPORT_FEATURES