1 dnl Process this file with autoconf to produce a configure script.
2 dnl NB: The version here is not used. If gdb ever changes from generating its
3 dnl version at build time to autoconf time (like bfd et al do), we can switch.
5 [https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim],
6 [], [https://sourceware.org/gdb/wiki/Sim/])
13 # If a cpu ever has more than one simulator to choose from, use
14 # --enable-sim=... to choose.
16 [AS_HELP_STRING([--enable-sim], [Enable the GNU simulator])],
17 [case "${enableval}" in
19 *) AC_MSG_ERROR(bad value ${enableval} given for --enable-sim option) ;;
22 dnl WHEN ADDING ENTRIES TO THIS MATRIX:
23 dnl Make sure that the left side always has two dashes. Otherwise you can get
24 dnl spurious matches. Even for unambiguous cases, do this as a convention, else
25 dnl the table becomes a real mess to understand and maintain.
26 if test "${enable_sim}" != no; then
30 AC_CONFIG_SUBDIRS(aarch64)
33 AC_CONFIG_SUBDIRS(arm)
36 AC_CONFIG_SUBDIRS(avr)
39 AC_CONFIG_SUBDIRS(bfin)
42 AC_CONFIG_SUBDIRS(bpf)
45 AC_CONFIG_SUBDIRS(cr16)
47 cris-*-* | crisv32-*-*)
48 AC_CONFIG_SUBDIRS(cris)
51 AC_CONFIG_SUBDIRS(d10v)
54 AC_CONFIG_SUBDIRS(frv)
57 AC_CONFIG_SUBDIRS(h8300)
60 AC_CONFIG_SUBDIRS(iq2000)
63 AC_CONFIG_SUBDIRS(lm32)
66 AC_CONFIG_SUBDIRS(m32c)
69 AC_CONFIG_SUBDIRS(m32r)
71 m68hc11-*-*|m6811-*-*)
72 AC_CONFIG_SUBDIRS(m68hc11)
75 AC_CONFIG_SUBDIRS(mcore)
78 AC_CONFIG_SUBDIRS(microblaze)
81 AC_CONFIG_SUBDIRS(mips)
85 AC_CONFIG_SUBDIRS(mn10300)
89 AC_CONFIG_SUBDIRS(moxie)
92 AC_CONFIG_SUBDIRS(msp430)
94 or1k-*-* | or1knd-*-*)
95 AC_CONFIG_SUBDIRS(or1k)
98 AC_CONFIG_SUBDIRS(pru)
101 AC_CONFIG_SUBDIRS(riscv)
104 AC_CONFIG_SUBDIRS(rl78)
107 AC_CONFIG_SUBDIRS(rx)
110 AC_CONFIG_SUBDIRS(sh)
112 sparc-*-rtems*|sparc-*-elf*)
113 AC_CONFIG_SUBDIRS(erc32)
116 AC_CONFIG_SUBDIRS(ppc)
119 AC_CONFIG_SUBDIRS(ft32)
122 AC_CONFIG_SUBDIRS(v850)
127 AM_CONDITIONAL([SIM_ENABLE_IGEN], [test "$sim_igen" = "yes"])
129 AC_CONFIG_FILES([Makefile])