From 591b6e7d59935b5a9782c692c922ecf1e0372094 Mon Sep 17 00:00:00 2001 From: foobar Date: Mon, 20 Jan 2003 10:39:39 +0000 Subject: [PATCH] MFH --- ext/gd/config.m4 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ext/gd/config.m4 b/ext/gd/config.m4 index fcbedc73e7..ddea19921e 100644 --- a/ext/gd/config.m4 +++ b/ext/gd/config.m4 @@ -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=]) 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) -- 2.40.0