Commit | Line | Data |
---|---|---|
57cae454 SG |
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=z8k-dis.c | |
7 | srcname="opcodes" | |
8 | ||
9 | # per-host: | |
10 | ||
11 | case "${host_cpu}" in | |
12 | ||
13 | rs6000) my_host=rs6000 | |
14 | ;; | |
15 | ||
16 | hppa*) | |
17 | case "${host_vendor}" in | |
18 | hp) | |
19 | case "${host_os}" in | |
20 | hpux) my_host=hppahpux ;; | |
21 | bsd) my_host=hppabsd ;; | |
22 | esac | |
23 | ;; | |
24 | esac | |
25 | ;; | |
26 | mips) | |
27 | case "${host_vendor}" in | |
28 | dec) my_host=decstation ;; | |
29 | sgi) my_host=irix3 ;; | |
30 | esac | |
31 | ;; | |
32 | ||
33 | m88k) | |
34 | case "${host_vendor}" in | |
35 | motorola) | |
36 | my_host=delta88 ;; | |
37 | *) | |
38 | case "${host_os}" in | |
39 | dgux) my_host=dgux ;; | |
40 | esac | |
41 | ;; | |
42 | esac | |
43 | ;; | |
44 | ||
45 | m68*) | |
46 | case "${host_vendor}" in | |
47 | cbm) | |
48 | case ${host_os} in | |
49 | amigados) my_host=amigados ;; | |
50 | svr4) my_host=amix ;; | |
51 | esac | |
52 | ;; | |
53 | hp) | |
54 | case "${host_os}" in | |
55 | hpux) my_host=hp9000 ;; | |
56 | bsd) my_host=hp300bsd ;; | |
57 | esac | |
58 | ;; | |
59 | sony) my_host=news ;; | |
60 | sun) my_host=sun3 ;; | |
61 | apollo) | |
62 | case "${host_os}" in | |
63 | sysv*) my_host=apollov68 ;; | |
64 | bsd*) my_host=apollo68 ;; | |
65 | esac | |
66 | ;; | |
67 | esac | |
68 | ;; | |
69 | ||
70 | i386 | i486) | |
71 | case "${host_vendor}" in | |
72 | ncr*) | |
73 | case "${host_os}" in | |
74 | sysv4*) my_host=ncr3000 ;; | |
75 | esac | |
76 | ;; | |
77 | *) | |
78 | case "${host_os}" in | |
79 | go32) my_host=go32 ;; | |
80 | sco*) my_host=i386v ;; | |
81 | sysv) my_host=i386v ;; | |
82 | sysv4) my_host=i386v4 ;; | |
83 | mach) my_host=i386mach ;; | |
84 | msdos) my_host=dose ;; | |
85 | esac | |
86 | ;; | |
87 | esac | |
88 | ;; | |
89 | ||
90 | sparc) | |
91 | case "${host_os}" in | |
92 | sunos64) my_host=sparc-ll ;; | |
93 | *) my_host=sparc ;; | |
94 | esac | |
95 | ;; | |
96 | ||
97 | romp) my_host=rtbsd | |
98 | ;; | |
99 | ||
100 | a29k) my_host=ultra3 | |
101 | ;; | |
102 | ||
103 | tahoe) | |
104 | my_host=tahoe | |
105 | ;; | |
106 | ||
107 | vax) | |
108 | case "${host_os}" in | |
109 | ultrix) my_host=vaxult ;; | |
110 | *) my_host=vaxbsd ;; | |
111 | esac | |
112 | ;; | |
113 | esac | |
114 | ||
115 | # Set up to make a link between the host's include file and "sysdep.h". | |
116 | files="../bfd/hosts/${my_host}.h" | |
117 | ||
118 | links="sysdep.h" | |
119 | ||
120 | if [ ! -f ${srcdir}/${files} ] ; then | |
121 | if [ -n "${my_host}" ] ; then | |
122 | echo '***' No file ${srcdir}/${files} 1>&2 | |
123 | fi | |
124 | echo '***' ${srcname} does not support host ${host} 1>&2 | |
125 | exit 1 | |
126 | fi | |
127 | ||
128 | host_makefile_frag= | |
129 | if [ -f ${srcdir}/../bfd/config/${my_host}.mh ] ; then | |
130 | host_makefile_frag=../bfd/config/${my_host}.mh | |
131 | fi | |
132 | ||
133 | # per-target: |