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