[Spice-devel] Patch to support LZ4 compression algorithm

Javier Celaya javier.celaya at flexvm.es
Fri Nov 7 01:17:11 PST 2014


Hello

I resend the patch for the spice repository. I just realized I forgot to 
remove a debug message from red_worker.c, sorry.

El Jueves, 6 de noviembre de 2014 18:21:21 Javier Celaya escribió:
> Hello
> 
> El Jueves, 6 de noviembre de 2014 17:20:42 Christophe Fergeau escribió:
> > On Thu, Nov 06, 2014 at 10:33:19AM +0100, Javi wrote:
> > > diff --git a/configure.ac b/configure.ac
> > > index f47ee20..d295c5b 100644
> > > --- a/configure.ac
> > > +++ b/configure.ac
> > > @@ -694,6 +694,24 @@ 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
> > > +    AC_CHECK_LIB(lz4, LZ4_compress_limitedOutput, LZ4_LIBS='-llz4',
> > > enable_lz4=no) +    AC_CHECK_HEADER([lz4.h], [], [enable_lz4=no])
> > > +    AC_DEFINE([USE_LZ4], [1], [Define to build with Lz4 support])
> > > +
> > > +    if test "x$enable_lz4" = "xno"; then
> > > +        AC_MSG_ERROR([lz4 not found])
> > > +    fi
> > > +fi
> > 
> > You should be able to use PKG_CHECK_MODULES instead of manually checking
> > for lib and header as lz4 comes with a .pc file.
> > 
> > Christophe
> 
> Yes, that's true, thanks. I resend the patches for the spice and spice-gtk
> repositories with that change.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: spice-lz4.patch
Type: text/x-patch
Size: 22106 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20141107/fde88b93/attachment-0001.bin>


More information about the Spice-devel mailing list