]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
configure: Show installation info for liblz4 if not found
authorMax Fillinger <maximilian.fillinger@fox-it.com>
Thu, 15 Feb 2018 14:57:51 +0000 (15:57 +0100)
committerVictor Julien <victor@inliniac.net>
Thu, 3 May 2018 11:29:28 +0000 (13:29 +0200)
configure.ac

index ba833fb4382123ce3a22b5d10713e71d348f65b4..deabdb7219b81537f17811cbb97602798187e3c5 100644 (file)
     fi
 
 # Check for lz4
-AC_CHECK_LIB(lz4, LZ4F_createCompressionContext, , )
+enable_liblz4="yes"
+AC_CHECK_LIB(lz4, LZ4F_createCompressionContext, , enable_liblz4="no")
+
+if test "$enable_liblz4" = "no"; then
+    echo
+    echo "  Compressed pcap logging is not available without liblz4."
+    echo "  If you want to enable compression, you need to install it."
+    echo
+    echo "  Ubuntu: apt-get install liblz4-dev"
+    echo "  Fedora: dnf install lz4-devel"
+    echo "  RHEL/CentOS: yum install epel-release"
+    echo "               yum install lz4-devel"
+    echo
+fi
 
 # get cache line size
     AC_PATH_PROG(HAVE_GETCONF_CMD, getconf, "no")
@@ -2316,6 +2329,7 @@ SURICATA_BUILD_CONF="Suricata Configuration:
   Old barnyard2 support:                   ${enable_old_barnyard2}
   Hyperscan support:                       ${enable_hyperscan}
   Libnet support:                          ${enable_libnet}
+  liblz4 support:                          ${enable_liblz4}
 
   Rust support (experimental):             ${enable_rust}
   Rust strict mode:                        ${enable_rust_strict}