]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/configure.ac
sim: igen: merge build into top level
[thirdparty/binutils-gdb.git] / sim / configure.ac
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.
4 AC_INIT([sim], [0],
5 [https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim],
6 [], [https://sourceware.org/gdb/wiki/Sim/])
7
8 SIM_AC_TOOLCHAIN
9
10 AM_MAINTAINER_MODE
11 AM_INIT_AUTOMAKE
12
13 # If a cpu ever has more than one simulator to choose from, use
14 # --enable-sim=... to choose.
15 AC_ARG_ENABLE(sim,
16 [AS_HELP_STRING([--enable-sim], [Enable the GNU simulator])],
17 [case "${enableval}" in
18 yes | no) ;;
19 *) AC_MSG_ERROR(bad value ${enableval} given for --enable-sim option) ;;
20 esac])
21
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
27 sim_igen=no
28 case "${target}" in
29 aarch64*-*-*)
30 AC_CONFIG_SUBDIRS(aarch64)
31 ;;
32 arm*-*-*)
33 AC_CONFIG_SUBDIRS(arm)
34 ;;
35 avr*-*-*)
36 AC_CONFIG_SUBDIRS(avr)
37 ;;
38 bfin-*-*)
39 AC_CONFIG_SUBDIRS(bfin)
40 ;;
41 bpf-*-*)
42 AC_CONFIG_SUBDIRS(bpf)
43 ;;
44 cr16*-*-*)
45 AC_CONFIG_SUBDIRS(cr16)
46 ;;
47 cris-*-* | crisv32-*-*)
48 AC_CONFIG_SUBDIRS(cris)
49 ;;
50 d10v-*-*)
51 AC_CONFIG_SUBDIRS(d10v)
52 ;;
53 frv-*-*)
54 AC_CONFIG_SUBDIRS(frv)
55 ;;
56 h8300*-*-*)
57 AC_CONFIG_SUBDIRS(h8300)
58 ;;
59 iq2000-*-*)
60 AC_CONFIG_SUBDIRS(iq2000)
61 ;;
62 lm32-*-*)
63 AC_CONFIG_SUBDIRS(lm32)
64 ;;
65 m32c-*-*)
66 AC_CONFIG_SUBDIRS(m32c)
67 ;;
68 m32r-*-*)
69 AC_CONFIG_SUBDIRS(m32r)
70 ;;
71 m68hc11-*-*|m6811-*-*)
72 AC_CONFIG_SUBDIRS(m68hc11)
73 ;;
74 mcore-*-*)
75 AC_CONFIG_SUBDIRS(mcore)
76 ;;
77 microblaze-*-*)
78 AC_CONFIG_SUBDIRS(microblaze)
79 ;;
80 mips*-*-*)
81 AC_CONFIG_SUBDIRS(mips)
82 sim_igen=yes
83 ;;
84 mn10300*-*-*)
85 AC_CONFIG_SUBDIRS(mn10300)
86 sim_igen=yes
87 ;;
88 moxie-*-*)
89 AC_CONFIG_SUBDIRS(moxie)
90 ;;
91 msp430*-*-*)
92 AC_CONFIG_SUBDIRS(msp430)
93 ;;
94 or1k-*-* | or1knd-*-*)
95 AC_CONFIG_SUBDIRS(or1k)
96 ;;
97 pru*-*-*)
98 AC_CONFIG_SUBDIRS(pru)
99 ;;
100 riscv*-*-*)
101 AC_CONFIG_SUBDIRS(riscv)
102 ;;
103 rl78-*-*)
104 AC_CONFIG_SUBDIRS(rl78)
105 ;;
106 rx-*-*)
107 AC_CONFIG_SUBDIRS(rx)
108 ;;
109 sh*-*-*)
110 AC_CONFIG_SUBDIRS(sh)
111 ;;
112 sparc-*-rtems*|sparc-*-elf*)
113 AC_CONFIG_SUBDIRS(erc32)
114 ;;
115 powerpc*-*-*)
116 AC_CONFIG_SUBDIRS(ppc)
117 ;;
118 ft32-*-*)
119 AC_CONFIG_SUBDIRS(ft32)
120 ;;
121 v850*-*-*)
122 AC_CONFIG_SUBDIRS(v850)
123 sim_igen=yes
124 ;;
125 esac
126 fi
127 AM_CONDITIONAL([SIM_ENABLE_IGEN], [test "$sim_igen" = "yes"])
128
129 AC_CONFIG_FILES([Makefile])
130 AC_OUTPUT