~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to config/ac-macros/readline.m4

Merged in Jay's tree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
    )
19
19
])
20
20
 
21
 
AC_DEFUN([MYSQL_CHECK_LIBEDIT_INTERFACE], [
22
 
    AC_CACHE_CHECK([libedit variant of rl_completion_entry_function], mysql_cv_libedit_interface,
23
 
        AC_TRY_COMPILE(
24
 
            [
25
 
                #include "stdio.h"
26
 
                #include "readline/readline.h"
27
 
            ],
28
 
            [ 
29
 
                char res= *(*rl_completion_entry_function)(0,0);
30
 
                completion_matches(0,0);
31
 
            ],
32
 
            [
33
 
                mysql_cv_libedit_interface=yes
34
 
                AC_DEFINE_UNQUOTED([USE_LIBEDIT_INTERFACE], [1],
35
 
                                   [used libedit interface (can we dereference result of rl_completion_entry_function)])
36
 
            ],
37
 
            [mysql_cv_libedit_interface=no]
38
 
        )
39
 
    )
40
 
])
41
 
 
42
21
AC_DEFUN([MYSQL_CHECK_NEW_RL_INTERFACE], [
43
22
    AC_CACHE_CHECK([defined rl_compentry_func_t and rl_completion_func_t], mysql_cv_new_rl_interface,
44
23
        AC_TRY_COMPILE(