summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@mips.inka.de>2021-07-21 23:33:32 +0200
committerDaniel Stenberg <daniel@haxx.se>2021-07-22 17:14:40 +0200
commit673753344c5f6c66830ce37884a2b628da44a695 (patch)
treed1d63c7cbab834b9cee4f0183933340bcf67b115 /configure.ac
parent59878411c40f00098a238ce141216a4dd592e2f3 (diff)
downloadcurl-673753344c5f6c66830ce37884a2b628da44a695.tar.gz
configure: tweak nghttp2 library name fix
commit 29c7cf79e8b44cf (shipped in 7.78.0) introduced a problem by assuming that LIB_H2 does not have any leading whitespace. At least OpenBSD's native pkg-config can produce such whitespace, though: $ pkg-config --libs-only-l libnghttp2 -lnghttp2 As a result, the configure check for libnghttp2 will erroneously fail. Bug: https://curl.se/mail/lib-2021-07/0050.html Closes #7472
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index dc8e416e4..8a8856df4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2541,7 +2541,7 @@ if test X"$want_h2" != Xno; then
LDFLAGS="$LDFLAGS $LD_H2"
CPPFLAGS="$CPPFLAGS $CPP_H2"
LIBS="$LIB_H2 $LIBS"
- LIB_H2_NAME=${LIB_H2#"-l"}
+ LIB_H2_NAME=`echo $LIB_H2 | $SED -e 's/-l//'`
# use nghttp2_session_set_local_window_size to require nghttp2
# >= 1.12.0