/* Define if Python interpreter is being linked in. */
#undef HAVE_PYTHON
+/* Define to 1 if you have the <readline/readline.h> header file. */
+#undef HAVE_READLINE_READLINE_H
+
/* Define to 1 if you have the `resize_term' function. */
#undef HAVE_RESIZE_TERM
if test "$with_system_readline" = yes; then
+ for ac_header in readline/readline.h
+do :
+ ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
+if test "x$ac_cv_header_readline_readline_h" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_READLINE_READLINE_H 1
+_ACEOF
+ readline_h=yes
+else
+ readline_h=no
+fi
+
+done
+
+ if test "$readline_h" = "no"; then
+ as_fn_error $? "readline development packages are probably missing" "$LINENO" 5
+ fi
{ $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 :
[use installed readline library])])
if test "$with_system_readline" = yes; then
+ AC_CHECK_HEADERS(readline/readline.h, [readline_h=yes], [readline_h=no])
+ if test "$readline_h" = "no"; then
+ AC_MSG_ERROR([readline development packages are probably missing])
+ fi
AC_CACHE_CHECK(
[whether system readline is new enough],
[gdb_cv_readline_ok],