From 6530cbd7d903865d36e31f4109ff4446a284b024 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Wed, 21 May 2003 14:35:04 +0000 Subject: - fix the libpng check for distros without a libpng-config, RHL 7.3 is in that case CVS patchset: 4894 CVS date: 2003/05/21 14:35:04 --- configure.ac | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 1a4a6d4c0..3420ed991 100644 --- a/configure.ac +++ b/configure.ac @@ -661,10 +661,13 @@ dnl AC_MSG_RESULT([*** image decoder will be disabled ***]))], dnl AC_MSG_RESULT([*** image decoder will be disabled ***])) dnl AM_CONDITIONAL(HAVE_LIBPNG, test x"$have_libpng" = "xyes") dnl AC_SUBST(PNG_LIBS) - + AC_PATH_PROG(LIBPNG_CONFIG, libpng-config, no) if test "$LIBPNG_CONFIG" = "no" ; then - AC_MSG_RESULT([*** libpng-config not found, png support disabled ***]) + AC_CHECK_LIB(png, png_create_read_struct, + have_libpng=yes + PNG_LIBS="-lpng", + AC_MSG_RESULT([*** All libpng dependent parts will be disabled ***])) else PNG_CFLAGS=`$LIBPNG_CONFIG --cflags` PNG_LIBS=`$LIBPNG_CONFIG --libs` -- cgit v1.2.3