LIBS="$LIBS $READLINE_LIBS"
AC_DEFINE(HAVE_LIBREADLINE, 1,
[Define if you have a readline compatible library])
- AC_CHECK_HEADERS(readline.h readline/readline.h)
+ AC_CHECK_HEADERS(readline.h readline/readline.h editline/readline.h)
AC_CACHE_CHECK([whether readline supports history],
ax_cv_lib_readline_history, [
ax_cv_lib_readline_history="no"
if test "$ax_cv_lib_readline_history" = "yes"; then
AC_DEFINE(HAVE_READLINE_HISTORY, 1,
[Define if your readline library has \`add_history'])
- AC_CHECK_HEADERS(history.h readline/history.h)
+ AC_CHECK_HEADERS(history.h readline/history.h editline/history.h)
fi
LIBS="$_save_LIBS"
#ifdef HAVE_LIBREADLINE
# if defined(HAVE_READLINE_READLINE_H)
# include <readline/readline.h>
+# if defined(HAVE_EDITLINE_READLINE_H)
+# include <editline/readline.h>
# elif defined(HAVE_READLINE_H)
# include <readline.h>
# else
#ifdef HAVE_READLINE_HISTORY
# if defined(HAVE_READLINE_HISTORY_H)
# include <readline/history.h>
+# if defined(HAVE_EDITLINE_HISTORY_H)
+# include <editline/history.h>
# elif defined(HAVE_HISTORY_H)
# include <history.h>
# else