~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/readline.m4

  • Committer: Monty Taylor
  • Date: 2008-08-04 19:37:18 UTC
  • mto: (261.2.2 codestyle)
  • mto: This revision was merged to the branch mainline in revision 262.
  • Revision ID: monty@inaugust.com-20080804193718-f0rz13uli4429ozb
Changed gettext_noop() to N_()

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
AC_DEFUN([DRIZZLE_CHECK_READLINE_DECLARES_HIST_ENTRY], [
2
 
    AC_CACHE_CHECK([HIST_ENTRY is declared in readline/readline.h], mysql_cv_hist_entry_declared,
3
 
        AC_TRY_COMPILE(
4
 
            [
5
 
                #include "stdio.h"
6
 
                #include "readline/readline.h"
7
 
            ],
8
 
            [ 
9
 
                HIST_ENTRY entry;
10
 
            ],
11
 
            [
12
 
                mysql_cv_hist_entry_declared=yes
13
 
                AC_DEFINE_UNQUOTED(HAVE_HIST_ENTRY, [1],
14
 
                                   [HIST_ENTRY is defined in the outer libeditreadline])
15
 
            ],
16
 
            [mysql_cv_libedit_interface=no]
17
 
        )
18
 
    )
19
 
])
20
 
 
21
 
AC_DEFUN([DRIZZLE_CHECK_NEW_RL_INTERFACE], [
22
 
    AC_CACHE_CHECK([defined rl_compentry_func_t and rl_completion_func_t], mysql_cv_new_rl_interface,
23
 
        AC_TRY_COMPILE(
24
 
            [
25
 
                #include "stdio.h"
26
 
                #include "readline/readline.h"
27
 
            ],
28
 
            [ 
29
 
                rl_completion_func_t *func1= (rl_completion_func_t*)0;
30
 
                rl_compentry_func_t *func2= (rl_compentry_func_t*)0;
31
 
            ],
32
 
            [
33
 
                mysql_cv_new_rl_interface=yes
34
 
                AC_DEFINE_UNQUOTED([USE_NEW_READLINE_INTERFACE], [1],
35
 
                                   [used new readline interface (are rl_completion_func_t and rl_compentry_func_t defined)])
36
 
            ],
37
 
            [mysql_cv_new_rl_interface=no]
38
 
        )
39
 
    )
40
 
])
41