ChangeLog: sim/cr16/: New directory. Added tests for CR16 simulator.
[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 ;;
f6bcefef
HPN
54 cris-*-* | crisv32-*-*)
55 AC_CONFIG_SUBDIRS(cris)
56 testsuite=yes
f6bcefef 57 ;;
b7026657
AC
58 d10v-*-*)
59 AC_CONFIG_SUBDIRS(d10v)
60 ;;
61 frv-*-*)
62 AC_CONFIG_SUBDIRS(frv)
63 testsuite=yes
b7026657
AC
64 ;;
65 h8300*-*-*)
66 AC_CONFIG_SUBDIRS(h8300)
67 testsuite=yes
edece237
CV
68 ;;
69 iq2000-*-*)
70 AC_CONFIG_SUBDIRS(iq2000)
71 testsuite=yes
b7026657 72 ;;
d45a4bef
JB
73 m32c-*-*)
74 AC_CONFIG_SUBDIRS(m32c)
d45a4bef 75 ;;
b7026657
AC
76 m32r-*-*)
77 AC_CONFIG_SUBDIRS(m32r)
78 testsuite=yes
b7026657
AC
79 ;;
80 m68hc11-*-*|m6811-*-*)
81 AC_CONFIG_SUBDIRS(m68hc11)
82 testsuite=yes
b7026657
AC
83 ;;
84 mcore-*-*)
85 AC_CONFIG_SUBDIRS(mcore)
86 testsuite=yes
b7026657
AC
87 ;;
88 mips*-*-*)
89 AC_CONFIG_SUBDIRS(mips)
90 testsuite=yes
91 igen=yes
92 ;;
93 mn10300*-*-*)
94 AC_CONFIG_SUBDIRS(mn10300)
95 igen=yes
96 ;;
cecb04b7 97 sh64*-*-*)
21bc7567
CV
98 AC_CONFIG_SUBDIRS(sh64)
99 testsuite=yes
21bc7567 100 ;;
cecb04b7 101 sh*-*-*)
b7026657
AC
102 AC_CONFIG_SUBDIRS(sh)
103 testsuite=yes
b7026657 104 ;;
ce928021
DJ
105 sparc-*-rtems*|sparc-*-elf*)
106 AC_CONFIG_SUBDIRS(erc32)
107 testsuite=yes
ce928021 108 ;;
b7026657
AC
109 powerpc*-*-* )
110 AC_CONFIG_SUBDIRS(ppc)
b7026657
AC
111 ;;
112 v850*-*-* )
113 AC_CONFIG_SUBDIRS(v850)
c3357c64 114 igen=yes
c5fbc25b 115 testsuite=yes
b7026657 116 ;;
c4d800ae
HPN
117 *)
118 # No simulator subdir, so the subdir "common" isn't needed.
119 common=no
120 ;;
b7026657
AC
121 esac
122 if test "$testsuite" = yes; then
123 AC_CONFIG_SUBDIRS(testsuite)
124 fi
125 if test "$common" = yes; then
126 AC_CONFIG_SUBDIRS(common)
127 fi
128 if test "$igen" = yes; then
129 AC_CONFIG_SUBDIRS(igen)
130 fi
131fi
132
133AC_OUTPUT(Makefile)
134
135exit 0
This page took 0.144052 seconds and 4 git commands to generate.