[PATCH] [FreeBSD 3] rl_event_hook detection

Timur I. Bakeyev timur at com.bat.ru
Sun Jun 7 12:00:22 GMT 2009


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.
-------------- next part --------------
--- ./source4/lib/smbreadline/readline.m4.orig	2009-04-30 07:53:01.000000000 +0000
+++ ./source4/lib/smbreadline/readline.m4	2009-06-01 11:49:40.000000000 +0000
@@ -69,7 +69,10 @@
 	     [$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?])],
 	     [],


More information about the samba-technical mailing list