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