Vax Ultrix changes from David Taylor <taylor@think.com>.
[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 srctrigger=libbfd.c
7 srcname="bfd"
8
9 # per-host:
10
11 if [ "${host_os}" = "posix" ] ; then
12 bfd_host=posix
13 else
14 case "${host_cpu}" in
15 rs6000) bfd_host=aix ;;
16 mips)
17 case "${host_vendor}" in
18 dec) bfd_host=dec3100 ;;
19 sgi) bfd_host=irix3 ;;
20 esac
21 ;;
22 m88k)
23 case "${host_vendor}" in
24 *)
25 case "${host_os}" in
26 dgux) bfd_host=dgux ;;
27 esac
28 ;;
29 esac
30 ;;
31 m68k)
32 case "${host_vendor}" in
33 hp)
34 case "${host_os}" in
35 hpux) bfd_host=hp9000 ;;
36 bsd) bfd_host=hp300bsd ;;
37 esac
38 ;;
39 sony) bfd_host=news ;;
40 sun) bfd_host=sun3 ;;
41 esac
42 ;;
43
44 i386)
45 case "${host_vendor}" in
46 *)
47 case "${host_os}" in
48 sysv) bfd_host=i386v ;;
49 esac
50 ;;
51 esac
52 ;;
53
54 sparc)
55 case "${host_vendor}" in
56 sun) bfd_host=sun4 ;;
57 esac
58 ;;
59
60 rtpc) bfd_host=rtbsd
61 ;;
62
63 a29k) bfd_host=ultra3
64 ;;
65
66 tahoe)
67 bfd_host=${host_cpu}
68 ;;
69 vax)
70 case "${host_os}" in
71 ultrix) bfd_host=vaxult ;;
72 *) bfd_host=vax ;;
73 esac
74 ;;
75 esac
76 fi
77
78 if [ ! -f config/h-${bfd_host} ] ; then
79 echo '***' BFD does not support host ${host}: no file config/h-${bfd_host}
80 exit 1
81 fi
82
83 host_makefile_frag=config/h-${bfd_host}
84
85 # per-target:
86
87 case "${target_vendor}" in
88 aout | coff | bout) bfd_target=${target_cpu}-${target_vendor} ;;
89 sony) bfd_target=news ;;
90 intel) bfd_target=${target_cpu}-coff ;;
91
92 hitachi)
93 case "${target_cpu}" in
94 h8300) bfd_target=h8300-ieee ;;
95 *) echo "bad hitachi cpu" ;;
96 esac
97 ;;
98
99
100 wrs)
101 case "${target_cpu}" in
102 i960) bfd_target=i960-bout ;;
103 m68k) bfd_target=m68k-aout ;;
104 esac
105 ;;
106 sun)
107 case "${target_cpu}" in
108 m68k) bfd_target=m68k-aout ;;
109 sparc) bfd_target=sparc-aout ;;
110 esac
111 ;;
112 dec)
113 case "${target_cpu}" in
114 mips) bfd_target=dec3100 ;;
115 vax) bfd_target=vax ;;
116 esac
117 ;;
118 hp)
119 case "${target_cpu}" in
120 m68k)
121 case "${target_os}" in
122 hpux) bfd_target=hp9000 ;;
123 bsd) bfd_target=hp300bsd ;;
124 esac
125 ;;
126 esac
127 ;;
128 sgi)
129 case "${target_cpu}" in
130 mips)
131 bfd_target=irix3 ;;
132 esac
133 ;;
134 none|nyu)
135 case "${target_cpu}" in
136 i386) bfd_target=i386-coff ;;
137 a29k) case "${target_os}" in
138 aout) bfd_target=a29k-aout ;;
139 coff) bfd_target=a29k-coff ;;
140 sym1) bfd_target=a29k-coff ;;
141 esac
142 ;;
143 tahoe | vax) bfd_target=${target_cpu} ;;
144 esac
145 ;;
146 *)
147 case "${target_cpu}" in
148 tahoe | vax) bfd_target=${target_cpu} ;;
149 esac
150 ;;
151 esac
152
153 if [ ! -f config/t-${bfd_target} ] ; then
154 echo '***' BFD does not support target ${target}: no file config/t-${bfd_target}
155 exit 1
156 fi
157
158 target_makefile_frag=config/t-${bfd_target}
159
160 files=
161 links=
This page took 0.054668 seconds and 5 git commands to generate.