+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.
: ${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; }
[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}