This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch] correctly configure wcwidth in readline


Daniel Jacobowitz <drow at mvista dot com> writes:

|> On Wed, Feb 26, 2003 at 12:44:22PM -0500, Kris Warkentin wrote:
|> > Here's what seems to me to be a more elegant solution.  In aclocal.m4, I
|> > just define the obj as wcwidth.o and then the Makefile will either have it
|> > or not.
|> > 
|> > cheers,
|> 
|> > < AC_CHECK_FUNC(wcwidth, AC_DEFINE(HAVE_WCWIDTH))
|> > ---
|> > > AC_CHECK_FUNC(wcwidth, AC_DEFINE(HAVE_WCWIDTH),
|> > AC_SUBST(WCWIDTH_OBJ,wcwidth.o))
|> 
|> [Always use unified or context diffs, please]
|> 
|> Did you try this on a host with wcwidth?  I don't think it'll work
|> right; I have the feeling that a conditional AC_SUBST can leave
|> @WCWIDTH_OBJ@ in the makefile.

AC_SUBST is a kind of declaration, it's mere existence (as long as it is
expanded by autoconf) causes the variable to be substituted.  Only the
assignment of the value happens at runtime.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab at suse dot de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]