do not supply a bad default for the PKG_CONFIG check

PKG_CHECK_MODULES implicitly checks for a suitable cross pkg-config and uses
$PKG_CONFIG as a default. The preceeding AC_PATH_PROG supplies that variables
with its default value "pkg-config" instead of the a value that carries the
host architecture as a prefix. By removing the (otherwise unused AC_PATH_PROG),
the implicit check can do the right thing.


Gbp-Pq: Name cross_build.diff
This commit is contained in:
Helmut Grohne 2022-05-14 03:25:03 +08:00 committed by openKylinBot
parent 15dccff260
commit d9a51cc0dc
1 changed files with 0 additions and 2 deletions

View File

@ -48,8 +48,6 @@ have_cxx=yes
AC_PROG_CXX(,have_cxx=no)
AM_CONDITIONAL(WITH_CXX, test "x$have_cxx" = "xyes")
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
PKG_CHECK_MODULES(ENCHANT, [glib-2.0 >= 2.6 gmodule-2.0])
dnl ===========================================================================