]> granicus.if.org Git - php/commitdiff
Patch from Adam Dickmeiss to make configure detect libtff again.
authorWez Furlong <wez@php.net>
Thu, 19 Apr 2001 14:16:09 +0000 (14:16 +0000)
committerWez Furlong <wez@php.net>
Thu, 19 Apr 2001 14:16:09 +0000 (14:16 +0000)
ext/gd/config.m4

index 1169ade14f85ebb3f5780ca5073893c7f60c9fd4..ef2fc964afcd52e32e5158eee7da92f85d904617 100644 (file)
@@ -110,6 +110,7 @@ AC_DEFUN(PHP_GD_CHECK_VERSION,[
         AC_CHECK_LIB(gd, gdImageCreateTrueColor,   [AC_DEFINE(HAVE_LIBGD20, 1, [ ])])
         AC_CHECK_LIB(gd, gdImageSetTile,                       [AC_DEFINE(HAVE_GD_IMAGESETTILE, 1, [ ])])
         AC_CHECK_LIB(gd, gdImageSetBrush,                      [AC_DEFINE(HAVE_GD_IMAGESETBRUSH, 1, [ ])])
+        AC_CHECK_LIB(gd, gdImageStringFTEx,                    [AC_DEFINE(HAVE_GD_STRINGFTEX, 1, [ ])])
 ])
 
 
@@ -249,7 +250,7 @@ if test "$with_gd" != "no" && test "$ac_cv_lib_gd_gdImageLine" = "yes"; then
   ])
 
   AC_MSG_CHECKING(whether to include FreeType 1.x support)
-  if test "$with_freetype_dir" = "no" ; then
+  if test "$with_freetype_dir" = "no" -o "$with_freetype_dir" = ""; then
     if test -n "$CHECK_TTF" ; then
                        for i in /usr /usr/local "$CHECK_TTF" ; do
                                if test -f "$i/include/freetype.h" ; then