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