Displaying 1 result from an estimated 1 matches for "has_readline".
2002 Jul 01
3
patch: readline support for sftp
...-477,6 +479,51 @@
]
)
+# Check for readline support
+READLINE="no"
+AC_ARG_WITH(readline,
+ [ --with-readline Enable redline support],
+ [
+ if test "x$withval" == "xyes" ; then
+ AC_CHECK_HEADERS(readline/readline.h readline/history.h,
+ AC_DEFINE(HAS_READLINE, 1, [If defined sftp uses readline library for user input.]),
+ [AC_MSG_RESULT(no)
+ AC_MSG_ERROR([** Cannot locate readline include files])
+ ])
+
+ SFTPLIB="-lreadline"
+ AC_CHECK_LIB(ncurses, tputs, SFTPLIB="-lncurses $SFTPLIB" ,
+ [AC_CHECK_LIB(curses, tputs...