From 814d3ffe74123dd5d103406c965793a4a491112d Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 26 May 2023 10:03:51 +0200 Subject: [PATCH] configure: without pkg-config and no custom path, use -lnghttp2 Reported-by: correctmost on github Fixes #11186 Closes #11210 --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.ac b/configure.ac index 0f316d0bb8..b358f9a1fa 100644 --- a/configure.ac +++ b/configure.ac @@ -2819,6 +2819,8 @@ if test X"$want_nghttp2" != Xno; 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.]) + else + LIB_H2="-lnghttp2" fi LDFLAGS="$LDFLAGS $LD_H2" -- 2.47.3