summaryrefslogtreecommitdiff
path: root/misc-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 /misc-utils
parenta6f628832a1e6292cfdf9074ba32ba8cd21f899d (diff)
downloadutil-linux-old-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 'misc-utils')
-rw-r--r--misc-utils/Makefile.am8
1 files changed, 8 insertions, 0 deletions
diff --git a/misc-utils/Makefile.am b/misc-utils/Makefile.am
index 30836706..a9ea5ef4 100644
--- a/misc-utils/Makefile.am
+++ b/misc-utils/Makefile.am
@@ -17,6 +17,9 @@ CLEANFILES = chkdupexe scriptreplay
man_MANS = cal.1 chkdupexe.1 ddate.1 logger.1 look.1 mcookie.1 \
namei.1 script.1 whereis.1 scriptreplay.1
+if HAVE_TINFO
+cal_LDADD = -ltinfo -lncurses
+else
if HAVE_NCURSES
cal_LDADD = -lncurses
else
@@ -24,6 +27,7 @@ if HAVE_TERMCAP
cal_LDADD = -ltermcap
endif
endif
+endif
if HAVE_UTIL
script_LDADD = -lutil
@@ -32,8 +36,12 @@ endif
if HAVE_NCURSES
usrbinexec_PROGRAMS += setterm
man_MANS += setterm.1
+if HAVE_TINFO
+setterm_LDADD = -ltinfo
+else
setterm_LDADD = -lncurses
endif
+endif
if BUILD_KILL
bin_PROGRAMS += kill