]> Git Repo - binutils.git/blame - gas/configure.in
* config/a29k-aout.mt (DEFAULT_TARGET): Set to one that exists.
[binutils.git] / gas / configure.in
CommitLineData
6d5460ab 1# This file is configure.in
79a54a5b
RP
2#
3# Copyright (C) 1987-1992 Free Software Foundation, Inc.
4#
5# This file is part of GAS, the GNU Assembler.
6#
7# GAS is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation; either version 2, or (at your option)
10# any later version.
11#
12# GAS is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with GAS; see the file COPYING. If not, write to
19# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
20#
21
8c1b25e4
RP
22# This file was written, and is maintained by K. Richard Pixley
23# <[email protected]>.
24
fecd2382
RP
25# This file is a shell script that supplies the information necessary
26# to tailor a template configure script into the configure script
27# appropriate for this directory. For more information, check any
28# existing configure script.
29
30srctrigger=as.c
31srcname="gas"
8a24a37c 32need_bfd=
79a54a5b 33configdirs=doc
1058238c 34
353deb84
RP
35# per-host:
36
b678740d 37gas_host=generic
fecd2382 38
984cf2d7
ME
39case "${host}" in
40 a29k-*-* | rs6000-*-* | vax-*-*)
41 gas_host=${host_cpu}
42 ;;
43 mips-dec-ultrix)
44 gas_host=decstation
45 ;;
46 i386-ibm-aix)
47 gas_host=i386aix
48 ;;
49 m68k-sun-sunos*)
50 gas_host=sun3
51 ;;
52 i386-sun-sunos*)
53 gas_host=sun386
54 ;;
0f8b9790 55 sparc-sun-sunos*)
984cf2d7
ME
56 gas_host=sun4
57 ;;
0f8b9790
DZ
58 sparc-sun-solaris2)
59 gas_host=sysv
60 ;;
984cf2d7
ME
61 *-*-ansi | *-*-ultrix | *-*-hpux | *-*-sysv*)
62 gas_host=${host_os}
63 ;;
74cc5508
RP
64esac
65
b678740d
RP
66# per-target:
67
68# assign cpu type
69emulation=generic
70
71cpu_type=${target_cpu}
72
b53ccaac
ILT
73# check for architecture variants
74case ${target_cpu} in
984cf2d7
ME
75 sparclite) cpu_type=sparc ;;
76 m680[01234]0) cpu_type=m68k ;;
77 m683?2) cpu_type=m68k ;;
b53ccaac
ILT
78esac
79
80gas_target=${cpu_type}
81
74cc5508 82# assign object format
984cf2d7
ME
83case ${target} in
84 a29k-amd-udi)
85 obj_format=coffbfd
86 need_bfd="./../bfd/libbfd.a"
87 gas_target=ebmon29k
88 ;;
89 a29k-amd-ebmon)
90 obj_format=coffbfd
91 need_bfd="./../bfd/libbfd.a"
92 gas_target=ebmon29k
93 ;;
94 a29k-amd-ebmonold)
95 obj_format=coff
96 need_bfd="./../bfd/libbfd.a"
97 gas_target=ebmon29k
98 ;;
99 i[34]86-ibm-aix*)
100 obj_format=coff
101 gas_target=i386aix
102 emulation=i386aix
103 ;;
104 i[34]86-*-bsd*)
105 obj_format=aout
106 emulation=i386bsd
107 ;;
65391245 108 i[34]86-*-coff | i[34]86-*-sysv* | i[34]86-*-sco*)
984cf2d7
ME
109 obj_format=coffbfd
110 need_bfd="./../bfd/libbfd.a"
111 gas_target=i386coff
112 ;;
113 i960-wrs-vxworks)
114 obj_format=bout
115 ;;
116 i960-*-coff)
117 obj_format=coff
118 emulation=ic960
119 ;;
120 m68k-wrs-vxworks)
121 obj_format=aout
122 emulation=sun3
123 ;;
124 m68k-ericsson-[Oo][Ss][Ee])
125 obj_format=aout
126 emulation=sun3
127 ;;
128 m68k-*-coff)
129 obj_format=coffbfd
130 need_bfd="./../bfd/libbfd.a"
131 gas_target=m68kcoff
132 ;;
133 *-*-aout | *-*-scout)
134 obj_format=aout
135 ;;
136 *-*-bout* | *-*-nindy*)
137 obj_format=bout
138 ;;
139 *-*-bsd* | *-*-sunos*)
140 obj_format=aout
141 emulation=sun3
142 ;;
143 *-*-generic)
144 obj_format=generic
145 ;;
146 *-*-xray | *-*-hms)
147 obj_format=coffbfd
148 need_bfd="./../bfd/libbfd.a"
149 ;;
150 *-*-sysv32)
151 obj_format=coff
152 emulation=sysv32
153 ;;
154 *-*-sim)
155 obj_format=coffbfd
156 need_bfd="./../bfd/libbfd.a"
157 ;;
158 *-*-coff* | *-sysv* | *-*-sco*)
159 obj_format=coff
160 case ${target_vendor} in
161 bull) emulation=dpx2 ;;
162 sun) emulation=sun3 ;;
163 esac
164 ;;
165 *-*-vxworks)
166 obj_format=aout
167 ;;
168 *-*-coff)
169 obj_format=coff
170 ;;
fecd2382
RP
171esac
172
74cc5508 173# assign floating point type
b678740d 174case ${target_cpu} in
984cf2d7
ME
175 ns32k) atof=ns32k ;;
176 vax) atof=vax ;;
177 *) atof=ieee ;;
fecd2382
RP
178esac
179
8a24a37c
SC
180# and target makefile frag
181
b53ccaac 182target_makefile_frag=config/${gas_target}.mt
8a24a37c 183
b678740d 184files="config/ho-${gas_host}.h config/tc-${cpu_type}.c \
353deb84 185 config/tc-${cpu_type}.h config/te-${emulation}.h \
74cc5508
RP
186 config/obj-${obj_format}.h config/obj-${obj_format}.c \
187 config/atof-${atof}.c"
188
fecd2382 189links="host.h targ-cpu.c targ-cpu.h targ-env.h obj-format.h obj-format.c atof-targ.c"
8b228fe9
RP
190
191# end of gas/configure.in
This page took 0.144662 seconds and 4 git commands to generate.