From: guido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Date: Wed, 18 Jan 2006 09:46:10 +0000 (+0000)
Subject: prepare inclusion of zlib
X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6a918b257e8c25a3b5d60f4a8124b0fa24021f8;p=dealii-svn.git

prepare inclusion of zlib


git-svn-id: https://svn.dealii.org/trunk@12082 0785d39b-7218-0410-832d-ea1e28bc413d
---

diff --git a/deal.II/aclocal.m4 b/deal.II/aclocal.m4
index e5850ef697..f99407ae61 100644
--- a/deal.II/aclocal.m4
+++ b/deal.II/aclocal.m4
@@ -4971,3 +4971,20 @@ AC_DEFUN(DEAL_II_WITH_BLAS, dnl
   fi
   AC_SUBST(NEEDS_F77LIBS, "yes")
 ])
+
+dnl --------------------------------------------------
+dnl Include the LAPACK library
+dnl --------------------------------------------------
+AC_DEFUN(DEAL_II_WITH_ZLIB, dnl
+[
+  if test "x$1" != "xyes" ; then
+    AC_CHECK_LIB($1, crc32,
+    [ LIBS="-l$1 $LIBS"
+      AC_DEFINE(HAVE_LIBZ)
+    ])
+dnl    fi
+  else
+    AC_CHECK_LIB(z, crc32)
+  fi
+])
+
diff --git a/deal.II/configure.in b/deal.II/configure.in
index 6c5dc8626b..84faa49e81 100644
--- a/deal.II/configure.in
+++ b/deal.II/configure.in
@@ -491,6 +491,19 @@ AC_ARG_WITH(lapack,
                           use -llapack.],
   DEAL_II_WITH_LAPACK($withval))
 
+dnl Check for the compression library zlib.
+dnl First activate if no option given
+if test "x$with_zlib" = "x" ; then
+  with_zlib="yes"
+fi
+
+AC_ARG_WITH(zlib,
+  [  --with-zlib=zlib use the compression library zlib for gzipped input and output
+         and link it with -lzlib (the default is -lz).
+         Make sure the library is in the search path of ld.],
+  DEAL_II_WITH_ZLIB($withval))
+
+
 dnl -------------------------------------------------------------
 dnl       Optimizations and consistency of compiler flags
 dnl -------------------------------------------------------------