Skip to content

Commit 89b1d09

Browse files
committed
gettext patch
1 parent f50297b commit 89b1d09

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/gettext/config.m4

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ PHP_ARG_WITH(gettext,for GNU gettext support,
66
[ --with-gettext[=DIR] Include GNU gettext support])
77

88
if test "$PHP_GETTEXT" != "no"; then
9-
for i in $PHP_GETTEXT /usr/local /usr; do
10-
test -r $i/include/libintl.h && GETTEXT_DIR=$i && break
9+
for i in $PHP_GETTEXT /usr/local /usr /system; do
10+
test -r $i/include/libintl.h && GETTEXT_DIR=$i && GETTEXT_INCDIR=$GETTEXT_DIR/include && break
11+
test -r $i/develop/headers/libintl.h && GETTEXT_DIR=$i && GETTEXT_INCDIR=$GETTEXT_DIR/develop/headers && break
1112
done
1213

1314
if test -z "$GETTEXT_DIR"; then
1415
AC_MSG_ERROR(Cannot locate header file libintl.h)
1516
fi
1617

1718
GETTEXT_LIBDIR=$GETTEXT_DIR/$PHP_LIBDIR
18-
GETTEXT_INCDIR=$GETTEXT_DIR/include
1919

2020
O_LDFLAGS=$LDFLAGS
2121
LDFLAGS="$LDFLAGS -L$GETTEXT_LIBDIR"

0 commit comments

Comments
 (0)