From: Timur I. Bakeyev Date: Sun, 7 Jun 2009 12:00:22 +0000 (+0000) Subject: rl_event_hook detection X-Git-Tag: tdb-1.1.5~196 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c41a12f8ba75f0d3fce336ee1f779391782413db;p=thirdparty%2Fsamba.git rl_event_hook detection This patch is relevant for Samba4 source mostly. The way, how readline compiled under FreeBSD makes it require stdio.h to get all the necessary declarations. Without this addition rl_event_hook is not properly detected. With regards, Timur Bakeyev. Signed-off-by: Stefan Metzmacher --- diff --git a/source4/lib/smbreadline/readline.m4 b/source4/lib/smbreadline/readline.m4 index 86e2fb19d65..df154409ade 100644 --- a/source4/lib/smbreadline/readline.m4 +++ b/source4/lib/smbreadline/readline.m4 @@ -69,7 +69,10 @@ AC_CHECK_LIB(readline, rl_completion_matches, [$TERMLIBS]) # not all readline libs have rl_event_hook or history_list -AC_CHECK_DECLS(rl_event_hook, [], [], [#include ]) +AC_CHECK_DECLS(rl_event_hook, [], [], [ + #include + #include +]) AC_CHECK_LIB(readline, history_list, [AC_DEFINE(HAVE_HISTORY_LIST, 1, [Do we have history_list?])], [],