From: Jay Satiro Date: Tue, 1 Feb 2022 22:44:26 +0000 (-0500) Subject: build: fix ngtcp2 crypto library detection X-Git-Tag: curl-7_82_0~142 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7931287c1a366c24c42a58f689050c0c265e0775;p=thirdparty%2Fcurl.git build: fix ngtcp2 crypto library detection - Change library link check for ngtcp2_crypto_{gnutls,openssl} to to use function ngtcp2_crypto_recv_client_initial_cb instead of ngtcp2_crypto_ctx_initial. The latter function is no longer external since two days ago in ngtcp2/ngtcp2@533451f. curl HTTP/3 CI builds have been failing since then because they would not link to the ngtcp2 crypto library. Ref: https://github.com/ngtcp2/ngtcp2/pull/356 Closes https://github.com/curl/curl/pull/8372 --- diff --git a/configure.ac b/configure.ac index 4708fd56bb..32d788a1fd 100644 --- a/configure.ac +++ b/configure.ac @@ -2718,7 +2718,7 @@ if test "x$NGTCP2_ENABLED" = "x1" -a "x$OPENSSL_ENABLED" = "x1"; then if test "x$cross_compiling" != "xyes"; then DIR_NGTCP2_CRYPTO_OPENSSL=`echo $LD_NGTCP2_CRYPTO_OPENSSL | $SED -e 's/^-L//'` fi - AC_CHECK_LIB(ngtcp2_crypto_openssl, ngtcp2_crypto_ctx_initial, + AC_CHECK_LIB(ngtcp2_crypto_openssl, ngtcp2_crypto_recv_client_initial_cb, [ AC_CHECK_HEADERS(ngtcp2/ngtcp2_crypto.h, NGTCP2_ENABLED=1 @@ -2773,7 +2773,7 @@ if test "x$NGTCP2_ENABLED" = "x1" -a "x$GNUTLS_ENABLED" = "x1"; then if test "x$cross_compiling" != "xyes"; then DIR_NGTCP2_CRYPTO_GNUTLS=`echo $LD_NGTCP2_CRYPTO_GNUTLS | $SED -e 's/^-L//'` fi - AC_CHECK_LIB(ngtcp2_crypto_gnutls, ngtcp2_crypto_ctx_initial, + AC_CHECK_LIB(ngtcp2_crypto_gnutls, ngtcp2_crypto_recv_client_initial_cb, [ AC_CHECK_HEADERS(ngtcp2/ngtcp2_crypto.h, NGTCP2_ENABLED=1