diff -burN tcsh-6.20.00.orig/configure tcsh-6.20.00/configure --- tcsh-6.20.00.orig/configure 2016-11-24 18:06:40.000000000 +0300 +++ tcsh-6.20.00/configure 2017-07-20 11:35:23.852107180 +0300 @@ -4284,7 +4284,7 @@ return 0; } _ACEOF -for ac_lib in '' termlib termcap curses ncurses; do +for ac_lib in '' tinfo curses ncurses; do if test -z "$ac_lib"; then ac_res="none required" else diff -burN tcsh-6.20.00.orig/configure.ac tcsh-6.20.00/configure.ac --- tcsh-6.20.00.orig/configure.ac 2016-11-24 18:04:52.000000000 +0300 +++ tcsh-6.20.00/configure.ac 2017-07-20 11:34:56.021629545 +0300 @@ -317,7 +317,7 @@ dnl Checks for libraries AC_SEARCH_LIBS(crypt, crypt) AC_SEARCH_LIBS(getspnam, sec) -AC_SEARCH_LIBS([tgetent], [termlib termcap curses ncurses], [], [ +AC_SEARCH_LIBS([tgetent], [tinfo curses ncurses], [], [ AC_MSG_ERROR([unable to find the tgetent() function]) ]) AC_SEARCH_LIBS(gethostbyname, nsl)