changeset 211:b2ff493b447a

- Made zlib a configure requirement.
author jcid
date Tue, 13 May 2008 01:11:52 +0200
parents 2f05ce84df01
children 06b2b2fa6bac
files ChangeLog configure.in
diffstat 2 files changed, 17 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sat May 10 21:52:09 2008 +0200
+++ b/ChangeLog	Tue May 13 01:11:52 2008 +0200
@@ -98,7 +98,8 @@
  - Fix: shape=default is the background in a client-side image map.
  - Enabled client and server-side image maps.
  - Switched Window::destroy to Window::delete, fixing side effects.
-   Patches: place
+ - Made zlib a configure requirement.
+   Patches: place (AKA corvid)
 +- Fixed a problem with locally-installed dpis.
  - Added code for optional image loading (nice interface) very advanced!
  - Added an experimental gzip decoder! 
@@ -108,7 +109,7 @@
  - Added support for "charset" in the META element.
  - Added a_Capi_get_flags(). It requests a cache entry's status as flags.
  - Switched URL_DATA type from char* to a dStr.
- - Implemented the file input control for forms (work in progress).
+ - Implemented the file input control for forms.
    Patch: place, Jorge Arellano Cid
 +- Fixed a cookies-related dillo freeze bug happening at:
      http://www.fltk.org/newsgroups.php?gfltk.general+v:24912
--- a/configure.in	Sat May 10 21:52:09 2008 +0200
+++ b/configure.in	Tue May 13 01:11:52 2008 +0200
@@ -184,31 +184,29 @@
   AC_DEFINE([ENABLE_JPEG], [], [Enable JPEG images])
 fi
 
-dnl ------------------------------
-dnl Test for zlib (libpng uses it)
-dnl ------------------------------
+dnl -------------
+dnl Test for zlib
+dnl -------------
 dnl
-if test "x$enable_png" = "xyes"; then
-  AC_CHECK_HEADER(zlib.h, libz_ok=yes, libz_ok=no)
+AC_CHECK_HEADER(zlib.h, libz_ok=yes, libz_ok=no)
 
-  if test "x$libz_ok" = "xyes"; then
-    old_libs="$LIBS"
-    AC_CHECK_LIB(z, zlibVersion, libz_ok=yes, libz_ok=no)
-    LIBS="$old_libs"
-  fi
+if test "x$libz_ok" = "xyes"; then
+  old_libs="$LIBS"
+  AC_CHECK_LIB(z, zlibVersion, libz_ok=yes, libz_ok=no)
+  LIBS="$old_libs"
+fi
 
-  if test "x$libz_ok" = xyes; then
-    LIBZ_LIBS="-lz"
-  else
-    AC_MSG_WARN([*** No libz found. Disabling PNG images ***])
-  fi
+if test "x$libz_ok" = xyes; then
+  LIBZ_LIBS="-lz"
+else
+  AC_ERROR(zlib must be installed!)
 fi
 
 dnl ---------------
 dnl Test for libpng
 dnl ---------------
 dnl
-if test "x$enable_png" = "xyes" && test "x$libz_ok" = "xyes"; then
+if test "x$enable_png" = "xyes"; then
   AC_MSG_CHECKING([for libpng-config])
 
 dnl Check if the user hasn't set the variable $PNG_CONFIG