mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04:00
curses detection code was buggy and resulted using termcap instead of
terminfo. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3011 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
3c4111f786
commit
154d25f260
@ -503,6 +503,8 @@ if test "x$want_textui" = "xyes"; then
|
||||
|
||||
TEXTUI_LIBS="$CURSES_LIBS"
|
||||
if test "x$has_curses" = "xtrue"; then
|
||||
old_libs=$LIBS
|
||||
LIBS="$LIBS $CURSES_LIBS"
|
||||
AC_CHECK_FUNC(use_default_colors, AC_DEFINE(HAVE_NCURSES_USE_DEFAULT_COLORS))
|
||||
AC_CHECK_FUNC(idcok, AC_DEFINE(HAVE_CURSES_IDCOK))
|
||||
AC_CHECK_FUNC(resizeterm, AC_DEFINE(HAVE_CURSES_RESIZETERM))
|
||||
@ -510,6 +512,7 @@ if test "x$want_textui" = "xyes"; then
|
||||
AC_CHECK_FUNC(setupterm,, [
|
||||
want_termcap=yes
|
||||
])
|
||||
LIBS=$old_libs
|
||||
else
|
||||
AC_CHECK_LIB(tinfo, setupterm, [
|
||||
TEXTUI_LIBS="-ltinfo"
|
||||
|
Loading…
Reference in New Issue
Block a user