[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: autoconf meddles with LANG and LC_CTYPE
From: |
David Kastrup |
Subject: |
Re: autoconf meddles with LANG and LC_CTYPE |
Date: |
04 Mar 2002 14:18:41 +0100 |
Paul Eggert <address@hidden> writes:
> > From: address@hidden (David Kastrup)
> > Date: 04 Mar 2002 13:04:05 +0100
> >
> > Is there any advice
> > about how to write code that would work across several autoconf
> > versions and that would let me run the tests with the original LANG
> > and LC_CTYPE settings?
>
> You can ask the user to run;
>
> eval `(locale) 2>/dev/null | sed 's/^/AC_ORIGINAL_/'` configure
>
> but admittedly this is a hack.
Not acceptable. People are quite used to
./configure
make
> Autoconf could be modified to squirrel away the previous version of
> LC_LANG etc. into separate variables like AC_ORIGINAL_LC_LANG. But
> that won't help you with older Autoconf releases.
Yes.
> > It is pretty bad if building the version from CVS fails for all but a
> > single autoconf.
>
> Sorry, I don't follow this remark.
Should be more explicit. I currently have in configure.in
AC_DIVERT_PUSH(DEFAULTS)dnl
[MY_LANG=$LANG
MY_LC_CTYPE=$LC_CTYPE]
AC_DIVERT_POP()
but this works only with autoconf 2.53. Previously the diversion was
named AC_DIVERSION_INIT. Do you have any good proposal of how I can
make this check for various names of a suitable diversion and then
use the one that is defined? I am not good with m4 and its ilk.
I would like this to work for a few versions of autoconf at least,
and the name for a suitable diversion has changed over time.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
Email: address@hidden