diff options
author | Jindrich Novy <jnovy@redhat.com> | 2008-04-22 12:36:27 +0200 |
---|---|---|
committer | Jindrich Novy <jnovy@redhat.com> | 2008-04-22 12:36:27 +0200 |
commit | 3d8e0ef13a389c263e3867c20ce32ae088332c7b (patch) | |
tree | b53a34135ab4d83acdad91374ba2f396ac2d8b2e | |
parent | 341266ae26e6685d1d870b28533469c653355bb7 (diff) | |
download | rpm-3d8e0ef13a389c263e3867c20ce32ae088332c7b.tar.gz rpm-3d8e0ef13a389c263e3867c20ce32ae088332c7b.tar.bz2 rpm-3d8e0ef13a389c263e3867c20ce32ae088332c7b.zip |
Check for lzma library in configure.ac and reference it in Makefile.am
-rw-r--r-- | configure.ac | 8 | ||||
-rw-r--r-- | rpmio/Makefile.am | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index d471f3aea..c683d6ccf 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 217242741..a5b214659 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 = |