summaryrefslogtreecommitdiff
path: root/source3/configure.in
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-10-11 13:59:03 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:15:25 -0500
commitf9f3a2d7904548ebe1ecb06aff063a93123ec589 (patch)
treeb575ca20d290d7433ea49ae6d7bd252ed5420f81 /source3/configure.in
parent51994b35f14d3103fc4543a1bd4cfb3429fd5b5c (diff)
downloadsamba-f9f3a2d7904548ebe1ecb06aff063a93123ec589.tar.gz
samba-f9f3a2d7904548ebe1ecb06aff063a93123ec589.tar.bz2
samba-f9f3a2d7904548ebe1ecb06aff063a93123ec589.zip
r19246: merge from samba4 rev 18207 and 18208:
readline fixes for mac os 10 metze (This used to be commit 976b97ecbf9bde400a6f92cad9d9709d56e73058)
Diffstat (limited to 'source3/configure.in')
-rw-r--r--source3/configure.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/configure.in b/source3/configure.in
index 9bc71058fc..314582c449 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -1183,6 +1183,13 @@ 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_LIB(readline, history_list,
+ [AC_DEFINE(HAVE_HISTORY_LIST, 1, [Do we have history_list?])],
+ [],
+ [$TERMLIBS])
+
# 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