diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2015-06-17 19:26:56 +0200 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2015-06-22 19:46:39 +0200 |
commit | e379c340b724aa4a53be0915b9d7818bfc6fe751 (patch) | |
tree | 5180199d407f94721fdc2071f18465b8a9860755 | |
parent | e1dfac38bdae1adeb601f9c5582ad0afef566aa2 (diff) |
build-sys: Use SPICE_CHECK_LZ4
spice-common now has an m4 macro adding a --enable-lz4 option and
doing the needed checks, so we can use it in configure.ac rather than
duplicating it here.
-rw-r--r-- | configure.ac | 13 | ||||
m--------- | spice-common | 0 |
2 files changed, 1 insertions, 12 deletions
diff --git a/configure.ac b/configure.ac index 5732c95..d1234c7 100644 --- a/configure.ac +++ b/configure.ac @@ -677,18 +677,7 @@ if test "x$enable_dbus" != "xno"; then fi fi -AC_ARG_ENABLE([lz4], - AS_HELP_STRING([--enable-lz4=@<:@yes/no@:>@], - [Enable lz4 compression algorithm @<:@default=no@:>@]), - [], - [enable_lz4="no"]) - -if test "x$enable_lz4" = "xyes"; then - PKG_CHECK_MODULES(LZ4, liblz4) - AC_DEFINE([USE_LZ4], [1], [Define to build with Lz4 support]) -fi -AC_SUBST(LZ4_CFLAGS) -AC_SUBST(LZ4_LIBS) +SPICE_CHECK_LZ4([LZ4]) dnl =========================================================================== dnl check compiler flags diff --git a/spice-common b/spice-common -Subproject fec803156b1844a2deb705cf55933294ca60a5e +Subproject 1b5edbe49e5c36c4f35453de448b54f770e1c1b |