From: Daiki Ueno Date: Thu, 27 Mar 2014 09:39:01 +0000 (+0900) Subject: tests/autopoint: Check for multiple arguments to AM_GNU_GETTEXT X-Git-Tag: v0.19~126 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3240b5407452196dedb7dab3a2bfa24c1f23ced9;p=thirdparty%2Fgettext.git tests/autopoint: Check for multiple arguments to AM_GNU_GETTEXT --- diff --git a/gettext-tools/tests/ChangeLog b/gettext-tools/tests/ChangeLog index ee6c8e223..2caaa143d 100644 --- a/gettext-tools/tests/ChangeLog +++ b/gettext-tools/tests/ChangeLog @@ -1,3 +1,8 @@ +2014-03-27 Daiki Ueno + + * autopoint-2: Check for the case when multiple arguments are + supplied to AM_GNU_GETTEXT. + 2014-03-26 Daiki Ueno tests: Add tests for autopoint diff --git a/gettext-tools/tests/autopoint-2 b/gettext-tools/tests/autopoint-2 index e90e8d7b4..294765c83 100755 --- a/gettext-tools/tests/autopoint-2 +++ b/gettext-tools/tests/autopoint-2 @@ -103,3 +103,29 @@ test -f gettext-m4/po.m4 || exit 1 test -f po/Makefile.in.in || exit 1 rm -fr gettext-m4 po + +# Check for multiple arguments to AM_GNU_GETTEXT +# +cat <configure.ac +AC_INIT +AC_CONFIG_SRCDIR(hello.c) + +AC_PROG_CC +AM_GNU_GETTEXT([external], [need-formatstring-macros]) +AM_GNU_GETTEXT_VERSION([$required_gettext_version]) + +AC_CONFIG_FILES([Makefile]) +AC_CONFIG_FILES([po/Makefile.in]) +AC_OUTPUT +EOF + +$gettext_dir/autopoint >/dev/null 2>/dev/null || exit 1 + +test ! -d intl || exit 1 +test -d m4 || exit 1 +test -d po || exit 1 + +test -f m4/po.m4 || exit 1 +test -f po/Makefile.in.in || exit 1 + +rm -fr m4 po