]> Git Repo - binutils.git/blame - gas/configure.in
Add sparclite support.
[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
b678740d
RP
39case "${host_cpu}" in
40a29k | rs6000 | vax) gas_host=${host_cpu} ;;
41mips)
42 case "${host_os}" in
43 ultrix) gas_host=decstation ;;
44 esac
353deb84 45 ;;
6d5460ab
RP
46i386)
47 case "${host_os}" in
48 aix*) gas_host=i386aix ;;
49 esac
50 ;;
74cc5508 51*)
b678740d
RP
52 case "${host_os}" in
53 ansi | ultrix | hpux | sysv*) gas_host=${host_os} ;;
54 *)
55 case "${host_vendor}" in
56 sun)
57 case "${host_cpu}" in
58 m68k) gas_host=sun3 ;;
59 i386) gas_host=sun386 ;;
60 sparc) gas_host=sun4 ;;
61 esac
62 ;;
63 esac
64 ;;
65 esac
74cc5508
RP
66 ;;
67esac
68
b678740d
RP
69# per-target:
70
71# assign cpu type
72emulation=generic
73
74cpu_type=${target_cpu}
75
74cc5508 76# assign object format
b678740d 77case ${target_os} in
6d5460ab
RP
78aix*)
79 case "${target_cpu}" in
80 i386) obj_format=coff
81 target_cpu=i386aix
8c1b25e4 82 emulation=i386aix
6d5460ab
RP
83 ;;
84 esac
85 ;;
86
3c9d74a8 87bout*) obj_format=bout ;;
1058238c 88nindy*) obj_format=bout ;;
3c9d74a8 89bsd* | sunos*) obj_format=aout ;;
8a24a37c 90
ada269da 91ebmon-old)
605cd2a3 92 obj_format=coff
8c1b25e4 93 need_bfd="./../bfd/libbfd.a"
ada269da
SC
94 target_cpu=ebmon29k
95 ;;
96
97ebmon)
8b228fe9 98 obj_format=coffbfd
8c1b25e4 99 need_bfd="./../bfd/libbfd.a"
605cd2a3
SC
100 target_cpu=ebmon29k
101 ;;
3c9d74a8
RP
102
103generic) obj_format=generic ;;
104
4ca727c4
SC
105
106xray | hms)
8b228fe9 107 obj_format=coffbfd
8c1b25e4 108 need_bfd="./../bfd/libbfd.a"
8a24a37c
SC
109 ;;
110
ace68c4e
SC
111sysv32)
112 obj_format=coff
113 emulation=sysv32
114 ;;
3c9d74a8 115
ace68c4e
SC
116coff* | sysv*)
117 obj_format=coff
118
119 case ${target_vendor} in
120 bull) emulation=dpx2 ;;
121 sco) emulation=sco386 ;;
122 sun) emulation=sun3 ;;
123 *)
124 esac
125 ;;
8b228fe9
RP
126vxworks)
127 case ${target_cpu} in
128 i960) obj_format=bout ;;
8c1b25e4
RP
129 m68k)
130 obj_format=aout
131 emulation=sun3
132 ;;
8b228fe9
RP
133 *) obj_format=aout ;;
134 esac
135 ;;
3c9d74a8
RP
136*)
137 case ${target_vendor} in
138 aout) obj_format=aout ;;
139 bout) obj_format=bout ;;
ace68c4e
SC
140 coff)
141 obj_format=coff
142 case ${target_cpu} in
143 i960) emulation=ic960 ;;
144 esac
145 ;;
3c9d74a8
RP
146 *) obj_format=aout ;;
147 esac
74cc5508 148 ;;
3c9d74a8 149
fecd2382
RP
150esac
151
74cc5508 152# assign floating point type
b678740d 153case ${target_cpu} in
79a54a5b
RP
154ns32k) atof=ns32k ;;
155vax) atof=vax ;;
156*) atof=ieee ;;
fecd2382
RP
157esac
158
8a24a37c
SC
159# and target makefile frag
160
4ca727c4 161target_makefile_frag=config/${target_cpu}.mt
8a24a37c 162
b678740d 163files="config/ho-${gas_host}.h config/tc-${cpu_type}.c \
353deb84 164 config/tc-${cpu_type}.h config/te-${emulation}.h \
74cc5508
RP
165 config/obj-${obj_format}.h config/obj-${obj_format}.c \
166 config/atof-${atof}.c"
167
fecd2382 168links="host.h targ-cpu.c targ-cpu.h targ-env.h obj-format.h obj-format.c atof-targ.c"
8b228fe9
RP
169
170# end of gas/configure.in
This page took 0.089699 seconds and 4 git commands to generate.