From 3d8e0ef13a389c263e3867c20ce32ae088332c7b Mon Sep 17 00:00:00 2001 From: Jindrich Novy Date: Tue, 22 Apr 2008 12:36:27 +0200 Subject: [PATCH] Check for lzma library in configure.ac and reference it in Makefile.am --- configure.ac | 8 ++++++++ rpmio/Makefile.am | 1 + 2 files changed, 9 insertions(+) diff --git a/configure.ac b/configure.ac index d471f3a..c683d6c 100644 --- a/configure.ac +++ b/configure.ac @@ -273,6 +273,14 @@ AC_CHECK_HEADERS([bzlib.h],[ AC_SUBST(WITH_BZ2_LIB) #================= +# Check for lzma library. + +AC_CHECK_HEADERS([lzma.h],[ + AC_CHECK_LIB(lzma, lzma_auto_decoder, [WITH_LZMA_LIB=-llzma]) +]) +AC_SUBST(WITH_LZMA_LIB) + +#================= dnl dnl Check for features diff --git a/rpmio/Makefile.am b/rpmio/Makefile.am index 2172427..a5b2146 100644 --- a/rpmio/Makefile.am +++ b/rpmio/Makefile.am @@ -28,6 +28,7 @@ librpmio_la_LIBADD = \ @WITH_ZLIB_LIB@ \ @WITH_LIBELF_LIB@ \ @WITH_POPT_LIB@ \ + @WITH_LZMA_LIB@ \ -lpthread check_PROGRAMS = -- 2.7.4