Bob Rossi <[EMAIL PROTECTED]> writes: > On Wed, Jul 13, 2005 at 12:04:27AM +0200, Andreas Schwab wrote: >> Bob Rossi <[EMAIL PROTECTED]> 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, [EMAIL PROTECTED] 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." _______________________________________________ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org/mailman/listinfo/autoconf