Do use host-specific pkg-config when cross-compiling

This re-enables the use of $host-pkg-config after it was disabled again
by d6ddfe87e1 (Disable build system pkg-config when cross-compiling to
non-Linux, 2022-11-30).

Closes #23037.
This commit is contained in:
Vadim Zeitlin 2022-12-15 01:47:11 +01:00
parent cf661f9293
commit 7899850496
2 changed files with 30 additions and 36 deletions

26
configure vendored
View file

@ -25052,25 +25052,23 @@ $as_echo "no" >&6; }
fi
if test "$build" != "$host"; then
case "${host}" in
*-linux-*)
case "$PKG_CONFIG" in
*/$host-pkg-config )
;;
*)
disable_build_system_pkg_config=1
;;
* )
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not using native pkg-config when cross-compiling." >&5
$as_echo "$as_me: WARNING: Not using native pkg-config when cross-compiling." >&2;}
if test -z "$PKG_CONFIG_LIBDIR"; then
PKG_CONFIG_LIBDIR=/dev/null
export PKG_CONFIG_LIBDIR
fi
esac
fi
if test "$disable_build_system_pkg_config" = 1; then
if test -z "$PKG_CONFIG_LIBDIR"; then
PKG_CONFIG_LIBDIR=/dev/null
export PKG_CONFIG_LIBDIR
fi
fi
if test "$wxUSE_REGEX" != "no"; then