Skip to content

Commit 117f126

Browse files
author
Felipe Zimmerle
committed
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.
1 parent ea7ddde commit 117f126

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

build/find_yajl.m4

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,20 +99,20 @@ else
9999
fi
100100
done
101101
for x in ${test_paths}; do
102-
if test -e "${x}/include/yajl.h"; then
102+
if test -e "${x}/include/yajl_parse.h"; then
103103
yajl_inc_path="${x}/include"
104104
break
105-
elif test -e "${x}/yajl.h"; then
105+
elif test -e "${x}/yajl_parse.h"; then
106106
yajl_inc_path="${x}"
107107
break
108108
fi
109109
110110
dnl # Check some sub-paths as well
111111
for yajl_pkg_name in ${yajl_lib_name} ${YAJL_PKGNAMES}; do
112-
if test -e "${x}/include/${yajl_pkg_name}/yajl.h"; then
112+
if test -e "${x}/include/${yajl_pkg_name}/yajl_parse.h"; then
113113
yajl_inc_path="${x}/include"
114114
break
115-
elif test -e "${x}/${yajl_pkg_name}/yajl.h"; then
115+
elif test -e "${x}/${yajl_pkg_name}/yajl_parse.h"; then
116116
yajl_inc_path="${x}"
117117
break
118118
else

0 commit comments

Comments
 (0)