From 78ad1527b4e82ef69e4395169c0039224c651108 Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Thu, 27 Mar 2003 21:43:43 +0000 Subject: [PATCH] Aways link zlib with libpng. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@817 --- configure.in | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/configure.in b/configure.in index 74312477..808f88ea 100644 --- a/configure.in +++ b/configure.in @@ -65,13 +65,8 @@ AC_ARG_ENABLE(debug,[ --enable-debug Enable debug mode],[ AH_TEMPLATE(C_SSHOT,[Define to 1 to enable screenshots, requires libpng]) AC_ARG_ENABLE(shots,[ --enable-shots Enable screenshot support],[ AC_CHECK_HEADER(png.h,have_png_h=yes,) - AC_CHECK_LIB(png, png_check_sig, have_png_lib=yes, ,) - AC_CHECK_LIB(png, png_check_sig, have_png_lib_z=yes, , -lz) - + AC_CHECK_LIB(png, png_check_sig, have_png_lib=yes, ,-lz) if test x$have_png_lib = xyes -a x$have_png_h = xyes ; then - LIBS="$LIBS -lpng" - AC_DEFINE(C_SSHOT,1) - else if test x$have_png_lib_z = xyes -a x$have_png_h = xyes ; then LIBS="$LIBS -lpng -lz" AC_DEFINE(C_SSHOT,1) else