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