Fri Dec 6 23:16:43 1991 K. Richard Pixley (rich at rtl.cygnus.com)
[deliverable/binutils-gdb.git] / gas / configure.in
CommitLineData
fecd2382
RP
1# This file is a shell script that supplies the information necessary
2# to tailor a template configure script into the configure script
3# appropriate for this directory. For more information, check any
4# existing configure script.
5
6srctrigger=as.c
7srcname="gas"
353deb84 8targetdependent=true
8a24a37c 9need_bfd=
1058238c
RP
10target_dependent=true
11
353deb84
RP
12# per-host:
13
b678740d 14gas_host=generic
fecd2382 15
b678740d
RP
16case "${host_cpu}" in
17a29k | rs6000 | vax) gas_host=${host_cpu} ;;
18mips)
19 case "${host_os}" in
20 ultrix) gas_host=decstation ;;
21 esac
353deb84 22 ;;
74cc5508 23*)
b678740d
RP
24 case "${host_os}" in
25 ansi | ultrix | hpux | sysv*) gas_host=${host_os} ;;
26 *)
27 case "${host_vendor}" in
28 sun)
29 case "${host_cpu}" in
30 m68k) gas_host=sun3 ;;
31 i386) gas_host=sun386 ;;
32 sparc) gas_host=sun4 ;;
33 esac
34 ;;
35 esac
36 ;;
37 esac
74cc5508
RP
38 ;;
39esac
40
b678740d
RP
41# per-target:
42
43# assign cpu type
44emulation=generic
45
46cpu_type=${target_cpu}
47
74cc5508 48# assign object format
b678740d 49case ${target_os} in
3c9d74a8 50bout*) obj_format=bout ;;
1058238c 51nindy*) obj_format=bout ;;
3c9d74a8 52bsd* | sunos*) obj_format=aout ;;
8a24a37c 53
ada269da 54ebmon-old)
605cd2a3
SC
55 obj_format=coff
56 need_bfd="$(unsubdir)/../bfd$(subdir)/libbfd.a"
ada269da
SC
57 target_cpu=ebmon29k
58 ;;
59
60ebmon)
61 obj_format=coff-bfd
62 need_bfd="$(unsubdir)/../bfd$(subdir)/libbfd.a"
605cd2a3
SC
63 target_cpu=ebmon29k
64 ;;
3c9d74a8
RP
65
66generic) obj_format=generic ;;
67
8a24a37c 68hds)
ace68c4e 69 obj_format=coff-bfd
8a24a37c
SC
70 need_bfd="$(unsubdir)/../bfd$(subdir)/libbfd.a"
71 ;;
72
ace68c4e
SC
73sysv32)
74 obj_format=coff
75 emulation=sysv32
76 ;;
3c9d74a8 77
ace68c4e
SC
78coff* | sysv*)
79 obj_format=coff
80
81 case ${target_vendor} in
82 bull) emulation=dpx2 ;;
83 sco) emulation=sco386 ;;
84 sun) emulation=sun3 ;;
85 *)
86 esac
87 ;;
3c9d74a8
RP
88*)
89 case ${target_vendor} in
90 aout) obj_format=aout ;;
91 bout) obj_format=bout ;;
ace68c4e
SC
92 coff)
93 obj_format=coff
94 case ${target_cpu} in
95 i960) emulation=ic960 ;;
96 esac
97 ;;
3c9d74a8
RP
98 *) obj_format=aout ;;
99 esac
74cc5508 100 ;;
3c9d74a8 101
fecd2382
RP
102esac
103
74cc5508 104# assign floating point type
b678740d 105case ${target_cpu} in
3c9d74a8
RP
106vax) atof=vax ;;
107*) atof=ieee ;;
fecd2382
RP
108esac
109
8a24a37c
SC
110# and target makefile frag
111
3c9d74a8 112target_makefile_frag=config/mt-${target_cpu}
8a24a37c 113
b678740d 114files="config/ho-${gas_host}.h config/tc-${cpu_type}.c \
353deb84 115 config/tc-${cpu_type}.h config/te-${emulation}.h \
74cc5508
RP
116 config/obj-${obj_format}.h config/obj-${obj_format}.c \
117 config/atof-${atof}.c"
118
fecd2382 119links="host.h targ-cpu.c targ-cpu.h targ-env.h obj-format.h obj-format.c atof-targ.c"
This page took 0.046977 seconds and 4 git commands to generate.