]>
Commit | Line | Data |
---|---|---|
b7026657 | 1 | dnl Process this file with autoconf to produce a configure script. |
6bddc3e8 MF |
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 | ||
c2783492 | 8 | SIM_AC_TOOLCHAIN |
6bddc3e8 | 9 | |
8c379db2 | 10 | AM_MAINTAINER_MODE |
6bddc3e8 | 11 | AM_INIT_AUTOMAKE |
b7026657 | 12 | |
b7026657 AC |
13 | # If a cpu ever has more than one simulator to choose from, use |
14 | # --enable-sim=... to choose. | |
15 | AC_ARG_ENABLE(sim, | |
8d0978fb | 16 | [AS_HELP_STRING([--enable-sim], [Enable the GNU simulator])], |
b7026657 AC |
17 | [case "${enableval}" in |
18 | yes | no) ;; | |
19 | *) AC_MSG_ERROR(bad value ${enableval} given for --enable-sim option) ;; | |
20 | esac]) | |
21 | ||
3e8bb3e9 MF |
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. | |
b7026657 | 26 | if test "${enable_sim}" != no; then |
3e8bb3e9 MF |
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 | |
bb3eddb5 MF |
126 | if test "$sim_igen" = yes; then |
127 | AC_CONFIG_SUBDIRS(igen) | |
128 | fi | |
b7026657 AC |
129 | fi |
130 | ||
6c57b87f | 131 | AC_CONFIG_FILES([Makefile]) |
bb3eddb5 | 132 | AC_OUTPUT |