Outdated ncurses check breaking configure on some systems
Ncurses should be checked via pkg-config (at least as the first choice, potentially leaving the existing stuff as fallback), so that it works correctly. The problem is that if ncurses is built with tinfo, some symbols move into that library, including tgetent, which genius uses, thus it will fail to link configure test and bails out, as there is no -ltinfo passed. Simply using modern pkg-config stuff avoids the issue.
See also: