php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3196 ttf autoconf check broken for freetype-1.3
Submitted: 2000-01-12 14:39 UTC Modified: 2000-01-12 19:46 UTC
From: sps at caldera dot de Assigned: markonen (profile)
Status: Closed Package: Installation problem
PHP Version: 3.0.14 OS: OpenLinux eCow
Private report: No CVE-ID: None
 [2000-01-12 14:39 UTC] sps at caldera dot de
freetype-1.3 installs it's headers in ${prefix}/include/freetype by default.
Configure doesn't find them there.

The patch is against 3.0.13 but also
applies to 3.0.14.

php-4.0b3 seems to have the same problem.

--- php-3.0.13/configure.in.orig        Sat Jan  1 03:30:52 2000
+++ php-3.0.13/configure.in     Tue Jan  4 19:20:49 2000
@@ -890,23 +890,28 @@
   if test -n "$CHECK_TTF" ; then
     for i in /usr /usr/local "$CHECK_TTF" ; do
       if test -f "$i/include/truetype.h" ; then
-        FREETYPE_DIR="$i"
+        FREETYPE_INCDIR="$i/include"
+        FREETYPE_LIBDIR="$i/lib"
       fi
-      if test -f "$i/include/freetype.h" ; then
-        TTF_DIR="$i"
+      if test -f "$i/include/freetype/freetype.h" ; then
+        TTF_INCDIR="$i/include/freetype"
+        TTF_LIBDIR="$i/lib"
+      elif test -f "$i/include/freetype.h" ; then
+        TTF_INCDIR="$i/include"
+        TTF_LIBDIR="$i/lib"
       fi
     done

-    if test -n "$FREETYPE_DIR" ; then
+    if test -n "$FREETYPE_INCDIR" ; then
       AC_DEFINE(HAVE_LIBFREETYPE)
-      AC_ADD_LIBRARY_WITH_PATH(freetype, $FREETYPE_DIR/lib)
-      AC_ADD_INCLUDE($FREETYPE_DIR/include)
+      AC_ADD_LIBRARY_WITH_PATH(freetype, $FREETYPE_LIBDIR)
+      AC_ADD_INCLUDE($FREETYPE_INCDIR)
       AC_MSG_RESULT(yes)
     else
-      if test -n "$TTF_DIR" ; then
+      if test -n "$TTF_INCDIR" ; then
         AC_DEFINE(HAVE_LIBTTF)
-        AC_ADD_LIBRARY_WITH_PATH(ttf, $TTF_DIR/lib)
-        AC_ADD_INCLUDE($TTF_DIR/include)
+        AC_ADD_LIBRARY_WITH_PATH(ttf, $TTF_LIBDIR)
+        AC_ADD_INCLUDE($TTF_INCDIR)
         AC_MSG_RESULT(yes)
       else
         AC_MSG_RESULT(no)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-01-12 19:46 UTC] markonen at cvs dot php dot net
This is fixed in the latest cvs (cvs.php.net) or php 3.0.15. Thanks.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 06:01:30 2024 UTC