]> git.saurik.com Git - wxWidgets.git/commitdiff
fix for --with-libpng=sys warning
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 4 Mar 2000 23:59:13 +0000 (23:59 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 4 Mar 2000 23:59:13 +0000 (23:59 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6448 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

configure.in

index 7697ef40e5545d1c5aef67b7afee30fe477f39e3..4afa70dd39036e9792f0bcd898cdd8c60188c805 100644 (file)
@@ -2587,7 +2587,7 @@ if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
   AC_DEFINE(wxUSE_LIBPNG)
   dnl for the check below to have a chance to succeed, we must already have
   dnl libz somewhere
-  if test "$wxUSE_ZLIB" != "sys" ; then
+  if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
     AC_MSG_WARN([--with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead])
     wxUSE_LIBPNG=yes
   fi