From 59bd1de1a56870490d48c6fcf44b53f88ab22108 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Fri, 9 Jul 1999 03:34:09 +0000 Subject: Put back in GNU readline support for smbclient accidentally trashed by tridge in the clientgen.c to clientutil.c conversion. (This used to be commit 26d66071fbac2c46445153c214bb13d587a67b49) --- source3/configure.in | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'source3/configure.in') diff --git a/source3/configure.in b/source3/configure.in index efe2b952d4..fa8a46eb96 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -142,15 +142,26 @@ if test x"$ac_cv_func_pam_authenticate" = x"no"; then AC_DEFINE(HAVE_PAM_AUTHENTICATE)]) fi - ############################################### -# test for where we get readline() from +# readline requires some curses routines if test "$ac_cv_header_readline_h" = "yes" || test "$ac_cv_header_readline_readline_h" = "yes"; then + AC_CHECK_FUNCS(tputs) + AC_CHECK_LIB(curses, tputs, [LIBS="$LIBS -lcurses"]) AC_CHECK_LIB(readline,readline) + AC_CACHE_CHECK([for filename_completion_function proto],samba_cv_have_fcf_proto,[ + AC_TRY_COMPILE([#include +#ifdef HAVE_READLINE_H +#include +#else +#include +#endif],[filename_completion_function], + samba_cv_have_fcf_proto=yes,samba_cv_have_fcf_proto=no)]) + if test x"$samba_cv_have_fcf_proto" = x"yes"; then + AC_DEFINE(HAVE_READLINE_FCF_PROTO) + fi fi - # The following test taken from the cvs sources # If we can't find connect, try looking in -lsocket, -lnsl, and -linet. # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has -- cgit