openbsd-ports/www/php4/extensions/patches/patch-ext_gd_config_m4

20 lines
753 B
Plaintext

$OpenBSD: patch-ext_gd_config_m4,v 1.5 2003/05/23 20:07:18 avsm Exp $
--- ext/gd/config.m4.orig Mon Apr 21 20:07:50 2003
+++ ext/gd/config.m4 Fri May 23 14:56:44 2003
@@ -87,13 +87,13 @@ AC_DEFUN(PHP_GD_PNG,[
AC_MSG_ERROR([PNG support requires ZLIB. Use --with-zlib-dir=<DIR>])
fi
- if test ! -f $GD_PNG_DIR/include/png.h; then
+ if test ! -f $GD_PNG_DIR/include/libpng/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)
+ PHP_ADD_INCLUDE($GD_PNG_DIR/include/libpng)
PHP_ADD_LIBRARY_WITH_PATH(z, $PHP_ZLIB_DIR/lib, GD_SHARED_LIBADD)
PHP_ADD_LIBRARY_WITH_PATH(png, $GD_PNG_DIR/lib, GD_SHARED_LIBADD)
],[