1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

r18208: Mac OS X also doesn't have history_list()

must be a pretty old readline lib!
(This used to be commit ba901e6820)
This commit is contained in:
Andrew Tridgell 2006-09-07 08:34:12 +00:00 committed by Gerald (Jerry) Carter
parent ead21647a2
commit b04fac4ed3
2 changed files with 6 additions and 2 deletions

View File

@ -2388,7 +2388,7 @@ history
****************************************************************************/
static int cmd_history(struct smbclient_context *ctx, const char **args)
{
#if defined(HAVE_LIBREADLINE)
#if defined(HAVE_LIBREADLINE) && defined(HAVE_DECL_RL_EVENT_HOOK)
HIST_ENTRY **hlist;
int i;

View File

@ -68,8 +68,12 @@ AC_CHECK_LIB(readline, rl_completion_matches,
[],
[$TERMLIBS])
# not all readline libs have rl_event_hook
# not all readline libs have rl_event_hook or history_list
AC_CHECK_DECLS(rl_event_hook, [], [], [#include <readline/readline.h>])
AC_CHECK_LIB(readline, history_list,
[AC_DEFINE(HAVE_HISTORY_LIST, 1, [Do we have history_list?])],
[],
[$TERMLIBS])
AC_MSG_CHECKING(whether to use extern readline)
if test x"$EXTERNAL_READLINE" = x"yes"; then