Initial revision
[deliverable/binutils-gdb.git] / bfd / configure.in
CommitLineData
21c9f626
RP
1# This file is a shell script that supplies the information necessary
2# to tailor a template configure script into the configure script
3# appropriate for this directory. For more information, check any
4# existing configure script.
5
6srctrigger=libbfd.c
5b2765bf 7srcname="BFD"
21c9f626
RP
8
9# per-host:
10
5b2765bf
JG
11case "${host_cpu}" in
12
13rs6000) my_host=rs6000
14 ;;
15
16mips)
17 case "${host_vendor}" in
18 dec) my_host=decstation ;;
19 sgi) my_host=irix3 ;;
20 esac
21 ;;
22
23m88k)
24 case "${host_vendor}" in
01dd1b2b
SC
25 motorola)
26 my_host=delta88 ;;
5b2765bf
JG
27 *)
28 case "${host_os}" in
29 dgux) my_host=dgux ;;
4dfe09da
RP
30 esac
31 ;;
5b2765bf
JG
32 esac
33 ;;
34
35m68k)
36 case "${host_vendor}" in
37 cbm)
38 case ${host_os} in
39 amigados) my_host=amigados ;;
40 svr4) my_host=amix ;;
4dfe09da
RP
41 esac
42 ;;
5b2765bf
JG
43 hp)
44 case "${host_os}" in
45 hpux) my_host=hp9000 ;;
46 bsd) my_host=hp300bsd ;;
4dfe09da
RP
47 esac
48 ;;
5b2765bf
JG
49 sony) my_host=news ;;
50 sun) my_host=sun3 ;;
51 esac
52 ;;
4dfe09da 53
5b2765bf
JG
54i386)
55 case "${host_vendor}" in
56 *)
57 case "${host_os}" in
58 sysv) my_host=i386v ;;
59 mach) my_host=i386mach ;;
60 msdos) my_host=dose ;;
4dfe09da
RP
61 esac
62 ;;
5b2765bf
JG
63 esac
64 ;;
4dfe09da 65
5b2765bf
JG
66sparc)
67 case "${host_os}" in
52bcb9e3 68 sunos64) my_host=sparc-ll ;;
5b2765bf
JG
69 *) my_host=sparc ;;
70 esac
71 ;;
4dfe09da 72
5b2765bf
JG
73romp) my_host=rtbsd
74 ;;
126334ae 75
5b2765bf
JG
76a29k) my_host=ultra3
77 ;;
126334ae 78
5b2765bf
JG
79tahoe)
80 my_host=tahoe
81 ;;
82
83vax)
84 case "${host_os}" in
85 ultrix) my_host=vaxult ;;
86 *) my_host=vaxbsd ;;
4dfe09da 87 esac
5b2765bf
JG
88 ;;
89esac
4dfe09da 90
5b2765bf
JG
91# Set up to make a link between the host's include file and "sysdep.h".
92files="hosts/h-${my_host}.h"
93links="sysdep.h"
94
95if [ ! -f ${files} ] ; then
96 if [ -n "${my_host}" ] ; then
97 echo '***' No file ${files}
98 fi
99 echo '***' ${srcname} does not support host ${host}
21c9f626
RP
100 exit 1
101fi
102
5b2765bf 103host_makefile_frag=
4b39ad32
SC
104if [ -f config/mh-${my_host} ] ; then
105 host_makefile_frag=config/mh-${my_host}
5b2765bf 106fi
4dfe09da 107
21c9f626
RP
108# per-target:
109
a71bfbcc 110case "${target_vendor}" in
5b2765bf 111aout | coff | bout | elf) bfd_target=${target_cpu}-${target_vendor} ;;
a71bfbcc
RP
112sony) bfd_target=news ;;
113intel) bfd_target=${target_cpu}-coff ;;
5b2765bf 114cbm) bfd_target=${target_cpu}-elf ;;
4e6f9223 115
cbdc7909
JG
116ibm) my_host=rs6000
117 case "${target_cpu}" in
118 rs6000) bfd_target=rs6000 ;;
119 esac
120 ;;
121
a928109b
JG
122amd)
123 case "${target_os}" in
124 ebmon) bfd_target=a29k-coff ;;
125 *) bfd_target=a29k-aout ;;
126 esac
127 ;;
128
4e6f9223
SC
129hitachi)
130 case "${target_cpu}" in
131 h8300) bfd_target=h8300-ieee ;;
132 *) echo "bad hitachi cpu" ;;
133 esac
134 ;;
135
136
a71bfbcc 137wrs)
4dfe09da 138 case "${target_cpu}" in
a71bfbcc
RP
139 i960) bfd_target=i960-bout ;;
140 m68k) bfd_target=m68k-aout ;;
4dfe09da
RP
141 esac
142 ;;
a71bfbcc 143sun)
4dfe09da 144 case "${target_cpu}" in
a71bfbcc
RP
145 m68k) bfd_target=m68k-aout ;;
146 sparc) bfd_target=sparc-aout ;;
147 esac
148 ;;
149dec)
150 case "${target_cpu}" in
a928109b 151 mips) bfd_target=decstation ;;
2ccc2383 152 vax) bfd_target=vax ;;
a71bfbcc
RP
153 esac
154 ;;
155hp)
156 case "${target_cpu}" in
157 m68k)
158 case "${target_os}" in
159 hpux) bfd_target=hp9000 ;;
160 bsd) bfd_target=hp300bsd ;;
4dfe09da
RP
161 esac
162 ;;
163 esac
164 ;;
4e6f9223
SC
165sgi)
166 case "${target_cpu}" in
167 mips)
168 bfd_target=irix3 ;;
169 esac
170 ;;
4b39ad32 171none|nyu|sco)
69e87de2 172 case "${target_cpu}" in
4b39ad32 173 i386) bfd_target=i386_coff ;;
f48e2647 174 a29k) case "${target_os}" in
126334ae
JG
175 aout) bfd_target=a29k-aout ;;
176 coff) bfd_target=a29k-coff ;;
177 sym1) bfd_target=a29k-coff ;;
178 esac
179 ;;
4e6f9223 180 tahoe | vax) bfd_target=${target_cpu} ;;
69e87de2
RP
181 esac
182 ;;
01dd1b2b
SC
183motorola)
184 case "${target_cpu}" in
185 m88k) bfd_target=m88kbcs ;;
186 esac
187 ;;
a71bfbcc
RP
188*)
189 case "${target_cpu}" in
190 tahoe | vax) bfd_target=${target_cpu} ;;
191 esac
192 ;;
4dfe09da
RP
193esac
194
4b39ad32 195if [ ! -f config/mt-${bfd_target} ] ; then
5b2765bf 196 if [ -n "${bfd_target}" ] ; then
4b39ad32 197 echo '***' No file config/mt-${bfd_target}
5b2765bf
JG
198 fi
199 echo '***' BFD does not support target ${target}
21c9f626
RP
200 exit 1
201fi
4b39ad32 202target_makefile_frag=config/mt-${bfd_target}
4dfe09da 203
5b2765bf
JG
204# We don't do any links based on the target system, just very minor makefile
205# config.
This page took 0.046351 seconds and 4 git commands to generate.