diff options
| author | Peter Eisentraut <peter_e@gmx.net> | 2000-03-05 13:30:20 +0000 |
|---|---|---|
| committer | Peter Eisentraut <peter_e@gmx.net> | 2000-03-05 13:30:20 +0000 |
| commit | 8de482a8479eef200e184ce308bf3f40eac3215b (patch) | |
| tree | d987e8242b1fe545b0bcbd986cb518a157540a6d /src/configure.in | |
| parent | 3c71ed7e72680ad5cde765978b98bd34bb58089a (diff) | |
| download | postgresql-8de482a8479eef200e184ce308bf3f40eac3215b.tar.gz | |
Added configure test for readline's filename_completion_function
Completed psql's \? help
Diffstat (limited to 'src/configure.in')
| -rw-r--r-- | src/configure.in | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/configure.in b/src/configure.in index fc91938220..dd79e1a977 100644 --- a/src/configure.in +++ b/src/configure.in @@ -846,6 +846,18 @@ AC_EGREP_HEADER(rl_completion_append_character, readline.h, AC_DEFINE(HAVE_RL_COMPLETION_APPEND_CHARACTER))]) AC_SUBST(HAVE_RL_COMPLETION_APPEND_CHARACTER) +dnl Check for readline's filename_completion_function. +dnl Some versions have it but it's not in the headers, so we have to take +dnl care of that, too. +AC_CHECK_FUNCS(filename_completion_function, + AC_EGREP_HEADER(filename_completion_function, readline.h, + AC_DEFINE(HAVE_FILENAME_COMPLETION_FUNCTION_DECL), + [AC_EGREP_HEADER(filename_completion_function, readline/readline.h, + AC_DEFINE(HAVE_FILENAME_COMPLETION_FUNCTION_DECL))]) +) +AC_SUBST(HAVE_FILENAME_COMPLETION_FUNCTION) +AC_SUBST(HAVE_FILENAME_COMPLETION_FUNCTION_DECL) + dnl Check for GNU style long options support (getopt_long) AC_CHECK_FUNCS(getopt_long) |
