diff --git a/configure.ac b/configure.ac index 4e82c57565..773ec1000c 100644 --- a/configure.ac +++ b/configure.ac @@ -1977,6 +1977,14 @@ if test "x$enable_rust" != "xyes"; then enable_rust="no" else + # Rust require jansson (json support). + if test "x$enable_jansson" = "xno"; then + echo "" + echo " ERROR! Rust support requires jansson." + echo "" + exit 1 + fi + AC_PATH_PROG(HAVE_CARGO, cargo, "no") AC_PATH_PROG(HAVE_RUSTC, rustc, "no")