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
This commit is contained in:
Reid Spencer
2004-10-04 07:05:07 +00:00
parent ac6a47588b
commit 37130d2b5e
4 changed files with 27 additions and 7 deletions

View File

@@ -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