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
Attachment:
pgpTuzWeZwXv0.pgp
Description: PGP signature
_______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/spice-devel