This puts the warning messages about emulating termcap or tparm
closer to the checks, which makes configure's output make a trifle
more sense.
dnl by pretending we know the format -- without bringing in the local
dnl termcap reimplementation.
+dnl Go for whatever header files we can.
+AC_CHECK_HEADERS([ncurses.h curses.h term.h])
+
if test "x${with_termcap}" = xyes; then
AC_CHECK_LIB([ncurses], [tgetent], [have_ncurses=yes])
fi
-dnl Go for whatever header files we can.
-AC_CHECK_HEADERS([ncurses.h curses.h term.h])
-
case "${with_termcap}" in
yes)
AC_MSG_WARN([No termcap library found; will emulate it])