summaryrefslogtreecommitdiff
path: root/ext/gettext
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2003-10-01 02:53:23 +0000
committerfoobar <sniper@php.net>2003-10-01 02:53:23 +0000
commitdc080a5db6f31c5d174dc0cc097da509c2533142 (patch)
tree39482ab88773c67f3b569e6e34bdfc02f818aec2 /ext/gettext
parent5b17050a79fff705bc446446d35525d776b78de7 (diff)
downloadphp-git-dc080a5db6f31c5d174dc0cc097da509c2533142.tar.gz
- Always look into /usr/local before /usr
- Added breaks to make sure the preferred value is used.
Diffstat (limited to 'ext/gettext')
-rw-r--r--ext/gettext/config.m46
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/gettext/config.m4 b/ext/gettext/config.m4
index 6cb1dd91c1..23bc9ae6f3 100644
--- a/ext/gettext/config.m4
+++ b/ext/gettext/config.m4
@@ -6,10 +6,8 @@ PHP_ARG_WITH(gettext,for GNU gettext support,
[ --with-gettext[=DIR] Include GNU gettext support.])
if test "$PHP_GETTEXT" != "no"; then
- for i in $PHP_GETTEXT /usr /usr/local; do
- if test -r $i/include/libintl.h; then
- GETTEXT_DIR=$i
- fi
+ for i in $PHP_GETTEXT /usr/local /usr; do
+ test -r $i/include/libintl.h && GETTEXT_DIR=$i && break
done
if test -z "$GETTEXT_DIR"; then