mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 17:40:08 +01:00
build: ensure rl_echo_signal_char() exists in the readline library
This commit is contained in:
parent
d5ceb0af15
commit
b69143b508
1 changed files with 13 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue