changeset 33668:a6951040bb8e

(HAVE_PNG): Check for the presence of png_get_channels to rule out older PNG libs.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 21 Nov 2000 10:41:33 +0000
parents 646b893652e6
children 68245659ed49
files configure.in
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure.in	Tue Nov 21 10:08:52 2000 +0000
+++ b/configure.in	Tue Nov 21 10:41:33 2000 +0000
@@ -1839,7 +1839,7 @@
     old_c_flags="${CFLAGS}"
     CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
     AC_CHECK_HEADER(png.h,
-      AC_CHECK_LIB(png, png_set_expand, HAVE_PNG=yes, , -lX11 -lz -lm))
+      AC_CHECK_LIB(png, png_get_channels, HAVE_PNG=yes, , -lX11 -lz -lm))
     CFLAGS="${old_c_flags}"
   fi