Index: configure =================================================================== --- configure.orig 2012-08-02 17:09:08.000000000 +0200 +++ configure 2014-03-14 14:27:30.539876212 +0100 @@ -14074,6 +14074,12 @@ if test "$ac_cv_lib_png14_png_create_read_struct" = "yes"; then STATIC_LIBS="$STATIC_LIBS -lpng14 -lz" fi + if test "$ac_cv_lib_png15_png_create_read_struct" = "yes"; then + STATIC_LIBS="$STATIC_LIBS -lpng15 -lz" + fi + if test "$ac_cv_lib_png16_png_create_read_struct" = "yes"; then + STATIC_LIBS="$STATIC_LIBS -lpng16 -lz" + fi if test "$ac_cv_lib_tiff_TIFFOpen" = "yes"; then STATIC_LIBS="$STATIC_LIBS -ltiff" fi @@ -14178,6 +14184,16 @@ $as_echo "#define _STATIC_LIBPNG 1" >>confdefs.h fi + if test "$ac_cv_lib_png15_png_create_read_struct" = "yes"; then + STATIC_LIBS="$STATIC_LIBS -lpng15 -lz" + $as_echo "#define _STATIC_LIBPNG 1" >>confdefs.h + + fi + if test "$ac_cv_lib_png16_png_create_read_struct" = "yes"; then + STATIC_LIBS="$STATIC_LIBS -lpng16 -lz" + $as_echo "#define _STATIC_LIBPNG 1" >>confdefs.h + + fi if test "$ac_cv_lib_tiff_TIFFOpen" = "yes"; then STATIC_LIBS="$STATIC_LIBS -ltiff" $as_echo "#define _STATIC_LIBTIFF 1" >>confdefs.h