[PATCH 3/3] build-sys: Use spice-common m4 macro for lz4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This will allow to sharer this detection code with spice-gtk.
---
 configure.ac | 12 +-----------
 spice-common |  2 +-
 2 files changed, 2 insertions(+), 12 deletions(-)

diff --git a/configure.ac b/configure.ac
index 12c6e4e..14217e2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -76,11 +76,6 @@ AS_IF([test x"$enable_opengl" != "xno"], [
       AS_VAR_APPEND([SPICE_NONPKGCONFIG_LIBS], [" $GL_LIBS"])
 ])
 
-AC_ARG_ENABLE([lz4],
-              AS_HELP_STRING([--enable-lz4],[Enable lz4 compression algorithm]),,
-              [enable_lz4="no"])
-AS_IF([test x"$enable_lz4" != "xno"], [enable_lz4="yes"])
-AM_CONDITIONAL(SUPPORT_LZ4, test "x$enable_lz4" = "xyes")
 
 SPICE_CHECK_SMARTCARD([SMARTCARD])
 AM_CONDITIONAL(SUPPORT_SMARTCARD, test "x$have_smartcard" = "xyes")
@@ -91,6 +86,7 @@ AC_ARG_ENABLE([automated_tests],
 AS_IF([test x"$enable_automated_tests" != "xno"], [enable_automated_tests="yes"])
 AM_CONDITIONAL(SUPPORT_AUTOMATED_TESTS, test "x$enable_automated_tests" != "xno")
 
+SPICE_CHECK_LZ4([LZ4])
 
 dnl =========================================================================
 dnl Check deps
@@ -147,12 +143,6 @@ AC_SUBST(SSL_CFLAGS)
 AC_SUBST(SSL_LIBS)
 AS_VAR_APPEND([SPICE_REQUIRES], [" openssl"])
 
-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)
 AC_CHECK_LIB(jpeg, jpeg_destroy_decompress,
     AC_MSG_CHECKING([for jpeglib.h])
     AC_TRY_CPP(
diff --git a/spice-common b/spice-common
index b216f66..0ad694d 160000
--- a/spice-common
+++ b/spice-common
@@ -1 +1 @@
-Subproject commit b216f66f108b14b67b8cb2f9a3d2caee0ec8e0fd
+Subproject commit 0ad694db310eccb08a14267d624505b5e216eea2
-- 
2.4.3

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]