PKG_PROG_PKG_CONFIG sets $PKG_CONFIG to a pkg-config executable.
Setting it manually via AC_PATH_PROG is superfluous and problematic
with executable name prefixes. Get rid of the AC_PATH_PROG call.

Signed-off-by: Bastian Germann <[email protected]>
---
 configure.ac | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 6dcd386..01a4fdb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -174,11 +174,10 @@ AC_ARG_WITH([mem-uservars],
 AC_DEFINE_UNQUOTED([ENV_MEM_USERVARS], [${ENV_MEM_USERVARS}], [Reserved memory 
for user variables])
 
 dnl pkg-config
-AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
+PKG_PROG_PKG_CONFIG()
 if test "x$PKG_CONFIG" = "xno"; then
        AC_MSG_ERROR([You need to install pkg-config])
 fi
-PKG_PROG_PKG_CONFIG()
 PKG_CHECK_MODULES(LIBCHECK, check)
 PKG_CHECK_MODULES(LIBPCI, libpci)
 # 
------------------------------------------------------------------------------
-- 
2.34.1


-- 
You received this message because you are subscribed to the Google Groups "EFI 
Boot Guard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/efibootguard-dev/20211207025408.29679-1-bage%40debian.org.

Reply via email to