Commit | Line | Data |
---|---|---|
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 | # <rich@cygnus.com>. | |
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 | ||
30 | srctrigger=as.c | |
31 | srcname="gas" | |
8a24a37c | 32 | need_bfd= |
79a54a5b | 33 | configdirs=doc |
1058238c | 34 | |
353deb84 RP |
35 | # per-host: |
36 | ||
b678740d | 37 | gas_host=generic |
fecd2382 | 38 | |
984cf2d7 | 39 | case "${host}" in |
85825401 ILT |
40 | a29k-*-* | rs6000-*-* | vax-*-*) |
41 | case "${host_os}" in | |
42 | vms*) gas_host=vms ;; | |
43 | bsd*) gas_host=bsd ;; | |
44 | *) gas_host=${host_cpu} ;; | |
45 | esac | |
984cf2d7 ME |
46 | ;; |
47 | mips-dec-ultrix) | |
48 | gas_host=decstation | |
49 | ;; | |
85825401 | 50 | i[34]86-ibm-aix*) |
984cf2d7 ME |
51 | gas_host=i386aix |
52 | ;; | |
85825401 ILT |
53 | i[34]86-*-isc*) |
54 | gas_host=sysv | |
55 | ;; | |
984cf2d7 ME |
56 | m68k-sun-sunos*) |
57 | gas_host=sun3 | |
58 | ;; | |
59 | i386-sun-sunos*) | |
60 | gas_host=sun386 | |
61 | ;; | |
0f8b9790 | 62 | sparc-sun-sunos*) |
984cf2d7 ME |
63 | gas_host=sun4 |
64 | ;; | |
0f8b9790 DZ |
65 | sparc-sun-solaris2) |
66 | gas_host=sysv | |
67 | ;; | |
984cf2d7 ME |
68 | *-*-ansi | *-*-ultrix | *-*-hpux | *-*-sysv*) |
69 | gas_host=${host_os} | |
70 | ;; | |
74cc5508 RP |
71 | esac |
72 | ||
b678740d RP |
73 | # per-target: |
74 | ||
75 | # assign cpu type | |
76 | emulation=generic | |
77 | ||
78 | cpu_type=${target_cpu} | |
79 | ||
b53ccaac ILT |
80 | # check for architecture variants |
81 | case ${target_cpu} in | |
984cf2d7 | 82 | sparclite) cpu_type=sparc ;; |
6ea6d0e3 | 83 | sparc64) cpu_type=sparc obj_format=aout ;; |
984cf2d7 ME |
84 | m680[01234]0) cpu_type=m68k ;; |
85 | m683?2) cpu_type=m68k ;; | |
b53ccaac ILT |
86 | esac |
87 | ||
88 | gas_target=${cpu_type} | |
89 | ||
74cc5508 | 90 | # assign object format |
984cf2d7 ME |
91 | case ${target} in |
92 | a29k-amd-udi) | |
93 | obj_format=coffbfd | |
94 | need_bfd="./../bfd/libbfd.a" | |
95 | gas_target=ebmon29k | |
96 | ;; | |
97 | a29k-amd-ebmon) | |
98 | obj_format=coffbfd | |
99 | need_bfd="./../bfd/libbfd.a" | |
100 | gas_target=ebmon29k | |
101 | ;; | |
102 | a29k-amd-ebmonold) | |
103 | obj_format=coff | |
104 | need_bfd="./../bfd/libbfd.a" | |
105 | gas_target=ebmon29k | |
106 | ;; | |
107 | i[34]86-ibm-aix*) | |
85825401 ILT |
108 | obj_format=coffbfd |
109 | need_bfd="./../bfd/libbfd.a" | |
110 | gas_target=i386coff | |
984cf2d7 ME |
111 | emulation=i386aix |
112 | ;; | |
113 | i[34]86-*-bsd*) | |
114 | obj_format=aout | |
984cf2d7 | 115 | ;; |
85825401 | 116 | i[34]86-*-coff | i[34]86-*-sysv* | i[34]86-*-sco* | i[34]86-*-isc*) |
984cf2d7 ME |
117 | obj_format=coffbfd |
118 | need_bfd="./../bfd/libbfd.a" | |
119 | gas_target=i386coff | |
120 | ;; | |
6efd877d KR |
121 | i[34]86-*-go32) |
122 | obj_format=aout | |
123 | ;; | |
984cf2d7 ME |
124 | i960-wrs-vxworks) |
125 | obj_format=bout | |
126 | ;; | |
127 | i960-*-coff) | |
128 | obj_format=coff | |
129 | emulation=ic960 | |
130 | ;; | |
131 | m68k-wrs-vxworks) | |
132 | obj_format=aout | |
133 | emulation=sun3 | |
134 | ;; | |
135 | m68k-ericsson-[Oo][Ss][Ee]) | |
136 | obj_format=aout | |
137 | emulation=sun3 | |
138 | ;; | |
139 | m68k-*-coff) | |
140 | obj_format=coffbfd | |
141 | need_bfd="./../bfd/libbfd.a" | |
142 | gas_target=m68kcoff | |
143 | ;; | |
6ea6d0e3 ME |
144 | sparclite-fujitsu-none) |
145 | obj_format=aout | |
146 | ;; | |
85825401 | 147 | *-*-aout | *-*-scout | *-*-linux) |
984cf2d7 ME |
148 | obj_format=aout |
149 | ;; | |
150 | *-*-bout* | *-*-nindy*) | |
151 | obj_format=bout | |
152 | ;; | |
153 | *-*-bsd* | *-*-sunos*) | |
154 | obj_format=aout | |
155 | emulation=sun3 | |
156 | ;; | |
157 | *-*-generic) | |
158 | obj_format=generic | |
159 | ;; | |
160 | *-*-xray | *-*-hms) | |
161 | obj_format=coffbfd | |
162 | need_bfd="./../bfd/libbfd.a" | |
163 | ;; | |
164 | *-*-sysv32) | |
165 | obj_format=coff | |
166 | emulation=sysv32 | |
167 | ;; | |
168 | *-*-sim) | |
169 | obj_format=coffbfd | |
170 | need_bfd="./../bfd/libbfd.a" | |
171 | ;; | |
172 | *-*-coff* | *-sysv* | *-*-sco*) | |
173 | obj_format=coff | |
174 | case ${target_vendor} in | |
175 | bull) emulation=dpx2 ;; | |
176 | sun) emulation=sun3 ;; | |
177 | esac | |
178 | ;; | |
179 | *-*-vxworks) | |
180 | obj_format=aout | |
181 | ;; | |
182 | *-*-coff) | |
183 | obj_format=coff | |
184 | ;; | |
85825401 ILT |
185 | *-*-vms) |
186 | obj_format=vms | |
187 | ;; | |
fecd2382 RP |
188 | esac |
189 | ||
74cc5508 | 190 | # assign floating point type |
b678740d | 191 | case ${target_cpu} in |
984cf2d7 ME |
192 | ns32k) atof=ns32k ;; |
193 | vax) atof=vax ;; | |
85825401 | 194 | tahoe) atof=tahoe ;; |
984cf2d7 | 195 | *) atof=ieee ;; |
fecd2382 RP |
196 | esac |
197 | ||
8a24a37c SC |
198 | # and target makefile frag |
199 | ||
b53ccaac | 200 | target_makefile_frag=config/${gas_target}.mt |
8a24a37c | 201 | |
b678740d | 202 | files="config/ho-${gas_host}.h config/tc-${cpu_type}.c \ |
353deb84 | 203 | config/tc-${cpu_type}.h config/te-${emulation}.h \ |
74cc5508 RP |
204 | config/obj-${obj_format}.h config/obj-${obj_format}.c \ |
205 | config/atof-${atof}.c" | |
206 | ||
fecd2382 | 207 | links="host.h targ-cpu.c targ-cpu.h targ-env.h obj-format.h obj-format.c atof-targ.c" |
8b228fe9 RP |
208 | |
209 | # end of gas/configure.in |