The AX_WITH_CURSES macro is taken from the autoconf-archive project, available at http://www.gnu.org/software/autoconf-archive/.