]>
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 | ||
6 | srctrigger=libbfd.c | |
7 | srcname="bfd" | |
21c9f626 RP |
8 | |
9 | # per-host: | |
10 | ||
4dfe09da RP |
11 | if [ "${host_os}" = "posix" ] ; then |
12 | bfd_host=posix | |
13 | else | |
14 | case "${host_cpu}" in | |
15 | rs6000) bfd_host=aix ;; | |
16 | mips) | |
17 | case "${host_vendor}" in | |
18 | dec) bfd_host=dec3100 ;; | |
19 | esac | |
20 | ;; | |
21 | m88k) | |
22 | case "${host_vendor}" in | |
23 | *) | |
24 | case "${host_os}" in | |
25 | dgux) bfd_host=dgux ;; | |
26 | esac | |
27 | ;; | |
28 | esac | |
29 | ;; | |
30 | ||
31 | m68k) | |
32 | case "${host_vendor}" in | |
a71bfbcc RP |
33 | hp) |
34 | case "${host_os}" in | |
35 | hpux) bfd_host=hp9000 ;; | |
36 | bsd) bfd_host=hp300bsd ;; | |
37 | esac | |
38 | ;; | |
4dfe09da RP |
39 | sony) bfd_host=news ;; |
40 | sun) bfd_host=sun3 ;; | |
41 | esac | |
42 | ;; | |
43 | ||
44 | i386) | |
45 | case "${host_vendor}" in | |
46 | *) | |
47 | case "${host_os}" in | |
48 | sysv) bfd_host=i386v ;; | |
49 | esac | |
50 | ;; | |
51 | esac | |
52 | ;; | |
53 | ||
54 | sparc) | |
55 | case "${host_vendor}" in | |
56 | sun) bfd_host=sun4 ;; | |
57 | esac | |
58 | ;; | |
59 | ||
60 | rtpc) bfd_host=rtbsd ;; | |
61 | tahoe | vax) bfd_host=${host_cpu} ;; | |
62 | esac | |
63 | fi | |
64 | ||
c6705697 SC |
65 | if [ ! -f config/h-${bfd_host} ] ; then |
66 | echo '***' BFD does not support host ${host}: no file config/h-${bfd_host} | |
21c9f626 RP |
67 | exit 1 |
68 | fi | |
69 | ||
c6705697 | 70 | host_makefile_frag=config/h-${bfd_host} |
4dfe09da | 71 | |
21c9f626 RP |
72 | # per-target: |
73 | ||
a71bfbcc RP |
74 | case "${target_vendor}" in |
75 | aout | coff | bout) bfd_target=${target_cpu}-${target_vendor} ;; | |
76 | sony) bfd_target=news ;; | |
77 | intel) bfd_target=${target_cpu}-coff ;; | |
78 | wrs) | |
4dfe09da | 79 | case "${target_cpu}" in |
a71bfbcc RP |
80 | i960) bfd_target=i960-bout ;; |
81 | m68k) bfd_target=m68k-aout ;; | |
4dfe09da RP |
82 | esac |
83 | ;; | |
a71bfbcc | 84 | sun) |
4dfe09da | 85 | case "${target_cpu}" in |
a71bfbcc RP |
86 | m68k) bfd_target=m68k-aout ;; |
87 | sparc) bfd_target=sparc-aout ;; | |
88 | esac | |
89 | ;; | |
90 | dec) | |
91 | case "${target_cpu}" in | |
92 | mips) bfd_target=dec3100 ;; | |
93 | esac | |
94 | ;; | |
95 | hp) | |
96 | case "${target_cpu}" in | |
97 | m68k) | |
98 | case "${target_os}" in | |
99 | hpux) bfd_target=hp9000 ;; | |
100 | bsd) bfd_target=hp300bsd ;; | |
4dfe09da RP |
101 | esac |
102 | ;; | |
103 | esac | |
104 | ;; | |
69e87de2 RP |
105 | none) |
106 | case "${target_cpu}" in | |
107 | i386) bfd_target=i386-coff ;; | |
108 | esac | |
109 | ;; | |
a71bfbcc RP |
110 | *) |
111 | case "${target_cpu}" in | |
112 | tahoe | vax) bfd_target=${target_cpu} ;; | |
113 | esac | |
114 | ;; | |
4dfe09da RP |
115 | esac |
116 | ||
c6705697 SC |
117 | if [ ! -f config/t-${bfd_target} ] ; then |
118 | echo '***' BFD does not support target ${target}: no file config/t-${bfd_target} | |
21c9f626 RP |
119 | exit 1 |
120 | fi | |
121 | ||
c6705697 | 122 | target_makefile_frag=config/t-${bfd_target} |
4dfe09da | 123 | |
21c9f626 RP |
124 | files= |
125 | links= |