aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.ac
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2014-05-27 14:02:21 +0200
committerLudovic Courtès <ludo@gnu.org>2014-06-01 22:26:55 +0200
commit16954d5d9d7d44356b46864d41b06dbefd867521 (patch)
treee443eb7515fc8e53781be28f9e5076e7356401e4 /gdb/configure.ac
parentf69123aac56b383081bdb8eb3909087809927557 (diff)
downloadgdb-16954d5d9d7d44356b46864d41b06dbefd867521.zip
gdb-16954d5d9d7d44356b46864d41b06dbefd867521.tar.gz
gdb-16954d5d9d7d44356b46864d41b06dbefd867521.tar.bz2
guile: Allow compilation with Guile <= 2.0.5.
gdb/ 2014-06-01 Ludovic Courtès <ludo@gnu.org> * configure.ac: When Guile is available, check for the availability of 'scm_new_smob'. * configure, config.h.in: Regenerate. * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New function.
Diffstat (limited to 'gdb/configure.ac')
-rw-r--r--gdb/configure.ac9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/configure.ac b/gdb/configure.ac
index ff84a2e..903f378 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -1200,6 +1200,15 @@ if test "${have_libguile}" != no; then
CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
CONFIG_INSTALL="$CONFIG_INSTALL install-guile"
ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
+
+ dnl The 'scm_new_smob' function appeared in Guile 2.0.6.
+ save_LIBS="$LIBS"
+ save_CPPFLAGS="$CPPFLAGS"
+ LIBS="$GUILE_LIBS"
+ CPPFLAGS="$GUILE_CPPFLAGS"
+ AC_CHECK_FUNCS([scm_new_smob])
+ LIBS="$save_LIBS"
+ CPPFLAGS="$save_CPPFLAGS"
else
# Even if Guile support is not compiled in, we need to have these files
# included.