From 199056b916e4e4f169643edaeeabf3344da36558 Mon Sep 17 00:00:00 2001 From: Andrew Taylor Date: Thu, 30 Jan 2025 01:19:50 -0500 Subject: [PATCH] Fix for issue #3334: build not finding YAJL When searching for YAJL during ./configure, pkg-config is checked first, and then a list of directories is searched if pkg-config bears no fruit. The previous version of yajl.m4 was looping over YAJL_POSSIBLE_LIB_NAMES instead of YAJL_POSSIBLE_PATHS and passing the lib name to the CHECK_FOR_YAJL_AT() function instead of the path. The would lead to YAJL never being found if pkg-config could not find it. --- build/yajl.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/yajl.m4 b/build/yajl.m4 index e050c084bd..10d4e78a4c 100644 --- a/build/yajl.m4 +++ b/build/yajl.m4 @@ -62,7 +62,7 @@ else YAJL_DISPLAY="${YAJL_LDADD}, ${YAJL_CFLAGS}" else # If pkg-config did not find anything useful, go over file lookup. - for x in ${YAJL_POSSIBLE_LIB_NAMES}; do + for x in ${YAJL_POSSIBLE_PATHS}; do CHECK_FOR_YAJL_AT(${x}) if test -n "${YAJL_VERSION}"; then break