Skip to content
Permalink
Browse files

Check for yajl 2

  • Loading branch information...
jedisct1 committed May 6, 2011
1 parent 7b72c62 commit 5a4403f5e0094262f04a35294ab7399f5d43cae0
Showing with 3 additions and 3 deletions.
  1. +3 −3 m4/ac_check_yajl.m4
@@ -32,8 +32,8 @@ AC_DEFUN([AC_CHECK_YAJL], [
CFLAGS_SAVED="$CFLAGS"
LIBS_SAVED="$LIBS"

AC_CHECK_HEADER([yajl/yajl_parse.h], [
AC_CHECK_LIB([yajl], [yajl_parse], [
AC_CHECK_HEADER([yajl/yajl_tree.h], [
AC_CHECK_LIB([yajl], [yajl_tree_parse], [
YAJL_CFLAGS="-I/usr/include/yajl"
YAJL_LIBS="-lyajl"
ac_yajl_found="yes"
@@ -60,7 +60,7 @@ AC_DEFUN([AC_CHECK_YAJL], [

AC_MSG_CHECKING([for yajl_gen_alloc in -lyajl])
AC_LINK_IFELSE([
AC_LANG_PROGRAM([[ #include <yajl/yajl_gen.h> ]], [[ yajl_gen_config conf = { 1, " " }; yajl_gen g = yajl_gen_alloc(&conf, (void *)0); ]])
AC_LANG_PROGRAM([[ #include <yajl/yajl_gen.h> ]], [[ yajl_gen g = yajl_gen_alloc(&conf, (void *)0); yajl_gen_config(g, yajl_gen_beautify, 1); ]])
], [
AC_MSG_RESULT([yes])
ac_yajl_found="yes"

0 comments on commit 5a4403f

Please sign in to comment.
You can’t perform that action at this time.