From: Helmut Grohne <helmut@subdivi.de>
Date: Wed, 8 Oct 2025 08:48:30 +0200
Subject: build: Use AC_PATH_TOOL instead of AC_PATH_PROG for crossbuilding

https://bugs.debian.org/1117669
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 93b4c7d..ad76758 100644
--- a/configure.ac
+++ b/configure.ac
@@ -185,7 +185,7 @@ AM_PROG_VALAC([0.11.4])
 AM_CONDITIONAL(HAVE_VALAC, test -x "$VALAC")
 
 # Have vapigen?
-AC_PATH_PROG(VAPIGEN, vapigen)
+AC_PATH_TOOL(VAPIGEN, vapigen)
 AM_CONDITIONAL(BUILD_VAPI, test -n "$VAPIGEN" -a xyes = x"$found_introspection")
 if ! test -n "$VAPIGEN" -a xyes = x"$found_introspection"; then
 	AC_MSG_WARN([Will not build vapi])
