mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:31:41 +03:00
configure: also trace two important pkg-config envs
`PKG_CONFIG_LIBDIR` and `PKG_CONFIG_PATH`.
To help debugging dependency issues. Example:
```
configure: pkg-config --exists openssl trace:
---- begin
PKG_CONFIG_LIBDIR: '/home/runner/libressl/build/lib/pkgconfig'
PKG_CONFIG_PATH: '/home/runner/libressl/build/lib/pkgconfig:/home/runner/nghttp3/build/lib/pkgconfig:/home/runner/ngtcp2/build/lib/pkgconfig:/home/runner/nghttp2/build/lib/pkgconfig'
trying path: /home/runner/libressl/build/lib/pkgconfig for openssl
trying path: /home/runner/libressl/build/lib/pkgconfig for libssl
trying path: /home/runner/libressl/build/lib/pkgconfig for libcrypto
---- end
```
Cherry-picked from #20920
Follow-up to 04d90b5deb #20931
Closes #20942
This commit is contained in:
parent
ec3f198ef0
commit
b317506cac
1 changed files with 8 additions and 2 deletions
10
acinclude.m4
10
acinclude.m4
|
|
@ -1336,9 +1336,15 @@ AC_DEFUN([CURL_TRACE_PCDIR], [
|
|||
dnl Example pkgconf line:
|
||||
dnl libpkgconf/pkg.c:746 [pkgconf_pkg_t *pkgconf_pkg_try_specific_path(pkgconf_client_t *, [...]*)]: trying path: /usr/local/lib/pkgconfig for libngtcp2_crypto_gnutls
|
||||
dnl Rest of strings are for catching classic pkg-config lines.
|
||||
trc=`CURL_EXPORT_PCDIR([$2]) dnl
|
||||
trc=`CURL_EXPORT_PCDIR([$2])
|
||||
if test -n "$PKG_CONFIG_LIBDIR"; then
|
||||
echo "PKG_CONFIG_LIBDIR: '$PKG_CONFIG_LIBDIR'"
|
||||
fi
|
||||
if test -n "$PKG_CONFIG_PATH"; then
|
||||
echo "PKG_CONFIG_PATH: '$PKG_CONFIG_PATH'"
|
||||
fi
|
||||
$PKGCONFIG --exists --debug $1 2>&1 | $EGREP '(trying path:|Adding directory|Looking for|Scanning directory|Cannot open directory)' | $SED 's/^.*trying path:/trying path:/'`
|
||||
msg=`CURL_EXPORT_PCDIR([$2]) dnl
|
||||
msg=`CURL_EXPORT_PCDIR([$2])
|
||||
$PKGCONFIG --exists --print-errors $1 2>&1`
|
||||
if test -n "$msg"; then
|
||||
trc=`echo "$trc"; echo '==== error:'; echo "$msg"`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue