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 | ||
fbee3571 | 13 | case "${host}" in |
d047d16a JG |
14 | # WHEN ADDING ENTRIES TO THIS MATRIX: |
15 | # Make sure that the left side always has two dashes. Otherwise you | |
16 | # can get spurious matches. Even for unambiguous cases, do this as a | |
17 | # convention, else the table becomes a real mess to understand and maintain. | |
18 | # | |
19 | # Note that these entries cannot be fully alphabetical. Don't try. | |
20 | # The order of matching is critical when multiple lines could match. | |
21 | ||
22 | a29k-*-*) my_host=ultra3 ;; | |
23 | ||
24 | hppa*-hp-hpux) my_host=hppahpux ;; | |
25 | hppa*-hp-bsd) my_host=hppabsd ;; | |
26 | ||
214f8f23 | 27 | i[34]86-*-bsd) my_host=i386bsd ;; |
d047d16a JG |
28 | i[34]86-ncr*-sysv4*) my_host=ncr3000 ;; |
29 | i[34]86-*-go32) my_host=go32 ;; | |
30 | i[34]86-*-sysv4*) my_host=i386v4 ;; | |
31 | i[34]86-*-sysv*) my_host=i386v ;; | |
32 | i[34]86-*-solaris*) my_host=i386v ;; | |
33 | i[34]86-*-sco*) my_host=i386v ;; | |
34 | i[34]86-*-mach*) my_host=i386mach ;; | |
35 | i[34]86-*-msdos*) my_host=dose ;; | |
36 | i[34]86-*-linux) my_host=i386linux ;; | |
37 | ||
38 | i860-*-*) my_host=stratus ;; | |
39 | ||
40 | mips-dec-*) my_host=decstation ;; | |
41 | mips-sgi-irix3) my_host=irix3 ;; | |
42 | mips-sgi-irix4) my_host=irix4 ;; | |
43 | ||
44 | m68*-cbm-amigados) my_host=amigados ;; | |
45 | m68*-cbm-sysv4*) my_host=amix ;; | |
46 | m68*-hp-hpux) my_host=hp300 ;; | |
47 | m68*-hp-bsd) my_host=hp300bsd ;; | |
48 | m68*-sony-*) my_host=news ;; | |
49 | m68*-sun-*) my_host=sun3 ;; | |
50 | m68*-apollo*-sysv*) my_host=apollov68 ;; | |
51 | m68*-apollo*-bsd*) my_host=apollo68 ;; | |
52 | ||
53 | m88k-motorola-*) my_host=delta88 ;; | |
54 | m88k-harris-*) my_host=harris ;; | |
55 | m88k-*-dgux) my_host=dgux ;; | |
56 | ||
57 | romp-*-*) my_host=rtbsd ;; | |
58 | ||
59 | rs6000-*-*) my_host=rs6000 ;; | |
60 | ||
61 | sparc-*-sunos64) my_host=sparc-ll ;; | |
62 | sparc-*-sysv4*) my_host=sysv4 ;; | |
63 | sparc-*-solaris2*) my_host=solaris2 ;; | |
64 | sparc-*-sysv64) my_host=sysv4-ll ;; | |
65 | sparc-*-*) my_host=sparc ;; | |
66 | ||
67 | tahoe-*-*) my_host=tahoe ;; | |
68 | ||
69 | vax-*-ultrix*) my_host=vaxult ;; | |
70 | vax-*-*) my_host=vaxbsd ;; | |
71 | ||
72 | we32k-*-*) my_host=we32k ;; | |
73 | ||
5b2765bf | 74 | esac |
4dfe09da | 75 | |
5b2765bf | 76 | # Set up to make a link between the host's include file and "sysdep.h". |
5868184b | 77 | files="hosts/${my_host}.h" |
5b2765bf JG |
78 | links="sysdep.h" |
79 | ||
d89b9f99 | 80 | if [ ! -f ${srcdir}/${files} ] ; then |
5b2765bf | 81 | if [ -n "${my_host}" ] ; then |
eafc6d85 | 82 | echo '***' No file ${srcdir}/${files} 1>&2 |
5b2765bf | 83 | fi |
eafc6d85 | 84 | echo '***' ${srcname} does not support host ${host} 1>&2 |
21c9f626 RP |
85 | exit 1 |
86 | fi | |
87 | ||
5b2765bf | 88 | host_makefile_frag= |
5868184b FF |
89 | if [ -f ${srcdir}/config/${my_host}.mh ] ; then |
90 | host_makefile_frag=config/${my_host}.mh | |
5b2765bf | 91 | fi |
4dfe09da | 92 | |
21c9f626 RP |
93 | # per-target: |
94 | ||
218ce930 JG |
95 | # WHEN ADDING ENTRIES TO THIS MATRIX: |
96 | # Make sure that the left side always has two dashes. Otherwise you | |
97 | # can get spurious matches. Even for unambiguous cases, do this as a | |
98 | # convention, else the table becomes a real mess to understand and maintain. | |
99 | ||
1e730c4b | 100 | case "${target}" in |
fbee3571 ME |
101 | a29k-amd-ebmon) bfd_target=a29k-coff ;; |
102 | a29k-amd-udi) bfd_target=a29k-coff ;; | |
103 | a29k-amd-*) bfd_target=a29k-aout ;; | |
104 | a29k-*-aout) bfd_target=a29k-aout ;; | |
105 | a29k-*-coff) bfd_target=a29k-coff ;; | |
106 | a29k-nyu-sym1) bfd_target=a29k-coff ;; | |
107 | h8300-hitachi-*) bfd_target=h8300-coff ;; | |
108 | hppa*-hp-bsd) bfd_target=hppabsd ;; | |
109 | hppa*-hp-hpux) bfd_target=hppahpux ;; | |
110 | i386-sco-*) bfd_target=i386-coff ;; | |
111 | i960-wrs-vxworks) bfd_target=i960-bout ;; | |
112 | i[34]86-*-bsd) bfd_target=i386-bsd ;; | |
113 | i[34]86-*-sysv4*) bfd_target=i386-elf ;; | |
114 | m60[01234]0-hp-bsd) bfd_target=hp300bsd ;; | |
115 | m68*-ericsson-*) bfd_target=m68k-aout ;; | |
116 | m68*-*-aout) bfd_target=m68k-aout ;; | |
117 | m68*-*-coff) bfd_target=m68k-coff ;; | |
118 | m680[01234]0-hp-hpux) bfd_target=hp300 ;; | |
119 | m680[01234]0-netx-*) bfd_target=m68k-aout ;; | |
120 | m680[01234]0-none-os68k) bfd_target=m68k-aout ;; | |
121 | m680[01234]0-sun-*) bfd_target=m68k-aout ;; | |
122 | m680[01234]0-wrs-vxworks) bfd_target=m68k-aout ;; | |
123 | m683?2-hp-bsd) bfd_target=hp300bsd ;; | |
124 | m683?2-hp-hpux) bfd_target=hp300 ;; | |
125 | m683?2-none-os68k) bfd_target=m68k-aout ;; | |
126 | m683?2-netx-*) bfd_target=m68k-aout ;; | |
127 | m683?2-sun-*) bfd_target=m68k-aout ;; | |
128 | m683?2-wrs-*) bfd_target=m68k-aout ;; | |
129 | m68k-hp-bsd) bfd_target=hp300bsd ;; | |
130 | m68k-hp-hpux) bfd_target=hp300 ;; | |
131 | m68k-netx-*) bfd_target=m68k-aout ;; | |
132 | m68k-none-os68k) bfd_target=m68k-aout ;; | |
133 | m68k-sun-*) bfd_target=m68k-aout ;; | |
134 | m68k-wrs-vxworks) bfd_target=m68k-aout ;; | |
135 | m88k-harris-*) bfd_target=m88k-coff ;; | |
136 | m88k-motorola-*) bfd_target=m88k-coff ;; | |
137 | mips-big-*) bfd_target=irix3 ;; | |
138 | mips-dec-*) bfd_target=decstation ;; | |
139 | mips-sgi-*) bfd_target=irix3 ;; | |
140 | rs6000-ibm-*) bfd_target=rs6000 ;; | |
141 | sparc-sun-solaris2*) bfd_target=sparc-elf ;; | |
142 | sparc-sun-sysv4) bfd_target=sparc-elf ;; | |
143 | sparc-sun-*) bfd_target=sparc-aout ;; | |
144 | sparc-wrs-vxworks) bfd_target=sparc-aout ;; | |
145 | sparclite-fujitsu-*) bfd_target=sparc-aout ;; | |
146 | tahoe-*-none) bfd_target=tahoe ;; | |
147 | tahoe-*-*) bfd_target=tahoe ;; | |
148 | vax-dec-*) bfd_target=vax ;; | |
149 | vax-*-none) bfd_target=vax ;; | |
150 | vax-*-*) bfd_target=vax ;; | |
151 | we32k-*-*) bfd_target=we32k ;; | |
152 | z8k*-*-*) bfd_target=z8k-coff ;; | |
153 | ||
154 | *-*-aout) bfd_target=${target_cpu}-aout ;; | |
155 | *-*-bsd) bfd_target=${target_cpu}-aout ;; | |
156 | *-*-sysv4*) bfd_target=${target_cpu}-elf ;; | |
157 | *-*-solaris2*) bfd_target=${target_cpu}-elf ;; | |
158 | *-*-go32) bfd_target=${target_cpu}-aout ;; | |
159 | *-*-linux*) bfd_target=${target_cpu}-linux ;; | |
160 | *-*-sysv*) bfd_target=${target_cpu}-coff ;; | |
161 | *-*-scosysv*) bfd_target=${target_cpu}-coff ;; | |
162 | ||
163 | i386-none-*) bfd_target=i386-coff ;; | |
164 | *-adobe-*) bfd_target=adobe ;; | |
165 | *-sony-*) bfd_target=news ;; | |
166 | *-intel-*) bfd_target=${target_cpu}-coff ;; | |
167 | *-stratus-*) bfd_target=${target_cpu}-elf ;; | |
168 | *-cbm-*) bfd_target=${target_cpu}-elf ;; | |
169 | *-ncr-*) bfd_target=${target_cpu}-elf ;; | |
170 | *-hitachi-*) echo "bad hitachi cpu" 1>&2 ; exit 1 ;; | |
171 | *-tandem-*) bfd_target=st2000 ;; | |
4dfe09da RP |
172 | esac |
173 | ||
5868184b | 174 | if [ ! -f ${srcdir}/config/${bfd_target}.mt ] ; then |
5b2765bf | 175 | if [ -n "${bfd_target}" ] ; then |
eafc6d85 | 176 | echo '***' No file ${srcdir}/config/${bfd_target}.mt 1>&2 |
5b2765bf | 177 | fi |
eafc6d85 FF |
178 | echo '***' BFD does not support target ${target} 1>&2 |
179 | echo '***' Look in bfd/configure.in for supported targets 1>&2 | |
21c9f626 RP |
180 | exit 1 |
181 | fi | |
5868184b | 182 | target_makefile_frag=config/${bfd_target}.mt |
4dfe09da | 183 | |
5b2765bf JG |
184 | # We don't do any links based on the target system, just very minor makefile |
185 | # config. |