From 364325362d16157732c000e495842d7265abb45d Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Fri, 28 Oct 2011 08:37:30 -0500 Subject: [PATCH] build-sys: we don't need wide-ncurses, what were we thinking? . 1 program uses curses (top) . 2 programs use ncurses (slabtop, watch) . all 3 include non-wide or . those 3 do not currently need wide support . but anticipating nls, we link against libncursesw This patch ensures an environment consistent with current and future ncurses needs. --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index af486553..109cc2c9 100644 --- a/configure.ac +++ b/configure.ac @@ -131,8 +131,8 @@ AC_ARG_WITH([ncurses], if test "x$with_ncurses" = xno; then AM_CONDITIONAL(WITH_NCURSES, false) else - AC_CHECK_LIB(ncurses, initscr, [have_ncurses=yes], [have_ncurses=no]) - AC_CHECK_HEADERS(curses.h ncurses.h, [], [have_ncurses=no], AC_INCLUDES_DEFAULT) + AC_CHECK_LIB(ncursesw, initscr, [have_ncurses=yes], [have_ncurses=no]) + AC_CHECK_HEADERS(curses.h ncurses.h term.h, [], [have_ncurses=no], AC_INCLUDES_DEFAULT) if test "x$have_ncurses" = xno; then AC_MSG_ERROR([ncurses support missing/incomplete (for partial build use --without-ncurses)]) fi