From: Andre Noll Date: Sun, 1 Dec 2013 11:11:46 +0000 (+0100) Subject: build: Don't insist on curses for CLI support. X-Git-Tag: v0.5.1~1^2~2 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=185c678ccd84e5664aee84f179e88e1bca7bf7d7;p=paraslash.git build: Don't insist on curses for CLI support. 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. --- diff --git a/configure.ac b/configure.ac index 4dd5c6da..36eab114 100644 --- a/configure.ac +++ b/configure.ac @@ -727,12 +727,6 @@ AC_CHECK_HEADERS([readline/readline.h], [ 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"])