summaryrefslogtreecommitdiff
path: root/text-utils
diff options
context:
space:
mode:
authorArkadiusz Miskiewicz <arekm@maven.pl>2007-06-19 20:58:04 +0200
committerKarel Zak <kzak@redhat.com>2007-07-02 16:26:20 +0200
commit46e711180f6c7ef6b52373438a4bf0cecb7c646c (patch)
treec3395a25031fde6f0a4ee1bbf6fe14858fde58ca /text-utils
parenta6f628832a1e6292cfdf9074ba32ba8cd21f899d (diff)
downloadutil-linux-46e711180f6c7ef6b52373438a4bf0cecb7c646c.tar.gz
build-sys: fix linking when ncurses is built with --with-termlib=tinfo
When system ncurses is built with --with-termlib=tinfo option then there are two libraries - libtinfo (which contains terminal related functions) and libncurses (rest). Correctly link against libtinfo in such case. Signed-off-by: Arkadiusz Miskiewicz <arekm@maven.pl>
Diffstat (limited to 'text-utils')
-rw-r--r--text-utils/Makefile.am6
1 files changed, 6 insertions, 0 deletions
diff --git a/text-utils/Makefile.am b/text-utils/Makefile.am
index 9ec071df..7c9e9064 100644
--- a/text-utils/Makefile.am
+++ b/text-utils/Makefile.am
@@ -12,9 +12,15 @@ man_MANS = col.1 colcrt.1 colrm.1 column.1 hexdump.1 rev.1 line.1 tailf.1
if HAVE_NCURSES
bin_PROGRAMS = more
usrbinexec_PROGRAMS += ul pg
+if HAVE_TINFO
+more_LDADD = -ltinfo
+pg_LDADD = -ltinfo -lncurses
+ul_LDADD = -ltinfo
+else
more_LDADD = -lncurses
pg_LDADD = -lncurses
ul_LDADD = -lncurses
+endif
man_MANS += ul.1 more.1 pg.1
else
if HAVE_TERMCAP