configure: error out if both ngtcp2 and quiche are specified

Reported-by: Vincent Grande
See #7539
Closes #7545
This commit is contained in:
Daniel Stenberg 2021-08-09 10:44:56 +02:00
parent 76e047fc27
commit c4242b1e6e
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -2893,6 +2893,11 @@ case "$OPT_QUICHE" in
esac
if test X"$want_quiche" != Xno; then
if test "$NGHTTP3_ENABLED" = 1; then
AC_MSG_ERROR([--with-quiche and --with-ngtcp2 are mutually exclusive])
fi
dnl backup the pre-quiche variables
CLEANLDFLAGS="$LDFLAGS"
CLEANCPPFLAGS="$CPPFLAGS"