configure: set CURL_LIBRARY_PATH for nghttp2

To execute the test program, we might need the library path so that the
lib is found at runtime.

Closes #8340
This commit is contained in:
Bernhard Walle 2022-01-27 18:40:28 +01:00 committed by Daniel Stenberg
parent 598b142f6d
commit ac55564530
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -2577,6 +2577,11 @@ if test X"$want_nghttp2" != Xno; then
NGHTTP2_ENABLED=1
AC_DEFINE(USE_NGHTTP2, 1, [if nghttp2 is in use])
AC_SUBST(USE_NGHTTP2, [1])
DIR_H2=`echo $LD_H2 | $SED -e 's/^-L//'`
CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_H2"
export CURL_LIBRARY_PATH
AC_MSG_NOTICE([Added $DIR_H2 to CURL_LIBRARY_PATH])
)
],
dnl not found, revert back to clean variables