Mon Dec 28 11:15:35 1992 Ian Lance Taylor (ian@cygnus.com)
[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 # Set up to make a link between the host's include file and "sysdep.h".
15 files="../bfd/hosts/${my_host}.h"
16 links="sysdep.h"
17
18 if [ ! -f ${srcdir}/${files} ] ; then
19         files=../bfd/hosts/std-host.h
20         echo "[${srcname} has no specific support for host ${host} -- using std-host]"
21 fi
22
23 host_makefile_frag=
24
25 if [ -f ${srcdir}/config/${my_host}.mh ] ; then
26         host_makefile_frag=config/${my_host}.mh
27 fi
28
29 # per-target:
30
31 case "${target}" in
32
33   sparc-sun-sunos4*)    my_target=sun4 
34                         ;;
35   m68k-sun-sunos[34]*)  my_target=sun3
36                         ;;
37   sparclite-fujitsu-*)  my_target=sun4
38                         ;;
39   i960-wrs-vxworks*)    my_target=vxworks960
40                         ;;
41   m68k-wrs-vxworks*)    my_target=vxworks68
42                         ;;
43   m680[01234]0-wrs-vxworks*) my_target=vxworks68
44                         ;;
45   m683?2-wrs-vxworks*)  my_target=vxworks68
46                         ;;
47   sparc-wrs-vxworks*)   my_target=vxsparc
48                         ;;
49   m68k-ericsson-ose)    my_target=ose68
50                         ;;
51   m680[01234]0-ericsson-ose) my_target=ose68
52                         ;;
53   m683?2-ericsson-ose)  my_target=ose68
54                         ;;
55   *-tandem-none)        my_target=st2000 # FIXME needs better name
56                         ;;
57   i386-go32-*)          my_target=go32
58                         ;;
59   i386-*-sco*)          my_target=i386-coff
60                         ;;
61   i386-*-coff)          my_target=i386-coff
62                         ;;
63   i386-*-aout)          my_target=i386-aout
64                         ;;
65   i386-*-sysv*)         my_target=i386-coff
66                         ;;
67   m88k-*-*)             my_target=m88k-bcs
68                         ;;
69   a29k-*-udi)           my_target=sa29200
70                         ;;
71   a29k-*-ebmon)         my_target=ebmon29k
72                         ;;
73   a29k-*-*)             my_target=coff-a29k
74                         ;;
75   h8300-*-hms)          my_target=coff-h8300
76                         ;;
77   h8300-*-xray)         my_target=ieee-h8300
78                         ;;
79   m68k-sony-*)          my_target=news
80                         ;;
81   m68k-hp-bsd*)         my_target=hp300bsd
82                         ;;
83   m68*-*-aout)          my_target=m68k
84                         ;;
85   m68*-*-coff)          my_target=m68k-coff
86                         ;;
87   m68*-*-*)             echo '***' "Unknown m68k target vendor for ld:" ${target_vendor} 1>&2
88                         exit 1
89                         ;;
90   z8k-*sim)             my_target=z8ksim
91                         ;;
92   *-*-aout)             my_target=${target_cpu}-${target_vendor} 
93                         ;;
94   *-*-coff)             my_target=${target_cpu}-${target_vendor} 
95                         ;;
96 esac
97
98
99
100 target_makefile_frag=config/${my_target}.mt