1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

Add configure probe for rl_variable_bind().

Some exceedingly ancient readline libraries lack this function, causing
commit 3d858af07 to fail.  Per buildfarm (via Michael Paquier).

Discussion: https://postgr.es/m/E1msTLm-0007Cm-Ri@gemulon.postgresql.org
This commit is contained in:
Tom Lane
2021-12-02 13:06:27 -05:00
parent a22d6a2cb6
commit a7da419810
5 changed files with 15 additions and 15 deletions

View File

@ -356,8 +356,10 @@ initializeInput(int flags)
/* set appropriate values for Readline's global variables */
initialize_readline();
#ifdef HAVE_RL_VARIABLE_BIND
/* set comment-begin to a useful value for SQL */
(void) rl_variable_bind("comment-begin", "-- ");
#endif
/* this reads ~/.inputrc, so do it after rl_variable_bind */
rl_initialize();

View File

@ -485,6 +485,9 @@
/* Define to 1 if you have the `rl_reset_screen_size' function. */
#undef HAVE_RL_RESET_SCREEN_SIZE
/* Define to 1 if you have the `rl_variable_bind' function. */
#undef HAVE_RL_VARIABLE_BIND
/* Define to 1 if you have the <security/pam_appl.h> header file. */
#undef HAVE_SECURITY_PAM_APPL_H

View File

@ -354,6 +354,7 @@ sub GenerateFiles
HAVE_RL_FILENAME_QUOTE_CHARACTERS => undef,
HAVE_RL_FILENAME_QUOTING_FUNCTION => undef,
HAVE_RL_RESET_SCREEN_SIZE => undef,
HAVE_RL_VARIABLE_BIND => undef,
HAVE_SECURITY_PAM_APPL_H => undef,
HAVE_SETENV => undef,
HAVE_SETPROCTITLE => undef,