]> granicus.if.org Git - php/commitdiff
Add test for png.h
authorfoobar <sniper@php.net>
Mon, 20 Jan 2003 10:39:29 +0000 (10:39 +0000)
committerfoobar <sniper@php.net>
Mon, 20 Jan 2003 10:39:29 +0000 (10:39 +0000)
ext/gd/config.m4

index fcbedc73e7b8ebdd7fcae465e73f6e86f0c21b79..ddea19921eb24a82e34c6447ef631bda313c64a9 100644 (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)