* ldfile.c (ldfile_open_command): Don't try .ld extension.
[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 . ${srcdir}/../bfd/configure.host
13
14 host_makefile_frag=
15
16 if [ -f ${srcdir}/config/${my_host}.mh ] ; then
17         host_makefile_frag=config/${my_host}.mh
18 fi
19
20 # per-target:
21
22 case "${target}" in
23
24   sparc-sun-sunos4*)    my_target=sun4 
25                         ;;
26   m68k-sun-sunos[34]*)  my_target=sun3
27                         ;;
28   sparclite*-fujitsu-*) my_target=sun4
29                         ;;
30   sparc*-*-aout)        my_target=sun4
31                         ;;
32 # start-sanitize-v9
33   sparc64*)             my_target=sun4
34                         ;;
35 # end-sanitize-v9
36   i960-wrs-vxworks*)    my_target=i960
37                         ;;
38   i960-intel-nindy)     my_target=i960
39                         ;;
40   m68k-wrs-vxworks*)    my_target=vxworks68
41                         ;;
42   m680[01234]0-wrs-vxworks*) my_target=vxworks68
43                         ;;
44   m683?2-wrs-vxworks*)  my_target=vxworks68
45                         ;;
46   sparc*-wrs-vxworks*)  my_target=sun4
47                         ;;
48   m68k-ericsson-ose)    my_target=ose68
49                         ;;
50   m680[01234]0-ericsson-ose) my_target=ose68
51                         ;;
52   m683?2-ericsson-ose)  my_target=ose68
53                         ;;
54   *-tandem-none)        my_target=st2000 # FIXME needs better name
55                         ;;
56   i[34]86-*-go32)       my_target=go32
57                         ;;
58   i[34]86-*-aix*)       my_target=i386-coff
59                         ;;
60   i[34]86-*-sco*)       my_target=i386-coff
61                         ;;
62   i[34]86-*-coff)       my_target=i386-coff
63                         ;;
64   i[34]86-*-bsd)        my_target=i386-bsd
65                         ;;
66   i[34]86-*-aout)       my_target=i386-aout
67                         ;;
68   i[34]86-*-sysv*)      my_target=i386-coff
69                         ;;
70   m88k-*-*)             my_target=m88k-bcs
71                         ;;
72   a29k-*-udi)           my_target=sa29200
73                         ;;
74   a29k-*-ebmon)         my_target=ebmon29k
75                         ;;
76   a29k-*-*)             my_target=coff-a29k
77                         ;;
78   h8300-*-hms)          my_target=coff-h8300
79                         ;;
80   h8500-*-hms)          my_target=coff-h8500
81                         ;;
82 # start-sanitize-sh
83   sh-*-*)               my_target=coff-sh       
84                         ;;
85 # end-sanitize-sh
86   m68k-sony-*)          my_target=news
87                         ;;
88   m68k-hp-bsd*)         my_target=hp300bsd
89                         ;;
90   m68*-*-aout)          my_target=m68k
91                         ;;
92   m68*-*-coff)          my_target=m68k-coff
93                         ;;
94   m68*-*-hpux)          my_target=hp300hpux
95                         ;;
96   m68*-*-*)             echo '***' "Unknown m68k target vendor for ld:" ${target_vendor} 1>&2
97                         exit 1
98                         ;;
99   hppa*-hp-osf)         my_target=hppaosf
100                         ;;
101   vax-dec-ultrix* | vax-dec-bsd*) my_target=vax
102                         ;;
103   mips-dec-ultrix*)     my_target=mips-lit
104                         ;;
105   mips-sgi-irix*)       my_target=mips-big
106                         ;;
107   mips-idt-ecoffl*)     my_target=mips-idtl
108                         ;;
109   mips-idt-ecoff*)      my_target=mips-idt
110                         ;;
111   mips-dec-bsd*)        my_target=mipsbsd
112                         ;;
113   z8k-*sim)             my_target=z8ksim
114                         ;;
115   *-*-aout)             my_target=${target_cpu}-${target_vendor} 
116                         ;;
117   *-*-coff)             my_target=${target_cpu}-${target_vendor} 
118                         ;;
119 esac
120
121 target_makefile_frag=config/${my_target}.mt
122
123 if [ ! -r ${srcdir}/${target_makefile_frag} ]; then
124         echo '***' GNU LD does not support target ${target} 1>&2
125         exit 1
126 fi
127
128 mkdir emulations 2>/dev/null