From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12450 invoked from network); 4 Dec 2000 17:27:48 -0000 Received: from sunsite.dk (HELO sunsite.auc.dk) (130.225.51.30) by ns1.primenet.com.au with SMTP; 4 Dec 2000 17:27:48 -0000 Received: (qmail 7447 invoked by alias); 4 Dec 2000 17:27:31 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 13225 Received: (qmail 7432 invoked from network); 4 Dec 2000 17:27:28 -0000 From: "Bart Schaefer" Message-Id: <1001204172718.ZM19960@candle.brasslantern.com> Date: Mon, 4 Dec 2000 17:27:18 +0000 In-Reply-To: <0G5100AE1ZGG5J@la-la.cambridgesiliconradio.com> Comments: In reply to Peter Stephenson "Re: PATCH: termcap/terminfo support in modules" (Dec 4, 5:05pm) References: <0G5100AE1ZGG5J@la-la.cambridgesiliconradio.com> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.auc.dk (Zsh hackers list) Subject: Re: PATCH: termcap/terminfo support in modules MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Dec 4, 5:05pm, Peter Stephenson wrote: } Subject: Re: PATCH: termcap/terminfo support in modules } } > We could just make the terminfo module not be built if tiget* are undefined. It's not that they're not defined, they're just not in a library that configure is testing for. Or rather, configure is not testing for those functions in particular, even though it does test for -lcurses. Other random things I noticed: Indentation is really messed up in terminfo.c, starting at about line 52. `man curs_terminfo' on my system says that strings returned by tigetstr() et al. should always be output using tputs(), but terminfo.c outputs them with printf(). `man curs_terminfo' also implies that setupterm() must be called before using any of the other terminfo functions. THere also may be a conflict on global variables named `lines' and `columns' but maybe that's already been dealt with as I know zsh does link with curses on some OSs. } Add a configure test and test it in the `link=...' line in terminfo.mdd. } } link='if test "x$ac_cv_have_tiget" = xyes; then echo either; else echo no; fi' That's pretty spiffy. -- 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