Require readline 7 or newer

This changes gdb to require readline 7 or newer at build time.

gdb/ChangeLog
2019-08-12  Tom Tromey  <tom@tromey.com>

	* configure: Rebuild.
	* configure.ac: Check for readline 7.
	* NEWS: Mention readline 7 requirement.
	* README: Update.

gdb/doc/ChangeLog
2019-08-12  Tom Tromey  <tom@tromey.com>

	* gdb.texinfo (Configure Options): Document minimum version of
	readline.
This commit is contained in:
Tom Tromey
2019-04-21 13:58:49 -06:00
parent 5db2718ce4
commit 86c6b807f5
7 changed files with 67 additions and 2 deletions

View File

@@ -581,6 +581,20 @@ AC_ARG_WITH([system-readline],
[use installed readline library])])
if test "$with_system_readline" = yes; then
AC_CACHE_CHECK([whether system readline is new enough],
[gdb_cv_readline_ok],
[AC_TRY_COMPILE(
[#include <stdio.h>
#include <readline/readline.h>],
[#if RL_VERSION_MAJOR < 7
# error "readline version 7 required"
#endif],
gdb_cv_readline_ok=yes,
gdb_cv_readline_ok=no)])
if test "$gdb_cv_readline_ok" != yes; then
AC_MSG_ERROR([system readline is not new enough])
fi
READLINE=-lreadline
READLINE_DEPS=
READLINE_CFLAGS=