Re: [HACKERS] Why is libcurses added to build by configure?

From: Phil Thompson <phil(at)river-bank(dot)demon(dot)co(dot)uk>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Why is libcurses added to build by configure?
Date: 1998-11-01 10:27:10
Message-ID: 363C377E.51E04880@river-bank.demon.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
>
> Karl Auer <auer(at)kom(dot)id(dot)ethz(dot)ch> writes:
> > psql (at least in 6.3.2) uses curses and readline. I know this because
> > I tried to compile under a SuSE 5.3 distribution.
>
> Hmm. psql does use readline, but there's no direct dependency on
> curses. (I verified this by building without curses; it works, here.)
>
> Perhaps there are some implementations of readline that depend on
> curses? The GNU libreadline I have here appears to use termcap,
> but not curses. There might be other versions though.
>
> I think it would be possible to extend configure to detect which
> library(s) libreadline depends on, and only include those in the link.
> But that's not something to risk at this stage...

readline needs terminfo/termcap. On many Linux systems terminfo support
is in the [n]curses library.

Phil

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter T Mount 1998-11-01 11:30:17 Re: [HACKERS] BETA3...
Previous Message Nick Bastin 1998-10-31 19:33:49 A couple of questions...