Commit b69143b5 authored by Dan Williams's avatar Dan Williams

build: ensure rl_echo_signal_char() exists in the readline library

parent d5ceb0af
......@@ -92,6 +92,8 @@ AC_DEFUN([AX_LIB_READLINE], [
LIBS="$LIBS $ax_cv_lib_readline"
AC_CHECK_HEADERS(readline.h readline/readline.h)
# Check history
AC_CACHE_CHECK([whether readline supports history],
ax_cv_lib_readline_history, [
ax_cv_lib_readline_history="no"
......@@ -101,6 +103,17 @@ AC_DEFUN([AX_LIB_READLINE], [
AC_MSG_ERROR(readline history support is required)
fi
AC_CHECK_HEADERS(history.h readline/history.h)
# check rl_echo_signal_char()
AC_CACHE_CHECK([whether readline supports rl_echo_signal_char()],
ax_cv_lib_readline_echo_signal_char, [
ax_cv_lib_readline_echo_signal_char="no"
AC_TRY_LINK_FUNC(rl_echo_signal_char, ax_cv_lib_readline_echo_signal_char="yes")
])
if test "$ax_cv_lib_readline_echo_signal_char" != "yes"; then
AC_MSG_ERROR(rl_echo_signal_char() is required (install readline6?))
fi
READLINE_LIBS="$ax_cv_lib_readline"
AC_SUBST(READLINE_LIBS)
])dnl
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment