summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikael Djurfeldt <djurfeldt@nada.kth.se>1999-08-17 20:58:19 +0000
committerMikael Djurfeldt <djurfeldt@nada.kth.se>1999-08-17 20:58:19 +0000
commitf30a1c9560ff556413e65d9a9b8bfd89236f2364 (patch)
tree751a907b001d90e9a190cb587aefc2066510a783
parent9cd4dfbb06d4a455e6407f0f1d4ddf571962bdb6 (diff)
downloadguile-f30a1c9560ff556413e65d9a9b8bfd89236f2364.tar.gz
* 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.
-rw-r--r--guile-readline/configure.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/guile-readline/configure.in b/guile-readline/configure.in
index 7a947d079..1260bc338 100644
--- a/guile-readline/configure.in
+++ b/guile-readline/configure.in
@@ -22,7 +22,7 @@ AC_CACHE_CHECK([for rl_getc_function pointer in readline],
[AC_TRY_LINK([
#include <stdio.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=no])])
if test "${ac_cv_var_rl_getc_function}" = "yes"; then