Skip to content

Commit edf3a56

Browse files
author
foobar
committed
MFH. This really needs to be in the release!
1 parent 70936ba commit edf3a56

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

ext/gd/config.m4

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,21 +138,25 @@ AC_DEFUN(PHP_GD_T1LIB,[
138138
[ --with-t1lib[=DIR] GD: Include T1lib support.])
139139
140140
if test "$PHP_T1LIB" != "no"; then
141-
for i in /usr/local /usr $PHP_T1LIB; do
141+
for i in /usr /usr/local $PHP_T1LIB; do
142142
if test -f "$i/include/t1lib.h"; then
143-
T1_DIR="$i"
143+
T1_DIR=$i
144144
fi
145145
done
146146
147-
if test "$T1_DIR" != "no"; then
147+
if test "$T1_DIR"; then
148148
AC_CHECK_LIB(t1, T1_GetExtend,
149149
[
150150
AC_DEFINE(HAVE_LIBT1,1,[ ])
151151
PHP_ADD_INCLUDE("$T1_DIR/include")
152152
PHP_ADD_LIBRARY_WITH_PATH(t1, "$T1_DIR/lib", GD_SHARED_LIBADD)
153153
],[
154154
AC_MSG_ERROR(Problem with libt1.(a|so). Please check config.log for more information.)
155+
],[
156+
-L$T1_DIR/lib
155157
])
158+
else
159+
AC_MSG_ERROR(Your t1lib distribution is not installed correctly. Please reinstall it.)
156160
fi
157161
fi
158162
])

0 commit comments

Comments
 (0)