configure: Remove AC_PATH_PROG call for pkg-config

Message ID 20260624170131.775302-1-valter.jansons@gmail.com
State New
Headers
Series configure: Remove AC_PATH_PROG call for pkg-config |

Commit Message

Valters Jansons 24 Jun 2026, 5:01 p.m. UTC
We already use PKG_PROG_PKG_CONFIG macro higher up in configure.ac,
and it populates PKG_CONFIG variable already. This AC_PATH_PROG use
is redundant at best, and breaks cross-compilation support in specific
cases. The legacy left-over is safe to drop.

Signed-off-by: Valters Jansons <valter.jansons@gmail.com>
---
 configure.ac | 2 --
 1 file changed, 2 deletions(-)
  

Patch

diff --git a/configure.ac b/configure.ac
index d1d7d23..07a608f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -221,8 +221,6 @@  AM_CONDITIONAL(HAVE_SYSTEMD, [test "x$have_systemd" = "xyes"])
 
 # ------------------------------------------------------------------------------
 
-AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
-
 # Python
 AM_PATH_PYTHON([3.4])
 PKG_CHECK_MODULES([PYTHON], [python-${PYTHON_VERSION}])