--- configure.orig 2002-11-27 18:23:31.000000000 -0500 +++ configure 2002-11-27 18:23:53.000000000 -0500 @@ -1735,7 +1735,7 @@ echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" -LIBS="-lpng $LIBS" +LIBS="-lpng -lz -lm $LIBS" cat > conftest.$ac_ext <