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