On systems without curses headers/libs, support for interactive
cli tools is deactivated and a message is shown which claims that
readline depends on the curses library. This is not true: readline
uses the termcap functions, but does not link with the termcap or
curses library itself. Applications must choose an appropriate
library that provides these functions.
This change should enable readline support on systems that have
libtermcap but no curses library.
AC_MSG_WARN([readline/readline.h not found, $msg])
])
-if test "$have_curses" != "yes"; then
- have_readline="no"
- AC_MSG_WARN([interactive cli support depends on curses,])
- AC_MSG_WARN([but no curses lib was detected, $msg])
-fi
-
if test "$have_readline" = "yes"; then
readline_ldflags="$readline_libs -lreadline"
AC_SEARCH_LIBS([rl_free_keymap], [readline], [], [have_readline="no"])