From 958e51dbfb45549ceb4ddfc2515d5ba706bb32fd Mon Sep 17 00:00:00 2001 From: Taylor R Campbell Date: Sun, 8 Aug 2010 02:56:56 +0000 Subject: [PATCH] Move the check for termcap-related headers. This puts the warning messages about emulating termcap or tparm closer to the checks, which makes configure's output make a trifle more sense. --- src/microcode/configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/microcode/configure.ac b/src/microcode/configure.ac index a1364e4e9..b7fb859cf 100644 --- a/src/microcode/configure.ac +++ b/src/microcode/configure.ac @@ -691,6 +691,9 @@ dnl database, we can emulate `tparam' -- either in terms of `tparm' or 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]) @@ -734,9 +737,6 @@ elif test "x${with_termcap}" != xno; then 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]) -- 2.25.1