configure: use AC_MSG_WARN for TLS/experimental warning texts

- no longer warns for mbedtls
- warns for each item on individual lines
- no longer shows irrelevant TLS libraries when multiple are selected
- removes ech repetition

Closes #13941
This commit is contained in:
Daniel Stenberg 2024-06-13 16:08:19 +02:00
Родитель ea12afd5ea
Коммит 7ddc355abf
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 5CC908FDB71E12C2
2 изменённых файлов: 7 добавлений и 9 удалений

Просмотреть файл

@ -5044,15 +5044,15 @@ AC_MSG_NOTICE([Configured to build curl/libcurl:
Features: ${SUPPORT_FEATURES}
])
non13=`echo "$TLSCHOICE" | $EGREP -i 'bearssl|secure-transport|mbedtls'`;
non13=`echo "$TLSCHOICE" | $EGREP -io 'bearssl|secure-transport'`;
if test -n "$non13"; then
cat >&2 << _EOF
WARNING: A selected TLS library ($TLSCHOICE) does not support TLS 1.3!
_EOF
for a in $non13; do
AC_MSG_WARN([$a is enabled for TLS but it does not support TLS 1.3])
done
fi
if test -n "$experimental"; then
cat >&2 << _EOF
WARNING: $experimental enabled but marked EXPERIMENTAL. Use with caution!
_EOF
for a in $experimental; do
AC_MSG_WARN([$a is enabled but marked EXPERIMENTAL. Use with caution!])
done
fi

Просмотреть файл

@ -662,7 +662,6 @@ AS_HELP_STRING([--disable-httpsrr],[Disable HTTPSRR support]),
dnl --enable-httpsrr option used
want_httpsrr="yes"
curl_httpsrr_msg="enabled (--disable-httpsrr)"
experimental="httpsrr"
AC_MSG_RESULT([yes])
;;
esac
@ -698,7 +697,6 @@ AS_HELP_STRING([--disable-ech],[Disable ECH support]),
dnl --enable-ech option used
want_ech="yes"
curl_ech_msg="enabled (--disable-ech)"
experimental="ech"
AC_MSG_RESULT([yes])
;;
esac