From: Max Fillinger Date: Thu, 15 Feb 2018 14:57:51 +0000 (+0100) Subject: configure: Show installation info for liblz4 if not found X-Git-Tag: suricata-4.1.0-rc1~108 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58e92392eafd244a9e72ee948e01dadbd9488336;p=thirdparty%2Fsuricata.git configure: Show installation info for liblz4 if not found --- diff --git a/configure.ac b/configure.ac index ba833fb438..deabdb7219 100644 --- a/configure.ac +++ b/configure.ac @@ -2062,7 +2062,20 @@ 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}