Include bfd.h before sysdep.h, so ansidecl and PROTO() get defined first.
[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"
8
9# per-host:
10
11if [ "${host_os}" = "posix" ] ; then
12 my_host=posix
13else
14 case "${host_cpu}" in
15 rs6000) my_host=aix ;;
16 mips)
17 case "${host_vendor}" in
18 dec) my_host=dec3100 ;;
19 esac
20 ;;
21 m88k)
22 case "${host_vendor}" in
23 *)
24 case "${host_os}" in
25 dgux) my_host=dgux ;;
26 esac
27 ;;
28 esac
29 ;;
30
31 m68k)
32 case "${host_vendor}" in
33 hp) my_host=hp9000 ;;
34 sony) my_host=news ;;
35 sun) my_host=sun3 ;;
36 esac
37 ;;
38
39 i386)
40 case "${host_vendor}" in
41 *)
42 case "${host_os}" in
43 sysv) my_host=i386v ;;
44 esac
45 ;;
46 esac
47 ;;
48
49 sparc)
50 case "${host_vendor}" in
51 sun) my_host=sun4 ;;
52 esac
53 ;;
54
55 rtpc) my_host=rtbsd ;;
56 tahoe | vax) my_host=${host_cpu} ;;
57 esac
58fi
59
30104b16 60if [ ! -f config/h-${my_host} ] ; then
02757e59
SC
61 echo '***' The linker do not support host ${host}
62 exit 1
63fi
64
30104b16 65host_makefile_frag=config/h-${my_host}
02757e59
SC
66
67# per-target:
68
69case ${target_cpu} in
70sparc)
71 case ${target_vendor} in
72 sun) my_target=sun4 ;;
73 esac
74 ;;
75m88k) my_target=m88k-bcs ;;
76a29k) my_target=coff-a29k ;;
3e4c643d
SC
77h8300) my_target=h8300hds ;;
78m68k)
79 case ${target_vendor} in
80 sun) my_target=sun3 ;;
81 sony) my_target=news;;
82 *) echo "Unknown 68k target vendor:" ${target_vendor} ;;
83 esac
84
02757e59
SC
85esac
86
30104b16 87target_makefile_frag=config/t-${my_target}
02757e59
SC
88
89files=
90links=
This page took 0.049813 seconds and 4 git commands to generate.