sniper Sat Dec 14 04:32:50 2002 EDT Modified files: (Branch: PHP_4_3) /php4/ext/gd config.m4 Log: Fixed bug: #20995 Index: php4/ext/gd/config.m4 diff -u php4/ext/gd/config.m4:1.120.2.5 php4/ext/gd/config.m4:1.120.2.6 --- php4/ext/gd/config.m4:1.120.2.5 Tue Dec 10 15:12:38 2002 +++ php4/ext/gd/config.m4 Sat Dec 14 04:32:49 2002 @@ -1,5 +1,5 @@ dnl -dnl $Id: config.m4,v 1.120.2.5 2002/12/10 20:12:38 helly Exp $ +dnl $Id: config.m4,v 1.120.2.6 2002/12/14 09:32:49 sniper Exp $ dnl dnl @@ -243,22 +243,6 @@ ]) dnl -dnl Check for gd 2.0.4 greater availability -dnl - -AC_TRY_COMPILE( -[ -#include <gd.h> -#include <stdlib.h> -], [ -gdIOCtx *ctx; -ctx = malloc(sizeof(gdIOCtx)); -ctx->gd_free = 1; -], [ - AC_DEFINE(HAVE_LIBGD204, 1, [ ]) -]) - -dnl dnl Main GD configure dnl @@ -363,6 +347,24 @@ fi PHP_EXPAND_PATH($GD_INCLUDE, GD_INCLUDE) + + dnl + dnl Check for gd 2.0.4 greater availability + dnl + old_CPPFLAGS=$CPPFLAGS + CPPFLAGS=-I$GD_INCLUDE + AC_TRY_COMPILE([ +#include <gd.h> +#include <stdlib.h> + ], [ +gdIOCtx *ctx; +ctx = malloc(sizeof(gdIOCtx)); +ctx->gd_free = 1; + ], [ + AC_DEFINE(HAVE_LIBGD204, 1, [ ]) + ]) + CPPFLAGS=$old_CPPFLAGS + fi fi
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php