1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 17:52:16 +01:00

Add test for png.h

This commit is contained in:
foobar
2003-01-20 10:39:29 +00:00
parent 7eeea7e55d
commit f6cee90129

View File

@@ -83,7 +83,11 @@ AC_DEFUN(PHP_GD_PNG,[
if test "$PHP_ZLIB_DIR" = "no"; then
AC_MSG_ERROR([PNG support requires ZLIB. Use --with-zlib-dir=<DIR>])
fi
if test ! -f $GD_PNG_DIR/include/png.h; then
AC_MSG_ERROR([png.h not found.])
fi
PHP_CHECK_LIBRARY(png,png_write_image,
[
PHP_ADD_INCLUDE($GD_PNG_DIR/include)