From fadce3f1b25b55d5f22be0d26db1ae2a53018255 Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Sat, 29 Oct 2011 16:52:46 -0500 Subject: [PATCH] build-sys: a minimialst approach to ncurses . 3 pgms require non-wide or This patch represents the tests for a minimal environment consistent with current ncurses needs. It should allow a successful configure and build --- configure.ac | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index 8dffeb0b..58f8529a 100644 --- a/configure.ac +++ b/configure.ac @@ -100,15 +100,13 @@ AC_ARG_WITH([ncurses], if test "x$with_ncurses" = xno; then AM_CONDITIONAL(WITH_NCURSES, false) else - AC_CHECK_LIB(ncursesw, initscr, [have_ncurses=yes], [have_ncurses=no]) - AC_CHECK_HEADERS(curses.h, [], [have_ncurses=no]) - AC_CHECK_HEADERS(ncurses.h, [], [have_ncurses=no]) - AC_CHECK_HEADERS(ncursesw/ncurses.h, [], [have_ncurses=no]) + AC_CHECK_LIB(ncurses, initscr, [have_ncurses=yes], [have_ncurses=no]) + AC_CHECK_HEADERS(curses.h ncurses.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 AM_CONDITIONAL(WITH_NCURSES, true) - NCURSES_LIBS="-lncursesw" + NCURSES_LIBS="-lncurses" fi AC_SUBST([NCURSES_LIBS])