diff options
Diffstat (limited to 'libgo/configure.ac')
-rw-r--r-- | libgo/configure.ac | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libgo/configure.ac b/libgo/configure.ac index 6cc2307..761fb82 100644 --- a/libgo/configure.ac +++ b/libgo/configure.ac @@ -156,6 +156,17 @@ AM_CONDITIONAL(LIBGO_IS_RTEMS, test $is_rtems = yes) AM_CONDITIONAL(LIBGO_IS_SOLARIS, test $is_solaris = yes) AC_SUBST(GOOS) +dnl Test whether we need to use DejaGNU or whether we can use the +dnl simpler gotest approach. We can only use gotest for a native +dnl build. +USE_DEJAGNU=no +case ${host} in + *-*-rtems*) USE_DEJAGNU=yes ;; + ${target}) ;; + *) USE_DEJAGNU=yes ;; +esac +AC_SUBST(USE_DEJAGNU) + dnl N.B. Keep in sync with gcc/testsuite/go.test/go-test.exp (go-set-goarch). is_386=no is_alpha=no |