From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3865 invoked from network); 9 May 2001 05:19:26 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 9 May 2001 05:19:26 -0000 Received: (qmail 22065 invoked by alias); 9 May 2001 05:19:22 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 14273 Received: (qmail 22054 invoked from network); 9 May 2001 05:19:21 -0000 X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer goliath.siemens.de) Date: Wed, 9 May 2001 09:19:17 +0400 (MSD) From: Andrej Borsenkow X-X-Sender: To: Zsh hackers list Subject: Re: Termcap saga again In-Reply-To: <1010509050330.ZM15052@candle.brasslantern.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Wed, 9 May 2001, Bart Schaefer wrote: > On May 8, 7:25pm, Peter Stephenson wrote: > } Subject: Re: Termcap saga again > } > } In that case I shall commit the following. > > Unfortunately, that has now broken my build on RedHat 5.2 and 6.2. It > appears that AC_CACHE_CHECK does *nothing* when ac_cv_header_curses_h > is already set, so the AC_DEFINE(HAVE_CURSES_H) never happens. In > short, this patch works only if you configure from scratch without using > a cache. > Works as designed :-) You are expected to test the value of cache variable *after* AC_CACHE_CHECK if you need to take appropriate action. Anything inside AC_CACHE_CHECK shuld do just that - check and set value of cache variable. -andrej