diff options
author | Simon Josefsson <simon@josefsson.org> | 2007-06-29 16:31:03 +0200 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2007-06-29 16:31:03 +0200 |
commit | 306bcb6818f7b78ea3d686f192e6a04ab0b9a502 (patch) | |
tree | 791b1e45288e47f0a80a5b3f5c7147be8b19d16e | |
parent | 4d8fa8aee9b26407bf1bb204e41160363e50a1d5 (diff) | |
download | gnutls-306bcb6818f7b78ea3d686f192e6a04ab0b9a502.tar.gz |
Check for scm_from_locale_string instead of SCM_API.
Patch from ludo@gnu.org (Ludovic Courtès).
-rw-r--r-- | configure.in | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/configure.in b/configure.in index 4ff951ec92..9f9da6becf 100644 --- a/configure.in +++ b/configure.in @@ -311,13 +311,17 @@ if test "x$opt_guile_bindings" = "xyes"; then GUILE_PROGS GUILE_FLAGS + save_CFLAGS="$CFLAGS" + save_LDFLAGS="$LDFLAGS" + CFLAGS="$CFLAGS $GUILE_CFLAGS" + LDFLAGS="$LDFLAGS $GUILE_LDFLAGS" AC_MSG_CHECKING([whether GNU Guile is recent enough]) - AC_COMPILE_IFELSE(AC_LANG_PROGRAM([ - #include <libguile.h> -SCM_API scm_t_bits scm_tc16_gnutls_cipher_enum;]), - recent_guile=yes,recent_guile=no) + AC_LINK_IFELSE(AC_LANG_CALL([], [scm_from_locale_string]), + [], [opt_guile_bindings=no]) + CFLAGS="$save_CFLAGS" + LDFLAGS="$save_LDFLAGS" - if test "$recent_guile" = yes; then + if test "x$opt_guile_bindings" = "xyes"; then AC_MSG_RESULT([yes]) case "x$with_guile_site_dir" in xno) |