* configure.in: When checking for ncurses, check for

has_colors(), not curses_version() - the later is missing in
older version of ncurses.
This commit is contained in:
Pavel Roskin 2002-07-15 05:16:51 +00:00
parent 1517700adf
commit 7db8a05550
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2002-07-15 Pavel Roskin <proski@gnu.org>
* configure.in: When checking for ncurses, check for
has_colors(), not curses_version() - the later is missing in
older version of ncurses.
2002-07-13 Pavel Roskin <proski@gnu.org>
* acinclude.m4 (AC_EXT2_UNDEL): Add ext2fs libraries to MC_LIBS,

View File

@ -342,7 +342,7 @@ AC_ARG_WITH(ncurses,
fi
dnl curses_version is specific to ncurses, it's not in old curses
AC_CHECK_LIB(ncurses, curses_version, [MCLIBS="$MCLIBS -lncurses"],
AC_CHECK_LIB(ncurses, has_colors, [MCLIBS="$MCLIBS -lncurses"],
[AC_MSG_ERROR([Could not find ncurses library])])
screen_type="ncurses"