]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Check for scm_from_locale_string instead of SCM_API.
authorSimon Josefsson <simon@josefsson.org>
Fri, 29 Jun 2007 14:31:03 +0000 (16:31 +0200)
committerSimon Josefsson <simon@josefsson.org>
Fri, 29 Jun 2007 14:31:03 +0000 (16:31 +0200)
Patch from ludo@gnu.org (Ludovic Courtès).

configure.in

index 4ff951ec92d18683648723d2b61023ed9b0ee940..9f9da6becfc110242a7faeb25216b86758d40c6d 100644 (file)
@@ -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)