From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17277 invoked from network); 8 May 2001 14:36:27 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 8 May 2001 14:36:27 -0000 Received: (qmail 16837 invoked by alias); 8 May 2001 14:36:17 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 14261 Received: (qmail 16819 invoked from network); 8 May 2001 14:36:16 -0000 From: "Bart Schaefer" Message-Id: <1010508143543.ZM29748@candle.brasslantern.com> Date: Tue, 8 May 2001 14:35:43 +0000 In-Reply-To: Comments: In reply to Peter Stephenson "Termcap saga again" (May 8, 10:36am) References: X-Mailer: Z-Mail (5.0.0 30July97) To: Peter Stephenson , zsh-workers@sunsite.dk (Zsh hackers list) Subject: Re: Termcap saga again MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On May 8, 10:36am, Peter Stephenson wrote: } Subject: Termcap saga again } } It seems HAVE_CURSES_H isn't getting defined --- it's generating warnings } about redefined macros, is this enough to stop configure recognising it? Is it HAVE_CURSES_H that's not defined, or is it TERM_H_NEEDS_CURSES_H ? It's that dang GCC overoptimization again, I'll wager. Index: configure.in =================================================================== RCS file: /extra/cvsroot/zsh/zsh-4.0/configure.in,v retrieving revision 1.7 diff -c -r1.7 configure.in --- configure.in 2001/05/02 16:59:00 1.7 +++ configure.in 2001/05/08 14:33:52 @@ -566,11 +566,11 @@ if test x$ac_cv_header_term_h = xyes; then AC_MSG_CHECKING(if term.h needs curses.h) -AC_TRY_COMPILE([#include ], [char **test = boolcodes;], boolcodes_with_only_term_h=yes, -boolcodes_with_only_term_h=no) +AC_TRY_COMPILE([#include ], [char **test = boolcodes; printf(*test);], +boolcodes_with_only_term_h=yes, boolcodes_with_only_term_h=no) AC_TRY_COMPILE([#include -#include ], [char **test = boolcodes;], boolcodes_with_curses_h_and_term_h=yes, -boolcodes_with_curses_h_and_term_h=no) +#include ], [char **test = boolcodes; printf(*test);], +boolcodes_with_curses_h_and_term_h=yes, boolcodes_with_curses_h_and_term_h=no) if test "x$boolcodes_with_curses_h_and_term_h" = xyes && test "x$boolcodes_with_only_term_h" = xno; then AC_DEFINE(TERM_H_NEEDS_CURSES_H) -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net