Fix the accidental nukage of PNG_LIBS.

Kind of silly setting PNG_LIBS to -lpng after going to the effort of using
pkg-config now, isn't it :P
This commit is contained in:
Bill Currie 2011-08-25 23:04:02 +09:00
parent f75b0a611b
commit 7e5d654f3d
1 changed files with 1 additions and 2 deletions

View File

@ -80,12 +80,11 @@ if test "x$enable_png" != "xno"; then
else
AC_CHECK_LIB(png, png_set_read_fn, HAVE_PNG=yes, HAVE_PNG=no, [$LIBS])
if test "x$HAVE_PNG" = "xyes"; then
AC_CHECK_HEADER(png.h, HAVE_PNG=yes, HAVE_PNG=no)
AC_CHECK_HEADER(png.h, HAVE_PNG=yes PNG_LIBS="-lpng", HAVE_PNG=no)
fi
fi
fi
AC_SUBST(PNG_LIBS)
if test "x$HAVE_PNG" = "xyes"; then
PNG_LIBS="-lpng"
AC_DEFINE(HAVE_PNG, 1, [Define if you have libpng])
fi