if test $mdw_cv_lib_newwin != no; then
AC_CHECK_HEADERS([ncurses.h ncurses/ncurses.h curses.h], [break])
if test "$ac_cv_header_ncurses_h" = "no" &&
test "$ac_cv_header_ncurses_ncurses_h" = "no" &&
test "$ac_cv_header_curses_h" = "no"; then
AC_MSG_WARN([couldn't find a \`curses' header. Assuming \`curses.h'.])
if test $mdw_cv_lib_newwin != no; then
AC_CHECK_HEADERS([ncurses.h ncurses/ncurses.h curses.h], [break])
if test "$ac_cv_header_ncurses_h" = "no" &&
test "$ac_cv_header_ncurses_ncurses_h" = "no" &&
test "$ac_cv_header_curses_h" = "no"; then
AC_MSG_WARN([couldn't find a \`curses' header. Assuming \`curses.h'.])