50
50
AC_DEFUN ( PHP_GD_JPEG ,[
51
51
if test "$PHP_JPEG_DIR" != "no"; then
52
52
53
- for i in /usr /usr/local $PHP_JPEG_DIR ; do
53
+ for i in $PHP_JPEG_DIR /usr /usr/local; do
54
54
test -f $i/lib/libjpeg.$SHLIB_SUFFIX_NAME -o -f $i/lib/libjpeg.a && GD_JPEG_DIR=$i
55
55
done
56
56
@@ -75,7 +75,7 @@ AC_DEFUN(PHP_GD_JPEG,[
75
75
AC_DEFUN ( PHP_GD_PNG ,[
76
76
if test "$PHP_PNG_DIR" != "no"; then
77
77
78
- for i in /usr /usr/local $PHP_PNG_DIR ; do
78
+ for i in $PHP_PNG_DIR /usr /usr/local; do
79
79
test -f $i/lib/libpng.$SHLIB_SUFFIX_NAME -o -f $i/lib/libpng.a && GD_PNG_DIR=$i
80
80
done
81
81
@@ -110,7 +110,7 @@ AC_DEFUN(PHP_GD_PNG,[
110
110
AC_DEFUN ( PHP_GD_XPM ,[
111
111
if test "$PHP_XPM_DIR" != "no"; then
112
112
113
- for i in /usr /usr/local /usr/X11R6 $PHP_XPM_DIR ; do
113
+ for i in $PHP_XPM_DIR /usr /usr/local /usr/X11R6; do
114
114
test -f $i/lib/libXpm.$SHLIB_SUFFIX_NAME -o -f $i/lib/libXpm.a && GD_XPM_DIR=$i
115
115
done
116
116
@@ -145,7 +145,7 @@ AC_DEFUN(PHP_GD_FREETYPE1,[
145
145
if test "$PHP_TTF" != "no"; then
146
146
if test "$PHP_FREETYPE_DIR" = "no" -o "$PHP_FREETYPE_DIR" = ""; then
147
147
if test -n "$PHP_TTF" ; then
148
- for i in /usr /usr/local $PHP_TTF ; do
148
+ for i in $PHP_TTF /usr /usr/local; do
149
149
if test -f "$i/include/freetype.h" ; then
150
150
TTF_DIR=$i
151
151
unset TTF_INC_DIR
@@ -178,7 +178,7 @@ AC_DEFUN(PHP_GD_FREETYPE1,[
178
178
AC_DEFUN ( PHP_GD_FREETYPE2 ,[
179
179
if test "$PHP_FREETYPE_DIR" != "no"; then
180
180
181
- for i in /usr /usr/local $PHP_FREETYPE_DIR ; do
181
+ for i in $PHP_FREETYPE_DIR /usr /usr/local; do
182
182
if test -f "$i/include/freetype2/freetype/freetype.h"; then
183
183
FREETYPE2_DIR=$i
184
184
FREETYPE2_INC_DIR=$i/include/freetype2
@@ -202,7 +202,7 @@ AC_DEFUN(PHP_GD_FREETYPE2,[
202
202
AC_DEFUN ( PHP_GD_T1LIB ,[
203
203
if test "$PHP_T1LIB" != "no"; then
204
204
205
- for i in /usr /usr/local $PHP_T1LIB ; do
205
+ for i in $PHP_T1LIB /usr /usr/local; do
206
206
test -f "$i/include/t1lib.h" && GD_T1_DIR=$i
207
207
done
208
208
0 commit comments