[gcr/wip/smcv/cross-friendly-pkg-config: 2/3] configure: Use PKG_PROG_PKG_CONFIG instead of reinventing it



commit 1479bda8d36ed7b167a003e016b426ae615c6f33
Author: Simon McVittie <smcv debian org>
Date:   Wed Sep 25 10:08:25 2019 +0100

    configure: Use PKG_PROG_PKG_CONFIG instead of reinventing it
    
    When cross-compiling (for example for aarch64 on x86), using AC_PATH_PROG
    to search for pkg-config will find the build architecture (x86)
    pkg-config, but what we want is the host architecture (aarch64)
    pkg-config. PKG_PROG_PKG_CONFIG does this correctly, by using
    AC_PATH_TOOL.
    
    Signed-off-by: Simon McVittie <smcv debian org>

 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/configure.ac b/configure.ac
index 81ac2fb..17131ee 100644
--- a/configure.ac
+++ b/configure.ac
@@ -71,7 +71,7 @@ AC_PROG_LN_S
 AC_PROG_MAKE_SET
 AM_DISABLE_STATIC
 AM_PROG_LIBTOOL
-AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
+PKG_PROG_PKG_CONFIG
 
 AM_GNU_GETTEXT([external])
 # FIXME: Remove AM_GNU_GETTEXT_VERSION once autoreconf supports REQUIRE_VERSION


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]