]> Git Repo - binutils.git/blame - bfd/configure.in
* sys/h-vaxult.h: Make it work. (David Taylor <[email protected]>)
[binutils.git] / bfd / configure.in
CommitLineData
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
6srctrigger=libbfd.c
7srcname="bfd"
21c9f626
RP
8
9# per-host:
10
4dfe09da
RP
11if [ "${host_os}" = "posix" ] ; then
12 bfd_host=posix
13else
14 case "${host_cpu}" in
15 rs6000) bfd_host=aix ;;
16 mips)
17 case "${host_vendor}" in
18 dec) bfd_host=dec3100 ;;
4e6f9223 19 sgi) bfd_host=irix3 ;;
4dfe09da
RP
20 esac
21 ;;
22 m88k)
23 case "${host_vendor}" in
24 *)
25 case "${host_os}" in
26 dgux) bfd_host=dgux ;;
27 esac
28 ;;
29 esac
30 ;;
4dfe09da
RP
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
126334ae
JG
60 rtpc) bfd_host=rtbsd
61 ;;
62
63 a29k) bfd_host=ultra3
64 ;;
65
66 tahoe | vax)
67 bfd_host=${host_cpu}
68 ;;
4dfe09da
RP
69 esac
70fi
71
c6705697
SC
72if [ ! -f config/h-${bfd_host} ] ; then
73 echo '***' BFD does not support host ${host}: no file config/h-${bfd_host}
21c9f626
RP
74 exit 1
75fi
76
c6705697 77host_makefile_frag=config/h-${bfd_host}
4dfe09da 78
21c9f626
RP
79# per-target:
80
a71bfbcc
RP
81case "${target_vendor}" in
82aout | coff | bout) bfd_target=${target_cpu}-${target_vendor} ;;
83sony) bfd_target=news ;;
84intel) bfd_target=${target_cpu}-coff ;;
4e6f9223
SC
85
86hitachi)
87 case "${target_cpu}" in
88 h8300) bfd_target=h8300-ieee ;;
89 *) echo "bad hitachi cpu" ;;
90 esac
91 ;;
92
93
a71bfbcc 94wrs)
4dfe09da 95 case "${target_cpu}" in
a71bfbcc
RP
96 i960) bfd_target=i960-bout ;;
97 m68k) bfd_target=m68k-aout ;;
4dfe09da
RP
98 esac
99 ;;
a71bfbcc 100sun)
4dfe09da 101 case "${target_cpu}" in
a71bfbcc
RP
102 m68k) bfd_target=m68k-aout ;;
103 sparc) bfd_target=sparc-aout ;;
104 esac
105 ;;
106dec)
107 case "${target_cpu}" in
108 mips) bfd_target=dec3100 ;;
109 esac
110 ;;
111hp)
112 case "${target_cpu}" in
113 m68k)
114 case "${target_os}" in
115 hpux) bfd_target=hp9000 ;;
116 bsd) bfd_target=hp300bsd ;;
4dfe09da
RP
117 esac
118 ;;
119 esac
120 ;;
4e6f9223
SC
121sgi)
122 case "${target_cpu}" in
123 mips)
124 bfd_target=irix3 ;;
125 esac
126 ;;
127none|nyu)
69e87de2
RP
128 case "${target_cpu}" in
129 i386) bfd_target=i386-coff ;;
f48e2647 130 a29k) case "${target_os}" in
126334ae
JG
131 aout) bfd_target=a29k-aout ;;
132 coff) bfd_target=a29k-coff ;;
133 sym1) bfd_target=a29k-coff ;;
134 esac
135 ;;
4e6f9223 136 tahoe | vax) bfd_target=${target_cpu} ;;
69e87de2
RP
137 esac
138 ;;
a71bfbcc
RP
139*)
140 case "${target_cpu}" in
141 tahoe | vax) bfd_target=${target_cpu} ;;
142 esac
143 ;;
4dfe09da
RP
144esac
145
c6705697
SC
146if [ ! -f config/t-${bfd_target} ] ; then
147 echo '***' BFD does not support target ${target}: no file config/t-${bfd_target}
21c9f626
RP
148 exit 1
149fi
150
c6705697 151target_makefile_frag=config/t-${bfd_target}
4dfe09da 152
21c9f626
RP
153files=
154links=
This page took 0.041861 seconds and 4 git commands to generate.