]> https://gitweb.dealii.org/ - dealii.git/commitdiff
prepare inclusion of zlib
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Wed, 18 Jan 2006 09:46:10 +0000 (09:46 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Wed, 18 Jan 2006 09:46:10 +0000 (09:46 +0000)
git-svn-id: https://svn.dealii.org/trunk@12082 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/aclocal.m4
deal.II/configure.in

index e5850ef69770a07655aa3744f930dd221ad2d664..f99407ae61ceffcbfdeb108155019b8a3c6783bb 100644 (file)
@@ -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
+])
+
index 6c5dc8626b85222c1b4e08ae3f42413313a255e2..84faa49e81bded284139aaf11b26a1f7efdc63cc 100644 (file)
@@ -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 -------------------------------------------------------------

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.