]> git.eshelyaron.com Git - emacs.git/commitdiff
(HAVE_PNG): Check for the presence of
authorGerd Moellmann <gerd@gnu.org>
Tue, 21 Nov 2000 10:41:33 +0000 (10:41 +0000)
committerGerd Moellmann <gerd@gnu.org>
Tue, 21 Nov 2000 10:41:33 +0000 (10:41 +0000)
png_get_channels to rule out older PNG libs.

configure.in

index 54ea7a70fa02ffa4e0174e2efdd6507adba452b8..c62f6c3c305d7b78ff32e5139421f75918275b1e 100644 (file)
@@ -1839,7 +1839,7 @@ if test "${HAVE_X11}" = "yes"; then
     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