aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2013-08-12 09:05:58 -0700
committerPaul Eggert2013-08-12 09:05:58 -0700
commit1d238bc75ac833eb28a72f24cc1acd79ec5999d7 (patch)
tree65fb7ea2c7cdb66d40fbbce440e4623975c9568f
parent01f1a9ab4f3eedbbf99140195c2530b7c242de4f (diff)
downloademacs-1d238bc75ac833eb28a72f24cc1acd79ec5999d7.tar.gz
emacs-1d238bc75ac833eb28a72f24cc1acd79ec5999d7.zip
Minor zlib configuration tweaks.
* configure.ac (HAVE_ZLIB): Don't assume zlib is linked if PNG is. * src/decompress.c (fn_inflateInit2) [!WINDOWSNT]: Don't assume presence of fn_inflateInit2_ zlib internal function.
-rw-r--r--ChangeLog5
-rw-r--r--configure.ac21
-rw-r--r--src/ChangeLog6
-rw-r--r--src/decompress.c8
4 files changed, 21 insertions, 19 deletions
diff --git a/ChangeLog b/ChangeLog
index 641cbefce20..f579c5226f1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
12013-08-12 Paul Eggert <eggert@cs.ucla.edu>
2
3 Minor zlib configuration tweaks.
4 * configure.ac (HAVE_ZLIB): Don't assume zlib is linked if PNG is.
5
12013-08-12 Eli Zaretskii <eliz@gnu.org> 62013-08-12 Eli Zaretskii <eliz@gnu.org>
2 7
3 * configure.ac (LIBZ): Comment on w32 peculiarities regarding LIBZ. 8 * configure.ac (LIBZ): Comment on w32 peculiarities regarding LIBZ.
diff --git a/configure.ac b/configure.ac
index 5daf84be2ba..b6c7dacd997 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2946,21 +2946,12 @@ AC_SUBST(LIBPNG)
2946HAVE_ZLIB=no 2946HAVE_ZLIB=no
2947LIBZ= 2947LIBZ=
2948if test "${with_zlib}" != "no"; then 2948if test "${with_zlib}" != "no"; then
2949 if test "${HAVE_PNG}" = "yes"; then 2949 OLIBS=$LIBS
2950 ### PNG depends on zlib, so if we have PNG, we have zlib. 2950 AC_SEARCH_LIBS([inflateEnd], [z], [HAVE_ZLIB=yes])
2951 ### Note: w32 does not link against libpng, but instead loads it 2951 LIBS=$OLIBS
2952 ### dynamically, but it also does the same with zlib. So it is OK 2952 case $ac_cv_search_inflateEnd in
2953 ### not to have -lz in LIBZ on w32. 2953 -*) LIBZ=$ac_cv_search_inflateEnd ;;
2954 HAVE_ZLIB=yes 2954 esac
2955 else
2956 ### No PNG, so check zlib ourselves.
2957 OLIBS=$LIBS
2958 AC_SEARCH_LIBS([inflateEnd], [z], [HAVE_ZLIB=yes])
2959 LIBS=$OLIBS
2960 case $ac_cv_search_inflateEnd in
2961 -*) LIBZ=$ac_cv_search_inflateEnd ;;
2962 esac
2963 fi
2964fi 2955fi
2965if test "${HAVE_ZLIB}" = "yes"; then 2956if test "${HAVE_ZLIB}" = "yes"; then
2966 AC_DEFINE([HAVE_ZLIB], 1, [Define to 1 if you have the zlib library (-lz).]) 2957 AC_DEFINE([HAVE_ZLIB], 1, [Define to 1 if you have the zlib library (-lz).])
diff --git a/src/ChangeLog b/src/ChangeLog
index 3a8fcfe7e9c..cf851d5bec0 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12013-08-12 Paul Eggert <eggert@cs.ucla.edu>
2
3 Minor zlib configuration tweaks.
4 * decompress.c (fn_inflateInit2) [!WINDOWSNT]:
5 Don't assume presence of fn_inflateInit2_ zlib internal function.
6
12013-08-12 Lars Magne Ingebrigtsen <larsi@gnus.org> 72013-08-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
2 8
3 * decompress.c (Fzlib_decompress_gzipped_region): Rename to 9 * decompress.c (Fzlib_decompress_gzipped_region): Rename to
diff --git a/src/decompress.c b/src/decompress.c
index 3605d446e5a..4e4e3a9c7dc 100644
--- a/src/decompress.c
+++ b/src/decompress.c
@@ -67,17 +67,17 @@ init_zlib_functions (void)
67 return 1; 67 return 1;
68} 68}
69 69
70#define fn_inflateInit2(strm, windowBits) \
71 fn_inflateInit2_((strm), (windowBits), ZLIB_VERSION, sizeof(z_stream))
72
70#else /* !WINDOWSNT */ 73#else /* !WINDOWSNT */
71 74
72#define fn_inflateInit2_ inflateInit2_ 75#define fn_inflateInit2 inflateInit2
73#define fn_inflate inflate 76#define fn_inflate inflate
74#define fn_inflateEnd inflateEnd 77#define fn_inflateEnd inflateEnd
75 78
76#endif /* WINDOWSNT */ 79#endif /* WINDOWSNT */
77 80
78#define fn_inflateInit2(strm, windowBits) \
79 fn_inflateInit2_((strm), (windowBits), ZLIB_VERSION, sizeof(z_stream))
80
81 81
82struct decompress_unwind_data 82struct decompress_unwind_data
83{ 83{