Läste lite i INSTALL-filen för irssi, där hitta jag detta, kanske hjälper dig.
If ncurses is installed in a non-standard path you can specify it with
--with-ncurses=/path. If anything else is in non-standard path, you can just
give the paths in CPPFLAGS and LIBS environment variable, eg.: