--- SDL_image-1.2.6/configure.in 2007-07-21 07:26:26.000000000 +0200 +++ SDL_image-1.2.6-mingw/configure.in 2008-01-13 10:35:49.000000000 +0100 @@ -168,7 +168,7 @@ if test x$enable_png = xyes; then AC_CHECK_HEADER([png.h], [have_png_hdr=yes]) - AC_CHECK_LIB([png], [png_create_read_struct], [have_png_lib=yes]) + AC_CHECK_LIB([png], [png_create_read_struct], [have_png_lib=yes], [], [-lz]) if test x$have_png_hdr = xyes -a x$have_png_lib = xyes; then AC_DEFINE([LOAD_PNG]) @@ -194,7 +194,7 @@ if test x$enable_tif = xyes; then AC_CHECK_HEADER([tiffio.h], [have_tif_hdr=yes]) - AC_CHECK_LIB([tiff], [TIFFClientOpen], [have_tif_lib=yes]) + AC_CHECK_LIB([tiff], [TIFFClientOpen], [have_tif_lib=yes], [], [-lz]) if test x$have_tif_hdr = xyes -a x$have_tif_lib = xyes; then AC_DEFINE([LOAD_TIF])