aboutsummaryrefslogtreecommitdiff
path: root/sim/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'sim/configure.in')
-rw-r--r--sim/configure.in10
1 files changed, 9 insertions, 1 deletions
diff --git a/sim/configure.in b/sim/configure.in
index 99f4aed..0d4e800 100644
--- a/sim/configure.in
+++ b/sim/configure.in
@@ -53,7 +53,7 @@ case "${target}" in
d30v-*-*)
sim_target=d30v
only_if_gcc=yes
- extra_subdirs="${extra_subdirs} igen testsuite"
+ extra_subdirs="${extra_subdirs} igen"
;;
# end-sanitize-d30v
h8300*-*-*) sim_target=h8300 ;;
@@ -131,6 +131,14 @@ case "${target}" in
*) sim_target=none ;;
esac
+
+# Is there a testsuite directory for the target?
+testdir=`echo ${target} | sed -e 's/-.*-/-/'`
+if test -r ${srcdir}/testsuite/${testdir}/configure ; then
+ extra_subdirs="${extra_subdirs} testsuite"
+fi
+
+
case "${enable_sim}" in
no) sim_target=none ;;
yes)