Index: configure.in =================================================================== RCS file: /home/projects/pgsql/cvsroot/pgsql/configure.in,v retrieving revision 1.128 diff -u -p -r1.128 configure.in --- configure.in 2001/06/02 18:25:16 1.128 +++ configure.in 2001/06/06 10:36:33 @@ -928,7 +928,7 @@ AC_TRY_LINK([#include AC_DEFINE(HAVE_RL_COMPLETION_APPEND_CHARACTER)], [AC_MSG_RESULT(no)]) -AC_CHECK_FUNCS([rl_completion_matches]) +AC_CHECK_FUNCS([rl_completion_matches rl_filename_completion_function]) dnl Cannot use AC_CHECK_FUNC because finite may be a macro Index: src/bin/psql/tab-complete.c =================================================================== RCS file: /home/projects/pgsql/cvsroot/pgsql/src/bin/psql/tab-complete.c,v retrieving revision 1.32 diff -u -p -r1.32 tab-complete.c --- src/bin/psql/tab-complete.c 2001/05/08 21:06:43 1.32 +++ src/bin/psql/tab-complete.c 2001/06/06 10:36:33 @@ -60,7 +60,9 @@ #include "common.h" #include "settings.h" -extern char *filename_completion_function(); +#ifdef HAVE_RL_FILENAME_COMPLETION_FUNCTION +#define filename_completion_function rl_filename_completion_function +#endif #ifdef HAVE_RL_COMPLETION_MATCHES #define completion_matches(x, y) rl_completion_matches((x), ((rl_compentry_func_t *)(y))) Index: src/include/config.h.in =================================================================== RCS file: /home/projects/pgsql/cvsroot/pgsql/src/include/config.h.in,v retrieving revision 1.165 diff -u -p -r1.165 config.h.in --- src/include/config.h.in 2001/06/02 18:25:18 1.165 +++ src/include/config.h.in 2001/06/06 10:36:33 @@ -589,6 +589,9 @@ extern int fdatasync(int fildes); /* Set to 1 if you have rl_completion_matches */ #undef HAVE_RL_COMPLETION_MATCHES +/* Set to 1 if you have rl_filename_completion_function */ +#undef HAVE_RL_FILENAME_COMPLETION_FUNCTION + /* Set to 1 if you have getopt_long() (GNU long options) */ #undef HAVE_GETOPT_LONG