summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2001-06-03 21:33:20 +0000
committerfoobar <sniper@php.net>2001-06-03 21:33:20 +0000
commitedf3a56a22fc6146a92da79edf4bcfed350a9126 (patch)
tree83a1f49cf87eaa6740fcfa4eb926efdb0a5e0f41
parent70936ba1cbb46ed9546b2cce856c22f0c7cc2226 (diff)
downloadphp-git-edf3a56a22fc6146a92da79edf4bcfed350a9126.tar.gz
MFH. This really needs to be in the release!
-rw-r--r--ext/gd/config.m410
1 files changed, 7 insertions, 3 deletions
diff --git a/ext/gd/config.m4 b/ext/gd/config.m4
index de21e266e7..329b20f0ba 100644
--- a/ext/gd/config.m4
+++ b/ext/gd/config.m4
@@ -138,13 +138,13 @@ AC_DEFUN(PHP_GD_T1LIB,[
[ --with-t1lib[=DIR] GD: Include T1lib support.])
if test "$PHP_T1LIB" != "no"; then
- for i in /usr/local /usr $PHP_T1LIB; do
+ for i in /usr /usr/local $PHP_T1LIB; do
if test -f "$i/include/t1lib.h"; then
- T1_DIR="$i"
+ T1_DIR=$i
fi
done
- if test "$T1_DIR" != "no"; then
+ if test "$T1_DIR"; then
AC_CHECK_LIB(t1, T1_GetExtend,
[
AC_DEFINE(HAVE_LIBT1,1,[ ])
@@ -152,7 +152,11 @@ AC_DEFUN(PHP_GD_T1LIB,[
PHP_ADD_LIBRARY_WITH_PATH(t1, "$T1_DIR/lib", GD_SHARED_LIBADD)
],[
AC_MSG_ERROR(Problem with libt1.(a|so). Please check config.log for more information.)
+ ],[
+ -L$T1_DIR/lib
])
+ else
+ AC_MSG_ERROR(Your t1lib distribution is not installed correctly. Please reinstall it.)
fi
fi
])