aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-04-21 13:58:49 -0600
committerTom Tromey <tom@tromey.com>2019-08-12 10:57:56 -0600
commit86c6b807f50ecec84e55007bf6cb6e54c159727b (patch)
tree1b3454909a376b369eecaf0df7d20b7558bf5bce /gdb/configure
parent5db2718ce48c497e317787caebacd019da59c3b0 (diff)
downloadgdb-86c6b807f50ecec84e55007bf6cb6e54c159727b.zip
gdb-86c6b807f50ecec84e55007bf6cb6e54c159727b.tar.gz
gdb-86c6b807f50ecec84e55007bf6cb6e54c159727b.tar.bz2
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.
Diffstat (limited to 'gdb/configure')
-rwxr-xr-xgdb/configure32
1 files changed, 32 insertions, 0 deletions
diff --git a/gdb/configure b/gdb/configure
index 9206f0e..2832c83 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -8952,6 +8952,38 @@ fi
if test "$with_system_readline" = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system readline is new enough" >&5
+$as_echo_n "checking whether system readline is new enough... " >&6; }
+if ${gdb_cv_readline_ok+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <stdio.h>
+#include <readline/readline.h>
+int
+main ()
+{
+#if RL_VERSION_MAJOR < 7
+# error "readline version 7 required"
+#endif
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ gdb_cv_readline_ok=yes
+else
+ gdb_cv_readline_ok=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_readline_ok" >&5
+$as_echo "$gdb_cv_readline_ok" >&6; }
+ if test "$gdb_cv_readline_ok" != yes; then
+ as_fn_error $? "system readline is not new enough" "$LINENO" 5
+ fi
+
READLINE=-lreadline
READLINE_DEPS=
READLINE_CFLAGS=