i do a ./configure after un-tarring the archive and get the following ..

checking whether to use use tgetent or setupterm... setupterm
checking for setupterm in -lncurses... no
checking for setupterm in -lcurses... no
checking for tgetent in -ltinfo... no
checking for tgetent in -lmytinfo... no
checking for setupterm in -ltinfo... no
configure: WARNING: cannot find setupterm - trying tgetent
checking for tgetent in -ltermlib... no
checking for tgetent in -ltermcap... no
checking for tgetent in -lcurses... no
configure: error: cannot find setupterm or tgetent


how do i fix this, i am currently using Debian 4.0