bug-autoconf
[Top][All Lists]
Advanced

[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: 08 Mar 2002 12:20:05 +0100

Paul Eggert <address@hidden> writes:

> > From: address@hidden (David Kastrup)
> > Date: 04 Mar 2002 14:18:41 +0100
> > 
> > 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?
> 
> Sorry, no.  I try to avoid diversions myself (not always successfully).
> 
> How about this idea instead.  Write a shell script called "configure"
> that looks like this:
> 
> #! /bin/sh
> eval `(locale) 2>/dev/null | sed '/=$/d; s/^/MY_/'` exec '$0.real' 
> '${1+"address@hidden"'
> 
> and then invoke "autoconf -o configure.real" instead of plain "autoconf".

That would be an idea.  What I currently do is to just call autoconf
in autogen.sh, then check via grep whether my diversion has made it
in.  If it it hasn't, I put out a warning, and call an ed-script that
places the change in the hard way.

That way, with a recent enough autoconf, using autoconf instead of
autogen.sh will not do any harm, while the stuff still works for
older autoconfs.

Not pretty, no, but I guess we have given up about a pretty solution
by now.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum
Email: address@hidden



reply via email to

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