From f45c6fe874fc33e4df573ef5c0b96ca4c99f0447 Mon Sep 17 00:00:00 2001 From: Felipe Zimmerle Date: Wed, 12 Nov 2014 14:14:54 -0800 Subject: [PATCH] Build: fix the build script that looks for yajl The script was looking for the wrong header file. Instead of look for yajl_parse.h it was looking for yajl.h. Originally reported by @rpfilomeno at #804. --- build/find_yajl.m4 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build/find_yajl.m4 b/build/find_yajl.m4 index 05c1aa6e..132a8a8a 100644 --- a/build/find_yajl.m4 +++ b/build/find_yajl.m4 @@ -99,20 +99,20 @@ else fi done for x in ${test_paths}; do - if test -e "${x}/include/yajl.h"; then + if test -e "${x}/include/yajl_parse.h"; then yajl_inc_path="${x}/include" break - elif test -e "${x}/yajl.h"; then + elif test -e "${x}/yajl_parse.h"; then yajl_inc_path="${x}" break fi dnl # Check some sub-paths as well for yajl_pkg_name in ${yajl_lib_name} ${YAJL_PKGNAMES}; do - if test -e "${x}/include/${yajl_pkg_name}/yajl.h"; then + if test -e "${x}/include/${yajl_pkg_name}/yajl_parse.h"; then yajl_inc_path="${x}/include" break - elif test -e "${x}/${yajl_pkg_name}/yajl.h"; then + elif test -e "${x}/${yajl_pkg_name}/yajl_parse.h"; then yajl_inc_path="${x}" break else