From feb450bae7653ef06c609412c86cd3ffe9550f80 Mon Sep 17 00:00:00 2001 From: foobar Date: Fri, 28 Jun 2002 07:47:19 +0000 Subject: [PATCH] - Fix bug: #17671 --- ext/gd/config.m4 | 4 ++-- 1 file 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 -- 2.50.1