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