]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
jansson: change function test to be sure of version
authorEric Leblond <eric@regit.org>
Mon, 18 Mar 2013 22:08:18 +0000 (23:08 +0100)
committerEric Leblond <eric@regit.org>
Tue, 26 Mar 2013 10:37:43 +0000 (11:37 +0100)
configure.ac

index 6af2df9fb626e5ee3173c01978a483944cfb4a8b..61fc7a1dab201e37df09018e07f9612c5c689045 100644 (file)
@@ -569,11 +569,11 @@ AC_INIT(configure.ac)
             LDFLAGS="${LDFLAGS}  -L${with_libjansson_libraries}"
         fi
 
-           AC_CHECK_LIB(jansson, json_loads,, JANSSON="no")
+           AC_CHECK_LIB(jansson, json_dump_callback,, JANSSON="no")
         enable_jansson="yes"
         if test "$JANSSON" = "no"; then
             echo
-            echo "   Jansson is required for features like unix socket"
+            echo "   Jansson >= 2.2 is required for features like unix socket"
             echo "   Go get it from your distribution of from:"
                echo "     http://www.digip.org/jansson/"
             echo