diff options
Diffstat (limited to 'gdb/configure.ac')
-rw-r--r-- | gdb/configure.ac | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gdb/configure.ac b/gdb/configure.ac index 48b36157eab..70d09645248 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -1195,6 +1195,19 @@ yes) esac if test "${have_libguile}" != no; then + dnl Get the name of the 'guild' program. + GDB_GUILE_PROGRAM_NAMES(["${pkg_config_prog_path}"], ["${guile_version}"]) + + dnl Make sure guild can handle this host. + GDB_TRY_GUILD([$srcdir/guile/lib/gdb/support.scm]) + dnl If not, disable guile support. + if test "$ac_cv_guild_ok" = no; then + have_libguile=no + AC_MSG_WARN(disabling guile support, $GUILD fails compiling for $host) + fi +fi + +if test "${have_libguile}" != no; then AC_DEFINE(HAVE_GUILE, 1, [Define if Guile interpreter is being linked in.]) CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)" CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)" |