From ee70c8339c04701a6f8d70f4278b6e2f181b9380 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Thu, 30 Mar 2017 00:35:13 +0200 Subject: [PATCH] Followup to #7: Check also for terminfo, requested by @rofl0r Signed-off-by: Joachim Nilsson --- configure.ac | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index af9f50a..6a4db4c 100644 --- a/configure.ac +++ b/configure.ac @@ -70,11 +70,13 @@ AC_ARG_ENABLE(termcap, # Check for a termcap compatible library if enabled AS_IF([test "x$enable_termcap" = "xyes"], AC_DEFINE([CONFIG_USE_TERMCAP], 1, [Define to use the termcap library for terminal size.]) - AC_CHECK_LIB(termcap, tgetent, , [ - AC_CHECK_LIB(tinfo, tgetent, , [ - AC_CHECK_LIB(curses, tgetent, , [ - AC_CHECK_LIB(ncurses, tgetent, , [ - AC_MSG_ERROR([Cannot find a termcap capable library, try installing Ncurses.])]) + AC_CHECK_LIB(terminfo, tgetent, , [ + AC_CHECK_LIB(termcap, tgetent, , [ + AC_CHECK_LIB(tinfo, tgetent, , [ + AC_CHECK_LIB(curses, tgetent, , [ + AC_CHECK_LIB(ncurses, tgetent, , [ + AC_MSG_ERROR([Cannot find a termcap capable library, try installing Ncurses.])]) + ]) ]) ]) ]))