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.
15 rs6000) my_host=rs6000
19 case "${host_vendor}" in
20 dec) my_host=decstation ;;
23 irix3) my_host=irix3 ;;
24 irix4) my_host=irix4 ;;
31 case "${host_vendor}" in
45 case "${host_vendor}" in
48 amigados) my_host=amigados ;;
49 sysv4*) my_host=amix ;;
54 hpux) my_host=hp9000 ;;
55 bsd) my_host=hp300bsd ;;
62 sysv*) my_host=apollov68 ;;
63 bsd*) my_host=apollo68 ;;
73 case "${host_vendor}" in
76 sysv4*) my_host=ncr3000 ;;
82 sysv4*) my_host=i386v4 ;;
83 sysv* | scosysv*) my_host=i386v ;;
84 mach*) my_host=i386mach ;;
85 msdos*) my_host=dose ;;
86 linux) my_host=i386linux ;;
94 sunos64) my_host=sparc-ll ;;
95 sysv4) my_host=sysv4 ;;
96 solaris2) my_host=solaris2 ;;
97 sysv64) my_host=sysv4-ll ;;
114 ultrix*) my_host=vaxult ;;
119 case "${host_vendor}" in
122 hpux) my_host=hppahpux ;;
123 bsd) my_host=hppabsd ;;
130 # Set up to make a link between the host's include file and "sysdep.h".
131 files="hosts/${my_host}.h"
134 if [ ! -f ${srcdir}/${files} ] ; then
135 if [ -n "${my_host}" ] ; then
136 echo '***' No file ${srcdir}/${files} 1>&2
138 echo '***' ${srcname} does not support host ${host} 1>&2
143 if [ -f ${srcdir}/config/${my_host}.mh ] ; then
144 host_makefile_frag=config/${my_host}.mh
151 rs6000-ibm-* ) bfd_target=rs6000 ;;
153 a29k-amd-ebmon ) bfd_target=a29k-coff ;;
154 a29k-amd-udi ) bfd_target=a29k-coff ;;
155 a29k-amd-* ) bfd_target=a29k-aout ;;
157 h8300-hitachi-* ) bfd_target=h8300-coff ;;
158 *-hitachi-* ) echo "bad hitachi cpu"; exit 1 ;;
160 i960-wrs-* ) bfd_target=i960-bout ;;
161 m68k-wrs-* ) bfd_target=m68k-aout ;;
162 m68k-netx-* ) bfd_target=m68k-aout ;;
163 m680[01234]0-wrs-* ) bfd_target=m68k-aout ;;
164 m680[01234]0-netx-* ) bfd_target=m68k-aout ;;
165 m683?2-wrs-* ) bfd_target=m68k-aout ;;
166 m683?2-netx-* ) bfd_target=m68k-aout ;;
167 sparc-wrs-* ) bfd_target=sparc-aout ;;
169 m68*-ericsson-* ) bfd_target=m68k-aout ;;
171 m68k-sun-* ) bfd_target=m68k-aout ;;
172 m680[01234]0-sun-* ) bfd_target=m68k-aout ;;
173 m683?2-sun-* ) bfd_target=m68k-aout ;;
174 sparc-sun-sysv4 ) bfd_target=sparc-elf ;;
175 sparc-sun-solaris2* ) bfd_target=sparc-elf ;;
176 sparc-sun-* ) bfd_target=sparc-aout ;;
178 mips-dec-* ) bfd_target=decstation ;;
179 vax-dec-* ) bfd_target=vax ;;
181 m68k-hp-hpux ) bfd_target=hp9000 ;;
182 m680[01234]0-hp-hpux ) bfd_target=hp9000 ;;
183 m683?2-hp-hpux ) bfd_target=hp9000 ;;
184 m68k-hp-bsd ) bfd_target=hp300bsd ;;
185 m60[01234]0-hp-bsd ) bfd_target=hp300bsd ;;
186 m683?2-hp-bsd ) bfd_target=hp300bsd ;;
188 mips-sgi-* ) bfd_target=irix3 ;;
189 mips-big-* ) bfd_target=irix3 ;;
191 *-tandem-* ) bfd_target=st2000 ;;
193 m68k-none-os68k ) bfd_target=m68k-aout ;;
194 m680[01234]0-none-os68k ) bfd_target=m68k-aout ;;
195 m683?2-none-os68k ) bfd_target=m68k-aout ;;
196 i386-sco-* ) bfd_target=i386-coff ;;
198 m68*-*-aout ) bfd_target=m68k-aout ;;
199 m68*-*-coff ) bfd_target=m68k-coff ;;
201 a29k-none-aout ) bfd_target=a29k-aout ;;
202 a29k-none-coff ) bfd_target=a29k-coff ;;
203 a29k-nyu-sym1 ) bfd_target=a29k-coff ;;
205 m88k-harris-* ) bfd_target=m88k-coff ;;
206 m88k-motorola-* ) bfd_target=m88k-coff ;;
208 vax-*-* ) bfd_target=vax ;;
209 tahoe-*-* ) bfd_target=tahoe ;;
211 hppa*-hp-hpux ) bfd_target=hppahpux ;;
212 hppa*-hp-bsd ) bfd_target=hppabsd ;;
214 i[34]86-ncr-sysv4* ) bfd_target=i386-elf ;;
216 *-*-aout ) bfd_target=${target_cpu}-aout ;;
217 *-*-bsd ) bfd_target=${target_cpu}-aout ;;
218 *-*-sysv4* ) bfd_target=${target_cpu}-elf ;;
219 *-*-solaris2* ) bfd_target=${target_cpu}-elf ;;
220 *-*-go32 ) bfd_target=${target_cpu}-aout ;;
221 *-*-linux* ) bfd_target=${target_cpu}-linux ;;
222 *-*-sysv* ) bfd_target=${target_cpu}-coff ;;
223 *-*-scosysv* ) bfd_target=${target_cpu}-coff ;;
224 tahoe-*-none ) bfd_target=${target_cpu} ;;
225 vax-*-none ) bfd_target=${target_cpu} ;;
227 # These are obsolete and should be removed. FIXME. -- gnu
228 *-aout-* ) bfd_target=${target_cpu}-aout ;;
229 *-bout-* ) bfd_target=${target_cpu}-bout ;;
230 *-coff-* ) bfd_target=${target_cpu}-coff ;;
231 *-elf-* ) bfd_target=${target_cpu}-elf ;;
233 i386-none-* ) bfd_target=i386-coff ;;
234 *-sony-* ) bfd_target=news ;;
235 *-intel-* ) bfd_target=${target_cpu}-coff ;;
236 *-stratus-* ) bfd_target=${target_cpu}-elf ;;
237 *-cbm-* ) bfd_target=${target_cpu}-elf ;;
238 *-ncr-* ) bfd_target=${target_cpu}-elf ;;
242 if [ ! -f ${srcdir}/config/${bfd_target}.mt ] ; then
243 if [ -n "${bfd_target}" ] ; then
244 echo '***' No file ${srcdir}/config/${bfd_target}.mt 1>&2
246 echo '***' BFD does not support target ${target} 1>&2
247 echo '***' Look in bfd/configure.in for supported targets 1>&2
250 target_makefile_frag=config/${bfd_target}.mt
252 # We don't do any links based on the target system, just very minor makefile