diff options
| author | Paul Eggert | 2013-08-11 15:58:47 -0700 |
|---|---|---|
| committer | Paul Eggert | 2013-08-11 15:58:47 -0700 |
| commit | 8d28d0ac2af6f38abb588efb9f673d0e74768e8a (patch) | |
| tree | f51e442e1ee64d29f663c16e7be91237df6b493e | |
| parent | 3e41a054bf85132cbc84bb59f4461387dcb31972 (diff) | |
| download | emacs-8d28d0ac2af6f38abb588efb9f673d0e74768e8a.tar.gz emacs-8d28d0ac2af6f38abb588efb9f673d0e74768e8a.zip | |
Add --with-zlib to 'configure'.
* configure.ac: Add --with-zlib option to 'configure', so that Emacs
can be built without zlib. Don't assume that -lz is needed on
non-PNG hosts. Mention zlib configuration status in 'configure' output.
| -rw-r--r-- | ChangeLog | 7 | ||||
| -rw-r--r-- | configure.ac | 28 |
2 files changed, 24 insertions, 11 deletions
| @@ -1,3 +1,10 @@ | |||
| 1 | 2013-08-11 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Add --with-zlib to 'configure'. | ||
| 4 | * configure.ac: Add --with-zlib option to 'configure', so that Emacs | ||
| 5 | can be built without zlib. Don't assume that -lz is needed on | ||
| 6 | non-PNG hosts. Mention zlib configuration status in 'configure' output. | ||
| 7 | |||
| 1 | 2013-08-11 Lars Magne Ingebrigtsen <larsi@gnus.org> | 8 | 2013-08-11 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 9 | ||
| 3 | * configure.ac: Test for zlib. | 10 | * configure.ac: Test for zlib. |
diff --git a/configure.ac b/configure.ac index ca30b38dab4..8b565320df5 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -211,6 +211,7 @@ OPTION_DEFAULT_ON([gconf],[don't compile with GConf support]) | |||
| 211 | OPTION_DEFAULT_ON([gsettings],[don't compile with GSettings support]) | 211 | OPTION_DEFAULT_ON([gsettings],[don't compile with GSettings support]) |
| 212 | OPTION_DEFAULT_ON([selinux],[don't compile with SELinux support]) | 212 | OPTION_DEFAULT_ON([selinux],[don't compile with SELinux support]) |
| 213 | OPTION_DEFAULT_ON([gnutls],[don't use -lgnutls for SSL/TLS support]) | 213 | OPTION_DEFAULT_ON([gnutls],[don't use -lgnutls for SSL/TLS support]) |
| 214 | OPTION_DEFAULT_ON([zlib],[don't compile with zlib decompression support]) | ||
| 214 | 215 | ||
| 215 | AC_ARG_WITH([file-notification],[AS_HELP_STRING([--with-file-notification=LIB], | 216 | AC_ARG_WITH([file-notification],[AS_HELP_STRING([--with-file-notification=LIB], |
| 216 | [use a file notification library (LIB one of: yes, gfile, inotify, w32, no)])], | 217 | [use a file notification library (LIB one of: yes, gfile, inotify, w32, no)])], |
| @@ -2944,19 +2945,23 @@ AC_SUBST(LIBPNG) | |||
| 2944 | 2945 | ||
| 2945 | HAVE_ZLIB=no | 2946 | HAVE_ZLIB=no |
| 2946 | LIBZ= | 2947 | LIBZ= |
| 2947 | if test "${HAVE_PNG}" = "yes"; then | 2948 | if test "${with_zlib}" != "no"; then |
| 2948 | ### PNG depends on zlib, so if we have PNG, we have zlib. | 2949 | if test "${HAVE_PNG}" = "yes"; then |
| 2949 | HAVE_ZLIB=yes | 2950 | ### PNG depends on zlib, so if we have PNG, we have zlib. |
| 2950 | AC_DEFINE(HAVE_ZLIB, 1, [Define to 1 if you have the zlib library (-lz).]) | 2951 | HAVE_ZLIB=yes |
| 2951 | else | 2952 | else |
| 2952 | ### No PNG, so check zlib ourselves. | 2953 | ### No PNG, so check zlib ourselves. |
| 2953 | LIBS="-lz $LIBS" | 2954 | OLIBS=$LIBS |
| 2954 | AC_CHECK_LIB(z, inflateEnd, HAVE_ZLIB=yes, HAVE_ZLIB=no) | 2955 | AC_SEARCH_LIBS([inflateEnd], [z], [HAVE_ZLIB=yes]) |
| 2955 | if test "${HAVE_ZLIB}" = "yes"; then | 2956 | LIBS=$OLIBS |
| 2956 | AC_DEFINE(HAVE_ZLIB, 1, [Define to 1 if you have the zlib library (-lz).]) | 2957 | case $ac_cv_search_inflateEnd in |
| 2957 | LIBZ=-lz | 2958 | -*) LIBZ=$ac_cv_search_inflateEnd ;; |
| 2959 | esac | ||
| 2958 | fi | 2960 | fi |
| 2959 | fi | 2961 | fi |
| 2962 | if test "${HAVE_ZLIB}" = "yes"; then | ||
| 2963 | AC_DEFINE([HAVE_ZLIB], 1, [Define to 1 if you have the zlib library (-lz).]) | ||
| 2964 | fi | ||
| 2960 | AC_SUBST(LIBZ) | 2965 | AC_SUBST(LIBZ) |
| 2961 | 2966 | ||
| 2962 | 2967 | ||
| @@ -4812,6 +4817,7 @@ echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE} | |||
| 4812 | echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}" | 4817 | echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}" |
| 4813 | echo " Does Emacs use -lotf? ${HAVE_LIBOTF}" | 4818 | echo " Does Emacs use -lotf? ${HAVE_LIBOTF}" |
| 4814 | echo " Does Emacs use -lxft? ${HAVE_XFT}" | 4819 | echo " Does Emacs use -lxft? ${HAVE_XFT}" |
| 4820 | echo " Does Emacs directly use zlib? ${HAVE_ZLIB}" | ||
| 4815 | 4821 | ||
| 4816 | echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}" | 4822 | echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}" |
| 4817 | echo | 4823 | echo |