summaryrefslogtreecommitdiff
path: root/src/configure.in
diff options
context:
space:
mode:
authorTom Lane2000-01-21 23:32:36 +0000
committerTom Lane2000-01-21 23:32:36 +0000
commit7cc0d6ae9dc485d954edce84e28f665ac6151bb9 (patch)
tree3fd44c6bdd5a5128ed48899ef1ab3e788de7e1c9 /src/configure.in
parente33f550bc06a0410ae5a64ad16cc29f8ed5a882f (diff)
Fix tab-complete so it works with old versions of readline that don't
have the rl_completion_append_character variable. The tab completion behavior doesn't seem to be quite perfect in that situation, but it's better than failing to build at all...
Diffstat (limited to 'src/configure.in')
-rw-r--r--src/configure.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/configure.in b/src/configure.in
index d08fbc9befc..1bef6cd772e 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -840,11 +840,16 @@ AC_CHECK_FUNC(rint,
AC_DEFINE(HAVE_RINT),
AC_CHECK_LIB(m, rint, AC_DEFINE(HAVE_RINT), , $HPUXMATHLIB))
+dnl Some old versions of libreadline don't have rl_completion_append_character
+AC_EGREP_HEADER(rl_completion_append_character, readline.h,
+ AC_DEFINE(HAVE_RL_COMPLETION_APPEND_CHARACTER),
+ [AC_EGREP_HEADER(rl_completion_append_character, readline/readline.h,
+ AC_DEFINE(HAVE_RL_COMPLETION_APPEND_CHARACTER))])
+AC_SUBST(HAVE_RL_COMPLETION_APPEND_CHARACTER)
dnl Check for GNU style long options support (getopt_long)
AC_CHECK_FUNCS(getopt_long)
-
AC_MSG_CHECKING(for finite() macro or function)
AC_TRY_LINK([#include <math.h>],
[int dummy=finite(1.0);],