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