summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimur I. Bakeyev <timur@com.bat.ru>2009-06-07 12:00:22 +0000
committerStefan Metzmacher <metze@samba.org>2009-06-08 13:20:51 +0200
commitc41a12f8ba75f0d3fce336ee1f779391782413db (patch)
tree043e7588679a396c1e59d9d6a91955c892f91386
parent029e8e6314e4d13dd5321f6b0a3f761918a40f64 (diff)
downloadsamba-c41a12f8ba75f0d3fce336ee1f779391782413db.tar.gz
samba-c41a12f8ba75f0d3fce336ee1f779391782413db.tar.bz2
samba-c41a12f8ba75f0d3fce336ee1f779391782413db.zip
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 <metze@samba.org>
-rw-r--r--source4/lib/smbreadline/readline.m45
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/lib/smbreadline/readline.m4 b/source4/lib/smbreadline/readline.m4
index 86e2fb19d6..df154409ad 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 <readline/readline.h>])
+AC_CHECK_DECLS(rl_event_hook, [], [], [
+ #include <stdio.h>
+ #include <readline/readline.h>
+])
AC_CHECK_LIB(readline, history_list,
[AC_DEFINE(HAVE_HISTORY_LIST, 1, [Do we have history_list?])],
[],