Skip to content

Commit b4b34db

Browse files
committed
configure.ac: tweak nghttp2 library name fix again
- Change extraction to handle multiple library names returned by pkg-config (eg a possible scenario with pkg-config --static). Ref: curl#7472 Closes curl#7485
1 parent 83245d9 commit b4b34db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configure.ac

+1-1
Original file line numberDiff line numberDiff line change
@@ -2541,7 +2541,7 @@ if test X"$want_h2" != Xno; then
25412541
LDFLAGS="$LDFLAGS $LD_H2"
25422542
CPPFLAGS="$CPPFLAGS $CPP_H2"
25432543
LIBS="$LIB_H2 $LIBS"
2544-
LIB_H2_NAME=`echo $LIB_H2 | $SED -e 's/-l//'`
2544+
LIB_H2_NAME=`echo $LIB_H2 | $SED -ne 's/.*-l *\(nghttp2[^ ]*\).*/\1/p'`
25452545

25462546
# use nghttp2_session_set_local_window_size to require nghttp2
25472547
# >= 1.12.0

0 commit comments

Comments
 (0)