summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.in10
-rw-r--r--src/fe-text/Makefile.am3
2 files changed, 8 insertions, 5 deletions
diff --git a/configure.in b/configure.in
index 6fedad44..ebd9289e 100644
--- a/configure.in
+++ b/configure.in
@@ -510,7 +510,7 @@ dnl **
if test "x$want_textui" = "xyes"; then
AC_CHECK_CURSES
- LIBS="$LIBS $CURSES_LIBS"
+ TEXTUI_LIBS="$CURSES_LIBS"
if test "x$has_curses" = "xtrue"; then
AC_CHECK_FUNC(use_default_colors, AC_DEFINE(HAVE_NCURSES_USE_DEFAULT_COLORS))
AC_CHECK_FUNC(idcok, AC_DEFINE(HAVE_CURSES_IDCOK))
@@ -521,19 +521,21 @@ if test "x$want_textui" = "xyes"; then
])
else
AC_CHECK_LIB(tinfo, setupterm, [
- LIBS="$LIBS -ltinfo"
+ TEXTUI_LIBS="-ltinfo"
want_terminfo=yes
], AC_CHECK_LIB(termlib, tgetent, [
- LIBS="$LIBS -ltermlib"
+ TEXTUI_LIBS="-ltermlib"
want_termcap=yes
], AC_CHECK_LIB(termcap, tgetent, [
- LIBS="$LIBS -ltermcap"
+ TEXTUI_LIBS="-ltermcap"
want_termcap=yes
], [
AC_ERROR(Terminfo/termcap not found - install ncurses-devel package)
want_textui=no
])))
fi
+ AC_SUBST(TEXTUI_LIBS)
+
if test "x$want_termcap" = "xyes"; then
AC_CHECK_FUNC(tparm,, need_tparm=yes)
else
diff --git a/src/fe-text/Makefile.am b/src/fe-text/Makefile.am
index 4b98f7da..68bf7169 100644
--- a/src/fe-text/Makefile.am
+++ b/src/fe-text/Makefile.am
@@ -20,7 +20,8 @@ irssi_LDADD = \
@PERL_LINK_LIBS@ \
@PERL_FE_LINK_LIBS@ \
@PERL_LINK_FLAGS@ \
- @PROG_LIBS@
+ @PROG_LIBS@ \
+ @TEXTUI_LIBS@
tparm_sources = \
tparm.c