From 79cdd3b029fba34fb463ba619277474e552f7c16 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Tue, 21 Nov 2000 10:41:33 +0000 Subject: [PATCH] (HAVE_PNG): Check for the presence of png_get_channels to rule out older PNG libs. --- configure.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 54ea7a70fa0..c62f6c3c305 100644 --- a/configure.in +++ b/configure.in @@ -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 -- 2.39.2