[PHP-users 12502] Re: PHP4.3.0の GD のインストールについて

Yasuo Ohgaki php-users@php.gr.jp
Fri, 10 Jan 2003 17:01:03 +0900


大垣です。

多分以下のパッチで動作すると思います。
思い通りに動作したら教えてください。

> ただし、
> % ./configure --with-gd
> で作成されるMakefieを見る限り
>  -DJISX0208
> を付加してないようですので、そのままでは日本語は通らないと思います。
> 

Index: ext/gd/config.m4
===================================================================
RCS file: /repository/php4/ext/gd/config.m4,v
retrieving revision 1.120.2.6
diff -u -r1.120.2.6 config.m4
--- ext/gd/config.m4    14 Dec 2002 09:32:49 -0000      1.120.2.6
+++ ext/gd/config.m4    10 Jan 2003 07:57:50 -0000
@@ -286,7 +286,7 @@
   AC_DEFINE(HAVE_GD_GIF_READ,          1, [ ])

 dnl Make sure the libgd/ is first in the include path
-  GDLIB_CFLAGS="-DHAVE_LIBPNG"
+  GDLIB_CFLAGS="-DHAVE_LIBPNG -DJISX0208"

 dnl Depending which libraries were included to PHP configure,
 dnl enable the support in bundled GD library