Add initial support for .debug_sup sections.
[deliverable/binutils-gdb.git] / sim / configure.ac
1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(Makefile.in)
3 AC_CONFIG_MACRO_DIRS([.. ../config])
4
5 AC_PROG_CC
6 AC_PROG_INSTALL
7 AC_CHECK_TOOL(AR, ar)
8 AC_CHECK_TOOL(RANLIB, ranlib, :)
9
10 AC_CANONICAL_SYSTEM
11 AC_ARG_PROGRAM
12 AC_PROG_CC
13 AC_PROG_CPP
14 AC_SUBST(CFLAGS)
15 AR=${AR-ar}
16 AC_SUBST(AR)
17 AC_PROG_RANLIB
18
19 # Put a plausible default for CC_FOR_BUILD in Makefile.
20 if test -z "$CC_FOR_BUILD"; then
21 if test "x$cross_compiling" = "xno"; then
22 CC_FOR_BUILD='$(CC)'
23 else
24 CC_FOR_BUILD=gcc
25 fi
26 fi
27 AC_SUBST(CC_FOR_BUILD)
28 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
29 AC_SUBST(CFLAGS_FOR_BUILD)
30
31 # If a cpu ever has more than one simulator to choose from, use
32 # --enable-sim=... to choose.
33 AC_ARG_ENABLE(sim,
34 [AS_HELP_STRING([--enable-sim], [Enable the GNU simulator])],
35 [case "${enableval}" in
36 yes | no) ;;
37 *) AC_MSG_ERROR(bad value ${enableval} given for --enable-sim option) ;;
38 esac])
39
40 dnl WHEN ADDING ENTRIES TO THIS MATRIX:
41 dnl Make sure that the left side always has two dashes. Otherwise you can get
42 dnl spurious matches. Even for unambiguous cases, do this as a convention, else
43 dnl the table becomes a real mess to understand and maintain.
44 if test "${enable_sim}" != no; then
45 sim_igen=no
46 case "${target}" in
47 aarch64*-*-*)
48 AC_CONFIG_SUBDIRS(aarch64)
49 ;;
50 arm*-*-*)
51 AC_CONFIG_SUBDIRS(arm)
52 ;;
53 avr*-*-*)
54 AC_CONFIG_SUBDIRS(avr)
55 ;;
56 bfin-*-*)
57 AC_CONFIG_SUBDIRS(bfin)
58 ;;
59 bpf-*-*)
60 AC_CONFIG_SUBDIRS(bpf)
61 ;;
62 cr16*-*-*)
63 AC_CONFIG_SUBDIRS(cr16)
64 ;;
65 cris-*-* | crisv32-*-*)
66 AC_CONFIG_SUBDIRS(cris)
67 ;;
68 d10v-*-*)
69 AC_CONFIG_SUBDIRS(d10v)
70 ;;
71 frv-*-*)
72 AC_CONFIG_SUBDIRS(frv)
73 ;;
74 h8300*-*-*)
75 AC_CONFIG_SUBDIRS(h8300)
76 ;;
77 iq2000-*-*)
78 AC_CONFIG_SUBDIRS(iq2000)
79 ;;
80 lm32-*-*)
81 AC_CONFIG_SUBDIRS(lm32)
82 ;;
83 m32c-*-*)
84 AC_CONFIG_SUBDIRS(m32c)
85 ;;
86 m32r-*-*)
87 AC_CONFIG_SUBDIRS(m32r)
88 ;;
89 m68hc11-*-*|m6811-*-*)
90 AC_CONFIG_SUBDIRS(m68hc11)
91 ;;
92 mcore-*-*)
93 AC_CONFIG_SUBDIRS(mcore)
94 ;;
95 microblaze-*-*)
96 AC_CONFIG_SUBDIRS(microblaze)
97 ;;
98 mips*-*-*)
99 AC_CONFIG_SUBDIRS(mips)
100 sim_igen=yes
101 ;;
102 mn10300*-*-*)
103 AC_CONFIG_SUBDIRS(mn10300)
104 sim_igen=yes
105 ;;
106 moxie-*-*)
107 AC_CONFIG_SUBDIRS(moxie)
108 ;;
109 msp430*-*-*)
110 AC_CONFIG_SUBDIRS(msp430)
111 ;;
112 or1k-*-* | or1knd-*-*)
113 AC_CONFIG_SUBDIRS(or1k)
114 ;;
115 pru*-*-*)
116 AC_CONFIG_SUBDIRS(pru)
117 ;;
118 riscv*-*-*)
119 AC_CONFIG_SUBDIRS(riscv)
120 ;;
121 rl78-*-*)
122 AC_CONFIG_SUBDIRS(rl78)
123 ;;
124 rx-*-*)
125 AC_CONFIG_SUBDIRS(rx)
126 ;;
127 sh*-*-*)
128 AC_CONFIG_SUBDIRS(sh)
129 ;;
130 sparc-*-rtems*|sparc-*-elf*)
131 AC_CONFIG_SUBDIRS(erc32)
132 ;;
133 powerpc*-*-*)
134 AC_CONFIG_SUBDIRS(ppc)
135 ;;
136 ft32-*-*)
137 AC_CONFIG_SUBDIRS(ft32)
138 ;;
139 v850*-*-*)
140 AC_CONFIG_SUBDIRS(v850)
141 sim_igen=yes
142 ;;
143 esac
144 if test "$sim_igen" = yes; then
145 AC_CONFIG_SUBDIRS(igen)
146 fi
147 fi
148
149 AC_CONFIG_FILES([Makefile testsuite/Makefile])
150 AC_OUTPUT
This page took 0.042738 seconds and 4 git commands to generate.