diff options
author | Pierre Joye <pajoye@php.net> | 2005-10-02 18:01:51 +0000 |
---|---|---|
committer | Pierre Joye <pajoye@php.net> | 2005-10-02 18:01:51 +0000 |
commit | 9c6a41fbdb37744cc44defe778580a37c4414cb9 (patch) | |
tree | d8b2ed4effd7c9e3518793ed544caf6f36b0e7fe | |
parent | eedd7b36d2f40af9261ab7326628fa9cee8a1059 (diff) | |
download | php-git-9c6a41fbdb37744cc44defe778580a37c4414cb9.tar.gz |
- drop freetype1 support
-rw-r--r-- | ext/gd/config.m4 | 46 | ||||
-rw-r--r-- | ext/gd/gd.c | 13 | ||||
-rw-r--r-- | ext/gd/gdcache.c | 2 | ||||
-rw-r--r-- | ext/gd/libgd/gdcache.c | 6 | ||||
-rw-r--r-- | ext/gd/php_gd.h | 2 |
5 files changed, 4 insertions, 65 deletions
diff --git a/ext/gd/config.m4 b/ext/gd/config.m4 index 28a75386d7..2c5bb4a9e7 100644 --- a/ext/gd/config.m4 +++ b/ext/gd/config.m4 @@ -27,9 +27,6 @@ fi PHP_ARG_WITH(xpm-dir, for the location of libXpm, [ --with-xpm-dir[=DIR] GD: Set the path to libXpm install prefix], no, no) - -PHP_ARG_WITH(ttf, for FreeType 1.x support, -[ --with-ttf[=DIR] GD: Include FreeType 1.x support], no, no) PHP_ARG_WITH(freetype-dir, for FreeType 2, [ --with-freetype-dir[=DIR] GD: Set the path to FreeType 2 install prefix], no, no) @@ -141,41 +138,6 @@ AC_DEFUN([PHP_GD_XPM],[ fi ]) -AC_DEFUN([PHP_GD_FREETYPE1],[ - if test "$PHP_TTF" != "no"; then - if test "$PHP_FREETYPE_DIR" = "no" -o "$PHP_FREETYPE_DIR" = ""; then - if test -n "$PHP_TTF"; then - for i in $PHP_TTF /usr/local /usr; do - if test -f "$i/include/freetype.h"; then - TTF_DIR=$i - unset TTF_INC_DIR - fi - if test -f "$i/include/freetype/freetype.h"; then - TTF_DIR=$i - TTF_INC_DIR=$i/include/freetype - fi - if test -f "$i/include/freetype1/freetype/freetype.h"; then - TTF_DIR=$i - TTF_INC_DIR=$i/include/freetype1/freetype - fi - test -n "$TTF_DIR" && break - done - fi - if test -n "$TTF_DIR" ; then - AC_DEFINE(HAVE_LIBTTF,1,[ ]) - PHP_ADD_LIBRARY_WITH_PATH(ttf, $TTF_DIR/$PHP_LIBDIR, GD_SHARED_LIBADD) - fi - if test -z "$TTF_INC_DIR"; then - TTF_INC_DIR=$TTF_DIR/include - fi - PHP_ADD_INCLUDE($TTF_INC_DIR) - else - AC_MSG_CHECKING(for FreeType 1 support) - AC_MSG_RESULT([no - FreeType 2.x is to be used instead]) - fi - fi -]) - AC_DEFUN([PHP_GD_FREETYPE2],[ if test "$PHP_FREETYPE_DIR" != "no"; then @@ -289,7 +251,6 @@ dnl Various checks for GD features PHP_GD_PNG PHP_GD_XPM PHP_GD_FREETYPE2 - PHP_GD_FREETYPE1 PHP_GD_T1LIB dnl These are always available with bundled library @@ -336,10 +297,6 @@ dnl enable the support in bundled GD library GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_LIBFREETYPE" fi - if test -n "$TTF_DIR"; then - GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_LIBTTF" - fi - if test -n "$USE_GD_JIS_CONV"; then AC_DEFINE(USE_GD_JISX0208, 1, [ ]) GDLIB_CFLAGS="$GDLIB_CFLAGS -DJISX0208" @@ -357,7 +314,6 @@ dnl Various checks for GD features PHP_GD_PNG PHP_GD_XPM PHP_GD_FREETYPE2 - PHP_GD_FREETYPE1 PHP_GD_T1LIB dnl Header path @@ -406,7 +362,7 @@ dnl dnl Common for both builtin and external GD dnl if test "$PHP_GD" != "no"; then - PHP_NEW_EXTENSION(gd, gd.c gdttf.c $extra_sources, $ext_shared,, \\$(GDLIB_CFLAGS)) + PHP_NEW_EXTENSION(gd, gd.c $extra_sources, $ext_shared,, \\$(GDLIB_CFLAGS)) if test "$GD_MODULE_TYPE" = "builtin"; then GDLIB_CFLAGS="-I$ext_srcdir/libgd $GDLIB_CFLAGS" diff --git a/ext/gd/gd.c b/ext/gd/gd.c index 9230190a9a..8f6c567bd1 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -72,9 +72,6 @@ static void php_free_ps_enc(zend_rsrc_list_entry *rsrc TSRMLS_DC); # include <ft2build.h> # include FT_FREETYPE_H # else -# ifdef HAVE_LIBTTF -# include <freetype.h> -# endif # endif # include "gdttf.h" #endif @@ -506,14 +503,6 @@ PHP_MINFO_FUNCTION(gd) #endif php_info_print_table_row(2, "FreeType Version", tmp); } -#elif HAVE_LIBTTF - php_info_print_table_row(2, "FreeType Linkage", "with TTF library"); - { - char tmp[256]; - snprintf(tmp, sizeof(tmp), "%d.%d", TT_FREETYPE_MAJOR, TT_FREETYPE_MINOR); - php_info_print_table_row(2, "FreeType Version", tmp); - } -#else php_info_print_table_row(2, "FreeType Linkage", "with unknown library"); #endif #endif @@ -569,8 +558,6 @@ PHP_FUNCTION(gd_info) add_assoc_bool(return_value, "FreeType Support", 1); #if HAVE_LIBFREETYPE add_assoc_string(return_value, "FreeType Linkage", "with freetype", 1); -#elif HAVE_LIBTTF - add_assoc_string(return_value, "FreeType Linkage", "with TTF library", 1); #else add_assoc_string(return_value, "FreeType Linkage", "with unknown library", 1); #endif diff --git a/ext/gd/gdcache.c b/ext/gd/gdcache.c index 63df228de9..a728d82548 100644 --- a/ext/gd/gdcache.c +++ b/ext/gd/gdcache.c @@ -44,7 +44,7 @@ #else #include <php_config.h> #endif -#if (HAVE_LIBTTF | HAVE_LIBFREETYPE) && !defined(HAVE_GD_CACHE_CREATE) +#if HAVE_LIBFREETYPE && !defined(HAVE_GD_CACHE_CREATE) #include "gdcache.h" diff --git a/ext/gd/libgd/gdcache.c b/ext/gd/libgd/gdcache.c index a6e507a4bb..e3b057a3ee 100644 --- a/ext/gd/libgd/gdcache.c +++ b/ext/gd/libgd/gdcache.c @@ -1,13 +1,9 @@ #include "gd.h" #include "gdhelpers.h" -#ifdef HAVE_LIBTTF -#define NEED_CACHE 1 -#else #ifdef HAVE_LIBFREETYPE #define NEED_CACHE 1 #endif -#endif #ifdef NEED_CACHE @@ -211,4 +207,4 @@ main (char *argv[], int argc) } #endif /* TEST */ -#endif /* HAVE_LIBTTF */ +#endif /* HAVE_NEEDCACHE */ diff --git a/ext/gd/php_gd.h b/ext/gd/php_gd.h index cc011b75b7..4f93ccdd80 100644 --- a/ext/gd/php_gd.h +++ b/ext/gd/php_gd.h @@ -24,7 +24,7 @@ #define HAVE_GDIMAGECREATEFROMPNG 1 -#if HAVE_LIBTTF|HAVE_LIBFREETYPE +#if HAVE_LIBFREETYPE #define ENABLE_GD_TTF #endif |