From a413f71ae575f76be8f210c85e0306a2322653d6 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 5 Feb 2013 22:39:30 +0000 Subject: [PATCH] PR go/55969 * configure.ac: Disable libgo on some systems where it does not work. * configure: Rebuild. --- ChangeLog | 7 +++++++ configure | 17 +++++++++++++++++ configure.ac | 17 +++++++++++++++++ 3 files changed, 41 insertions(+) diff --git a/ChangeLog b/ChangeLog index 0ff8e41..e22e8a0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2013-02-05 Ian Lance Taylor + + PR go/55969 + * configure.ac: Disable libgo on some systems where it does not + work. + * configure: Rebuild. + 2013-02-05 Alan Modra * configure: Regenerate after syncing config/. diff --git a/configure b/configure index e669aa0..caa34ca 100755 --- a/configure +++ b/configure @@ -3413,6 +3413,23 @@ case "${target}" in ;; esac +# Disable libgo for some systems where it is known to not work. +# For testing, you can easily override this with --enable-libgo. +if test x$enable_libgo = x; then + case "${target}" in + *-*-darwin*) + # PR 46986 + noconfigdirs="$noconfigdirs target-libgo" + ;; + *-*-cygwin* | *-*-mingw*) + noconfigdirs="$noconfigdirs target-libgo" + ;; + *-*-aix*) + noconfigdirs="$noconfigdirs target-libgo" + ;; + esac +fi + # Default libgloss CPU subdirectory. libgloss_dir="$target_cpu" diff --git a/configure.ac b/configure.ac index 739cdc7..f2be8ab 100644 --- a/configure.ac +++ b/configure.ac @@ -752,6 +752,23 @@ case "${target}" in ;; esac +# Disable libgo for some systems where it is known to not work. +# For testing, you can easily override this with --enable-libgo. +if test x$enable_libgo = x; then + case "${target}" in + *-*-darwin*) + # PR 46986 + noconfigdirs="$noconfigdirs target-libgo" + ;; + *-*-cygwin* | *-*-mingw*) + noconfigdirs="$noconfigdirs target-libgo" + ;; + *-*-aix*) + noconfigdirs="$noconfigdirs target-libgo" + ;; + esac +fi + # Default libgloss CPU subdirectory. libgloss_dir="$target_cpu" -- 2.7.4