Lost your login?
ncurses can be provided as one, ncurses, or as two libraries: ncurses and
tinfo. Configure will not detect ncurses in the later case.
If explicitly requesting ncurses with with-ncurses it will fail to link
with tinfo and the build fails.