]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
configure: rust support requires Python
authorEric Leblond <eric@regit.org>
Tue, 12 Feb 2019 11:55:08 +0000 (12:55 +0100)
committerVictor Julien <victor@inliniac.net>
Wed, 20 Feb 2019 13:45:18 +0000 (14:45 +0100)
Add error message to warn the user.

configure.ac

index 3063f6da3366b4d928ec574cb3405375245224ae..6515b3f26407cb8373ef8af9f16f3158e398b193 100644 (file)
@@ -2231,6 +2231,14 @@ fi
     if test "x$enable_rust" != "xyes" && test "x$enable_rust" != "xyes (default)"; then
       enable_rust="no"
     elif test "x$enable_python" != "xyes" && test ! -f rust/gen/c-headers/rust-core-gen.h; then
+      if test "x$enable_rust" = "xyes"; then
+        echo ""
+        echo "   ERROR! Rust support requires Python."
+        echo
+        echo "   Ubuntu: apt install python"
+        echo ""
+        exit 1
+      fi
       enable_rust="no"
     else
       # Rust require jansson (json support).