at 23.11-beta 1.1 kB view raw
1From 3ebeb0932edc01b7768216dc7d3b3c5aac21fba0 Mon Sep 17 00:00:00 2001 2From: Alyssa Ross <hi@alyssa.is> 3Date: Sun, 26 Feb 2023 17:21:48 +0000 4Subject: [PATCH] configure.ac: detect pkg-config properly 5 6When cross compiling, the relevant pkg-config program might be prefixed 7with the name of the host platform, so the previous check was not 8correct. Detect pkg-config properly, using the appropriate macro. 9--- 10 configure.ac | 4 ++-- 11 1 file changed, 2 insertions(+), 2 deletions(-) 12 13diff --git a/configure.ac b/configure.ac 14index 2f63684..bf2faf7 100644 15--- a/configure.ac 16+++ b/configure.ac 17@@ -46,7 +46,7 @@ AC_CHECK_FUNCS([select nanosleep usleep]) 18 19 AC_TYPE_SIZE_T 20 21-AC_CHECK_PROG(HAVE_PKG_CONFIG,pkg-config,yes) 22+PKG_PROG_PKG_CONFIG 23 24 AC_ARG_ENABLE(doc, [ --disable-doc Disable building documentation (default enabled)]) 25 if test "x$enable_doc" != "xno" 26@@ -57,7 +57,7 @@ else 27 fi 28 AM_CONDITIONAL(HAVE_DOXYGEN,test "${HAVE_DOXYGEN}" = "yes") 29 30-if test "x$HAVE_PKG_CONFIG" = "xyes" 31+if test "x$PKG_CONFIG" != "x" 32 then 33 PKG_CHECK_MODULES(KATE,kate >= 0.2.0) 34 PKG_CHECK_MODULES(PANGOCAIRO,pangocairo >= 1.16) 35-- 362.37.1 37