If I'm not wrong, termcap is provided by ncurses package (I'm not sure). Try to install that, and to run configure again.
If I'm not wrong, termcap is provided by ncurses package (I'm not sure). Try to install that, and to run configure again.