mirror of
https://github.com/curl/curl.git
synced 2025-09-17 09:32:48 +03:00
configure: add --enable-websockets
This commit is contained in:
parent
6698e6ca24
commit
6a9b1d1c94
27
configure.ac
27
configure.ac
|
@ -170,6 +170,7 @@ curl_verbose_msg="enabled (--disable-verbose)"
|
||||||
curl_altsvc_msg="enabled (--disable-alt-svc)"
|
curl_altsvc_msg="enabled (--disable-alt-svc)"
|
||||||
curl_headers_msg="enabled (--disable-headers-api)"
|
curl_headers_msg="enabled (--disable-headers-api)"
|
||||||
curl_hsts_msg="enabled (--disable-hsts)"
|
curl_hsts_msg="enabled (--disable-hsts)"
|
||||||
|
curl_ws_msg="no (--enable-websockets)"
|
||||||
ssl_backends=
|
ssl_backends=
|
||||||
curl_h1_msg="enabled (internal)"
|
curl_h1_msg="enabled (internal)"
|
||||||
curl_h2_msg="no (--with-nghttp2, --with-hyper)"
|
curl_h2_msg="no (--with-nghttp2, --with-hyper)"
|
||||||
|
@ -4180,6 +4181,31 @@ if test "x$want_ech" != "xno"; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
dnl *************************************************************
|
||||||
|
dnl WebSockets
|
||||||
|
dnl
|
||||||
|
AC_MSG_CHECKING([whether to support WebSockets])
|
||||||
|
AC_ARG_ENABLE(websockets,
|
||||||
|
AS_HELP_STRING([--enable-websockets],[Enable WebSockets support])
|
||||||
|
AS_HELP_STRING([--disable-websockets],[Disable WebSockets support]),
|
||||||
|
[ case "$enableval" in
|
||||||
|
no)
|
||||||
|
AC_MSG_RESULT(no)
|
||||||
|
;;
|
||||||
|
*) AC_MSG_RESULT(yes)
|
||||||
|
curl_ws_msg="enabled"
|
||||||
|
AC_DEFINE_UNQUOTED(USE_WEBSOCKETS, [1], [enable websockets support])
|
||||||
|
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS WS"
|
||||||
|
if test "x$SSL_ENABLED" = "x1"; then
|
||||||
|
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS WSS"
|
||||||
|
fi
|
||||||
|
experimental="$experimental Websockets"
|
||||||
|
;;
|
||||||
|
esac ],
|
||||||
|
AC_MSG_RESULT(no)
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
dnl ************************************************************
|
dnl ************************************************************
|
||||||
dnl hiding of library internal symbols
|
dnl hiding of library internal symbols
|
||||||
dnl
|
dnl
|
||||||
|
@ -4559,6 +4585,7 @@ AC_MSG_NOTICE([Configured to build curl/libcurl:
|
||||||
HTTP2: ${curl_h2_msg}
|
HTTP2: ${curl_h2_msg}
|
||||||
HTTP3: ${curl_h3_msg}
|
HTTP3: ${curl_h3_msg}
|
||||||
ECH: ${curl_ech_msg}
|
ECH: ${curl_ech_msg}
|
||||||
|
WebSockets: ${curl_ws_msg}
|
||||||
Protocols: ${SUPPORT_PROTOCOLS}
|
Protocols: ${SUPPORT_PROTOCOLS}
|
||||||
Features: ${SUPPORT_FEATURES}
|
Features: ${SUPPORT_FEATURES}
|
||||||
])
|
])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user