m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
CURL_CHECK_OPTION_DEBUG
-AM_CONDITIONAL(DEBUGBUILD, test x$want_debug = xyes)
+AM_CONDITIONAL(DEBUGBUILD, test "$want_debug" = "yes")
CURL_CHECK_OPTION_OPTIMIZE
CURL_CHECK_OPTION_WARNINGS
CURL_CHECK_OPTION_WERROR
CURL_CHECK_OPTION_CURLDEBUG
-AM_CONDITIONAL(CURLDEBUG, test x$want_curldebug = xyes)
+AM_CONDITIONAL(CURLDEBUG, test "$want_curldebug" = "yes")
CURL_CHECK_OPTION_SYMBOL_HIDING
CURL_CHECK_OPTION_ARES
CURL_CHECK_OPTION_RT
AS_HELP_STRING([--without-ssl], [build without any TLS library]),[
OPT_SSL=$withval
OPT_OPENSSL=$withval
- if test X"$withval" != Xno; then
+ if test "x$withval" != "xno"; then
TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }OpenSSL"
else
SSL_DISABLED="D"
AC_ARG_WITH(openssl,dnl
AS_HELP_STRING([--with-openssl=PATH],[Where to look for OpenSSL, PATH points to the SSL installation (default: /usr/local/ssl); when possible, set the PKG_CONFIG_PATH environment variable instead of using this option]),[
OPT_OPENSSL=$withval
- if test X"$withval" != Xno; then
+ if test "x$withval" != "xno"; then
TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }OpenSSL"
fi
])
AC_ARG_WITH(gnutls,dnl
AS_HELP_STRING([--with-gnutls=PATH],[where to look for GnuTLS, PATH points to the installation root]),[
OPT_GNUTLS=$withval
- if test X"$withval" != Xno; then
+ if test "x$withval" != "xno"; then
TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }GnuTLS"
fi
])
AC_ARG_WITH(mbedtls,dnl
AS_HELP_STRING([--with-mbedtls=PATH],[where to look for mbedTLS, PATH points to the installation root]),[
OPT_MBEDTLS=$withval
- if test X"$withval" != Xno; then
+ if test "x$withval" != "xno"; then
TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }mbedTLS"
fi
])
AC_ARG_WITH(wolfssl,dnl
AS_HELP_STRING([--with-wolfssl=PATH],[where to look for wolfSSL, PATH points to the installation root (default: system lib default)]),[
OPT_WOLFSSL=$withval
- if test X"$withval" != Xno; then
+ if test "x$withval" != "xno"; then
TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }wolfSSL"
fi
])
AC_ARG_WITH(rustls,dnl
AS_HELP_STRING([--with-rustls=PATH],[where to look for Rustls, PATH points to the installation root]),[
OPT_RUSTLS=$withval
- if test X"$withval" != Xno; then
+ if test "x$withval" != "xno"; then
TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }Rustls"
experimental="$experimental Rustls"
fi
AC_ARG_WITH(test-nghttpx,dnl
AS_HELP_STRING([--with-test-nghttpx=PATH],[where to find nghttpx for testing]),
TEST_NGHTTPX=$withval
- if test X"$TEST_NGHTTPX" = "Xno"; then
+ if test "x$TEST_NGHTTPX" = "xno"; then
TEST_NGHTTPX=""
fi
)
AC_ARG_WITH(test-caddy,dnl
AS_HELP_STRING([--with-test-caddy=PATH],[where to find caddy for testing]),
CADDY=$withval
- if test X"$CADDY" = "Xno"; then
+ if test "x$CADDY" = "xno"; then
CADDY=""
fi
)
AC_ARG_WITH(test-vsftpd,dnl
AS_HELP_STRING([--with-test-vsftpd=PATH],[where to find vsftpd for testing]),
VSFTPD=$withval
- if test X"$VSFTPD" = "Xno"; then
+ if test "x$VSFTPD" = "xno"; then
VSFTPD=""
fi
)
AC_ARG_WITH(test-httpd, [AS_HELP_STRING([--with-test-httpd=PATH],
[where to find httpd/apache2 for testing])],
[request_httpd=$withval], [request_httpd=check])
-if test x"$request_httpd" = "xcheck" -o x"$request_httpd" = "xyes"; then
+if test "x$request_httpd" = "xcheck" || test "x$request_httpd" = "xyes"; then
if test -x "/usr/sbin/apache2"; then
# common location on distros (debian/ubuntu)
HTTPD="/usr/sbin/apache2"
AC_PATH_PROG([APXS], [apxs])
- if test "x$APXS" = "x"; then
+ if test -z "$APXS"; then
AC_MSG_NOTICE([apache2-dev not installed, httpd tests disabled])
HTTPD_ENABLED="no"
fi
else
AC_PATH_PROG([HTTPD], [httpd])
- if test "x$HTTPD" = "x"; then
+ if test -z "$HTTPD"; then
AC_PATH_PROG([HTTPD], [apache2])
fi
AC_PATH_PROG([APXS], [apxs])
- if test "x$HTTPD" = "x"; then
+ if test -z "$HTTPD"; then
AC_MSG_NOTICE([httpd/apache2 not in PATH, http tests disabled])
HTTPD_ENABLED="no"
fi
- if test "x$APXS" = "x"; then
+ if test -z "$APXS"; then
AC_MSG_NOTICE([apxs not in PATH, http tests disabled])
HTTPD_ENABLED="no"
fi
fi
-elif test x"$request_httpd" != "xno"; then
+elif test "x$request_httpd" != "xno"; then
HTTPD="${request_httpd}/bin/httpd"
APXS="${request_httpd}/bin/apxs"
if test ! -x "${HTTPD}"; then
AC_MSG_NOTICE([using HTTPD=$HTTPD for tests])
fi
fi
-if test x"$HTTPD_ENABLED" = "xno"; then
+if test "$HTTPD_ENABLED" = "no"; then
HTTPD=""
APXS=""
fi
AC_ARG_WITH(test-danted, [AS_HELP_STRING([--with-test-danted=PATH],
[where to find danted socks daemon for testing])],
[request_danted=$withval], [request_danted=check])
-if test x"$request_danted" = "xcheck" -o x"$request_danted" = "xyes"; then
+if test "x$request_danted" = "xcheck" || test "x$request_danted" = "xyes"; then
if test -x "/usr/sbin/danted"; then
# common location on distros (debian/ubuntu)
DANTED="/usr/sbin/danted"
else
AC_PATH_PROG([DANTED], [danted])
- if test "x$DANTED" = "x"; then
+ if test -z "$DANTED"; then
AC_PATH_PROG([DANTED], [danted])
fi
fi
-elif test x"$request_danted" != "xno"; then
+elif test "x$request_danted" != "xno"; then
DANTED="${request_danted}"
if test ! -x "${DANTED}"; then
AC_MSG_NOTICE([danted not found as ${DANTED}, danted tests disabled])
AC_MSG_NOTICE([using DANTED=$DANTED for tests])
fi
fi
-if test x"$DANTED_ENABLED" = "xno"; then
+if test "$DANTED_ENABLED" = "no"; then
DANTED=""
fi
AC_SUBST(DANTED)
dnl the nghttpx we might use in httpd testing
-if test "x$TEST_NGHTTPX" != "x" -a "x$TEST_NGHTTPX" != "xnghttpx"; then
+if test -n "$TEST_NGHTTPX" && test "x$TEST_NGHTTPX" != "xnghttpx"; then
HTTPD_NGHTTPX="$TEST_NGHTTPX"
else
AC_PATH_PROG([HTTPD_NGHTTPX], [nghttpx], [],
AC_SUBST(HTTPD_NGHTTPX)
dnl the Caddy server we might use in testing
-if test "x$TEST_CADDY" != "x"; then
+if test -n "$TEST_CADDY"; then
CADDY="$TEST_CADDY"
else
AC_PATH_PROG([CADDY], [caddy])
#
AM_CONDITIONAL([CURL_LT_SHLIB_USE_VERSION_INFO],
- [test "x$xc_lt_shlib_use_version_info" = 'xyes'])
+ [test "$xc_lt_shlib_use_version_info" = "yes"])
AM_CONDITIONAL([CURL_LT_SHLIB_USE_NO_UNDEFINED],
- [test "x$xc_lt_shlib_use_no_undefined" = 'xyes'])
+ [test "$xc_lt_shlib_use_no_undefined" = "yes"])
AM_CONDITIONAL([CURL_LT_SHLIB_USE_MIMPURE_TEXT],
- [test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'])
+ [test "$xc_lt_shlib_use_mimpure_text" = "yes"])
#
# Due to libtool and automake machinery limitations of not allowing
#
AM_CONDITIONAL([USE_CPPFLAG_CURL_STATICLIB],
- [test "x$xc_lt_build_static_only" = 'xyes'])
+ [test "$xc_lt_build_static_only" = "yes"])
#
# Make staticlib CPPFLAG variable and its definition visible in output
AC_SUBST(LIBCURL_PC_CFLAGS_PRIVATE)
LIBCURL_PC_CFLAGS=
-if test "x$xc_lt_build_static_only" = 'xyes'; then
+if test "$xc_lt_build_static_only" = "yes"; then
LIBCURL_PC_CFLAGS="${LIBCURL_PC_CFLAGS_PRIVATE}"
fi
AC_SUBST([LIBCURL_PC_CFLAGS])
fi
CURL_CFLAG_EXTRAS=""
-if test X"$want_werror" = Xyes; then
+if test "$want_werror" = "yes"; then
CURL_CFLAG_EXTRAS="-Werror"
if test "$compiler_id" = "GNU_C"; then
dnl enable -pedantic-errors for GCC 5 and later,
if test "$compiler_num" -ge "500"; then
CURL_CFLAG_EXTRAS="$CURL_CFLAG_EXTRAS -pedantic-errors"
fi
- elif test "$compiler_id" = "CLANG" -o "$compiler_id" = "APPLECLANG"; then
+ elif test "$compiler_id" = "CLANG" || test "$compiler_id" = "APPLECLANG"; then
CURL_CFLAG_EXTRAS="$CURL_CFLAG_EXTRAS -pedantic-errors"
fi
fi
AC_SUBST(CURL_CFLAG_EXTRAS)
-AM_CONDITIONAL(CURL_WERROR, test X"$want_werror" = Xyes)
+AM_CONDITIONAL(CURL_WERROR, test "$want_werror" = "yes")
CURL_CHECK_COMPILER_HALT_ON_ERROR
CURL_CHECK_COMPILER_ARRAY_SIZE_NEGATIVE
# cross-compilation of unit tests static library/programs fails when
# libcurl shared library is built. This might be due to a libtool or
# automake issue. In this case we disable unit tests.
-if test "x$cross_compiling" != "xno" &&
- test "x$enable_shared" != "xno"; then
+if test "$cross_compiling" != "no" &&
+ test "$enable_shared" != "no"; then
supports_unittests=no
fi
;;
esac
-AM_CONDITIONAL(BUILD_UNITTESTS, test x$supports_unittests = xyes)
+AM_CONDITIONAL(BUILD_UNITTESTS, test "$supports_unittests" = "yes")
# In order to detect support of sendmmsg() and accept4(), we need to escape the POSIX
# jail by defining _GNU_SOURCE or <sys/socket.h> will not expose it.
*-apple-*) curl_cv_apple='yes';;
esac
-if test "$curl_cv_apple" = 'yes'; then
+if test "$curl_cv_apple" = "yes"; then
CURL_DARWIN_CFLAGS
CURL_SUPPORTS_BUILTIN_AVAILABLE
fi
esac ],
AC_MSG_RESULT([no])
)
-if test -z "$PERL" -a "$want_unity" = 'yes'; then
+if test -z "$PERL" && test "$want_unity" = "yes"; then
AC_MSG_WARN([perl was not found. Will not enable unity.])
want_unity='no'
fi
-AM_CONDITIONAL([USE_UNITY], [test "$want_unity" = 'yes'])
+AM_CONDITIONAL([USE_UNITY], [test "$want_unity" = "yes"])
dnl ************************************************************
dnl switch off particular protocols
CURL_DISABLE_IPFS=1
;;
*)
- if test x$CURL_DISABLE_HTTP = x1; then
+ if test "$CURL_DISABLE_HTTP" = "1"; then
AC_MSG_ERROR(HTTP support needs to be enabled in order to enable IPFS support!)
else
AC_MSG_RESULT(yes)
fi
;;
esac ],
- if test "x$CURL_DISABLE_HTTP" != "x1"; then
+ if test "$CURL_DISABLE_HTTP" != "1"; then
AC_MSG_RESULT(yes)
curl_ipfs_msg="enabled"
else
CURL_DISABLE_LDAPS=1
;;
*)
- if test "x$CURL_DISABLE_LDAP" = "x1"; then
+ if test "$CURL_DISABLE_LDAP" = "1"; then
AC_MSG_RESULT(LDAP needs to be enabled to support LDAPS)
AC_DEFINE(CURL_DISABLE_LDAPS, 1, [to disable LDAPS])
CURL_DISABLE_LDAPS=1
fi
;;
esac ],[
- if test "x$CURL_DISABLE_LDAP" = "x1"; then
+ if test "$CURL_DISABLE_LDAP" = "1"; then
AC_MSG_RESULT(no)
AC_DEFINE(CURL_DISABLE_LDAPS, 1, [to disable LDAPS])
CURL_DISABLE_LDAPS=1
AC_ARG_ENABLE(rtsp,
AS_HELP_STRING([--enable-rtsp],[Enable RTSP support])
AS_HELP_STRING([--disable-rtsp],[Disable RTSP support]),
- [ case "$enableval" in
- no)
+[ case "$enableval" in
+ no)
+ AC_MSG_RESULT(no)
+ AC_DEFINE(CURL_DISABLE_RTSP, 1, [to disable RTSP])
+ CURL_DISABLE_RTSP=1
+ ;;
+ *)
+ if test "$CURL_DISABLE_HTTP" = "1"; then
+ AC_MSG_ERROR(HTTP support needs to be enabled in order to enable RTSP support!)
+ else
+ AC_MSG_RESULT(yes)
+ curl_rtsp_msg="enabled"
+ fi
+ ;;
+ esac ],
+ if test "$CURL_DISABLE_HTTP" != "1"; then
+ AC_MSG_RESULT(yes)
+ curl_rtsp_msg="enabled"
+ else
AC_MSG_RESULT(no)
- AC_DEFINE(CURL_DISABLE_RTSP, 1, [to disable RTSP])
- CURL_DISABLE_RTSP=1
- ;;
- *)
- if test x$CURL_DISABLE_HTTP = x1; then
- AC_MSG_ERROR(HTTP support needs to be enabled in order to enable RTSP support!)
- else
- AC_MSG_RESULT(yes)
- curl_rtsp_msg="enabled"
- fi
- ;;
- esac ],
- if test "x$CURL_DISABLE_HTTP" != "x1"; then
- AC_MSG_RESULT(yes)
- curl_rtsp_msg="enabled"
- else
- AC_MSG_RESULT(no)
- fi
+ fi
)
AC_MSG_CHECKING([whether to support proxies])
AC_MSG_RESULT(yes)
)
-if test "$curl_cv_winuwp" = 'yes'; then
+if test "$curl_cv_winuwp" = "yes"; then
AC_DEFINE(CURL_DISABLE_TELNET, 1, [to disable TELNET])
CURL_DISABLE_TELNET=1
fi
AC_MSG_RESULT(yes)
BUILD_DOCS=1
)
-if test -z "$PERL" -a "x$BUILD_DOCS" != "x0"; then
+if test -z "$PERL" && test "$BUILD_DOCS" != "0"; then
AC_MSG_WARN([perl was not found. Will not build documentation.])
BUILD_DOCS=0
fi
# In UWP mode gethostbyname gets detected via the core libs, but some
# code (in6addr_any) still need ws2_32, so let us detect and add it.
-if test "$HAVE_GETHOSTBYNAME" != "1" -o "$curl_cv_winuwp" = "yes"; then
+if test "$HAVE_GETHOSTBYNAME" != "1" || test "$curl_cv_winuwp" = "yes"; then
if test "$curl_cv_native_windows" = "yes"; then
dnl This is for Winsock systems
winsock_LIB="-lws2_32"
if test "$curl_cv_winuwp" != "yes"; then
winsock_LIB="$winsock_LIB -liphlpapi"
fi
- if test ! -z "$winsock_LIB"; then
+ if test -n "$winsock_LIB"; then
my_ac_save_LIBS=$LIBS
LIBS="$winsock_LIB $LIBS"
AC_MSG_CHECKING([for gethostbyname in $winsock_LIB])
])
fi
-if test "$HAVE_GETHOSTBYNAME" != "1" -o "${with_amissl+set}" = set; then
+if test "$HAVE_GETHOSTBYNAME" != "1" || test "${with_amissl+set}" = "set"; then
dnl This is for AmigaOS with bsdsocket.library - needs testing before -lnet
AC_MSG_CHECKING([for gethostbyname for AmigaOS bsdsocket.library])
AC_LINK_IFELSE([
AS_HELP_STRING([--without-zlib],[disable use of zlib]),
[OPT_ZLIB="$withval"])
-if test "$OPT_ZLIB" = "no"; then
+if test "x$OPT_ZLIB" = "xno"; then
AC_MSG_WARN([zlib disabled])
else
- if test "$OPT_ZLIB" = "yes"; then
+ if test "x$OPT_ZLIB" = "xyes"; then
OPT_ZLIB=""
fi
fi
dnl set variable for use in automakefile(s)
-AM_CONDITIONAL(HAVE_LIBZ, test x"$AMFIXLIB" = x1)
+AM_CONDITIONAL(HAVE_LIBZ, test "$AMFIXLIB" = "1")
AC_SUBST(ZLIB_LIBS)
dnl **********************************************************************
AS_HELP_STRING([--without-brotli], [disable BROTLI]),
OPT_BROTLI=$withval)
-if test X"$OPT_BROTLI" != Xno; then
+if test "x$OPT_BROTLI" != "xno"; then
dnl backup the pre-brotli variables
CLEANLDFLAGS="$LDFLAGS"
CLEANLDFLAGSPC="$LDFLAGSPC"
AC_DEFINE(HAVE_BROTLI, 1, [if BROTLI is in use])
)
- if test X"$OPT_BROTLI" != Xoff &&
+ if test "x$OPT_BROTLI" != "xoff" &&
test "$HAVE_BROTLI" != "1"; then
AC_MSG_ERROR([BROTLI libs and/or directories were not found where specified!])
fi
dnl linker does not search through, we need to add it to CURL_LIBRARY_PATH
dnl to prevent further configure tests to fail due to this
- if test "x$cross_compiling" != "xyes"; then
+ if test "$cross_compiling" != "yes"; then
CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_BROTLI"
export CURL_LIBRARY_PATH
AC_MSG_NOTICE([Added $DIR_BROTLI to CURL_LIBRARY_PATH])
AS_HELP_STRING([--without-zstd], [disable libzstd]),
OPT_ZSTD=$withval)
-if test X"$OPT_ZSTD" != Xno; then
+if test "x$OPT_ZSTD" != "xno"; then
dnl backup the pre-zstd variables
CLEANLDFLAGS="$LDFLAGS"
CLEANLDFLAGSPC="$LDFLAGSPC"
AC_DEFINE(HAVE_ZSTD, 1, [if libzstd is in use])
)
- if test X"$OPT_ZSTD" != Xoff &&
+ if test "x$OPT_ZSTD" != "xoff" &&
test "$HAVE_ZSTD" != "1"; then
AC_MSG_ERROR([libzstd was not found where specified!])
fi
dnl CURL_LIBRARY_PATH to prevent further configure tests to fail due to
dnl this
- if test "x$cross_compiling" != "xyes"; then
+ if test "$cross_compiling" != "yes"; then
CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_ZSTD"
export CURL_LIBRARY_PATH
AC_MSG_NOTICE([Added $DIR_ZSTD to CURL_LIBRARY_PATH])
)
)
-if test "$ipv6" = yes; then
+if test "$ipv6" = "yes"; then
curl_ipv6_msg="enabled"
AC_DEFINE(USE_IPV6, 1, [Define if you want to enable IPv6 support])
IPV6_ENABLED=1
],[
curl_cv_writable_argv=cross
])
-if test "$curl_cv_writable_argv" = 'cross' -a "$curl_cv_apple" = 'yes'; then
+if test "$curl_cv_writable_argv" = "cross" && test "$curl_cv_apple" = "yes"; then
curl_cv_writable_argv=yes
fi
case $curl_cv_writable_argv in
AC_ARG_WITH(gssapi,
AS_HELP_STRING([--with-gssapi=DIR], [Where to look for GSS-API]), [
GSSAPI_ROOT="$withval"
- if test x"$GSSAPI_ROOT" != xno; then
+ if test "$GSSAPI_ROOT" != "no"; then
want_gss="yes"
- if test x"$GSSAPI_ROOT" = xyes; then
+ if test "$GSSAPI_ROOT" = "yes"; then
dnl if yes, then use default root
GSSAPI_ROOT="/usr"
fi
save_CPPFLAGS="$CPPFLAGS"
AC_MSG_CHECKING([if GSS-API support is requested])
-if test x"$want_gss" = xyes; then
+if test "$want_gss" = "yes"; then
AC_MSG_RESULT(yes)
- if test $GSSAPI_ROOT != "/usr"; then
+ if test "$GSSAPI_ROOT" != "/usr"; then
CURL_CHECK_PKGCONFIG(mit-krb5-gssapi, $GSSAPI_ROOT/lib/pkgconfig)
else
CURL_CHECK_PKGCONFIG(mit-krb5-gssapi)
fi
if test -z "$GSSAPI_INCS"; then
- if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
+ if test -n "$host_alias" && test -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
elif test "$PKGCONFIG" != "no"; then
GSSAPI_INCS=`$PKGCONFIG --cflags mit-krb5-gssapi`
[gssapi/gssapi.h gssapi/gssapi_generic.h gssapi/gssapi_krb5.h],
[],
[not_mit=1])
- if test "x$not_mit" = "x1"; then
+ if test "$not_mit" = "1"; then
dnl MIT not found
AC_MSG_ERROR([MIT or GNU GSS library required, but not found])
fi
else
AC_MSG_RESULT(no)
fi
-if test x"$want_gss" = xyes; then
+if test "$want_gss" = "yes"; then
AC_DEFINE(HAVE_GSSAPI, 1, [if you have GSS-API libraries])
HAVE_GSSAPI=1
curl_gss_msg="enabled (MIT Kerberos)"
LIBS="-lgss $LIBS"
link_pkgconfig=1
elif test -z "$GSSAPI_LIB_DIR"; then
- if test "$curl_cv_apple" = 'yes'; then
+ if test "$curl_cv_apple" = "yes"; then
LIBS="-lgssapi_krb5 -lresolv $LIBS"
else
- if test $GSSAPI_ROOT != "/usr"; then
+ if test "$GSSAPI_ROOT" != "/usr"; then
CURL_CHECK_PKGCONFIG(mit-krb5-gssapi, $GSSAPI_ROOT/lib/pkgconfig)
else
CURL_CHECK_PKGCONFIG(mit-krb5-gssapi)
fi
- if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
+ if test -n "$host_alias" && test -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
dnl krb5-config does not have --libs-only-L or similar, put everything
dnl into LIBS
gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
fi
fi
gss_version=""
- if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
+ if test -n "$host_alias" && test -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
gss_version=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --version | $SED 's/Kerberos 5 release //'`
elif test "$PKGCONFIG" != "no"; then
gss_version=`$PKGCONFIG --modversion mit-krb5-gssapi`
CPPFLAGS="$save_CPPFLAGS"
fi
-if test x"$want_gss" = xyes; then
+if test "$want_gss" = "yes"; then
AC_MSG_CHECKING([if we can link against GSS-API library])
AC_LINK_IFELSE([
AC_LANG_FUNC_LINK_TRY([gss_init_sec_context])
fi
build_libstubgss=no
-if test x"$want_gss" = "xyes"; then
+if test "$want_gss" = "yes"; then
build_libstubgss=yes
fi
-AM_CONDITIONAL(BUILD_STUB_GSS, test "x$build_libstubgss" = "xyes")
+AM_CONDITIONAL(BUILD_STUB_GSS, test "$build_libstubgss" = "yes")
dnl -------------------------------------------------------------
dnl parse --with-default-ssl-backend so it can be validated below
CURL_WITH_APPLE_SECTRUST
dnl link required libraries for USE_WIN32_CRYPTO or SCHANNEL_ENABLED
-if test "x$USE_WIN32_CRYPTO" = "x1" -o "x$SCHANNEL_ENABLED" = "x1"; then
+if test "$USE_WIN32_CRYPTO" = "1" || test "$SCHANNEL_ENABLED" = "1"; then
LIBS="-ladvapi32 -lcrypt32 $LIBS"
fi
dnl link bcrypt for BCryptGenRandom() (used when building for Vista or newer)
-if test "x$curl_cv_native_windows" = "xyes"; then
+if test "$curl_cv_native_windows" = "yes"; then
LIBS="-lbcrypt $LIBS"
fi
curl_ssl_msg="enabled ($ssl_backends)"
fi
-if test no = "$VALID_DEFAULT_SSL_BACKEND"; then
+if test "$VALID_DEFAULT_SSL_BACKEND" = "no"; then
if test -n "$SSL_ENABLED"; then
AC_MSG_ERROR([Default SSL backend $DEFAULT_SSL_BACKEND not enabled!])
else
AC_MSG_ERROR([Default SSL backend requires SSL!])
fi
-elif test yes = "$VALID_DEFAULT_SSL_BACKEND"; then
+elif test "$VALID_DEFAULT_SSL_BACKEND" = "yes"; then
AC_DEFINE_UNQUOTED([CURL_DEFAULT_SSL_BACKEND], ["$DEFAULT_SSL_BACKEND"], [Default SSL backend])
fi
CURL_CHECK_CA_EMBED
fi
-AM_CONDITIONAL(CURL_CA_EMBED_SET, test "x$CURL_CA_EMBED" != "x")
+AM_CONDITIONAL(CURL_CA_EMBED_SET, test -n "$CURL_CA_EMBED")
dnl ----------------------
dnl check unsafe CA search
AS_HELP_STRING([--without-libpsl], [disable LIBPSL]),
OPT_LIBPSL=$withval)
-if test X"$OPT_LIBPSL" != Xno; then
+if test "x$OPT_LIBPSL" != "xno"; then
dnl backup the pre-libpsl variables
CLEANLDFLAGS="$LDFLAGS"
CLEANLDFLAGSPC="$LDFLAGSPC"
AS_HELP_STRING([--without-libgsasl], [disable libgsasl support for SCRAM]),
OPT_LIBGSASL=$withval)
-if test "$OPT_LIBGSASL" != no; then
+if test "x$OPT_LIBGSASL" != "xno"; then
dnl backup the pre-libgsasl variables
CLEANLDFLAGS="$LDFLAGS"
CLEANLDFLAGSPC="$LDFLAGSPC"
AS_HELP_STRING([--with-libssh], [enable libssh]),
OPT_LIBSSH=$withval, OPT_LIBSSH=no)
-if test X"$OPT_LIBSSH2" != Xno; then
+if test "x$OPT_LIBSSH2" != "xno"; then
dnl backup the pre-libssh2 variables
CLEANLDFLAGS="$LDFLAGS"
CLEANLDFLAGSPC="$LDFLAGSPC"
USE_LIBSSH2=1
)
- if test X"$OPT_LIBSSH2" != Xoff &&
+ if test "x$OPT_LIBSSH2" != "xoff" &&
test "$USE_LIBSSH2" != "1"; then
AC_MSG_ERROR([libssh2 libs and/or directories were not found where specified!])
fi
dnl linker does not search through, we need to add it to CURL_LIBRARY_PATH
dnl to prevent further configure tests to fail due to this
- if test "x$cross_compiling" != "xyes"; then
+ if test "$cross_compiling" != "yes"; then
CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH2"
export CURL_LIBRARY_PATH
AC_MSG_NOTICE([Added $DIR_SSH2 to CURL_LIBRARY_PATH])
CPPFLAGS=$CLEANCPPFLAGS
LIBS=$CLEANLIBS
fi
-elif test X"$OPT_LIBSSH" != Xno; then
+elif test "x$OPT_LIBSSH" != "xno"; then
dnl backup the pre-libssh variables
CLEANLDFLAGS="$LDFLAGS"
CLEANLDFLAGSPC="$LDFLAGSPC"
USE_LIBSSH=1
)
- if test X"$OPT_LIBSSH" != Xoff &&
+ if test "x$OPT_LIBSSH" != "xoff" &&
test "$USE_LIBSSH" != "1"; then
AC_MSG_ERROR([libssh libs and/or directories were not found where specified!])
fi
dnl linker does not search through, we need to add it to CURL_LIBRARY_PATH
dnl to prevent further configure tests to fail due to this
- if test "x$cross_compiling" != "xyes"; then
+ if test "$cross_compiling" != "yes"; then
CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH"
export CURL_LIBRARY_PATH
AC_MSG_NOTICE([Added $DIR_SSH to CURL_LIBRARY_PATH])
;;
esac
-if test x$CURL_DISABLE_LDAP != x1 && test "$want_ldap" != "no"; then
+if test "$CURL_DISABLE_LDAP" != "1" && test "$want_ldap" != "no"; then
CURL_CHECK_HEADER_LBER
CURL_CHECK_HEADER_LDAP
CURL_CHECK_HEADER_LDAP_SSL
if test -z "$LDAPLIBNAME"; then
- if test "$curl_cv_native_windows" = "yes" -a "$curl_cv_winuwp" != "yes"; then
+ if test "$curl_cv_native_windows" = "yes" && test "$curl_cv_winuwp" != "yes"; then
dnl Windows uses a single and unique LDAP library name
LDAPLIBNAME="wldap32"
LBERLIBNAME="no"
if test "$LDAPLIBNAME"; then
dnl If we have both LDAP and LBER library names, check if we need both
- if test "$LBERLIBNAME" -a "$LBERLIBNAME" != "no"; then
+ if test "$LBERLIBNAME" && test "$LBERLIBNAME" != "no"; then
dnl Try LDAP first, then with LBER if needed
AC_CHECK_LIB("$LDAPLIBNAME", ldap_init, [ldap_lib_ok=yes], [ldap_lib_ok=no])
if test "$ldap_lib_ok" = "no"; then
fi
fi
-if test x$CURL_DISABLE_LDAP != x1; then
+if test "$CURL_DISABLE_LDAP" != "1"; then
dnl Add to library path if needed
if test -n "$DIR_LDAP"; then
dnl when the ldap shared lib were found in a path that the runtime
dnl CURL_LIBRARY_PATH to prevent further configure tests to fail due to
dnl this
- if test "x$cross_compiling" != "xyes"; then
+ if test "$cross_compiling" != "yes"; then
CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_LDAP"
export CURL_LIBRARY_PATH
AC_MSG_NOTICE([Added $DIR_LDAP to CURL_LIBRARY_PATH])
dnl If name is "no" then do not define this library at all
dnl (it is only needed if libldap.so's dependencies are broken).
dnl Skip this check if we already determined we need both libraries above
- if test "$LBERLIBNAME" != "no" -a "$ldap_lib_ok" != "yes"; then
+ if test "$LBERLIBNAME" != "no" && test "$ldap_lib_ok" != "yes"; then
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])
fi
fi
-if test x$CURL_DISABLE_LDAP != x1; then
+if test "$CURL_DISABLE_LDAP" != "1"; then
AC_CHECK_FUNCS([ldap_url_parse \
ldap_init_fd])
curl_ldap_msg="enabled (winldap)"
AC_DEFINE(USE_WIN32_LDAP, 1, [Use Windows LDAP implementation])
else
- if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
+ if test "$ac_cv_func_ldap_init_fd" = "yes"; then
curl_ldap_msg="enabled (OpenLDAP)"
AC_DEFINE(USE_OPENLDAP, 1, [Use OpenLDAP-specific code])
USE_OPENLDAP=1
fi
fi
-if test x$CURL_DISABLE_LDAPS != x1; then
+if test "$CURL_DISABLE_LDAPS" != "1"; then
curl_ldaps_msg="enabled"
fi
AS_HELP_STRING([--without-librtmp], [disable LIBRTMP]),
OPT_LIBRTMP=$withval)
-if test X"$OPT_LIBRTMP" != Xno; then
+if test "x$OPT_LIBRTMP" != "xno"; then
dnl backup the pre-librtmp variables
CLEANLDFLAGS="$LDFLAGS"
CLEANLDFLAGSPC="$LDFLAGSPC"
LIBS=$CLEANLIBS
)
- if test X"$OPT_LIBRTMP" != Xoff &&
+ if test "x$OPT_LIBRTMP" != "xoff" &&
test "$USE_LIBRTMP" != "1"; then
AC_MSG_ERROR([librtmp libs and/or directories were not found where specified!])
fi
AC_MSG_RESULT(yes)
if test "x$enableval" != "xyes"; then
versioned_symbols_flavour="$enableval"
- elif test "x$CURL_WITH_MULTI_SSL" = "x1"; then
+ elif test "$CURL_WITH_MULTI_SSL" = "1"; then
versioned_symbols_flavour="MULTISSL_"
- elif test "x$OPENSSL_ENABLED" = "x1"; then
+ elif test "$OPENSSL_ENABLED" = "1"; then
versioned_symbols_flavour="OPENSSL_"
- elif test "x$MBEDTLS_ENABLED" = "x1"; then
+ elif test "$MBEDTLS_ENABLED" = "1"; then
versioned_symbols_flavour="MBEDTLS_"
- elif test "x$WOLFSSL_ENABLED" = "x1"; then
+ elif test "$WOLFSSL_ENABLED" = "1"; then
versioned_symbols_flavour="WOLFSSL_"
- elif test "x$GNUTLS_ENABLED" = "x1"; then
+ elif test "$GNUTLS_ENABLED" = "1"; then
versioned_symbols_flavour="GNUTLS_"
- elif test "x$RUSTLS_ENABLED" = "x1"; then
+ elif test "$RUSTLS_ENABLED" = "1"; then
versioned_symbols_flavour="RUSTLS_"
else
versioned_symbols_flavour=""
AC_SUBST([CURL_LIBCURL_VERSIONED_SYMBOLS_PREFIX], ["$versioned_symbols_flavour"])
AC_SUBST([CURL_LIBCURL_VERSIONED_SYMBOLS_SONAME], ["4"]) dnl Keep in sync with VERSIONCHANGE - VERSIONDEL in lib/Makefile.soname
AM_CONDITIONAL([CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS],
- [test "x$versioned_symbols" = 'xyes'])
+ [test "$versioned_symbols" = "yes"])
dnl ----------------------------
dnl check Windows Unicode option
want_winuni="no"
if test "$curl_cv_native_windows" = "yes"; then
- if test "$curl_cv_winuwp" = 'yes'; then
+ if test "$curl_cv_winuwp" = "yes"; then
want_winuni="yes"
else
AC_MSG_CHECKING([whether to enable Windows Unicode (Windows native builds only)])
dnl -------------------------------------------------
tst_links_winidn='no'
-if test "$curl_cv_native_windows" = 'yes'; then
+if test "$curl_cv_native_windows" = "yes"; then
AC_MSG_CHECKING([whether to enable Windows native IDN (Windows native builds only)])
OPT_WINIDN="default"
AC_ARG_WITH(winidn,
dnl **********************************************************************
tst_links_appleidn='no'
-if test "$curl_cv_apple" = 'yes'; then
+if test "$curl_cv_apple" = "yes"; then
AC_MSG_CHECKING([whether to build with Apple IDN])
OPT_IDN="default"
AC_ARG_WITH(apple-idn,
AS_HELP_STRING([--with-libidn2=PATH],[Enable libidn2 usage])
AS_HELP_STRING([--without-libidn2],[Disable libidn2 usage]),
[OPT_IDN=$withval])
-if test "x$tst_links_winidn" = "xyes"; then
+if test "$tst_links_winidn" = "yes"; then
want_idn="no"
AC_MSG_RESULT([no (using WinIDN instead)])
-elif test "x$tst_links_appleidn" = "xyes"; then
+elif test "$tst_links_appleidn" = "yes"; then
want_idn="no"
AC_MSG_RESULT([no (using AppleIDN instead)])
else
IDN_ENABLED=1
curl_idn_msg="enabled (libidn2)"
- if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
+ if test -n "$IDN_DIR" && test "$cross_compiling" != "yes"; then
CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$IDN_DIR"
export CURL_LIBRARY_PATH
AC_MSG_NOTICE([Added $IDN_DIR to CURL_LIBRARY_PATH])
OPT_H2="yes"
-if test "x$disable_http" = "xyes"; then
+if test "$disable_http" = "yes"; then
# without HTTP nghttp2 is no use
OPT_H2="no"
fi
;;
esac
-if test X"$want_nghttp2" != Xno; then
+if test "$want_nghttp2" != "no"; then
dnl backup the pre-nghttp2 variables
CLEANLDFLAGS="$LDFLAGS"
CLEANLDFLAGSPC="$LDFLAGSPC"
AC_MSG_NOTICE([-L is $LD_H2])
DIR_H2=`echo $LD_H2 | $SED -e 's/^-L//'`
- elif test x"$want_nghttp2_path" != x; then
+ elif test -n "$want_nghttp2_path"; then
LIB_H2="-lnghttp2"
LD_H2=-L${want_nghttp2_path}/lib$libsuff
CPP_H2=-I${want_nghttp2_path}/include
DIR_H2=${want_nghttp2_path}/lib$libsuff
- elif test X"$want_nghttp2" != Xdefault; then
+ elif test "$want_nghttp2" != "default"; then
dnl no nghttp2 pkg-config found and no custom directory specified,
dnl deal with it
AC_MSG_ERROR([--with-nghttp2 was specified but could not find libnghttp2 pkg-config file.])
OPT_TCP2="no"
-if test "x$disable_http" = "xyes"; then
+if test "$disable_http" = "yes"; then
# without HTTP, ngtcp2 is no use
OPT_TCP2="no"
fi
esac
curl_tcp2_msg="no (--with-ngtcp2)"
-if test X"$want_tcp2" != Xno; then
+if test "$want_tcp2" != "no"; then
if test "$QUIC_ENABLED" != "yes"; then
AC_MSG_ERROR([the detected TLS library does not support QUIC, making --with-ngtcp2 a no-no])
CPPFLAGS="$CPPFLAGS $CPP_TCP2"
LIBS="$LIB_TCP2 $LIBS"
- if test "x$cross_compiling" != "xyes"; then
+ if test "$cross_compiling" != "yes"; then
DIR_TCP2=`echo $LD_TCP2 | $SED -e 's/^-L//'`
fi
AC_CHECK_LIB(ngtcp2, ngtcp2_conn_client_new_versioned,
else
dnl no ngtcp2 pkg-config found, deal with it
- if test X"$want_tcp2" != Xdefault; then
+ if test "$want_tcp2" != "default"; then
dnl To avoid link errors, we do not allow --with-ngtcp2 without
dnl a pkgconfig file
AC_MSG_ERROR([--with-ngtcp2 was specified but could not find ngtcp2 pkg-config file.])
fi
fi
-if test "x$USE_NGTCP2" = "x1" -a "x$OPENSSL_ENABLED" = "x1" -a "$HAVE_LIBRESSL" = "1"; then
+if test "$USE_NGTCP2" = "1" && test "$OPENSSL_ENABLED" = "1" && test "$HAVE_LIBRESSL" = "1"; then
+
dnl backup the pre-ngtcp2_crypto_libressl variables
CLEANLDFLAGS="$LDFLAGS"
CLEANLDFLAGSPC="$LDFLAGSPC"
CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_LIBRESSL"
LIBS="$LIB_NGTCP2_CRYPTO_LIBRESSL $LIBS"
- if test "x$cross_compiling" != "xyes"; then
+ if test "$cross_compiling" != "yes"; then
DIR_NGTCP2_CRYPTO_LIBRESSL=`echo $LD_NGTCP2_CRYPTO_LIBRESSL | $SED -e 's/^-L//'`
fi
AC_CHECK_LIB(ngtcp2_crypto_libressl, ngtcp2_crypto_recv_client_initial_cb,
else
dnl no ngtcp2_crypto_libressl pkg-config found, deal with it
- if test X"$want_tcp2" != Xdefault; then
+ if test "$want_tcp2" != "default"; then
dnl To avoid link errors, we do not allow --with-ngtcp2 without
dnl a pkgconfig file
AC_MSG_WARN([--with-ngtcp2 was specified but could not find ngtcp2_crypto_libressl pkg-config file.])
fi
fi
-if test "x$USE_NGTCP2" = "x1" -a "x$OPENSSL_ENABLED" = "x1" -a "$HAVE_LIBRESSL" != "1" -a \
- "x$OPENSSL_IS_BORINGSSL" != "x1" -a "x$OPENSSL_QUIC_API2" != "x1"; then
+if test "$USE_NGTCP2" = "1" && test "$OPENSSL_ENABLED" = "1" && test "$OPENSSL_IS_BORINGSSL" != "1" &&
+ test "$OPENSSL_QUIC_API2" != "1"; then
+
dnl backup the pre-ngtcp2_crypto_quictls variables
CLEANLDFLAGS="$LDFLAGS"
CLEANLDFLAGSPC="$LDFLAGSPC"
CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_QUICTLS"
LIBS="$LIB_NGTCP2_CRYPTO_QUICTLS $LIBS"
- if test "x$cross_compiling" != "xyes"; then
+ if test "$cross_compiling" != "yes"; then
DIR_NGTCP2_CRYPTO_QUICTLS=`echo $LD_NGTCP2_CRYPTO_QUICTLS | $SED -e 's/^-L//'`
fi
AC_CHECK_LIB(ngtcp2_crypto_quictls, ngtcp2_crypto_recv_client_initial_cb,
else
dnl no ngtcp2_crypto_quictls pkg-config found, deal with it
- if test X"$want_tcp2" != Xdefault; then
+ if test "$want_tcp2" != "default"; then
dnl To avoid link errors, we do not allow --with-ngtcp2 without
dnl a pkgconfig file
AC_MSG_ERROR([--with-ngtcp2 was specified but could not find ngtcp2_crypto_quictls pkg-config file.])
fi
fi
-if test "x$USE_NGTCP2" = "x1" -a "x$OPENSSL_ENABLED" = "x1" -a \
- "x$OPENSSL_IS_BORINGSSL" != "x1" -a "x$OPENSSL_QUIC_API2" = "x1"; then
+if test "$USE_NGTCP2" = "1" && test "$OPENSSL_ENABLED" = "1" && test "$OPENSSL_IS_BORINGSSL" != "1" &&
+ test "$OPENSSL_QUIC_API2" = "1"; then
+
dnl backup the pre-ngtcp2_crypto_ossl variables
CLEANLDFLAGS="$LDFLAGS"
CLEANLDFLAGSPC="$LDFLAGSPC"
CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_OSSL"
LIBS="$LIB_NGTCP2_CRYPTO_OSSL $LIBS"
- if test "x$cross_compiling" != "xyes"; then
+ if test "$cross_compiling" != "yes"; then
DIR_NGTCP2_CRYPTO_OSSL=`echo $LD_NGTCP2_CRYPTO_OSSL | $SED -e 's/^-L//'`
fi
AC_CHECK_LIB(ngtcp2_crypto_ossl, ngtcp2_crypto_recv_client_initial_cb,
else
dnl no ngtcp2_crypto_ossl pkg-config found, deal with it
- if test X"$want_tcp2" != Xdefault; then
+ if test "$want_tcp2" != "default"; then
dnl To avoid link errors, we do not allow --with-ngtcp2 without
dnl a pkgconfig file
AC_MSG_ERROR([--with-ngtcp2 was specified but could not find ngtcp2_crypto_ossl pkg-config file.])
fi
fi
-if test "x$USE_NGTCP2" = "x1" -a "x$OPENSSL_ENABLED" = "x1" -a "x$OPENSSL_IS_BORINGSSL" = "x1"; then
+if test "$USE_NGTCP2" = "1" && test "$OPENSSL_ENABLED" = "1" && test "$OPENSSL_IS_BORINGSSL" = "1"; then
+
dnl backup the pre-ngtcp2_crypto_boringssl variables
CLEANLDFLAGS="$LDFLAGS"
CLEANLDFLAGSPC="$LDFLAGSPC"
CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_BORINGSSL"
LIBS="$LIB_NGTCP2_CRYPTO_BORINGSSL $LIBS"
- if test "x$cross_compiling" != "xyes"; then
+ if test "$cross_compiling" != "yes"; then
DIR_NGTCP2_CRYPTO_BORINGSSL=`echo $LD_NGTCP2_CRYPTO_BORINGSSL | $SED -e 's/^-L//'`
fi
AC_CHECK_LIB(ngtcp2_crypto_boringssl, ngtcp2_crypto_recv_client_initial_cb,
else
dnl no ngtcp2_crypto_boringssl pkg-config found, deal with it
- if test X"$want_tcp2" != Xdefault; then
+ if test "$want_tcp2" != "default"; then
dnl To avoid link errors, we do not allow --with-ngtcp2 without
dnl a pkgconfig file
AC_MSG_ERROR([--with-ngtcp2 was specified but could not find ngtcp2_crypto_boringssl pkg-config file.])
fi
fi
-if test "x$USE_NGTCP2" = "x1" -a "x$GNUTLS_ENABLED" = "x1"; then
+if test "$USE_NGTCP2" = "1" && test "$GNUTLS_ENABLED" = "1"; then
dnl backup the pre-ngtcp2_crypto_gnutls variables
CLEANLDFLAGS="$LDFLAGS"
CLEANLDFLAGSPC="$LDFLAGSPC"
CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_GNUTLS"
LIBS="$LIB_NGTCP2_CRYPTO_GNUTLS $LIBS"
- if test "x$cross_compiling" != "xyes"; then
+ if test "$cross_compiling" != "yes"; then
DIR_NGTCP2_CRYPTO_GNUTLS=`echo $LD_NGTCP2_CRYPTO_GNUTLS | $SED -e 's/^-L//'`
fi
AC_CHECK_LIB(ngtcp2_crypto_gnutls, ngtcp2_crypto_recv_client_initial_cb,
else
dnl no ngtcp2_crypto_gnutls pkg-config found, deal with it
- if test X"$want_tcp2" != Xdefault; then
+ if test "$want_tcp2" != "default"; then
dnl To avoid link errors, we do not allow --with-ngtcp2 without
dnl a pkgconfig file
AC_MSG_ERROR([--with-ngtcp2 was specified but could not find ngtcp2_crypto_gnutls pkg-config file.])
fi
fi
-if test "x$USE_NGTCP2" = "x1" -a "x$WOLFSSL_ENABLED" = "x1"; then
+if test "$USE_NGTCP2" = "1" && test "$WOLFSSL_ENABLED" = "1"; then
dnl backup the pre-ngtcp2_crypto_wolfssl variables
CLEANLDFLAGS="$LDFLAGS"
CLEANLDFLAGSPC="$LDFLAGSPC"
CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_WOLFSSL"
LIBS="$LIB_NGTCP2_CRYPTO_WOLFSSL $LIBS"
- if test "x$cross_compiling" != "xyes"; then
+ if test "$cross_compiling" != "yes"; then
DIR_NGTCP2_CRYPTO_WOLFSSL=`echo $LD_NGTCP2_CRYPTO_WOLFSSL | $SED -e 's/^-L//'`
fi
AC_CHECK_LIB(ngtcp2_crypto_wolfssl, ngtcp2_crypto_recv_client_initial_cb,
else
dnl no ngtcp2_crypto_wolfssl pkg-config found, deal with it
- if test X"$want_tcp2" != Xdefault; then
+ if test "$want_tcp2" != "default"; then
dnl To avoid link errors, we do not allow --with-ngtcp2 without
dnl a pkgconfig file
AC_MSG_ERROR([--with-ngtcp2 was specified but could not find ngtcp2_crypto_wolfssl pkg-config file.])
OPT_OPENSSL_QUIC="no"
-if test "x$disable_http" = "xyes" -o "x$OPENSSL_ENABLED" != "x1"; then
+if test "$disable_http" = "yes" || test "$OPENSSL_ENABLED" != "1"; then
# without HTTP or without openssl, no use
OPT_OPENSSL_QUIC="no"
fi
esac
curl_openssl_quic_msg="no (--with-openssl-quic)"
-if test "x$want_openssl_quic" = "xyes"; then
+if test "$want_openssl_quic" = "yes"; then
- if test "$USE_NGTCP2" = 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
+ 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])
OPT_NGHTTP3="yes"
-if test "x$USE_NGTCP2" != "x1" -a "x$USE_OPENSSL_QUIC" != "x1"; then
+if test "$USE_NGTCP2" != "1" && test "$USE_OPENSSL_QUIC" != "1"; then
# without ngtcp2 or openssl quic, nghttp3 is of no use for us
OPT_NGHTTP3="no"
want_nghttp3="no"
esac
curl_http3_msg="no (--with-nghttp3)"
-if test X"$want_nghttp3" != Xno; then
+if test "$want_nghttp3" != "no"; then
- if test "x$USE_NGTCP2" != "x1" -a "x$USE_OPENSSL_QUIC" != "x1"; then
+ if test "$USE_NGTCP2" != "1" && test "$USE_OPENSSL_QUIC" != "1"; then
# without ngtcp2 or openssl quic, nghttp3 is of no use for us
AC_MSG_ERROR([nghttp3 enabled without a QUIC library; enable ngtcp2 or OpenSSL-QUIC])
fi
CPPFLAGS="$CPPFLAGS $CPP_NGHTTP3"
LIBS="$LIB_NGHTTP3 $LIBS"
- if test "x$cross_compiling" != "xyes"; then
+ if test "$cross_compiling" != "yes"; then
DIR_NGHTTP3=`echo $LD_NGHTTP3 | $SED -e 's/^-L//'`
fi
AC_CHECK_LIB(nghttp3, nghttp3_conn_client_new_versioned,
else
dnl no nghttp3 pkg-config found, deal with it
- if test X"$want_nghttp3" != Xdefault; then
+ if test "$want_nghttp3" != "default"; then
dnl To avoid link errors, we do not allow --with-nghttp3 without
dnl a pkgconfig file
AC_MSG_ERROR([--with-nghttp3 was specified but could not find nghttp3 pkg-config file.])
dnl Check for ngtcp2 and nghttp3 (HTTP/3 with ngtcp2 + nghttp3)
dnl **********************************************************************
-if test "x$USE_NGTCP2" = "x1" -a "x$USE_NGHTTP3" = "x1"; then
+if test "$USE_NGTCP2" = "1" && test "$USE_NGHTTP3" = "1"; then
USE_NGTCP2_H3=1
AC_MSG_NOTICE([HTTP3 support is experimental])
curl_h3_msg="enabled (ngtcp2 + nghttp3)"
dnl Check for OpenSSL and nghttp3 (HTTP/3 with nghttp3 using OpenSSL QUIC)
dnl **********************************************************************
-if test "x$USE_OPENSSL_QUIC" = "x1" -a "x$USE_NGHTTP3" = "x1"; then
+if test "$USE_OPENSSL_QUIC" = "1" && test "$USE_NGHTTP3" = "1"; then
experimental="$experimental HTTP3"
USE_OPENSSL_H3=1
AC_MSG_NOTICE([HTTP3 support is experimental])
OPT_QUICHE="no"
-if test "x$disable_http" = "xyes" -o "x$USE_NGTCP" = "x1"; then
+if test "$disable_http" = "yes" || test "$USE_NGTCP" = "1"; then
# without HTTP or with ngtcp2, quiche is no use
OPT_QUICHE="no"
fi
;;
esac
-if test X"$want_quiche" != Xno; then
+if test "$want_quiche" != "no"; then
if test "$QUIC_ENABLED" != "yes"; then
AC_MSG_ERROR([the detected TLS library does not support QUIC, making --with-quiche a no-no])
fi
- if test "$NGHTTP3_ENABLED" = 1; then
+ if test "$NGHTTP3_ENABLED" = "1"; then
AC_MSG_ERROR([--with-quiche and --with-ngtcp2 are mutually exclusive])
fi
CPPFLAGS="$CPPFLAGS $CPP_QUICHE"
LIBS="$LIB_QUICHE $LIBS"
- if test "x$cross_compiling" != "xyes"; then
+ if test "$cross_compiling" != "yes"; then
DIR_QUICHE=`echo $LD_QUICHE | $SED -e 's/^-L//'`
fi
AC_CHECK_LIB(quiche, quiche_conn_send_ack_eliciting,
)
else
dnl no quiche pkg-config found, deal with it
- if test X"$want_quiche" != Xdefault; then
+ if test "$want_quiche" != "default"; then
dnl To avoid link errors, we do not allow --with-quiche without
dnl a pkgconfig file
AC_MSG_ERROR([--with-quiche was specified but could not find quiche pkg-config file.])
;;
esac
-if test X"$want_libuv" != Xno; then
- if test x$want_debug != xyes; then
+if test "$want_libuv" != "no"; then
+ if test "$want_debug" != "yes"; then
AC_MSG_ERROR([Using libuv without debug support enabled is useless])
fi
CPPFLAGS="$CPPFLAGS $CPP_LIBUV"
LIBS="$LIB_LIBUV $LIBS"
- if test "x$cross_compiling" != "xyes"; then
+ if test "$cross_compiling" != "yes"; then
DIR_LIBUV=`echo $LD_LIBUV | $SED -e 's/^-L//'`
fi
AC_CHECK_LIB(uv, uv_default_loop,
else
dnl no libuv pkg-config found, deal with it
- if test X"$want_libuv" != Xdefault; then
+ if test "$want_libuv" != "default"; then
dnl To avoid link errors, we do not allow --with-libuv without
dnl a pkgconfig file
AC_MSG_ERROR([--with-libuv was specified but could not find libuv pkg-config file.])
AC_SUBST(ZSH_FUNCTIONS_DIR)
;;
esac
-if test -z "$PERL" -a x"$ZSH_FUNCTIONS_DIR" != x; then
+if test -z "$PERL" && test -n "$ZSH_FUNCTIONS_DIR"; then
AC_MSG_WARN([perl was not found. Will not install zsh completions.])
ZSH_FUNCTIONS_DIR=''
fi
-AM_CONDITIONAL(USE_ZSH_COMPLETION, test x"$ZSH_FUNCTIONS_DIR" != x)
+AM_CONDITIONAL(USE_ZSH_COMPLETION, test -n "$ZSH_FUNCTIONS_DIR")
dnl **********************************************************************
dnl Check for fish completion path
AC_SUBST(FISH_FUNCTIONS_DIR)
;;
esac
-if test -z "$PERL" -a x"$FISH_FUNCTIONS_DIR" != x; then
+if test -z "$PERL" && test -n "$FISH_FUNCTIONS_DIR"; then
AC_MSG_WARN([perl was not found. Will not install fish completions.])
FISH_FUNCTIONS_DIR=''
fi
-AM_CONDITIONAL(USE_FISH_COMPLETION, test x"$FISH_FUNCTIONS_DIR" != x)
+AM_CONDITIONAL(USE_FISH_COMPLETION, test -n "$FISH_FUNCTIONS_DIR")
dnl Now check for the most basic headers. Then we can use these
dnl ones as default-headers when checking for the rest!
[Define to 1 if the compiler supports the 'long long' data type.])]
)
-if test ${ac_cv_sizeof_curl_off_t} -lt 8; then
+if test "$ac_cv_sizeof_curl_off_t" -lt 8; then
AC_MSG_ERROR([64-bit curl_off_t is required])
fi
#endif
])
-if test "$curl_cv_native_windows" != 'yes'; then
+if test "$curl_cv_native_windows" != "yes"; then
# check for sa_family_t
AC_CHECK_TYPE(sa_family_t,
AC_DEFINE(HAVE_SA_FAMILY_T, 1, [Define to 1 if symbol `sa_family_t' exists]),,
utimes \
])
-if test "$curl_cv_native_windows" = 'yes'; then
+if test "$curl_cv_native_windows" = "yes"; then
AC_MSG_CHECKING([for if_nametoindex on Windows])
AC_LINK_IFELSE([
AC_LANG_PROGRAM([[
fi
AC_CHECK_FUNCS([setmode])
-if test "$curl_cv_native_windows" = 'yes' -o "$curl_cv_cygwin" = 'yes'; then
+if test "$curl_cv_native_windows" = "yes" || test "$curl_cv_cygwin" = "yes"; then
AC_CHECK_FUNCS([_setmode])
fi
AC_CHECK_FUNCS([arc4random])
fi
-if test "$curl_cv_native_windows" != 'yes'; then
+if test "$curl_cv_native_windows" != "yes"; then
AC_CHECK_FUNCS([fseeko])
dnl On Android, the only way to know if fseeko can be used is to see if it is
CURL_CHECK_NONBLOCKING_SOCKET
dnl set variable for use in automakefile(s)
-AM_CONDITIONAL(BUILD_DOCS, test x"$BUILD_DOCS" = x1)
+AM_CONDITIONAL(BUILD_DOCS, test "$BUILD_DOCS" = "1")
dnl *************************************************************************
dnl If the manual variable still is set, then we go with providing a built-in
fi
dnl set variable for use in automakefile(s)
-AM_CONDITIONAL(USE_MANUAL, test x"$USE_MANUAL" = x1)
+AM_CONDITIONAL(USE_MANUAL, test "$USE_MANUAL" = "1")
CURL_CHECK_LIB_ARES
CURL_CHECK_OPTION_THREADED_RESOLVER
-if test "$ipv6" = yes -a "$curl_cv_apple" = 'yes'; then
+if test "$ipv6" = "yes" && test "$curl_cv_apple" = "yes"; then
CURL_DARWIN_SYSTEMCONFIGURATION
fi
*-ibm-aix*)
dnl Check if compiler is xlC
COMPILER_VERSION=`"$CC" -qversion 2>/dev/null`
- if test x"$COMPILER_VERSION" = "x"; then
+ if test -z "$COMPILER_VERSION"; then
CFLAGS="$CFLAGS -pthread"
else
CFLAGS="$CFLAGS -qthreaded"
[ CFLAGS="$save_CFLAGS"])
fi
- if test "x$USE_THREADS_POSIX" = "x1"; then
+ if test "$USE_THREADS_POSIX" = "1"; then
AC_DEFINE(USE_THREADS_POSIX, 1, [if you want POSIX threaded DNS lookup])
curl_res_msg="POSIX threaded"
fi
fi
dnl Did we find a threading option?
-if test "$want_threaded_resolver" != "no" -a "x$USE_THREADS_POSIX" != "x1" -a "x$USE_THREADS_WIN32" != "x1"; then
+if test "$want_threaded_resolver" != "no" && test "$USE_THREADS_POSIX" != "1" && test "$USE_THREADS_WIN32" != "1"; then
AC_MSG_ERROR([Threaded resolver enabled but no thread library found])
fi
AC_MSG_RESULT(yes)
)
-if test "$curl_cv_winuwp" != 'yes'; then
+if test "$curl_cv_winuwp" != "yes"; then
dnl ************************************************************
dnl enable SSPI support
dnl
fi
;;
*)
- if test "x$SCHANNEL_ENABLED" = "x1"; then
+ if test "$SCHANNEL_ENABLED" = "1"; then
# --with-schannel implies --enable-sspi
AC_MSG_RESULT(yes)
else
fi
;;
esac ],
- if test "x$SCHANNEL_ENABLED" = "x1"; then
+ if test "$SCHANNEL_ENABLED" = "1"; then
# --with-schannel implies --enable-sspi
AC_MSG_RESULT(yes)
else
fi
)
- if test "x$USE_WINDOWS_SSPI" = "x1"; then
+ if test "$USE_WINDOWS_SSPI" = "1"; then
LIBS="-lsecur32 $LIBS"
fi
fi
want_tls_srp=yes
)
-if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1"); then
+if test "$want_tls_srp" = "yes" && (test "$HAVE_GNUTLS_SRP" = "1" || test "$HAVE_OPENSSL_SRP" = "1"); then
AC_DEFINE(USE_TLS_SRP, 1, [Use TLS-SRP authentication])
USE_TLS_SRP=1
curl_tls_srp_msg="enabled"
want_unix_sockets=auto
]
)
-if test "x$want_unix_sockets" != "xno"; then
- if test "x$curl_cv_native_windows" = "xyes"; then
+if test "$want_unix_sockets" != "no"; then
+ if test "$curl_cv_native_windows" = "yes"; then
USE_UNIX_SOCKETS=1
AC_DEFINE(USE_UNIX_SOCKETS, 1, [Use Unix domain sockets])
curl_unix_sockets_msg="enabled"
USE_UNIX_SOCKETS=1
curl_unix_sockets_msg="enabled"
], [
- if test "x$want_unix_sockets" = "xyes"; then
+ if test "$want_unix_sockets" = "yes"; then
AC_MSG_ERROR([--enable-unix-sockets is not available on this platform!])
fi
], [
;;
*)
AC_MSG_RESULT(yes)
- test "$enable_mime" = no &&
+ test "x$enable_mime" = "xno" &&
AC_MSG_ERROR(MIME support needs to be enabled in order to enable form API support)
;;
esac ],
[
- if test "$enable_mime" = no; then
+ if test "x$enable_mime" = "xno"; then
enable_form_api=no
AC_MSG_RESULT(no)
AC_DEFINE(CURL_DISABLE_FORM_API, 1, [disable form API])
hsts="no"
fi
-if test "x$hsts" != "xyes"; then
+if test "$hsts" != "yes"; then
curl_hsts_msg="no (--enable-hsts)";
AC_DEFINE(CURL_DISABLE_HSTS, 1, [disable alt-svc])
fi
dnl *************************************************************
dnl check whether ECH support, if desired, is actually available
dnl
-if test "x$want_ech" != "xno"; then
+if test "$want_ech" != "no"; then
AC_MSG_CHECKING([whether ECH support is available])
dnl assume NOT and look for sufficient condition
ECH_SUPPORT=''
dnl check for OpenSSL equivalent
- if test "x$OPENSSL_ENABLED" = "x1"; then
+ if test "$OPENSSL_ENABLED" = "1"; then
AC_CHECK_FUNCS(SSL_set1_ech_config_list,
ECH_SUPPORT="$ECH_SUPPORT OpenSSL"
ECH_ENABLED_OPENSSL=1)
fi
- if test "x$WOLFSSL_ENABLED" = "x1"; then
+ if test "$WOLFSSL_ENABLED" = "1"; then
AC_CHECK_FUNCS(wolfSSL_CTX_GenerateEchConfig,
ECH_SUPPORT="$ECH_SUPPORT wolfSSL"
ECH_ENABLED_WOLFSSL=1)
fi
- if test "x$RUSTLS_ENABLED" = "x1"; then
+ if test "$RUSTLS_ENABLED" = "1"; then
ECH_SUPPORT="$ECH_SUPPORT rustls-ffi"
ECH_ENABLED_RUSTLS=1
fi
dnl now deal with whatever we found
- if test "x$ECH_ENABLED_OPENSSL" = "x1" -o \
- "x$ECH_ENABLED_WOLFSSL" = "x1" -o \
- "x$ECH_ENABLED_RUSTLS" = "x1"; then
+ if test "$ECH_ENABLED_OPENSSL" = "1" ||
+ test "$ECH_ENABLED_WOLFSSL" = "1" ||
+ test "$ECH_ENABLED_RUSTLS" = "1"; then
AC_DEFINE(USE_ECH, 1, [if ECH support is available])
AC_MSG_RESULT(ECH support available via:$ECH_SUPPORT)
experimental="$experimental ECH"
dnl *************************************************************
dnl check whether HTTPSRR support if desired
dnl
-if test "x$want_httpsrr" != "xno"; then
+if test "$want_httpsrr" != "no"; then
AC_MSG_RESULT([yes])
AC_DEFINE(USE_HTTPSRR, 1, [enable HTTPS RR support])
experimental="$experimental HTTPSRR"
# no HTTPSRR wanted
if test "$want_threaded_resolver" = "yes"; then
# and using the threaded resolver
- if test "x$USE_ARES" = "x1"; then
+ if test "$USE_ARES" = "1"; then
AC_MSG_ERROR([without HTTPS-RR support, asking for both threaded resolver and c-ares support is ambivalent. Please drop one of them.])
fi
fi
dnl *************************************************************
dnl check whether OpenSSL (lookalikes) have SSL_set0_wbio
dnl
-if test "x$OPENSSL_ENABLED" = "x1"; then
+if test "$OPENSSL_ENABLED" = "1"; then
AC_CHECK_FUNCS([SSL_set0_wbio])
fi
-if test "x$CURL_DISABLE_HTTP" != "x1"; then
+if test "$CURL_DISABLE_HTTP" != "1"; then
dnl *************************************************************
dnl WebSockets
dnl
CURL_DISABLE_WEBSOCKETS=1
;;
*)
- if test ${ac_cv_sizeof_curl_off_t} -gt 4; then
+ if test "$ac_cv_sizeof_curl_off_t" -gt 4; then
AC_MSG_RESULT(yes)
else
dnl WebSockets requires >32-bit curl_off_t
dnl *************************************************************
dnl check whether experimental SSL Session Im-/Export is enabled
dnl
-if test "x$want_ssls_export" != "xno"; then
+if test "$want_ssls_export" != "no"; then
AC_MSG_CHECKING([whether SSL session export support is available])
dnl assume NOT and look for sufficient condition
SSLS_EXPORT_ENABLED=0
SSLS_EXPORT_SUPPORT=''
- if test "x$SSL_ENABLED" != "x1"; then
+ if test "$SSL_ENABLED" != "1"; then
AC_MSG_WARN([--enable-ssls-export ignored: No SSL support])
else
SSLS_EXPORT_ENABLED=1
BLANK_AT_MAKETIME=
AC_SUBST(BLANK_AT_MAKETIME)
-AM_CONDITIONAL(CROSSCOMPILING, test x$cross_compiling = xyes)
+AM_CONDITIONAL(CROSSCOMPILING, test "$cross_compiling" = "yes")
dnl yes or no
ENABLE_SHARED="$enable_shared"
AC_SUBST(LIBCURL_PC_REQUIRES_PRIVATE)
dnl Merge pkg-config private fields into public ones when static-only
-if test "x$enable_shared" = "xno"; then
+if test "$enable_shared" = "no"; then
LIBCURL_PC_REQUIRES=$LIBCURL_PC_REQUIRES_PRIVATE
LIBCURL_PC_LIBS=$LIBCURL_PC_LIBS_PRIVATE
else
dnl since it is more cross-compile friendly than curl-config
dnl
-if test "x$OPENSSL_ENABLED" = "x1"; then
+if test "$OPENSSL_ENABLED" = "1"; then
SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
elif test -n "$SSL_ENABLED"; then
SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
fi
-if test "x$IPV6_ENABLED" = "x1"; then
+if test "$IPV6_ENABLED" = "1"; then
SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
fi
-if test "x$USE_UNIX_SOCKETS" = "x1"; then
+if test "$USE_UNIX_SOCKETS" = "1"; then
SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
fi
-if test "x$HAVE_LIBZ" = "x1"; then
+if test "$HAVE_LIBZ" = "1"; then
SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
fi
-if test "x$HAVE_BROTLI" = "x1"; then
+if test "$HAVE_BROTLI" = "1"; then
SUPPORT_FEATURES="$SUPPORT_FEATURES brotli"
fi
-if test "x$HAVE_ZSTD" = "x1"; then
+if test "$HAVE_ZSTD" = "1"; then
SUPPORT_FEATURES="$SUPPORT_FEATURES zstd"
fi
-if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \
- -o "x$USE_THREADS_WIN32" = "x1"; then
+if test "$USE_ARES" = "1" || test "$USE_THREADS_POSIX" = "1" || test "$USE_THREADS_WIN32" = "1"; then
SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
fi
-if test "x$USE_ARES" = "x1" -a "$want_threaded_resolver" = "yes" -a "x$want_httpsrr" != "xno"; then
+if test "$USE_ARES" = "1" && test "$want_threaded_resolver" = "yes" && test "$want_httpsrr" != "no"; then
SUPPORT_FEATURES="$SUPPORT_FEATURES asyn-rr"
fi
-if test "x$IDN_ENABLED" = "x1"; then
+if test "$IDN_ENABLED" = "1"; then
SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
fi
-if test "x$USE_WINDOWS_SSPI" = "x1"; then
+if test "$USE_WINDOWS_SSPI" = "1"; then
SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
fi
-if test "x$HAVE_GSSAPI" = "x1"; then
+if test "$HAVE_GSSAPI" = "1"; then
SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
fi
-if test "x$curl_psl_msg" = "xenabled"; then
+if test "$curl_psl_msg" = "enabled"; then
SUPPORT_FEATURES="$SUPPORT_FEATURES PSL"
fi
-if test "x$curl_gsasl_msg" = "xenabled"; then
+if test "$curl_gsasl_msg" = "enabled"; then
SUPPORT_FEATURES="$SUPPORT_FEATURES gsasl"
fi
-if test "x$enable_altsvc" = "xyes"; then
+if test "$enable_altsvc" = "yes"; then
SUPPORT_FEATURES="$SUPPORT_FEATURES alt-svc"
fi
-if test "x$hsts" = "xyes"; then
+if test "$hsts" = "yes"; then
SUPPORT_FEATURES="$SUPPORT_FEATURES HSTS"
fi
-if test "x$CURL_DISABLE_NEGOTIATE_AUTH" != "x1" -a \
- \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
+if test "$CURL_DISABLE_NEGOTIATE_AUTH" != "1" && (test "$HAVE_GSSAPI" = "1" || test "$USE_WINDOWS_SSPI" = "1"); then
SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
fi
-if test "x$CURL_DISABLE_KERBEROS_AUTH" != "x1" -a \
- \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
+if test "$CURL_DISABLE_KERBEROS_AUTH" != "1" && (test "$HAVE_GSSAPI" = "1" || test "$USE_WINDOWS_SSPI" = "1"); then
SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
fi
use_curl_ntlm_core=no
-if test "x$CURL_DISABLE_NTLM" != "x1"; then
- if test "x$HAVE_DES_ECB_ENCRYPT" = "x1" \
- -o "x$GNUTLS_ENABLED" = "x1" \
- -o "x$USE_WIN32_CRYPTO" = "x1" \
- -o "x$HAVE_WOLFSSL_DES_ECB_ENCRYPT" = "x1" \
- -o "x$HAVE_MBEDTLS_DES_CRYPT_ECB" = "x1"; then
+if test "$CURL_DISABLE_NTLM" != "1"; then
+ if test "$HAVE_DES_ECB_ENCRYPT" = "1" ||
+ test "$GNUTLS_ENABLED" = "1" ||
+ test "$USE_WIN32_CRYPTO" = "1" ||
+ test "$HAVE_WOLFSSL_DES_ECB_ENCRYPT" = "1" ||
+ test "$HAVE_MBEDTLS_DES_CRYPT_ECB" = "1"; then
use_curl_ntlm_core=yes
fi
- if test "x$use_curl_ntlm_core" = "xyes" \
- -o "x$USE_WINDOWS_SSPI" = "x1"; then
+ if test "$use_curl_ntlm_core" = "yes" ||
+ test "$USE_WINDOWS_SSPI" = "1"; then
SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
fi
fi
-if test "x$USE_TLS_SRP" = "x1"; then
+if test "$USE_TLS_SRP" = "1"; then
SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
fi
-if test "x$USE_NGHTTP2" = "x1"; then
+if test "$USE_NGHTTP2" = "1"; then
SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
fi
-if test "x$USE_NGTCP2_H3" = "x1" -o "x$USE_QUICHE" = "x1" \
- -o "x$USE_OPENSSL_H3" = "x1"; then
- if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
+if test "$USE_NGTCP2_H3" = "1" ||
+ test "$USE_QUICHE" = "1" ||
+ test "$USE_OPENSSL_H3" = "1"; then
+ if test "$CURL_WITH_MULTI_SSL" = "1"; then
AC_MSG_ERROR([MultiSSL cannot be enabled with HTTP/3 and vice versa])
fi
SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP3"
fi
-if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
+if test "$CURL_WITH_MULTI_SSL" = "1"; then
SUPPORT_FEATURES="$SUPPORT_FEATURES MultiSSL"
fi
AC_MSG_CHECKING([if this build supports HTTPS-proxy])
dnl if not explicitly turned off, HTTPS-proxy comes with some TLS backends
-if test "x$CURL_DISABLE_HTTP" != "x1"; then
- if test "x$https_proxy" != "xno"; then
- if test "x$OPENSSL_ENABLED" = "x1" \
- -o "x$GNUTLS_ENABLED" = "x1" \
- -o "x$RUSTLS_ENABLED" = "x1" \
- -o "x$SCHANNEL_ENABLED" = "x1" \
- -o "x$GNUTLS_ENABLED" = "x1" \
- -o "x$MBEDTLS_ENABLED" = "x1"; then
+if test "$CURL_DISABLE_HTTP" != "1"; then
+ if test "$https_proxy" != "no"; then
+ if test "$OPENSSL_ENABLED" = "1" ||
+ test "$GNUTLS_ENABLED" = "1" ||
+ test "$RUSTLS_ENABLED" = "1" ||
+ test "$SCHANNEL_ENABLED" = "1" ||
+ test "$GNUTLS_ENABLED" = "1" ||
+ test "$MBEDTLS_ENABLED" = "1"; then
SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
AC_MSG_RESULT([yes])
- elif test "x$WOLFSSL_ENABLED" = "x1" -a "x$HAVE_WOLFSSL_BIO_NEW" = "x1"; then
+ elif test "$WOLFSSL_ENABLED" = "1" && test "$HAVE_WOLFSSL_BIO_NEW" = "1"; then
SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
fi
-if test "x$OPENSSL_ENABLED" = "x1" -o -n "$SSL_ENABLED"; then
- if test "x$ECH_ENABLED" = "x1"; then
+if test "$OPENSSL_ENABLED" = "1" || test -n "$SSL_ENABLED"; then
+ if test "$ECH_ENABLED" = "1"; then
SUPPORT_FEATURES="$SUPPORT_FEATURES ECH"
fi
fi
-if test "x$APPLE_SECTRUST_ENABLED" = "x1"; then
+if test "$APPLE_SECTRUST_ENABLED" = "1"; then
SUPPORT_FEATURES="$SUPPORT_FEATURES AppleSecTrust"
fi
-if test "x$want_httpsrr" != "xno"; then
+if test "$want_httpsrr" != "no"; then
SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPSRR"
fi
-if test "x$SSLS_EXPORT_ENABLED" = "x1"; then
+if test "$SSLS_EXPORT_ENABLED" = "1"; then
SUPPORT_FEATURES="$SUPPORT_FEATURES SSLS-EXPORT"
fi
-if test ${ac_cv_sizeof_curl_off_t} -gt 4; then
- if test ${ac_cv_sizeof_off_t} -gt 4 -o \
- "$curl_cv_native_windows" = "yes"; then
+if test "$ac_cv_sizeof_curl_off_t" -gt 4; then
+ if test "$ac_cv_sizeof_off_t" -gt 4 ||
+ test "$curl_cv_native_windows" = "yes"; then
SUPPORT_FEATURES="$SUPPORT_FEATURES Largefile"
fi
fi
if test "$tst_atomic" = "yes"; then
SUPPORT_FEATURES="$SUPPORT_FEATURES threadsafe"
-elif test "x$USE_THREADS_POSIX" = "x1" -a \
- "x$ac_cv_header_pthread_h" = "xyes"; then
+elif test "$USE_THREADS_POSIX" = "1" && test "$ac_cv_header_pthread_h" = "yes"; then
SUPPORT_FEATURES="$SUPPORT_FEATURES threadsafe"
else
AC_COMPILE_IFELSE([
])
fi
-if test "x$want_winuni" = "xyes"; then
+if test "$want_winuni" = "yes"; then
SUPPORT_FEATURES="$SUPPORT_FEATURES Unicode"
fi
-if test "x$want_debug" = "xyes"; then
+if test "$want_debug" = "yes"; then
SUPPORT_FEATURES="$SUPPORT_FEATURES Debug"
fi
-if test "x$want_curldebug" = "xyes"; then
+if test "$want_curldebug" = "yes"; then
SUPPORT_FEATURES="$SUPPORT_FEATURES TrackMemory"
fi
-if test "x$CURL_CA_EMBED" != "x"; then
+if test -n "$CURL_CA_EMBED"; then
SUPPORT_FEATURES="$SUPPORT_FEATURES CAcert"
CURL_CA_EMBED_msg="$CURL_CA_EMBED"
else
AC_SUBST(SUPPORT_FEATURES)
dnl For supported protocols in pkg-config file
-if test "x$CURL_DISABLE_HTTP" != "x1"; then
+if test "$CURL_DISABLE_HTTP" != "1"; then
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
- if test "x$SSL_ENABLED" = "x1"; then
+ if test "$SSL_ENABLED" = "1"; then
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
fi
fi
-if test "x$CURL_DISABLE_FTP" != "x1"; then
+if test "$CURL_DISABLE_FTP" != "1"; then
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
- if test "x$SSL_ENABLED" = "x1"; then
+ if test "$SSL_ENABLED" = "1"; then
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
fi
fi
-if test "x$CURL_DISABLE_FILE" != "x1"; then
+if test "$CURL_DISABLE_FILE" != "1"; then
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
fi
-if test "x$CURL_DISABLE_TELNET" != "x1"; then
+if test "$CURL_DISABLE_TELNET" != "1"; then
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
fi
-if test "x$CURL_DISABLE_LDAP" != "x1"; then
+if test "$CURL_DISABLE_LDAP" != "1"; then
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
- if test "x$CURL_DISABLE_LDAPS" != "x1"; then
- if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
- (test "x$USE_OPENLDAP" != "x1" && test "x$HAVE_LDAP_SSL" = "x1"); then
+ if test "$CURL_DISABLE_LDAPS" != "1"; then
+ if (test "$USE_OPENLDAP" = "1" && test "$SSL_ENABLED" = "1") ||
+ (test "$USE_OPENLDAP" != "1" && test "$HAVE_LDAP_SSL" = "1"); then
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
fi
fi
fi
-if test "x$CURL_DISABLE_DICT" != "x1"; then
+if test "$CURL_DISABLE_DICT" != "1"; then
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
fi
-if test "x$CURL_DISABLE_TFTP" != "x1"; then
+if test "$CURL_DISABLE_TFTP" != "1"; then
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
fi
-if test "x$CURL_DISABLE_GOPHER" != "x1"; then
+if test "$CURL_DISABLE_GOPHER" != "1"; then
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
- if test "x$SSL_ENABLED" = "x1"; then
+ if test "$SSL_ENABLED" = "1"; then
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHERS"
fi
fi
-if test "x$CURL_DISABLE_MQTT" != "x1"; then
+if test "$CURL_DISABLE_MQTT" != "1"; then
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS MQTT"
fi
-if test "x$CURL_DISABLE_POP3" != "x1"; then
+if test "$CURL_DISABLE_POP3" != "1"; then
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
- if test "x$SSL_ENABLED" = "x1"; then
+ if test "$SSL_ENABLED" = "1"; then
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
fi
fi
-if test "x$CURL_DISABLE_IMAP" != "x1"; then
+if test "$CURL_DISABLE_IMAP" != "1"; then
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
- if test "x$SSL_ENABLED" = "x1"; then
+ if test "$SSL_ENABLED" = "1"; then
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
fi
fi
-if test "x$CURL_DISABLE_SMB" != "x1" \
- -a "x$use_curl_ntlm_core" = "xyes"; then
+if test "$CURL_DISABLE_SMB" != "1" && test "$use_curl_ntlm_core" = "yes"; then
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
- if test "x$SSL_ENABLED" = "x1"; then
+ if test "$SSL_ENABLED" = "1"; then
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
fi
fi
-if test "x$CURL_DISABLE_SMTP" != "x1"; then
+if test "$CURL_DISABLE_SMTP" != "1"; then
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
- if test "x$SSL_ENABLED" = "x1"; then
+ if test "$SSL_ENABLED" = "1"; then
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
fi
fi
-if test "x$USE_LIBSSH2" = "x1"; then
+if test "$USE_LIBSSH2" = "1"; then
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
fi
-if test "x$USE_LIBSSH" = "x1"; then
+if test "$USE_LIBSSH" = "1"; then
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
fi
-if test "x$CURL_DISABLE_IPFS" != "x1"; then
+if test "$CURL_DISABLE_IPFS" != "1"; then
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IPFS IPNS"
fi
-if test "x$CURL_DISABLE_RTSP" != "x1"; then
+if test "$CURL_DISABLE_RTSP" != "1"; then
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
fi
-if test "x$USE_LIBRTMP" = "x1"; then
+if test "$USE_LIBRTMP" = "1"; then
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
fi
-if test "x$CURL_DISABLE_WEBSOCKETS" != "x1"; then
+if test "$CURL_DISABLE_WEBSOCKETS" != "1"; then
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS WS"
- if test "x$SSL_ENABLED" = "x1"; then
+ if test "$SSL_ENABLED" = "1"; then
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS WSS"
fi
fi
SSL_BACKENDS=${ssl_backends}
AC_SUBST(SSL_BACKENDS)
-if test "x$want_curldebug_assumed" = "xyes" &&
- test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
+if test "$want_curldebug_assumed" = "yes" &&
+ test "$want_curldebug" = "yes" && test "$USE_ARES" = "1"; then
ac_configure_args="$ac_configure_args --enable-curldebug"
fi