From ef1d606d1b53e3a9c40b65562510714f62dd54c4 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Thu, 15 Aug 2024 10:41:02 +0200 Subject: [PATCH] libcurl.pc: add reference to `libgsasl` Closes #14556 --- CMakeLists.txt | 1 + configure.ac | 1 + 2 files changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c5b465b06e..04f5b0bbbd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1110,6 +1110,7 @@ if(CURL_USE_GSASL) endif() if(GSASL_FOUND) list(APPEND CURL_LIBS ${GSASL_LINK_LIBRARIES}) + list(APPEND LIBCURL_PC_REQUIRES_PRIVATE "libgsasl") set(USE_GSASL ON) endif() endif() diff --git a/configure.ac b/configure.ac index 1c6aefcf2d..61e5872bcd 100644 --- a/configure.ac +++ b/configure.ac @@ -2181,6 +2181,7 @@ if test $with_libgsasl != "no"; then AC_SEARCH_LIBS(gsasl_init, gsasl, [curl_gsasl_msg="enabled"; AC_DEFINE([USE_GSASL], [1], [GSASL support enabled]) + LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE libgsasl" ], [curl_gsasl_msg="no (libgsasl not found)"; AC_MSG_WARN([libgsasl was not found]) -- 2.47.3