[libpng17] Cleaned up and enhanced the configure option; libpng now correctly

links and tests against zlib with a prefix; tests have been clarified; and
irrelevant or obsolete things (as defined by the autotools man page) have
been removed.
This commit is contained in:
John Bowler
2012-12-17 09:20:02 -06:00
committed by Glenn Randers-Pehrson
parent 1f0853f47e
commit 72389dec42
13 changed files with 246 additions and 216 deletions

View File

@@ -39,8 +39,10 @@
*/
#ifdef PNG_FREESTANDING_TESTS
# include <png.h>
# include <zlib.h> /* For crc32 */
#else
# include "../../png.h"
# include PNG_ZLIB_HEADER
#endif
#ifdef PNG_WRITE_SUPPORTED /* else pngvalid can do nothing */
@@ -88,8 +90,6 @@ typedef png_byte *png_const_bytep;
# define png_const_structp png_structp
#endif
#include <zlib.h> /* For crc32 */
#include <float.h> /* For floating point constants */
#include <stdlib.h> /* For malloc */
#include <string.h> /* For memcpy, memset */