Skip to content

Commit 199056b

Browse files
committedJan 30, 2025·
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.
1 parent 9e685bf commit 199056b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎build/yajl.m4

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ else
6262
YAJL_DISPLAY="${YAJL_LDADD}, ${YAJL_CFLAGS}"
6363
else
6464
# If pkg-config did not find anything useful, go over file lookup.
65-
for x in ${YAJL_POSSIBLE_LIB_NAMES}; do
65+
for x in ${YAJL_POSSIBLE_PATHS}; do
6666
CHECK_FOR_YAJL_AT(${x})
6767
if test -n "${YAJL_VERSION}"; then
6868
break

0 commit comments

Comments
 (0)
Please sign in to comment.