[MPlayer-dev-eng] [PATCH] bad configure detection for termcap

Rich Felker dalias at aerifal.cx
Sun Dec 25 20:59:18 CET 2005


On Sun, Dec 25, 2005 at 02:07:44PM +0100, Dominik 'Rathann' Mierzejewski wrote:
> On Saturday, 24 December 2005 at 20:58, Oded Shimon wrote:
> > Termcap detection is incomplete, on my system using -lncurses for termcap 
> > also works. If noone speaks up, I'll commit tommorrow.
> > 
> > - ods15
> 
> > Index: configure
> > ===================================================================
> > RCS file: /cvsroot/mplayer/main/configure,v
> > retrieving revision 1.1111
> > diff -u -r1.1111 configure
> > --- configure	14 Dec 2005 21:52:40 -0000	1.1111
> > +++ configure	24 Dec 2005 19:57:42 -0000
> > @@ -3060,10 +3060,10 @@
> >  echocheck "termcap"
> >  if test "$_termcap" = auto ; then
> >    cat > $TMPC <<EOF
> > -int main(void) { return 0; }
> > +int main(void) { tgetent(); return 0; }
> >  EOF
> >    _termcap=no
> > -  for _ld_tmp in "-ltermcap" "-ltinfo" ; do
> > +  for _ld_tmp in "-ltermcap" "-ltinfo" "-lncurses"; do
> 
> I'd prefer to change the detection order, i.e. ncurses first, then fall back
> to tinfo and finally termcap. ncurses and terminfo are superior to the old
> termcap.

Yes. However if users want to use ncurses to provide termcap, they
should not have a separate libtermcap. Ncurses provides full
libtermcap functionality (ln -s libncurses.so libtermcap.so). So I
would assume that if users have both it's for a reason (maybe they
want libtermcap for low bloat?? or prefer termcap database format?)

Rich




More information about the MPlayer-dev-eng mailing list