aboutsummaryrefslogtreecommitdiff
path: root/sim/configure.ac
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2020-12-09 22:26:30 -0500
committerMike Frysinger <vapier@gentoo.org>2021-04-03 16:19:16 -0400
commit26da232cbd6dd920da9521e508e42d1a46180ab4 (patch)
tree76451bdc21196c61c8c36787c74239660437b777 /sim/configure.ac
parenta389375f5b5fb67acdda6be028526ac44df2fbff (diff)
downloadfsf-binutils-gdb-26da232cbd6dd920da9521e508e42d1a46180ab4.zip
fsf-binutils-gdb-26da232cbd6dd920da9521e508e42d1a46180ab4.tar.gz
fsf-binutils-gdb-26da232cbd6dd920da9521e508e42d1a46180ab4.tar.bz2
sim: example-synacor: a simple implementation for reference
Provide a simple example simulator for people porting to new targets to use as a reference. This one has the advantage of being used by people and having a fun program available for it. It doesn't require a special target -- the example simulators can be built for any existing port.
Diffstat (limited to 'sim/configure.ac')
-rw-r--r--sim/configure.ac8
1 files changed, 8 insertions, 0 deletions
diff --git a/sim/configure.ac b/sim/configure.ac
index 35101a0..8faef9d 100644
--- a/sim/configure.ac
+++ b/sim/configure.ac
@@ -19,6 +19,10 @@ yes | no) ;;
*) AC_MSG_ERROR(bad value ${enableval} given for --enable-sim option) ;;
esac])
+AC_ARG_ENABLE([example-sims],
+ [AC_HELP_STRING([--enable-example-sims],
+ [enable example GNU simulators])])
+
AC_ARG_ENABLE(targets,
[ --enable-targets alternative target configurations],
[case "${enableval}" in
@@ -85,6 +89,10 @@ if test "${enable_sim}" != no; then
SIM_TARGET([ft32-*-*], [ft32])
SIM_TARGET([v850*-*-*], [v850], [sim_igen=yes])
done
+
+ if test "x${enable_example_sims}" = xyes; then
+ AC_CONFIG_SUBDIRS(example-synacor)
+ fi
fi
AM_CONDITIONAL([SIM_ENABLE_IGEN], [test "$sim_igen" = "yes"])