bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Possible po.m4 bug in gettext-0.16.1.tar.gz po.m4 -- using "--statistics


From: Mark Moriarty
Subject: Possible po.m4 bug in gettext-0.16.1.tar.gz po.m4 -- using "--statistics" to check for msgfmt
Date: Sat, 6 Oct 2007 08:24:14 -0400

I run a Cygwin environment.

Downloading and building gettext-0.16.1 appears to be fine.  I run into a
problem, however, building apps that use it.

Gettext/gettext-runtime/m4/po.m4 appears to be out of date.  The first line
of the file shows: # po.m4 serial 13 (gettext-0.15)

The problem is that checking for msgfmt doesn't work with the po.m4 as-is.
The section that reads:
  dnl Search for GNU msgfmt in the PATH.
  dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions.
  dnl The second test excludes FreeBSD msgfmt.
  AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
    [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep
usage >/dev/null; then exit 1; else exit 0; fi)],
    :)

Doesn't work, at least on Cygwin.  If I replace "--statistics" by "--help"
it succeeds, since "--help" is what returns the word "usage"
(that "grep usage" in the test)

Apologies if this is some Cygwin-specific thing, not of interest to your
group.

Thanks!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]