]>
Commit | Line | Data |
---|---|---|
861bb6c1 JL |
1 | #! /bin/sh |
2 | ||
3 | # Guess values for system-dependent variables and create Makefiles. | |
092f7be3 | 4 | # Generated automatically using autoconf version 2.12.1 |
861bb6c1 JL |
5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
6 | # | |
7 | # This configure script is free software; the Free Software Foundation | |
8 | # gives unlimited permission to copy, distribute and modify it. | |
9 | ||
10 | # Defaults: | |
11 | ac_help= | |
12 | ac_default_prefix=/usr/local | |
13 | # Any additions from configure.in: | |
14 | ac_help="$ac_help | |
15 | --with-gnu-ld arrange to work with GNU ld." | |
16 | ac_help="$ac_help | |
17 | --with-gnu-as arrange to work with GNU as." | |
18 | ac_help="$ac_help | |
19 | --with-stabs arrange to use stabs instead of host debug format." | |
20 | ac_help="$ac_help | |
21 | --with-elf arrange to use ELF instead of host debug format." | |
22 | ac_help="$ac_help | |
23 | --with-local-prefix=DIR specifies directory to put local include." | |
24 | ac_help="$ac_help | |
25 | --with-gxx-include-dir=DIR | |
26 | specifies directory to put g++ header files." | |
a494747c MM |
27 | ac_help="$ac_help |
28 | --enable-checking enable expensive run-time checks." | |
861bb6c1 JL |
29 | ac_help="$ac_help |
30 | --enable-c-cpplib Use cpplib for C." | |
9101297d DL |
31 | ac_help="$ac_help |
32 | --enable-haifa Use the experimental scheduler. | |
33 | --disable-haifa Don't use the experimental scheduler for the | |
34 | targets which normally enable it." | |
4b104d6e | 35 | ac_help="$ac_help |
34a4c466 | 36 | --with-fast-fixincludes Use a faster fixinclude program. Experimental" |
861bb6c1 JL |
37 | ac_help="$ac_help |
38 | --enable-threads enable thread usage for target GCC. | |
39 | --enable-threads=LIB use LIB thread package for target GCC." | |
40 | ||
41 | # Initialize some variables set by options. | |
42 | # The variables have the same names as the options, with | |
43 | # dashes changed to underlines. | |
44 | build=NONE | |
45 | cache_file=./config.cache | |
46 | exec_prefix=NONE | |
47 | host=NONE | |
48 | no_create= | |
49 | nonopt=NONE | |
50 | no_recursion= | |
51 | prefix=NONE | |
52 | program_prefix=NONE | |
53 | program_suffix=NONE | |
54 | program_transform_name=s,x,x, | |
55 | silent= | |
56 | site= | |
57 | srcdir= | |
58 | target=NONE | |
59 | verbose= | |
60 | x_includes=NONE | |
61 | x_libraries=NONE | |
62 | bindir='${exec_prefix}/bin' | |
63 | sbindir='${exec_prefix}/sbin' | |
64 | libexecdir='${exec_prefix}/libexec' | |
65 | datadir='${prefix}/share' | |
66 | sysconfdir='${prefix}/etc' | |
67 | sharedstatedir='${prefix}/com' | |
68 | localstatedir='${prefix}/var' | |
69 | libdir='${exec_prefix}/lib' | |
70 | includedir='${prefix}/include' | |
71 | oldincludedir='/usr/include' | |
72 | infodir='${prefix}/info' | |
73 | mandir='${prefix}/man' | |
74 | ||
75 | # Initialize some other variables. | |
76 | subdirs= | |
77 | MFLAGS= MAKEFLAGS= | |
092f7be3 | 78 | SHELL=${CONFIG_SHELL-/bin/sh} |
861bb6c1 JL |
79 | # Maximum number of lines to put in a shell here document. |
80 | ac_max_here_lines=12 | |
81 | ||
82 | ac_prev= | |
83 | for ac_option | |
84 | do | |
85 | ||
86 | # If the previous option needs an argument, assign it. | |
87 | if test -n "$ac_prev"; then | |
88 | eval "$ac_prev=\$ac_option" | |
89 | ac_prev= | |
90 | continue | |
91 | fi | |
92 | ||
93 | case "$ac_option" in | |
94 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
95 | *) ac_optarg= ;; | |
96 | esac | |
97 | ||
98 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
99 | ||
100 | case "$ac_option" in | |
101 | ||
102 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
103 | ac_prev=bindir ;; | |
104 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
105 | bindir="$ac_optarg" ;; | |
106 | ||
107 | -build | --build | --buil | --bui | --bu) | |
108 | ac_prev=build ;; | |
109 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
110 | build="$ac_optarg" ;; | |
111 | ||
112 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
113 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
114 | ac_prev=cache_file ;; | |
115 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
116 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
117 | cache_file="$ac_optarg" ;; | |
118 | ||
119 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
120 | ac_prev=datadir ;; | |
121 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
122 | | --da=*) | |
123 | datadir="$ac_optarg" ;; | |
124 | ||
125 | -disable-* | --disable-*) | |
126 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
127 | # Reject names that are not valid shell variable names. | |
128 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
129 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
130 | fi | |
131 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
132 | eval "enable_${ac_feature}=no" ;; | |
133 | ||
134 | -enable-* | --enable-*) | |
135 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
136 | # Reject names that are not valid shell variable names. | |
137 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
138 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
139 | fi | |
140 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
141 | case "$ac_option" in | |
142 | *=*) ;; | |
143 | *) ac_optarg=yes ;; | |
144 | esac | |
145 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
146 | ||
147 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
148 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
149 | | --exec | --exe | --ex) | |
150 | ac_prev=exec_prefix ;; | |
151 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
152 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
153 | | --exec=* | --exe=* | --ex=*) | |
154 | exec_prefix="$ac_optarg" ;; | |
155 | ||
156 | -gas | --gas | --ga | --g) | |
157 | # Obsolete; use --with-gas. | |
158 | with_gas=yes ;; | |
159 | ||
160 | -help | --help | --hel | --he) | |
161 | # Omit some internal or obsolete options to make the list less imposing. | |
162 | # This message is too long to be a string in the A/UX 3.1 sh. | |
163 | cat << EOF | |
164 | Usage: configure [options] [host] | |
165 | Options: [defaults in brackets after descriptions] | |
166 | Configuration: | |
167 | --cache-file=FILE cache test results in FILE | |
168 | --help print this message | |
169 | --no-create do not create output files | |
170 | --quiet, --silent do not print \`checking...' messages | |
171 | --version print the version of autoconf that created configure | |
172 | Directory and file names: | |
173 | --prefix=PREFIX install architecture-independent files in PREFIX | |
174 | [$ac_default_prefix] | |
175 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
176 | [same as prefix] | |
177 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
178 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
179 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
180 | --datadir=DIR read-only architecture-independent data in DIR | |
181 | [PREFIX/share] | |
182 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
183 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
184 | [PREFIX/com] | |
185 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
186 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
187 | --includedir=DIR C header files in DIR [PREFIX/include] | |
188 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
189 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
190 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
191 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
192 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
193 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
194 | --program-transform-name=PROGRAM | |
195 | run sed PROGRAM on installed program names | |
196 | EOF | |
197 | cat << EOF | |
198 | Host type: | |
199 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
200 | --host=HOST configure for HOST [guessed] | |
201 | --target=TARGET configure for TARGET [TARGET=HOST] | |
202 | Features and packages: | |
203 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
204 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
205 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
206 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
207 | --x-includes=DIR X include files are in DIR | |
208 | --x-libraries=DIR X library files are in DIR | |
209 | EOF | |
210 | if test -n "$ac_help"; then | |
211 | echo "--enable and --with options recognized:$ac_help" | |
212 | fi | |
213 | exit 0 ;; | |
214 | ||
215 | -host | --host | --hos | --ho) | |
216 | ac_prev=host ;; | |
217 | -host=* | --host=* | --hos=* | --ho=*) | |
218 | host="$ac_optarg" ;; | |
219 | ||
220 | -includedir | --includedir | --includedi | --included | --include \ | |
221 | | --includ | --inclu | --incl | --inc) | |
222 | ac_prev=includedir ;; | |
223 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
224 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
225 | includedir="$ac_optarg" ;; | |
226 | ||
227 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
228 | ac_prev=infodir ;; | |
229 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
230 | infodir="$ac_optarg" ;; | |
231 | ||
232 | -libdir | --libdir | --libdi | --libd) | |
233 | ac_prev=libdir ;; | |
234 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
235 | libdir="$ac_optarg" ;; | |
236 | ||
237 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
238 | | --libexe | --libex | --libe) | |
239 | ac_prev=libexecdir ;; | |
240 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
241 | | --libexe=* | --libex=* | --libe=*) | |
242 | libexecdir="$ac_optarg" ;; | |
243 | ||
244 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
245 | | --localstate | --localstat | --localsta | --localst \ | |
246 | | --locals | --local | --loca | --loc | --lo) | |
247 | ac_prev=localstatedir ;; | |
248 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
249 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
250 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
251 | localstatedir="$ac_optarg" ;; | |
252 | ||
253 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
254 | ac_prev=mandir ;; | |
255 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
256 | mandir="$ac_optarg" ;; | |
257 | ||
258 | -nfp | --nfp | --nf) | |
259 | # Obsolete; use --without-fp. | |
260 | with_fp=no ;; | |
261 | ||
262 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
263 | | --no-cr | --no-c) | |
264 | no_create=yes ;; | |
265 | ||
266 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
267 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
268 | no_recursion=yes ;; | |
269 | ||
270 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
271 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
272 | | --oldin | --oldi | --old | --ol | --o) | |
273 | ac_prev=oldincludedir ;; | |
274 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
275 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
276 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
277 | oldincludedir="$ac_optarg" ;; | |
278 | ||
279 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
280 | ac_prev=prefix ;; | |
281 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
282 | prefix="$ac_optarg" ;; | |
283 | ||
284 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
285 | | --program-pre | --program-pr | --program-p) | |
286 | ac_prev=program_prefix ;; | |
287 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
288 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
289 | program_prefix="$ac_optarg" ;; | |
290 | ||
291 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
292 | | --program-suf | --program-su | --program-s) | |
293 | ac_prev=program_suffix ;; | |
294 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
295 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
296 | program_suffix="$ac_optarg" ;; | |
297 | ||
298 | -program-transform-name | --program-transform-name \ | |
299 | | --program-transform-nam | --program-transform-na \ | |
300 | | --program-transform-n | --program-transform- \ | |
301 | | --program-transform | --program-transfor \ | |
302 | | --program-transfo | --program-transf \ | |
303 | | --program-trans | --program-tran \ | |
304 | | --progr-tra | --program-tr | --program-t) | |
305 | ac_prev=program_transform_name ;; | |
306 | -program-transform-name=* | --program-transform-name=* \ | |
307 | | --program-transform-nam=* | --program-transform-na=* \ | |
308 | | --program-transform-n=* | --program-transform-=* \ | |
309 | | --program-transform=* | --program-transfor=* \ | |
310 | | --program-transfo=* | --program-transf=* \ | |
311 | | --program-trans=* | --program-tran=* \ | |
312 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
313 | program_transform_name="$ac_optarg" ;; | |
314 | ||
315 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
316 | | -silent | --silent | --silen | --sile | --sil) | |
317 | silent=yes ;; | |
318 | ||
319 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
320 | ac_prev=sbindir ;; | |
321 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
322 | | --sbi=* | --sb=*) | |
323 | sbindir="$ac_optarg" ;; | |
324 | ||
325 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
326 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
327 | | --sharedst | --shareds | --shared | --share | --shar \ | |
328 | | --sha | --sh) | |
329 | ac_prev=sharedstatedir ;; | |
330 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
331 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
332 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
333 | | --sha=* | --sh=*) | |
334 | sharedstatedir="$ac_optarg" ;; | |
335 | ||
336 | -site | --site | --sit) | |
337 | ac_prev=site ;; | |
338 | -site=* | --site=* | --sit=*) | |
339 | site="$ac_optarg" ;; | |
340 | ||
341 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
342 | ac_prev=srcdir ;; | |
343 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
344 | srcdir="$ac_optarg" ;; | |
345 | ||
346 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
347 | | --syscon | --sysco | --sysc | --sys | --sy) | |
348 | ac_prev=sysconfdir ;; | |
349 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
350 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
351 | sysconfdir="$ac_optarg" ;; | |
352 | ||
353 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
354 | ac_prev=target ;; | |
355 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
356 | target="$ac_optarg" ;; | |
357 | ||
358 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
359 | verbose=yes ;; | |
360 | ||
361 | -version | --version | --versio | --versi | --vers) | |
092f7be3 | 362 | echo "configure generated by autoconf version 2.12.1" |
861bb6c1 JL |
363 | exit 0 ;; |
364 | ||
365 | -with-* | --with-*) | |
366 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
367 | # Reject names that are not valid shell variable names. | |
368 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
369 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
370 | fi | |
371 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
372 | case "$ac_option" in | |
373 | *=*) ;; | |
374 | *) ac_optarg=yes ;; | |
375 | esac | |
376 | eval "with_${ac_package}='$ac_optarg'" ;; | |
377 | ||
378 | -without-* | --without-*) | |
379 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
380 | # Reject names that are not valid shell variable names. | |
381 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
382 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
383 | fi | |
384 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
385 | eval "with_${ac_package}=no" ;; | |
386 | ||
387 | --x) | |
388 | # Obsolete; use --with-x. | |
389 | with_x=yes ;; | |
390 | ||
391 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
392 | | --x-incl | --x-inc | --x-in | --x-i) | |
393 | ac_prev=x_includes ;; | |
394 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
395 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
396 | x_includes="$ac_optarg" ;; | |
397 | ||
398 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
399 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
400 | ac_prev=x_libraries ;; | |
401 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
402 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
403 | x_libraries="$ac_optarg" ;; | |
404 | ||
405 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
406 | ;; | |
407 | ||
408 | *) | |
409 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
410 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
411 | fi | |
412 | if test "x$nonopt" != xNONE; then | |
413 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
414 | fi | |
415 | nonopt="$ac_option" | |
416 | ;; | |
417 | ||
418 | esac | |
419 | done | |
420 | ||
421 | if test -n "$ac_prev"; then | |
422 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
423 | fi | |
424 | ||
425 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
426 | ||
427 | # File descriptor usage: | |
428 | # 0 standard input | |
429 | # 1 file creation | |
430 | # 2 errors and warnings | |
431 | # 3 some systems may open it to /dev/tty | |
432 | # 4 used on the Kubota Titan | |
433 | # 6 checking for... messages and results | |
434 | # 5 compiler messages saved in config.log | |
435 | if test "$silent" = yes; then | |
436 | exec 6>/dev/null | |
437 | else | |
438 | exec 6>&1 | |
439 | fi | |
440 | exec 5>./config.log | |
441 | ||
442 | echo "\ | |
443 | This file contains any messages produced by compilers while | |
444 | running configure, to aid debugging if configure makes a mistake. | |
445 | " 1>&5 | |
446 | ||
447 | # Strip out --no-create and --no-recursion so they do not pile up. | |
448 | # Also quote any args containing shell metacharacters. | |
449 | ac_configure_args= | |
450 | for ac_arg | |
451 | do | |
452 | case "$ac_arg" in | |
453 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
454 | | --no-cr | --no-c) ;; | |
455 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
456 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
457 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
458 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
459 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
460 | esac | |
461 | done | |
462 | ||
463 | # NLS nuisances. | |
464 | # Only set these to C if already set. These must not be set unconditionally | |
465 | # because not all systems understand e.g. LANG=C (notably SCO). | |
466 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
467 | # Non-C LC_CTYPE values break the ctype check. | |
468 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
469 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
470 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
471 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
472 | ||
473 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
474 | rm -rf conftest* confdefs.h | |
475 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
476 | echo > confdefs.h | |
477 | ||
478 | # A filename unique to this package, relative to the directory that | |
479 | # configure is in, which we can look for to find out if srcdir is correct. | |
480 | ac_unique_file=tree.c | |
481 | ||
482 | # Find the source files, if location was not specified. | |
483 | if test -z "$srcdir"; then | |
484 | ac_srcdir_defaulted=yes | |
485 | # Try the directory containing this script, then its parent. | |
486 | ac_prog=$0 | |
487 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
488 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
489 | srcdir=$ac_confdir | |
490 | if test ! -r $srcdir/$ac_unique_file; then | |
491 | srcdir=.. | |
492 | fi | |
493 | else | |
494 | ac_srcdir_defaulted=no | |
495 | fi | |
496 | if test ! -r $srcdir/$ac_unique_file; then | |
497 | if test "$ac_srcdir_defaulted" = yes; then | |
498 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
499 | else | |
500 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
501 | fi | |
502 | fi | |
503 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
504 | ||
505 | # Prefer explicitly selected file to automatically selected ones. | |
506 | if test -z "$CONFIG_SITE"; then | |
507 | if test "x$prefix" != xNONE; then | |
508 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
509 | else | |
510 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
511 | fi | |
512 | fi | |
513 | for ac_site_file in $CONFIG_SITE; do | |
514 | if test -r "$ac_site_file"; then | |
515 | echo "loading site script $ac_site_file" | |
516 | . "$ac_site_file" | |
517 | fi | |
518 | done | |
519 | ||
520 | if test -r "$cache_file"; then | |
521 | echo "loading cache $cache_file" | |
522 | . $cache_file | |
523 | else | |
524 | echo "creating cache $cache_file" | |
525 | > $cache_file | |
526 | fi | |
527 | ||
528 | ac_ext=c | |
529 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
530 | ac_cpp='$CPP $CPPFLAGS' | |
531 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
532 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
533 | cross_compiling=$ac_cv_prog_cc_cross | |
534 | ||
535 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
536 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
537 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
538 | ac_n= ac_c=' | |
539 | ' ac_t=' ' | |
540 | else | |
541 | ac_n=-n ac_c= ac_t= | |
542 | fi | |
543 | else | |
544 | ac_n= ac_c='\c' ac_t= | |
545 | fi | |
546 | ||
547 | ||
548 | ||
549 | ||
861bb6c1 JL |
550 | remove=rm |
551 | hard_link=ln | |
552 | symbolic_link='ln -s' | |
553 | copy=cp | |
554 | ||
555 | # Check for additional parameters | |
556 | ||
557 | # With GNU ld | |
558 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
559 | if test "${with_gnu_ld+set}" = set; then | |
560 | withval="$with_gnu_ld" | |
df6faf79 | 561 | gnu_ld_flag="$with_gnu_ld" |
861bb6c1 | 562 | else |
df6faf79 | 563 | gnu_ld_flag=no |
861bb6c1 JL |
564 | fi |
565 | ||
566 | ||
567 | # With GNU as | |
568 | # Check whether --with-gnu-as or --without-gnu-as was given. | |
569 | if test "${with_gnu_as+set}" = set; then | |
570 | withval="$with_gnu_as" | |
df6faf79 | 571 | gas_flag="$with_gnu_as" |
861bb6c1 | 572 | else |
df6faf79 | 573 | gas_flag=no |
861bb6c1 JL |
574 | fi |
575 | ||
576 | ||
577 | # With stabs | |
578 | # Check whether --with-stabs or --without-stabs was given. | |
579 | if test "${with_stabs+set}" = set; then | |
580 | withval="$with_stabs" | |
535b86ce | 581 | stabs="$with_stabs" |
861bb6c1 JL |
582 | else |
583 | stabs=no | |
584 | fi | |
585 | ||
586 | ||
587 | # With ELF | |
588 | # Check whether --with-elf or --without-elf was given. | |
589 | if test "${with_elf+set}" = set; then | |
590 | withval="$with_elf" | |
535b86ce | 591 | elf="$with_elf" |
861bb6c1 JL |
592 | else |
593 | elf=no | |
594 | fi | |
595 | ||
596 | ||
597 | # Specify the local prefix | |
598 | # Check whether --with-local-prefix or --without-local-prefix was given. | |
599 | if test "${with_local_prefix+set}" = set; then | |
600 | withval="$with_local_prefix" | |
601 | local_prefix=$with_local_prefix | |
602 | else | |
603 | local_prefix=/usr/local | |
604 | fi | |
605 | ||
606 | ||
607 | # Default local prefix if it is empty | |
608 | if [ x$local_prefix = x ]; then | |
609 | local_prefix=/usr/local | |
610 | fi | |
611 | ||
612 | # Specify the g++ header file directory | |
613 | # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given. | |
614 | if test "${with_gxx_include_dir+set}" = set; then | |
615 | withval="$with_gxx_include_dir" | |
616 | gxx_include_dir=$with_gxx_include_dir | |
617 | else | |
e0cb250f MH |
618 | if test x${enable_version_specific_runtime_libs} = xyes; then |
619 | gxx_include_dir='${libsubdir}/include/g++' | |
620 | else gxx_include_dir='${prefix}/include/g++'; fi | |
861bb6c1 JL |
621 | fi |
622 | ||
623 | ||
a494747c MM |
624 | # Enable expensive internal checks |
625 | # Check whether --enable-checking or --disable-checking was given. | |
626 | if test "${enable_checking+set}" = set; then | |
627 | enableval="$enable_checking" | |
628 | cat >> confdefs.h <<\EOF | |
629 | #define ENABLE_CHECKING 1 | |
630 | EOF | |
631 | ||
632 | ||
633 | fi | |
634 | ||
635 | ||
861bb6c1 | 636 | # Enable use of cpplib for C. |
e061d1ce | 637 | cpp_main=cccp |
861bb6c1 JL |
638 | # Check whether --enable-c-cpplib or --disable-c-cpplib was given. |
639 | if test "${enable_c_cpplib+set}" = set; then | |
640 | enableval="$enable_c_cpplib" | |
641 | if [ x$enable_c_cpplib != xno ]; then | |
642 | extra_c_objs="${extra_c_objs} cpplib.o cppexp.o cpphash.o cpperror.o" | |
c8724862 DB |
643 | extra_c_objs="${extra_c_objs} prefix.o" |
644 | extra_cxx_objs="${extra_cxx_objs} ../cpplib.o ../cppexp.o ../cpphash.o ../cpperror.o ../prefix.o" | |
861bb6c1 | 645 | extra_c_flags=-DUSE_CPPLIB=1 |
e061d1ce | 646 | cpp_main=cppmain |
861bb6c1 JL |
647 | fi |
648 | fi | |
649 | ||
9101297d DL |
650 | |
651 | # Enable Haifa scheduler. | |
652 | # Check whether --enable-haifa or --disable-haifa was given. | |
653 | if test "${enable_haifa+set}" = set; then | |
654 | enableval="$enable_haifa" | |
655 | : | |
656 | fi | |
657 | ||
4b104d6e JL |
658 | # Fast fixincludes |
659 | # | |
660 | # This is a work in progress... | |
34a4c466 JL |
661 | # Check whether --with-fast-fixincludes or --without-fast-fixincludes was given. |
662 | if test "${with_fast_fixincludes+set}" = set; then | |
663 | withval="$with_fast_fixincludes" | |
664 | fast_fixinc="$with_fast_fixincludes" | |
665 | else | |
4b104d6e JL |
666 | fast_fixinc=no |
667 | fi | |
668 | ||
861bb6c1 JL |
669 | |
670 | # Enable threads | |
671 | # Pass with no value to take the default | |
672 | # Pass with a value to specify a thread package | |
673 | # Check whether --enable-threads or --disable-threads was given. | |
674 | if test "${enable_threads+set}" = set; then | |
675 | enableval="$enable_threads" | |
676 | if [ x$enable_threads = xno ]; then | |
677 | enable_threads='' | |
678 | fi | |
679 | else | |
680 | enable_threads='' | |
681 | fi | |
682 | ||
683 | ||
e445171e | 684 | enable_threads_flag=$enable_threads |
861bb6c1 | 685 | # Check if a valid thread package |
e445171e | 686 | case x${enable_threads_flag} in |
861bb6c1 JL |
687 | x | xno) |
688 | # No threads | |
a851212a | 689 | target_thread_file='single' |
861bb6c1 JL |
690 | ;; |
691 | xyes) | |
692 | # default | |
a851212a | 693 | target_thread_file='' |
861bb6c1 JL |
694 | ;; |
695 | xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \ | |
7cc34889 | 696 | xsolaris | xwin32 | xdce | xvxworks) |
e445171e | 697 | target_thread_file=$enable_threads_flag |
861bb6c1 JL |
698 | ;; |
699 | *) | |
700 | echo "$enable_threads is an unknown thread package" 1>&2 | |
701 | exit 1 | |
702 | ;; | |
703 | esac | |
704 | ||
705 | # Determine the host, build, and target systems | |
706 | ac_aux_dir= | |
707 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
708 | if test -f $ac_dir/install-sh; then | |
709 | ac_aux_dir=$ac_dir | |
710 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
711 | break | |
712 | elif test -f $ac_dir/install.sh; then | |
713 | ac_aux_dir=$ac_dir | |
714 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
715 | break | |
716 | fi | |
717 | done | |
718 | if test -z "$ac_aux_dir"; then | |
719 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
720 | fi | |
721 | ac_config_guess=$ac_aux_dir/config.guess | |
722 | ac_config_sub=$ac_aux_dir/config.sub | |
723 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
724 | ||
725 | ||
726 | # Do some error checking and defaulting for the host and target type. | |
727 | # The inputs are: | |
728 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
729 | # | |
730 | # The rules are: | |
731 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
732 | # same time. | |
733 | # 2. Host defaults to nonopt. | |
734 | # 3. If nonopt is not specified, then host defaults to the current host, | |
735 | # as determined by config.guess. | |
736 | # 4. Target and build default to nonopt. | |
737 | # 5. If nonopt is not specified, then target and build default to host. | |
738 | ||
739 | # The aliases save the names the user supplied, while $host etc. | |
740 | # will get canonicalized. | |
741 | case $host---$target---$nonopt in | |
742 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
743 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
744 | esac | |
745 | ||
746 | ||
747 | # Make sure we can run config.sub. | |
092f7be3 | 748 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
861bb6c1 JL |
749 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
750 | fi | |
751 | ||
752 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
092f7be3 | 753 | echo "configure:754: checking host system type" >&5 |
861bb6c1 JL |
754 | |
755 | host_alias=$host | |
756 | case "$host_alias" in | |
757 | NONE) | |
758 | case $nonopt in | |
759 | NONE) | |
092f7be3 | 760 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
861bb6c1 JL |
761 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
762 | fi ;; | |
763 | *) host_alias=$nonopt ;; | |
764 | esac ;; | |
765 | esac | |
766 | ||
092f7be3 | 767 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
861bb6c1 JL |
768 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
769 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
770 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
771 | echo "$ac_t""$host" 1>&6 | |
772 | ||
773 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
092f7be3 | 774 | echo "configure:775: checking target system type" >&5 |
861bb6c1 JL |
775 | |
776 | target_alias=$target | |
777 | case "$target_alias" in | |
778 | NONE) | |
779 | case $nonopt in | |
780 | NONE) target_alias=$host_alias ;; | |
781 | *) target_alias=$nonopt ;; | |
782 | esac ;; | |
783 | esac | |
784 | ||
092f7be3 | 785 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` |
861bb6c1 JL |
786 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
787 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
788 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
789 | echo "$ac_t""$target" 1>&6 | |
790 | ||
791 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
092f7be3 | 792 | echo "configure:793: checking build system type" >&5 |
861bb6c1 JL |
793 | |
794 | build_alias=$build | |
795 | case "$build_alias" in | |
796 | NONE) | |
797 | case $nonopt in | |
798 | NONE) build_alias=$host_alias ;; | |
799 | *) build_alias=$nonopt ;; | |
800 | esac ;; | |
801 | esac | |
802 | ||
092f7be3 | 803 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
861bb6c1 JL |
804 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
805 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
806 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
807 | echo "$ac_t""$build" 1>&6 | |
808 | ||
809 | test "$host_alias" != "$target_alias" && | |
810 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
811 | NONENONEs,x,x, && | |
812 | program_prefix=${target_alias}- | |
813 | ||
814 | ||
e9a25f70 JL |
815 | # Find the native compiler |
816 | # Extract the first word of "gcc", so it can be a program name with args. | |
817 | set dummy gcc; ac_word=$2 | |
818 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
092f7be3 | 819 | echo "configure:820: checking for $ac_word" >&5 |
e9a25f70 JL |
820 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
821 | echo $ac_n "(cached) $ac_c" 1>&6 | |
822 | else | |
823 | if test -n "$CC"; then | |
824 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
825 | else | |
826 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
827 | for ac_dir in $PATH; do | |
828 | test -z "$ac_dir" && ac_dir=. | |
829 | if test -f $ac_dir/$ac_word; then | |
830 | ac_cv_prog_CC="gcc" | |
831 | break | |
832 | fi | |
833 | done | |
834 | IFS="$ac_save_ifs" | |
835 | fi | |
836 | fi | |
837 | CC="$ac_cv_prog_CC" | |
838 | if test -n "$CC"; then | |
839 | echo "$ac_t""$CC" 1>&6 | |
840 | else | |
841 | echo "$ac_t""no" 1>&6 | |
842 | fi | |
843 | ||
844 | if test -z "$CC"; then | |
845 | # Extract the first word of "cc", so it can be a program name with args. | |
846 | set dummy cc; ac_word=$2 | |
847 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
092f7be3 | 848 | echo "configure:849: checking for $ac_word" >&5 |
e9a25f70 JL |
849 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
850 | echo $ac_n "(cached) $ac_c" 1>&6 | |
851 | else | |
852 | if test -n "$CC"; then | |
853 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
854 | else | |
855 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
856 | ac_prog_rejected=no | |
857 | for ac_dir in $PATH; do | |
858 | test -z "$ac_dir" && ac_dir=. | |
859 | if test -f $ac_dir/$ac_word; then | |
860 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
861 | ac_prog_rejected=yes | |
862 | continue | |
863 | fi | |
864 | ac_cv_prog_CC="cc" | |
865 | break | |
866 | fi | |
867 | done | |
868 | IFS="$ac_save_ifs" | |
869 | if test $ac_prog_rejected = yes; then | |
870 | # We found a bogon in the path, so make sure we never use it. | |
871 | set dummy $ac_cv_prog_CC | |
872 | shift | |
873 | if test $# -gt 0; then | |
874 | # We chose a different compiler from the bogus one. | |
875 | # However, it has the same basename, so the bogon will be chosen | |
876 | # first if we set CC to just the basename; use the full file name. | |
877 | shift | |
878 | set dummy "$ac_dir/$ac_word" "$@" | |
879 | shift | |
880 | ac_cv_prog_CC="$@" | |
881 | fi | |
882 | fi | |
883 | fi | |
884 | fi | |
885 | CC="$ac_cv_prog_CC" | |
886 | if test -n "$CC"; then | |
887 | echo "$ac_t""$CC" 1>&6 | |
888 | else | |
889 | echo "$ac_t""no" 1>&6 | |
890 | fi | |
891 | ||
892 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
893 | fi | |
894 | ||
895 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
092f7be3 | 896 | echo "configure:897: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
e9a25f70 JL |
897 | |
898 | ac_ext=c | |
899 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
900 | ac_cpp='$CPP $CPPFLAGS' | |
901 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
902 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
903 | cross_compiling=$ac_cv_prog_cc_cross | |
904 | ||
905 | cat > conftest.$ac_ext <<EOF | |
092f7be3 | 906 | #line 907 "configure" |
e9a25f70 JL |
907 | #include "confdefs.h" |
908 | main(){return(0);} | |
909 | EOF | |
092f7be3 | 910 | if { (eval echo configure:911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
e9a25f70 JL |
911 | ac_cv_prog_cc_works=yes |
912 | # If we can't run a trivial program, we are probably using a cross compiler. | |
913 | if (./conftest; exit) 2>/dev/null; then | |
914 | ac_cv_prog_cc_cross=no | |
915 | else | |
916 | ac_cv_prog_cc_cross=yes | |
917 | fi | |
918 | else | |
919 | echo "configure: failed program was:" >&5 | |
920 | cat conftest.$ac_ext >&5 | |
921 | ac_cv_prog_cc_works=no | |
922 | fi | |
923 | rm -fr conftest* | |
924 | ||
925 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
926 | if test $ac_cv_prog_cc_works = no; then | |
927 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
928 | fi | |
929 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
092f7be3 | 930 | echo "configure:931: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
e9a25f70 JL |
931 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
932 | cross_compiling=$ac_cv_prog_cc_cross | |
933 | ||
934 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
092f7be3 | 935 | echo "configure:936: checking whether we are using GNU C" >&5 |
e9a25f70 JL |
936 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
937 | echo $ac_n "(cached) $ac_c" 1>&6 | |
938 | else | |
939 | cat > conftest.c <<EOF | |
940 | #ifdef __GNUC__ | |
941 | yes; | |
942 | #endif | |
943 | EOF | |
092f7be3 | 944 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
e9a25f70 JL |
945 | ac_cv_prog_gcc=yes |
946 | else | |
947 | ac_cv_prog_gcc=no | |
948 | fi | |
949 | fi | |
950 | ||
951 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
952 | ||
953 | if test $ac_cv_prog_gcc = yes; then | |
954 | GCC=yes | |
955 | ac_test_CFLAGS="${CFLAGS+set}" | |
956 | ac_save_CFLAGS="$CFLAGS" | |
957 | CFLAGS= | |
958 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
092f7be3 | 959 | echo "configure:960: checking whether ${CC-cc} accepts -g" >&5 |
e9a25f70 JL |
960 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
961 | echo $ac_n "(cached) $ac_c" 1>&6 | |
962 | else | |
963 | echo 'void f(){}' > conftest.c | |
964 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
965 | ac_cv_prog_cc_g=yes | |
966 | else | |
967 | ac_cv_prog_cc_g=no | |
968 | fi | |
969 | rm -f conftest* | |
970 | ||
971 | fi | |
972 | ||
973 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
974 | if test "$ac_test_CFLAGS" = set; then | |
975 | CFLAGS="$ac_save_CFLAGS" | |
976 | elif test $ac_cv_prog_cc_g = yes; then | |
977 | CFLAGS="-g -O2" | |
978 | else | |
979 | CFLAGS="-O2" | |
980 | fi | |
981 | else | |
982 | GCC= | |
983 | test "${CFLAGS+set}" = set || CFLAGS="-g" | |
984 | fi | |
985 | ||
986 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
092f7be3 | 987 | echo "configure:988: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
e9a25f70 JL |
988 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
989 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
990 | echo $ac_n "(cached) $ac_c" 1>&6 | |
991 | else | |
992 | cat > conftestmake <<\EOF | |
993 | all: | |
994 | @echo 'ac_maketemp="${MAKE}"' | |
995 | EOF | |
996 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
997 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
998 | if test -n "$ac_maketemp"; then | |
999 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1000 | else | |
1001 | eval ac_cv_prog_make_${ac_make}_set=no | |
1002 | fi | |
1003 | rm -f conftestmake | |
1004 | fi | |
1005 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1006 | echo "$ac_t""yes" 1>&6 | |
1007 | SET_MAKE= | |
1008 | else | |
1009 | echo "$ac_t""no" 1>&6 | |
1010 | SET_MAKE="MAKE=${MAKE-make}" | |
1011 | fi | |
1012 | ||
1013 | ||
861bb6c1 JL |
1014 | # Find some useful tools |
1015 | for ac_prog in mawk gawk nawk awk | |
1016 | do | |
1017 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1018 | set dummy $ac_prog; ac_word=$2 | |
1019 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
092f7be3 | 1020 | echo "configure:1021: checking for $ac_word" >&5 |
861bb6c1 JL |
1021 | if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then |
1022 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1023 | else | |
1024 | if test -n "$AWK"; then | |
1025 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1026 | else | |
1027 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1028 | for ac_dir in $PATH; do | |
1029 | test -z "$ac_dir" && ac_dir=. | |
1030 | if test -f $ac_dir/$ac_word; then | |
1031 | ac_cv_prog_AWK="$ac_prog" | |
1032 | break | |
1033 | fi | |
1034 | done | |
1035 | IFS="$ac_save_ifs" | |
1036 | fi | |
1037 | fi | |
1038 | AWK="$ac_cv_prog_AWK" | |
1039 | if test -n "$AWK"; then | |
1040 | echo "$ac_t""$AWK" 1>&6 | |
1041 | else | |
1042 | echo "$ac_t""no" 1>&6 | |
1043 | fi | |
1044 | ||
1045 | test -n "$AWK" && break | |
1046 | done | |
1047 | ||
1048 | # Extract the first word of "flex", so it can be a program name with args. | |
1049 | set dummy flex; ac_word=$2 | |
1050 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
092f7be3 | 1051 | echo "configure:1052: checking for $ac_word" >&5 |
861bb6c1 JL |
1052 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
1053 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1054 | else | |
1055 | if test -n "$LEX"; then | |
1056 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
1057 | else | |
1058 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1059 | for ac_dir in $PATH; do | |
1060 | test -z "$ac_dir" && ac_dir=. | |
1061 | if test -f $ac_dir/$ac_word; then | |
1062 | ac_cv_prog_LEX="flex" | |
1063 | break | |
1064 | fi | |
1065 | done | |
1066 | IFS="$ac_save_ifs" | |
1067 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
1068 | fi | |
1069 | fi | |
1070 | LEX="$ac_cv_prog_LEX" | |
1071 | if test -n "$LEX"; then | |
1072 | echo "$ac_t""$LEX" 1>&6 | |
1073 | else | |
1074 | echo "$ac_t""no" 1>&6 | |
1075 | fi | |
1076 | ||
1077 | if test -z "$LEXLIB" | |
1078 | then | |
1079 | case "$LEX" in | |
1080 | flex*) ac_lib=fl ;; | |
1081 | *) ac_lib=l ;; | |
1082 | esac | |
1083 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
092f7be3 | 1084 | echo "configure:1085: checking for yywrap in -l$ac_lib" >&5 |
861bb6c1 JL |
1085 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
1086 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1087 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1088 | else | |
1089 | ac_save_LIBS="$LIBS" | |
1090 | LIBS="-l$ac_lib $LIBS" | |
1091 | cat > conftest.$ac_ext <<EOF | |
092f7be3 | 1092 | #line 1093 "configure" |
861bb6c1 JL |
1093 | #include "confdefs.h" |
1094 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1095 | /* We use char because int might match the return type of a gcc2 | |
1096 | builtin and then its argument prototype would still apply. */ | |
1097 | char yywrap(); | |
1098 | ||
1099 | int main() { | |
1100 | yywrap() | |
1101 | ; return 0; } | |
1102 | EOF | |
092f7be3 | 1103 | if { (eval echo configure:1104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
861bb6c1 JL |
1104 | rm -rf conftest* |
1105 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1106 | else | |
1107 | echo "configure: failed program was:" >&5 | |
1108 | cat conftest.$ac_ext >&5 | |
1109 | rm -rf conftest* | |
1110 | eval "ac_cv_lib_$ac_lib_var=no" | |
1111 | fi | |
1112 | rm -f conftest* | |
1113 | LIBS="$ac_save_LIBS" | |
1114 | ||
1115 | fi | |
1116 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1117 | echo "$ac_t""yes" 1>&6 | |
1118 | LEXLIB="-l$ac_lib" | |
1119 | else | |
1120 | echo "$ac_t""no" 1>&6 | |
1121 | fi | |
1122 | ||
1123 | fi | |
1124 | ||
ac64120e | 1125 | echo $ac_n "checking whether ln works""... $ac_c" 1>&6 |
092f7be3 | 1126 | echo "configure:1127: checking whether ln works" >&5 |
ac64120e JW |
1127 | if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then |
1128 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1129 | else | |
e566af04 MH |
1130 | rm -f conftestdata_t |
1131 | echo >conftestdata_f | |
1132 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
ac64120e JW |
1133 | then |
1134 | gcc_cv_prog_LN="ln" | |
1135 | else | |
e566af04 | 1136 | if ln -s conftestdata_f conftestdata_t 2>/dev/null |
ac64120e JW |
1137 | then |
1138 | gcc_cv_prog_LN="ln -s" | |
1139 | else | |
1140 | gcc_cv_prog_LN=cp | |
1141 | fi | |
1142 | fi | |
e566af04 | 1143 | rm -f conftestdata_f conftestdata_t |
ac64120e JW |
1144 | |
1145 | fi | |
1146 | LN="$gcc_cv_prog_LN" | |
1147 | if test "$gcc_cv_prog_LN" = "ln"; then | |
1148 | echo "$ac_t""yes" 1>&6 | |
1149 | else | |
1150 | if test "$gcc_cv_prog_LN" = "ln -s"; then | |
1151 | echo "$ac_t""no, using ln -s" 1>&6 | |
1152 | else | |
1153 | echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6 | |
1154 | fi | |
1155 | fi | |
1156 | ||
861bb6c1 | 1157 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
092f7be3 | 1158 | echo "configure:1159: checking whether ln -s works" >&5 |
ac64120e | 1159 | if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then |
861bb6c1 JL |
1160 | echo $ac_n "(cached) $ac_c" 1>&6 |
1161 | else | |
e566af04 MH |
1162 | rm -f conftestdata_t |
1163 | echo >conftestdata_f | |
1164 | if ln -s conftestdata_f conftestdata_t 2>/dev/null | |
861bb6c1 | 1165 | then |
ac64120e | 1166 | gcc_cv_prog_LN_S="ln -s" |
861bb6c1 | 1167 | else |
e566af04 | 1168 | if ln conftestdata_f conftestdata_t 2>/dev/null |
ac64120e JW |
1169 | then |
1170 | gcc_cv_prog_LN_S=ln | |
1171 | else | |
1172 | gcc_cv_prog_LN_S=cp | |
1173 | fi | |
861bb6c1 | 1174 | fi |
e566af04 | 1175 | rm -f conftestdata_f conftestdata_t |
ac64120e | 1176 | |
861bb6c1 | 1177 | fi |
ac64120e JW |
1178 | LN_S="$gcc_cv_prog_LN_S" |
1179 | if test "$gcc_cv_prog_LN_S" = "ln -s"; then | |
861bb6c1 JL |
1180 | echo "$ac_t""yes" 1>&6 |
1181 | else | |
ac64120e JW |
1182 | if test "$gcc_cv_prog_LN_S" = "ln"; then |
1183 | echo "$ac_t""no, using ln" 1>&6 | |
1184 | else | |
1185 | echo "$ac_t""no, and neither does ln, so using cp" 1>&6 | |
1186 | fi | |
861bb6c1 JL |
1187 | fi |
1188 | ||
dbf78386 | 1189 | echo $ac_n "checking for volatile""... $ac_c" 1>&6 |
092f7be3 | 1190 | echo "configure:1191: checking for volatile" >&5 |
dbf78386 RH |
1191 | if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then |
1192 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1193 | else | |
1194 | cat > conftest.$ac_ext <<EOF | |
092f7be3 | 1195 | #line 1196 "configure" |
dbf78386 RH |
1196 | #include "confdefs.h" |
1197 | ||
1198 | int main() { | |
1199 | volatile int foo; | |
1200 | ; return 0; } | |
1201 | EOF | |
092f7be3 | 1202 | if { (eval echo configure:1203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
dbf78386 RH |
1203 | rm -rf conftest* |
1204 | gcc_cv_c_volatile=yes | |
1205 | else | |
1206 | echo "configure: failed program was:" >&5 | |
1207 | cat conftest.$ac_ext >&5 | |
1208 | rm -rf conftest* | |
1209 | gcc_cv_c_volatile=no | |
1210 | fi | |
1211 | rm -f conftest* | |
1212 | fi | |
1213 | ||
1214 | echo "$ac_t""$gcc_cv_c_volatile" 1>&6 | |
1215 | if test $gcc_cv_c_volatile = yes ; then | |
1216 | cat >> confdefs.h <<\EOF | |
1217 | #define HAVE_VOLATILE 1 | |
1218 | EOF | |
1219 | ||
1220 | fi | |
1221 | ||
861bb6c1 JL |
1222 | # Extract the first word of "ranlib", so it can be a program name with args. |
1223 | set dummy ranlib; ac_word=$2 | |
1224 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
092f7be3 | 1225 | echo "configure:1226: checking for $ac_word" >&5 |
861bb6c1 JL |
1226 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1227 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1228 | else | |
1229 | if test -n "$RANLIB"; then | |
1230 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1231 | else | |
1232 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1233 | for ac_dir in $PATH; do | |
1234 | test -z "$ac_dir" && ac_dir=. | |
1235 | if test -f $ac_dir/$ac_word; then | |
1236 | ac_cv_prog_RANLIB="ranlib" | |
1237 | break | |
1238 | fi | |
1239 | done | |
1240 | IFS="$ac_save_ifs" | |
1241 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
1242 | fi | |
1243 | fi | |
1244 | RANLIB="$ac_cv_prog_RANLIB" | |
1245 | if test -n "$RANLIB"; then | |
1246 | echo "$ac_t""$RANLIB" 1>&6 | |
1247 | else | |
1248 | echo "$ac_t""no" 1>&6 | |
1249 | fi | |
1250 | ||
1251 | for ac_prog in 'bison -y' byacc | |
1252 | do | |
1253 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1254 | set dummy $ac_prog; ac_word=$2 | |
1255 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
092f7be3 | 1256 | echo "configure:1257: checking for $ac_word" >&5 |
861bb6c1 JL |
1257 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
1258 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1259 | else | |
1260 | if test -n "$YACC"; then | |
1261 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
1262 | else | |
1263 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1264 | for ac_dir in $PATH; do | |
1265 | test -z "$ac_dir" && ac_dir=. | |
1266 | if test -f $ac_dir/$ac_word; then | |
1267 | ac_cv_prog_YACC="$ac_prog" | |
1268 | break | |
1269 | fi | |
1270 | done | |
1271 | IFS="$ac_save_ifs" | |
1272 | fi | |
1273 | fi | |
1274 | YACC="$ac_cv_prog_YACC" | |
1275 | if test -n "$YACC"; then | |
1276 | echo "$ac_t""$YACC" 1>&6 | |
1277 | else | |
1278 | echo "$ac_t""no" 1>&6 | |
1279 | fi | |
1280 | ||
1281 | test -n "$YACC" && break | |
1282 | done | |
1283 | test -n "$YACC" || YACC="yacc" | |
1284 | ||
1285 | # Find a good install program. We prefer a C program (faster), | |
1286 | # so one script is as good as another. But avoid the broken or | |
1287 | # incompatible versions: | |
1288 | # SysV /etc/install, /usr/sbin/install | |
1289 | # SunOS /usr/etc/install | |
1290 | # IRIX /sbin/install | |
1291 | # AIX /bin/install | |
1292 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1293 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1294 | # ./install, which can be erroneously created by make from ./install.sh. | |
1295 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
092f7be3 | 1296 | echo "configure:1297: checking for a BSD compatible install" >&5 |
861bb6c1 JL |
1297 | if test -z "$INSTALL"; then |
1298 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
1299 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1300 | else | |
1301 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" | |
1302 | for ac_dir in $PATH; do | |
1303 | # Account for people who put trailing slashes in PATH elements. | |
1304 | case "$ac_dir/" in | |
1305 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
1306 | *) | |
1307 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
76143254 | 1308 | for ac_prog in ginstall scoinst install; do |
861bb6c1 JL |
1309 | if test -f $ac_dir/$ac_prog; then |
1310 | if test $ac_prog = install && | |
1311 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
1312 | # AIX install. It has an incompatible calling convention. | |
1313 | # OSF/1 installbsd also uses dspmsg, but is usable. | |
1314 | : | |
1315 | else | |
1316 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
1317 | break 2 | |
1318 | fi | |
1319 | fi | |
1320 | done | |
1321 | ;; | |
1322 | esac | |
1323 | done | |
1324 | IFS="$ac_save_IFS" | |
1325 | ||
1326 | fi | |
1327 | if test "${ac_cv_path_install+set}" = set; then | |
1328 | INSTALL="$ac_cv_path_install" | |
1329 | else | |
1330 | # As a last resort, use the slow shell script. We don't cache a | |
1331 | # path for INSTALL within a source directory, because that will | |
1332 | # break other packages using the cache if that directory is | |
1333 | # removed, or if the path is relative. | |
1334 | INSTALL="$ac_install_sh" | |
1335 | fi | |
1336 | fi | |
1337 | echo "$ac_t""$INSTALL" 1>&6 | |
1338 | ||
1339 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1340 | # It thinks the first close brace ends the variable substitution. | |
1341 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1342 | ||
1343 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1344 | ||
1345 | ||
861bb6c1 | 1346 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
092f7be3 | 1347 | echo "configure:1348: checking how to run the C preprocessor" >&5 |
861bb6c1 JL |
1348 | # On Suns, sometimes $CPP names a directory. |
1349 | if test -n "$CPP" && test -d "$CPP"; then | |
1350 | CPP= | |
1351 | fi | |
1352 | if test -z "$CPP"; then | |
1353 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
1354 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1355 | else | |
1356 | # This must be in double quotes, not single quotes, because CPP may get | |
1357 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
1358 | CPP="${CC-cc} -E" | |
1359 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
1360 | # not just through cpp. | |
1361 | cat > conftest.$ac_ext <<EOF | |
092f7be3 | 1362 | #line 1363 "configure" |
861bb6c1 JL |
1363 | #include "confdefs.h" |
1364 | #include <assert.h> | |
1365 | Syntax Error | |
1366 | EOF | |
1367 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
092f7be3 | 1368 | { (eval echo configure:1369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
861bb6c1 JL |
1369 | ac_err=`grep -v '^ *+' conftest.out` |
1370 | if test -z "$ac_err"; then | |
1371 | : | |
1372 | else | |
1373 | echo "$ac_err" >&5 | |
1374 | echo "configure: failed program was:" >&5 | |
1375 | cat conftest.$ac_ext >&5 | |
1376 | rm -rf conftest* | |
1377 | CPP="${CC-cc} -E -traditional-cpp" | |
1378 | cat > conftest.$ac_ext <<EOF | |
092f7be3 | 1379 | #line 1380 "configure" |
861bb6c1 JL |
1380 | #include "confdefs.h" |
1381 | #include <assert.h> | |
1382 | Syntax Error | |
1383 | EOF | |
1384 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
092f7be3 | 1385 | { (eval echo configure:1386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
861bb6c1 JL |
1386 | ac_err=`grep -v '^ *+' conftest.out` |
1387 | if test -z "$ac_err"; then | |
1388 | : | |
1389 | else | |
1390 | echo "$ac_err" >&5 | |
1391 | echo "configure: failed program was:" >&5 | |
1392 | cat conftest.$ac_ext >&5 | |
1393 | rm -rf conftest* | |
1394 | CPP=/lib/cpp | |
1395 | fi | |
1396 | rm -f conftest* | |
1397 | fi | |
1398 | rm -f conftest* | |
1399 | ac_cv_prog_CPP="$CPP" | |
1400 | fi | |
1401 | CPP="$ac_cv_prog_CPP" | |
1402 | else | |
1403 | ac_cv_prog_CPP="$CPP" | |
1404 | fi | |
1405 | echo "$ac_t""$CPP" 1>&6 | |
1406 | ||
956d6950 | 1407 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
092f7be3 | 1408 | echo "configure:1409: checking for ANSI C header files" >&5 |
956d6950 JL |
1409 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
1410 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1411 | else | |
1412 | cat > conftest.$ac_ext <<EOF | |
092f7be3 | 1413 | #line 1414 "configure" |
956d6950 JL |
1414 | #include "confdefs.h" |
1415 | #include <stdlib.h> | |
1416 | #include <stdarg.h> | |
1417 | #include <string.h> | |
1418 | #include <float.h> | |
1419 | EOF | |
1420 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
092f7be3 | 1421 | { (eval echo configure:1422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
956d6950 JL |
1422 | ac_err=`grep -v '^ *+' conftest.out` |
1423 | if test -z "$ac_err"; then | |
1424 | rm -rf conftest* | |
1425 | ac_cv_header_stdc=yes | |
1426 | else | |
1427 | echo "$ac_err" >&5 | |
1428 | echo "configure: failed program was:" >&5 | |
1429 | cat conftest.$ac_ext >&5 | |
1430 | rm -rf conftest* | |
1431 | ac_cv_header_stdc=no | |
1432 | fi | |
1433 | rm -f conftest* | |
1434 | ||
1435 | if test $ac_cv_header_stdc = yes; then | |
1436 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
1437 | cat > conftest.$ac_ext <<EOF | |
092f7be3 | 1438 | #line 1439 "configure" |
956d6950 JL |
1439 | #include "confdefs.h" |
1440 | #include <string.h> | |
1441 | EOF | |
1442 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1443 | egrep "memchr" >/dev/null 2>&1; then | |
1444 | : | |
1445 | else | |
1446 | rm -rf conftest* | |
1447 | ac_cv_header_stdc=no | |
1448 | fi | |
1449 | rm -f conftest* | |
1450 | ||
1451 | fi | |
1452 | ||
1453 | if test $ac_cv_header_stdc = yes; then | |
1454 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
1455 | cat > conftest.$ac_ext <<EOF | |
092f7be3 | 1456 | #line 1457 "configure" |
956d6950 JL |
1457 | #include "confdefs.h" |
1458 | #include <stdlib.h> | |
1459 | EOF | |
1460 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1461 | egrep "free" >/dev/null 2>&1; then | |
1462 | : | |
1463 | else | |
1464 | rm -rf conftest* | |
1465 | ac_cv_header_stdc=no | |
1466 | fi | |
1467 | rm -f conftest* | |
1468 | ||
1469 | fi | |
1470 | ||
1471 | if test $ac_cv_header_stdc = yes; then | |
1472 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
1473 | if test "$cross_compiling" = yes; then | |
1474 | : | |
1475 | else | |
1476 | cat > conftest.$ac_ext <<EOF | |
092f7be3 | 1477 | #line 1478 "configure" |
956d6950 JL |
1478 | #include "confdefs.h" |
1479 | #include <ctype.h> | |
1480 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
1481 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1482 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
1483 | int main () { int i; for (i = 0; i < 256; i++) | |
1484 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
1485 | exit (0); } | |
1486 | ||
1487 | EOF | |
092f7be3 | 1488 | if { (eval echo configure:1489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
956d6950 JL |
1489 | then |
1490 | : | |
1491 | else | |
1492 | echo "configure: failed program was:" >&5 | |
1493 | cat conftest.$ac_ext >&5 | |
1494 | rm -fr conftest* | |
1495 | ac_cv_header_stdc=no | |
1496 | fi | |
1497 | rm -fr conftest* | |
1498 | fi | |
1499 | ||
1500 | fi | |
1501 | fi | |
1502 | ||
1503 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
1504 | if test $ac_cv_header_stdc = yes; then | |
1505 | cat >> confdefs.h <<\EOF | |
1506 | #define STDC_HEADERS 1 | |
1507 | EOF | |
1508 | ||
1509 | fi | |
1510 | ||
1511 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 | |
092f7be3 | 1512 | echo "configure:1513: checking whether time.h and sys/time.h may both be included" >&5 |
956d6950 JL |
1513 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
1514 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1515 | else | |
1516 | cat > conftest.$ac_ext <<EOF | |
092f7be3 | 1517 | #line 1518 "configure" |
956d6950 JL |
1518 | #include "confdefs.h" |
1519 | #include <sys/types.h> | |
1520 | #include <sys/time.h> | |
1521 | #include <time.h> | |
1522 | int main() { | |
1523 | struct tm *tp; | |
1524 | ; return 0; } | |
1525 | EOF | |
092f7be3 | 1526 | if { (eval echo configure:1527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
956d6950 JL |
1527 | rm -rf conftest* |
1528 | ac_cv_header_time=yes | |
1529 | else | |
1530 | echo "configure: failed program was:" >&5 | |
1531 | cat conftest.$ac_ext >&5 | |
1532 | rm -rf conftest* | |
1533 | ac_cv_header_time=no | |
1534 | fi | |
1535 | rm -f conftest* | |
1536 | fi | |
1537 | ||
1538 | echo "$ac_t""$ac_cv_header_time" 1>&6 | |
1539 | if test $ac_cv_header_time = yes; then | |
1540 | cat >> confdefs.h <<\EOF | |
1541 | #define TIME_WITH_SYS_TIME 1 | |
1542 | EOF | |
1543 | ||
1544 | fi | |
1545 | ||
76b4b31e | 1546 | for ac_hdr in limits.h stddef.h string.h strings.h stdlib.h time.h fcntl.h unistd.h stab.h sys/file.h sys/time.h sys/resource.h sys/param.h sys/times.h wait.h sys/wait.h |
861bb6c1 JL |
1547 | do |
1548 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
1549 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
092f7be3 | 1550 | echo "configure:1551: checking for $ac_hdr" >&5 |
861bb6c1 JL |
1551 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1552 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1553 | else | |
1554 | cat > conftest.$ac_ext <<EOF | |
092f7be3 | 1555 | #line 1556 "configure" |
861bb6c1 JL |
1556 | #include "confdefs.h" |
1557 | #include <$ac_hdr> | |
1558 | EOF | |
956d6950 | 1559 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
092f7be3 | 1560 | { (eval echo configure:1561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
956d6950 JL |
1561 | ac_err=`grep -v '^ *+' conftest.out` |
1562 | if test -z "$ac_err"; then | |
1563 | rm -rf conftest* | |
1564 | eval "ac_cv_header_$ac_safe=yes" | |
1565 | else | |
1566 | echo "$ac_err" >&5 | |
1567 | echo "configure: failed program was:" >&5 | |
1568 | cat conftest.$ac_ext >&5 | |
1569 | rm -rf conftest* | |
1570 | eval "ac_cv_header_$ac_safe=no" | |
1571 | fi | |
1572 | rm -f conftest* | |
1573 | fi | |
1574 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
1575 | echo "$ac_t""yes" 1>&6 | |
1576 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
1577 | cat >> confdefs.h <<EOF | |
1578 | #define $ac_tr_hdr 1 | |
1579 | EOF | |
1580 | ||
1581 | else | |
1582 | echo "$ac_t""no" 1>&6 | |
1583 | fi | |
1584 | done | |
1585 | ||
1586 | ||
f24af81b TT |
1587 | # Check for thread headers. |
1588 | ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'` | |
1589 | echo $ac_n "checking for thread.h""... $ac_c" 1>&6 | |
092f7be3 | 1590 | echo "configure:1591: checking for thread.h" >&5 |
f24af81b TT |
1591 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1592 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1593 | else | |
1594 | cat > conftest.$ac_ext <<EOF | |
092f7be3 | 1595 | #line 1596 "configure" |
f24af81b TT |
1596 | #include "confdefs.h" |
1597 | #include <thread.h> | |
1598 | EOF | |
1599 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
092f7be3 | 1600 | { (eval echo configure:1601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
f24af81b TT |
1601 | ac_err=`grep -v '^ *+' conftest.out` |
1602 | if test -z "$ac_err"; then | |
1603 | rm -rf conftest* | |
1604 | eval "ac_cv_header_$ac_safe=yes" | |
1605 | else | |
1606 | echo "$ac_err" >&5 | |
1607 | echo "configure: failed program was:" >&5 | |
1608 | cat conftest.$ac_ext >&5 | |
1609 | rm -rf conftest* | |
1610 | eval "ac_cv_header_$ac_safe=no" | |
1611 | fi | |
1612 | rm -f conftest* | |
1613 | fi | |
1614 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
1615 | echo "$ac_t""yes" 1>&6 | |
1616 | have_thread_h=yes | |
1617 | else | |
1618 | echo "$ac_t""no" 1>&6 | |
1619 | have_thread_h= | |
1620 | fi | |
1621 | ||
1622 | ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'` | |
1623 | echo $ac_n "checking for pthread.h""... $ac_c" 1>&6 | |
092f7be3 | 1624 | echo "configure:1625: checking for pthread.h" >&5 |
f24af81b TT |
1625 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1626 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1627 | else | |
1628 | cat > conftest.$ac_ext <<EOF | |
092f7be3 | 1629 | #line 1630 "configure" |
f24af81b TT |
1630 | #include "confdefs.h" |
1631 | #include <pthread.h> | |
1632 | EOF | |
1633 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
092f7be3 | 1634 | { (eval echo configure:1635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
f24af81b TT |
1635 | ac_err=`grep -v '^ *+' conftest.out` |
1636 | if test -z "$ac_err"; then | |
1637 | rm -rf conftest* | |
1638 | eval "ac_cv_header_$ac_safe=yes" | |
1639 | else | |
1640 | echo "$ac_err" >&5 | |
1641 | echo "configure: failed program was:" >&5 | |
1642 | cat conftest.$ac_ext >&5 | |
1643 | rm -rf conftest* | |
1644 | eval "ac_cv_header_$ac_safe=no" | |
1645 | fi | |
1646 | rm -f conftest* | |
1647 | fi | |
1648 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
1649 | echo "$ac_t""yes" 1>&6 | |
1650 | have_pthread_h=yes | |
1651 | else | |
1652 | echo "$ac_t""no" 1>&6 | |
1653 | have_pthread_h= | |
1654 | fi | |
1655 | ||
1656 | ||
76844337 RH |
1657 | # See if the system preprocessor understands the ANSI C preprocessor |
1658 | # stringification operator. | |
1659 | echo $ac_n "checking whether cpp understands the stringify operator""... $ac_c" 1>&6 | |
092f7be3 | 1660 | echo "configure:1661: checking whether cpp understands the stringify operator" >&5 |
76844337 RH |
1661 | if eval "test \"`echo '$''{'gcc_cv_c_have_stringify'+set}'`\" = set"; then |
1662 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1663 | else | |
1664 | cat > conftest.$ac_ext <<EOF | |
092f7be3 | 1665 | #line 1666 "configure" |
76844337 RH |
1666 | #include "confdefs.h" |
1667 | ||
1668 | int main() { | |
1669 | #define S(x) #x | |
1670 | char *test = S(foo); | |
1671 | ; return 0; } | |
1672 | EOF | |
092f7be3 | 1673 | if { (eval echo configure:1674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
76844337 RH |
1674 | rm -rf conftest* |
1675 | gcc_cv_c_have_stringify=yes | |
1676 | else | |
1677 | echo "configure: failed program was:" >&5 | |
1678 | cat conftest.$ac_ext >&5 | |
1679 | rm -rf conftest* | |
1680 | gcc_cv_c_have_stringify=no | |
1681 | fi | |
1682 | rm -f conftest* | |
1683 | fi | |
1684 | ||
1685 | echo "$ac_t""$gcc_cv_c_have_stringify" 1>&6 | |
1686 | if test $gcc_cv_c_have_stringify = yes; then | |
1687 | cat >> confdefs.h <<\EOF | |
1688 | #define HAVE_CPP_STRINGIFY 1 | |
1689 | EOF | |
1690 | ||
1691 | fi | |
1692 | ||
956d6950 JL |
1693 | # Use <inttypes.h> only if it exists, |
1694 | # doesn't clash with <sys/types.h>, and declares intmax_t. | |
1695 | echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6 | |
092f7be3 | 1696 | echo "configure:1697: checking for inttypes.h" >&5 |
956d6950 JL |
1697 | if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then |
1698 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1699 | else | |
1700 | cat > conftest.$ac_ext <<EOF | |
092f7be3 | 1701 | #line 1702 "configure" |
956d6950 JL |
1702 | #include "confdefs.h" |
1703 | #include <sys/types.h> | |
1704 | #include <inttypes.h> | |
1705 | int main() { | |
1706 | intmax_t i = -1; | |
1707 | ; return 0; } | |
1708 | EOF | |
092f7be3 | 1709 | if { (eval echo configure:1710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
956d6950 JL |
1710 | rm -rf conftest* |
1711 | cat >> confdefs.h <<EOF | |
1712 | #define HAVE_INTTYPES_H 1 | |
1713 | EOF | |
1714 | ||
1715 | gcc_cv_header_inttypes_h=yes | |
1716 | else | |
1717 | echo "configure: failed program was:" >&5 | |
1718 | cat conftest.$ac_ext >&5 | |
1719 | rm -rf conftest* | |
1720 | gcc_cv_header_inttypes_h=no | |
1721 | fi | |
1722 | rm -f conftest* | |
1723 | fi | |
1724 | ||
1725 | echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6 | |
1726 | ||
76b4b31e | 1727 | for ac_func in strtoul bsearch strerror putenv popen bcopy bzero bcmp \ |
8f81384f | 1728 | index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \ |
d3ee8d68 | 1729 | sysconf isascii gettimeofday |
956d6950 JL |
1730 | do |
1731 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
092f7be3 | 1732 | echo "configure:1733: checking for $ac_func" >&5 |
956d6950 JL |
1733 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
1734 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1735 | else | |
1736 | cat > conftest.$ac_ext <<EOF | |
092f7be3 | 1737 | #line 1738 "configure" |
956d6950 JL |
1738 | #include "confdefs.h" |
1739 | /* System header to define __stub macros and hopefully few prototypes, | |
1740 | which can conflict with char $ac_func(); below. */ | |
1741 | #include <assert.h> | |
1742 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1743 | /* We use char because int might match the return type of a gcc2 | |
1744 | builtin and then its argument prototype would still apply. */ | |
1745 | char $ac_func(); | |
1746 | ||
1747 | int main() { | |
1748 | ||
1749 | /* The GNU C library defines this for functions which it implements | |
1750 | to always fail with ENOSYS. Some functions are actually named | |
1751 | something starting with __ and the normal name is an alias. */ | |
1752 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
1753 | choke me | |
1754 | #else | |
1755 | $ac_func(); | |
1756 | #endif | |
1757 | ||
1758 | ; return 0; } | |
1759 | EOF | |
092f7be3 | 1760 | if { (eval echo configure:1761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
956d6950 JL |
1761 | rm -rf conftest* |
1762 | eval "ac_cv_func_$ac_func=yes" | |
1763 | else | |
1764 | echo "configure: failed program was:" >&5 | |
1765 | cat conftest.$ac_ext >&5 | |
1766 | rm -rf conftest* | |
1767 | eval "ac_cv_func_$ac_func=no" | |
1768 | fi | |
1769 | rm -f conftest* | |
1770 | fi | |
1771 | ||
1772 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
1773 | echo "$ac_t""yes" 1>&6 | |
1774 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
1775 | cat >> confdefs.h <<EOF | |
1776 | #define $ac_tr_func 1 | |
1777 | EOF | |
1778 | ||
1779 | else | |
1780 | echo "$ac_t""no" 1>&6 | |
1781 | fi | |
1782 | done | |
1783 | ||
6885fc87 | 1784 | |
76b4b31e | 1785 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
092f7be3 | 1786 | echo "configure:1787: checking for vprintf" >&5 |
76b4b31e KG |
1787 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
1788 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1789 | else | |
1790 | cat > conftest.$ac_ext <<EOF | |
092f7be3 | 1791 | #line 1792 "configure" |
76b4b31e KG |
1792 | #include "confdefs.h" |
1793 | /* System header to define __stub macros and hopefully few prototypes, | |
1794 | which can conflict with char vprintf(); below. */ | |
1795 | #include <assert.h> | |
1796 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1797 | /* We use char because int might match the return type of a gcc2 | |
1798 | builtin and then its argument prototype would still apply. */ | |
1799 | char vprintf(); | |
1800 | ||
1801 | int main() { | |
1802 | ||
1803 | /* The GNU C library defines this for functions which it implements | |
1804 | to always fail with ENOSYS. Some functions are actually named | |
1805 | something starting with __ and the normal name is an alias. */ | |
1806 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
1807 | choke me | |
1808 | #else | |
1809 | vprintf(); | |
1810 | #endif | |
1811 | ||
1812 | ; return 0; } | |
1813 | EOF | |
092f7be3 | 1814 | if { (eval echo configure:1815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
76b4b31e KG |
1815 | rm -rf conftest* |
1816 | eval "ac_cv_func_vprintf=yes" | |
1817 | else | |
1818 | echo "configure: failed program was:" >&5 | |
1819 | cat conftest.$ac_ext >&5 | |
1820 | rm -rf conftest* | |
1821 | eval "ac_cv_func_vprintf=no" | |
1822 | fi | |
1823 | rm -f conftest* | |
1824 | fi | |
1825 | ||
1826 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
1827 | echo "$ac_t""yes" 1>&6 | |
1828 | cat >> confdefs.h <<\EOF | |
1829 | #define HAVE_VPRINTF 1 | |
1830 | EOF | |
1831 | ||
1832 | else | |
1833 | echo "$ac_t""no" 1>&6 | |
1834 | fi | |
1835 | ||
1836 | if test "$ac_cv_func_vprintf" != yes; then | |
1837 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
092f7be3 | 1838 | echo "configure:1839: checking for _doprnt" >&5 |
76b4b31e KG |
1839 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
1840 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1841 | else | |
1842 | cat > conftest.$ac_ext <<EOF | |
092f7be3 | 1843 | #line 1844 "configure" |
76b4b31e KG |
1844 | #include "confdefs.h" |
1845 | /* System header to define __stub macros and hopefully few prototypes, | |
1846 | which can conflict with char _doprnt(); below. */ | |
1847 | #include <assert.h> | |
1848 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1849 | /* We use char because int might match the return type of a gcc2 | |
1850 | builtin and then its argument prototype would still apply. */ | |
1851 | char _doprnt(); | |
1852 | ||
1853 | int main() { | |
1854 | ||
1855 | /* The GNU C library defines this for functions which it implements | |
1856 | to always fail with ENOSYS. Some functions are actually named | |
1857 | something starting with __ and the normal name is an alias. */ | |
1858 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
1859 | choke me | |
1860 | #else | |
1861 | _doprnt(); | |
1862 | #endif | |
1863 | ||
1864 | ; return 0; } | |
1865 | EOF | |
092f7be3 | 1866 | if { (eval echo configure:1867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
76b4b31e KG |
1867 | rm -rf conftest* |
1868 | eval "ac_cv_func__doprnt=yes" | |
1869 | else | |
1870 | echo "configure: failed program was:" >&5 | |
1871 | cat conftest.$ac_ext >&5 | |
1872 | rm -rf conftest* | |
1873 | eval "ac_cv_func__doprnt=no" | |
1874 | fi | |
1875 | rm -f conftest* | |
1876 | fi | |
1877 | ||
1878 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
1879 | echo "$ac_t""yes" 1>&6 | |
1880 | cat >> confdefs.h <<\EOF | |
1881 | #define HAVE_DOPRNT 1 | |
1882 | EOF | |
1883 | ||
1884 | else | |
1885 | echo "$ac_t""no" 1>&6 | |
1886 | fi | |
1887 | ||
1888 | fi | |
1889 | ||
1890 | vfprintf= | |
1891 | doprint= | |
1892 | if test $ac_cv_func_vprintf != yes ; then | |
1893 | vfprintf=vfprintf.o | |
1894 | if test $ac_cv_func__doprnt != yes ; then | |
1895 | doprint=doprint.o | |
1896 | fi | |
1897 | fi | |
1898 | ||
1899 | ||
1900 | ||
f1b54f9b | 1901 | echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6 |
092f7be3 | 1902 | echo "configure:1903: checking whether the printf functions support %p" >&5 |
f1b54f9b KG |
1903 | if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then |
1904 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1905 | else | |
1906 | if test "$cross_compiling" = yes; then | |
1907 | gcc_cv_func_printf_ptr=no | |
1908 | else | |
1909 | cat > conftest.$ac_ext <<EOF | |
092f7be3 | 1910 | #line 1911 "configure" |
f1b54f9b KG |
1911 | #include "confdefs.h" |
1912 | #include <stdio.h> | |
1913 | ||
1914 | main() | |
1915 | { | |
1916 | char buf[64]; | |
1917 | char *p = buf, *q = NULL; | |
1918 | sprintf(buf, "%p", p); | |
1919 | sscanf(buf, "%p", &q); | |
1920 | exit (p != q); | |
1921 | } | |
1922 | EOF | |
092f7be3 | 1923 | if { (eval echo configure:1924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
f1b54f9b KG |
1924 | then |
1925 | gcc_cv_func_printf_ptr=yes | |
1926 | else | |
1927 | echo "configure: failed program was:" >&5 | |
1928 | cat conftest.$ac_ext >&5 | |
1929 | rm -fr conftest* | |
1930 | gcc_cv_func_printf_ptr=no | |
1931 | fi | |
1932 | rm -fr conftest* | |
1933 | fi | |
1934 | ||
1935 | rm -f core core.* *.core | |
1936 | fi | |
1937 | ||
1938 | echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6 | |
1939 | if test $gcc_cv_func_printf_ptr = yes ; then | |
1940 | cat >> confdefs.h <<\EOF | |
092f7be3 | 1941 | #define HAVE_PRINTF_PTR 1 |
f1b54f9b KG |
1942 | EOF |
1943 | ||
1944 | fi | |
1945 | ||
1946 | ||
1947 | for ac_func in malloc realloc calloc free bcopy bzero bcmp \ | |
6cd5dccd | 1948 | index rindex getenv atol sbrk abort atof strerror getcwd getwd |
f1b54f9b KG |
1949 | do |
1950 | echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6 | |
092f7be3 | 1951 | echo "configure:1952: checking whether $ac_func must be declared" >&5 |
f1b54f9b KG |
1952 | if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then |
1953 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1954 | else | |
1955 | cat > conftest.$ac_ext <<EOF | |
092f7be3 | 1956 | #line 1957 "configure" |
f1b54f9b KG |
1957 | #include "confdefs.h" |
1958 | ||
1959 | #include <stdio.h> | |
1960 | #ifdef HAVE_STRING_H | |
1961 | #include <string.h> | |
1962 | #else | |
1963 | #ifdef HAVE_STRINGS_H | |
1964 | #include <strings.h> | |
1965 | #endif | |
1966 | #endif | |
1967 | #ifdef HAVE_STDLIB_H | |
1968 | #include <stdlib.h> | |
1969 | #endif | |
1970 | #ifdef HAVE_UNISTD_H | |
1971 | #include <unistd.h> | |
1972 | #endif | |
1973 | #ifndef HAVE_RINDEX | |
1974 | #define rindex strrchr | |
1975 | #endif | |
1976 | #ifndef HAVE_INDEX | |
1977 | #define index strchr | |
1978 | #endif | |
d2cabf16 KG |
1979 | |
1980 | int main() { | |
1981 | char *(*pfn) = (char *(*)) $ac_func | |
1982 | ; return 0; } | |
1983 | EOF | |
092f7be3 | 1984 | if { (eval echo configure:1985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d2cabf16 KG |
1985 | rm -rf conftest* |
1986 | eval "gcc_cv_decl_needed_$ac_func=no" | |
1987 | else | |
1988 | echo "configure: failed program was:" >&5 | |
1989 | cat conftest.$ac_ext >&5 | |
1990 | rm -rf conftest* | |
1991 | eval "gcc_cv_decl_needed_$ac_func=yes" | |
1992 | fi | |
1993 | rm -f conftest* | |
1994 | fi | |
1995 | ||
1996 | if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then | |
1997 | echo "$ac_t""yes" 1>&6 | |
1998 | gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
1999 | cat >> confdefs.h <<EOF | |
2000 | #define $gcc_tr_decl 1 | |
2001 | EOF | |
2002 | ||
2003 | else | |
2004 | echo "$ac_t""no" 1>&6 | |
2005 | fi | |
2006 | ||
2007 | done | |
2008 | ||
2009 | ||
2010 | for ac_func in getrlimit setrlimit | |
2011 | do | |
2012 | echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6 | |
092f7be3 | 2013 | echo "configure:2014: checking whether $ac_func must be declared" >&5 |
d2cabf16 KG |
2014 | if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then |
2015 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2016 | else | |
2017 | cat > conftest.$ac_ext <<EOF | |
092f7be3 | 2018 | #line 2019 "configure" |
d2cabf16 KG |
2019 | #include "confdefs.h" |
2020 | ||
2021 | #include <stdio.h> | |
2022 | #ifdef HAVE_STRING_H | |
2023 | #include <string.h> | |
2024 | #else | |
2025 | #ifdef HAVE_STRINGS_H | |
2026 | #include <strings.h> | |
2027 | #endif | |
2028 | #endif | |
2029 | #ifdef HAVE_STDLIB_H | |
2030 | #include <stdlib.h> | |
2031 | #endif | |
2032 | #ifdef HAVE_UNISTD_H | |
2033 | #include <unistd.h> | |
2034 | #endif | |
2035 | #ifndef HAVE_RINDEX | |
2036 | #define rindex strrchr | |
2037 | #endif | |
2038 | #ifndef HAVE_INDEX | |
2039 | #define index strchr | |
2040 | #endif | |
2041 | #include <sys/types.h> | |
2042 | #ifdef HAVE_SYS_RESOURCE_H | |
2043 | #include <sys/resource.h> | |
2044 | #endif | |
2045 | ||
f1b54f9b KG |
2046 | int main() { |
2047 | char *(*pfn) = (char *(*)) $ac_func | |
2048 | ; return 0; } | |
2049 | EOF | |
092f7be3 | 2050 | if { (eval echo configure:2051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
f1b54f9b KG |
2051 | rm -rf conftest* |
2052 | eval "gcc_cv_decl_needed_$ac_func=no" | |
2053 | else | |
2054 | echo "configure: failed program was:" >&5 | |
2055 | cat conftest.$ac_ext >&5 | |
2056 | rm -rf conftest* | |
2057 | eval "gcc_cv_decl_needed_$ac_func=yes" | |
2058 | fi | |
2059 | rm -f conftest* | |
2060 | fi | |
2061 | ||
2062 | if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then | |
2063 | echo "$ac_t""yes" 1>&6 | |
2064 | gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2065 | cat >> confdefs.h <<EOF | |
2066 | #define $gcc_tr_decl 1 | |
2067 | EOF | |
2068 | ||
2069 | else | |
2070 | echo "$ac_t""no" 1>&6 | |
2071 | fi | |
2072 | ||
2073 | done | |
2074 | ||
956d6950 JL |
2075 | |
2076 | echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 | |
092f7be3 | 2077 | echo "configure:2078: checking for sys_siglist declaration in signal.h or unistd.h" >&5 |
956d6950 JL |
2078 | if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then |
2079 | echo $ac_n "(cached) $ac_c" 1>&6 | |
a63d08e6 | 2080 | else |
956d6950 | 2081 | cat > conftest.$ac_ext <<EOF |
092f7be3 | 2082 | #line 2083 "configure" |
956d6950 JL |
2083 | #include "confdefs.h" |
2084 | #include <sys/types.h> | |
2085 | #include <signal.h> | |
2086 | /* NetBSD declares sys_siglist in unistd.h. */ | |
2087 | #ifdef HAVE_UNISTD_H | |
2088 | #include <unistd.h> | |
2089 | #endif | |
2090 | int main() { | |
2091 | char *msg = *(sys_siglist + 1); | |
2092 | ; return 0; } | |
2093 | EOF | |
092f7be3 | 2094 | if { (eval echo configure:2095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
956d6950 JL |
2095 | rm -rf conftest* |
2096 | ac_cv_decl_sys_siglist=yes | |
2097 | else | |
2098 | echo "configure: failed program was:" >&5 | |
2099 | cat conftest.$ac_ext >&5 | |
2100 | rm -rf conftest* | |
2101 | ac_cv_decl_sys_siglist=no | |
2102 | fi | |
2103 | rm -f conftest* | |
2104 | fi | |
2105 | ||
2106 | echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6 | |
2107 | if test $ac_cv_decl_sys_siglist = yes; then | |
2108 | cat >> confdefs.h <<\EOF | |
2109 | #define SYS_SIGLIST_DECLARED 1 | |
2110 | EOF | |
2111 | ||
a63d08e6 | 2112 | fi |
a63d08e6 JL |
2113 | |
2114 | ||
861bb6c1 JL |
2115 | # File extensions |
2116 | manext='.1' | |
2117 | objext='.o' | |
2118 | ||
2119 | ||
2120 | ||
2121 | build_xm_file= | |
f6cb0e63 | 2122 | build_xm_defines= |
861bb6c1 JL |
2123 | build_install_headers_dir=install-headers-tar |
2124 | build_exeext= | |
2125 | host_xm_file= | |
f6cb0e63 | 2126 | host_xm_defines= |
861bb6c1 JL |
2127 | host_xmake_file= |
2128 | host_truncate_target= | |
6e26218f | 2129 | host_exeext= |
861bb6c1 JL |
2130 | |
2131 | # Decode the host machine, then the target machine. | |
2132 | # For the host machine, we save the xm_file variable as host_xm_file; | |
2133 | # then we decode the target machine and forget everything else | |
2134 | # that came from the host machine. | |
2135 | for machine in $build $host $target; do | |
2136 | ||
2137 | out_file= | |
2138 | xmake_file= | |
2139 | tmake_file= | |
2140 | extra_headers= | |
2141 | extra_passes= | |
2142 | extra_parts= | |
2143 | extra_programs= | |
2144 | extra_objs= | |
2145 | extra_host_objs= | |
2146 | extra_gcc_objs= | |
f6cb0e63 | 2147 | xm_defines= |
861bb6c1 JL |
2148 | float_format= |
2149 | # Set this to force installation and use of collect2. | |
2150 | use_collect2= | |
2151 | # Set this to override the default target model. | |
2152 | target_cpu_default= | |
861bb6c1 | 2153 | # Set this to control which fixincludes program to use. |
34a4c466 | 2154 | if [ x$fast_fixinc != xyes ] ; then |
4b104d6e JL |
2155 | fixincludes=fixincludes |
2156 | else fixincludes=fixinc.sh ; fi | |
861bb6c1 JL |
2157 | # Set this to control how the header file directory is installed. |
2158 | install_headers_dir=install-headers-tar | |
2159 | # Set this to a non-empty list of args to pass to cpp if the target | |
2160 | # wants its .md file passed through cpp. | |
2161 | md_cppflags= | |
2162 | # Set this if directory names should be truncated to 14 characters. | |
2163 | truncate_target= | |
2164 | # Set this if gdb needs a dir command with `dirname $out_file` | |
2165 | gdb_needs_out_file_path= | |
2166 | # Set this if the build machine requires executables to have a | |
2167 | # file name suffix. | |
2168 | exeext= | |
a851212a JW |
2169 | # Set this to control which thread package will be used. |
2170 | thread_file= | |
df6faf79 JW |
2171 | # Reinitialize these from the flag values every loop pass, since some |
2172 | # configure entries modify them. | |
2173 | gas="$gas_flag" | |
2174 | gnu_ld="$gnu_ld_flag" | |
e445171e | 2175 | enable_threads=$enable_threads_flag |
861bb6c1 JL |
2176 | |
2177 | # Set default cpu_type, tm_file and xm_file so it can be updated in | |
2178 | # each machine entry. | |
2179 | cpu_type=`echo $machine | sed 's/-.*$//'` | |
2180 | case $machine in | |
2181 | alpha*-*-*) | |
2182 | cpu_type=alpha | |
2183 | ;; | |
2184 | arm*-*-*) | |
2185 | cpu_type=arm | |
2186 | ;; | |
2187 | c*-convex-*) | |
2188 | cpu_type=convex | |
2189 | ;; | |
f6cb0e63 | 2190 | i[34567]86-*-*) |
861bb6c1 JL |
2191 | cpu_type=i386 |
2192 | ;; | |
2193 | hppa*-*-*) | |
2194 | cpu_type=pa | |
2195 | ;; | |
2196 | m68000-*-*) | |
2197 | cpu_type=m68k | |
2198 | ;; | |
2199 | mips*-*-*) | |
2200 | cpu_type=mips | |
2201 | ;; | |
2202 | powerpc*-*-*) | |
2203 | cpu_type=rs6000 | |
2204 | ;; | |
2205 | pyramid-*-*) | |
2206 | cpu_type=pyr | |
2207 | ;; | |
2208 | sparc*-*-*) | |
2209 | cpu_type=sparc | |
2210 | ;; | |
2211 | esac | |
2212 | ||
2213 | tm_file=${cpu_type}/${cpu_type}.h | |
2214 | xm_file=${cpu_type}/xm-${cpu_type}.h | |
2215 | ||
f6cb0e63 JL |
2216 | # Set the default macros to define for GNU/Linux systems. |
2217 | case $machine in | |
2218 | *-*-linux-gnu*) | |
c7391272 | 2219 | xm_defines="HAVE_ATEXIT POSIX BSTRING" |
f6cb0e63 JL |
2220 | ;; |
2221 | esac | |
2222 | ||
861bb6c1 JL |
2223 | case $machine in |
2224 | # Support site-specific machine types. | |
2225 | *local*) | |
2226 | cpu_type=`echo $machine | sed -e 's/-.*//'` | |
2227 | rest=`echo $machine | sed -e "s/$cpu_type-//"` | |
2228 | xm_file=${cpu_type}/xm-$rest.h | |
2229 | tm_file=${cpu_type}/$rest.h | |
2230 | if [ -f $srcdir/config/${cpu_type}/x-$rest ] ; \ | |
2231 | then xmake_file=${cpu_type}/x-$rest; \ | |
2232 | else true; \ | |
2233 | fi | |
2234 | if [ -f $srcdir/config/${cpu_type}/t-$rest ] ; \ | |
2235 | then tmake_file=${cpu_type}/t-$rest; \ | |
2236 | else true; \ | |
2237 | fi | |
2238 | ;; | |
2239 | 1750a-*-*) | |
2240 | ;; | |
2241 | a29k-*-bsd* | a29k-*-sym1*) | |
2242 | tm_file="${tm_file} a29k/unix.h" | |
f6cb0e63 | 2243 | xm_defines=USG |
861bb6c1 JL |
2244 | xmake_file=a29k/x-unix |
2245 | use_collect2=yes | |
2246 | ;; | |
2247 | a29k-*-udi | a29k-*-coff) | |
2248 | tm_file="${tm_file} dbxcoff.h a29k/udi.h" | |
2249 | tmake_file=a29k/t-a29kbare | |
2250 | ;; | |
7cc34889 | 2251 | a29k-wrs-vxworks*) |
861bb6c1 JL |
2252 | tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h" |
2253 | tmake_file=a29k/t-vx29k | |
2254 | extra_parts="crtbegin.o crtend.o" | |
7cc34889 | 2255 | thread_file='vxworks' |
861bb6c1 JL |
2256 | ;; |
2257 | a29k-*-*) # Default a29k environment. | |
2258 | use_collect2=yes | |
2259 | ;; | |
2260 | alpha*-*-linux-gnuecoff*) | |
8983c716 | 2261 | tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h" |
f6cb0e63 | 2262 | target_cpu_default="MASK_GAS" |
861bb6c1 JL |
2263 | gas=no |
2264 | xmake_file=none | |
861bb6c1 JL |
2265 | gas=yes gnu_ld=yes |
2266 | ;; | |
2601ebca | 2267 | alpha*-*-linux-gnulibc1*) |
9d654bba | 2268 | tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h" |
f6cb0e63 | 2269 | target_cpu_default="MASK_GAS" |
574badbc RH |
2270 | tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe" |
2271 | extra_parts="crtbegin.o crtend.o" | |
9d654bba | 2272 | fixincludes=fixinc.wrap |
2601ebca | 2273 | xmake_file=none |
2601ebca JL |
2274 | gas=yes gnu_ld=yes |
2275 | if [ x$enable_threads = xyes ]; then | |
2276 | thread_file='posix' | |
2277 | fi | |
2278 | ;; | |
861bb6c1 | 2279 | alpha*-*-linux-gnu*) |
9d654bba | 2280 | tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h" |
f6cb0e63 | 2281 | target_cpu_default="MASK_GAS" |
574badbc RH |
2282 | tmake_file="t-linux alpha/t-linux alpha/t-crtbe" |
2283 | extra_parts="crtbegin.o crtend.o" | |
861bb6c1 JL |
2284 | xmake_file=none |
2285 | fixincludes=Makefile.in | |
861bb6c1 JL |
2286 | gas=yes gnu_ld=yes |
2287 | if [ x$enable_threads = xyes ]; then | |
2288 | thread_file='posix' | |
2289 | fi | |
2290 | ;; | |
9d654bba RH |
2291 | alpha*-*-netbsd*) |
2292 | tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsdl-elf.h" | |
2293 | target_cpu_default="MASK_GAS" | |
2294 | tmake_file="alpha/t-crtbe" | |
2295 | extra_parts="crtbegin.o crtend.o" | |
2296 | xmake_file=none | |
2297 | fixincludes=fixinc.wrap | |
2298 | gas=yes gnu_ld=yes | |
2299 | ;; | |
2300 | ||
e9a25f70 | 2301 | alpha*-dec-osf*) |
861bb6c1 JL |
2302 | if [ x$stabs = xyes ] |
2303 | then | |
2304 | tm_file="${tm_file} dbx.h" | |
2305 | fi | |
2306 | if [ x$gas != xyes ] | |
2307 | then | |
2308 | extra_passes="mips-tfile mips-tdump" | |
2309 | fi | |
861bb6c1 | 2310 | use_collect2=yes |
861bb6c1 | 2311 | case $machine in |
6ecd4e53 | 2312 | *-*-osf1*) |
b0435cf4 | 2313 | tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h" |
e9a25f70 JL |
2314 | ;; |
2315 | *-*-osf[23]*) | |
b0435cf4 | 2316 | tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h" |
e9a25f70 JL |
2317 | ;; |
2318 | *-*-osf4*) | |
b0435cf4 | 2319 | tm_file="${tm_file} alpha/osf.h" |
e9a25f70 JL |
2320 | # Some versions of OSF4 (specifically X4.0-9 296.7) have |
2321 | # a broken tar, so we use cpio instead. | |
861bb6c1 JL |
2322 | install_headers_dir=install-headers-cpio |
2323 | ;; | |
2324 | esac | |
e9a25f70 JL |
2325 | case $machine in |
2326 | *-*-osf4.0[b-z] | *-*-osf4.[1-9]*) | |
2327 | target_cpu_default=MASK_SUPPORT_ARCH | |
2328 | ;; | |
2329 | esac | |
861bb6c1 | 2330 | ;; |
9ec36da5 JL |
2331 | alpha*-*-vxworks*) |
2332 | tm_file="${tm_file} dbx.h alpha/vxworks.h" | |
2333 | if x$gas != xyes | |
2334 | then | |
2335 | extra_passes="mips-tfile mips-tdump" | |
2336 | fi | |
2337 | use_collect2=yes | |
2338 | ;; | |
b0435cf4 | 2339 | alpha*-*-winnt*) |
861bb6c1 | 2340 | tm_file="${tm_file} alpha/win-nt.h" |
861bb6c1 JL |
2341 | xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h" |
2342 | tmake_file=t-libc-ok | |
2343 | xmake_file=winnt/x-winnt | |
2344 | extra_host_objs=oldnames.o | |
2345 | extra_gcc_objs="spawnv.o oldnames.o" | |
2346 | fixincludes=fixinc.winnt | |
2347 | if [ x$gnu_ld != xyes ] | |
2348 | then | |
2349 | extra_programs=ld.exe | |
2350 | fi | |
2351 | if [ x$enable_threads = xyes ]; then | |
2352 | thread_file='win32' | |
2353 | fi | |
2354 | ;; | |
2355 | alpha*-dec-vms*) | |
2356 | tm_file=alpha/vms.h | |
2357 | xm_file="${xm_file} alpha/xm-vms.h" | |
2358 | tmake_file=alpha/t-vms | |
2359 | fixincludes=Makefile.in | |
2360 | ;; | |
66ed0683 JL |
2361 | arc-*-elf*) |
2362 | extra_parts="crtinit.o crtfini.o" | |
2363 | ;; | |
861bb6c1 JL |
2364 | arm-*-coff* | armel-*-coff*) |
2365 | tm_file=arm/coff.h | |
2366 | tmake_file=arm/t-bare | |
2367 | ;; | |
2368 | arm-*-riscix1.[01]*) # Acorn RISC machine (early versions) | |
2369 | tm_file=arm/riscix1-1.h | |
2370 | use_collect2=yes | |
2371 | ;; | |
2372 | arm-*-riscix*) # Acorn RISC machine | |
2373 | if [ x$gas = xyes ] | |
2374 | then | |
2375 | tm_file=arm/rix-gas.h | |
2376 | else | |
2377 | tm_file=arm/riscix.h | |
2378 | fi | |
2379 | xmake_file=arm/x-riscix | |
2380 | tmake_file=arm/t-riscix | |
2381 | use_collect2=yes | |
2382 | ;; | |
2383 | arm-semi-aout | armel-semi-aout) | |
2384 | tm_file=arm/semi.h | |
2385 | tmake_file=arm/t-semi | |
2386 | fixincludes=Makefile.in # There is nothing to fix | |
2387 | ;; | |
2388 | arm-semi-aof | armel-semi-aof) | |
2389 | tm_file=arm/semiaof.h | |
2390 | tmake_file=arm/t-semiaof | |
2391 | fixincludes=Makefile.in # There is nothing to fix | |
2392 | ;; | |
2393 | arm-*-netbsd*) | |
2394 | tm_file=arm/netbsd.h | |
f6cb0e63 | 2395 | xm_file="xm-siglist.h ${xm_file}" |
e9a25f70 | 2396 | tmake_file="t-netbsd arm/t-netbsd" |
be1ed94f | 2397 | # On NetBSD, the headers are already okay, except for math.h. |
32f65aa0 | 2398 | fixincludes=fixinc.wrap |
861bb6c1 | 2399 | ;; |
956d6950 | 2400 | arm-*-linux-gnuaout*) # ARM GNU/Linux |
861bb6c1 | 2401 | cpu_type=arm |
861bb6c1 JL |
2402 | xmake_file=x-linux |
2403 | tm_file=arm/linux-gas.h | |
2404 | tmake_file=arm/t-linux | |
2405 | fixincludes=Makefile.in | |
861bb6c1 JL |
2406 | gnu_ld=yes |
2407 | ;; | |
2408 | arm-*-aout) | |
2409 | tm_file=arm/aout.h | |
e9a25f70 | 2410 | tmake_file=arm/t-bare |
861bb6c1 JL |
2411 | ;; |
2412 | c1-convex-*) # Convex C1 | |
2413 | target_cpu_default=1 | |
2414 | use_collect2=yes | |
2415 | fixincludes=Makefile.in | |
2416 | ;; | |
2417 | c2-convex-*) # Convex C2 | |
2418 | target_cpu_default=2 | |
2419 | use_collect2=yes | |
2420 | fixincludes=Makefile.in | |
2421 | ;; | |
2422 | c32-convex-*) | |
2423 | target_cpu_default=4 | |
2424 | use_collect2=yes | |
2425 | fixincludes=Makefile.in | |
2426 | ;; | |
2427 | c34-convex-*) | |
2428 | target_cpu_default=8 | |
2429 | use_collect2=yes | |
2430 | fixincludes=Makefile.in | |
2431 | ;; | |
2432 | c38-convex-*) | |
2433 | target_cpu_default=16 | |
2434 | use_collect2=yes | |
2435 | fixincludes=Makefile.in | |
2436 | ;; | |
2437 | clipper-intergraph-clix*) | |
2438 | tm_file="${tm_file} svr3.h clipper/clix.h" | |
2439 | xm_file=clipper/xm-clix.h | |
2440 | xmake_file=clipper/x-clix | |
2441 | extra_headers=va-clipper.h | |
2442 | extra_parts="crtbegin.o crtend.o" | |
2443 | install_headers_dir=install-headers-cpio | |
861bb6c1 JL |
2444 | ;; |
2445 | dsp16xx-*) | |
2446 | ;; | |
2447 | elxsi-elxsi-*) | |
2448 | use_collect2=yes | |
2449 | ;; | |
2450 | # This hasn't been upgraded to GCC 2. | |
2451 | # fx80-alliant-*) # Alliant FX/80 | |
2452 | # ;; | |
2453 | h8300-*-*) | |
2454 | float_format=i32 | |
2455 | ;; | |
2456 | hppa1.1-*-pro*) | |
2457 | tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h" | |
2458 | xm_file=pa/xm-papro.h | |
2459 | tmake_file=pa/t-pro | |
2460 | ;; | |
2461 | hppa1.1-*-osf*) | |
2462 | target_cpu_default=1 | |
2463 | tm_file="${tm_file} pa/pa-osf.h" | |
2464 | use_collect2=yes | |
2465 | fixincludes=Makefile.in | |
2466 | ;; | |
2467 | hppa1.1-*-rtems*) | |
2468 | tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h" | |
2469 | xm_file=pa/xm-papro.h | |
2470 | tmake_file=pa/t-pro | |
2471 | ;; | |
2472 | hppa1.0-*-osf*) | |
2473 | tm_file="${tm_file} pa/pa-osf.h" | |
2474 | use_collect2=yes | |
2475 | fixincludes=Makefile.in | |
2476 | ;; | |
2477 | hppa1.1-*-bsd*) | |
2478 | target_cpu_default=1 | |
2479 | use_collect2=yes | |
2480 | fixincludes=Makefile.in | |
2481 | ;; | |
2482 | hppa1.0-*-bsd*) | |
2483 | use_collect2=yes | |
2484 | fixincludes=Makefile.in | |
2485 | ;; | |
2486 | hppa1.0-*-hpux7*) | |
2487 | tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h" | |
2488 | xm_file=pa/xm-pahpux.h | |
2489 | xmake_file=pa/x-pa-hpux | |
2490 | if [ x$gas = xyes ] | |
2491 | then | |
2492 | tm_file="${tm_file} pa/gas.h" | |
2493 | fi | |
861bb6c1 JL |
2494 | install_headers_dir=install-headers-cpio |
2495 | use_collect2=yes | |
2496 | ;; | |
2497 | hppa1.0-*-hpux8.0[0-2]*) | |
2498 | tm_file="${tm_file} pa/pa-hpux.h" | |
2499 | xm_file=pa/xm-pahpux.h | |
2500 | xmake_file=pa/x-pa-hpux | |
2501 | if [ x$gas = xyes ] | |
2502 | then | |
2503 | tm_file="${tm_file} pa/pa-gas.h" | |
2504 | else | |
2505 | tm_file="pa/pa-oldas.h ${tm_file}" | |
2506 | fi | |
861bb6c1 JL |
2507 | install_headers_dir=install-headers-cpio |
2508 | use_collect2=yes | |
2509 | ;; | |
2510 | hppa1.1-*-hpux8.0[0-2]*) | |
2511 | target_cpu_default=1 | |
2512 | tm_file="${tm_file} pa/pa-hpux.h" | |
2513 | xm_file=pa/xm-pahpux.h | |
2514 | xmake_file=pa/x-pa-hpux | |
2515 | if [ x$gas = xyes ] | |
2516 | then | |
2517 | tm_file="${tm_file} pa/pa-gas.h" | |
2518 | else | |
2519 | tm_file="pa/pa-oldas.h ${tm_file}" | |
2520 | fi | |
861bb6c1 JL |
2521 | install_headers_dir=install-headers-cpio |
2522 | use_collect2=yes | |
2523 | ;; | |
2524 | hppa1.1-*-hpux8*) | |
2525 | target_cpu_default=1 | |
2526 | tm_file="${tm_file} pa/pa-hpux.h" | |
2527 | xm_file=pa/xm-pahpux.h | |
2528 | xmake_file=pa/x-pa-hpux | |
2529 | if [ x$gas = xyes ] | |
2530 | then | |
2531 | tm_file="${tm_file} pa/pa-gas.h" | |
2532 | fi | |
861bb6c1 JL |
2533 | install_headers_dir=install-headers-cpio |
2534 | use_collect2=yes | |
2535 | ;; | |
2536 | hppa1.0-*-hpux8*) | |
2537 | tm_file="${tm_file} pa/pa-hpux.h" | |
2538 | xm_file=pa/xm-pahpux.h | |
2539 | xmake_file=pa/x-pa-hpux | |
2540 | if [ x$gas = xyes ] | |
2541 | then | |
2542 | tm_file="${tm_file} pa/pa-gas.h" | |
2543 | fi | |
861bb6c1 JL |
2544 | install_headers_dir=install-headers-cpio |
2545 | use_collect2=yes | |
2546 | ;; | |
2547 | hppa1.1-*-hpux10*) | |
2548 | target_cpu_default=1 | |
2549 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h" | |
2550 | xm_file=pa/xm-pahpux.h | |
2551 | xmake_file=pa/x-pa-hpux | |
f24af81b | 2552 | tmake_file=pa/t-pa |
861bb6c1 JL |
2553 | if [ x$gas = xyes ] |
2554 | then | |
2555 | tm_file="${tm_file} pa/pa-gas.h" | |
2556 | fi | |
f24af81b TT |
2557 | if [ x$enable_threads = x ]; then |
2558 | enable_threads=$have_pthread_h | |
2559 | fi | |
2560 | if [ x$enable_threads = xyes ]; then | |
2561 | thread_file='dce' | |
2562 | tmake_file="${tmake_file} pa/t-dce-thr" | |
2563 | fi | |
861bb6c1 JL |
2564 | install_headers_dir=install-headers-cpio |
2565 | use_collect2=yes | |
2566 | ;; | |
2567 | hppa1.0-*-hpux10*) | |
2568 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h" | |
2569 | xm_file=pa/xm-pahpux.h | |
2570 | xmake_file=pa/x-pa-hpux | |
2571 | if [ x$gas = xyes ] | |
2572 | then | |
2573 | tm_file="${tm_file} pa/pa-gas.h" | |
2574 | fi | |
d005a5a4 JL |
2575 | if [ x$enable_threads = x ]; then |
2576 | enable_threads=$have_pthread_h | |
2577 | fi | |
2578 | if [ x$enable_threads = xyes ]; then | |
2579 | thread_file='dce' | |
2580 | tmake_file="${tmake_file} pa/t-dce-thr" | |
2581 | fi | |
861bb6c1 JL |
2582 | install_headers_dir=install-headers-cpio |
2583 | use_collect2=yes | |
2584 | ;; | |
2585 | hppa1.1-*-hpux*) | |
2586 | target_cpu_default=1 | |
2587 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h" | |
2588 | xm_file=pa/xm-pahpux.h | |
2589 | xmake_file=pa/x-pa-hpux | |
2590 | if [ x$gas = xyes ] | |
2591 | then | |
2592 | tm_file="${tm_file} pa/pa-gas.h" | |
2593 | fi | |
861bb6c1 JL |
2594 | install_headers_dir=install-headers-cpio |
2595 | use_collect2=yes | |
2596 | ;; | |
2597 | hppa1.0-*-hpux*) | |
2598 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h" | |
2599 | xm_file=pa/xm-pahpux.h | |
2600 | xmake_file=pa/x-pa-hpux | |
2601 | if [ x$gas = xyes ] | |
2602 | then | |
2603 | tm_file="${tm_file} pa/pa-gas.h" | |
2604 | fi | |
861bb6c1 JL |
2605 | install_headers_dir=install-headers-cpio |
2606 | use_collect2=yes | |
2607 | ;; | |
2608 | hppa1.1-*-hiux*) | |
2609 | target_cpu_default=1 | |
2610 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h" | |
2611 | xm_file=pa/xm-pahpux.h | |
2612 | xmake_file=pa/x-pa-hpux | |
2613 | if [ x$gas = xyes ] | |
2614 | then | |
2615 | tm_file="${tm_file} pa/pa-gas.h" | |
2616 | fi | |
861bb6c1 JL |
2617 | install_headers_dir=install-headers-cpio |
2618 | use_collect2=yes | |
2619 | ;; | |
2620 | hppa1.0-*-hiux*) | |
2621 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h" | |
2622 | xm_file=pa/xm-pahpux.h | |
2623 | xmake_file=pa/x-pa-hpux | |
2624 | if [ x$gas = xyes ] | |
2625 | then | |
2626 | tm_file="${tm_file} pa/pa-gas.h" | |
2627 | fi | |
861bb6c1 JL |
2628 | install_headers_dir=install-headers-cpio |
2629 | use_collect2=yes | |
2630 | ;; | |
2631 | hppa*-*-lites*) | |
2632 | target_cpu_default=1 | |
2633 | use_collect2=yes | |
2634 | fixincludes=Makefile.in | |
2635 | ;; | |
2636 | i370-*-mvs*) | |
2637 | ;; | |
f6cb0e63 | 2638 | i[34567]86-ibm-aix*) # IBM PS/2 running AIX |
861bb6c1 JL |
2639 | if [ x$gas = xyes ] |
2640 | then | |
2641 | tm_file=i386/aix386.h | |
2642 | extra_parts="crtbegin.o crtend.o" | |
2643 | tmake_file=i386/t-crtstuff | |
2644 | else | |
2645 | tm_file=i386/aix386ng.h | |
2646 | use_collect2=yes | |
2647 | fi | |
f6cb0e63 JL |
2648 | xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}" |
2649 | xm_defines=USG | |
861bb6c1 | 2650 | xmake_file=i386/x-aix |
861bb6c1 | 2651 | ;; |
f6cb0e63 JL |
2652 | i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4 |
2653 | xm_file="xm-siglist.h xm-alloca.h ${xm_file}" | |
2654 | xm_defines="USG POSIX SMALL_ARG_MAX" | |
861bb6c1 JL |
2655 | xmake_file=i386/x-ncr3000 |
2656 | if [ x$stabs = xyes -a x$gas = xyes ] | |
2657 | then | |
2658 | tm_file=i386/sysv4gdb.h | |
2659 | else | |
2660 | tm_file=i386/sysv4.h | |
2661 | fi | |
2662 | extra_parts="crtbegin.o crtend.o" | |
2663 | tmake_file=i386/t-crtpic | |
2664 | ;; | |
f6cb0e63 | 2665 | i[34567]86-next-*) |
861bb6c1 JL |
2666 | tm_file=i386/next.h |
2667 | xm_file=i386/xm-next.h | |
2668 | tmake_file=i386/t-next | |
2669 | xmake_file=i386/x-next | |
2670 | extra_objs=nextstep.o | |
2671 | if [ x$enable_threads = xyes ]; then | |
2672 | thread_file='mach' | |
2673 | fi | |
2674 | ;; | |
f6cb0e63 | 2675 | i[34567]86-sequent-bsd*) # 80386 from Sequent |
861bb6c1 JL |
2676 | use_collect2=yes |
2677 | if [ x$gas = xyes ] | |
2678 | then | |
2679 | tm_file=i386/seq-gas.h | |
2680 | else | |
2681 | tm_file=i386/sequent.h | |
2682 | fi | |
2683 | ;; | |
f6cb0e63 JL |
2684 | i[34567]86-sequent-ptx1*) |
2685 | xm_defines="USG SVR3" | |
861bb6c1 JL |
2686 | xmake_file=i386/x-sysv3 |
2687 | tm_file=i386/seq-sysv3.h | |
2688 | tmake_file=i386/t-crtstuff | |
2689 | fixincludes=fixinc.ptx | |
2690 | extra_parts="crtbegin.o crtend.o" | |
2691 | install_headers_dir=install-headers-cpio | |
861bb6c1 | 2692 | ;; |
f6cb0e63 JL |
2693 | i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*) |
2694 | xm_defines="USG SVR3" | |
861bb6c1 JL |
2695 | xmake_file=i386/x-sysv3 |
2696 | tm_file=i386/seq2-sysv3.h | |
2697 | tmake_file=i386/t-crtstuff | |
2698 | extra_parts="crtbegin.o crtend.o" | |
2699 | fixincludes=fixinc.ptx | |
2700 | install_headers_dir=install-headers-cpio | |
861bb6c1 | 2701 | ;; |
f6cb0e63 JL |
2702 | i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*) |
2703 | xm_file="xm-siglist.h xm-alloca.h ${xm_file}" | |
2704 | xm_defines="USG POSIX SMALL_ARG_MAX" | |
861bb6c1 JL |
2705 | xmake_file=x-svr4 |
2706 | tm_file=i386/ptx4-i.h | |
2707 | tmake_file=t-svr4 | |
2708 | extra_parts="crtbegin.o crtend.o" | |
2709 | fixincludes=fixinc.ptx | |
2710 | install_headers_dir=install-headers-cpio | |
861bb6c1 JL |
2711 | ;; |
2712 | i386-sun-sunos*) # Sun i386 roadrunner | |
f6cb0e63 | 2713 | xm_defines=USG |
861bb6c1 JL |
2714 | tm_file=i386/sun.h |
2715 | use_collect2=yes | |
2716 | ;; | |
62db76ee | 2717 | i[34567]86-wrs-vxworks*) |
9e89df50 MS |
2718 | tm_file=i386/vxi386.h |
2719 | tmake_file=i386/t-i386bare | |
2720 | ;; | |
f6cb0e63 | 2721 | i[34567]86-*-aout*) |
861bb6c1 JL |
2722 | tm_file=i386/i386-aout.h |
2723 | tmake_file=i386/t-i386bare | |
2724 | ;; | |
f6cb0e63 | 2725 | i[34567]86-*-bsdi* | i[34567]86-*-bsd386*) |
861bb6c1 | 2726 | tm_file=i386/bsd386.h |
861bb6c1 JL |
2727 | # tmake_file=t-libc-ok |
2728 | ;; | |
f6cb0e63 | 2729 | i[34567]86-*-bsd*) |
861bb6c1 | 2730 | tm_file=i386/386bsd.h |
861bb6c1 JL |
2731 | # tmake_file=t-libc-ok |
2732 | # Next line turned off because both 386BSD and BSD/386 use GNU ld. | |
2733 | # use_collect2=yes | |
2734 | ;; | |
f6cb0e63 | 2735 | i[34567]86-*-freebsdelf*) |
861bb6c1 | 2736 | tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h" |
be1ed94f | 2737 | # On FreeBSD, the headers are already ok, except for math.h. |
32f65aa0 | 2738 | fixincludes=fixinc.wrap |
861bb6c1 JL |
2739 | tmake_file=i386/t-freebsd |
2740 | gas=yes | |
2741 | gnu_ld=yes | |
2742 | stabs=yes | |
2743 | ;; | |
f6cb0e63 | 2744 | i[34567]86-*-freebsd*) |
861bb6c1 | 2745 | tm_file=i386/freebsd.h |
ca55abae | 2746 | # On FreeBSD, the headers are already ok, except for math.h. |
32f65aa0 | 2747 | fixincludes=fixinc.wrap |
861bb6c1 JL |
2748 | tmake_file=i386/t-freebsd |
2749 | ;; | |
f6cb0e63 | 2750 | i[34567]86-*-netbsd*) |
861bb6c1 | 2751 | tm_file=i386/netbsd.h |
be1ed94f | 2752 | # On NetBSD, the headers are already okay, except for math.h. |
32f65aa0 | 2753 | fixincludes=fixinc.wrap |
861bb6c1 JL |
2754 | tmake_file=t-netbsd |
2755 | ;; | |
f6cb0e63 | 2756 | i[34567]86-*-coff*) |
861bb6c1 JL |
2757 | tm_file=i386/i386-coff.h |
2758 | tmake_file=i386/t-i386bare | |
2759 | ;; | |
f6cb0e63 JL |
2760 | i[34567]86-*-isc*) # 80386 running ISC system |
2761 | xm_file="${xm_file} i386/xm-isc.h" | |
2762 | xm_defines="USG SVR3" | |
861bb6c1 | 2763 | case $machine in |
f6cb0e63 | 2764 | i[34567]86-*-isc[34]*) |
861bb6c1 JL |
2765 | xmake_file=i386/x-isc3 |
2766 | ;; | |
2767 | *) | |
2768 | xmake_file=i386/x-isc | |
2769 | ;; | |
2770 | esac | |
2771 | if [ x$gas = xyes -a x$stabs = xyes ] | |
2772 | then | |
2773 | tm_file=i386/iscdbx.h | |
2774 | tmake_file=i386/t-svr3dbx | |
2775 | extra_parts="svr3.ifile svr3z.ifile" | |
2776 | else | |
2777 | tm_file=i386/isccoff.h | |
2778 | tmake_file=i386/t-crtstuff | |
2779 | extra_parts="crtbegin.o crtend.o" | |
2780 | fi | |
2781 | install_headers_dir=install-headers-cpio | |
861bb6c1 | 2782 | ;; |
f6cb0e63 JL |
2783 | i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux |
2784 | # with a.out format using | |
2785 | # pre BFD linkers | |
861bb6c1 JL |
2786 | xmake_file=x-linux-aout |
2787 | tmake_file="t-linux-aout i386/t-crtstuff" | |
2788 | tm_file=i386/linux-oldld.h | |
2789 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
861bb6c1 | 2790 | gnu_ld=yes |
af39d8f5 | 2791 | float_format=i386 |
861bb6c1 | 2792 | ;; |
f6cb0e63 JL |
2793 | i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux |
2794 | # with a.out format | |
861bb6c1 JL |
2795 | xmake_file=x-linux-aout |
2796 | tmake_file="t-linux-aout i386/t-crtstuff" | |
2797 | tm_file=i386/linux-aout.h | |
2798 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
861bb6c1 | 2799 | gnu_ld=yes |
af39d8f5 | 2800 | float_format=i386 |
861bb6c1 | 2801 | ;; |
f6cb0e63 JL |
2802 | i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux |
2803 | # with ELF format using the | |
2804 | # GNU/Linux C library 5 | |
2805 | xmake_file=x-linux | |
2806 | tm_file=i386/linux.h | |
861bb6c1 JL |
2807 | tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff" |
2808 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
2809 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
861bb6c1 | 2810 | gnu_ld=yes |
af39d8f5 | 2811 | float_format=i386 |
861bb6c1 JL |
2812 | if [ x$enable_threads = xyes ]; then |
2813 | thread_file='single' | |
2814 | fi | |
2815 | ;; | |
f6cb0e63 JL |
2816 | i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux |
2817 | # with ELF format using glibc 2 | |
2818 | # aka GNU/Linux C library 6 | |
2819 | xmake_file=x-linux | |
861bb6c1 JL |
2820 | tm_file=i386/linux.h |
2821 | tmake_file="t-linux i386/t-crtstuff" | |
2822 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
2823 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
861bb6c1 | 2824 | gnu_ld=yes |
af39d8f5 | 2825 | float_format=i386 |
861bb6c1 JL |
2826 | if [ x$enable_threads = xyes ]; then |
2827 | thread_file='posix' | |
2828 | fi | |
2829 | ;; | |
f6cb0e63 JL |
2830 | i[34567]86-*-gnu*) |
2831 | ;; | |
2832 | i[34567]86-go32-msdos | i[34567]86-*-go32*) | |
2833 | xm_file=i386/xm-go32.h | |
2834 | tm_file=i386/go32.h | |
2835 | tmake_file=i386/t-go32 | |
861bb6c1 | 2836 | ;; |
f6cb0e63 | 2837 | i[34567]86-pc-msdosdjgpp*) |
861bb6c1 JL |
2838 | xm_file=i386/xm-go32.h |
2839 | tm_file=i386/go32.h | |
2840 | tmake_file=i386/t-go32 | |
f6cb0e63 JL |
2841 | gnu_ld=yes |
2842 | gas=yes | |
861bb6c1 | 2843 | ;; |
f6cb0e63 | 2844 | i[34567]86-moss-msdos* | i[34567]86-*-moss*) |
861bb6c1 JL |
2845 | tm_file=i386/moss.h |
2846 | tmake_file=t-libc-ok | |
2847 | fixincludes=Makefile.in | |
2848 | gnu_ld=yes | |
2849 | gas=yes | |
2850 | ;; | |
f6cb0e63 | 2851 | i[34567]86-*-lynxos*) |
861bb6c1 JL |
2852 | if [ x$gas = xyes ] |
2853 | then | |
2854 | tm_file=i386/lynx.h | |
2855 | else | |
2856 | tm_file=i386/lynx-ng.h | |
2857 | fi | |
2858 | xm_file=i386/xm-lynx.h | |
2859 | tmake_file=i386/t-i386bare | |
2860 | xmake_file=x-lynx | |
2861 | ;; | |
f6cb0e63 | 2862 | i[34567]86-*-mach*) |
861bb6c1 JL |
2863 | tm_file=i386/mach.h |
2864 | # tmake_file=t-libc-ok | |
2865 | use_collect2=yes | |
2866 | ;; | |
f6cb0e63 | 2867 | i[34567]86-*-osfrose*) # 386 using OSF/rose |
861bb6c1 JL |
2868 | if [ x$elf = xyes ] |
2869 | then | |
2870 | tm_file=i386/osfelf.h | |
2871 | use_collect2= | |
2872 | else | |
2873 | tm_file=i386/osfrose.h | |
2874 | use_collect2=yes | |
2875 | fi | |
f6cb0e63 | 2876 | xm_file="i386/xm-osf.h ${xm_file}" |
861bb6c1 JL |
2877 | xmake_file=i386/x-osfrose |
2878 | tmake_file=i386/t-osf | |
2879 | extra_objs=halfpic.o | |
2880 | ;; | |
f6cb0e63 | 2881 | i[34567]86-go32-rtems*) |
861bb6c1 JL |
2882 | cpu_type=i386 |
2883 | xm_file=i386/xm-go32.h | |
2884 | tm_file=i386/go32-rtems.h | |
2885 | tmake_file="i386/t-go32 t-rtems" | |
2886 | ;; | |
f5963e61 JL |
2887 | i[34567]86-*-rtemself*) |
2888 | cpu_type=i386 | |
2889 | tm_file=i386/rtemself.h | |
2890 | tmake_file="i386/t-i386bare t-rtems" | |
2891 | ;; | |
f6cb0e63 | 2892 | i[34567]86-*-rtems*) |
861bb6c1 JL |
2893 | cpu_type=i386 |
2894 | tm_file=i386/rtems.h | |
2895 | tmake_file="i386/t-i386bare t-rtems" | |
2896 | ;; | |
f6cb0e63 JL |
2897 | i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5 |
2898 | xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h" | |
2899 | xm_defines="USG SVR3" | |
861bb6c1 JL |
2900 | xmake_file=i386/x-sco5 |
2901 | fixincludes=fixinc.sco | |
f6857708 | 2902 | install_headers_dir=install-headers-cpio |
861bb6c1 | 2903 | tm_file=i386/sco5.h |
44bb0e93 RL |
2904 | if [ x$gas = xyes ] |
2905 | then | |
2906 | tm_file="i386/sco5gas.h ${tm_file}" | |
2907 | tmake_file=i386/t-sco5gas | |
2908 | else | |
2909 | tmake_file=i386/t-sco5 | |
2910 | fi | |
861bb6c1 JL |
2911 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" |
2912 | ;; | |
f6cb0e63 JL |
2913 | i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system |
2914 | xm_file="${xm_file} i386/xm-sco.h" | |
2915 | xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST" | |
861bb6c1 JL |
2916 | xmake_file=i386/x-sco4 |
2917 | fixincludes=fixinc.sco | |
861bb6c1 JL |
2918 | install_headers_dir=install-headers-cpio |
2919 | if [ x$stabs = xyes ] | |
2920 | then | |
2921 | tm_file=i386/sco4dbx.h | |
2922 | tmake_file=i386/t-svr3dbx | |
2923 | extra_parts="svr3.ifile svr3z.rfile" | |
2924 | else | |
2925 | tm_file=i386/sco4.h | |
2926 | tmake_file=i386/t-crtstuff | |
2927 | extra_parts="crtbegin.o crtend.o" | |
2928 | fi | |
2929 | truncate_target=yes | |
2930 | ;; | |
f6cb0e63 | 2931 | i[34567]86-*-sco*) # 80386 running SCO system |
861bb6c1 JL |
2932 | xm_file=i386/xm-sco.h |
2933 | xmake_file=i386/x-sco | |
861bb6c1 JL |
2934 | install_headers_dir=install-headers-cpio |
2935 | if [ x$stabs = xyes ] | |
2936 | then | |
2937 | tm_file=i386/scodbx.h | |
2938 | tmake_file=i386/t-svr3dbx | |
2939 | extra_parts="svr3.ifile svr3z.rfile" | |
2940 | else | |
2941 | tm_file=i386/sco.h | |
2942 | extra_parts="crtbegin.o crtend.o" | |
2943 | tmake_file=i386/t-crtstuff | |
2944 | fi | |
2945 | truncate_target=yes | |
2946 | ;; | |
f6cb0e63 JL |
2947 | i[34567]86-*-solaris2*) |
2948 | xm_file="xm-siglist.h xm-alloca.h ${xm_file}" | |
2949 | xm_defines="USG POSIX SMALL_ARG_MAX" | |
861bb6c1 JL |
2950 | if [ x$stabs = xyes ] |
2951 | then | |
2952 | tm_file=i386/sol2dbg.h | |
2953 | else | |
2954 | tm_file=i386/sol2.h | |
2955 | fi | |
2956 | tmake_file=i386/t-sol2 | |
f6cb0e63 | 2957 | extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o" |
861bb6c1 | 2958 | xmake_file=x-svr4 |
f6cb0e63 JL |
2959 | case $machine in |
2960 | *-*-solaris2.[0-4]) | |
2961 | fixincludes=fixinc.svr4;; | |
2962 | *) | |
32f65aa0 | 2963 | fixincludes=fixinc.wrap;; |
f6cb0e63 | 2964 | esac |
861bb6c1 JL |
2965 | if [ x$enable_threads = xyes ]; then |
2966 | thread_file='solaris' | |
2967 | fi | |
2968 | ;; | |
f6cb0e63 | 2969 | i[34567]86-*-sysv5*) # Intel x86 on System V Release 5 |
48a51bf4 RL |
2970 | xm_file="xm-alloca.h xm-siglist.h ${xm_file}" |
2971 | xm_defines="USG POSIX" | |
fe07d4c1 RL |
2972 | tm_file=i386/sysv4.h |
2973 | if [ x$stabs = xyes ] | |
2974 | then | |
2975 | tm_file="${tm_file} dbx.h" | |
2976 | fi | |
2977 | tmake_file=i386/t-crtpic | |
2978 | xmake_file=x-svr4 | |
2979 | extra_parts="crtbegin.o crtend.o" | |
2980 | fixincludes=Makefile.in # The headers are just fine, thank you. | |
2981 | ;; | |
f6cb0e63 JL |
2982 | i[34567]86-*-sysv4*) # Intel 80386's running system V.4 |
2983 | xm_file="xm-siglist.h xm-alloca.h ${xm_file}" | |
2984 | xm_defines="USG POSIX SMALL_ARG_MAX" | |
861bb6c1 JL |
2985 | tm_file=i386/sysv4.h |
2986 | if [ x$stabs = xyes ] | |
2987 | then | |
2988 | tm_file="${tm_file} dbx.h" | |
2989 | fi | |
2990 | tmake_file=i386/t-crtpic | |
2991 | xmake_file=x-svr4 | |
2992 | extra_parts="crtbegin.o crtend.o" | |
2993 | ;; | |
f5963e61 JL |
2994 | i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+ |
2995 | cpu_type=i386 | |
2996 | xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h" | |
2997 | xm_defines="USE_C_ALLOCA SMALL_ARG_MAX" | |
2998 | fixincludes=Makefile.in #Don't do it on OSF/1 | |
2999 | if [ x$stabs = xyes ] | |
3000 | then | |
3001 | tm_file=i386/osf1elfgdb.h | |
3002 | else | |
3003 | tm_file=i386/osf1elf.h | |
3004 | fi | |
3005 | tmake_file=i386/t-osf1elf | |
3006 | xmake_file=i386/x-osf1elf | |
3007 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
3008 | ;; | |
f6cb0e63 JL |
3009 | i[34567]86-*-sysv*) # Intel 80386's running system V |
3010 | xm_defines="USG SVR3" | |
861bb6c1 JL |
3011 | xmake_file=i386/x-sysv3 |
3012 | if [ x$gas = xyes ] | |
3013 | then | |
3014 | if [ x$stabs = xyes ] | |
3015 | then | |
3016 | tm_file=i386/svr3dbx.h | |
3017 | tmake_file=i386/t-svr3dbx | |
3018 | extra_parts="svr3.ifile svr3z.rfile" | |
3019 | else | |
3020 | tm_file=i386/svr3gas.h | |
3021 | extra_parts="crtbegin.o crtend.o" | |
3022 | tmake_file=i386/t-crtstuff | |
3023 | fi | |
3024 | else | |
3025 | tm_file=i386/sysv3.h | |
3026 | extra_parts="crtbegin.o crtend.o" | |
3027 | tmake_file=i386/t-crtstuff | |
3028 | fi | |
3029 | ;; | |
3030 | i386-*-vsta) # Intel 80386's running VSTa kernel | |
f5963e61 | 3031 | xm_file="${xm_file} i386/xm-vsta.h" |
861bb6c1 JL |
3032 | tm_file=i386/vsta.h |
3033 | tmake_file=i386/t-vsta | |
3034 | xmake_file=i386/x-vsta | |
3035 | ;; | |
f6cb0e63 | 3036 | i[34567]86-*-pe | i[34567]86-*-cygwin32) |
861bb6c1 JL |
3037 | xm_file="${xm_file} i386/xm-cygwin32.h" |
3038 | tmake_file=i386/t-cygwin32 | |
3039 | tm_file=i386/cygwin32.h | |
3040 | xmake_file=i386/x-cygwin32 | |
3041 | extra_objs=winnt.o | |
3042 | fixincludes=Makefile.in | |
3043 | if [ x$enable_threads = xyes ]; then | |
3044 | thread_file='win32' | |
3045 | fi | |
3046 | exeext=.exe | |
3047 | ;; | |
f6cb0e63 | 3048 | i[34567]86-*-mingw32*) |
861bb6c1 JL |
3049 | tm_file=i386/mingw32.h |
3050 | xm_file="${xm_file} i386/xm-mingw32.h" | |
1a4bf22f | 3051 | tmake_file="i386/t-cygwin32 i386/t-mingw32" |
861bb6c1 JL |
3052 | extra_objs=winnt.o |
3053 | xmake_file=i386/x-cygwin32 | |
3054 | fixincludes=Makefile.in | |
3055 | if [ x$enable_threads = xyes ]; then | |
3056 | thread_file='win32' | |
3057 | fi | |
3058 | exeext=.exe | |
f6cb0e63 JL |
3059 | case $machine in |
3060 | *mingw32msv*) | |
3061 | ;; | |
3062 | *minwg32crt* | *mingw32*) | |
3063 | tm_file="${tm_file} i386/crtdll.h" | |
3064 | ;; | |
3065 | esac | |
861bb6c1 | 3066 | ;; |
f6cb0e63 | 3067 | i[34567]86-*-winnt3*) |
861bb6c1 JL |
3068 | tm_file=i386/win-nt.h |
3069 | out_file=i386/i386.c | |
f6cb0e63 | 3070 | xm_file="xm-winnt.h ${xm_file}" |
861bb6c1 JL |
3071 | xmake_file=winnt/x-winnt |
3072 | tmake_file=i386/t-winnt | |
3073 | extra_host_objs="winnt.o oldnames.o" | |
3074 | extra_gcc_objs="spawnv.o oldnames.o" | |
3075 | fixincludes=fixinc.winnt | |
3076 | if [ x$gnu_ld != xyes ] | |
3077 | then | |
3078 | extra_programs=ld.exe | |
3079 | fi | |
3080 | if [ x$enable_threads = xyes ]; then | |
3081 | thread_file='win32' | |
3082 | fi | |
3083 | ;; | |
f6cb0e63 JL |
3084 | i[34567]86-dg-dgux*) |
3085 | xm_file="xm-alloca.h xm-siglist.h ${xm_file}" | |
3086 | xm_defines="USG POSIX" | |
861bb6c1 JL |
3087 | out_file=i386/dgux.c |
3088 | tm_file=i386/dgux.h | |
3089 | tmake_file=i386/t-dgux | |
3090 | xmake_file=i386/x-dgux | |
9590eb1b | 3091 | fixincludes=fixinc.dgux |
861bb6c1 JL |
3092 | install_headers_dir=install-headers-cpio |
3093 | ;; | |
3094 | i860-alliant-*) # Alliant FX/2800 | |
3095 | tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h" | |
956d6950 | 3096 | xm_file="${xm_file}" |
861bb6c1 JL |
3097 | xmake_file=i860/x-fx2800 |
3098 | tmake_file=i860/t-fx2800 | |
3099 | extra_parts="crtbegin.o crtend.o" | |
3100 | ;; | |
3101 | i860-*-bsd*) | |
3102 | tm_file="${tm_file} i860/bsd.h" | |
3103 | if [ x$gas = xyes ] | |
3104 | then | |
3105 | tm_file="${tm_file} i860/bsd-gas.h" | |
3106 | fi | |
3107 | use_collect2=yes | |
3108 | ;; | |
3109 | i860-*-mach*) | |
3110 | tm_file="${tm_file} i860/mach.h" | |
3111 | tmake_file=t-libc-ok | |
3112 | ;; | |
3113 | i860-*-osf*) # Intel Paragon XP/S, OSF/1AD | |
3114 | tm_file="${tm_file} svr3.h i860/paragon.h" | |
f6cb0e63 | 3115 | xm_defines="USG SVR3" |
861bb6c1 | 3116 | tmake_file=t-osf |
861bb6c1 JL |
3117 | ;; |
3118 | i860-*-sysv3*) | |
3119 | tm_file="${tm_file} svr3.h i860/sysv3.h" | |
f6cb0e63 | 3120 | xm_defines="USG SVR3" |
861bb6c1 JL |
3121 | xmake_file=i860/x-sysv3 |
3122 | extra_parts="crtbegin.o crtend.o" | |
3123 | ;; | |
3124 | i860-*-sysv4*) | |
3125 | tm_file="${tm_file} svr4.h i860/sysv4.h" | |
f6cb0e63 | 3126 | xm_defines="USG SVR3" |
861bb6c1 JL |
3127 | xmake_file=i860/x-sysv4 |
3128 | tmake_file=t-svr4 | |
3129 | extra_parts="crtbegin.o crtend.o" | |
3130 | ;; | |
3131 | i960-wrs-vxworks5 | i960-wrs-vxworks5.0*) | |
3132 | tm_file="${tm_file} i960/vx960.h" | |
3133 | tmake_file=i960/t-vxworks960 | |
3134 | use_collect2=yes | |
7cc34889 | 3135 | thread_file='vxworks' |
861bb6c1 | 3136 | ;; |
a0372c94 | 3137 | i960-wrs-vxworks5* | i960-wrs-vxworks) |
861bb6c1 JL |
3138 | tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h" |
3139 | tmake_file=i960/t-vxworks960 | |
3140 | use_collect2=yes | |
7cc34889 | 3141 | thread_file='vxworks' |
861bb6c1 JL |
3142 | ;; |
3143 | i960-wrs-vxworks*) | |
3144 | tm_file="${tm_file} i960/vx960.h" | |
3145 | tmake_file=i960/t-vxworks960 | |
3146 | use_collect2=yes | |
7cc34889 | 3147 | thread_file='vxworks' |
861bb6c1 JL |
3148 | ;; |
3149 | i960-*-coff*) | |
3150 | tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h" | |
3151 | tmake_file=i960/t-960bare | |
3152 | use_collect2=yes | |
3153 | ;; | |
3154 | i960-*-rtems) | |
3155 | tmake_file="i960/t-960bare t-rtems" | |
3156 | tm_file="${tm_file} dbxcoff.h i960/rtems.h" | |
3157 | use_collect2=yes | |
3158 | ;; | |
3159 | i960-*-*) # Default i960 environment. | |
3160 | use_collect2=yes | |
3161 | ;; | |
3162 | m32r-*-elf*) | |
3163 | extra_parts="crtinit.o crtfini.o" | |
3164 | ;; | |
3165 | m68000-convergent-sysv*) | |
3166 | tm_file=m68k/ctix.h | |
f6cb0e63 JL |
3167 | xm_file="m68k/xm-3b1.h ${xm_file}" |
3168 | xm_defines=USG | |
861bb6c1 JL |
3169 | use_collect2=yes |
3170 | extra_headers=math-68881.h | |
3171 | ;; | |
3172 | m68000-hp-bsd*) # HP 9000/200 running BSD | |
3173 | tm_file=m68k/hp2bsd.h | |
3174 | xmake_file=m68k/x-hp2bsd | |
3175 | use_collect2=yes | |
3176 | extra_headers=math-68881.h | |
3177 | ;; | |
3178 | m68000-hp-hpux*) # HP 9000 series 300 | |
f6cb0e63 JL |
3179 | xm_file="xm_alloca.h ${xm_file}" |
3180 | xm_defines="USG NO_SYS_SIGLIST" | |
861bb6c1 JL |
3181 | if [ x$gas = xyes ] |
3182 | then | |
3183 | xmake_file=m68k/x-hp320g | |
3184 | tm_file=m68k/hp310g.h | |
3185 | else | |
3186 | xmake_file=m68k/x-hp320 | |
3187 | tm_file=m68k/hp310.h | |
3188 | fi | |
861bb6c1 JL |
3189 | install_headers_dir=install-headers-cpio |
3190 | use_collect2=yes | |
3191 | extra_headers=math-68881.h | |
3192 | ;; | |
3193 | m68000-sun-sunos3*) | |
3194 | tm_file=m68k/sun2.h | |
3195 | use_collect2=yes | |
3196 | extra_headers=math-68881.h | |
3197 | ;; | |
3198 | m68000-sun-sunos4*) | |
3199 | tm_file=m68k/sun2o4.h | |
3200 | use_collect2=yes | |
3201 | extra_headers=math-68881.h | |
3202 | ;; | |
3203 | m68000-att-sysv*) | |
f6cb0e63 JL |
3204 | xm_file="m68k/xm-3b1.h ${xm_file}" |
3205 | xm_defines=USG | |
861bb6c1 JL |
3206 | if [ x$gas = xyes ] |
3207 | then | |
3208 | tm_file=m68k/3b1g.h | |
3209 | else | |
3210 | tm_file=m68k/3b1.h | |
3211 | fi | |
3212 | use_collect2=yes | |
3213 | extra_headers=math-68881.h | |
3214 | ;; | |
3215 | m68k-apple-aux*) # Apple Macintosh running A/UX | |
f6cb0e63 | 3216 | xm_defines="USG AUX" |
861bb6c1 | 3217 | tmake_file=m68k/t-aux |
861bb6c1 JL |
3218 | install_headers_dir=install-headers-cpio |
3219 | extra_headers=math-68881.h | |
3220 | extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o" | |
3221 | tm_file= | |
3222 | if [ "$gnu_ld" = yes ] | |
3223 | then | |
3224 | tm_file="${tm_file} m68k/auxgld.h" | |
3225 | else | |
3226 | tm_file="${tm_file} m68k/auxld.h" | |
3227 | fi | |
3228 | if [ "$gas" = yes ] | |
3229 | then | |
3230 | tm_file="${tm_file} m68k/auxgas.h" | |
3231 | else | |
3232 | tm_file="${tm_file} m68k/auxas.h" | |
3233 | fi | |
3234 | tm_file="${tm_file} m68k/a-ux.h" | |
0a95276e | 3235 | float_format=m68k |
861bb6c1 JL |
3236 | ;; |
3237 | m68k-apollo-*) | |
3238 | tm_file=m68k/apollo68.h | |
3239 | xmake_file=m68k/x-apollo68 | |
3240 | use_collect2=yes | |
3241 | extra_headers=math-68881.h | |
0a95276e | 3242 | float_format=m68k |
861bb6c1 JL |
3243 | ;; |
3244 | m68k-altos-sysv*) # Altos 3068 | |
3245 | if [ x$gas = xyes ] | |
3246 | then | |
3247 | tm_file=m68k/altos3068.h | |
f6cb0e63 | 3248 | xm_defines=USG |
861bb6c1 JL |
3249 | else |
3250 | echo "The Altos is supported only with the GNU assembler" 1>&2 | |
3251 | exit 1 | |
3252 | fi | |
3253 | extra_headers=math-68881.h | |
3254 | ;; | |
3255 | m68k-bull-sysv*) # Bull DPX/2 | |
3256 | if [ x$gas = xyes ] | |
3257 | then | |
3258 | if [ x$stabs = xyes ] | |
3259 | then | |
3260 | tm_file=m68k/dpx2cdbx.h | |
3261 | else | |
3262 | tm_file=m68k/dpx2g.h | |
3263 | fi | |
3264 | else | |
3265 | tm_file=m68k/dpx2.h | |
3266 | fi | |
f6cb0e63 JL |
3267 | xm_file="xm-alloca.h ${xm_file}" |
3268 | xm_defines=USG | |
861bb6c1 JL |
3269 | xmake_file=m68k/x-dpx2 |
3270 | use_collect2=yes | |
3271 | extra_headers=math-68881.h | |
3272 | ;; | |
3273 | m68k-atari-sysv4*) # Atari variant of V.4. | |
3274 | tm_file=m68k/atari.h | |
f6cb0e63 JL |
3275 | xm_file="xm-alloca.h ${xm_file}" |
3276 | xm_defines="USG FULL_PROTOTYPES" | |
861bb6c1 JL |
3277 | tmake_file=t-svr4 |
3278 | extra_parts="crtbegin.o crtend.o" | |
3279 | extra_headers=math-68881.h | |
0a95276e | 3280 | float_format=m68k |
861bb6c1 JL |
3281 | ;; |
3282 | m68k-motorola-sysv*) | |
3283 | tm_file=m68k/mot3300.h | |
f6cb0e63 JL |
3284 | xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}" |
3285 | xm_defines=NO_SYS_SIGLIST | |
861bb6c1 JL |
3286 | if [ x$gas = xyes ] |
3287 | then | |
3288 | xmake_file=m68k/x-mot3300-gas | |
3289 | if [ x$gnu_ld = xyes ] | |
3290 | then | |
3291 | tmake_file=m68k/t-mot3300-gald | |
3292 | else | |
3293 | tmake_file=m68k/t-mot3300-gas | |
3294 | use_collect2=yes | |
3295 | fi | |
3296 | else | |
3297 | xmake_file=m68k/x-mot3300 | |
3298 | if [ x$gnu_ld = xyes ] | |
3299 | then | |
3300 | tmake_file=m68k/t-mot3300-gld | |
3301 | else | |
3302 | tmake_file=m68k/t-mot3300 | |
3303 | use_collect2=yes | |
3304 | fi | |
3305 | fi | |
3306 | gdb_needs_out_file_path=yes | |
3307 | extra_parts="crt0.o mcrt0.o" | |
3308 | extra_headers=math-68881.h | |
0a95276e | 3309 | float_format=m68k |
861bb6c1 JL |
3310 | ;; |
3311 | m68k-ncr-sysv*) # NCR Tower 32 SVR3 | |
3312 | tm_file=m68k/tower-as.h | |
f6cb0e63 | 3313 | xm_defines="USG SVR3" |
861bb6c1 JL |
3314 | xmake_file=m68k/x-tower |
3315 | extra_parts="crtbegin.o crtend.o" | |
3316 | extra_headers=math-68881.h | |
3317 | ;; | |
3318 | m68k-plexus-sysv*) | |
3319 | tm_file=m68k/plexus.h | |
f6cb0e63 JL |
3320 | xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}" |
3321 | xm_defines=USG | |
861bb6c1 JL |
3322 | use_collect2=yes |
3323 | extra_headers=math-68881.h | |
3324 | ;; | |
3325 | m68k-tti-*) | |
3326 | tm_file=m68k/pbb.h | |
f6cb0e63 JL |
3327 | xm_file="xm-alloca.h ${xm_file}" |
3328 | xm_defines=USG | |
861bb6c1 JL |
3329 | extra_headers=math-68881.h |
3330 | ;; | |
3331 | m68k-crds-unos*) | |
f6cb0e63 JL |
3332 | xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}" |
3333 | xm_defines="USG unos" | |
861bb6c1 JL |
3334 | xmake_file=m68k/x-crds |
3335 | tm_file=m68k/crds.h | |
861bb6c1 JL |
3336 | use_collect2=yes |
3337 | extra_headers=math-68881.h | |
3338 | ;; | |
3339 | m68k-cbm-sysv4*) # Commodore variant of V.4. | |
3340 | tm_file=m68k/amix.h | |
f6cb0e63 JL |
3341 | xm_file="xm-alloca.h ${xm_file}" |
3342 | xm_defines="USG FULL_PROTOTYPES" | |
861bb6c1 JL |
3343 | xmake_file=m68k/x-amix |
3344 | tmake_file=t-svr4 | |
3345 | extra_parts="crtbegin.o crtend.o" | |
3346 | extra_headers=math-68881.h | |
0a95276e | 3347 | float_format=m68k |
861bb6c1 JL |
3348 | ;; |
3349 | m68k-ccur-rtu) | |
3350 | tm_file=m68k/ccur-GAS.h | |
3351 | xmake_file=m68k/x-ccur | |
3352 | extra_headers=math-68881.h | |
3353 | use_collect2=yes | |
0a95276e | 3354 | float_format=m68k |
861bb6c1 JL |
3355 | ;; |
3356 | m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd | |
3357 | tm_file=m68k/hp3bsd44.h | |
3358 | xmake_file=m68k/x-hp3bsd44 | |
3359 | use_collect2=yes | |
3360 | extra_headers=math-68881.h | |
0a95276e | 3361 | float_format=m68k |
861bb6c1 JL |
3362 | ;; |
3363 | m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix | |
3364 | tm_file=m68k/hp3bsd.h | |
3365 | use_collect2=yes | |
3366 | extra_headers=math-68881.h | |
0a95276e | 3367 | float_format=m68k |
861bb6c1 JL |
3368 | ;; |
3369 | m68k-isi-bsd*) | |
3370 | if [ x$with_fp = xno ] | |
3371 | then | |
3372 | tm_file=m68k/isi-nfp.h | |
3373 | else | |
3374 | tm_file=m68k/isi.h | |
0a95276e | 3375 | float_format=m68k |
861bb6c1 JL |
3376 | fi |
3377 | use_collect2=yes | |
3378 | extra_headers=math-68881.h | |
3379 | ;; | |
3380 | m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7. | |
f6cb0e63 JL |
3381 | xm_file="xm_alloca.h ${xm_file}" |
3382 | xm_defines="USG NO_SYS_SIGLIST" | |
861bb6c1 JL |
3383 | if [ x$gas = xyes ] |
3384 | then | |
3385 | xmake_file=m68k/x-hp320g | |
3386 | tm_file=m68k/hp320g.h | |
3387 | else | |
3388 | xmake_file=m68k/x-hp320 | |
3389 | tm_file=m68k/hpux7.h | |
3390 | fi | |
861bb6c1 JL |
3391 | install_headers_dir=install-headers-cpio |
3392 | use_collect2=yes | |
3393 | extra_headers=math-68881.h | |
0a95276e | 3394 | float_format=m68k |
861bb6c1 JL |
3395 | ;; |
3396 | m68k-hp-hpux*) # HP 9000 series 300 | |
f6cb0e63 JL |
3397 | xm_file="xm_alloca.h ${xm_file}" |
3398 | xm_defines="USG NO_SYS_SIGLIST" | |
861bb6c1 JL |
3399 | if [ x$gas = xyes ] |
3400 | then | |
3401 | xmake_file=m68k/x-hp320g | |
3402 | tm_file=m68k/hp320g.h | |
3403 | else | |
3404 | xmake_file=m68k/x-hp320 | |
3405 | tm_file=m68k/hp320.h | |
3406 | fi | |
861bb6c1 JL |
3407 | install_headers_dir=install-headers-cpio |
3408 | use_collect2=yes | |
3409 | extra_headers=math-68881.h | |
0a95276e | 3410 | float_format=m68k |
861bb6c1 JL |
3411 | ;; |
3412 | m68k-sun-mach*) | |
3413 | tm_file=m68k/sun3mach.h | |
3414 | use_collect2=yes | |
3415 | extra_headers=math-68881.h | |
0a95276e | 3416 | float_format=m68k |
861bb6c1 JL |
3417 | ;; |
3418 | m68k-sony-newsos3*) | |
3419 | if [ x$gas = xyes ] | |
3420 | then | |
3421 | tm_file=m68k/news3gas.h | |
3422 | else | |
3423 | tm_file=m68k/news3.h | |
3424 | fi | |
3425 | use_collect2=yes | |
3426 | extra_headers=math-68881.h | |
0a95276e | 3427 | float_format=m68k |
861bb6c1 JL |
3428 | ;; |
3429 | m68k-sony-bsd* | m68k-sony-newsos*) | |
3430 | if [ x$gas = xyes ] | |
3431 | then | |
3432 | tm_file=m68k/newsgas.h | |
3433 | else | |
3434 | tm_file=m68k/news.h | |
3435 | fi | |
3436 | use_collect2=yes | |
3437 | extra_headers=math-68881.h | |
0a95276e | 3438 | float_format=m68k |
861bb6c1 JL |
3439 | ;; |
3440 | m68k-next-nextstep2*) | |
3441 | tm_file=m68k/next21.h | |
f6cb0e63 | 3442 | xm_file="m68k/xm-next.h ${xm_file}" |
861bb6c1 JL |
3443 | tmake_file=m68k/t-next |
3444 | xmake_file=m68k/x-next | |
3445 | extra_objs=nextstep.o | |
3446 | extra_headers=math-68881.h | |
3447 | use_collect2=yes | |
0a95276e | 3448 | float_format=m68k |
861bb6c1 JL |
3449 | ;; |
3450 | m68k-next-nextstep3*) | |
3451 | tm_file=m68k/next.h | |
f6cb0e63 | 3452 | xm_file="m68k/xm-next.h ${xm_file}" |
861bb6c1 JL |
3453 | tmake_file=m68k/t-next |
3454 | xmake_file=m68k/x-next | |
3455 | extra_objs=nextstep.o | |
3456 | extra_headers=math-68881.h | |
0a95276e | 3457 | float_format=m68k |
861bb6c1 JL |
3458 | if [ x$enable_threads = xyes ]; then |
3459 | thread_file='mach' | |
3460 | fi | |
3461 | ;; | |
3462 | m68k-sun-sunos3*) | |
3463 | if [ x$with_fp = xno ] | |
3464 | then | |
3465 | tm_file=m68k/sun3n3.h | |
3466 | else | |
3467 | tm_file=m68k/sun3o3.h | |
0a95276e | 3468 | float_format=m68k |
861bb6c1 JL |
3469 | fi |
3470 | use_collect2=yes | |
3471 | extra_headers=math-68881.h | |
3472 | ;; | |
3473 | m68k-sun-sunos*) # For SunOS 4 (the default). | |
3474 | if [ x$with_fp = xno ] | |
3475 | then | |
3476 | tm_file=m68k/sun3n.h | |
3477 | else | |
3478 | tm_file=m68k/sun3.h | |
0a95276e | 3479 | float_format=m68k |
861bb6c1 | 3480 | fi |
861bb6c1 JL |
3481 | use_collect2=yes |
3482 | extra_headers=math-68881.h | |
3483 | ;; | |
3484 | m68k-wrs-vxworks*) | |
3485 | tm_file=m68k/vxm68k.h | |
3486 | tmake_file=m68k/t-vxworks68 | |
3487 | extra_headers=math-68881.h | |
7cc34889 | 3488 | thread_file='vxworks' |
0a95276e | 3489 | float_format=m68k |
861bb6c1 JL |
3490 | ;; |
3491 | m68k-*-aout*) | |
3492 | tmake_file=m68k/t-m68kbare | |
3493 | tm_file="m68k/m68k-aout.h libgloss.h" | |
3494 | extra_headers=math-68881.h | |
0a95276e | 3495 | float_format=m68k |
861bb6c1 JL |
3496 | ;; |
3497 | m68k-*-coff*) | |
3498 | tmake_file=m68k/t-m68kbare | |
3499 | tm_file="m68k/m68k-coff.h dbx.h libgloss.h" | |
3500 | extra_headers=math-68881.h | |
0a95276e | 3501 | float_format=m68k |
861bb6c1 JL |
3502 | ;; |
3503 | m68k-*-lynxos*) | |
3504 | if [ x$gas = xyes ] | |
3505 | then | |
3506 | tm_file=m68k/lynx.h | |
3507 | else | |
3508 | tm_file=m68k/lynx-ng.h | |
3509 | fi | |
3510 | xm_file=m68k/xm-lynx.h | |
3511 | xmake_file=x-lynx | |
3512 | tmake_file=m68k/t-lynx | |
3513 | extra_headers=math-68881.h | |
0a95276e | 3514 | float_format=m68k |
861bb6c1 JL |
3515 | ;; |
3516 | m68k-*-netbsd*) | |
3517 | tm_file=m68k/netbsd.h | |
be1ed94f | 3518 | # On NetBSD, the headers are already okay, except for math.h. |
32f65aa0 | 3519 | fixincludes=fixinc.wrap |
861bb6c1 | 3520 | tmake_file=t-netbsd |
0a95276e | 3521 | float_format=m68k |
861bb6c1 JL |
3522 | ;; |
3523 | m68k-*-sysv3*) # Motorola m68k's running system V.3 | |
f6cb0e63 JL |
3524 | xm_file="xm-alloca.h ${xm_file}" |
3525 | xm_defines=USG | |
861bb6c1 JL |
3526 | xmake_file=m68k/x-m68kv |
3527 | extra_parts="crtbegin.o crtend.o" | |
3528 | extra_headers=math-68881.h | |
0a95276e | 3529 | float_format=m68k |
861bb6c1 JL |
3530 | ;; |
3531 | m68k-*-sysv4*) # Motorola m68k's running system V.4 | |
3532 | tm_file=m68k/m68kv4.h | |
f6cb0e63 JL |
3533 | xm_file="xm-alloca.h ${xm_file}" |
3534 | xm_defines=USG | |
861bb6c1 JL |
3535 | tmake_file=t-svr4 |
3536 | extra_parts="crtbegin.o crtend.o" | |
3537 | extra_headers=math-68881.h | |
0a95276e | 3538 | float_format=m68k |
861bb6c1 | 3539 | ;; |
956d6950 | 3540 | m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux |
f6cb0e63 | 3541 | # with a.out format |
861bb6c1 JL |
3542 | xmake_file=x-linux |
3543 | tm_file=m68k/linux-aout.h | |
3544 | tmake_file="t-linux-aout m68k/t-linux-aout" | |
956d6950 | 3545 | fixincludes=Makefile.in # The headers are ok already. |
861bb6c1 | 3546 | extra_headers=math-68881.h |
0a95276e | 3547 | float_format=m68k |
861bb6c1 JL |
3548 | gnu_ld=yes |
3549 | ;; | |
956d6950 | 3550 | m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux |
f6cb0e63 JL |
3551 | # with ELF format using the |
3552 | # GNU/Linux C library 5 | |
3553 | xmake_file=x-linux | |
861bb6c1 JL |
3554 | tm_file=m68k/linux.h |
3555 | tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux" | |
3556 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
956d6950 | 3557 | fixincludes=Makefile.in # The headers are ok already. |
861bb6c1 | 3558 | extra_headers=math-68881.h |
0a95276e | 3559 | float_format=m68k |
861bb6c1 JL |
3560 | gnu_ld=yes |
3561 | ;; | |
956d6950 | 3562 | m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux |
f6cb0e63 JL |
3563 | # with ELF format using glibc 2 |
3564 | # aka the GNU/Linux C library 6. | |
3565 | xmake_file=x-linux | |
861bb6c1 JL |
3566 | tm_file=m68k/linux.h |
3567 | tmake_file="t-linux m68k/t-linux" | |
3568 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
956d6950 | 3569 | fixincludes=Makefile.in # The headers are ok already. |
861bb6c1 | 3570 | extra_headers=math-68881.h |
0a95276e | 3571 | float_format=m68k |
861bb6c1 JL |
3572 | gnu_ld=yes |
3573 | if [ x$enable_threads = xyes ]; then | |
3574 | thread_file='posix' | |
3575 | fi | |
3576 | ;; | |
3577 | m68k-*-psos*) | |
3578 | tmake_file=m68k/t-m68kbare | |
3579 | tm_file=m68k/m68k-psos.h | |
3580 | extra_headers=math-68881.h | |
0a95276e | 3581 | float_format=m68k |
861bb6c1 JL |
3582 | ;; |
3583 | m68k-*-rtems*) | |
3584 | tmake_file="m68k/t-m68kbare t-rtems" | |
3585 | tm_file=m68k/rtems.h | |
3586 | extra_headers=math-68881.h | |
0a95276e | 3587 | float_format=m68k |
861bb6c1 JL |
3588 | ;; |
3589 | ||
3590 | m88k-dg-dgux*) | |
3591 | case $machine in | |
3592 | m88k-dg-dguxbcs*) | |
3593 | tm_file=m88k/dguxbcs.h | |
3594 | tmake_file=m88k/t-dguxbcs | |
3595 | ;; | |
3596 | *) | |
3597 | tm_file=m88k/dgux.h | |
3598 | tmake_file=m88k/t-dgux | |
3599 | ;; | |
3600 | esac | |
3601 | extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld" | |
861bb6c1 JL |
3602 | xmake_file=m88k/x-dgux |
3603 | if [ x$gas = xyes ] | |
3604 | then | |
3605 | tmake_file=m88k/t-dgux-gas | |
3606 | fi | |
3607 | fixincludes=fixinc.dgux | |
3608 | ;; | |
3609 | m88k-dolphin-sysv3*) | |
3610 | tm_file=m88k/dolph.h | |
3611 | extra_parts="crtbegin.o crtend.o" | |
f6cb0e63 | 3612 | xm_file="m88k/xm-sysv3.h ${xm_file}" |
861bb6c1 JL |
3613 | xmake_file=m88k/x-dolph |
3614 | if [ x$gas = xyes ] | |
3615 | then | |
3616 | tmake_file=m88k/t-m88k-gas | |
3617 | fi | |
3618 | ;; | |
3619 | m88k-tektronix-sysv3) | |
3620 | tm_file=m88k/tekXD88.h | |
3621 | extra_parts="crtbegin.o crtend.o" | |
f6cb0e63 | 3622 | xm_file="m88k/xm-sysv3.h ${xm_file}" |
861bb6c1 JL |
3623 | xmake_file=m88k/x-tekXD88 |
3624 | if [ x$gas = xyes ] | |
3625 | then | |
3626 | tmake_file=m88k/t-m88k-gas | |
3627 | fi | |
3628 | ;; | |
3629 | m88k-*-aout*) | |
3630 | tm_file=m88k/m88k-aout.h | |
3631 | ;; | |
3632 | m88k-*-coff*) | |
3633 | tm_file=m88k/m88k-coff.h | |
3634 | tmake_file=m88k/t-bug | |
3635 | ;; | |
3636 | m88k-*-luna*) | |
3637 | tm_file=m88k/luna.h | |
3638 | extra_parts="crtbegin.o crtend.o" | |
3639 | if [ x$gas = xyes ] | |
3640 | then | |
3641 | tmake_file=m88k/t-luna-gas | |
3642 | else | |
3643 | tmake_file=m88k/t-luna | |
3644 | fi | |
3645 | ;; | |
3646 | m88k-*-sysv3*) | |
3647 | tm_file=m88k/sysv3.h | |
3648 | extra_parts="crtbegin.o crtend.o" | |
f6cb0e63 | 3649 | xm_file="m88k/xm-sysv3.h ${xm_file}" |
861bb6c1 JL |
3650 | xmake_file=m88k/x-sysv3 |
3651 | if [ x$gas = xyes ] | |
3652 | then | |
3653 | tmake_file=m88k/t-m88k-gas | |
3654 | fi | |
3655 | ;; | |
3656 | m88k-*-sysv4*) | |
3657 | tm_file=m88k/sysv4.h | |
3658 | extra_parts="crtbegin.o crtend.o" | |
3659 | xmake_file=m88k/x-sysv4 | |
3660 | tmake_file=m88k/t-sysv4 | |
3661 | ;; | |
3662 | mips-sgi-irix6*) # SGI System V.4., IRIX 6 | |
3663 | tm_file=mips/iris6.h | |
3664 | xm_file=mips/xm-iris6.h | |
861bb6c1 JL |
3665 | fixincludes=fixinc.irix |
3666 | xmake_file=mips/x-iris6 | |
3667 | tmake_file=mips/t-iris6 | |
3668 | if [ x$enable_threads = xyes ]; then | |
3669 | thread_file='irix' | |
3670 | fi | |
3671 | ;; | |
98bd9f0f DB |
3672 | mips-wrs-vxworks) |
3673 | tm_file="mips/elf.h libgloss.h" | |
3674 | tmake_file=mips/t-ecoff | |
3675 | gas=yes | |
3676 | gnu_ld=yes | |
3677 | extra_parts="crtbegin.o crtend.o" | |
3678 | # thread_file='vxworks' | |
3679 | ;; | |
861bb6c1 | 3680 | mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64 |
f6cb0e63 JL |
3681 | tm_file="mips/iris6.h mips/cross64.h" |
3682 | xm_defines="USG HAVE_INTTYPES_H" | |
861bb6c1 JL |
3683 | fixincludes=Makefile.in |
3684 | xmake_file=mips/x-iris | |
3685 | tmake_file=mips/t-cross64 | |
3686 | # See comment in mips/iris[56].h files. | |
3687 | use_collect2=yes | |
3688 | if [ x$enable_threads = xyes ]; then | |
3689 | thread_file='irix' | |
3690 | fi | |
3691 | ;; | |
3692 | mips-sni-sysv4) | |
3693 | if [ x$gas = xyes ] | |
3694 | then | |
3695 | if [ x$stabs = xyes ] | |
3696 | then | |
3697 | tm_file=mips/iris5gdb.h | |
3698 | else | |
f6cb0e63 | 3699 | tm_file="mips/sni-svr4.h mips/sni-gas.h" |
861bb6c1 JL |
3700 | fi |
3701 | else | |
3702 | tm_file=mips/sni-svr4.h | |
3703 | fi | |
f6cb0e63 | 3704 | xm_defines=USG |
861bb6c1 JL |
3705 | xmake_file=mips/x-sni-svr4 |
3706 | tmake_file=mips/t-mips-gas | |
3707 | if [ x$gnu_ld != xyes ] | |
3708 | then | |
3709 | use_collect2=yes | |
3710 | fi | |
861bb6c1 JL |
3711 | ;; |
3712 | mips-sgi-irix5*) # SGI System V.4., IRIX 5 | |
3713 | if [ x$gas = xyes ] | |
3714 | then | |
f6cb0e63 | 3715 | tm_file="mips/iris5.h mips/iris5gas.h" |
861bb6c1 JL |
3716 | if [ x$stabs = xyes ] |
3717 | then | |
3718 | tm_file="${tm_file} dbx.h" | |
3719 | fi | |
3720 | else | |
3721 | tm_file=mips/iris5.h | |
3722 | fi | |
f6cb0e63 | 3723 | xm_defines="USG HAVE_INTTYPES_H" |
861bb6c1 JL |
3724 | fixincludes=fixinc.irix |
3725 | xmake_file=mips/x-iris | |
3726 | # mips-tfile doesn't work yet | |
3727 | tmake_file=mips/t-mips-gas | |
3728 | # See comment in mips/iris5.h file. | |
3729 | use_collect2=yes | |
3730 | if [ x$enable_threads = xyes ]; then | |
3731 | thread_file='irix' | |
3732 | fi | |
3733 | ;; | |
3734 | mips-sgi-irix4loser*) # Mostly like a MIPS. | |
f6cb0e63 | 3735 | tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h" |
861bb6c1 JL |
3736 | if [ x$stabs = xyes ]; then |
3737 | tm_file="${tm_file} dbx.h" | |
3738 | fi | |
f6cb0e63 | 3739 | xm_defines=USG |
861bb6c1 JL |
3740 | xmake_file=mips/x-iris |
3741 | if [ x$gas = xyes ] | |
3742 | then | |
3743 | tmake_file=mips/t-mips-gas | |
3744 | else | |
3745 | extra_passes="mips-tfile mips-tdump" | |
3746 | fi | |
3747 | if [ x$gnu_ld != xyes ] | |
3748 | then | |
3749 | use_collect2=yes | |
3750 | fi | |
3751 | if [ x$enable_threads = xyes ]; then | |
3752 | thread_file='irix' | |
3753 | fi | |
3754 | ;; | |
3755 | mips-sgi-irix4*) # Mostly like a MIPS. | |
f6cb0e63 | 3756 | tm_file="mips/iris3.h ${tm_file} mips/iris4.h" |
861bb6c1 JL |
3757 | if [ x$stabs = xyes ]; then |
3758 | tm_file="${tm_file} dbx.h" | |
3759 | fi | |
f6cb0e63 | 3760 | xm_defines=USG |
861bb6c1 JL |
3761 | xmake_file=mips/x-iris |
3762 | if [ x$gas = xyes ] | |
3763 | then | |
3764 | tmake_file=mips/t-mips-gas | |
3765 | else | |
3766 | extra_passes="mips-tfile mips-tdump" | |
3767 | fi | |
3768 | if [ x$gnu_ld != xyes ] | |
3769 | then | |
3770 | use_collect2=yes | |
3771 | fi | |
3772 | if [ x$enable_threads = xyes ]; then | |
3773 | thread_file='irix' | |
3774 | fi | |
3775 | ;; | |
3776 | mips-sgi-*) # Mostly like a MIPS. | |
f6cb0e63 | 3777 | tm_file="mips/iris3.h ${tm_file}" |
861bb6c1 JL |
3778 | if [ x$stabs = xyes ]; then |
3779 | tm_file="${tm_file} dbx.h" | |
3780 | fi | |
f6cb0e63 | 3781 | xm_defines=USG |
861bb6c1 JL |
3782 | xmake_file=mips/x-iris3 |
3783 | if [ x$gas = xyes ] | |
3784 | then | |
3785 | tmake_file=mips/t-mips-gas | |
3786 | else | |
3787 | extra_passes="mips-tfile mips-tdump" | |
3788 | fi | |
3789 | if [ x$gnu_ld != xyes ] | |
3790 | then | |
3791 | use_collect2=yes | |
3792 | fi | |
3793 | ;; | |
3794 | mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose. | |
f6cb0e63 | 3795 | tm_file="mips/osfrose.h ${tm_file}" |
861bb6c1 JL |
3796 | xmake_file=mips/x-osfrose |
3797 | tmake_file=mips/t-osfrose | |
3798 | extra_objs=halfpic.o | |
3799 | use_collect2=yes | |
3800 | ;; | |
3801 | mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL | |
3802 | tm_file=mips/dec-osf1.h | |
3803 | if [ x$stabs = xyes ]; then | |
3804 | tm_file="${tm_file} dbx.h" | |
3805 | fi | |
3806 | xmake_file=mips/x-dec-osf1 | |
3807 | if [ x$gas = xyes ] | |
3808 | then | |
3809 | tmake_file=mips/t-mips-gas | |
3810 | else | |
3811 | tmake_file=mips/t-ultrix | |
3812 | extra_passes="mips-tfile mips-tdump" | |
3813 | fi | |
3814 | if [ x$gnu_ld != xyes ] | |
3815 | then | |
3816 | use_collect2=yes | |
3817 | fi | |
3818 | ;; | |
3819 | mips-dec-bsd*) # Decstation running 4.4 BSD | |
3820 | tm_file=mips/dec-bsd.h | |
3821 | fixincludes= | |
3822 | if [ x$gas = xyes ] | |
3823 | then | |
3824 | tmake_file=mips/t-mips-gas | |
3825 | else | |
3826 | tmake_file=mips/t-ultrix | |
3827 | extra_passes="mips-tfile mips-tdump" | |
3828 | fi | |
3829 | if [ x$gnu_ld != xyes ] | |
3830 | then | |
3831 | use_collect2=yes | |
3832 | fi | |
3833 | ;; | |
3834 | mips-dec-netbsd*) # Decstation running NetBSD | |
3835 | tm_file=mips/netbsd.h | |
be1ed94f | 3836 | # On NetBSD, the headers are already okay, except for math.h. |
32f65aa0 | 3837 | fixincludes=fixinc.wrap |
861bb6c1 | 3838 | tmake_file=t-netbsd |
861bb6c1 JL |
3839 | ;; |
3840 | mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news. | |
f6cb0e63 | 3841 | tm_file="mips/news4.h ${tm_file}" |
861bb6c1 JL |
3842 | if [ x$stabs = xyes ]; then |
3843 | tm_file="${tm_file} dbx.h" | |
3844 | fi | |
3845 | if [ x$gas = xyes ] | |
3846 | then | |
3847 | tmake_file=mips/t-mips-gas | |
3848 | else | |
3849 | extra_passes="mips-tfile mips-tdump" | |
3850 | fi | |
3851 | if [ x$gnu_ld != xyes ] | |
3852 | then | |
3853 | use_collect2=yes | |
3854 | fi | |
3855 | xmake_file=mips/x-sony | |
3856 | ;; | |
3857 | mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0. | |
3858 | # That is based on svr4. | |
3859 | # t-svr4 is not right because this system doesn't use ELF. | |
f6cb0e63 | 3860 | tm_file="mips/news5.h ${tm_file}" |
861bb6c1 JL |
3861 | if [ x$stabs = xyes ]; then |
3862 | tm_file="${tm_file} dbx.h" | |
3863 | fi | |
f6cb0e63 JL |
3864 | xm_file="xm-siglist.h ${xm_file}" |
3865 | xm_defines=USG | |
861bb6c1 JL |
3866 | if [ x$gas = xyes ] |
3867 | then | |
3868 | tmake_file=mips/t-mips-gas | |
3869 | else | |
3870 | extra_passes="mips-tfile mips-tdump" | |
3871 | fi | |
3872 | if [ x$gnu_ld != xyes ] | |
3873 | then | |
3874 | use_collect2=yes | |
3875 | fi | |
3876 | ;; | |
3877 | mips-tandem-sysv4*) # Tandem S2 running NonStop UX | |
f6cb0e63 | 3878 | tm_file="mips/svr4-5.h mips/svr4-t.h" |
861bb6c1 JL |
3879 | if [ x$stabs = xyes ]; then |
3880 | tm_file="${tm_file} dbx.h" | |
3881 | fi | |
f6cb0e63 JL |
3882 | xm_file="xm-siglist.h ${xm_file}" |
3883 | xm_defines=USG | |
861bb6c1 JL |
3884 | xmake_file=mips/x-sysv |
3885 | if [ x$gas = xyes ] | |
3886 | then | |
3887 | tmake_file=mips/t-mips-gas | |
3888 | extra_parts="crtbegin.o crtend.o" | |
3889 | else | |
3890 | tmake_file=mips/t-mips | |
3891 | extra_passes="mips-tfile mips-tdump" | |
3892 | fi | |
3893 | if [ x$gnu_ld != xyes ] | |
3894 | then | |
3895 | use_collect2=yes | |
3896 | fi | |
861bb6c1 JL |
3897 | ;; |
3898 | mips-*-ultrix* | mips-dec-mach3) # Decstation. | |
f6cb0e63 | 3899 | tm_file="mips/ultrix.h ${tm_file}" |
861bb6c1 JL |
3900 | if [ x$stabs = xyes ]; then |
3901 | tm_file="${tm_file} dbx.h" | |
3902 | fi | |
3903 | xmake_file=mips/x-ultrix | |
3904 | if [ x$gas = xyes ] | |
3905 | then | |
3906 | tmake_file=mips/t-mips-gas | |
3907 | else | |
3908 | tmake_file=mips/t-ultrix | |
3909 | extra_passes="mips-tfile mips-tdump" | |
3910 | fi | |
3911 | if [ x$gnu_ld != xyes ] | |
3912 | then | |
3913 | use_collect2=yes | |
3914 | fi | |
3915 | ;; | |
3916 | mips-*-riscos[56789]bsd*) | |
3917 | tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0 | |
3918 | if [ x$stabs = xyes ]; then | |
3919 | tm_file="${tm_file} dbx.h" | |
3920 | fi | |
3921 | if [ x$gas = xyes ] | |
3922 | then | |
3923 | tmake_file=mips/t-bsd-gas | |
3924 | else | |
3925 | tmake_file=mips/t-bsd | |
3926 | extra_passes="mips-tfile mips-tdump" | |
3927 | fi | |
3928 | if [ x$gnu_ld != xyes ] | |
3929 | then | |
3930 | use_collect2=yes | |
3931 | fi | |
861bb6c1 JL |
3932 | ;; |
3933 | mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*) | |
f6cb0e63 | 3934 | tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0 |
861bb6c1 JL |
3935 | if [ x$stabs = xyes ]; then |
3936 | tm_file="${tm_file} dbx.h" | |
3937 | fi | |
3938 | if [ x$gas = xyes ] | |
3939 | then | |
3940 | tmake_file=mips/t-bsd-gas | |
3941 | else | |
3942 | tmake_file=mips/t-bsd | |
3943 | extra_passes="mips-tfile mips-tdump" | |
3944 | fi | |
3945 | if [ x$gnu_ld != xyes ] | |
3946 | then | |
3947 | use_collect2=yes | |
3948 | fi | |
861bb6c1 JL |
3949 | ;; |
3950 | mips-*-riscos[56789]sysv4*) | |
3951 | tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0 | |
3952 | if [ x$stabs = xyes ]; then | |
3953 | tm_file="${tm_file} dbx.h" | |
3954 | fi | |
f6cb0e63 | 3955 | xm_file="xm-siglist.h ${xm_file}" |
861bb6c1 JL |
3956 | xmake_file=mips/x-sysv |
3957 | if [ x$gas = xyes ] | |
3958 | then | |
3959 | tmake_file=mips/t-svr4-gas | |
3960 | else | |
3961 | tmake_file=mips/t-svr4 | |
3962 | extra_passes="mips-tfile mips-tdump" | |
3963 | fi | |
3964 | if [ x$gnu_ld != xyes ] | |
3965 | then | |
3966 | use_collect2=yes | |
3967 | fi | |
861bb6c1 JL |
3968 | ;; |
3969 | mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*) | |
f6cb0e63 | 3970 | tm_file="mips/svr4-4.h ${tm_file}" |
861bb6c1 JL |
3971 | if [ x$stabs = xyes ]; then |
3972 | tm_file="${tm_file} dbx.h" | |
3973 | fi | |
f6cb0e63 | 3974 | xm_defines=USG |
861bb6c1 JL |
3975 | xmake_file=mips/x-sysv |
3976 | if [ x$gas = xyes ] | |
3977 | then | |
3978 | tmake_file=mips/t-svr4-gas | |
3979 | else | |
3980 | tmake_file=mips/t-svr4 | |
3981 | extra_passes="mips-tfile mips-tdump" | |
3982 | fi | |
3983 | if [ x$gnu_ld != xyes ] | |
3984 | then | |
3985 | use_collect2=yes | |
3986 | fi | |
861bb6c1 JL |
3987 | ;; |
3988 | mips-*-riscos[56789]sysv*) | |
3989 | tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0 | |
3990 | if [ x$stabs = xyes ]; then | |
3991 | tm_file="${tm_file} dbx.h" | |
3992 | fi | |
f6cb0e63 | 3993 | xm_defines=USG |
861bb6c1 JL |
3994 | xmake_file=mips/x-sysv |
3995 | if [ x$gas = xyes ] | |
3996 | then | |
3997 | tmake_file=mips/t-svr3-gas | |
3998 | else | |
3999 | tmake_file=mips/t-svr3 | |
4000 | extra_passes="mips-tfile mips-tdump" | |
4001 | fi | |
4002 | if [ x$gnu_ld != xyes ] | |
4003 | then | |
4004 | use_collect2=yes | |
4005 | fi | |
861bb6c1 JL |
4006 | ;; |
4007 | mips-*-sysv* | mips-*-riscos*sysv*) | |
f6cb0e63 | 4008 | tm_file="mips/svr3-4.h ${tm_file}" |
861bb6c1 JL |
4009 | if [ x$stabs = xyes ]; then |
4010 | tm_file="${tm_file} dbx.h" | |
4011 | fi | |
f6cb0e63 | 4012 | xm_defines=USG |
861bb6c1 JL |
4013 | xmake_file=mips/x-sysv |
4014 | if [ x$gas = xyes ] | |
4015 | then | |
4016 | tmake_file=mips/t-svr3-gas | |
4017 | else | |
4018 | tmake_file=mips/t-svr3 | |
4019 | extra_passes="mips-tfile mips-tdump" | |
4020 | fi | |
4021 | if [ x$gnu_ld != xyes ] | |
4022 | then | |
4023 | use_collect2=yes | |
4024 | fi | |
861bb6c1 JL |
4025 | ;; |
4026 | mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0. | |
4027 | tm_file=mips/mips-5.h | |
4028 | if [ x$stabs = xyes ]; then | |
4029 | tm_file="${tm_file} dbx.h" | |
4030 | fi | |
4031 | if [ x$gas = xyes ] | |
4032 | then | |
4033 | tmake_file=mips/t-mips-gas | |
4034 | else | |
4035 | extra_passes="mips-tfile mips-tdump" | |
4036 | fi | |
4037 | if [ x$gnu_ld != xyes ] | |
4038 | then | |
4039 | use_collect2=yes | |
4040 | fi | |
861bb6c1 JL |
4041 | ;; |
4042 | mips-*-gnu*) | |
4043 | ;; | |
4044 | mipsel-*-ecoff*) | |
4045 | tm_file=mips/ecoffl.h | |
4046 | if [ x$stabs = xyes ]; then | |
4047 | tm_file="${tm_file} dbx.h" | |
4048 | fi | |
4049 | tmake_file=mips/t-ecoff | |
4050 | ;; | |
4051 | mips-*-ecoff*) | |
1be12a4a | 4052 | tm_file="gofast.h mips/ecoff.h" |
861bb6c1 JL |
4053 | if [ x$stabs = xyes ]; then |
4054 | tm_file="${tm_file} dbx.h" | |
4055 | fi | |
4056 | tmake_file=mips/t-ecoff | |
861bb6c1 JL |
4057 | ;; |
4058 | mipsel-*-elf*) | |
4059 | tm_file="mips/elfl.h libgloss.h" | |
4060 | tmake_file=mips/t-ecoff | |
4061 | ;; | |
4062 | mips-*-elf*) | |
4063 | tm_file="mips/elf.h libgloss.h" | |
4064 | tmake_file=mips/t-ecoff | |
4065 | ;; | |
4066 | mips64el-*-elf*) | |
4067 | tm_file="mips/elfl64.h libgloss.h" | |
4068 | tmake_file=mips/t-ecoff | |
4069 | ;; | |
4070 | mips64orionel-*-elf*) | |
f6cb0e63 | 4071 | tm_file="mips/elforion.h mips/elfl64.h libgloss.h" |
861bb6c1 JL |
4072 | tmake_file=mips/t-ecoff |
4073 | ;; | |
4074 | mips64-*-elf*) | |
4075 | tm_file="mips/elf64.h libgloss.h" | |
4076 | tmake_file=mips/t-ecoff | |
4077 | ;; | |
4078 | mips64orion-*-elf*) | |
f6cb0e63 | 4079 | tm_file="mips/elforion.h mips/elf64.h libgloss.h" |
861bb6c1 JL |
4080 | tmake_file=mips/t-ecoff |
4081 | ;; | |
4082 | mips64orion-*-rtems*) | |
f6cb0e63 | 4083 | tm_file="mips/elforion.h mips/elfl64.h mips/rtems64.h" |
861bb6c1 JL |
4084 | tmake_file="mips/t-ecoff t-rtems" |
4085 | ;; | |
e9a25f70 JL |
4086 | mipstx39el-*-elf*) |
4087 | tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h" | |
09e4daf5 | 4088 | tmake_file=mips/t-r3900 |
e9a25f70 JL |
4089 | ;; |
4090 | mipstx39-*-elf*) | |
4091 | tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h" | |
09e4daf5 | 4092 | tmake_file=mips/t-r3900 |
e9a25f70 | 4093 | ;; |
861bb6c1 JL |
4094 | mips-*-*) # Default MIPS RISC-OS 4.0. |
4095 | if [ x$stabs = xyes ]; then | |
4096 | tm_file="${tm_file} dbx.h" | |
4097 | fi | |
4098 | if [ x$gas = xyes ] | |
4099 | then | |
4100 | tmake_file=mips/t-mips-gas | |
4101 | else | |
4102 | extra_passes="mips-tfile mips-tdump" | |
4103 | fi | |
4104 | if [ x$gnu_ld != xyes ] | |
4105 | then | |
4106 | use_collect2=yes | |
4107 | fi | |
4108 | ;; | |
4109 | mn10200-*-*) | |
4110 | cpu_type=mn10200 | |
4111 | tm_file="mn10200/mn10200.h" | |
4112 | if [ x$stabs = xyes ] | |
4113 | then | |
4114 | tm_file="${tm_file} dbx.h" | |
4115 | fi | |
4116 | use_collect2=no | |
4117 | ;; | |
4118 | mn10300-*-*) | |
4119 | cpu_type=mn10300 | |
4120 | tm_file="mn10300/mn10300.h" | |
4121 | if [ x$stabs = xyes ] | |
4122 | then | |
4123 | tm_file="${tm_file} dbx.h" | |
4124 | fi | |
4125 | use_collect2=no | |
4126 | ;; | |
4127 | ns32k-encore-bsd*) | |
4128 | tm_file=ns32k/encore.h | |
4129 | use_collect2=yes | |
4130 | ;; | |
4131 | ns32k-sequent-bsd*) | |
4132 | tm_file=ns32k/sequent.h | |
4133 | use_collect2=yes | |
4134 | ;; | |
4135 | ns32k-tek6100-bsd*) | |
4136 | tm_file=ns32k/tek6100.h | |
861bb6c1 JL |
4137 | use_collect2=yes |
4138 | ;; | |
4139 | ns32k-tek6200-bsd*) | |
4140 | tm_file=ns32k/tek6200.h | |
861bb6c1 JL |
4141 | use_collect2=yes |
4142 | ;; | |
4143 | # This has not been updated to GCC 2. | |
4144 | # ns32k-ns-genix*) | |
f6cb0e63 | 4145 | # xm_defines=USG |
861bb6c1 JL |
4146 | # xmake_file=ns32k/x-genix |
4147 | # tm_file=ns32k/genix.h | |
861bb6c1 JL |
4148 | # use_collect2=yes |
4149 | # ;; | |
4150 | ns32k-merlin-*) | |
4151 | tm_file=ns32k/merlin.h | |
4152 | use_collect2=yes | |
4153 | ;; | |
4154 | ns32k-pc532-mach*) | |
4155 | tm_file=ns32k/pc532-mach.h | |
4156 | use_collect2=yes | |
4157 | ;; | |
4158 | ns32k-pc532-minix*) | |
4159 | tm_file=ns32k/pc532-min.h | |
f6cb0e63 JL |
4160 | xm_file="ns32k/xm-pc532-min.h ${xm-file}" |
4161 | xm_defines=USG | |
861bb6c1 JL |
4162 | use_collect2=yes |
4163 | ;; | |
4164 | ns32k-pc532-netbsd*) | |
4165 | tm_file=ns32k/netbsd.h | |
be1ed94f | 4166 | # On NetBSD, the headers are already okay, except for math.h. |
32f65aa0 | 4167 | fixincludes=fixinc.wrap |
861bb6c1 JL |
4168 | tmake_file=t-netbsd |
4169 | ;; | |
4170 | pdp11-*-bsd) | |
4171 | tm_file="${tm_file} pdp11/2bsd.h" | |
4172 | ;; | |
4173 | pdp11-*-*) | |
4174 | ;; | |
4175 | pyramid-*-*) | |
4176 | cpu_type=pyr | |
4177 | xmake_file=pyr/x-pyr | |
4178 | use_collect2=yes | |
4179 | ;; | |
4180 | romp-*-aos*) | |
4181 | use_collect2=yes | |
4182 | ;; | |
4183 | romp-*-mach*) | |
4184 | xmake_file=romp/x-mach | |
4185 | use_collect2=yes | |
4186 | ;; | |
c55dcc7d FF |
4187 | powerpc-*-beos*) |
4188 | cpu_type=rs6000 | |
4189 | tm_file=rs6000/beos.h | |
4190 | xm_file=rs6000/xm-beos.h | |
4191 | tmake_file=rs6000/t-beos | |
4192 | xmake_file=rs6000/x-beos | |
4193 | ;; | |
861bb6c1 JL |
4194 | powerpc-*-sysv* | powerpc-*-elf*) |
4195 | tm_file=rs6000/sysv4.h | |
f6cb0e63 JL |
4196 | xm_file="xm-siglist.h rs6000/xm-sysv4.h" |
4197 | xm_defines="USG POSIX" | |
861bb6c1 JL |
4198 | extra_headers=ppc-asm.h |
4199 | if [ x$gas = xyes ] | |
4200 | then | |
4201 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" | |
4202 | else | |
4203 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
4204 | fi | |
4205 | xmake_file=rs6000/x-sysv4 | |
4206 | ;; | |
4207 | powerpc-*-eabiaix*) | |
4208 | tm_file=rs6000/eabiaix.h | |
4209 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
4210 | fixincludes=Makefile.in | |
4211 | extra_headers=ppc-asm.h | |
4212 | ;; | |
4213 | powerpc-*-eabisim*) | |
4214 | tm_file=rs6000/eabisim.h | |
4215 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
4216 | fixincludes=Makefile.in | |
4217 | extra_headers=ppc-asm.h | |
4218 | ;; | |
4219 | powerpc-*-eabi*) | |
4220 | tm_file=rs6000/eabi.h | |
4221 | if [ x$gas = xyes ] | |
4222 | then | |
4223 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
4224 | else | |
4225 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
4226 | fi | |
4227 | fixincludes=Makefile.in | |
4228 | extra_headers=ppc-asm.h | |
4229 | ;; | |
4230 | powerpc-*-rtems*) | |
4231 | tm_file=rs6000/rtems.h | |
4232 | if [ x$gas = xyes ] | |
4233 | then | |
4234 | tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm" | |
4235 | else | |
4236 | tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm" | |
4237 | fi | |
4238 | fixincludes=Makefile.in | |
4239 | extra_headers=ppc-asm.h | |
4240 | ;; | |
ce514f57 FS |
4241 | powerpc-*-linux-gnulibc1) |
4242 | tm_file=rs6000/linux.h | |
4243 | xm_file=rs6000/xm-sysv4.h | |
4244 | out_file=rs6000/rs6000.c | |
4245 | if [ x$gas = xyes ] | |
4246 | then | |
4247 | tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm" | |
4248 | else | |
4249 | tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm" | |
4250 | fi | |
4251 | xmake_file=x-linux | |
4252 | fixincludes=Makefile.in | |
4253 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
4254 | extra_headers=ppc-asm.h | |
4255 | if [ x$enable_threads = xyes ]; then | |
4256 | thread_file='posix' | |
4257 | fi | |
4258 | ;; | |
861bb6c1 JL |
4259 | powerpc-*-linux-gnu*) |
4260 | tm_file=rs6000/linux.h | |
f6cb0e63 JL |
4261 | xm_file="xm-siglist.h rs6000/xm-sysv4.h" |
4262 | xm_defines="USG ${xm_defines}" | |
861bb6c1 JL |
4263 | out_file=rs6000/rs6000.c |
4264 | if [ x$gas = xyes ] | |
4265 | then | |
4266 | tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm" | |
4267 | else | |
4268 | tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm" | |
4269 | fi | |
4270 | xmake_file=x-linux | |
4271 | fixincludes=Makefile.in | |
4272 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
4273 | extra_headers=ppc-asm.h | |
4274 | if [ x$enable_threads = xyes ]; then | |
4275 | thread_file='posix' | |
4276 | fi | |
4277 | ;; | |
7cc34889 | 4278 | powerpc-wrs-vxworks*) |
861bb6c1 | 4279 | cpu_type=rs6000 |
f6cb0e63 JL |
4280 | xm_file="xm-siglist.h rs6000/xm-sysv4.h" |
4281 | xm_defines="USG POSIX" | |
861bb6c1 JL |
4282 | tm_file=rs6000/vxppc.h |
4283 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
4284 | extra_headers=ppc-asm.h | |
7cc34889 | 4285 | thread_file='vxworks' |
861bb6c1 JL |
4286 | ;; |
4287 | powerpcle-*-sysv* | powerpcle-*-elf*) | |
4288 | tm_file=rs6000/sysv4le.h | |
f6cb0e63 JL |
4289 | xm_file="xm-siglist.h rs6000/xm-sysv4.h" |
4290 | xm_defines="USG POSIX" | |
861bb6c1 JL |
4291 | if [ x$gas = xyes ] |
4292 | then | |
4293 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" | |
4294 | else | |
4295 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
4296 | fi | |
4297 | xmake_file=rs6000/x-sysv4 | |
4298 | extra_headers=ppc-asm.h | |
4299 | ;; | |
4300 | powerpcle-*-eabisim*) | |
4301 | tm_file=rs6000/eabilesim.h | |
4302 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
4303 | fixincludes=Makefile.in | |
4304 | extra_headers=ppc-asm.h | |
4305 | ;; | |
4306 | powerpcle-*-eabi*) | |
4307 | tm_file=rs6000/eabile.h | |
4308 | if [ x$gas = xyes ] | |
4309 | then | |
4310 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
4311 | else | |
4312 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
4313 | fi | |
4314 | fixincludes=Makefile.in | |
4315 | extra_headers=ppc-asm.h | |
4316 | ;; | |
4317 | powerpcle-*-winnt* ) | |
4318 | tm_file=rs6000/win-nt.h | |
4319 | tmake_file=rs6000/t-winnt | |
4320 | # extra_objs=pe.o | |
4321 | fixincludes=Makefile.in | |
4322 | if [ x$enable_threads = xyes ]; then | |
4323 | thread_file='win32' | |
4324 | fi | |
4325 | extra_headers=ppc-asm.h | |
4326 | ;; | |
4327 | powerpcle-*-pe | powerpcle-*-cygwin32) | |
4328 | tm_file=rs6000/cygwin32.h | |
f6cb0e63 | 4329 | xm_file="rs6000/xm-cygwin32.h ${xm_file}" |
861bb6c1 JL |
4330 | tmake_file=rs6000/t-winnt |
4331 | xmake_file=rs6000/x-cygwin32 | |
4332 | # extra_objs=pe.o | |
4333 | fixincludes=Makefile.in | |
4334 | if [ x$enable_threads = xyes ]; then | |
4335 | thread_file='win32' | |
4336 | fi | |
4337 | exeext=.exe | |
4338 | extra_headers=ppc-asm.h | |
4339 | ;; | |
4340 | powerpcle-*-solaris2*) | |
4341 | tm_file=rs6000/sol2.h | |
f6cb0e63 JL |
4342 | xm_file="xm-siglist.h rs6000/xm-sysv4.h" |
4343 | xm_defines="USG POSIX" | |
861bb6c1 JL |
4344 | if [ x$gas = xyes ] |
4345 | then | |
4346 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" | |
4347 | else | |
4348 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
4349 | fi | |
4350 | xmake_file=rs6000/x-sysv4 | |
f6cb0e63 JL |
4351 | case $machine in |
4352 | *-*-solaris2.[0-4]) | |
4353 | fixincludes=fixinc.svr4;; | |
4354 | *) | |
32f65aa0 | 4355 | fixincludes=fixinc.wrap;; |
f6cb0e63 | 4356 | esac |
861bb6c1 JL |
4357 | extra_headers=ppc-asm.h |
4358 | ;; | |
4359 | rs6000-ibm-aix3.[01]*) | |
4360 | tm_file=rs6000/aix31.h | |
4361 | xmake_file=rs6000/x-aix31 | |
4362 | use_collect2=yes | |
4363 | ;; | |
4364 | rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*) | |
4365 | tm_file=rs6000/aix3newas.h | |
4366 | if [ x$host != x$target ] | |
4367 | then | |
4368 | tmake_file=rs6000/t-xnewas | |
4369 | else | |
4370 | tmake_file=rs6000/t-newas | |
4371 | fi | |
4372 | use_collect2=yes | |
4373 | ;; | |
0a95276e | 4374 | rs6000-ibm-aix4.[12].* | powerpc-ibm-aix4.[12].*) |
861bb6c1 JL |
4375 | tm_file=rs6000/aix41.h |
4376 | if [ x$host != x$target ] | |
4377 | then | |
4378 | tmake_file=rs6000/t-xnewas | |
4379 | else | |
4380 | tmake_file=rs6000/t-newas | |
4381 | fi | |
0a95276e JL |
4382 | xmake_file=rs6000/x-aix41 |
4383 | use_collect2=yes | |
4384 | ;; | |
4385 | rs6000-ibm-aix4.[3456789].* | powerpc-ibm-aix4.[3456789].*) | |
4386 | tm_file=rs6000/aix43.h | |
4387 | if [ x$host != x$target ] | |
4388 | then | |
4389 | tmake_file=rs6000/t-xaix43 | |
4390 | else | |
4391 | tmake_file=rs6000/t-aix43 | |
4392 | fi | |
4393 | xmake_file=rs6000/x-aix43 | |
4394 | use_collect2=yes | |
4395 | ;; | |
4396 | rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*) | |
4397 | tm_file=rs6000/aix43.h | |
4398 | if [ x$host != x$target ] | |
4399 | then | |
4400 | tmake_file=rs6000/t-xaix43 | |
4401 | else | |
4402 | tmake_file=rs6000/t-aix43 | |
4403 | fi | |
4404 | xmake_file=rs6000/x-aix43 | |
861bb6c1 JL |
4405 | use_collect2=yes |
4406 | ;; | |
4407 | rs6000-ibm-aix*) | |
4408 | use_collect2=yes | |
4409 | ;; | |
4410 | rs6000-bull-bosx) | |
4411 | use_collect2=yes | |
4412 | ;; | |
4413 | rs6000-*-mach*) | |
4414 | tm_file=rs6000/mach.h | |
f6cb0e63 | 4415 | xm_file="${xm_file} rs6000/xm-mach.h" |
861bb6c1 JL |
4416 | xmake_file=rs6000/x-mach |
4417 | use_collect2=yes | |
4418 | ;; | |
4419 | rs6000-*-lynxos*) | |
4420 | tm_file=rs6000/lynx.h | |
4421 | xm_file=rs6000/xm-lynx.h | |
4422 | tmake_file=rs6000/t-rs6000 | |
4423 | xmake_file=rs6000/x-lynx | |
4424 | use_collect2=yes | |
4425 | ;; | |
4426 | sh-*-elf*) | |
4427 | tm_file=sh/elf.h | |
4428 | float_format=sh | |
4429 | ;; | |
5d84b57e JS |
4430 | sh-*-rtems*) |
4431 | tmake_file="sh/t-sh t-rtems" | |
4432 | tm_file=sh/rtems.h | |
4433 | float_format=sh | |
4434 | ;; | |
861bb6c1 JL |
4435 | sh-*-*) |
4436 | float_format=sh | |
4437 | ;; | |
4438 | sparc-tti-*) | |
4439 | tm_file=sparc/pbd.h | |
f6cb0e63 JL |
4440 | xm_file="xm-alloca.h ${xm_file}" |
4441 | xm_defines=USG | |
861bb6c1 JL |
4442 | ;; |
4443 | sparc-wrs-vxworks* | sparclite-wrs-vxworks*) | |
4444 | tm_file=sparc/vxsparc.h | |
4445 | tmake_file=sparc/t-vxsparc | |
4446 | use_collect2=yes | |
7cc34889 | 4447 | thread_file='vxworks' |
861bb6c1 JL |
4448 | ;; |
4449 | sparc-*-aout*) | |
4450 | tmake_file=sparc/t-sparcbare | |
4451 | tm_file="sparc/aout.h libgloss.h" | |
4452 | ;; | |
4453 | sparc-*-netbsd*) | |
4454 | tm_file=sparc/netbsd.h | |
be1ed94f | 4455 | # On NetBSD, the headers are already okay, except for math.h. |
32f65aa0 | 4456 | fixincludes=fixinc.wrap |
861bb6c1 JL |
4457 | tmake_file=t-netbsd |
4458 | ;; | |
4459 | sparc-*-bsd*) | |
4460 | tm_file=sparc/bsd.h | |
4461 | ;; | |
ac52b80b DE |
4462 | sparc-*-elf*) |
4463 | tm_file=sparc/elf.h | |
4464 | tmake_file=sparc/t-elf | |
4465 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
4466 | #float_format=i128 | |
4467 | float_format=i64 | |
4468 | ;; | |
956d6950 | 4469 | sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out |
f6cb0e63 | 4470 | xm_file="${xm_file} sparc/xm-linux.h" |
861bb6c1 JL |
4471 | tm_file=sparc/linux-aout.h |
4472 | xmake_file=x-linux | |
4473 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
861bb6c1 JL |
4474 | gnu_ld=yes |
4475 | ;; | |
956d6950 | 4476 | sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5 |
f6cb0e63 | 4477 | xm_file="${xm_file} sparc/xm-linux.h" |
26b551af | 4478 | xmake_file=x-linux |
861bb6c1 | 4479 | tm_file=sparc/linux.h |
3e88bbdb | 4480 | tmake_file="t-linux t-linux-gnulibc1" |
861bb6c1 JL |
4481 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
4482 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
861bb6c1 JL |
4483 | gnu_ld=yes |
4484 | ;; | |
956d6950 | 4485 | sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6 |
f6cb0e63 | 4486 | xm_file="${xm_file} sparc/xm-linux.h" |
26b551af | 4487 | xmake_file=x-linux |
861bb6c1 | 4488 | tm_file=sparc/linux.h |
3e88bbdb | 4489 | tmake_file="t-linux" |
861bb6c1 JL |
4490 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
4491 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
861bb6c1 JL |
4492 | gnu_ld=yes |
4493 | if [ x$enable_threads = xyes ]; then | |
4494 | thread_file='posix' | |
4495 | fi | |
4496 | ;; | |
4497 | sparc-*-lynxos*) | |
4498 | if [ x$gas = xyes ] | |
4499 | then | |
4500 | tm_file=sparc/lynx.h | |
4501 | else | |
4502 | tm_file=sparc/lynx-ng.h | |
4503 | fi | |
4504 | xm_file=sparc/xm-lynx.h | |
4505 | tmake_file=sparc/t-sunos41 | |
4506 | xmake_file=x-lynx | |
4507 | ;; | |
4508 | sparc-*-rtems*) | |
4509 | tmake_file="sparc/t-sparcbare t-rtems" | |
4510 | tm_file=sparc/rtems.h | |
4511 | ;; | |
4512 | sparc-*-solaris2*) | |
0a9bdce3 PE |
4513 | if [ x$gnu_ld = xyes ] |
4514 | then | |
4515 | tm_file=sparc/sol2.h | |
4516 | else | |
4517 | tm_file=sparc/sol2-sld.h | |
4518 | fi | |
0b3d64d2 JL |
4519 | xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h" |
4520 | xm_defines="USG POSIX" | |
861bb6c1 JL |
4521 | tmake_file=sparc/t-sol2 |
4522 | xmake_file=sparc/x-sysv4 | |
4523 | extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o" | |
f6cb0e63 JL |
4524 | case $machine in |
4525 | *-*-solaris2.[0-4]) | |
4526 | fixincludes=fixinc.svr4;; | |
4527 | *) | |
32f65aa0 | 4528 | fixincludes=fixinc.wrap;; |
f6cb0e63 | 4529 | esac |
e9a25f70 | 4530 | float_format=i128 |
f24af81b TT |
4531 | if [ x${enable_threads} = x ]; then |
4532 | enable_threads=$have_pthread_h | |
4533 | if [ x${enable_threads} = x ]; then | |
4534 | enable_threads=$have_thread_h | |
4535 | fi | |
4536 | fi | |
4537 | if [ x${enable_threads} = xyes ]; then | |
4538 | if [ x${have_pthread_h} = xyes ]; then | |
4539 | thread_file='posix' | |
4540 | else | |
861bb6c1 | 4541 | thread_file='solaris' |
f24af81b | 4542 | fi |
861bb6c1 JL |
4543 | fi |
4544 | ;; | |
4545 | sparc-*-sunos4.0*) | |
4546 | tm_file=sparc/sunos4.h | |
4547 | tmake_file=sparc/t-sunos40 | |
4548 | use_collect2=yes | |
4549 | ;; | |
4550 | sparc-*-sunos4*) | |
4551 | tm_file=sparc/sunos4.h | |
4552 | tmake_file=sparc/t-sunos41 | |
4553 | use_collect2=yes | |
ca55abae JM |
4554 | if [ x$gas = xyes ]; then |
4555 | tm_file="${tm_file} sparc/sun4gas.h" | |
4556 | fi | |
861bb6c1 JL |
4557 | ;; |
4558 | sparc-*-sunos3*) | |
4559 | tm_file=sparc/sun4o3.h | |
4560 | use_collect2=yes | |
4561 | ;; | |
4562 | sparc-*-sysv4*) | |
4563 | tm_file=sparc/sysv4.h | |
f6cb0e63 JL |
4564 | xm_file="xm-siglist.h sparc/xm-sysv4.h" |
4565 | xm_defines="USG POSIX" | |
861bb6c1 JL |
4566 | tmake_file=t-svr4 |
4567 | xmake_file=sparc/x-sysv4 | |
4568 | extra_parts="crtbegin.o crtend.o" | |
4569 | ;; | |
4570 | sparc-*-vxsim*) | |
f5963e61 JL |
4571 | xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h" |
4572 | xm_defines="USG POSIX" | |
861bb6c1 JL |
4573 | tm_file=sparc/vxsim.h |
4574 | tmake_file=sparc/t-vxsparc | |
4575 | xmake_file=sparc/x-sysv4 | |
4576 | ;; | |
4577 | sparclet-*-aout*) | |
4578 | tm_file="sparc/splet.h libgloss.h" | |
4579 | tmake_file=sparc/t-splet | |
4580 | ;; | |
4581 | sparclite-*-coff*) | |
4582 | tm_file="sparc/litecoff.h libgloss.h" | |
4583 | tmake_file=sparc/t-sparclite | |
4584 | ;; | |
4585 | sparclite-*-aout*) | |
4586 | tm_file="sparc/lite.h aoutos.h libgloss.h" | |
4587 | tmake_file=sparc/t-sparclite | |
4588 | ;; | |
4589 | sparc64-*-aout*) | |
4590 | tmake_file=sparc/t-sp64 | |
4591 | tm_file=sparc/sp64-aout.h | |
4592 | ;; | |
4593 | sparc64-*-elf*) | |
4594 | tmake_file=sparc/t-sp64 | |
4595 | tm_file=sparc/sp64-elf.h | |
4596 | extra_parts="crtbegin.o crtend.o" | |
4597 | ;; | |
956d6950 | 4598 | sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux |
26b551af DE |
4599 | tmake_file=sparc/t-sp64 |
4600 | xm_file="sparc/xm-sp64.h sparc/xm-linux.h" | |
4601 | tm_file=sparc/linux64.h | |
4602 | xmake_file=x-linux | |
956d6950 | 4603 | fixincludes=Makefile.in # The headers are ok already. |
26b551af DE |
4604 | gnu_ld=yes |
4605 | ;; | |
861bb6c1 JL |
4606 | # This hasn't been upgraded to GCC 2. |
4607 | # tahoe-harris-*) # Harris tahoe, using COFF. | |
4608 | # tm_file=tahoe/harris.h | |
4609 | # ;; | |
4610 | # tahoe-*-bsd*) # tahoe running BSD | |
4611 | # ;; | |
e98e406f NC |
4612 | thumb-*-coff* | thumbel-*-coff*) |
4613 | tm_file=arm/tcoff.h | |
4614 | out_file=arm/thumb.c | |
4615 | xm_file=arm/xm-thumb.h | |
4616 | md_file=arm/thumb.md | |
4617 | tmake_file=arm/t-thumb | |
4618 | ;; | |
861bb6c1 JL |
4619 | # This hasn't been upgraded to GCC 2. |
4620 | # tron-*-*) | |
4621 | # cpu_type=gmicro | |
4622 | # use_collect2=yes | |
4623 | # ;; | |
f84271d9 JL |
4624 | v850-*-*) |
4625 | cpu_type=v850 | |
4626 | tm_file="v850/v850.h" | |
4627 | xm_file="v850/xm-v850.h" | |
62db76ee | 4628 | tmake_file=v850/t-v850 |
f84271d9 JL |
4629 | if [ x$stabs = xyes ] |
4630 | then | |
4631 | tm_file="${tm_file} dbx.h" | |
4632 | fi | |
4633 | use_collect2=no | |
4634 | ;; | |
861bb6c1 JL |
4635 | vax-*-bsd*) # vaxen running BSD |
4636 | use_collect2=yes | |
4637 | float_format=vax | |
4638 | ;; | |
4639 | vax-*-sysv*) # vaxen running system V | |
4640 | tm_file="${tm_file} vax/vaxv.h" | |
f6cb0e63 | 4641 | xm_defines=USG |
861bb6c1 JL |
4642 | float_format=vax |
4643 | ;; | |
4644 | vax-*-netbsd*) | |
4645 | tm_file="${tm_file} netbsd.h vax/netbsd.h" | |
be1ed94f | 4646 | # On NetBSD, the headers are already okay, except for math.h. |
32f65aa0 | 4647 | fixincludes=fixinc.wrap |
861bb6c1 JL |
4648 | tmake_file=t-netbsd |
4649 | float_format=vax | |
4650 | ;; | |
4651 | vax-*-ultrix*) # vaxen running ultrix | |
4652 | tm_file="${tm_file} vax/ultrix.h" | |
4653 | use_collect2=yes | |
4654 | float_format=vax | |
4655 | ;; | |
4656 | vax-*-vms*) # vaxen running VMS | |
4657 | xm_file=vax/xm-vms.h | |
4658 | tm_file=vax/vms.h | |
4659 | float_format=vax | |
4660 | ;; | |
4661 | vax-*-*) # vax default entry | |
4662 | float_format=vax | |
4663 | ;; | |
4664 | we32k-att-sysv*) | |
4665 | xm_file="${xm_file} xm-svr3" | |
4666 | use_collect2=yes | |
4667 | ;; | |
4668 | *) | |
4669 | echo "Configuration $machine not supported" 1>&2 | |
4670 | exit 1 | |
4671 | ;; | |
4672 | esac | |
4673 | ||
4674 | case $machine in | |
4675 | *-*-linux-gnu*) | |
f6cb0e63 | 4676 | ;; # Existing GNU/Linux systems do not use the GNU setup. |
861bb6c1 JL |
4677 | *-*-gnu*) |
4678 | # On the GNU system, the setup is just about the same on | |
4679 | # each different CPU. The specific machines that GNU | |
4680 | # supports are matched above and just set $cpu_type. | |
f6cb0e63 | 4681 | xm_file="xm-gnu.h ${xm_file}" |
861bb6c1 JL |
4682 | tm_file=${cpu_type}/gnu.h |
4683 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" | |
4684 | # GNU always uses ELF. | |
4685 | elf=yes | |
4686 | # GNU tools are the only tools. | |
4687 | gnu_ld=yes | |
4688 | gas=yes | |
4689 | # On GNU, the headers are already okay. | |
4690 | fixincludes=Makefile.in | |
4691 | xmake_file=x-linux # These details are the same as Linux. | |
4692 | tmake_file=t-gnu # These are not. | |
4693 | ;; | |
4694 | *-*-sysv4*) | |
4695 | fixincludes=fixinc.svr4 | |
4696 | xmake_try_sysv=x-sysv | |
861bb6c1 JL |
4697 | install_headers_dir=install-headers-cpio |
4698 | ;; | |
4699 | *-*-sysv*) | |
861bb6c1 JL |
4700 | install_headers_dir=install-headers-cpio |
4701 | ;; | |
4702 | esac | |
4703 | ||
f6cb0e63 | 4704 | # Distinguish i[34567]86 |
861bb6c1 JL |
4705 | # Also, do not run mips-tfile on MIPS if using gas. |
4706 | # Process --with-cpu= for PowerPC/rs6000 | |
4707 | target_cpu_default2= | |
4708 | case $machine in | |
4709 | i486-*-*) | |
4710 | target_cpu_default2=1 | |
4711 | ;; | |
4712 | i586-*-*) | |
4713 | target_cpu_default2=2 | |
4714 | ;; | |
f6cb0e63 | 4715 | i686-*-* | i786-*-*) |
861bb6c1 JL |
4716 | target_cpu_default2=3 |
4717 | ;; | |
4718 | alpha*-*-*) | |
4719 | case $machine in | |
e9a25f70 JL |
4720 | alphaev6*) |
4721 | target_cpu_default2="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX" | |
4722 | ;; | |
4723 | alphapca56*) | |
fbb5ed67 | 4724 | target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX" |
e9a25f70 | 4725 | ;; |
861bb6c1 | 4726 | alphaev56*) |
e9a25f70 | 4727 | target_cpu_default2="MASK_CPU_EV5|MASK_BWX" |
861bb6c1 JL |
4728 | ;; |
4729 | alphaev5*) | |
4730 | target_cpu_default2="MASK_CPU_EV5" | |
4731 | ;; | |
4732 | esac | |
4733 | ||
4734 | if [ x$gas = xyes ] | |
4735 | then | |
c43143f6 | 4736 | if [ "$target_cpu_default2" = "" ] |
861bb6c1 JL |
4737 | then |
4738 | target_cpu_default2="MASK_GAS" | |
4739 | else | |
4740 | target_cpu_default2="${target_cpu_default2}|MASK_GAS" | |
4741 | fi | |
4742 | fi | |
4743 | ;; | |
956d6950 JL |
4744 | arm*-*-*) |
4745 | case "x$with_cpu" in | |
4746 | x) | |
4747 | # The most generic | |
4748 | target_cpu_default2="TARGET_CPU_generic" | |
4749 | ;; | |
4750 | ||
4751 | # Distinguish cores, and major variants | |
4752 | # arm7m doesn't exist, but D & I don't affect code | |
4753 | xarm23678 | xarm250 | xarm67010 \ | |
4754 | | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \ | |
4755 | | xarm7100 | xarm7500 | xarm7500fe | xarm810 \ | |
4756 | | xstrongarm | xstrongarm110) | |
4757 | target_cpu_default2="TARGET_CPU_$with_cpu" | |
4758 | ;; | |
4759 | ||
4760 | xyes | xno) | |
4761 | echo "--with-cpu must be passed a value" 1>&2 | |
4762 | exit 1 | |
4763 | ;; | |
4764 | ||
4765 | *) | |
4766 | if [ x$pass2done = xyes ] | |
4767 | then | |
4768 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
4769 | exit 1 | |
4770 | fi | |
4771 | ;; | |
4772 | esac | |
4773 | ;; | |
4774 | ||
861bb6c1 JL |
4775 | mips*-*-ecoff* | mips*-*-elf*) |
4776 | if [ x$gas = xyes ] | |
4777 | then | |
4778 | if [ x$gnu_ld = xyes ] | |
4779 | then | |
4780 | target_cpu_default2=20 | |
4781 | else | |
4782 | target_cpu_default2=16 | |
4783 | fi | |
4784 | fi | |
4785 | ;; | |
4786 | mips*-*-*) | |
4787 | if [ x$gas = xyes ] | |
4788 | then | |
4789 | target_cpu_default2=16 | |
4790 | fi | |
4791 | ;; | |
4792 | powerpc*-*-* | rs6000-*-*) | |
4793 | case "x$with_cpu" in | |
4794 | x) | |
4795 | ;; | |
4796 | ||
4797 | xcommon | xpower | xpower2 | xpowerpc | xrios \ | |
4798 | | xrios1 | xrios2 | xrsc | xrsc1 \ | |
4799 | | x601 | x602 | x603 | x603e | x604 | x604e | x620 \ | |
4800 | | x403 | x505 | x801 | x821 | x823 | x860) | |
f24b370a | 4801 | target_cpu_default2="\"$with_cpu\"" |
861bb6c1 JL |
4802 | ;; |
4803 | ||
4804 | xyes | xno) | |
4805 | echo "--with-cpu must be passed a value" 1>&2 | |
4806 | exit 1 | |
4807 | ;; | |
4808 | ||
4809 | *) | |
956d6950 JL |
4810 | if [ x$pass2done = xyes ] |
4811 | then | |
4812 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
4813 | exit 1 | |
4814 | fi | |
861bb6c1 JL |
4815 | ;; |
4816 | esac | |
4817 | ;; | |
4818 | sparc*-*-*) | |
4819 | case ".$with_cpu" in | |
4820 | .) | |
4821 | target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`" | |
4822 | ;; | |
ac52b80b | 4823 | .supersparc | .ultrasparc | .v7 | .v8 | .v9) |
861bb6c1 JL |
4824 | target_cpu_default2="TARGET_CPU_$with_cpu" |
4825 | ;; | |
4826 | *) | |
956d6950 JL |
4827 | if [ x$pass2done = xyes ] |
4828 | then | |
4829 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
4830 | exit 1 | |
4831 | fi | |
861bb6c1 JL |
4832 | ;; |
4833 | esac | |
4834 | ;; | |
4835 | esac | |
4836 | ||
c43143f6 | 4837 | if [ "$target_cpu_default2" != "" ] |
861bb6c1 | 4838 | then |
c43143f6 | 4839 | if [ "$target_cpu_default" != "" ] |
861bb6c1 JL |
4840 | then |
4841 | target_cpu_default="(${target_cpu_default}|${target_cpu_default2})" | |
4842 | else | |
4843 | target_cpu_default=$target_cpu_default2 | |
4844 | fi | |
4845 | fi | |
4846 | ||
4847 | # No need for collect2 if we have the GNU linker. | |
d460fb3c JM |
4848 | # Actually, there is now; GNU ld doesn't handle the EH info or |
4849 | # collecting for shared libraries. | |
ca8c3b37 JM |
4850 | #case x$gnu_ld in |
4851 | #xyes) | |
4852 | # use_collect2= | |
4853 | # ;; | |
4854 | #esac | |
861bb6c1 JL |
4855 | |
4856 | # Save data on machine being used to compile GCC in build_xm_file. | |
4857 | # Save data on host machine in vars host_xm_file and host_xmake_file. | |
4858 | if [ x$pass1done = x ] | |
4859 | then | |
4860 | if [ x"$xm_file" = x ] | |
4861 | then build_xm_file=$cpu_type/xm-$cpu_type.h | |
4862 | else build_xm_file=$xm_file | |
4863 | fi | |
f6cb0e63 | 4864 | build_xm_defines=$xm_defines |
861bb6c1 JL |
4865 | build_install_headers_dir=$install_headers_dir |
4866 | build_exeext=$exeext | |
4867 | pass1done=yes | |
4868 | else | |
4869 | if [ x$pass2done = x ] | |
4870 | then | |
4871 | if [ x"$xm_file" = x ] | |
4872 | then host_xm_file=$cpu_type/xm-$cpu_type.h | |
4873 | else host_xm_file=$xm_file | |
4874 | fi | |
f6cb0e63 | 4875 | host_xm_defines=$xm_defines |
861bb6c1 JL |
4876 | if [ x"$xmake_file" = x ] |
4877 | then xmake_file=$cpu_type/x-$cpu_type | |
4878 | fi | |
4879 | host_xmake_file="$xmake_file" | |
4880 | host_truncate_target=$truncate_target | |
4881 | host_extra_gcc_objs=$extra_gcc_objs | |
4882 | host_extra_objs=$extra_host_objs | |
6e26218f | 4883 | host_exeext=$exeext |
861bb6c1 JL |
4884 | pass2done=yes |
4885 | fi | |
4886 | fi | |
4887 | done | |
4888 | ||
4889 | extra_objs="${host_extra_objs} ${extra_objs}" | |
4890 | ||
4891 | # Default the target-machine variables that were not explicitly set. | |
4892 | if [ x"$tm_file" = x ] | |
4893 | then tm_file=$cpu_type/$cpu_type.h; fi | |
4894 | ||
4895 | if [ x$extra_headers = x ] | |
4896 | then extra_headers=; fi | |
4897 | ||
4898 | if [ x"$xm_file" = x ] | |
4899 | then xm_file=$cpu_type/xm-$cpu_type.h; fi | |
4900 | ||
e98e406f NC |
4901 | if [ x$md_file = x ] |
4902 | then md_file=$cpu_type/$cpu_type.md; fi | |
861bb6c1 JL |
4903 | |
4904 | if [ x$out_file = x ] | |
4905 | then out_file=$cpu_type/$cpu_type.c; fi | |
4906 | ||
4907 | if [ x"$tmake_file" = x ] | |
4908 | then tmake_file=$cpu_type/t-$cpu_type | |
4909 | fi | |
4910 | ||
4911 | if [ x$float_format = x ] | |
4912 | then float_format=i64 | |
4913 | fi | |
4914 | ||
128f7968 RH |
4915 | if [ x$enable_haifa = x ] |
4916 | then | |
4917 | case $target in | |
2b7972b0 | 4918 | alpha*-* | hppa1.?-* | powerpc*-* | rs6000-* | *sparc-* | m32r*-*) |
128f7968 RH |
4919 | enable_haifa=yes;; |
4920 | esac | |
4921 | fi | |
4922 | ||
861bb6c1 JL |
4923 | # Say what files are being used for the output code and MD file. |
4924 | echo "Using \`$srcdir/config/$out_file' to output insns." | |
4925 | echo "Using \`$srcdir/config/$md_file' as machine description file." | |
4926 | ||
4927 | count=a | |
4928 | for f in $tm_file; do | |
4929 | count=${count}x | |
4930 | done | |
4931 | if [ $count = ax ]; then | |
4932 | echo "Using \`$srcdir/config/$tm_file' as target machine macro file." | |
4933 | else | |
4934 | echo "Using the following target machine macro files:" | |
4935 | for f in $tm_file; do | |
4936 | echo " $srcdir/config/$f" | |
4937 | done | |
4938 | fi | |
4939 | ||
4940 | count=a | |
4941 | for f in $host_xm_file; do | |
4942 | count=${count}x | |
4943 | done | |
4944 | if [ $count = ax ]; then | |
4945 | echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file." | |
4946 | else | |
4947 | echo "Using the following host machine macro files:" | |
4948 | for f in $host_xm_file; do | |
4949 | echo " $srcdir/config/$f" | |
4950 | done | |
4951 | fi | |
4952 | ||
4953 | if [ "$host_xm_file" != "$build_xm_file" ]; then | |
4954 | count=a | |
4955 | for f in $build_xm_file; do | |
4956 | count=${count}x | |
4957 | done | |
4958 | if [ $count = ax ]; then | |
4959 | echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file." | |
4960 | else | |
4961 | echo "Using the following build machine macro files:" | |
4962 | for f in $build_xm_file; do | |
4963 | echo " $srcdir/config/$f" | |
4964 | done | |
4965 | fi | |
4966 | fi | |
4967 | ||
a851212a JW |
4968 | if [ x$thread_file = x ]; then |
4969 | if [ x$target_thread_file != x ]; then | |
4970 | thread_file=$target_thread_file | |
4971 | else | |
4972 | thread_file='single' | |
4973 | fi | |
861bb6c1 JL |
4974 | fi |
4975 | ||
4976 | # Set up the header files. | |
4977 | # $links is the list of header files to create. | |
4978 | # $vars is the list of shell variables with file names to include. | |
b7cb92ad | 4979 | # auto-host.h is the file containing items generated by autoconf and is |
e9a25f70 | 4980 | # the first file included by config.h. |
f6cb0e63 | 4981 | null_defines= |
b7cb92ad | 4982 | host_xm_file="auto-host.h ${host_xm_file}" |
db81d74a | 4983 | |
b7cb92ad | 4984 | # If host=build, it is correct to have hconfig include auto-host.h |
db81d74a RH |
4985 | # as well. If host!=build, we are in error and need to do more |
4986 | # work to find out the build config parameters. | |
4987 | if [ x$host = x$build ] | |
4988 | then | |
b7cb92ad JL |
4989 | build_xm_file="auto-host.h ${build_xm_file}" |
4990 | else | |
4991 | # We create a subdir, then run autoconf in the subdir. | |
4992 | # To prevent recursion we set host and build for the new | |
4993 | # invocation of configure to the build for this invocation | |
4994 | # of configure. | |
4995 | tempdir=build.$$ | |
4996 | rm -rf $tempdir | |
4997 | mkdir $tempdir | |
4998 | cd $tempdir | |
4999 | case ${srcdir} in | |
5000 | /*) realsrcdir=${srcdir};; | |
5001 | *) realsrcdir=../${srcdir};; | |
5002 | esac | |
fe81dd69 | 5003 | CC=${CC_FOR_BUILD} ${realsrcdir}/configure \ |
b7cb92ad JL |
5004 | --target=$target --host=$build --build=$build |
5005 | ||
5006 | # We just finished tests for the build machine, so rename | |
5007 | # the file auto-build.h in the gcc directory. | |
5008 | mv auto-host.h ../auto-build.h | |
5009 | cd .. | |
5010 | rm -rf $tempdir | |
5011 | build_xm_file="auto-build.h ${build_xm_file}" | |
db81d74a RH |
5012 | fi |
5013 | ||
861bb6c1 | 5014 | vars="host_xm_file tm_file xm_file build_xm_file" |
e9a25f70 | 5015 | links="config.h tm.h tconfig.h hconfig.h" |
f6cb0e63 | 5016 | defines="host_xm_defines null_defines xm_defines build_xm_defines" |
861bb6c1 JL |
5017 | |
5018 | rm -f config.bak | |
5019 | if [ -f config.status ]; then mv -f config.status config.bak; fi | |
5020 | ||
5021 | # Make the links. | |
5022 | while [ -n "$vars" ] | |
5023 | do | |
861bb6c1 JL |
5024 | set $vars; var=$1; shift; vars=$* |
5025 | set $links; link=$1; shift; links=$* | |
f6cb0e63 | 5026 | set $defines; define=$1; shift; defines=$* |
861bb6c1 JL |
5027 | |
5028 | rm -f $link | |
5029 | ||
5030 | # Define TARGET_CPU_DEFAULT if the system wants one. | |
5031 | # This substitutes for lots of *.h files. | |
c43143f6 | 5032 | if [ "$target_cpu_default" != "" -a $link = tm.h ] |
861bb6c1 | 5033 | then |
8fbf199e | 5034 | echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link |
861bb6c1 JL |
5035 | fi |
5036 | ||
5037 | for file in `eval echo '$'$var`; do | |
5038 | echo "#include \"$file\"" >>$link | |
5039 | done | |
f6cb0e63 JL |
5040 | |
5041 | for def in `eval echo '$'$define`; do | |
5042 | echo "#ifndef $def" >>$link | |
5043 | echo "#define $def" >>$link | |
5044 | echo "#endif" >>$link | |
5045 | done | |
861bb6c1 JL |
5046 | done |
5047 | ||
5048 | # Truncate the target if necessary | |
5049 | if [ x$host_truncate_target != x ]; then | |
5050 | target=`echo $target | sed -e 's/\(..............\).*/\1/'` | |
5051 | fi | |
5052 | ||
f1943b77 MH |
5053 | # Get the version trigger filename from the toplevel |
5054 | if [ "${with_gcc_version_trigger+set}" = set ]; then | |
5055 | gcc_version_trigger=$with_gcc_version_trigger | |
5056 | else | |
5057 | gcc_version_trigger=${srcdir}/version.c | |
5058 | fi | |
5059 | gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}` | |
861bb6c1 | 5060 | |
861bb6c1 JL |
5061 | # Get an absolute path to the GCC top-level source directory |
5062 | holddir=`pwd` | |
5063 | cd $srcdir | |
5064 | topdir=`pwd` | |
5065 | cd $holddir | |
5066 | ||
5067 | # Conditionalize the makefile for this host machine. | |
5068 | # Make-host contains the concatenation of all host makefile fragments | |
5069 | # [there can be more than one]. This file is built by configure.frag. | |
5070 | host_overrides=Make-host | |
5071 | dep_host_xmake_file= | |
5072 | for f in .. ${host_xmake_file} | |
5073 | do | |
5074 | if [ -f ${srcdir}/config/$f ] | |
5075 | then | |
5076 | dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f" | |
5077 | fi | |
5078 | done | |
5079 | ||
5080 | # Conditionalize the makefile for this target machine. | |
5081 | # Make-target contains the concatenation of all host makefile fragments | |
5082 | # [there can be more than one]. This file is built by configure.frag. | |
5083 | target_overrides=Make-target | |
5084 | dep_tmake_file= | |
5085 | for f in .. ${tmake_file} | |
5086 | do | |
5087 | if [ -f ${srcdir}/config/$f ] | |
5088 | then | |
5089 | dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f" | |
5090 | fi | |
5091 | done | |
5092 | ||
5093 | # If the host doesn't support symlinks, modify CC in | |
5094 | # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works. | |
5095 | # Otherwise, we can use "CC=$(CC)". | |
5096 | rm -f symtest.tem | |
f6cb0e63 | 5097 | if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null |
861bb6c1 JL |
5098 | then |
5099 | cc_set_by_configure="\$(CC)" | |
5100 | stage_prefix_set_by_configure="\$(STAGE_PREFIX)" | |
5101 | else | |
f6cb0e63 JL |
5102 | rm -f symtest.tem |
5103 | if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null | |
5104 | then | |
5105 | symbolic_link="cp -p" | |
5106 | else | |
5107 | symbolic_link="cp" | |
5108 | fi | |
861bb6c1 JL |
5109 | cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`" |
5110 | stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`" | |
5111 | fi | |
5112 | rm -f symtest.tem | |
5113 | ||
5114 | out_object_file=`basename $out_file .c`.o | |
5115 | ||
5116 | tm_file_list= | |
5117 | for f in $tm_file; do | |
5118 | tm_file_list="${tm_file_list} \$(srcdir)/config/$f" | |
5119 | done | |
5120 | ||
5121 | host_xm_file_list= | |
5122 | for f in $host_xm_file; do | |
b7cb92ad | 5123 | if test $f != "auto-host.h"; then |
db81d74a RH |
5124 | host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" |
5125 | else | |
b7cb92ad | 5126 | host_xm_file_list="${host_xm_file_list} auto-host.h" |
db81d74a | 5127 | fi |
861bb6c1 JL |
5128 | done |
5129 | ||
5130 | build_xm_file_list= | |
5131 | for f in $build_xm_file; do | |
b7cb92ad JL |
5132 | if test $f != "auto-build.h"; then |
5133 | if test $f != "auto-host.h"; then | |
5134 | build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" | |
5135 | else | |
5136 | build_xm_file_list="${build_xm_file_list} auto-host.h" | |
5137 | fi | |
db81d74a | 5138 | else |
b7cb92ad | 5139 | build_xm_file_list="${build_xm_file_list} auto-build.h" |
db81d74a | 5140 | fi |
861bb6c1 JL |
5141 | done |
5142 | ||
5143 | # Define macro CROSS_COMPILE in compilation | |
5144 | # if this is a cross-compiler. | |
5145 | # Also use all.cross instead of all.internal | |
5146 | # and add cross-make to Makefile. | |
5147 | cross_overrides="/dev/null" | |
5148 | if [ x$host != x$target ] | |
5149 | then | |
5150 | cross_defines="CROSS=-DCROSS_COMPILE" | |
5151 | cross_overrides="${topdir}/cross-make" | |
5152 | fi | |
5153 | ||
5154 | # When building gcc with a cross-compiler, we need to fix a few things. | |
5155 | # This must come after cross-make as we want all.build to override | |
5156 | # all.cross. | |
5157 | build_overrides="/dev/null" | |
5158 | if [ x$build != x$host ] | |
5159 | then | |
5160 | build_overrides="${topdir}/build-make" | |
5161 | fi | |
5162 | ||
5163 | # Expand extra_headers to include complete path. | |
5164 | # This substitutes for lots of t-* files. | |
5165 | extra_headers_list= | |
5166 | if [ "x$extra_headers" = x ] | |
5167 | then true | |
5168 | else | |
5169 | # Prepend ${srcdir}/ginclude/ to every entry in extra_headers. | |
5170 | for file in $extra_headers; | |
5171 | do | |
5172 | extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}" | |
5173 | done | |
5174 | fi | |
5175 | ||
5176 | # Add a definition of USE_COLLECT2 if system wants one. | |
5177 | # Also tell toplev.c what to do. | |
5178 | # This substitutes for lots of t-* files. | |
5179 | if [ x$use_collect2 = x ] | |
5180 | then | |
5181 | will_use_collect2= | |
5182 | maybe_use_collect2= | |
5183 | else | |
10da1131 | 5184 | will_use_collect2="collect2" |
861bb6c1 JL |
5185 | maybe_use_collect2="-DUSE_COLLECT2" |
5186 | fi | |
5187 | ||
5188 | # NEED TO CONVERT | |
5189 | # Set MD_DEPS if the real md file is in md.pre-cpp. | |
5190 | # Set MD_CPP to the cpp to pass the md file through. Md files use ';' | |
5191 | # for line oriented comments, so we must always use a GNU cpp. If | |
5192 | # building gcc with a cross compiler, use the cross compiler just | |
5193 | # built. Otherwise, we can use the cpp just built. | |
5194 | md_file_sub= | |
5195 | if [ "x$md_cppflags" = x ] | |
5196 | then | |
5197 | md_file_sub=$srcdir/config/$md_file | |
5198 | else | |
5199 | md_file=md | |
5200 | fi | |
5201 | ||
5202 | # If we have gas in the build tree, make a link to it. | |
5203 | if [ -f ../gas/Makefile ]; then | |
6e26218f | 5204 | rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null |
861bb6c1 JL |
5205 | fi |
5206 | ||
4b95eb49 JL |
5207 | # If we have nm in the build tree, make a link to it. |
5208 | if [ -f ../binutils/Makefile ]; then | |
5209 | rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null | |
5210 | fi | |
5211 | ||
861bb6c1 | 5212 | # If we have ld in the build tree, make a link to it. |
992d1248 DE |
5213 | if [ -f ../ld/Makefile ]; then |
5214 | # if [[ x$use_collect2 = x ]]; then | |
6e26218f | 5215 | # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null |
aa32d841 | 5216 | # else |
6e26218f | 5217 | rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null |
aa32d841 | 5218 | # fi |
992d1248 | 5219 | fi |
861bb6c1 | 5220 | |
9e423e6d JW |
5221 | # Figure out what assembler alignment features are present. |
5222 | echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6 | |
092f7be3 | 5223 | echo "configure:5224: checking assembler alignment features" >&5 |
9e423e6d JW |
5224 | gcc_cv_as= |
5225 | gcc_cv_as_alignment_features= | |
5226 | if [ -x as$host_exeext ]; then | |
5227 | # Build using assembler in the current directory. | |
5228 | gcc_cv_as=./as$host_exeext | |
5229 | elif [ -f $srcdir/../gas/configure.in ]; then | |
5230 | # Single tree build which includes gas. | |
5231 | for f in $srcdir/../gas/configure.in $srcdir/../gas/Makefile.in | |
5232 | do | |
5233 | gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f` | |
5234 | if [ x$gcc_cv_gas_version != x ]; then | |
5235 | break | |
5236 | fi | |
5237 | done | |
5238 | gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"` | |
5239 | gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"` | |
5240 | # Gas version 2.8 and later support specifying the maximum | |
5241 | # bytes to skip when using .p2align. | |
5242 | if [ "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 8 -o "$gcc_cv_gas_major_version" -gt 2 ]; then | |
5243 | gcc_cv_as_alignment_features=".p2align including maximum skip" | |
5244 | cat >> confdefs.h <<\EOF | |
5245 | #define HAVE_GAS_MAX_SKIP_P2ALIGN 1 | |
5246 | EOF | |
5247 | ||
5248 | fi | |
5249 | elif [ x$host = x$target ]; then | |
5250 | # Native build. | |
5251 | gcc_cv_as=as$host_exeext | |
5252 | fi | |
5253 | if [ x$gcc_cv_as != x ]; then | |
5254 | # Check if specifying the maximum bytes to skip when | |
5255 | # using .p2align is supported. | |
5256 | echo ".p2align 4,,7" > conftest.s | |
5257 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
5258 | gcc_cv_as_alignment_features=".p2align including maximum skip" | |
5259 | cat >> confdefs.h <<\EOF | |
5260 | #define HAVE_GAS_MAX_SKIP_P2ALIGN 1 | |
5261 | EOF | |
5262 | ||
5263 | fi | |
5264 | rm -f conftest.s conftest.o | |
5265 | fi | |
5266 | echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6 | |
5267 | ||
861bb6c1 JL |
5268 | # Figure out what language subdirectories are present. |
5269 | subdirs= | |
5270 | for lang in ${srcdir}/*/config-lang.in .. | |
5271 | do | |
5272 | case $lang in | |
5273 | ..) ;; | |
5274 | # The odd quoting in the next line works around | |
5275 | # an apparent bug in bash 1.12 on linux. | |
5276 | ${srcdir}/[*]/config-lang.in) ;; | |
5277 | *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;; | |
5278 | esac | |
5279 | done | |
5280 | ||
f24af81b TT |
5281 | # Make gthr-default.h if we have a thread file. |
5282 | gthread_flags= | |
5283 | if [ $thread_file != single ]; then | |
5284 | rm -f gthr-default.h | |
db0d1ed9 | 5285 | echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h |
f24af81b TT |
5286 | gthread_flags=-DHAVE_GTHR_DEFAULT |
5287 | fi | |
5288 | ||
5289 | ||
861bb6c1 JL |
5290 | # Make empty files to contain the specs and options for each language. |
5291 | # Then add #include lines to for a compiler that has specs and/or options. | |
5292 | ||
5293 | lang_specs_files= | |
5294 | lang_options_files= | |
5295 | rm -f specs.h options.h | |
5296 | touch specs.h options.h | |
5297 | for subdir in . $subdirs | |
5298 | do | |
5299 | if [ -f $srcdir/$subdir/lang-specs.h ]; then | |
5300 | echo "#include \"$subdir/lang-specs.h\"" >>specs.h | |
5301 | lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h" | |
5302 | fi | |
5303 | if [ -f $srcdir/$subdir/lang-options.h ]; then | |
5304 | echo "#include \"$subdir/lang-options.h\"" >>options.h | |
5305 | lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h" | |
5306 | fi | |
5307 | done | |
5308 | ||
5309 | # These (without "all_") are set in each config-lang.in. | |
5310 | # `language' must be a single word so is spelled singularly. | |
5311 | all_languages= | |
5312 | all_boot_languages= | |
5313 | all_compilers= | |
5314 | all_stagestuff= | |
5315 | all_diff_excludes= | |
5316 | all_outputs=Makefile | |
5317 | # List of language makefile fragments. | |
5318 | all_lang_makefiles= | |
5319 | all_headers= | |
5320 | all_lib2funcs= | |
5321 | ||
5322 | # Add the language fragments. | |
5323 | # Languages are added via two mechanisms. Some information must be | |
5324 | # recorded in makefile variables, these are defined in config-lang.in. | |
5325 | # We accumulate them and plug them into the main Makefile. | |
5326 | # The other mechanism is a set of hooks for each of the main targets | |
5327 | # like `clean', `install', etc. | |
5328 | ||
5329 | language_fragments="Make-lang" | |
5330 | language_hooks="Make-hooks" | |
5331 | oldstyle_subdirs= | |
5332 | ||
5333 | for s in .. $subdirs | |
5334 | do | |
5335 | if [ $s != ".." ] | |
5336 | then | |
5337 | language= | |
5338 | boot_language= | |
5339 | compilers= | |
5340 | stagestuff= | |
5341 | diff_excludes= | |
5342 | headers= | |
5343 | outputs= | |
5344 | lib2funcs= | |
5345 | . ${srcdir}/$s/config-lang.in | |
5346 | if [ "x$language" = x ] | |
5347 | then | |
5348 | echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2 | |
5349 | exit 1 | |
5350 | fi | |
5351 | all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in" | |
5352 | all_languages="$all_languages $language" | |
5353 | if [ "x$boot_language" = xyes ] | |
5354 | then | |
5355 | all_boot_languages="$all_boot_languages $language" | |
5356 | fi | |
5357 | all_compilers="$all_compilers $compilers" | |
5358 | all_stagestuff="$all_stagestuff $stagestuff" | |
5359 | all_diff_excludes="$all_diff_excludes $diff_excludes" | |
5360 | all_headers="$all_headers $headers" | |
5361 | all_outputs="$all_outputs $outputs" | |
5362 | if [ x$outputs = x ] | |
5363 | then | |
5364 | oldstyle_subdirs="$oldstyle_subdirs $s" | |
5365 | fi | |
5366 | all_lib2funcs="$all_lib2funcs $lib2funcs" | |
5367 | fi | |
5368 | done | |
5369 | ||
5370 | # Since we can't use `::' targets, we link each language in | |
5371 | # with a set of hooks, reached indirectly via lang.${target}. | |
5372 | ||
5373 | rm -f Make-hooks | |
5374 | touch Make-hooks | |
5375 | target_list="all.build all.cross start.encap rest.encap \ | |
5376 | info dvi \ | |
5377 | install-normal install-common install-info install-man \ | |
5378 | uninstall distdir \ | |
5379 | mostlyclean clean distclean extraclean maintainer-clean \ | |
5380 | stage1 stage2 stage3 stage4" | |
5381 | for t in $target_list | |
5382 | do | |
5383 | x= | |
5384 | for l in .. $all_languages | |
5385 | do | |
5386 | if [ $l != ".." ]; then | |
5387 | x="$x $l.$t" | |
5388 | fi | |
5389 | done | |
5390 | echo "lang.$t: $x" >> Make-hooks | |
5391 | done | |
5392 | ||
5393 | # If we're not building in srcdir, create .gdbinit. | |
5394 | ||
5395 | if [ ! -f Makefile.in ]; then | |
5396 | echo "dir ." > .gdbinit | |
5397 | echo "dir ${srcdir}" >> .gdbinit | |
5398 | if [ x$gdb_needs_out_file_path = xyes ] | |
5399 | then | |
5400 | echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit | |
5401 | fi | |
5402 | if [ "x$subdirs" != x ]; then | |
5403 | for s in $subdirs | |
5404 | do | |
5405 | echo "dir ${srcdir}/$s" >> .gdbinit | |
5406 | done | |
5407 | fi | |
5408 | echo "source ${srcdir}/.gdbinit" >> .gdbinit | |
5409 | fi | |
5410 | ||
88111b26 JL |
5411 | # Define variables host_canonical and build_canonical |
5412 | # because some Cygnus local changes in the Makefile depend on them. | |
5413 | build_canonical=${build} | |
5414 | host_canonical=${host} | |
5415 | target_subdir= | |
5416 | if [ "${host}" != "${target}" ] ; then | |
5417 | target_subdir=${target}/ | |
5418 | fi | |
5419 | ||
5420 | ||
5421 | ||
5422 | ||
dec88383 DE |
5423 | # If this is using newlib, then define inhibit_libc in |
5424 | # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of | |
5425 | # libgcc.a, but that's OK because newib should have its own version of | |
5426 | # assert.h. | |
5427 | inhibit_libc= | |
5428 | if [ x$with_newlib = xyes ]; then | |
5429 | inhibit_libc=-Dinhibit_libc | |
5430 | fi | |
5431 | ||
5432 | ||
8c660648 JL |
5433 | # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler. |
5434 | sched_prefix= | |
5435 | sched_cflags= | |
992d1248 | 5436 | if [ x$enable_haifa = xyes ]; then |
8c660648 JL |
5437 | echo "Using the Haifa scheduler." |
5438 | sched_prefix=haifa- | |
5439 | sched_cflags=-DHAIFA | |
5440 | fi | |
5441 | ||
5442 | ||
992d1248 | 5443 | if [ x$enable_haifa != x ]; then |
8c660648 JL |
5444 | # Explicitly remove files that need to be recompiled for the Haifa scheduler. |
5445 | for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do | |
5446 | if [ -f $x ]; then | |
5447 | echo "Removing $x" | |
5448 | rm -f $x | |
5449 | fi | |
5450 | done | |
5451 | fi | |
5452 | ||
7e717196 JL |
5453 | # Nothing to do for FLOAT_H, float_format already handled. |
5454 | objdir=`pwd` | |
5455 | ||
5456 | ||
861bb6c1 JL |
5457 | # Process the language and host/target makefile fragments. |
5458 | ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file" | |
5459 | ||
5460 | # Substitute configuration variables | |
5461 | ||
5462 | ||
5463 | ||
5464 | ||
5465 | ||
5466 | ||
5467 | ||
5468 | ||
5469 | ||
5470 | ||
5471 | ||
5472 | ||
5473 | ||
5474 | ||
5475 | ||
5476 | ||
5477 | ||
5478 | ||
5479 | ||
5480 | ||
5481 | ||
5482 | ||
5483 | ||
5484 | ||
5485 | ||
5486 | ||
5487 | ||
5488 | ||
5489 | ||
5490 | ||
5491 | ||
5492 | ||
5493 | ||
5494 | ||
5495 | ||
5496 | ||
5497 | ||
5498 | ||
5499 | ||
5500 | ||
5501 | ||
5502 | ||
5503 | ||
5504 | ||
5505 | ||
5506 | ||
9b16d2c4 | 5507 | |
e9a25f70 | 5508 | |
6e26218f | 5509 | |
c8724862 | 5510 | |
e061d1ce | 5511 | |
f1943b77 | 5512 | |
861bb6c1 JL |
5513 | |
5514 | ||
5515 | # Echo that links are built | |
5516 | if [ x$host = x$target ] | |
5517 | then | |
5518 | str1="native " | |
5519 | else | |
5520 | str1="cross-" | |
5521 | str2=" from $host" | |
5522 | fi | |
5523 | ||
5524 | if [ x$host != x$build ] | |
5525 | then | |
5526 | str3=" on a $build system" | |
5527 | fi | |
5528 | ||
5529 | if [ "x$str2" != x ] || [ "x$str3" != x ] | |
5530 | then | |
5531 | str4= | |
5532 | fi | |
5533 | ||
5534 | echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2 | |
5535 | ||
5536 | if [ "x$str2" != x ] || [ "x$str3" != x ] | |
5537 | then | |
5538 | echo " ${str2}${str3}." 1>&2 | |
5539 | fi | |
5540 | ||
f6cb0e63 JL |
5541 | # Truncate the target if necessary |
5542 | if [ x$host_truncate_target != x ]; then | |
5543 | target=`echo $target | sed -e 's/\(..............\).*/\1/'` | |
5544 | fi | |
5545 | ||
861bb6c1 JL |
5546 | # Configure the subdirectories |
5547 | # AC_CONFIG_SUBDIRS($subdirs) | |
5548 | ||
5549 | # Create the Makefile | |
5550 | # and configure language subdirectories | |
5551 | trap '' 1 2 15 | |
5552 | cat > confcache <<\EOF | |
5553 | # This file is a shell script that caches the results of configure | |
5554 | # tests run on this system so they can be shared between configure | |
5555 | # scripts and configure runs. It is not useful on other systems. | |
5556 | # If it contains results you don't want to keep, you may remove or edit it. | |
5557 | # | |
5558 | # By default, configure uses ./config.cache as the cache file, | |
5559 | # creating it if it does not exist already. You can give configure | |
5560 | # the --cache-file=FILE option to use a different cache file; that is | |
5561 | # what configure does when it calls configure scripts in | |
5562 | # subdirectories, so they share the cache. | |
5563 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
5564 | # config.status only pays attention to the cache file if you give it the | |
5565 | # --recheck option to rerun configure. | |
5566 | # | |
5567 | EOF | |
5568 | # The following way of writing the cache mishandles newlines in values, | |
5569 | # but we know of no workaround that is simple, portable, and efficient. | |
5570 | # So, don't put newlines in cache variables' values. | |
5571 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
5572 | # and sets the high bit in the cache file unless we assign to the vars. | |
5573 | (set) 2>&1 | | |
092f7be3 | 5574 | case `(ac_space=' '; set) 2>&1 | grep ac_space` in |
861bb6c1 JL |
5575 | *ac_space=\ *) |
5576 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
5577 | # turns \\\\ into \\, and sed turns \\ into \). | |
5578 | sed -n \ | |
5579 | -e "s/'/'\\\\''/g" \ | |
5580 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
5581 | ;; | |
5582 | *) | |
5583 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5584 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
5585 | ;; | |
5586 | esac >> confcache | |
5587 | if cmp -s $cache_file confcache; then | |
5588 | : | |
5589 | else | |
5590 | if test -w $cache_file; then | |
5591 | echo "updating cache $cache_file" | |
5592 | cat confcache > $cache_file | |
5593 | else | |
5594 | echo "not updating unwritable cache $cache_file" | |
5595 | fi | |
5596 | fi | |
5597 | rm -f confcache | |
5598 | ||
5599 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
5600 | ||
5601 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
5602 | # Let make expand exec_prefix. | |
5603 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
5604 | ||
5605 | # Any assignment to VPATH causes Sun make to only execute | |
5606 | # the first set of double-colon rules, so remove it if not needed. | |
5607 | # If there is a colon in the path, we need to keep it. | |
5608 | if test "x$srcdir" = x.; then | |
5609 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
5610 | fi | |
5611 | ||
5612 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
5613 | ||
5614 | DEFS=-DHAVE_CONFIG_H | |
5615 | ||
5616 | # Without the "./", some shells look in PATH for config.status. | |
5617 | : ${CONFIG_STATUS=./config.status} | |
5618 | ||
5619 | echo creating $CONFIG_STATUS | |
5620 | rm -f $CONFIG_STATUS | |
5621 | cat > $CONFIG_STATUS <<EOF | |
5622 | #! /bin/sh | |
5623 | # Generated automatically by configure. | |
5624 | # Run this file to recreate the current configuration. | |
5625 | # This directory was configured as follows, | |
5626 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
5627 | # | |
5628 | # $0 $ac_configure_args | |
5629 | # | |
5630 | # Compiler output produced by configure, useful for debugging | |
5631 | # configure, is in ./config.log if it exists. | |
5632 | ||
5633 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
5634 | for ac_option | |
5635 | do | |
5636 | case "\$ac_option" in | |
5637 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
5638 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
5639 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
5640 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
092f7be3 | 5641 | echo "$CONFIG_STATUS generated by autoconf version 2.12.1" |
861bb6c1 JL |
5642 | exit 0 ;; |
5643 | -help | --help | --hel | --he | --h) | |
5644 | echo "\$ac_cs_usage"; exit 0 ;; | |
5645 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
5646 | esac | |
5647 | done | |
5648 | ||
5649 | ac_given_srcdir=$srcdir | |
861bb6c1 | 5650 | |
b7cb92ad | 5651 | trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
861bb6c1 JL |
5652 | EOF |
5653 | cat >> $CONFIG_STATUS <<EOF | |
5654 | ||
5655 | # Protect against being on the right side of a sed subst in config.status. | |
5656 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
5657 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
5658 | $ac_vpsub | |
5659 | $extrasub | |
092f7be3 | 5660 | s%@SHELL@%$SHELL%g |
861bb6c1 JL |
5661 | s%@CFLAGS@%$CFLAGS%g |
5662 | s%@CPPFLAGS@%$CPPFLAGS%g | |
5663 | s%@CXXFLAGS@%$CXXFLAGS%g | |
5664 | s%@DEFS@%$DEFS%g | |
5665 | s%@LDFLAGS@%$LDFLAGS%g | |
5666 | s%@LIBS@%$LIBS%g | |
5667 | s%@exec_prefix@%$exec_prefix%g | |
5668 | s%@prefix@%$prefix%g | |
5669 | s%@program_transform_name@%$program_transform_name%g | |
5670 | s%@bindir@%$bindir%g | |
5671 | s%@sbindir@%$sbindir%g | |
5672 | s%@libexecdir@%$libexecdir%g | |
5673 | s%@datadir@%$datadir%g | |
5674 | s%@sysconfdir@%$sysconfdir%g | |
5675 | s%@sharedstatedir@%$sharedstatedir%g | |
5676 | s%@localstatedir@%$localstatedir%g | |
5677 | s%@libdir@%$libdir%g | |
5678 | s%@includedir@%$includedir%g | |
5679 | s%@oldincludedir@%$oldincludedir%g | |
5680 | s%@infodir@%$infodir%g | |
5681 | s%@mandir@%$mandir%g | |
5682 | s%@host@%$host%g | |
5683 | s%@host_alias@%$host_alias%g | |
5684 | s%@host_cpu@%$host_cpu%g | |
5685 | s%@host_vendor@%$host_vendor%g | |
5686 | s%@host_os@%$host_os%g | |
5687 | s%@target@%$target%g | |
5688 | s%@target_alias@%$target_alias%g | |
5689 | s%@target_cpu@%$target_cpu%g | |
5690 | s%@target_vendor@%$target_vendor%g | |
5691 | s%@target_os@%$target_os%g | |
5692 | s%@build@%$build%g | |
5693 | s%@build_alias@%$build_alias%g | |
5694 | s%@build_cpu@%$build_cpu%g | |
5695 | s%@build_vendor@%$build_vendor%g | |
5696 | s%@build_os@%$build_os%g | |
e9a25f70 JL |
5697 | s%@CC@%$CC%g |
5698 | s%@SET_MAKE@%$SET_MAKE%g | |
861bb6c1 JL |
5699 | s%@AWK@%$AWK%g |
5700 | s%@LEX@%$LEX%g | |
5701 | s%@LEXLIB@%$LEXLIB%g | |
ac64120e | 5702 | s%@LN@%$LN%g |
861bb6c1 JL |
5703 | s%@LN_S@%$LN_S%g |
5704 | s%@RANLIB@%$RANLIB%g | |
5705 | s%@YACC@%$YACC%g | |
5643c767 | 5706 | s%@INSTALL@%$INSTALL%g |
861bb6c1 JL |
5707 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
5708 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
861bb6c1 | 5709 | s%@CPP@%$CPP%g |
76b4b31e KG |
5710 | s%@vfprintf@%$vfprintf%g |
5711 | s%@doprint@%$doprint%g | |
861bb6c1 | 5712 | s%@manext@%$manext%g |
992d1248 | 5713 | s%@objext@%$objext%g |
f24af81b | 5714 | s%@gthread_flags@%$gthread_flags%g |
88111b26 JL |
5715 | s%@build_canonical@%$build_canonical%g |
5716 | s%@host_canonical@%$host_canonical%g | |
5717 | s%@target_subdir@%$target_subdir%g | |
dec88383 | 5718 | s%@inhibit_libc@%$inhibit_libc%g |
8c660648 JL |
5719 | s%@sched_prefix@%$sched_prefix%g |
5720 | s%@sched_cflags@%$sched_cflags%g | |
7e717196 | 5721 | s%@objdir@%$objdir%g |
861bb6c1 JL |
5722 | s%@subdirs@%$subdirs%g |
5723 | s%@all_languages@%$all_languages%g | |
5724 | s%@all_boot_languages@%$all_boot_languages%g | |
5725 | s%@all_compilers@%$all_compilers%g | |
5726 | s%@all_lang_makefiles@%$all_lang_makefiles%g | |
5727 | s%@all_stagestuff@%$all_stagestuff%g | |
5728 | s%@all_diff_excludes@%$all_diff_excludes%g | |
5729 | s%@all_lib2funcs@%$all_lib2funcs%g | |
5730 | s%@all_headers@%$all_headers%g | |
e061d1ce | 5731 | s%@cpp_main@%$cpp_main%g |
861bb6c1 JL |
5732 | s%@extra_passes@%$extra_passes%g |
5733 | s%@extra_programs@%$extra_programs%g | |
5734 | s%@extra_parts@%$extra_parts%g | |
5735 | s%@extra_c_objs@%$extra_c_objs%g | |
c8724862 | 5736 | s%@extra_cxx_objs@%$extra_cxx_objs%g |
861bb6c1 JL |
5737 | s%@extra_c_flags@%$extra_c_flags%g |
5738 | s%@extra_objs@%$extra_objs%g | |
5739 | s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g | |
5740 | s%@extra_headers_list@%$extra_headers_list%g | |
5741 | s%@dep_host_xmake_file@%$dep_host_xmake_file%g | |
5742 | s%@dep_tmake_file@%$dep_tmake_file%g | |
5743 | s%@out_file@%$out_file%g | |
5744 | s%@out_object_file@%$out_object_file%g | |
5745 | s%@md_file@%$md_file%g | |
5746 | s%@tm_file_list@%$tm_file_list%g | |
5747 | s%@build_xm_file_list@%$build_xm_file_list%g | |
5748 | s%@host_xm_file_list@%$host_xm_file_list%g | |
5749 | s%@lang_specs_files@%$lang_specs_files%g | |
5750 | s%@lang_options_files@%$lang_options_files%g | |
5751 | s%@thread_file@%$thread_file%g | |
f1943b77 MH |
5752 | s%@gcc_version@%$gcc_version%g |
5753 | s%@gcc_version_trigger@%$gcc_version_trigger%g | |
861bb6c1 JL |
5754 | s%@local_prefix@%$local_prefix%g |
5755 | s%@gxx_include_dir@%$gxx_include_dir%g | |
5756 | s%@fixincludes@%$fixincludes%g | |
5757 | s%@build_install_headers_dir@%$build_install_headers_dir%g | |
5758 | s%@build_exeext@%$build_exeext%g | |
6e26218f | 5759 | s%@host_exeext@%$host_exeext%g |
861bb6c1 JL |
5760 | s%@float_format@%$float_format%g |
5761 | s%@will_use_collect2@%$will_use_collect2%g | |
5762 | s%@maybe_use_collect2@%$maybe_use_collect2%g | |
5763 | s%@cc_set_by_configure@%$cc_set_by_configure%g | |
5764 | s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g | |
9b16d2c4 | 5765 | s%@install@%$install%g |
e9a25f70 | 5766 | s%@symbolic_link@%$symbolic_link%g |
861bb6c1 JL |
5767 | /@target_overrides@/r $target_overrides |
5768 | s%@target_overrides@%%g | |
5769 | /@host_overrides@/r $host_overrides | |
5770 | s%@host_overrides@%%g | |
5771 | s%@cross_defines@%$cross_defines%g | |
5772 | /@cross_overrides@/r $cross_overrides | |
5773 | s%@cross_overrides@%%g | |
5774 | /@build_overrides@/r $build_overrides | |
5775 | s%@build_overrides@%%g | |
5776 | /@language_fragments@/r $language_fragments | |
5777 | s%@language_fragments@%%g | |
5778 | /@language_hooks@/r $language_hooks | |
5779 | s%@language_hooks@%%g | |
5780 | ||
5781 | CEOF | |
5782 | EOF | |
5783 | ||
5784 | cat >> $CONFIG_STATUS <<\EOF | |
5785 | ||
5786 | # Split the substitutions into bite-sized pieces for seds with | |
5787 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
5788 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
5789 | ac_file=1 # Number of current file. | |
5790 | ac_beg=1 # First line for current file. | |
5791 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
5792 | ac_more_lines=: | |
5793 | ac_sed_cmds="" | |
5794 | while $ac_more_lines; do | |
5795 | if test $ac_beg -gt 1; then | |
5796 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
5797 | else | |
5798 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
5799 | fi | |
5800 | if test ! -s conftest.s$ac_file; then | |
5801 | ac_more_lines=false | |
5802 | rm -f conftest.s$ac_file | |
5803 | else | |
5804 | if test -z "$ac_sed_cmds"; then | |
5805 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
5806 | else | |
5807 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
5808 | fi | |
5809 | ac_file=`expr $ac_file + 1` | |
5810 | ac_beg=$ac_end | |
5811 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
5812 | fi | |
5813 | done | |
5814 | if test -z "$ac_sed_cmds"; then | |
5815 | ac_sed_cmds=cat | |
5816 | fi | |
5817 | EOF | |
5818 | ||
5819 | cat >> $CONFIG_STATUS <<EOF | |
5820 | ||
5821 | CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"} | |
5822 | EOF | |
5823 | cat >> $CONFIG_STATUS <<\EOF | |
5824 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
5825 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
5826 | case "$ac_file" in | |
5827 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
5828 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
5829 | *) ac_file_in="${ac_file}.in" ;; | |
5830 | esac | |
5831 | ||
5832 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
5833 | ||
5834 | # Remove last slash and all that follows it. Not all systems have dirname. | |
5835 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
5836 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
5837 | # The file is in a subdirectory. | |
5838 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
5839 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
5840 | # A "../" for each directory in $ac_dir_suffix. | |
5841 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
5842 | else | |
5843 | ac_dir_suffix= ac_dots= | |
5844 | fi | |
5845 | ||
5846 | case "$ac_given_srcdir" in | |
5847 | .) srcdir=. | |
5848 | if test -z "$ac_dots"; then top_srcdir=. | |
5849 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
5850 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
5851 | *) # Relative path. | |
5852 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
5853 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
5854 | esac | |
5855 | ||
861bb6c1 JL |
5856 | |
5857 | echo creating "$ac_file" | |
5858 | rm -f "$ac_file" | |
5859 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
5860 | case "$ac_file" in | |
5861 | *Makefile*) ac_comsub="1i\\ | |
5862 | # $configure_input" ;; | |
5863 | *) ac_comsub= ;; | |
5864 | esac | |
5865 | ||
5866 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
5867 | sed -e "$ac_comsub | |
5868 | s%@configure_input@%$configure_input%g | |
5869 | s%@srcdir@%$srcdir%g | |
5870 | s%@top_srcdir@%$top_srcdir%g | |
861bb6c1 JL |
5871 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
5872 | fi; done | |
5873 | rm -f conftest.s* | |
5874 | ||
5875 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
5876 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
5877 | # | |
5878 | # ac_d sets the value in "#define NAME VALUE" lines. | |
5879 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
5880 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
5881 | ac_dC='\3' | |
5882 | ac_dD='%g' | |
5883 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
5884 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
5885 | ac_uB='\([ ]\)%\1#\2define\3' | |
5886 | ac_uC=' ' | |
5887 | ac_uD='\4%g' | |
5888 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
5889 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
5890 | ac_eB='$%\1#\2define\3' | |
5891 | ac_eC=' ' | |
5892 | ac_eD='%g' | |
5893 | ||
5894 | if test "${CONFIG_HEADERS+set}" != set; then | |
5895 | EOF | |
5896 | cat >> $CONFIG_STATUS <<EOF | |
b7cb92ad | 5897 | CONFIG_HEADERS="auto-host.h:config.in" |
861bb6c1 JL |
5898 | EOF |
5899 | cat >> $CONFIG_STATUS <<\EOF | |
5900 | fi | |
5901 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
5902 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
5903 | case "$ac_file" in | |
5904 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
5905 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
5906 | *) ac_file_in="${ac_file}.in" ;; | |
5907 | esac | |
5908 | ||
5909 | echo creating $ac_file | |
5910 | ||
5911 | rm -f conftest.frag conftest.in conftest.out | |
5912 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
5913 | cat $ac_file_inputs > conftest.in | |
5914 | ||
5915 | EOF | |
5916 | ||
5917 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
5918 | # the proper values into config.h.in to produce config.h. And first: | |
5919 | # Protect against being on the right side of a sed subst in config.status. | |
5920 | # Protect against being in an unquoted here document in config.status. | |
5921 | rm -f conftest.vals | |
5922 | cat > conftest.hdr <<\EOF | |
5923 | s/[\\&%]/\\&/g | |
5924 | s%[\\$`]%\\&%g | |
5925 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
5926 | s%ac_d%ac_u%gp | |
5927 | s%ac_u%ac_e%gp | |
5928 | EOF | |
5929 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
5930 | rm -f conftest.hdr | |
5931 | ||
5932 | # This sed command replaces #undef with comments. This is necessary, for | |
5933 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
5934 | # on some systems where configure will not decide to define it. | |
5935 | cat >> conftest.vals <<\EOF | |
5936 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
5937 | EOF | |
5938 | ||
5939 | # Break up conftest.vals because some shells have a limit on | |
5940 | # the size of here documents, and old seds have small limits too. | |
5941 | ||
5942 | rm -f conftest.tail | |
5943 | while : | |
5944 | do | |
5945 | ac_lines=`grep -c . conftest.vals` | |
5946 | # grep -c gives empty output for an empty file on some AIX systems. | |
5947 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
5948 | # Write a limited-size here document to conftest.frag. | |
5949 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
5950 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
5951 | echo 'CEOF | |
5952 | sed -f conftest.frag conftest.in > conftest.out | |
5953 | rm -f conftest.in | |
5954 | mv conftest.out conftest.in | |
5955 | ' >> $CONFIG_STATUS | |
5956 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
5957 | rm -f conftest.vals | |
5958 | mv conftest.tail conftest.vals | |
5959 | done | |
5960 | rm -f conftest.vals | |
5961 | ||
5962 | cat >> $CONFIG_STATUS <<\EOF | |
5963 | rm -f conftest.frag conftest.h | |
5964 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
5965 | cat conftest.in >> conftest.h | |
5966 | rm -f conftest.in | |
5967 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
5968 | echo "$ac_file is unchanged" | |
5969 | rm -f conftest.h | |
5970 | else | |
5971 | # Remove last slash and all that follows it. Not all systems have dirname. | |
5972 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
5973 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
5974 | # The file is in a subdirectory. | |
5975 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
5976 | fi | |
5977 | rm -f $ac_file | |
5978 | mv conftest.h $ac_file | |
5979 | fi | |
5980 | fi; done | |
5981 | ||
5982 | EOF | |
5983 | cat >> $CONFIG_STATUS <<EOF | |
5984 | ||
5985 | host='${host}' | |
5986 | build='${build}' | |
5987 | target='${target}' | |
5988 | target_alias='${target_alias}' | |
5989 | srcdir='${srcdir}' | |
5990 | subdirs='${subdirs}' | |
5991 | oldstyle_subdirs='${oldstyle_subdirs}' | |
5992 | symbolic_link='${symbolic_link}' | |
5993 | program_transform_set='${program_transform_set}' | |
5994 | program_transform_name='${program_transform_name}' | |
5995 | dep_host_xmake_file='${dep_host_xmake_file}' | |
5996 | host_xmake_file='${host_xmake_file}' | |
5997 | dep_tmake_file='${dep_tmake_file}' | |
5998 | tmake_file='${tmake_file}' | |
5999 | thread_file='${thread_file}' | |
f1943b77 MH |
6000 | gcc_version='${gcc_version}' |
6001 | gcc_version_trigger='${gcc_version_trigger}' | |
861bb6c1 JL |
6002 | local_prefix='${local_prefix}' |
6003 | build_install_headers_dir='${build_install_headers_dir}' | |
6004 | build_exeext='${build_exeext}' | |
6e26218f | 6005 | host_exeext='${host_exeext}' |
7ed46111 | 6006 | out_file='${out_file}' |
861bb6c1 JL |
6007 | gdb_needs_out_file_path='${gdb_needs_out_file_path}' |
6008 | SET_MAKE='${SET_MAKE}' | |
861bb6c1 JL |
6009 | target_list='${target_list}' |
6010 | target_overrides='${target_overrides}' | |
6011 | host_overrides='${host_overrides}' | |
6012 | cross_defines='${cross_defines}' | |
6013 | cross_overrides='${cross_overrides}' | |
6014 | build_overrides='${build_overrides}' | |
6015 | ||
6016 | EOF | |
6017 | cat >> $CONFIG_STATUS <<\EOF | |
6018 | ||
6019 | . $srcdir/configure.lang | |
6020 | case x$CONFIG_HEADERS in | |
b7cb92ad | 6021 | xauto-host.h:config.in) |
861bb6c1 JL |
6022 | echo > cstamp-h ;; |
6023 | esac | |
93cf819d BK |
6024 | # If the host supports symlinks, point stage[1234] at ../stage[1234] so |
6025 | # bootstrapping and the installation procedure can still use | |
6026 | # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks, | |
6027 | # FLAGS_TO_PASS has been modified to solve the problem there. | |
6028 | # This is virtually a duplicate of what happens in configure.lang; we do | |
6029 | # an extra check to make sure this only happens if ln -s can be used. | |
6030 | if [ "$symbolic_link" = "ln -s" ]; then | |
6031 | for d in .. ${subdirs} ; do | |
6032 | if [ $d != .. ]; then | |
4e8a434e BK |
6033 | STARTDIR=`pwd` |
6034 | cd $d | |
6035 | for t in stage1 stage2 stage3 stage4 include | |
6036 | do | |
6037 | rm -f $t | |
6038 | $symbolic_link ../$t $t 2>/dev/null | |
6039 | done | |
6040 | cd $STARTDIR | |
93cf819d BK |
6041 | fi |
6042 | done | |
6043 | else true ; fi | |
861bb6c1 JL |
6044 | |
6045 | exit 0 | |
6046 | EOF | |
6047 | chmod +x $CONFIG_STATUS | |
6048 | rm -fr confdefs* $ac_clean_files | |
6049 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
6050 |