OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [sim/] [configure.ac] - Blame information for rev 853

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.