PR guile/17146
[deliverable/binutils-gdb.git] / gdb / configure.ac
index 48b36157eabae9fb78fa7bc5d978e7ea1109405f..70d096452489dff7e1a3fcb83bacac771aeb6fda 100644 (file)
@@ -1194,6 +1194,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)"
This page took 0.025696 seconds and 4 git commands to generate.