Let it work on FreeBSD where fileno is a macro.
Support readline-4.2 (some C functions were renamed).
Correctly treat rl_redisplay_function as returning void.
/* Define if readline plus any additional libs needed for it exist */
#undef HAVE_READLINE_LIBS
-/* Define if readline has version >= 4.x. */
+/* Define if readline has version >= 4.0. */
#undef HAVE_READLINE_4
+/* Define if readline has version >= 4.2. */
+#undef HAVE_READLINE_4_2
+
/* Define if time.h or sys/time.h define the timezone variable */
#undef HAVE_TIMEZONE
AC_CHECK_LIB(readline, rl_erase_empty_line,
[AC_DEFINE(HAVE_READLINE_4, 1)],
[AC_DEFINE(HAVE_READLINE_4, 0)])
+ AC_CHECK_LIB(readline, rl_free_undo_list,
+ [AC_DEFINE(HAVE_READLINE_4_2, 1)],
+ [AC_DEFINE(HAVE_READLINE_4_2, 0)])
else
AC_DEFINE(HAVE_READLINE_4, 0)
+ AC_DEFINE(HAVE_READLINE_4_2, 0)
fi
dnl ** check for math library
/* Define if readline plus any additional libs needed for it exist */
#undef HAVE_READLINE_LIBS
-/* Define if readline has version >= 4.x. */
+/* Define if readline has version >= 4.0. */
#undef HAVE_READLINE_4
+/* Define if readline has version >= 4.2. */
+#undef HAVE_READLINE_4_2
+
/* Define if time.h or sys/time.h define the timezone variable */
#undef HAVE_TIMEZONE