STR 1949 - revise configure.in to cerrectly detect png_set_tRNS_to_alpha

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6504 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Ian MacArthur 2008-11-09 13:15:05 +00:00
parent 4ec0d5c005
commit f61a8993d5

View File

@ -578,21 +578,24 @@ AC_CHECK_LIB(z,gzgets,
AC_ARG_ENABLE(localpng, [ --enable-localpng use local PNG library, default=auto],
[if test x$enable_localpng = xyes; then
ac_cv_lib_png_png_set_tRNS_to_alpha=no
ac_cv_lib_png_png_set_tRNS_to_alpha=yes
fi])
AC_CHECK_LIB(png,png_set_tRNS_to_alpha, [
PNGINC=""
PNG=""
IMAGELIBS="-lpng $IMAGELIBS"
AC_DEFINE(HAVE_LIBPNG)
AC_CHECK_HEADER(png.h, AC_DEFINE(HAVE_PNG_H))],[
AC_DEFINE(HAVE_PNG_GET_VALID)
AC_DEFINE(HAVE_PNG_SET_TRNS_TO_ALPHA) AC_CHECK_HEADER(png.h, AC_DEFINE(HAVE_PNG_H))],[
if test x$enable_localpng = xno; then
PNGINC=""
PNG=""
else
AC_DEFINE(HAVE_LIBPNG)
AC_DEFINE(HAVE_PNG_H)
AC_DEFINE(HAVE_PNG_GET_VALID)
AC_DEFINE(HAVE_PNG_SET_TRNS_TO_ALPHA)
PNGINC="-I../png"
PNG="png"
IMAGELIBS="-lfltk_png $IMAGELIBS"
@ -831,7 +834,7 @@ case $uname in
if test x$enable_xdbe != xno; then
AC_CHECK_HEADER(X11/extensions/Xdbe.h, AC_DEFINE(HAVE_XDBE),,
[#include <X11/Xlib.h>])
AC_CHECK_LIB(Xext, XdbeQueryExtension,
AC_CHECK_LIB(Xext, XdbeQueryExtension,
LIBS="-lXext $LIBS")
fi