[cvs-nhc98] Add config test for -lncurses in addition to -lreadline.