diff options
| author | Bruce Momjian <bruce@momjian.us> | 2003-02-19 04:04:04 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2003-02-19 04:04:04 +0000 |
| commit | adc3b34b9cc8a5aff7dd1cc9d249708490301ccb (patch) | |
| tree | d49ee42828b0e2b86f673a390c3badee201f94c9 /configure.in | |
| parent | d0f3a7e9c453b10ad3c16a780858dd2621fc184a (diff) | |
| download | postgresql-adc3b34b9cc8a5aff7dd1cc9d249708490301ccb.tar.gz | |
Here's the patch I promised over on HACKERS - it alters the
implementation
of '\e' history tracking for systems that have a readline compatability
library without replace_history_entry. I fall back to pushing the query
onto the history stack after the \e, rather than replacing it.
The patch adds one more place to look for readline headers, and a test
for replace_history_entry. I've only included the patch for configure.in
Ross J. Reedstrom
Diffstat (limited to 'configure.in')
| -rw-r--r-- | configure.in | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/configure.in b/configure.in index 19f6d74def..77a63434aa 100644 --- a/configure.in +++ b/configure.in @@ -1,5 +1,5 @@ dnl Process this file with autoconf to produce a configure script. -dnl $Header: /cvsroot/pgsql/configure.in,v 1.236 2003/02/14 14:05:00 momjian Exp $ +dnl $Header: /cvsroot/pgsql/configure.in,v 1.237 2003/02/19 04:04:04 momjian Exp $ dnl dnl Developers, please strive to achieve this order: dnl @@ -689,17 +689,19 @@ AC_CHECK_HEADERS(netinet/tcp.h, [], [], if test "$with_readline" = yes; then AC_CHECK_HEADERS(readline/readline.h, [], - [AC_CHECK_HEADERS(readline.h, [], + [AC_CHECK_HEADERS(editline/readline.h, [], + [AC_CHECK_HEADERS(readline.h, [], [AC_MSG_ERROR([readline header not found If you have readline already installed, see config.log for details on the failure. It is possible the compiler isn't looking in the proper directory. -Use --without-readline to disable readline support.])])]) +Use --without-readline to disable readline support.])])])]) AC_CHECK_HEADERS(readline/history.h, [], - [AC_CHECK_HEADERS(history.h, [], + [AC_CHECK_HEADERS(editline/history.h, [], + [AC_CHECK_HEADERS(history.h, [], [AC_MSG_ERROR([history header not found If you have readline already installed, see config.log for details on the failure. It is possible the compiler isn't looking in the proper directory. -Use --without-readline to disable readline support.])])]) +Use --without-readline to disable readline support.])])])]) fi if test "$with_zlib" = yes; then @@ -878,6 +880,7 @@ AC_CHECK_FUNCS(rint, [], if test "$with_readline" = yes; then PGAC_VAR_RL_COMPLETION_APPEND_CHARACTER AC_CHECK_FUNCS([rl_completion_matches rl_filename_completion_function]) + AC_CHECK_FUNCS([replace_history_entry]) fi |
