mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
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.
This commit is contained in:
parent
288fedfd22
commit
f45c6fe874
@ -99,20 +99,20 @@ else
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
for x in ${test_paths}; do
|
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"
|
yajl_inc_path="${x}/include"
|
||||||
break
|
break
|
||||||
elif test -e "${x}/yajl.h"; then
|
elif test -e "${x}/yajl_parse.h"; then
|
||||||
yajl_inc_path="${x}"
|
yajl_inc_path="${x}"
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl # Check some sub-paths as well
|
dnl # Check some sub-paths as well
|
||||||
for yajl_pkg_name in ${yajl_lib_name} ${YAJL_PKGNAMES}; do
|
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"
|
yajl_inc_path="${x}/include"
|
||||||
break
|
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}"
|
yajl_inc_path="${x}"
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user