gtx: link against libtinfo if termlib is seperated 60/12760/4
authorMichael Laß <lass@mail.uni-paderborn.de>
Thu, 2 Nov 2017 20:16:49 +0000 (21:16 +0100)
committerBenjamin Kaduk <kaduk@mit.edu>
Tue, 7 Nov 2017 01:17:41 +0000 (20:17 -0500)
commit311f1d28a2f626350b33ad432e674055b62511bd
treec2671d13f41ac5835c19bef1733838c355b99d6b
parente0c5ada214596d5adb6798682d5e280cc99f447c
gtx: link against libtinfo if termlib is seperated

If ncurses is built with "./configure --with-termlib=tinfo", gtx fails
to link because of an undefined reference to the LINES symbol which is
then provided by libtinfo.so and not libncurses.so.

If ncurses is present, additionally check whether LINES is provided by
ncurses or tinfo and set $LIB_curses accordingly.

This change is based on a patch provided by Bastian Beischer.

FIXES 134420

Change-Id: I3e29c61405d90d0b850bafe4c51125bef433452b
Reviewed-on: https://gerrit.openafs.org/12760
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
src/cf/curses.m4