summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2009-05-26 08:53:13 +0000
committerPierre Joye <pajoye@php.net>2009-05-26 08:53:13 +0000
commitc559d4fb300db664f8f107bfef3b927d191871d3 (patch)
tree0b1545824e3e6f607c75bdb1731ead3b39d3dab8
parentd8b76a84116a646cb7b28f5c28a705a19ccb361f (diff)
downloadphp-git-c559d4fb300db664f8f107bfef3b927d191871d3.tar.gz
- always add libgd/
-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 70bf7fe180..151881b72b 100644
--- a/ext/gd/config.m4
+++ b/ext/gd/config.m4
@@ -401,9 +401,10 @@ dnl
if test "$PHP_GD" != "no"; then
PHP_NEW_EXTENSION(gd, gd.c $extra_sources, $ext_shared,, \\$(GDLIB_CFLAGS))
+ PHP_ADD_BUILD_DIR($ext_builddir/libgd)
+
if test "$GD_MODULE_TYPE" = "builtin"; then
GDLIB_CFLAGS="-I$ext_srcdir/libgd $GDLIB_CFLAGS"
- PHP_ADD_BUILD_DIR($ext_builddir/libgd)
GD_HEADER_DIRS="ext/gd/ ext/gd/libgd/"
PHP_TEST_BUILD(foobar, [], [
@@ -413,7 +414,6 @@ if test "$PHP_GD" != "no"; then
GD_HEADER_DIRS="ext/gd/"
GDLIB_CFLAGS="-I$GD_INCLUDE $GDLIB_CFLAGS"
PHP_ADD_INCLUDE($GD_INCLUDE)
-
PHP_CHECK_LIBRARY(gd, gdImageCreate, [], [
AC_MSG_ERROR([GD build test failed. Please check the config.log for details.])
], [ -L$GD_LIB $GD_SHARED_LIBADD ])