diff options
author | Ludovic Courtès <ludo@gnu.org> | 2016-07-18 23:14:14 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2016-07-19 00:07:12 +0200 |
commit | 721539026dda02e58addbb618f2102b31a2927f8 (patch) | |
tree | adbf4ef7de758050ea1de575f3f0be2f5982295d /configure.ac | |
parent | 2c2ec261a8d3c37e5147038f47ad24c57cde4134 (diff) | |
download | gnu-guix-721539026dda02e58addbb618f2102b31a2927f8.tar gnu-guix-721539026dda02e58addbb618f2102b31a2927f8.tar.gz |
Add (guix zlib).
* guix/zlib.scm, tests/zlib.scm: New files.
* Makefile.am (MODULES): Add guix/zlib.scm.
(SCM_TESTS): Add tests/zlib.scm.
* m4/guix.m4 (GUIX_LIBGCRYPT_LIBDIR): New macro.
* configure.ac (LIBGCRYPT_LIBDIR): Use it. Define and substitute
'LIBZ'.
* guix/config.scm.in (%libz): New variable.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 7c6fcc9ec9..8367b41f3c 100644 --- a/configure.ac +++ b/configure.ac @@ -194,6 +194,17 @@ AC_SUBST([LIBGCRYPT_LIBDIR]) GUIX_ASSERT_LIBGCRYPT_USABLE +dnl Library name of zlib suitable for 'dynamic-link'. +GUIX_LIBZ_LIBDIR([libz_libdir]) +if test "x$libz_libdir" = "x"; then + LIBZ="libz" +else + LIBZ="$libz_libdir/libz" +fi +AC_MSG_CHECKING([for zlib's shared library name]) +AC_MSG_RESULT([$LIBZ]) +AC_SUBST([LIBZ]) + AC_CACHE_SAVE m4_include([config-daemon.ac]) |