1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 11:50:28 +02:00

* configure.in (HAVE_RL_GETC_FUNCTION): Modified test to actually

use rl_getc_function.  Otherwise smart compilers, like gcc,
optimize away the reference so that no error occurs in the link
phase.
This commit is contained in:
Mikael Djurfeldt 1999-08-17 20:58:19 +00:00
parent 9cd4dfbb06
commit f30a1c9560

View file

@ -22,7 +22,7 @@ AC_CACHE_CHECK([for rl_getc_function pointer in readline],
[AC_TRY_LINK([ [AC_TRY_LINK([
#include <stdio.h> #include <stdio.h>
#include <readline/readline.h>], #include <readline/readline.h>],
[rl_getc_function;], [printf ("%ld", (long) rl_getc_function)],
[ac_cv_var_rl_getc_function=yes], [ac_cv_var_rl_getc_function=yes],
[ac_cv_var_rl_getc_function=no])]) [ac_cv_var_rl_getc_function=no])])
if test "${ac_cv_var_rl_getc_function}" = "yes"; then if test "${ac_cv_var_rl_getc_function}" = "yes"; then