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