tftp: make the editline fallback work with libedit
The editline branch in configure.ac searches -ledit for a function
called editline(), which libedit does not have, so the check always
fails and the client is silently built without line editing.
Search for readline() instead, which libedit provides. libedit installs
its readline compatibility header as <editline/readline.h> rather than
<readline/readline.h>, so define HAVE_EDITLINE_READLINE_H when this
branch is taken and include the right header in tftp/main.c.
Signed-off-by: Thomas Bechtold <thomasbechtold@jpberlin.de>
2 files changed