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