Put conditional "const" before version_string, not before dummy function
[binutils-gdb.git] / gas / configure.in
1 # This file is configure.in
2 #
3 # Copyright (C) 1987-1992 Free Software Foundation, Inc.
4 #
5 # This file is part of GAS, the GNU Assembler.
6 #
7 # GAS is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2, or (at your option)
10 # any later version.
11 #
12 # GAS is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with GAS; see the file COPYING. If not, write to
19 # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
20 #
21
22 # This file was written, and is maintained by K. Richard Pixley
23 # <rich@cygnus.com>.
24
25 # This file is a shell script that supplies the information necessary
26 # to tailor a template configure script into the configure script
27 # appropriate for this directory. For more information, check any
28 # existing configure script.
29
30 srctrigger=as.c
31 srcname="gas"
32 need_bfd=
33 configdirs=doc
34
35 # per-host:
36
37 gas_host=generic
38
39 case "${host}" in
40 a29k-*-* | rs6000-*-* | vax-*-*)
41 gas_host=${host_cpu}
42 ;;
43 mips-dec-ultrix)
44 gas_host=decstation
45 ;;
46 i386-ibm-aix)
47 gas_host=i386aix
48 ;;
49 m68k-sun-sunos*)
50 gas_host=sun3
51 ;;
52 i386-sun-sunos*)
53 gas_host=sun386
54 ;;
55 sparc-sun-sunos*)
56 gas_host=sun4
57 ;;
58 sparc-sun-solaris2)
59 gas_host=sysv
60 ;;
61 *-*-ansi | *-*-ultrix | *-*-hpux | *-*-sysv*)
62 gas_host=${host_os}
63 ;;
64 esac
65
66 # per-target:
67
68 # assign cpu type
69 emulation=generic
70
71 cpu_type=${target_cpu}
72
73 # check for architecture variants
74 case ${target_cpu} in
75 sparclite) cpu_type=sparc ;;
76 m680[01234]0) cpu_type=m68k ;;
77 m683?2) cpu_type=m68k ;;
78 esac
79
80 gas_target=${cpu_type}
81
82 # assign object format
83 case ${target} in
84 a29k-amd-udi)
85 obj_format=coffbfd
86 need_bfd="./../bfd/libbfd.a"
87 gas_target=ebmon29k
88 ;;
89 a29k-amd-ebmon)
90 obj_format=coffbfd
91 need_bfd="./../bfd/libbfd.a"
92 gas_target=ebmon29k
93 ;;
94 a29k-amd-ebmonold)
95 obj_format=coff
96 need_bfd="./../bfd/libbfd.a"
97 gas_target=ebmon29k
98 ;;
99 i[34]86-ibm-aix*)
100 obj_format=coff
101 gas_target=i386aix
102 emulation=i386aix
103 ;;
104 i[34]86-*-bsd*)
105 obj_format=aout
106 emulation=i386bsd
107 ;;
108 i[34]86-*-coff | i[34]86-*-sysv* | i[34]86-*-sco*)
109 obj_format=coffbfd
110 need_bfd="./../bfd/libbfd.a"
111 gas_target=i386coff
112 ;;
113 i960-wrs-vxworks)
114 obj_format=bout
115 ;;
116 i960-*-coff)
117 obj_format=coff
118 emulation=ic960
119 ;;
120 m68k-wrs-vxworks)
121 obj_format=aout
122 emulation=sun3
123 ;;
124 m68k-ericsson-[Oo][Ss][Ee])
125 obj_format=aout
126 emulation=sun3
127 ;;
128 m68k-*-coff)
129 obj_format=coffbfd
130 need_bfd="./../bfd/libbfd.a"
131 gas_target=m68kcoff
132 ;;
133 *-*-aout | *-*-scout)
134 obj_format=aout
135 ;;
136 *-*-bout* | *-*-nindy*)
137 obj_format=bout
138 ;;
139 *-*-bsd* | *-*-sunos*)
140 obj_format=aout
141 emulation=sun3
142 ;;
143 *-*-generic)
144 obj_format=generic
145 ;;
146 *-*-xray | *-*-hms)
147 obj_format=coffbfd
148 need_bfd="./../bfd/libbfd.a"
149 ;;
150 *-*-sysv32)
151 obj_format=coff
152 emulation=sysv32
153 ;;
154 *-*-sim)
155 obj_format=coffbfd
156 need_bfd="./../bfd/libbfd.a"
157 ;;
158 *-*-coff* | *-sysv* | *-*-sco*)
159 obj_format=coff
160 case ${target_vendor} in
161 bull) emulation=dpx2 ;;
162 sun) emulation=sun3 ;;
163 esac
164 ;;
165 *-*-vxworks)
166 obj_format=aout
167 ;;
168 *-*-coff)
169 obj_format=coff
170 ;;
171 esac
172
173 # assign floating point type
174 case ${target_cpu} in
175 ns32k) atof=ns32k ;;
176 vax) atof=vax ;;
177 *) atof=ieee ;;
178 esac
179
180 # and target makefile frag
181
182 target_makefile_frag=config/${gas_target}.mt
183
184 files="config/ho-${gas_host}.h config/tc-${cpu_type}.c \
185 config/tc-${cpu_type}.h config/te-${emulation}.h \
186 config/obj-${obj_format}.h config/obj-${obj_format}.c \
187 config/atof-${atof}.c"
188
189 links="host.h targ-cpu.c targ-cpu.h targ-env.h obj-format.h obj-format.c atof-targ.c"
190
191 # end of gas/configure.in