]> granicus.if.org Git - php/commitdiff
Fixed gd 2.0.4 check
authorIlia Alshanetsky <iliaa@php.net>
Sun, 17 Nov 2002 21:57:43 +0000 (21:57 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sun, 17 Nov 2002 21:57:43 +0000 (21:57 +0000)
ext/gd/config.m4

index 77a446008e2baa14b9e94c4a23333202801fdaf2..e58a7eb3be8c11299cca3956b90935e48316c6f8 100644 (file)
@@ -248,9 +248,10 @@ dnl
 
 AC_TRY_COMPILE([
  #include <gd.h>
-], [gdIOCtx *ctx; ctx->ctx.gd_free = 1;],[],
-[AC_DEFINE(HAVE_LIBGD204, 1, [ ])]
-)
+ #include <stdlib.h>
+], [gdIOCtx *ctx; ctx = malloc(sizeof(gdIOCtx)); ctx->gd_free = 1], 
+       AC_DEFINE(HAVE_LIBGD204, 1, [ ])
+])
 
 dnl
 dnl Main GD configure