configure: fail if --with-quiche is used and quiche isn't found

Closes #6652
This commit is contained in:
Daniel Stenberg 2021-02-24 11:26:52 +01:00
parent 811acd1a08
commit c7c1e5851f
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
1 changed files with 2 additions and 4 deletions

View File

@ -4005,7 +4005,7 @@ dnl **********************************************************************
dnl Check for quiche (QUIC) dnl Check for quiche (QUIC)
dnl ********************************************************************** dnl **********************************************************************
OPT_QUICHE="yes" OPT_QUICHE="no"
if test "x$disable_http" = "xyes" -o "x$USE_NGTCP" = "x1"; then if test "x$disable_http" = "xyes" -o "x$USE_NGTCP" = "x1"; then
# without HTTP or with ngtcp2, quiche is no use # without HTTP or with ngtcp2, quiche is no use
@ -4077,9 +4077,7 @@ if test X"$want_quiche" != Xno; then
) )
], ],
dnl not found, revert back to clean variables dnl not found, revert back to clean variables
LDFLAGS=$CLEANLDFLAGS AC_MSG_ERROR([couldn't use quiche])
CPPFLAGS=$CLEANCPPFLAGS
LIBS=$CLEANLIBS
) )
else else
dnl no quiche pkg-config found, deal with it dnl no quiche pkg-config found, deal with it