]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
configure: if --with-json, default to jansson implementation
authorVincent Bernat <vincent@bernat.im>
Mon, 21 Jul 2014 16:01:49 +0000 (18:01 +0200)
committerVincent Bernat <vincent@bernat.im>
Mon, 21 Jul 2014 16:01:49 +0000 (18:01 +0200)
configure.ac

index b29a5033a3e2f2e42fdcf59b96149857d5cf2b99..a85d2d15d5c8e074e5ad96785a4eaa531e6fd93b 100644 (file)
@@ -193,6 +193,9 @@ AC_ARG_WITH([json],
     [--with-json],
     [Enable JSON output via janson,json-c,no @<:@default=no@:>@]
   ))
+if test x"$with_json" = x"yes"; then
+   with_json=jansson
+fi
 if test x"$with_json" = x"jansson"; then
    lldp_CHECK_JANSSON
 elif test x"$with_json" = x"json-c"; then