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/])
16 AC_CHECK_TOOL(RANLIB, ranlib, :)
26 # Put a plausible default for CC_FOR_BUILD in Makefile.
27 if test -z "$CC_FOR_BUILD"; then
28 if test "x$cross_compiling" = "xno"; then
34 AC_SUBST(CC_FOR_BUILD)
35 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
36 AC_SUBST(CFLAGS_FOR_BUILD)
38 # If a cpu ever has more than one simulator to choose from, use
39 # --enable-sim=... to choose.
41 [AS_HELP_STRING([--enable-sim], [Enable the GNU simulator])],
42 [case "${enableval}" in
44 *) AC_MSG_ERROR(bad value ${enableval} given for --enable-sim option) ;;
47 dnl WHEN ADDING ENTRIES TO THIS MATRIX:
48 dnl Make sure that the left side always has two dashes. Otherwise you can get
49 dnl spurious matches. Even for unambiguous cases, do this as a convention, else
50 dnl the table becomes a real mess to understand and maintain.
51 if test "${enable_sim}" != no; then
55 AC_CONFIG_SUBDIRS(aarch64)
58 AC_CONFIG_SUBDIRS(arm)
61 AC_CONFIG_SUBDIRS(avr)
64 AC_CONFIG_SUBDIRS(bfin)
67 AC_CONFIG_SUBDIRS(bpf)
70 AC_CONFIG_SUBDIRS(cr16)
72 cris-*-* | crisv32-*-*)
73 AC_CONFIG_SUBDIRS(cris)
76 AC_CONFIG_SUBDIRS(d10v)
79 AC_CONFIG_SUBDIRS(frv)
82 AC_CONFIG_SUBDIRS(h8300)
85 AC_CONFIG_SUBDIRS(iq2000)
88 AC_CONFIG_SUBDIRS(lm32)
91 AC_CONFIG_SUBDIRS(m32c)
94 AC_CONFIG_SUBDIRS(m32r)
96 m68hc11-*-*|m6811-*-*)
97 AC_CONFIG_SUBDIRS(m68hc11)
100 AC_CONFIG_SUBDIRS(mcore)
103 AC_CONFIG_SUBDIRS(microblaze)
106 AC_CONFIG_SUBDIRS(mips)
110 AC_CONFIG_SUBDIRS(mn10300)
114 AC_CONFIG_SUBDIRS(moxie)
117 AC_CONFIG_SUBDIRS(msp430)
119 or1k-*-* | or1knd-*-*)
120 AC_CONFIG_SUBDIRS(or1k)
123 AC_CONFIG_SUBDIRS(pru)
126 AC_CONFIG_SUBDIRS(riscv)
129 AC_CONFIG_SUBDIRS(rl78)
132 AC_CONFIG_SUBDIRS(rx)
135 AC_CONFIG_SUBDIRS(sh)
137 sparc-*-rtems*|sparc-*-elf*)
138 AC_CONFIG_SUBDIRS(erc32)
141 AC_CONFIG_SUBDIRS(ppc)
144 AC_CONFIG_SUBDIRS(ft32)
147 AC_CONFIG_SUBDIRS(v850)
151 if test "$sim_igen" = yes; then
152 AC_CONFIG_SUBDIRS(igen)
156 AC_CONFIG_FILES([Makefile])