Support editline instead of readline

Support editline as an alternative to readline.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin 2008-08-09 21:14:45 -07:00
parent 740871b0f5
commit a1dfd6baf8

View file

@ -224,7 +224,7 @@ dnl These libraries apply to the client only
dnl dnl
AH_TEMPLATE([WITH_READLINE], AH_TEMPLATE([WITH_READLINE],
[Define if we are compiling with readline command-line editing.]) [Define if we are compiling with readline/editline command-line editing.])
PA_WITH_BOOL(readline, 1, PA_WITH_BOOL(readline, 1,
[ --without-readline disable the use of readline command-line editing], [ --without-readline disable the use of readline command-line editing],
@ -235,13 +235,17 @@ PA_WITH_BOOL(readline, 1,
AC_SEARCH_LIBS(tputs, [termcap terminfo]) AC_SEARCH_LIBS(tputs, [termcap terminfo])
AC_SEARCH_LIBS(readline, [readline history], AC_SEARCH_LIBS(readline, [readline history],
[ [AC_DEFINE(WITH_READLINE)])
AC_DEFINE(WITH_READLINE)
],
[],
[-ltermcap])
AC_CHECK_HEADERS(readline/history.h) AC_CHECK_HEADERS(readline/history.h)
]) ],
[AC_CHECK_HEADER(editline/readline.h,
[
dnl editline may need libtermcap or somesuch...
AC_SEARCH_LIBS(tputs, [termcap terminfo])
AC_SEARCH_LIBS(editline, [edit],
[AC_DEFINE(WITH_READLINE)])
])])
],:) ],:)
TFTP_LIBS="$LIBS $XTRALIBS" TFTP_LIBS="$LIBS $XTRALIBS"