From: msisolak at yahoo dot com
Operating system: Windows 2000
PHP version: 5.1.0b2
PHP Bug Type: GD related
Bug description: [PATCH] adding "--without-t1lib" for win32 GD configure
Description:
------------
Please consider the following patch which adds a "--without-t1lib" option
for the win32 configure/make process (to ext/gd/config.w32). For those of
us who want GD, but won't ever need the Type 1 font support recently
added, it would be useful to be able to not include the bulk of t1lib.
Thanks.
--- config.w32.orig Thu Jun 30 10:15:57 2005
+++ config.w32 Thu Jun 30 10:13:40 2005
@@ -2,16 +2,24 @@
// vim:ft=javascript
ARG_WITH("gd", "Bundled GD support", "yes,shared");
+ARG_WITH("t1lib", "t1lib support", "yes");
if (PHP_GD != "no") {
if (CHECK_LIB("libjpeg.lib", "gd", PHP_GD) &&
CHECK_LIB("freetype2.lib", "gd", PHP_GD) &&
CHECK_LIB("libpng.lib", "gd", PHP_GD) &&
- CHECK_LIB("T1_StaticMD.lib", "gd", PHP_GD) &&
CHECK_LIB("zlib.lib", "gd", PHP_GD + ";..\\zlib;" +
php_usual_lib_suspects) &&
- CHECK_HEADER_ADD_INCLUDE("gd.h", "CFLAGS_GD", PHP_GD +
";ext\\gd\\libgd") &&
- CHECK_HEADER_ADD_INCLUDE("t1lib.h", "CFLAGS_GD", PHP_GD + ";" +
PHP_PHP_BUILD + "\\include\\t1lib")
+ CHECK_HEADER_ADD_INCLUDE("gd.h", "CFLAGS_GD", PHP_GD +
";ext\\gd\\libgd")
) {
+ if (PHP_T1LIB != "no") {
+ if (CHECK_LIB("T1_StaticMD.lib", "gd", PHP_GD) &&
+ CHECK_HEADER_ADD_INCLUDE("t1lib.h",
"CFLAGS_GD", PHP_GD + ";" +
PHP_PHP_BUILD + "\\include\\t1lib")
+ ) {
+ ADD_FLAG("CFLAGS_GD", "/D HAVE_LIBT1");
+ } else {
+ WARNING("t1lib not enabled; libraries and
headers not found");
+ }
+ }
EXTENSION("gd", "gd.c gdttf.c", null, "-Iext/gd/libgd",
"php_gd2.dll");
ADD_SOURCES("ext/gd/libgd", "gd2copypal.c gd_arc_f_buggy.c gd.c
\
@@ -43,7 +51,6 @@
/D HAVE_LIBPNG \
/D USE_GD_IMGSTRTTF \
/D USE_GD_IOCTX \
-/D HAVE_LIBT1 \
/D MSWIN32 \
");
} else {
--
Edit bug report at http://bugs.php.net/?id=33620&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33620&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=33620&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=33620&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=33620&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=33620&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=33620&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=33620&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=33620&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=33620&r=support
Expected behavior: http://bugs.php.net/fix.php?id=33620&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=33620&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=33620&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=33620&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33620&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=33620&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=33620&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=33620&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=33620&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=33620&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=33620&r=mysqlcfg