autoconf
[Top][All Lists]
Advanced

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

Re: Need help with autoconf configure script


From: Andreas Schwab
Subject: Re: Need help with autoconf configure script
Date: Wed, 13 Jul 2005 11:02:48 +0200
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux)

Bob Rossi <address@hidden> writes:

> On Wed, Jul 13, 2005 at 12:04:27AM +0200, Andreas Schwab wrote:
>> Bob Rossi <address@hidden> writes:
>> 
>> > If I run ./configure then by default opt_with_readline_prefix is "no".
>> > During ../cgdb/configure I get,
>> >    checking pty.h usability... yes
>> >    checking pty.h presence... no
>> >    configure: WARNING: pty.h: accepted by the compiler, rejected by the 
>> > preprocessor!
>> >    configure: WARNING: pty.h: proceeding with the compiler's result
>> >    checking for pty.h... yes
>> > so I get error's when VL_LIB_READLINE is *not* run.
>> 
>> Please check config.log for the actual preprocessor error you get.
>> Without that it is impossible to guess what's going on.
>
> Thanks for the response Andreas. The attached is the diff between when
> the config.log that works and doesn't work.

That's the old AC_REQUIRE problem.  VL_LIB_READLINE is probably the first
macro requiring the AC_PROG_CPP framework, but since all of this is
skipped when $vl_cv_lib_readline is no, the expansion from that macro is
never executed, and many of the internal autoconf variables remain unset.
Workaround: Put AC_PROG_CPP somewhere before this block.

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

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