Ran "indent", for GNU coding style; some code & comments still need fixup.
[deliverable/binutils-gdb.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# <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
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 75 sparclite) cpu_type=sparc ;;
6ea6d0e3 76 sparc64) cpu_type=sparc obj_format=aout ;;
984cf2d7
ME
77 m680[01234]0) cpu_type=m68k ;;
78 m683?2) cpu_type=m68k ;;
b53ccaac
ILT
79esac
80
81gas_target=${cpu_type}
82
74cc5508 83# assign object format
984cf2d7
ME
84case ${target} in
85 a29k-amd-udi)
86 obj_format=coffbfd
87 need_bfd="./../bfd/libbfd.a"
88 gas_target=ebmon29k
89 ;;
90 a29k-amd-ebmon)
91 obj_format=coffbfd
92 need_bfd="./../bfd/libbfd.a"
93 gas_target=ebmon29k
94 ;;
95 a29k-amd-ebmonold)
96 obj_format=coff
97 need_bfd="./../bfd/libbfd.a"
98 gas_target=ebmon29k
99 ;;
100 i[34]86-ibm-aix*)
101 obj_format=coff
102 gas_target=i386aix
103 emulation=i386aix
104 ;;
105 i[34]86-*-bsd*)
106 obj_format=aout
984cf2d7 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 ;;
6efd877d
KR
113 i[34]86-*-go32)
114 obj_format=aout
115 ;;
984cf2d7
ME
116 i960-wrs-vxworks)
117 obj_format=bout
118 ;;
119 i960-*-coff)
120 obj_format=coff
121 emulation=ic960
122 ;;
123 m68k-wrs-vxworks)
124 obj_format=aout
125 emulation=sun3
126 ;;
127 m68k-ericsson-[Oo][Ss][Ee])
128 obj_format=aout
129 emulation=sun3
130 ;;
131 m68k-*-coff)
132 obj_format=coffbfd
133 need_bfd="./../bfd/libbfd.a"
134 gas_target=m68kcoff
135 ;;
6ea6d0e3
ME
136 sparclite-fujitsu-none)
137 obj_format=aout
138 ;;
984cf2d7
ME
139 *-*-aout | *-*-scout)
140 obj_format=aout
141 ;;
142 *-*-bout* | *-*-nindy*)
143 obj_format=bout
144 ;;
145 *-*-bsd* | *-*-sunos*)
146 obj_format=aout
147 emulation=sun3
148 ;;
149 *-*-generic)
150 obj_format=generic
151 ;;
152 *-*-xray | *-*-hms)
153 obj_format=coffbfd
154 need_bfd="./../bfd/libbfd.a"
155 ;;
156 *-*-sysv32)
157 obj_format=coff
158 emulation=sysv32
159 ;;
160 *-*-sim)
161 obj_format=coffbfd
162 need_bfd="./../bfd/libbfd.a"
163 ;;
164 *-*-coff* | *-sysv* | *-*-sco*)
165 obj_format=coff
166 case ${target_vendor} in
167 bull) emulation=dpx2 ;;
168 sun) emulation=sun3 ;;
169 esac
170 ;;
171 *-*-vxworks)
172 obj_format=aout
173 ;;
174 *-*-coff)
175 obj_format=coff
176 ;;
fecd2382
RP
177esac
178
74cc5508 179# assign floating point type
b678740d 180case ${target_cpu} in
984cf2d7
ME
181 ns32k) atof=ns32k ;;
182 vax) atof=vax ;;
183 *) atof=ieee ;;
fecd2382
RP
184esac
185
8a24a37c
SC
186# and target makefile frag
187
b53ccaac 188target_makefile_frag=config/${gas_target}.mt
8a24a37c 189
b678740d 190files="config/ho-${gas_host}.h config/tc-${cpu_type}.c \
353deb84 191 config/tc-${cpu_type}.h config/te-${emulation}.h \
74cc5508
RP
192 config/obj-${obj_format}.h config/obj-${obj_format}.c \
193 config/atof-${atof}.c"
194
fecd2382 195links="host.h targ-cpu.c targ-cpu.h targ-env.h obj-format.h obj-format.c atof-targ.c"
8b228fe9
RP
196
197# end of gas/configure.in
This page took 0.062354 seconds and 4 git commands to generate.