319.1.1
by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_ |
1 |
AC_DEFUN([DRIZZLE_CHECK_READLINE_DECLARES_HIST_ENTRY], [ |
1
by brian
clean slate |
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 |
||
319.1.1
by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_ |
21 |
AC_DEFUN([DRIZZLE_CHECK_NEW_RL_INTERFACE], [ |
629.2.8
by Monty Taylor
Fixed a configure oops. |
22 |
save_CFLAGS="${CFLAGS}"
|
23 |
CFLAGS="${save_CFLAGS} ${READLINE_CFLAGS}"
|
|
1
by brian
clean slate |
24 |
AC_CACHE_CHECK([defined rl_compentry_func_t and rl_completion_func_t], mysql_cv_new_rl_interface, |
25 |
AC_TRY_COMPILE( |
|
26 |
[ |
|
27 |
#include "stdio.h"
|
|
28 |
#include "readline/readline.h"
|
|
29 |
], |
|
30 |
[ |
|
31 |
rl_completion_func_t *func1= (rl_completion_func_t*)0;
|
|
32 |
rl_compentry_func_t *func2= (rl_compentry_func_t*)0;
|
|
33 |
], |
|
34 |
[ |
|
35 |
mysql_cv_new_rl_interface=yes
|
|
36 |
], |
|
37 |
[mysql_cv_new_rl_interface=no] |
|
38 |
) |
|
39 |
) |
|
635.1.1
by Elan Ruusamäe
- do not let ac_cache hide definition of USE_NEW_READLINE_INTERFACE |
40 |
if test "$mysql_cv_new_rl_interface" = "yes"; then |
41 |
AC_DEFINE_UNQUOTED([USE_NEW_READLINE_INTERFACE], [1], |
|
42 |
[used new readline interface (are rl_completion_func_t and rl_compentry_func_t defined)]) |
|
43 |
fi |
|
629.2.8
by Monty Taylor
Fixed a configure oops. |
44 |
CFLAGS="${save_CFLAGS}" |
1
by brian
clean slate |
45 |
]) |
46 |