summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac14
1 files changed, 14 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index d4e7d6978..b6f5d8dc7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -625,6 +625,17 @@ AC_CHECK_LIB(mng, mng_initialize,
AM_CONDITIONAL(HAVE_LIBMNG, test x"$have_libmng" = "xyes")
AC_SUBST(MNG_LIBS)
+dnl ---------------------------------------------
+dnl PNG lib.
+dnl ---------------------------------------------
+AC_CHECK_LIB(png, png_create_read_struct,
+ [ AC_CHECK_HEADER(png.h,
+ [ have_libpng=yes
+ PNG_LIBS="-lpng" ],
+ AC_MSG_RESULT([*** image decoder will be disabled ***]))],
+ AC_MSG_RESULT([*** image decoder will be disabled ***]))
+AM_CONDITIONAL(HAVE_LIBPNG, test x"$have_libpng" = "xyes")
+AC_SUBST(PNG_LIBS)
dnl ---------------------------------------------
dnl OSS style audio interface
@@ -1421,6 +1432,9 @@ fi
if test x"$enable_w32dll" = "xyes"; then
echo " - w32dll"
fi
+if test x"$have_libpng" = "xyes"; then
+ echo " - png"
+fi
echo ""
dnl audio decoders