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