4a5f0f3a3d
When CMake's own curses logic fails to find curses/ncurses, we fall back to pkg-config and manually link the required libraries. Some platforms (RHEL 6, see #6587) require CURSES_EXTRA_LIBRARY=tinfo, so we link against libtinfo if it's found but are happy to continue without it if it doesn't exist. Closes #6587