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