]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
php versions without gettext built-in cannot pass the test.
authorBruno Haible <bruno@clisp.org>
Fri, 9 Jun 2006 20:26:31 +0000 (20:26 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:13:22 +0000 (12:13 +0200)
gettext-tools/tests/ChangeLog
gettext-tools/tests/lang-php

index aa6b6e545c0569910a138b76e0047d1396d1b602..23e465f5e356c2cde2bd8ad19581d6b8e754b0b8 100644 (file)
@@ -1,3 +1,8 @@
+2006-06-04  Bruno Haible  <bruno@clisp.org>
+
+       * lang-php: Skip the test if php does not have the 'gettext' module
+       built-in.
+
 2006-06-04  Bruno Haible  <bruno@clisp.org>
 
        * lang-gawk: Require gawk-3.1.3 or newer.
index a42f944b78023d989e59f0e1f3e0fd8932c0e500..992c19200a22a47610a041d4082a9c6256d106a3 100755 (executable)
@@ -65,7 +65,7 @@ test -d fr/LC_MESSAGES || mkdir fr/LC_MESSAGES
 : ${MSGFMT=msgfmt}
 ${MSGFMT} -o fr/LC_MESSAGES/prog.mo fr.po
 
-# Test for presence of php version 4.0 or newer.
+# Test for presence of php version 4.0 or newer with gettext support.
 (php -v) >/dev/null 2>/dev/null
 test $? -le 1 \
   || { echo "Skipping test: php not found"; rm -fr $tmpfiles; exit 77; }
@@ -73,6 +73,10 @@ case `php -v | sed -n -e 1p | sed -e 's/^[^0-9]*//'` in
   [4-9].*) ;;
   *) echo "Skipping test: php version too old"; rm -fr $tmpfiles; exit 77;;
 esac
+{ php -m | grep '^gettext$' >/dev/null; } \
+  || { echo "Skipping test: php was built without gettext support"
+       rm -fr $tmpfiles; exit 77
+     }
 
 # Test which of the fr_FR locales are installed.
 : ${LOCALE_FR=fr_FR}