From bd69c3abe529b947bf51e2397190cf00ce058478 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Wed, 7 Oct 1998 09:02:39 +0000 Subject: [PATCH] * configure.in: Properly test for the presence of rl_getc_function; it's a variable, not a function. * configure: Regenerated. --- configure.in | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index a204ad5d2..a8a71e3bf 100644 --- a/configure.in +++ b/configure.in @@ -61,8 +61,18 @@ if test $ac_cv_func_connect = no; then fi AC_CHECK_LIB(termcap, tgoto) AC_CHECK_LIB(readline, readline) -AC_CHECK_FUNCS(rl_getc_function rl_clear_signals rl_cleanup_after_signal) -if test $ac_cv_lib_readline_readline = yes -a $ac_cv_func_rl_getc_function = no; then +AC_CHECK_FUNCS(rl_clear_signals rl_cleanup_after_signal) + +AC_CACHE_CHECK([for rl_getc_function pointer in readline], + ac_cv_var_rl_getc_function, + [AC_TRY_LINK([ +#include +#include ], + [rl_getc_function;], + [ac_cv_var_rl_getc_function=yes], + [ac_cv_var_rl_getc_function=no])]) + +if test $ac_cv_lib_readline_readline = yes -a $ac_cv_var_rl_getc_function = no; then echo 'Warning: libreadline is too old on your system. Need >= 2.1.' fi