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/])
15 AC_CHECK_TOOL(RANLIB, ranlib, :)
25 # Put a plausible default for CC_FOR_BUILD in Makefile.
26 if test -z "$CC_FOR_BUILD"; then
27 if test "x$cross_compiling" = "xno"; then
33 AC_SUBST(CC_FOR_BUILD)
34 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
35 AC_SUBST(CFLAGS_FOR_BUILD)
37 # If a cpu ever has more than one simulator to choose from, use
38 # --enable-sim=... to choose.
40 [AS_HELP_STRING([--enable-sim], [Enable the GNU simulator])],
41 [case "${enableval}" in
43 *) AC_MSG_ERROR(bad value ${enableval} given for --enable-sim option) ;;
46 dnl WHEN ADDING ENTRIES TO THIS MATRIX:
47 dnl Make sure that the left side always has two dashes. Otherwise you can get
48 dnl spurious matches. Even for unambiguous cases, do this as a convention, else
49 dnl the table becomes a real mess to understand and maintain.
50 if test "${enable_sim}" != no; then
54 AC_CONFIG_SUBDIRS(aarch64)
57 AC_CONFIG_SUBDIRS(arm)
60 AC_CONFIG_SUBDIRS(avr)
63 AC_CONFIG_SUBDIRS(bfin)
66 AC_CONFIG_SUBDIRS(bpf)
69 AC_CONFIG_SUBDIRS(cr16)
71 cris-*-* | crisv32-*-*)
72 AC_CONFIG_SUBDIRS(cris)
75 AC_CONFIG_SUBDIRS(d10v)
78 AC_CONFIG_SUBDIRS(frv)
81 AC_CONFIG_SUBDIRS(h8300)
84 AC_CONFIG_SUBDIRS(iq2000)
87 AC_CONFIG_SUBDIRS(lm32)
90 AC_CONFIG_SUBDIRS(m32c)
93 AC_CONFIG_SUBDIRS(m32r)
95 m68hc11-*-*|m6811-*-*)
96 AC_CONFIG_SUBDIRS(m68hc11)
99 AC_CONFIG_SUBDIRS(mcore)
102 AC_CONFIG_SUBDIRS(microblaze)
105 AC_CONFIG_SUBDIRS(mips)
109 AC_CONFIG_SUBDIRS(mn10300)
113 AC_CONFIG_SUBDIRS(moxie)
116 AC_CONFIG_SUBDIRS(msp430)
118 or1k-*-* | or1knd-*-*)
119 AC_CONFIG_SUBDIRS(or1k)
122 AC_CONFIG_SUBDIRS(pru)
125 AC_CONFIG_SUBDIRS(riscv)
128 AC_CONFIG_SUBDIRS(rl78)
131 AC_CONFIG_SUBDIRS(rx)
134 AC_CONFIG_SUBDIRS(sh)
136 sparc-*-rtems*|sparc-*-elf*)
137 AC_CONFIG_SUBDIRS(erc32)
140 AC_CONFIG_SUBDIRS(ppc)
143 AC_CONFIG_SUBDIRS(ft32)
146 AC_CONFIG_SUBDIRS(v850)
150 if test "$sim_igen" = yes; then
151 AC_CONFIG_SUBDIRS(igen)
155 AC_CONFIG_FILES([Makefile testsuite/Makefile])