Add more m32r support.
[deliverable/binutils-gdb.git] / sim / configure.in
CommitLineData
1ffd292b 1dnl Process this file with autoconf to produce a configure script.
78c09e4a 2AC_PREREQ(2.5)dnl
1ffd292b 3AC_INIT(Makefile.in)
b0c9f026 4
ed086b0a 5AC_PROG_CC
78c09e4a 6AC_PROG_INSTALL
ed086b0a
FF
7AC_CHECK_TOOL(AR, ar)
8AC_CHECK_TOOL(RANLIB, ranlib, :)
9
1ffd292b
C
10AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/..)
11AC_CANONICAL_SYSTEM
12AC_ARG_PROGRAM
6f07ee29
MM
13AC_PROG_CC
14AC_SUBST(CFLAGS)
15AC_SUBST(HDEFINES)
16AR=${AR-ar}
17AC_SUBST(AR)
18AC_PROG_RANLIB
19
20# Put a plausible default for CC_FOR_BUILD in Makefile.
21AC_C_CROSS
22if test "x$cross_compiling" = "xno"; then
23 CC_FOR_BUILD='$(CC)'
24else
25 CC_FOR_BUILD=gcc
26fi
27AC_SUBST(CC_FOR_BUILD)
b0c9f026 28
e218c1be
MM
29# The PowerPC simulator uses the GCC extension long long as well as
30# ANSI prototypes, so don't enable it for random host compilers
31# unless asked to.
32
f50dc105
MM
33AC_ARG_ENABLE(sim-powerpc,
34[ --enable-sim-powerpc ],
35[case "${enableval}" in
36yes) powerpc_sim=yes ;;
37no) powerpc_sim=no ;;
38*) AC_MSG_ERROR(bad value ${enableval} given for sim-powerpc option) ;;
39esac],[if test x"$GCC" != x""; then powerpc_sim=yes; else powerpc_sim=no; fi])
40
b0c9f026
SC
41# WHEN ADDING ENTRIES TO THIS MATRIX:
42# Make sure that the left side always has two dashes. Otherwise you
43# can get spurious matches. Even for unambiguous cases, do this as a
44# convention, else the table becomes a real mess to understand and maintain.
45
46case "${target}" in
d32033ad 47 arm*-*-*) sim_target=arm ;;
745a0437
MH
48# start-sanitize-d10v
49 d10v-*-*) sim_target=d10v ;;
50# end-sanitize-d10v
1ffd292b 51 h8300*-*-*) sim_target=h8300 ;;
47dba87a 52 h8500-*-*) sim_target=h8500 ;;
68867afb
ILT
53 mips*-*-*)
54 # The MIPS simulator can only be compiled
55 # by gcc.
56 if test "${GCC}" = "yes"; then
57 sim_target=mips
58 else
59 sim_target=none
60 fi
61 ;;
6c19c2ef 62 sh*-*-*) sim_target=sh ;;
5ea7fa7a 63 powerpc*-*-eabi* | powerpc*-*-solaris* | powerpc*-*-sysv4* | powerpc*-*-elf* )
68867afb 64 if test x"$powerpc_sim" = x"yes"; then sim_target=ppc; fi ;;
085114ca 65# start-sanitize-v850
aee4f36a
JL
66 v850-*-*)
67 # The V850 simulator can only be compiled
68 # by gcc.
69 if test "${GCC}" = "yes"; then
70 sim_target=v850
71 else
72 sim_target=none
73 fi
74 ;;
085114ca 75# end-sanitize-v850
6c19c2ef 76 w65-*-*) sim_target=w65 ;;
1ffd292b 77 z8k*-*-*) sim_target=z8k ;;
f39a09c9 78 sparc*-*-*) # The SPARC simulator can only be compiled
68867afb 79 # by gcc.
aac160d2
ILT
80 if test "${GCC}" = "yes"; then
81 sim_target=erc32
82 else
68867afb 83 sim_target=none
aac160d2
ILT
84 fi
85 ;;
47dba87a 86 *) sim_target=none ;;
b0c9f026
SC
87esac
88
89configdirs=${sim_target}
1ffd292b 90AC_CONFIG_SUBDIRS($configdirs)
b0c9f026 91
1ffd292b 92AC_OUTPUT(Makefile)
23de525f
PS
93
94exit 0
This page took 0.141563 seconds and 4 git commands to generate.