From 37130d2b5edab108b05a29cd71b7476ff0bed172 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Mon, 4 Oct 2004 07:05:07 +0000 Subject: Provide support for auto-detection and use of compression libraries. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16643 91177308-0d34-0410-b5e6-96231b3b80d8 --- autoconf/configure.ac | 2 ++ 1 file changed, 2 insertions(+) (limited to 'autoconf') diff --git a/autoconf/configure.ac b/autoconf/configure.ac index f0ffcb5..bdc3151 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -250,6 +250,8 @@ AC_CHECK_LIB(elf, elf_begin) dnl Check for bzip2 and zlib compression libraries needed for archive reading/writing AC_CHECK_LIB(bz2,BZ2_bzCompressInit,[bzip2_found=1],[bzip2_found=0]) AC_CHECK_LIB(z,gzopen,[zlib_found=1],[zlib_found=0]) +AC_SUBST([HAVE_ZLIB],$zlib_found) +AC_SUBST([HAVE_BZIP2],$bzip2_found) if test $zlib_found -eq 1 ; then AC_DEFINE([HAVE_ZLIB],[1],[Define if zlib library is available on this platform.]) fi -- cgit v1.1