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

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

[gettext] Re: gettext development?


From: Bruno Haible
Subject: [gettext] Re: gettext development?
Date: Mon, 30 Apr 2001 18:08:58 +0200 (CEST)

Jean-Marc Lasgouttes wrote on 1999-10-18:

> 1/ [reported by one of our users] The following snippet from
> AM_GNU_GETTEXT does not work with BSDI sh:
>
>        AC_MSG_CHECKING(for catalogs to be installed)
>        NEW_LINGUAS=
>        for lang in ${LINGUAS=$ALL_LINGUAS}; do
>          case "$ALL_LINGUAS" in
>           *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
>          esac
>        done
>        LINGUAS=$NEW_LINGUAS
>        AC_MSG_RESULT($LINGUAS)
>
> The problem seems to be that ${LINGUAS=$ALL_LINGUAS} is evaluated
> several times in the for loop and leads to strange results in the
> LINGUAS variable.

If BSDI has a /bin/sh bug, report it to BSDI. (Now to WindRiver.)
FreeBSD /bin/sh had the same bug, and I reported it, and they fixed it a
year later.

> 2/ In our package, we generate config.h in src/ and of course, this is
> not found by the makefiles in intl/ by default. Is there a way to make
> this automatic (maybe via a parameter to AM_GNU_GETTEXT)

No, there isn't. But you can move intl/ down to src/intl/.

> 3/ The following diff-like changes have to be applied to
> po/Makefile.in.in in order to work on some non-gnu make programs
> (sorry it is not a proper diff, but I have made some other changes to
> the file and want to review them first):
>
> -all-yes: cat-id-tbl.c $(CATALOGS)
> +all-yes: $(srcdir)/cat-id-tbl.c $(CATALOGS)
>
> This is needed when building outside of the source tree.

The non-GNU make programs that you mention don't support VPATH correctly.
With these you must use "./configure", there is no workaround.

Bruno



reply via email to

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