This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: po/POTFILES.in doesn't exist
- To: Alexandre Oliva <aoliva at redhat dot com>
- Subject: Re: po/POTFILES.in doesn't exist
- From: Alan Modra <amodra at bigpond dot net dot au>
- Date: Wed, 3 Oct 2001 11:14:35 +0930
- Cc: Andrew Cagney <ac131313 at cygnus dot com>, Daniel Jacobowitz <drow at mvista dot com>, Eli Zaretskii <eliz at is dot elta dot co dot il>, gdb at sources dot redhat dot com, binutils at sources dot redhat dot com
- References: <Pine.SUN.3.91.1010729143812.3073B-100000@is> <3B707412.9080906@cygnus.com> <20010807161144.A28818@nevyn.them.org> <3BB2AC9A.1080306@cygnus.com> <20011002232138.L1019@bubble.sa.bigpond.net.au> <oritdxve64.fsf@free.redhat.lsd.ic.unicamp.br>
On Tue, Oct 02, 2001 at 08:02:27PM -0300, Alexandre Oliva wrote:
> On Oct 2, 2001, Alan Modra <amodra@bigpond.net.au> wrote:
>
> >> > checking for xgettext... (cached) /usr/bin/xgettext
> >> > ./configure: ./po/POTFILES.in: No such file or directory
>
> > This tweak should fix it.
>
> > * gettext.m4: Test po/POTFILES.in exists before trying to read.
>
> > Anybody have any objections to installing this?
>
> Erhm... IIRC, this file is imported from the GNU gettext
> distribution, so I'd rather not needlessly diverge. Anyway, what's
> the point of having a `po' directory if it doesn't contain
> POTFILES.in?
bfd/po is a little unusual in that is has SRC-POTFILES.in and
BLD-POTFILES.in rather than plain POTFILES.in. The bug has already
been fixed in getttext-0.10.40, and as far as diverging goes, it
looks like our gettext.m4 is very old (serial 3 vs. serial 10).
I'm applying this simpler patch. I realised the -d test was redundant
10 seconds after sending my last email. :-(
Index: gettext.m4
===================================================================
RCS file: /cvs/src/src/gettext.m4,v
retrieving revision 1.1
diff -u -p -r1.1 gettext.m4
--- gettext.m4 2000/08/31 09:25:11 1.1
+++ gettext.m4 2001/10/03 01:15:56
@@ -256,8 +256,8 @@ __argz_count __argz_stringify __argz_nex
dnl Generate list of files to be processed by xgettext which will
dnl be included in po/Makefile. But only do this if the po directory
- dnl exists in srcdir.
- if test -d $srcdir/po; then
+ dnl exists in srcdir and contains POTFILES.in.
+ if test -f $srcdir/po/POTFILES.in; then
test -d po || mkdir po
if test "x$srcdir" != "x."; then
if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then