summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2002-06-28 07:47:19 +0000
committerfoobar <sniper@php.net>2002-06-28 07:47:19 +0000
commitfeb450bae7653ef06c609412c86cd3ffe9550f80 (patch)
tree898e7d8836f8485dfb373cfa0d2a37fd756bb5e5
parent4330c0d9f38ae50f73c3c94e7c258e3b3bf5ff53 (diff)
downloadphp-git-feb450bae7653ef06c609412c86cd3ffe9550f80.tar.gz
- Fix bug: #17671
-rw-r--r--ext/gd/config.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/gd/config.m4 b/ext/gd/config.m4
index 2261db20f8..ca690cc15d 100644
--- a/ext/gd/config.m4
+++ b/ext/gd/config.m4
@@ -238,7 +238,6 @@ if test "$PHP_GD" = "php"; then
libgd/wbmp.c libgd/gd_wbmp.c libgd/gdhelpers.c libgd/gd_topal.c"
PHP_NEW_EXTENSION(gd, gd.c gdt1.c $sources, $ext_shared,, \\$(GDLIB_CFLAGS))
- PHP_ADD_INCLUDE($ext_srcdir/libgd)
PHP_ADD_BUILD_DIR($ext_builddir/libgd)
dnl PNG is required by GD library
@@ -268,7 +267,8 @@ dnl These are always available with bundled library
AC_DEFINE(HAVE_GD_BUNDLED, 1, [ ])
- GDLIB_CFLAGS="-DHAVE_LIBPNG"
+dnl Make sure the libgd/ is first in the include path
+ GDLIB_CFLAGS="-I$ext_srcdir/libgd -DHAVE_LIBPNG"
dnl Depending which libraries were included to PHP configure,
dnl enable the support in bundled GD library