]>
Commit | Line | Data |
---|---|---|
1 | # This file is a shell script fragment that supplies the information | |
2 | # necessary to tailor a template configure script into the configure | |
3 | # script appropriate for this directory. For more information, check | |
4 | # any existing configure script. | |
5 | ||
6 | srctrigger=ldmain.c | |
7 | srcname="linker" | |
8 | target_dependent=true | |
9 | ||
10 | # per-host: | |
11 | ||
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 | |
26 | motorola) | |
27 | my_host=delta88 ;; | |
28 | *) | |
29 | case "${host_os}" in | |
30 | dgux) my_host=dgux ;; | |
31 | esac | |
32 | ;; | |
33 | esac | |
34 | ;; | |
35 | ||
36 | m68k) | |
37 | case "${host_vendor}" in | |
38 | cbm) | |
39 | case ${host_os} in | |
40 | amigados) my_host=amigados ;; | |
41 | svr4) my_host=amix ;; | |
42 | esac | |
43 | ;; | |
44 | hp) | |
45 | case "${host_os}" in | |
46 | hpux) my_host=hp9000 ;; | |
47 | bsd) my_host=hp300bsd ;; | |
48 | esac | |
49 | ;; | |
50 | apollo*) | |
51 | case "${host_os}" in | |
52 | sysv*) my_host=apollov68 ;; | |
53 | bsd*) my_host=apollo68;; | |
54 | esac | |
55 | ;; | |
56 | sony) my_host=news ;; | |
57 | sun) my_host=sun3 ;; | |
58 | esac | |
59 | ;; | |
60 | ||
61 | i386) | |
62 | case "${host_vendor}" in | |
63 | *) | |
64 | case "${host_os}" in | |
65 | go32) my_host=go32 ;; | |
66 | sysv) my_host=i386v ;; | |
67 | mach) my_host=i386mach ;; | |
68 | bsd) my_host=i386-aout ;; | |
69 | msdos) my_host=dose ;; | |
70 | esac | |
71 | ;; | |
72 | esac | |
73 | ;; | |
74 | ||
75 | sparc) | |
76 | case "${host_os}" in | |
77 | sunos64) my_host=sparc-ll ;; | |
78 | *) my_host=sparc ;; | |
79 | esac | |
80 | ;; | |
81 | ||
82 | romp) my_host=rtbsd | |
83 | ;; | |
84 | ||
85 | a29k) my_host=ultra3 | |
86 | ;; | |
87 | ||
88 | tahoe) | |
89 | my_host=tahoe | |
90 | ;; | |
91 | ||
92 | vax) | |
93 | case "${host_os}" in | |
94 | ultrix) my_host=vaxult ;; | |
95 | *) my_host=vaxbsd ;; | |
96 | esac | |
97 | ;; | |
98 | esac | |
99 | ||
100 | # Set up to make a link between the host's include file and "sysdep.h". | |
101 | files="../bfd/hosts/${my_host}.h" | |
102 | links="sysdep.h" | |
103 | ||
104 | if [ ! -f ${srcdir}/${files} ] ; then | |
105 | if [ -n "${my_host}" ] ; then | |
106 | echo '***' No file ${srcdir}/${files} | |
107 | fi | |
108 | echo '***' ${srcname} does not support host ${host} | |
109 | exit 1 | |
110 | fi | |
111 | host_makefile_frag= | |
112 | if [ -f ${srcdir}/config/${my_host}.mh ] ; then | |
113 | host_makefile_frag=config/${my_host}.mh | |
114 | fi | |
115 | ||
116 | # per-target: | |
117 | ||
118 | case ${target_vendor} in | |
119 | aout | coff) my_target=${target_cpu}-${target_vendor} ;; | |
120 | sun) | |
121 | case ${target_cpu} in | |
122 | sparc) my_target=sun4 ;; | |
123 | m68k) my_target=sun3 ;; | |
124 | esac | |
125 | ;; | |
126 | wrs) | |
127 | case ${target_cpu} in | |
128 | i960) my_target=vxworks960 ;; | |
129 | m68k) my_target=vxworks68;; | |
130 | esac | |
131 | ;; | |
132 | tandem) | |
133 | my_target=sun3 | |
134 | ;; | |
135 | *) | |
136 | case ${target_cpu} in | |
137 | i386) my_target=go32 ;; | |
138 | m88k) my_target=m88k-bcs ;; | |
139 | a29k) case ${target_os} in | |
140 | ebmon) my_target=ebmon29k ;; | |
141 | *) my_target=coff-a29k ;; | |
142 | esac | |
143 | ;; | |
144 | h8300) case ${target_os} in | |
145 | hms) my_target=coff-h8300 ;; | |
146 | xray) my_target=ieee-h8300 ;; | |
147 | esac | |
148 | ;; | |
149 | m68k) | |
150 | case ${target_vendor} in | |
151 | sony) my_target=news ;; | |
152 | hp) my_target=hp300bsd ;; | |
153 | ||
154 | wrs) my_target=sun3 ;; | |
155 | *) | |
156 | echo "Unknown m68k target vendor:" ${target_vendor} | |
157 | exit 1 | |
158 | ;; | |
159 | esac | |
160 | ;; | |
161 | esac | |
162 | ;; | |
163 | esac | |
164 | ||
165 | target_makefile_frag=config/${my_target}.mt |