components/php-5_2/php-sapi/patches/70_php-ext-gd.patch
author Craig Mohrman <craig.mohrman@oracle.com>
Thu, 23 Apr 2015 12:34:24 -0700
branchs11-update
changeset 4179 d3168ead33bd
permissions -rw-r--r--
20854739 the phps do not build on s12-71 (missed php 5.2)

20854739 the phps do not build on s12-71
This fix will not be sent upstream since this version has been EOF
by the community.

--- php-5.2.17/ext/gd/config.m4.orig	Thu Apr 16 10:01:23 2015
+++ php-5.2.17/ext/gd/config.m4	Thu Apr 16 10:02:17 2015
@@ -204,7 +204,7 @@
   if test "$PHP_FREETYPE_DIR" != "no"; then
 
     for i in $PHP_FREETYPE_DIR /usr/local /usr; do
-      if test -f "$i/include/freetype2/freetype/freetype.h"; then
+      if test -f "$i/include/freetype2/freetype.h" || test -f "$i/include/freetype2/freetype/freetype.h"; then
         FREETYPE2_DIR=$i
         FREETYPE2_INC_DIR=$i/include/freetype2
         break