From: Ilia Alshanetsky Date: Sun, 17 Nov 2002 21:57:43 +0000 (+0000) Subject: Fixed gd 2.0.4 check X-Git-Tag: RELEASE_1_0b2~177 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8d00d54f2fc6d429c1c9779e6891c649a18407b6;p=php Fixed gd 2.0.4 check --- diff --git a/ext/gd/config.m4 b/ext/gd/config.m4 index 77a446008e..e58a7eb3be 100644 --- a/ext/gd/config.m4 +++ b/ext/gd/config.m4 @@ -248,9 +248,10 @@ dnl AC_TRY_COMPILE([ #include -], [gdIOCtx *ctx; ctx->ctx.gd_free = 1;],[], -[AC_DEFINE(HAVE_LIBGD204, 1, [ ])] -) + #include +], [gdIOCtx *ctx; ctx = malloc(sizeof(gdIOCtx)); ctx->gd_free = 1], + AC_DEFINE(HAVE_LIBGD204, 1, [ ]) +]) dnl dnl Main GD configure