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