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