libjansson.m4 revision f0beb4e313970ffd075cd711ed6cfbac03ad5af6
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo SirainenAC_SUBST(JANSSON_LIBS)
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo SirainenAC_SUBST(JANSSON_CFLAGS)
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo SirainenPKG_CHECK_MODULES([JANSSON], [jansson], [found_jansson=yes], [found_jansson=no])
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo SirainenSSS_AC_EXPAND_LIB_DIR()
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo SirainenAS_IF([test x"$found_jansson" != xyes],
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen [AC_CHECK_HEADERS([jansson.h],
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen [AC_CHECK_LIB([jansson],
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen [jansson_loads],
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen [JANSSON_LIBS="-L$sss_extra_libdir -ljansson"],
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen [AC_MSG_ERROR([libjansson missing jansson_loads])],
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen [-L$sss_extra_libdir -ljanson])],
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen [AC_MSG_ERROR([jansson header files are not installed])])]