3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12.2
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.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-gnu-ld arrange to work with GNU ld."
17 --with-ld arrange to use the specified ld (full pathname)."
19 --with-gnu-as arrange to work with GNU as."
21 --with-as arrange to use the specified as (full pathname)."
23 --with-stabs arrange to use stabs instead of host debug format."
25 --with-elf arrange to use ELF instead of host debug format."
27 --with-local-prefix=DIR specifies directory to put local include."
29 --with-gxx-include-dir=DIR
30 specifies directory to put g++ header files."
32 --enable-checking enable expensive run-time checks."
34 --enable-cpplib use cpplib for the C preprocessor."
36 --enable-c-cpplib link cpplib directly into C and C++ compilers
37 (implies --enable-cpplib)."
39 --enable-c-mbchar enable multibyte characters for C and C++."
41 --enable-haifa use the experimental scheduler.
42 --disable-haifa don't use the experimental scheduler for the
43 targets which normally enable it."
45 --with-fast-fixincludes use a faster fixinclude program (experimental)"
47 --enable-init-priority use attributes to assign initialization order
49 --disable-init-priority conform to ISO C++ rules for ordering static objects
50 (i.e. initialized in order of declaration). "
52 --enable-threads enable thread usage for target GCC.
53 --enable-threads=LIB use LIB thread package for target GCC."
55 --enable-objc-gc enable the use of Boehm's garbage collector with
56 the GNU Objective-C runtime."
58 --enable-java-gc=TYPE choose garbage collector [boehm]"
60 # Initialize some variables set by options.
61 # The variables have the same names as the options, with
62 # dashes changed to underlines.
64 cache_file=./config.cache
73 program_transform_name=s,x,x,
81 bindir='${exec_prefix}/bin'
82 sbindir='${exec_prefix}/sbin'
83 libexecdir='${exec_prefix}/libexec'
84 datadir='${prefix}/share'
85 sysconfdir='${prefix}/etc'
86 sharedstatedir='${prefix}/com'
87 localstatedir='${prefix}/var'
88 libdir='${exec_prefix}/lib'
89 includedir='${prefix}/include'
90 oldincludedir='/usr/include'
91 infodir='${prefix}/info'
92 mandir='${prefix}/man'
94 # Initialize some other variables.
97 SHELL=${CONFIG_SHELL-/bin/sh}
98 # Maximum number of lines to put in a shell here document.
105 # If the previous option needs an argument, assign it.
106 if test -n "$ac_prev"; then
107 eval "$ac_prev=\$ac_option"
113 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
117 # Accept the important Cygnus configure options, so we can diagnose typos.
121 -bindir | --bindir | --bindi | --bind | --bin | --bi)
123 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
124 bindir="$ac_optarg" ;;
126 -build | --build | --buil | --bui | --bu)
128 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
129 build="$ac_optarg" ;;
131 -cache-file | --cache-file | --cache-fil | --cache-fi \
132 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
133 ac_prev=cache_file ;;
134 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
135 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
136 cache_file="$ac_optarg" ;;
138 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
140 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
142 datadir="$ac_optarg" ;;
144 -disable-* | --disable-*)
145 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
146 # Reject names that are not valid shell variable names.
147 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
148 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
150 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
151 eval "enable_${ac_feature}=no" ;;
153 -enable-* | --enable-*)
154 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
155 # Reject names that are not valid shell variable names.
156 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
157 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
159 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
164 eval "enable_${ac_feature}='$ac_optarg'" ;;
166 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
167 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
168 | --exec | --exe | --ex)
169 ac_prev=exec_prefix ;;
170 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
171 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
172 | --exec=* | --exe=* | --ex=*)
173 exec_prefix="$ac_optarg" ;;
175 -gas | --gas | --ga | --g)
176 # Obsolete; use --with-gas.
179 -help | --help | --hel | --he)
180 # Omit some internal or obsolete options to make the list less imposing.
181 # This message is too long to be a string in the A/UX 3.1 sh.
183 Usage: configure [options] [host]
184 Options: [defaults in brackets after descriptions]
186 --cache-file=FILE cache test results in FILE
187 --help print this message
188 --no-create do not create output files
189 --quiet, --silent do not print \`checking...' messages
190 --version print the version of autoconf that created configure
191 Directory and file names:
192 --prefix=PREFIX install architecture-independent files in PREFIX
194 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
196 --bindir=DIR user executables in DIR [EPREFIX/bin]
197 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
198 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
199 --datadir=DIR read-only architecture-independent data in DIR
201 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
202 --sharedstatedir=DIR modifiable architecture-independent data in DIR
204 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
205 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
206 --includedir=DIR C header files in DIR [PREFIX/include]
207 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
208 --infodir=DIR info documentation in DIR [PREFIX/info]
209 --mandir=DIR man documentation in DIR [PREFIX/man]
210 --srcdir=DIR find the sources in DIR [configure dir or ..]
211 --program-prefix=PREFIX prepend PREFIX to installed program names
212 --program-suffix=SUFFIX append SUFFIX to installed program names
213 --program-transform-name=PROGRAM
214 run sed PROGRAM on installed program names
218 --build=BUILD configure for building on BUILD [BUILD=HOST]
219 --host=HOST configure for HOST [guessed]
220 --target=TARGET configure for TARGET [TARGET=HOST]
221 Features and packages:
222 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
223 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
224 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
225 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
226 --x-includes=DIR X include files are in DIR
227 --x-libraries=DIR X library files are in DIR
229 if test -n "$ac_help"; then
230 echo "--enable and --with options recognized:$ac_help"
234 -host | --host | --hos | --ho)
236 -host=* | --host=* | --hos=* | --ho=*)
239 -includedir | --includedir | --includedi | --included | --include \
240 | --includ | --inclu | --incl | --inc)
241 ac_prev=includedir ;;
242 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
243 | --includ=* | --inclu=* | --incl=* | --inc=*)
244 includedir="$ac_optarg" ;;
246 -infodir | --infodir | --infodi | --infod | --info | --inf)
248 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
249 infodir="$ac_optarg" ;;
251 -libdir | --libdir | --libdi | --libd)
253 -libdir=* | --libdir=* | --libdi=* | --libd=*)
254 libdir="$ac_optarg" ;;
256 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
257 | --libexe | --libex | --libe)
258 ac_prev=libexecdir ;;
259 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
260 | --libexe=* | --libex=* | --libe=*)
261 libexecdir="$ac_optarg" ;;
263 -localstatedir | --localstatedir | --localstatedi | --localstated \
264 | --localstate | --localstat | --localsta | --localst \
265 | --locals | --local | --loca | --loc | --lo)
266 ac_prev=localstatedir ;;
267 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
268 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
269 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
270 localstatedir="$ac_optarg" ;;
272 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
274 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
275 mandir="$ac_optarg" ;;
278 # Obsolete; use --without-fp.
281 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
285 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
286 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
289 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
290 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
291 | --oldin | --oldi | --old | --ol | --o)
292 ac_prev=oldincludedir ;;
293 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
294 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
295 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
296 oldincludedir="$ac_optarg" ;;
298 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
300 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
301 prefix="$ac_optarg" ;;
303 -program-prefix | --program-prefix | --program-prefi | --program-pref \
304 | --program-pre | --program-pr | --program-p)
305 ac_prev=program_prefix ;;
306 -program-prefix=* | --program-prefix=* | --program-prefi=* \
307 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
308 program_prefix="$ac_optarg" ;;
310 -program-suffix | --program-suffix | --program-suffi | --program-suff \
311 | --program-suf | --program-su | --program-s)
312 ac_prev=program_suffix ;;
313 -program-suffix=* | --program-suffix=* | --program-suffi=* \
314 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
315 program_suffix="$ac_optarg" ;;
317 -program-transform-name | --program-transform-name \
318 | --program-transform-nam | --program-transform-na \
319 | --program-transform-n | --program-transform- \
320 | --program-transform | --program-transfor \
321 | --program-transfo | --program-transf \
322 | --program-trans | --program-tran \
323 | --progr-tra | --program-tr | --program-t)
324 ac_prev=program_transform_name ;;
325 -program-transform-name=* | --program-transform-name=* \
326 | --program-transform-nam=* | --program-transform-na=* \
327 | --program-transform-n=* | --program-transform-=* \
328 | --program-transform=* | --program-transfor=* \
329 | --program-transfo=* | --program-transf=* \
330 | --program-trans=* | --program-tran=* \
331 | --progr-tra=* | --program-tr=* | --program-t=*)
332 program_transform_name="$ac_optarg" ;;
334 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
335 | -silent | --silent | --silen | --sile | --sil)
338 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
340 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
342 sbindir="$ac_optarg" ;;
344 -sharedstatedir | --sharedstatedir | --sharedstatedi \
345 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
346 | --sharedst | --shareds | --shared | --share | --shar \
348 ac_prev=sharedstatedir ;;
349 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
350 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
351 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
353 sharedstatedir="$ac_optarg" ;;
355 -site | --site | --sit)
357 -site=* | --site=* | --sit=*)
360 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
362 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
363 srcdir="$ac_optarg" ;;
365 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
366 | --syscon | --sysco | --sysc | --sys | --sy)
367 ac_prev=sysconfdir ;;
368 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
369 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
370 sysconfdir="$ac_optarg" ;;
372 -target | --target | --targe | --targ | --tar | --ta | --t)
374 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
375 target="$ac_optarg" ;;
377 -v | -verbose | --verbose | --verbos | --verbo | --verb)
380 -version | --version | --versio | --versi | --vers)
381 echo "configure generated by autoconf version 2.12.2"
385 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
386 # Reject names that are not valid shell variable names.
387 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
388 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
390 ac_package=`echo $ac_package| sed 's/-/_/g'`
395 eval "with_${ac_package}='$ac_optarg'" ;;
397 -without-* | --without-*)
398 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
399 # Reject names that are not valid shell variable names.
400 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
401 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
403 ac_package=`echo $ac_package| sed 's/-/_/g'`
404 eval "with_${ac_package}=no" ;;
407 # Obsolete; use --with-x.
410 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
411 | --x-incl | --x-inc | --x-in | --x-i)
412 ac_prev=x_includes ;;
413 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
414 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
415 x_includes="$ac_optarg" ;;
417 -x-libraries | --x-libraries | --x-librarie | --x-librari \
418 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
419 ac_prev=x_libraries ;;
420 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
421 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
422 x_libraries="$ac_optarg" ;;
424 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
428 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
429 echo "configure: warning: $ac_option: invalid host type" 1>&2
431 if test "x$nonopt" != xNONE; then
432 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
440 if test -n "$ac_prev"; then
441 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
444 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
446 # File descriptor usage:
449 # 2 errors and warnings
450 # 3 some systems may open it to /dev/tty
451 # 4 used on the Kubota Titan
452 # 6 checking for... messages and results
453 # 5 compiler messages saved in config.log
454 if test "$silent" = yes; then
462 This file contains any messages produced by compilers while
463 running configure, to aid debugging if configure makes a mistake.
466 # Strip out --no-create and --no-recursion so they do not pile up.
467 # Also quote any args containing shell metacharacters.
472 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
473 | --no-cr | --no-c) ;;
474 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
475 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
476 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
477 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
478 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
483 # Only set these to C if already set. These must not be set unconditionally
484 # because not all systems understand e.g. LANG=C (notably SCO).
485 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
486 # Non-C LC_CTYPE values break the ctype check.
487 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
488 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
489 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
490 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
492 # confdefs.h avoids OS command line length limits that DEFS can exceed.
493 rm -rf conftest* confdefs.h
494 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
497 # A filename unique to this package, relative to the directory that
498 # configure is in, which we can look for to find out if srcdir is correct.
499 ac_unique_file=tree.c
501 # Find the source files, if location was not specified.
502 if test -z "$srcdir"; then
503 ac_srcdir_defaulted=yes
504 # Try the directory containing this script, then its parent.
506 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
507 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
509 if test ! -r $srcdir/$ac_unique_file; then
513 ac_srcdir_defaulted=no
515 if test ! -r $srcdir/$ac_unique_file; then
516 if test "$ac_srcdir_defaulted" = yes; then
517 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
519 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
522 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
524 # Prefer explicitly selected file to automatically selected ones.
525 if test -z "$CONFIG_SITE"; then
526 if test "x$prefix" != xNONE; then
527 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
529 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
532 for ac_site_file in $CONFIG_SITE; do
533 if test -r "$ac_site_file"; then
534 echo "loading site script $ac_site_file"
539 if test -r "$cache_file"; then
540 echo "loading cache $cache_file"
543 echo "creating cache $cache_file"
548 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
549 ac_cpp='$CPP $CPPFLAGS'
550 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
551 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
552 cross_compiling=$ac_cv_prog_cc_cross
556 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
557 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
558 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
565 ac_n= ac_c='\c' ac_t=
573 symbolic_link='ln -s'
576 # Check for bogus environment variables.
577 # Test if LIBRARY_PATH contains the notation for the current directory
578 # since this would lead to problems installing/building glibc.
579 # LIBRARY_PATH contains the current directory if one of the following
581 # - one of the terminals (":" and ";") is the first or last sign
582 # - two terminals occur directly after each other
583 # - the path contains an element with a dot in it
584 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
585 echo "configure:586: checking LIBRARY_PATH variable" >&5
586 case ${LIBRARY_PATH} in
587 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
588 library_path_setting="contains current directory"
591 library_path_setting="ok"
594 echo "$ac_t""$library_path_setting" 1>&6
595 if test "$library_path_setting" != "ok"; then
596 { echo "configure: error:
597 *** LIBRARY_PATH shouldn't contain the current directory when
598 *** building egcs. Please change the environment variable
599 *** and run configure again." 1>&2; exit 1; }
602 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
603 # since this would lead to problems installing/building glibc.
604 # GCC_EXEC_PREFIX contains the current directory if one of the following
606 # - one of the terminals (":" and ";") is the first or last sign
607 # - two terminals occur directly after each other
608 # - the path contains an element with a dot in it
609 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
610 echo "configure:611: checking GCC_EXEC_PREFIX variable" >&5
611 case ${GCC_EXEC_PREFIX} in
612 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
613 gcc_exec_prefix_setting="contains current directory"
616 gcc_exec_prefix_setting="ok"
619 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
620 if test "$gcc_exec_prefix_setting" != "ok"; then
621 { echo "configure: error:
622 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
623 *** building egcs. Please change the environment variable
624 *** and run configure again." 1>&2; exit 1; }
627 # Check for additional parameters
630 # Check whether --with-gnu-ld or --without-gnu-ld was given.
631 if test "${with_gnu_ld+set}" = set; then
632 withval="$with_gnu_ld"
633 gnu_ld_flag="$with_gnu_ld"
639 # With pre-defined ld
640 # Check whether --with-ld or --without-ld was given.
641 if test "${with_ld+set}" = set; then
643 DEFAULT_LINKER="$with_ld"
646 if test x"${DEFAULT_LINKER+set}" = x"set"; then
647 if test ! -x "$DEFAULT_LINKER"; then
648 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
649 elif test "GNU" = `$DEFAULT_LINKER -v </dev/null 2>&1 | sed '1s/^GNU.*/GNU/;q'`; then
652 cat >> confdefs.h <<EOF
653 #define DEFAULT_LINKER "$DEFAULT_LINKER"
659 # Check whether --with-gnu-as or --without-gnu-as was given.
660 if test "${with_gnu_as+set}" = set; then
661 withval="$with_gnu_as"
662 gas_flag="$with_gnu_as"
668 # Check whether --with-as or --without-as was given.
669 if test "${with_as+set}" = set; then
671 DEFAULT_ASSEMBLER="$with_as"
674 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
675 if test ! -x "$DEFAULT_ASSEMBLER"; then
676 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
677 elif test "GNU" = `$DEFAULT_ASSEMBLER -v </dev/null 2>&1 | sed '1s/^GNU.*/GNU/;q'`; then
680 cat >> confdefs.h <<EOF
681 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
687 # Check whether --with-stabs or --without-stabs was given.
688 if test "${with_stabs+set}" = set; then
689 withval="$with_stabs"
697 # Check whether --with-elf or --without-elf was given.
698 if test "${with_elf+set}" = set; then
706 # Specify the local prefix
708 # Check whether --with-local-prefix or --without-local-prefix was given.
709 if test "${with_local_prefix+set}" = set; then
710 withval="$with_local_prefix"
712 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
714 *) local_prefix=$with_local_prefix ;;
719 # Default local prefix if it is empty
720 if test x$local_prefix = x; then
721 local_prefix=/usr/local
725 # Specify the g++ header file directory
726 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
727 if test "${with_gxx_include_dir+set}" = set; then
728 withval="$with_gxx_include_dir"
730 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
732 *) gxx_include_dir=$with_gxx_include_dir ;;
737 if test x${gxx_include_dir} = x; then
738 if test x${enable_version_specific_runtime_libs} = xyes; then
739 gxx_include_dir='${libsubdir}/include/g++'
741 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
742 gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
746 # Enable expensive internal checks
747 # Check whether --enable-checking or --disable-checking was given.
748 if test "${enable_checking+set}" = set; then
749 enableval="$enable_checking"
750 case "${enableval}" in
751 yes) cat >> confdefs.h <<\EOF
752 #define ENABLE_CHECKING 1
756 *) { echo "configure: error: bad value ${enableval} given for checking option" 1>&2; exit 1; } ;;
761 # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
763 # Check whether --enable-cpplib or --disable-cpplib was given.
764 if test "${enable_cpplib+set}" = set; then
765 enableval="$enable_cpplib"
766 if test x$enable_cpplib != xno; then
772 # Link cpplib into the compiler proper, for C/C++/ObjC.
773 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
774 if test "${enable_c_cpplib+set}" = set; then
775 enableval="$enable_c_cpplib"
776 if test x$enable_c_cpplib != xno; then
777 extra_c_objs="${extra_c_objs} libcpp.a"
778 extra_cxx_objs="${extra_cxx_objs} ../libcpp.a"
779 extra_c_flags=-DUSE_CPPLIB=1
785 # Enable Multibyte Characters for C/C++
786 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
787 if test "${enable_c_mbchar+set}" = set; then
788 enableval="$enable_c_mbchar"
789 if test x$enable_c_mbchar != xno; then
790 extra_c_flags=-DMULTIBYTE_CHARS=1
795 # Enable Haifa scheduler.
796 # Check whether --enable-haifa or --disable-haifa was given.
797 if test "${enable_haifa+set}" = set; then
798 enableval="$enable_haifa"
804 # This is a work in progress...
805 # Check whether --with-fast-fixincludes or --without-fast-fixincludes was given.
806 if test "${with_fast_fixincludes+set}" = set; then
807 withval="$with_fast_fixincludes"
808 fast_fixinc="$with_fast_fixincludes"
814 # Enable init_priority.
815 # Check whether --enable-init-priority or --disable-init-priority was given.
816 if test "${enable_init_priority+set}" = set; then
817 enableval="$enable_init_priority"
818 if test x$enable_init_priority != xno; then
819 extra_c_flags=-DUSE_INIT_PRIORITY
825 # Pass with no value to take the default
826 # Pass with a value to specify a thread package
827 # Check whether --enable-threads or --disable-threads was given.
828 if test "${enable_threads+set}" = set; then
829 enableval="$enable_threads"
830 if test x$enable_threads = xno; then
838 enable_threads_flag=$enable_threads
839 # Check if a valid thread package
840 case x${enable_threads_flag} in
843 target_thread_file='single'
847 target_thread_file=''
849 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
850 xsolaris | xwin32 | xdce | xvxworks)
851 target_thread_file=$enable_threads_flag
854 echo "$enable_threads is an unknown thread package" 1>&2
859 # Check whether --enable-objc-gc or --disable-objc-gc was given.
860 if test "${enable_objc_gc+set}" = set; then
861 enableval="$enable_objc_gc"
862 if [ x$enable_objc_gc = xno ]; then
872 # Check whether --enable-java-gc or --disable-java-gc was given.
873 if test "${enable_java_gc+set}" = set; then
874 enableval="$enable_java_gc"
882 # Determine the host, build, and target systems
884 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
885 if test -f $ac_dir/install-sh; then
887 ac_install_sh="$ac_aux_dir/install-sh -c"
889 elif test -f $ac_dir/install.sh; then
891 ac_install_sh="$ac_aux_dir/install.sh -c"
895 if test -z "$ac_aux_dir"; then
896 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
898 ac_config_guess=$ac_aux_dir/config.guess
899 ac_config_sub=$ac_aux_dir/config.sub
900 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
903 # Do some error checking and defaulting for the host and target type.
905 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
908 # 1. You are not allowed to specify --host, --target, and nonopt at the
910 # 2. Host defaults to nonopt.
911 # 3. If nonopt is not specified, then host defaults to the current host,
912 # as determined by config.guess.
913 # 4. Target and build default to nonopt.
914 # 5. If nonopt is not specified, then target and build default to host.
916 # The aliases save the names the user supplied, while $host etc.
917 # will get canonicalized.
918 case $host---$target---$nonopt in
919 NONE---*---* | *---NONE---* | *---*---NONE) ;;
920 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
924 # Make sure we can run config.sub.
925 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
926 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
929 echo $ac_n "checking host system type""... $ac_c" 1>&6
930 echo "configure:931: checking host system type" >&5
933 case "$host_alias" in
937 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
938 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
940 *) host_alias=$nonopt ;;
944 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
945 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
946 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
947 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
948 echo "$ac_t""$host" 1>&6
950 echo $ac_n "checking target system type""... $ac_c" 1>&6
951 echo "configure:952: checking target system type" >&5
954 case "$target_alias" in
957 NONE) target_alias=$host_alias ;;
958 *) target_alias=$nonopt ;;
962 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
963 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
964 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
965 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
966 echo "$ac_t""$target" 1>&6
968 echo $ac_n "checking build system type""... $ac_c" 1>&6
969 echo "configure:970: checking build system type" >&5
972 case "$build_alias" in
975 NONE) build_alias=$host_alias ;;
976 *) build_alias=$nonopt ;;
980 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
981 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
982 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
983 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
984 echo "$ac_t""$build" 1>&6
986 test "$host_alias" != "$target_alias" &&
987 test "$program_prefix$program_suffix$program_transform_name" = \
989 program_prefix=${target_alias}-
992 # Find the native compiler
993 # Extract the first word of "gcc", so it can be a program name with args.
994 set dummy gcc; ac_word=$2
995 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
996 echo "configure:997: checking for $ac_word" >&5
997 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
998 echo $ac_n "(cached) $ac_c" 1>&6
1000 if test -n "$CC"; then
1001 ac_cv_prog_CC="$CC" # Let the user override the test.
1003 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1004 for ac_dir in $PATH; do
1005 test -z "$ac_dir" && ac_dir=.
1006 if test -f $ac_dir/$ac_word; then
1015 if test -n "$CC"; then
1016 echo "$ac_t""$CC" 1>&6
1018 echo "$ac_t""no" 1>&6
1021 if test -z "$CC"; then
1022 # Extract the first word of "cc", so it can be a program name with args.
1023 set dummy cc; ac_word=$2
1024 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1025 echo "configure:1026: checking for $ac_word" >&5
1026 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1027 echo $ac_n "(cached) $ac_c" 1>&6
1029 if test -n "$CC"; then
1030 ac_cv_prog_CC="$CC" # Let the user override the test.
1032 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1034 for ac_dir in $PATH; do
1035 test -z "$ac_dir" && ac_dir=.
1036 if test -f $ac_dir/$ac_word; then
1037 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1038 ac_prog_rejected=yes
1046 if test $ac_prog_rejected = yes; then
1047 # We found a bogon in the path, so make sure we never use it.
1048 set dummy $ac_cv_prog_CC
1050 if test $# -gt 0; then
1051 # We chose a different compiler from the bogus one.
1052 # However, it has the same basename, so the bogon will be chosen
1053 # first if we set CC to just the basename; use the full file name.
1055 set dummy "$ac_dir/$ac_word" "$@"
1063 if test -n "$CC"; then
1064 echo "$ac_t""$CC" 1>&6
1066 echo "$ac_t""no" 1>&6
1069 if test -z "$CC"; then
1070 case "`uname -s`" in
1072 # Extract the first word of "cl", so it can be a program name with args.
1073 set dummy cl; ac_word=$2
1074 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1075 echo "configure:1076: checking for $ac_word" >&5
1076 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1077 echo $ac_n "(cached) $ac_c" 1>&6
1079 if test -n "$CC"; then
1080 ac_cv_prog_CC="$CC" # Let the user override the test.
1082 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1083 for ac_dir in $PATH; do
1084 test -z "$ac_dir" && ac_dir=.
1085 if test -f $ac_dir/$ac_word; then
1094 if test -n "$CC"; then
1095 echo "$ac_t""$CC" 1>&6
1097 echo "$ac_t""no" 1>&6
1102 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1105 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1106 echo "configure:1107: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1109 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1110 ac_cpp='$CPP $CPPFLAGS'
1111 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1112 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1113 cross_compiling=$ac_cv_prog_cc_cross
1115 cat > conftest.$ac_ext <<EOF
1116 #line 1117 "configure"
1117 #include "confdefs.h"
1120 if { (eval echo configure:1121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1121 ac_cv_prog_cc_works=yes
1122 # If we can't run a trivial program, we are probably using a cross compiler.
1123 if (./conftest; exit) 2>/dev/null; then
1124 ac_cv_prog_cc_cross=no
1126 ac_cv_prog_cc_cross=yes
1129 echo "configure: failed program was:" >&5
1130 cat conftest.$ac_ext >&5
1131 ac_cv_prog_cc_works=no
1135 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1136 if test $ac_cv_prog_cc_works = no; then
1137 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1139 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1140 echo "configure:1141: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1141 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1142 cross_compiling=$ac_cv_prog_cc_cross
1144 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1145 echo "configure:1146: checking whether we are using GNU C" >&5
1146 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1147 echo $ac_n "(cached) $ac_c" 1>&6
1149 cat > conftest.c <<EOF
1154 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1161 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1163 if test $ac_cv_prog_gcc = yes; then
1169 ac_test_CFLAGS="${CFLAGS+set}"
1170 ac_save_CFLAGS="$CFLAGS"
1172 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1173 echo "configure:1174: checking whether ${CC-cc} accepts -g" >&5
1174 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1175 echo $ac_n "(cached) $ac_c" 1>&6
1177 echo 'void f(){}' > conftest.c
1178 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1187 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1188 if test "$ac_test_CFLAGS" = set; then
1189 CFLAGS="$ac_save_CFLAGS"
1190 elif test $ac_cv_prog_cc_g = yes; then
1191 if test "$GCC" = yes; then
1197 if test "$GCC" = yes; then
1205 # If the native compiler is GCC, we can enable warnings even in stage1.
1206 # That's useful for people building cross-compilers, or just running a
1208 if test "x$GCC" = "xyes"; then
1209 stage1_warn_cflags='$(WARN_CFLAGS)'
1211 stage1_warn_cflags=""
1215 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1216 echo "configure:1217: checking whether ${MAKE-make} sets \${MAKE}" >&5
1217 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1218 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1219 echo $ac_n "(cached) $ac_c" 1>&6
1221 cat > conftestmake <<\EOF
1223 @echo 'ac_maketemp="${MAKE}"'
1225 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1226 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1227 if test -n "$ac_maketemp"; then
1228 eval ac_cv_prog_make_${ac_make}_set=yes
1230 eval ac_cv_prog_make_${ac_make}_set=no
1234 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1235 echo "$ac_t""yes" 1>&6
1238 echo "$ac_t""no" 1>&6
1239 SET_MAKE="MAKE=${MAKE-make}"
1243 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1244 echo "configure:1245: checking whether a default assembler was specified" >&5
1245 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1246 if test x"$with_gas" = x"no"; then
1247 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1249 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1252 echo "$ac_t""no" 1>&6
1255 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1256 echo "configure:1257: checking whether a default linker was specified" >&5
1257 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1258 if test x"$with_gnu_ld" = x"no"; then
1259 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1261 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1264 echo "$ac_t""no" 1>&6
1267 # Find some useful tools
1268 for ac_prog in mawk gawk nawk awk
1270 # Extract the first word of "$ac_prog", so it can be a program name with args.
1271 set dummy $ac_prog; ac_word=$2
1272 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1273 echo "configure:1274: checking for $ac_word" >&5
1274 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1275 echo $ac_n "(cached) $ac_c" 1>&6
1277 if test -n "$AWK"; then
1278 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1280 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1281 for ac_dir in $PATH; do
1282 test -z "$ac_dir" && ac_dir=.
1283 if test -f $ac_dir/$ac_word; then
1284 ac_cv_prog_AWK="$ac_prog"
1291 AWK="$ac_cv_prog_AWK"
1292 if test -n "$AWK"; then
1293 echo "$ac_t""$AWK" 1>&6
1295 echo "$ac_t""no" 1>&6
1298 test -n "$AWK" && break
1301 # Extract the first word of "flex", so it can be a program name with args.
1302 set dummy flex; ac_word=$2
1303 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1304 echo "configure:1305: checking for $ac_word" >&5
1305 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1306 echo $ac_n "(cached) $ac_c" 1>&6
1308 if test -n "$LEX"; then
1309 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1311 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1312 for ac_dir in $PATH; do
1313 test -z "$ac_dir" && ac_dir=.
1314 if test -f $ac_dir/$ac_word; then
1315 ac_cv_prog_LEX="flex"
1320 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1323 LEX="$ac_cv_prog_LEX"
1324 if test -n "$LEX"; then
1325 echo "$ac_t""$LEX" 1>&6
1327 echo "$ac_t""no" 1>&6
1330 if test -z "$LEXLIB"
1336 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1337 echo "configure:1338: checking for yywrap in -l$ac_lib" >&5
1338 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1339 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1340 echo $ac_n "(cached) $ac_c" 1>&6
1342 ac_save_LIBS="$LIBS"
1343 LIBS="-l$ac_lib $LIBS"
1344 cat > conftest.$ac_ext <<EOF
1345 #line 1346 "configure"
1346 #include "confdefs.h"
1347 /* Override any gcc2 internal prototype to avoid an error. */
1348 /* We use char because int might match the return type of a gcc2
1349 builtin and then its argument prototype would still apply. */
1356 if { (eval echo configure:1357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1358 eval "ac_cv_lib_$ac_lib_var=yes"
1360 echo "configure: failed program was:" >&5
1361 cat conftest.$ac_ext >&5
1363 eval "ac_cv_lib_$ac_lib_var=no"
1366 LIBS="$ac_save_LIBS"
1369 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1370 echo "$ac_t""yes" 1>&6
1373 echo "$ac_t""no" 1>&6
1378 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1379 echo "configure:1380: checking whether ln works" >&5
1380 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1381 echo $ac_n "(cached) $ac_c" 1>&6
1383 rm -f conftestdata_t
1384 echo >conftestdata_f
1385 if ln conftestdata_f conftestdata_t 2>/dev/null
1389 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1391 gcc_cv_prog_LN="ln -s"
1396 rm -f conftestdata_f conftestdata_t
1399 LN="$gcc_cv_prog_LN"
1400 if test "$gcc_cv_prog_LN" = "ln"; then
1401 echo "$ac_t""yes" 1>&6
1403 if test "$gcc_cv_prog_LN" = "ln -s"; then
1404 echo "$ac_t""no, using ln -s" 1>&6
1406 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1410 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1411 echo "configure:1412: checking whether ln -s works" >&5
1412 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1413 echo $ac_n "(cached) $ac_c" 1>&6
1415 rm -f conftestdata_t
1416 echo >conftestdata_f
1417 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1419 gcc_cv_prog_LN_S="ln -s"
1421 if ln conftestdata_f conftestdata_t 2>/dev/null
1428 rm -f conftestdata_f conftestdata_t
1431 LN_S="$gcc_cv_prog_LN_S"
1432 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1433 echo "$ac_t""yes" 1>&6
1435 if test "$gcc_cv_prog_LN_S" = "ln"; then
1436 echo "$ac_t""no, using ln" 1>&6
1438 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1442 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1443 echo "configure:1444: checking for volatile" >&5
1444 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1445 echo $ac_n "(cached) $ac_c" 1>&6
1447 cat > conftest.$ac_ext <<EOF
1448 #line 1449 "configure"
1449 #include "confdefs.h"
1455 if { (eval echo configure:1456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1457 gcc_cv_c_volatile=yes
1459 echo "configure: failed program was:" >&5
1460 cat conftest.$ac_ext >&5
1462 gcc_cv_c_volatile=no
1467 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1468 if test $gcc_cv_c_volatile = yes ; then
1469 cat >> confdefs.h <<\EOF
1470 #define HAVE_VOLATILE 1
1475 # Extract the first word of "ranlib", so it can be a program name with args.
1476 set dummy ranlib; ac_word=$2
1477 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1478 echo "configure:1479: checking for $ac_word" >&5
1479 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1480 echo $ac_n "(cached) $ac_c" 1>&6
1482 if test -n "$RANLIB"; then
1483 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1485 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1486 for ac_dir in $PATH; do
1487 test -z "$ac_dir" && ac_dir=.
1488 if test -f $ac_dir/$ac_word; then
1489 ac_cv_prog_RANLIB="ranlib"
1494 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1497 RANLIB="$ac_cv_prog_RANLIB"
1498 if test -n "$RANLIB"; then
1499 echo "$ac_t""$RANLIB" 1>&6
1501 echo "$ac_t""no" 1>&6
1504 for ac_prog in 'bison -y' byacc
1506 # Extract the first word of "$ac_prog", so it can be a program name with args.
1507 set dummy $ac_prog; ac_word=$2
1508 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1509 echo "configure:1510: checking for $ac_word" >&5
1510 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1511 echo $ac_n "(cached) $ac_c" 1>&6
1513 if test -n "$YACC"; then
1514 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1516 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1517 for ac_dir in $PATH; do
1518 test -z "$ac_dir" && ac_dir=.
1519 if test -f $ac_dir/$ac_word; then
1520 ac_cv_prog_YACC="$ac_prog"
1527 YACC="$ac_cv_prog_YACC"
1528 if test -n "$YACC"; then
1529 echo "$ac_t""$YACC" 1>&6
1531 echo "$ac_t""no" 1>&6
1534 test -n "$YACC" && break
1536 test -n "$YACC" || YACC="yacc"
1538 # Find a good install program. We prefer a C program (faster),
1539 # so one script is as good as another. But avoid the broken or
1540 # incompatible versions:
1541 # SysV /etc/install, /usr/sbin/install
1542 # SunOS /usr/etc/install
1543 # IRIX /sbin/install
1545 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1546 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1547 # ./install, which can be erroneously created by make from ./install.sh.
1548 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1549 echo "configure:1550: checking for a BSD compatible install" >&5
1550 if test -z "$INSTALL"; then
1551 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1552 echo $ac_n "(cached) $ac_c" 1>&6
1554 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1555 for ac_dir in $PATH; do
1556 # Account for people who put trailing slashes in PATH elements.
1558 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1560 # OSF1 and SCO ODT 3.0 have their own names for install.
1561 for ac_prog in ginstall scoinst install; do
1562 if test -f $ac_dir/$ac_prog; then
1563 if test $ac_prog = install &&
1564 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1565 # AIX install. It has an incompatible calling convention.
1566 # OSF/1 installbsd also uses dspmsg, but is usable.
1569 ac_cv_path_install="$ac_dir/$ac_prog -c"
1580 if test "${ac_cv_path_install+set}" = set; then
1581 INSTALL="$ac_cv_path_install"
1583 # As a last resort, use the slow shell script. We don't cache a
1584 # path for INSTALL within a source directory, because that will
1585 # break other packages using the cache if that directory is
1586 # removed, or if the path is relative.
1587 INSTALL="$ac_install_sh"
1590 echo "$ac_t""$INSTALL" 1>&6
1592 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1593 # It thinks the first close brace ends the variable substitution.
1594 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1596 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1599 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1600 echo "configure:1601: checking how to run the C preprocessor" >&5
1601 # On Suns, sometimes $CPP names a directory.
1602 if test -n "$CPP" && test -d "$CPP"; then
1605 if test -z "$CPP"; then
1606 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1607 echo $ac_n "(cached) $ac_c" 1>&6
1609 # This must be in double quotes, not single quotes, because CPP may get
1610 # substituted into the Makefile and "${CC-cc}" will confuse make.
1612 # On the NeXT, cc -E runs the code through the compiler's parser,
1613 # not just through cpp.
1614 cat > conftest.$ac_ext <<EOF
1615 #line 1616 "configure"
1616 #include "confdefs.h"
1620 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1621 { (eval echo configure:1622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1622 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1623 if test -z "$ac_err"; then
1627 echo "configure: failed program was:" >&5
1628 cat conftest.$ac_ext >&5
1630 CPP="${CC-cc} -E -traditional-cpp"
1631 cat > conftest.$ac_ext <<EOF
1632 #line 1633 "configure"
1633 #include "confdefs.h"
1637 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1638 { (eval echo configure:1639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1639 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1640 if test -z "$ac_err"; then
1644 echo "configure: failed program was:" >&5
1645 cat conftest.$ac_ext >&5
1647 CPP="${CC-cc} -nologo -E"
1648 cat > conftest.$ac_ext <<EOF
1649 #line 1650 "configure"
1650 #include "confdefs.h"
1654 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1655 { (eval echo configure:1656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1656 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1657 if test -z "$ac_err"; then
1661 echo "configure: failed program was:" >&5
1662 cat conftest.$ac_ext >&5
1671 ac_cv_prog_CPP="$CPP"
1673 CPP="$ac_cv_prog_CPP"
1675 ac_cv_prog_CPP="$CPP"
1677 echo "$ac_t""$CPP" 1>&6
1679 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1680 echo "configure:1681: checking for ANSI C header files" >&5
1681 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1682 echo $ac_n "(cached) $ac_c" 1>&6
1684 cat > conftest.$ac_ext <<EOF
1685 #line 1686 "configure"
1686 #include "confdefs.h"
1692 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1693 { (eval echo configure:1694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1694 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1695 if test -z "$ac_err"; then
1697 ac_cv_header_stdc=yes
1700 echo "configure: failed program was:" >&5
1701 cat conftest.$ac_ext >&5
1703 ac_cv_header_stdc=no
1707 if test $ac_cv_header_stdc = yes; then
1708 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1709 cat > conftest.$ac_ext <<EOF
1710 #line 1711 "configure"
1711 #include "confdefs.h"
1714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1715 egrep "memchr" >/dev/null 2>&1; then
1719 ac_cv_header_stdc=no
1725 if test $ac_cv_header_stdc = yes; then
1726 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1727 cat > conftest.$ac_ext <<EOF
1728 #line 1729 "configure"
1729 #include "confdefs.h"
1732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1733 egrep "free" >/dev/null 2>&1; then
1737 ac_cv_header_stdc=no
1743 if test $ac_cv_header_stdc = yes; then
1744 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1745 if test "$cross_compiling" = yes; then
1748 cat > conftest.$ac_ext <<EOF
1749 #line 1750 "configure"
1750 #include "confdefs.h"
1752 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1753 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1754 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1755 int main () { int i; for (i = 0; i < 256; i++)
1756 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1760 if { (eval echo configure:1761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1764 echo "configure: failed program was:" >&5
1765 cat conftest.$ac_ext >&5
1767 ac_cv_header_stdc=no
1775 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1776 if test $ac_cv_header_stdc = yes; then
1777 cat >> confdefs.h <<\EOF
1778 #define STDC_HEADERS 1
1783 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1784 echo "configure:1785: checking whether time.h and sys/time.h may both be included" >&5
1785 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1786 echo $ac_n "(cached) $ac_c" 1>&6
1788 cat > conftest.$ac_ext <<EOF
1789 #line 1790 "configure"
1790 #include "confdefs.h"
1791 #include <sys/types.h>
1792 #include <sys/time.h>
1798 if { (eval echo configure:1799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1800 ac_cv_header_time=yes
1802 echo "configure: failed program was:" >&5
1803 cat conftest.$ac_ext >&5
1805 ac_cv_header_time=no
1810 echo "$ac_t""$ac_cv_header_time" 1>&6
1811 if test $ac_cv_header_time = yes; then
1812 cat >> confdefs.h <<\EOF
1813 #define TIME_WITH_SYS_TIME 1
1818 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
1819 echo "configure:1820: checking whether string.h and strings.h may both be included" >&5
1820 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
1821 echo $ac_n "(cached) $ac_c" 1>&6
1823 cat > conftest.$ac_ext <<EOF
1824 #line 1825 "configure"
1825 #include "confdefs.h"
1827 #include <strings.h>
1832 if { (eval echo configure:1833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1834 gcc_cv_header_string=yes
1836 echo "configure: failed program was:" >&5
1837 cat conftest.$ac_ext >&5
1839 gcc_cv_header_string=no
1844 echo "$ac_t""$gcc_cv_header_string" 1>&6
1845 if test $gcc_cv_header_string = yes; then
1846 cat >> confdefs.h <<\EOF
1847 #define STRING_WITH_STRINGS 1
1852 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
1854 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1855 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1856 echo "configure:1857: checking for $ac_hdr" >&5
1857 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1858 echo $ac_n "(cached) $ac_c" 1>&6
1860 cat > conftest.$ac_ext <<EOF
1861 #line 1862 "configure"
1862 #include "confdefs.h"
1865 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1866 { (eval echo configure:1867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1867 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1868 if test -z "$ac_err"; then
1870 eval "ac_cv_header_$ac_safe=yes"
1873 echo "configure: failed program was:" >&5
1874 cat conftest.$ac_ext >&5
1876 eval "ac_cv_header_$ac_safe=no"
1880 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1881 echo "$ac_t""yes" 1>&6
1882 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1883 cat >> confdefs.h <<EOF
1884 #define $ac_tr_hdr 1
1888 echo "$ac_t""no" 1>&6
1893 # Check for thread headers.
1894 ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'`
1895 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
1896 echo "configure:1897: checking for thread.h" >&5
1897 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1898 echo $ac_n "(cached) $ac_c" 1>&6
1900 cat > conftest.$ac_ext <<EOF
1901 #line 1902 "configure"
1902 #include "confdefs.h"
1905 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1906 { (eval echo configure:1907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1907 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1908 if test -z "$ac_err"; then
1910 eval "ac_cv_header_$ac_safe=yes"
1913 echo "configure: failed program was:" >&5
1914 cat conftest.$ac_ext >&5
1916 eval "ac_cv_header_$ac_safe=no"
1920 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1921 echo "$ac_t""yes" 1>&6
1924 echo "$ac_t""no" 1>&6
1928 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
1929 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
1930 echo "configure:1931: checking for pthread.h" >&5
1931 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1932 echo $ac_n "(cached) $ac_c" 1>&6
1934 cat > conftest.$ac_ext <<EOF
1935 #line 1936 "configure"
1936 #include "confdefs.h"
1937 #include <pthread.h>
1939 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1940 { (eval echo configure:1941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1941 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1942 if test -z "$ac_err"; then
1944 eval "ac_cv_header_$ac_safe=yes"
1947 echo "configure: failed program was:" >&5
1948 cat conftest.$ac_ext >&5
1950 eval "ac_cv_header_$ac_safe=no"
1954 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1955 echo "$ac_t""yes" 1>&6
1958 echo "$ac_t""no" 1>&6
1963 # See if GNAT has been installed
1964 # Extract the first word of "gnatbind", so it can be a program name with args.
1965 set dummy gnatbind; ac_word=$2
1966 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1967 echo "configure:1968: checking for $ac_word" >&5
1968 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
1969 echo $ac_n "(cached) $ac_c" 1>&6
1971 if test -n "$gnat"; then
1972 ac_cv_prog_gnat="$gnat" # Let the user override the test.
1974 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1975 for ac_dir in $PATH; do
1976 test -z "$ac_dir" && ac_dir=.
1977 if test -f $ac_dir/$ac_word; then
1978 ac_cv_prog_gnat="yes"
1983 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat="no"
1986 gnat="$ac_cv_prog_gnat"
1987 if test -n "$gnat"; then
1988 echo "$ac_t""$gnat" 1>&6
1990 echo "$ac_t""no" 1>&6
1994 # See if the system preprocessor understands the ANSI C preprocessor
1995 # stringification operator.
1996 echo $ac_n "checking whether cpp understands the stringify operator""... $ac_c" 1>&6
1997 echo "configure:1998: checking whether cpp understands the stringify operator" >&5
1998 if eval "test \"`echo '$''{'gcc_cv_c_have_stringify'+set}'`\" = set"; then
1999 echo $ac_n "(cached) $ac_c" 1>&6
2001 cat > conftest.$ac_ext <<EOF
2002 #line 2003 "configure"
2003 #include "confdefs.h"
2007 char *test = S(foo);
2010 if { (eval echo configure:2011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2012 gcc_cv_c_have_stringify=yes
2014 echo "configure: failed program was:" >&5
2015 cat conftest.$ac_ext >&5
2017 gcc_cv_c_have_stringify=no
2022 echo "$ac_t""$gcc_cv_c_have_stringify" 1>&6
2023 if test $gcc_cv_c_have_stringify = yes; then
2024 cat >> confdefs.h <<\EOF
2025 #define HAVE_CPP_STRINGIFY 1
2030 # Use <inttypes.h> only if it exists,
2031 # doesn't clash with <sys/types.h>, and declares intmax_t.
2032 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2033 echo "configure:2034: checking for inttypes.h" >&5
2034 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2035 echo $ac_n "(cached) $ac_c" 1>&6
2037 cat > conftest.$ac_ext <<EOF
2038 #line 2039 "configure"
2039 #include "confdefs.h"
2040 #include <sys/types.h>
2041 #include <inttypes.h>
2046 if { (eval echo configure:2047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2048 gcc_cv_header_inttypes_h=yes
2050 echo "configure: failed program was:" >&5
2051 cat conftest.$ac_ext >&5
2053 gcc_cv_header_inttypes_h=no
2058 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2059 if test $gcc_cv_header_inttypes_h = yes; then
2060 cat >> confdefs.h <<\EOF
2061 #define HAVE_INTTYPES_H 1
2066 for ac_func in strtoul bsearch strerror putenv popen bcopy bzero bcmp \
2067 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
2068 sysconf isascii gettimeofday strsignal
2070 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2071 echo "configure:2072: checking for $ac_func" >&5
2072 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2073 echo $ac_n "(cached) $ac_c" 1>&6
2075 cat > conftest.$ac_ext <<EOF
2076 #line 2077 "configure"
2077 #include "confdefs.h"
2078 /* System header to define __stub macros and hopefully few prototypes,
2079 which can conflict with char $ac_func(); below. */
2081 /* Override any gcc2 internal prototype to avoid an error. */
2082 /* We use char because int might match the return type of a gcc2
2083 builtin and then its argument prototype would still apply. */
2088 /* The GNU C library defines this for functions which it implements
2089 to always fail with ENOSYS. Some functions are actually named
2090 something starting with __ and the normal name is an alias. */
2091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2099 if { (eval echo configure:2100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2101 eval "ac_cv_func_$ac_func=yes"
2103 echo "configure: failed program was:" >&5
2104 cat conftest.$ac_ext >&5
2106 eval "ac_cv_func_$ac_func=no"
2111 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2112 echo "$ac_t""yes" 1>&6
2113 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2114 cat >> confdefs.h <<EOF
2115 #define $ac_tr_func 1
2119 echo "$ac_t""no" 1>&6
2124 # Make sure wchar_t is available
2125 #AC_CHECK_TYPE(wchar_t, unsigned int)
2127 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2128 echo "configure:2129: checking for vprintf" >&5
2129 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2130 echo $ac_n "(cached) $ac_c" 1>&6
2132 cat > conftest.$ac_ext <<EOF
2133 #line 2134 "configure"
2134 #include "confdefs.h"
2135 /* System header to define __stub macros and hopefully few prototypes,
2136 which can conflict with char vprintf(); below. */
2138 /* Override any gcc2 internal prototype to avoid an error. */
2139 /* We use char because int might match the return type of a gcc2
2140 builtin and then its argument prototype would still apply. */
2145 /* The GNU C library defines this for functions which it implements
2146 to always fail with ENOSYS. Some functions are actually named
2147 something starting with __ and the normal name is an alias. */
2148 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2156 if { (eval echo configure:2157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2158 eval "ac_cv_func_vprintf=yes"
2160 echo "configure: failed program was:" >&5
2161 cat conftest.$ac_ext >&5
2163 eval "ac_cv_func_vprintf=no"
2168 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2169 echo "$ac_t""yes" 1>&6
2170 cat >> confdefs.h <<\EOF
2171 #define HAVE_VPRINTF 1
2175 echo "$ac_t""no" 1>&6
2178 if test "$ac_cv_func_vprintf" != yes; then
2179 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2180 echo "configure:2181: checking for _doprnt" >&5
2181 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2182 echo $ac_n "(cached) $ac_c" 1>&6
2184 cat > conftest.$ac_ext <<EOF
2185 #line 2186 "configure"
2186 #include "confdefs.h"
2187 /* System header to define __stub macros and hopefully few prototypes,
2188 which can conflict with char _doprnt(); below. */
2190 /* Override any gcc2 internal prototype to avoid an error. */
2191 /* We use char because int might match the return type of a gcc2
2192 builtin and then its argument prototype would still apply. */
2197 /* The GNU C library defines this for functions which it implements
2198 to always fail with ENOSYS. Some functions are actually named
2199 something starting with __ and the normal name is an alias. */
2200 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2208 if { (eval echo configure:2209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2210 eval "ac_cv_func__doprnt=yes"
2212 echo "configure: failed program was:" >&5
2213 cat conftest.$ac_ext >&5
2215 eval "ac_cv_func__doprnt=no"
2220 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2221 echo "$ac_t""yes" 1>&6
2222 cat >> confdefs.h <<\EOF
2223 #define HAVE_DOPRNT 1
2227 echo "$ac_t""no" 1>&6
2234 if test $ac_cv_func_vprintf != yes ; then
2236 if test $ac_cv_func__doprnt != yes ; then
2243 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2244 echo "configure:2245: checking whether the printf functions support %p" >&5
2245 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2246 echo $ac_n "(cached) $ac_c" 1>&6
2248 if test "$cross_compiling" = yes; then
2249 gcc_cv_func_printf_ptr=no
2251 cat > conftest.$ac_ext <<EOF
2252 #line 2253 "configure"
2253 #include "confdefs.h"
2259 char *p = buf, *q = NULL;
2260 sprintf(buf, "%p", p);
2261 sscanf(buf, "%p", &q);
2265 if { (eval echo configure:2266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2267 gcc_cv_func_printf_ptr=yes
2269 echo "configure: failed program was:" >&5
2270 cat conftest.$ac_ext >&5
2272 gcc_cv_func_printf_ptr=no
2277 rm -f core core.* *.core
2280 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2281 if test $gcc_cv_func_printf_ptr = yes ; then
2282 cat >> confdefs.h <<\EOF
2283 #define HAVE_PRINTF_PTR 1
2288 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2289 echo "configure:2290: checking for pid_t" >&5
2290 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2291 echo $ac_n "(cached) $ac_c" 1>&6
2293 cat > conftest.$ac_ext <<EOF
2294 #line 2295 "configure"
2295 #include "confdefs.h"
2296 #include <sys/types.h>
2302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2303 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2305 ac_cv_type_pid_t=yes
2313 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2314 if test $ac_cv_type_pid_t = no; then
2315 cat >> confdefs.h <<\EOF
2321 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2322 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2323 echo "configure:2324: checking for vfork.h" >&5
2324 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2325 echo $ac_n "(cached) $ac_c" 1>&6
2327 cat > conftest.$ac_ext <<EOF
2328 #line 2329 "configure"
2329 #include "confdefs.h"
2332 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2333 { (eval echo configure:2334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2334 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2335 if test -z "$ac_err"; then
2337 eval "ac_cv_header_$ac_safe=yes"
2340 echo "configure: failed program was:" >&5
2341 cat conftest.$ac_ext >&5
2343 eval "ac_cv_header_$ac_safe=no"
2347 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2348 echo "$ac_t""yes" 1>&6
2349 cat >> confdefs.h <<\EOF
2350 #define HAVE_VFORK_H 1
2354 echo "$ac_t""no" 1>&6
2357 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2358 echo "configure:2359: checking for working vfork" >&5
2359 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2360 echo $ac_n "(cached) $ac_c" 1>&6
2362 if test "$cross_compiling" = yes; then
2363 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2364 echo "configure:2365: checking for vfork" >&5
2365 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2366 echo $ac_n "(cached) $ac_c" 1>&6
2368 cat > conftest.$ac_ext <<EOF
2369 #line 2370 "configure"
2370 #include "confdefs.h"
2371 /* System header to define __stub macros and hopefully few prototypes,
2372 which can conflict with char vfork(); below. */
2374 /* Override any gcc2 internal prototype to avoid an error. */
2375 /* We use char because int might match the return type of a gcc2
2376 builtin and then its argument prototype would still apply. */
2381 /* The GNU C library defines this for functions which it implements
2382 to always fail with ENOSYS. Some functions are actually named
2383 something starting with __ and the normal name is an alias. */
2384 #if defined (__stub_vfork) || defined (__stub___vfork)
2392 if { (eval echo configure:2393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2394 eval "ac_cv_func_vfork=yes"
2396 echo "configure: failed program was:" >&5
2397 cat conftest.$ac_ext >&5
2399 eval "ac_cv_func_vfork=no"
2404 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2405 echo "$ac_t""yes" 1>&6
2408 echo "$ac_t""no" 1>&6
2411 ac_cv_func_vfork_works=$ac_cv_func_vfork
2413 cat > conftest.$ac_ext <<EOF
2414 #line 2415 "configure"
2415 #include "confdefs.h"
2416 /* Thanks to Paul Eggert for this test. */
2418 #include <sys/types.h>
2419 #include <sys/stat.h>
2420 #ifdef HAVE_UNISTD_H
2426 /* On some sparc systems, changes by the child to local and incoming
2427 argument registers are propagated back to the parent.
2428 The compiler is told about this with #include <vfork.h>,
2429 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2430 Test for this by using a static variable whose address
2431 is put into a register that is clobbered by the vfork. */
2434 sparc_address_test (int arg)
2436 sparc_address_test (arg) int arg;
2454 pid_t parent = getpid ();
2457 sparc_address_test ();
2462 /* Here is another test for sparc vfork register problems.
2463 This test uses lots of local variables, at least
2464 as many local variables as main has allocated so far
2465 including compiler temporaries. 4 locals are enough for
2466 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2467 A buggy compiler should reuse the register of parent
2468 for one of the local variables, since it will think that
2469 parent can't possibly be used any more in this routine.
2470 Assigning to the local variable will thus munge parent
2471 in the parent process. */
2473 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2474 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2475 /* Convince the compiler that p..p7 are live; otherwise, it might
2476 use the same hardware register for all 8 local variables. */
2477 if (p != p1 || p != p2 || p != p3 || p != p4
2478 || p != p5 || p != p6 || p != p7)
2481 /* On some systems (e.g. IRIX 3.3),
2482 vfork doesn't separate parent from child file descriptors.
2483 If the child closes a descriptor before it execs or exits,
2484 this munges the parent's descriptor as well.
2485 Test for this by closing stdout in the child. */
2486 _exit(close(fileno(stdout)) != 0);
2491 while (wait(&status) != child)
2494 /* Was there some problem with vforking? */
2497 /* Did the child fail? (This shouldn't happen.) */
2500 /* Did the vfork/compiler bug occur? */
2501 || parent != getpid()
2503 /* Did the file descriptor bug occur? */
2504 || fstat(fileno(stdout), &st) != 0
2509 if { (eval echo configure:2510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2511 ac_cv_func_vfork_works=yes
2513 echo "configure: failed program was:" >&5
2514 cat conftest.$ac_ext >&5
2516 ac_cv_func_vfork_works=no
2523 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2524 if test $ac_cv_func_vfork_works = no; then
2525 cat >> confdefs.h <<\EOF
2532 for ac_func in malloc realloc calloc free bcopy bzero bcmp \
2533 index rindex getenv atol sbrk abort atof strerror getcwd getwd \
2536 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2537 echo "configure:2538: checking whether $ac_func must be declared" >&5
2538 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2539 echo $ac_n "(cached) $ac_c" 1>&6
2541 cat > conftest.$ac_ext <<EOF
2542 #line 2543 "configure"
2543 #include "confdefs.h"
2546 #ifdef STRING_WITH_STRINGS
2547 # include <string.h>
2548 # include <strings.h>
2550 # ifdef HAVE_STRING_H
2551 # include <string.h>
2553 # ifdef HAVE_STRINGS_H
2554 # include <strings.h>
2558 #ifdef HAVE_STDLIB_H
2561 #ifdef HAVE_UNISTD_H
2565 #define rindex strrchr
2568 #define index strchr
2572 char *(*pfn) = (char *(*)) $ac_func
2575 if { (eval echo configure:2576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2577 eval "gcc_cv_decl_needed_$ac_func=no"
2579 echo "configure: failed program was:" >&5
2580 cat conftest.$ac_ext >&5
2582 eval "gcc_cv_decl_needed_$ac_func=yes"
2587 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2588 echo "$ac_t""yes" 1>&6
2589 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2590 cat >> confdefs.h <<EOF
2591 #define $gcc_tr_decl 1
2595 echo "$ac_t""no" 1>&6
2601 for ac_func in getrlimit setrlimit
2603 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2604 echo "configure:2605: checking whether $ac_func must be declared" >&5
2605 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2606 echo $ac_n "(cached) $ac_c" 1>&6
2608 cat > conftest.$ac_ext <<EOF
2609 #line 2610 "configure"
2610 #include "confdefs.h"
2613 #ifdef STRING_WITH_STRINGS
2614 # include <string.h>
2615 # include <strings.h>
2617 # ifdef HAVE_STRING_H
2618 # include <string.h>
2620 # ifdef HAVE_STRINGS_H
2621 # include <strings.h>
2625 #ifdef HAVE_STDLIB_H
2628 #ifdef HAVE_UNISTD_H
2632 #define rindex strrchr
2635 #define index strchr
2637 #include <sys/types.h>
2638 #ifdef HAVE_SYS_RESOURCE_H
2639 #include <sys/resource.h>
2643 char *(*pfn) = (char *(*)) $ac_func
2646 if { (eval echo configure:2647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2648 eval "gcc_cv_decl_needed_$ac_func=no"
2650 echo "configure: failed program was:" >&5
2651 cat conftest.$ac_ext >&5
2653 eval "gcc_cv_decl_needed_$ac_func=yes"
2658 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2659 echo "$ac_t""yes" 1>&6
2660 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2661 cat >> confdefs.h <<EOF
2662 #define $gcc_tr_decl 1
2666 echo "$ac_t""no" 1>&6
2672 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2673 echo "configure:2674: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2674 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2675 echo $ac_n "(cached) $ac_c" 1>&6
2677 cat > conftest.$ac_ext <<EOF
2678 #line 2679 "configure"
2679 #include "confdefs.h"
2680 #include <sys/types.h>
2682 /* NetBSD declares sys_siglist in unistd.h. */
2683 #ifdef HAVE_UNISTD_H
2687 char *msg = *(sys_siglist + 1);
2690 if { (eval echo configure:2691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2692 ac_cv_decl_sys_siglist=yes
2694 echo "configure: failed program was:" >&5
2695 cat conftest.$ac_ext >&5
2697 ac_cv_decl_sys_siglist=no
2702 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2703 if test $ac_cv_decl_sys_siglist = yes; then
2704 cat >> confdefs.h <<\EOF
2705 #define SYS_SIGLIST_DECLARED 1
2719 build_install_headers_dir=install-headers-tar
2724 host_truncate_target=
2727 # Decode the host machine, then the target machine.
2728 # For the host machine, we save the xm_file variable as host_xm_file;
2729 # then we decode the target machine and forget everything else
2730 # that came from the host machine.
2731 for machine in $build $host $target; do
2745 # Set this to force installation and use of collect2.
2747 # Set this to override the default target model.
2749 # Set this to control which fixincludes program to use.
2750 if test x$fast_fixinc != xyes; then
2751 fixincludes=fixincludes
2752 else fixincludes=fixinc.sh ; fi
2753 # Set this to control how the header file directory is installed.
2754 install_headers_dir=install-headers-tar
2755 # Set this to a non-empty list of args to pass to cpp if the target
2756 # wants its .md file passed through cpp.
2758 # Set this if directory names should be truncated to 14 characters.
2760 # Set this if gdb needs a dir command with `dirname $out_file`
2761 gdb_needs_out_file_path=
2762 # Set this if the build machine requires executables to have a
2765 # Set this to control which thread package will be used.
2767 # Reinitialize these from the flag values every loop pass, since some
2768 # configure entries modify them.
2770 gnu_ld="$gnu_ld_flag"
2771 enable_threads=$enable_threads_flag
2773 # Set default cpu_type, tm_file and xm_file so it can be updated in
2774 # each machine entry.
2775 cpu_type=`echo $machine | sed 's/-.*$//'`
2809 tm_file=${cpu_type}/${cpu_type}.h
2810 xm_file=${cpu_type}/xm-${cpu_type}.h
2812 # Set the default macros to define for GNU/Linux systems.
2815 xm_defines="HAVE_ATEXIT POSIX BSTRING"
2820 # Support site-specific machine types.
2822 cpu_type=`echo $machine | sed -e 's/-.*//'`
2823 rest=`echo $machine | sed -e "s/$cpu_type-//"`
2824 xm_file=${cpu_type}/xm-$rest.h
2825 tm_file=${cpu_type}/$rest.h
2826 if test -f $srcdir/config/${cpu_type}/x-$rest; \
2827 then xmake_file=${cpu_type}/x-$rest; \
2830 if test -f $srcdir/config/${cpu_type}/t-$rest; \
2831 then tmake_file=${cpu_type}/t-$rest; \
2837 a29k-*-bsd* | a29k-*-sym1*)
2838 tm_file="${tm_file} a29k/unix.h"
2840 xmake_file=a29k/x-unix
2843 a29k-*-udi | a29k-*-coff)
2844 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
2845 tmake_file=a29k/t-a29kbare
2848 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
2849 tmake_file=a29k/t-vx29k
2850 extra_parts="crtbegin.o crtend.o"
2851 thread_file='vxworks'
2853 a29k-*-*) # Default a29k environment.
2856 alpha*-*-linux-gnuecoff*)
2857 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
2858 target_cpu_default="MASK_GAS"
2863 alpha*-*-linux-gnulibc1*)
2864 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
2865 target_cpu_default="MASK_GAS"
2866 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
2867 extra_parts="crtbegin.o crtend.o"
2868 fixincludes=fixinc.wrap
2871 if test x$enable_threads = xyes; then
2875 alpha*-*-linux-gnu*)
2876 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
2877 target_cpu_default="MASK_GAS"
2878 tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
2879 extra_parts="crtbegin.o crtend.o"
2881 fixincludes=Makefile.in
2883 if test x$enable_threads = xyes; then
2888 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsdl-elf.h"
2889 target_cpu_default="MASK_GAS"
2890 tmake_file="alpha/t-crtbe"
2891 extra_parts="crtbegin.o crtend.o"
2893 fixincludes=fixinc.wrap
2898 if test x$stabs = xyes
2900 tm_file="${tm_file} dbx.h"
2902 if test x$gas != xyes
2904 extra_passes="mips-tfile mips-tdump"
2909 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
2912 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
2915 tm_file="${tm_file} alpha/osf.h"
2916 # Some versions of OSF4 (specifically X4.0-9 296.7) have
2917 # a broken tar, so we use cpio instead.
2918 install_headers_dir=install-headers-cpio
2922 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
2923 target_cpu_default=MASK_SUPPORT_ARCH
2928 tm_file="${tm_file} dbx.h alpha/vxworks.h"
2931 extra_passes="mips-tfile mips-tdump"
2936 tm_file="${tm_file} alpha/win-nt.h"
2937 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
2938 tmake_file=t-libc-ok
2939 xmake_file=winnt/x-winnt
2940 extra_host_objs=oldnames.o
2941 extra_gcc_objs="spawnv.o oldnames.o"
2942 fixincludes=fixinc.winnt
2943 if test x$gnu_ld != xyes
2945 extra_programs=ld.exe
2947 if test x$enable_threads = xyes; then
2953 xm_file="${xm_file} alpha/xm-vms.h"
2954 tmake_file=alpha/t-vms
2955 fixincludes=Makefile.in
2958 extra_parts="crtinit.o crtfini.o"
2960 arm-*-coff* | armel-*-coff*)
2962 tmake_file=arm/t-bare
2964 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
2965 tm_file=arm/riscix1-1.h
2968 arm-*-riscix*) # Acorn RISC machine
2969 if test x$gas = xyes
2971 tm_file=arm/rix-gas.h
2973 tm_file=arm/riscix.h
2975 xmake_file=arm/x-riscix
2976 tmake_file=arm/t-riscix
2979 arm-semi-aout | armel-semi-aout)
2981 tmake_file=arm/t-semi
2982 fixincludes=Makefile.in # There is nothing to fix
2984 arm-semi-aof | armel-semi-aof)
2985 tm_file=arm/semiaof.h
2986 tmake_file=arm/t-semiaof
2987 fixincludes=Makefile.in # There is nothing to fix
2990 tm_file=arm/netbsd.h
2991 xm_file="arm/xm-netbsd.h ${xm_file}"
2992 tmake_file="t-netbsd arm/t-netbsd"
2993 # On NetBSD, the headers are already okay, except for math.h.
2994 fixincludes=fixinc.wrap
2996 arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
2999 tm_file=arm/linux-aout.h
3000 tmake_file=arm/t-linux
3001 fixincludes=Makefile.in
3004 arm*-*-linux-gnu*) # ARM GNU/Linux with ELF
3005 xm_file=arm/xm-linux.h
3009 tm_file=arm/linux-elf26.h
3012 tm_file=arm/linux-elf.h
3015 tmake_file="t-linux arm/t-linux"
3016 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3017 fixincludes=Makefile.in # Nothing to fix
3022 tmake_file=arm/t-bare
3025 tm_file=arm/unknown-elf.h
3026 tmake_file=arm/t-arm-elf
3028 c1-convex-*) # Convex C1
3029 target_cpu_default=1
3031 fixincludes=Makefile.in
3033 c2-convex-*) # Convex C2
3034 target_cpu_default=2
3036 fixincludes=Makefile.in
3039 target_cpu_default=4
3041 fixincludes=Makefile.in
3044 target_cpu_default=8
3046 fixincludes=Makefile.in
3049 target_cpu_default=16
3051 fixincludes=Makefile.in
3055 tmake_file=c4x/t-c4x
3057 clipper-intergraph-clix*)
3058 tm_file="${tm_file} svr3.h clipper/clix.h"
3059 xm_file=clipper/xm-clix.h
3060 xmake_file=clipper/x-clix
3061 extra_headers=va-clipper.h
3062 extra_parts="crtbegin.o crtend.o"
3063 install_headers_dir=install-headers-cpio
3070 # This hasn't been upgraded to GCC 2.
3071 # fx80-alliant-*) # Alliant FX/80
3077 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
3078 xm_file=pa/xm-papro.h
3082 target_cpu_default=1
3083 tm_file="${tm_file} pa/pa-osf.h"
3085 fixincludes=Makefile.in
3088 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
3089 xm_file=pa/xm-papro.h
3093 tm_file="${tm_file} pa/pa-osf.h"
3095 fixincludes=Makefile.in
3098 target_cpu_default=1
3100 fixincludes=Makefile.in
3104 fixincludes=Makefile.in
3107 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
3108 xm_file=pa/xm-pahpux.h
3109 xmake_file=pa/x-pa-hpux
3110 if test x$gas = xyes
3112 tm_file="${tm_file} pa/gas.h"
3114 install_headers_dir=install-headers-cpio
3117 hppa1.0-*-hpux8.0[0-2]*)
3118 tm_file="${tm_file} pa/pa-hpux.h"
3119 xm_file=pa/xm-pahpux.h
3120 xmake_file=pa/x-pa-hpux
3121 if test x$gas = xyes
3123 tm_file="${tm_file} pa/pa-gas.h"
3125 tm_file="pa/pa-oldas.h ${tm_file}"
3127 install_headers_dir=install-headers-cpio
3130 hppa1.1-*-hpux8.0[0-2]*)
3131 target_cpu_default=1
3132 tm_file="${tm_file} pa/pa-hpux.h"
3133 xm_file=pa/xm-pahpux.h
3134 xmake_file=pa/x-pa-hpux
3135 if test x$gas = xyes
3137 tm_file="${tm_file} pa/pa-gas.h"
3139 tm_file="pa/pa-oldas.h ${tm_file}"
3141 install_headers_dir=install-headers-cpio
3145 target_cpu_default=1
3146 tm_file="${tm_file} pa/pa-hpux.h"
3147 xm_file=pa/xm-pahpux.h
3148 xmake_file=pa/x-pa-hpux
3149 if test x$gas = xyes
3151 tm_file="${tm_file} pa/pa-gas.h"
3153 install_headers_dir=install-headers-cpio
3157 tm_file="${tm_file} pa/pa-hpux.h"
3158 xm_file=pa/xm-pahpux.h
3159 xmake_file=pa/x-pa-hpux
3160 if test x$gas = xyes
3162 tm_file="${tm_file} pa/pa-gas.h"
3164 install_headers_dir=install-headers-cpio
3168 target_cpu_default=1
3169 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
3170 xm_file=pa/xm-pahpux.h
3171 xmake_file=pa/x-pa-hpux
3173 if test x$gas = xyes
3175 tm_file="${tm_file} pa/pa-gas.h"
3177 if test x$enable_threads = x; then
3178 enable_threads=$have_pthread_h
3180 if test x$enable_threads = xyes; then
3182 tmake_file="${tmake_file} pa/t-dce-thr"
3184 install_headers_dir=install-headers-cpio
3188 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
3189 xm_file=pa/xm-pahpux.h
3190 xmake_file=pa/x-pa-hpux
3191 if test x$gas = xyes
3193 tm_file="${tm_file} pa/pa-gas.h"
3195 if test x$enable_threads = x; then
3196 enable_threads=$have_pthread_h
3198 if test x$enable_threads = xyes; then
3200 tmake_file="${tmake_file} pa/t-dce-thr"
3202 install_headers_dir=install-headers-cpio
3206 target_cpu_default=1
3207 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
3208 xm_file=pa/xm-pahpux.h
3209 xmake_file=pa/x-pa-hpux
3210 if test x$gas = xyes
3212 tm_file="${tm_file} pa/pa-gas.h"
3214 install_headers_dir=install-headers-cpio
3218 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
3219 xm_file=pa/xm-pahpux.h
3220 xmake_file=pa/x-pa-hpux
3221 if test x$gas = xyes
3223 tm_file="${tm_file} pa/pa-gas.h"
3225 install_headers_dir=install-headers-cpio
3229 target_cpu_default=1
3230 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
3231 xm_file=pa/xm-pahpux.h
3232 xmake_file=pa/x-pa-hpux
3233 if test x$gas = xyes
3235 tm_file="${tm_file} pa/pa-gas.h"
3237 install_headers_dir=install-headers-cpio
3241 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
3242 xm_file=pa/xm-pahpux.h
3243 xmake_file=pa/x-pa-hpux
3244 if test x$gas = xyes
3246 tm_file="${tm_file} pa/pa-gas.h"
3248 install_headers_dir=install-headers-cpio
3252 target_cpu_default=1
3254 fixincludes=Makefile.in
3258 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
3259 if test x$gas = xyes
3261 tm_file=i386/aix386.h
3262 extra_parts="crtbegin.o crtend.o"
3263 tmake_file=i386/t-crtstuff
3265 tm_file=i386/aix386ng.h
3268 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
3270 xmake_file=i386/x-aix
3272 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
3273 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3274 xm_defines="USG POSIX SMALL_ARG_MAX"
3275 xmake_file=i386/x-ncr3000
3276 if test x$stabs = xyes -a x$gas = xyes
3278 tm_file=i386/sysv4gdb.h
3280 tm_file=i386/sysv4.h
3282 extra_parts="crtbegin.o crtend.o"
3283 tmake_file=i386/t-crtpic
3287 xm_file=i386/xm-next.h
3288 tmake_file=i386/t-next
3289 xmake_file=i386/x-next
3290 extra_objs=nextstep.o
3291 extra_parts="crtbegin.o crtend.o"
3292 if test x$enable_threads = xyes; then
3296 i[34567]86-sequent-bsd*) # 80386 from Sequent
3298 if test x$gas = xyes
3300 tm_file=i386/seq-gas.h
3302 tm_file=i386/sequent.h
3305 i[34567]86-sequent-ptx1*)
3306 xm_defines="USG SVR3"
3307 xmake_file=i386/x-sysv3
3308 tm_file=i386/seq-sysv3.h
3309 tmake_file=i386/t-crtstuff
3310 fixincludes=fixinc.ptx
3311 extra_parts="crtbegin.o crtend.o"
3312 install_headers_dir=install-headers-cpio
3314 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
3315 xm_defines="USG SVR3"
3316 xmake_file=i386/x-sysv3
3317 tm_file=i386/seq2-sysv3.h
3318 tmake_file=i386/t-crtstuff
3319 extra_parts="crtbegin.o crtend.o"
3320 fixincludes=fixinc.ptx
3321 install_headers_dir=install-headers-cpio
3323 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
3324 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3325 xm_defines="USG POSIX SMALL_ARG_MAX"
3327 tm_file=i386/ptx4-i.h
3329 extra_parts="crtbegin.o crtend.o"
3330 fixincludes=fixinc.ptx
3331 install_headers_dir=install-headers-cpio
3333 i386-sun-sunos*) # Sun i386 roadrunner
3338 i[34567]86-wrs-vxworks*)
3339 tm_file=i386/vxi386.h
3340 tmake_file=i386/t-i386bare
3343 tm_file=i386/i386-aout.h
3344 tmake_file=i386/t-i386bare
3346 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
3347 tm_file=i386/bsd386.h
3348 # tmake_file=t-libc-ok
3351 tm_file=i386/386bsd.h
3352 # tmake_file=t-libc-ok
3353 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
3356 i[34567]86-*-freebsdelf*)
3357 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
3358 # On FreeBSD, the headers are already ok, except for math.h.
3359 fixincludes=fixinc.wrap
3360 tmake_file=i386/t-freebsd
3365 i[34567]86-*-freebsd*)
3366 tm_file=i386/freebsd.h
3367 # On FreeBSD, the headers are already ok, except for math.h.
3368 fixincludes=fixinc.wrap
3369 tmake_file=i386/t-freebsd
3371 # We are hoping OpenBSD is still close enough to NetBSD that we can
3372 # share the configurations.
3373 i[34567]86-*-netbsd* | i[34567]86-*-openbsd*)
3374 tm_file=i386/netbsd.h
3375 # On NetBSD, the headers are already okay, except for math.h.
3376 fixincludes=fixinc.wrap
3380 tm_file=i386/i386-coff.h
3381 tmake_file=i386/t-i386bare
3383 i[34567]86-*-isc*) # 80386 running ISC system
3384 xm_file="${xm_file} i386/xm-isc.h"
3385 xm_defines="USG SVR3"
3387 i[34567]86-*-isc[34]*)
3388 xmake_file=i386/x-isc3
3391 xmake_file=i386/x-isc
3394 if test x$gas = xyes -a x$stabs = xyes
3396 tm_file=i386/iscdbx.h
3397 tmake_file=i386/t-svr3dbx
3398 extra_parts="svr3.ifile svr3z.ifile"
3400 tm_file=i386/isccoff.h
3401 tmake_file=i386/t-crtstuff
3402 extra_parts="crtbegin.o crtend.o"
3404 install_headers_dir=install-headers-cpio
3406 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
3408 xmake_file=x-linux-aout
3409 tmake_file="t-linux-aout i386/t-crtstuff"
3410 tm_file=i386/linux-oldld.h
3411 fixincludes=Makefile.in #On Linux, the headers are ok already.
3415 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
3416 xmake_file=x-linux-aout
3417 tmake_file="t-linux-aout i386/t-crtstuff"
3418 tm_file=i386/linux-aout.h
3419 fixincludes=Makefile.in #On Linux, the headers are ok already.
3423 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
3424 # GNU/Linux C library 5
3426 tm_file=i386/linux.h
3427 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
3428 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3429 fixincludes=Makefile.in #On Linux, the headers are ok already.
3432 if test x$enable_threads = xyes; then
3433 thread_file='single'
3436 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
3437 # aka GNU/Linux C library 6
3439 tm_file=i386/linux.h
3440 tmake_file="t-linux i386/t-crtstuff"
3441 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3442 fixincludes=Makefile.in #On Linux, the headers are ok already.
3445 if test x$enable_threads = xyes; then
3451 i[34567]86-go32-msdos | i[34567]86-*-go32*)
3452 xm_file=i386/xm-go32.h
3454 tmake_file=i386/t-go32
3456 i[34567]86-pc-msdosdjgpp*)
3457 xm_file=i386/xm-go32.h
3459 tmake_file=i386/t-go32
3469 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
3471 tmake_file=t-libc-ok
3472 fixincludes=Makefile.in
3476 i[34567]86-*-lynxos*)
3477 if test x$gas = xyes
3481 tm_file=i386/lynx-ng.h
3483 xm_file=i386/xm-lynx.h
3484 tmake_file=i386/t-i386bare
3489 # tmake_file=t-libc-ok
3492 i[34567]86-*-osfrose*) # 386 using OSF/rose
3493 if test x$elf = xyes
3495 tm_file=i386/osfelf.h
3498 tm_file=i386/osfrose.h
3501 xm_file="i386/xm-osf.h ${xm_file}"
3502 xmake_file=i386/x-osfrose
3503 tmake_file=i386/t-osf
3504 extra_objs=halfpic.o
3506 i[34567]86-go32-rtems*)
3508 xm_file=i386/xm-go32.h
3509 tm_file=i386/go32-rtems.h
3510 tmake_file="i386/t-go32 t-rtems"
3512 i[34567]86-*-rtemself*)
3514 tm_file=i386/rtemself.h
3515 tmake_file="i386/t-i386bare t-rtems"
3517 i[34567]86-*-rtems*)
3519 tm_file=i386/rtems.h
3520 tmake_file="i386/t-i386bare t-rtems"
3522 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
3523 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
3524 xm_defines="USG SVR3"
3525 xmake_file=i386/x-sco5
3526 fixincludes=fixinc.sco
3527 install_headers_dir=install-headers-cpio
3529 if test x$gas = xyes
3531 tm_file="i386/sco5gas.h ${tm_file}"
3532 tmake_file=i386/t-sco5gas
3534 tmake_file=i386/t-sco5
3536 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3538 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
3539 xm_file="${xm_file} i386/xm-sco.h"
3540 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
3541 xmake_file=i386/x-sco4
3542 fixincludes=fixinc.sco
3543 install_headers_dir=install-headers-cpio
3544 if test x$stabs = xyes
3546 tm_file=i386/sco4dbx.h
3547 tmake_file=i386/t-svr3dbx
3548 extra_parts="svr3.ifile svr3z.rfile"
3551 tmake_file=i386/t-crtstuff
3552 extra_parts="crtbegin.o crtend.o"
3556 i[34567]86-*-sco*) # 80386 running SCO system
3557 xm_file=i386/xm-sco.h
3558 xmake_file=i386/x-sco
3559 install_headers_dir=install-headers-cpio
3560 if test x$stabs = xyes
3562 tm_file=i386/scodbx.h
3563 tmake_file=i386/t-svr3dbx
3564 extra_parts="svr3.ifile svr3z.rfile"
3567 extra_parts="crtbegin.o crtend.o"
3568 tmake_file=i386/t-crtstuff
3572 i[34567]86-*-solaris2*)
3573 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3574 xm_defines="USG POSIX SMALL_ARG_MAX"
3575 if test x$stabs = xyes
3577 tm_file=i386/sol2dbg.h
3581 tmake_file=i386/t-sol2
3582 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3586 fixincludes=fixinc.svr4;;
3588 fixincludes=fixinc.wrap;;
3590 if test x$enable_threads = xyes; then
3591 thread_file='solaris'
3594 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
3595 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
3596 xm_defines="USG POSIX"
3597 tm_file=i386/sysv4.h
3598 if test x$stabs = xyes
3600 tm_file="${tm_file} dbx.h"
3602 tmake_file=i386/t-crtpic
3604 extra_parts="crtbegin.o crtend.o"
3605 fixincludes=fixinc.svr4
3607 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
3608 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3609 xm_defines="USG POSIX SMALL_ARG_MAX"
3610 tm_file=i386/sysv4.h
3611 if test x$stabs = xyes
3613 tm_file="${tm_file} dbx.h"
3615 tmake_file=i386/t-crtpic
3617 extra_parts="crtbegin.o crtend.o"
3619 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
3620 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
3621 xm_defines="USG POSIX"
3623 tmake_file="i386/t-crtpic i386/t-udk"
3625 extra_parts="crtbegin.o crtend.o"
3626 fixincludes="fixinc.svr4"
3628 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
3630 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
3631 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
3632 fixincludes=Makefile.in #Don't do it on OSF/1
3633 if test x$stabs = xyes
3635 tm_file=i386/osf1elfgdb.h
3637 tm_file=i386/osf1elf.h
3639 tmake_file=i386/t-osf1elf
3640 xmake_file=i386/x-osf1elf
3641 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3643 i[34567]86-*-sysv*) # Intel 80386's running system V
3644 xm_defines="USG SVR3"
3645 xmake_file=i386/x-sysv3
3646 if test x$gas = xyes
3648 if test x$stabs = xyes
3650 tm_file=i386/svr3dbx.h
3651 tmake_file=i386/t-svr3dbx
3652 extra_parts="svr3.ifile svr3z.rfile"
3654 tm_file=i386/svr3gas.h
3655 extra_parts="crtbegin.o crtend.o"
3656 tmake_file=i386/t-crtstuff
3659 tm_file=i386/sysv3.h
3660 extra_parts="crtbegin.o crtend.o"
3661 tmake_file=i386/t-crtstuff
3664 i386-*-vsta) # Intel 80386's running VSTa kernel
3665 xm_file="${xm_file} i386/xm-vsta.h"
3667 tmake_file=i386/t-vsta
3668 xmake_file=i386/x-vsta
3671 xm_file="${xm_file} i386/xm-cygwin32.h"
3672 tmake_file=i386/t-cygwin32
3673 tm_file=i386/win32.h
3674 xmake_file=i386/x-cygwin32
3676 fixincludes=Makefile.in
3677 if test x$enable_threads = xyes; then
3682 i[34567]86-*-pe | i[34567]86-*-cygwin32)
3683 xm_file="${xm_file} i386/xm-cygwin32.h"
3684 tmake_file=i386/t-cygwin32
3685 tm_file=i386/cygwin32.h
3686 xmake_file=i386/x-cygwin32
3688 fixincludes=Makefile.in
3689 if test x$enable_threads = xyes; then
3694 i[34567]86-*-mingw32*)
3695 tm_file=i386/mingw32.h
3696 xm_file="${xm_file} i386/xm-mingw32.h"
3697 tmake_file="i386/t-cygwin32 i386/t-mingw32"
3699 xmake_file=i386/x-cygwin32
3700 fixincludes=Makefile.in
3701 if test x$enable_threads = xyes; then
3708 *minwg32crt* | *mingw32*)
3709 tm_file="${tm_file} i386/crtdll.h"
3713 i[34567]86-*-winnt3*)
3714 tm_file=i386/win-nt.h
3715 out_file=i386/i386.c
3716 xm_file="xm-winnt.h ${xm_file}"
3717 xmake_file=winnt/x-winnt
3718 tmake_file=i386/t-winnt
3719 extra_host_objs="winnt.o oldnames.o"
3720 extra_gcc_objs="spawnv.o oldnames.o"
3721 fixincludes=fixinc.winnt
3722 if test x$gnu_ld != xyes
3724 extra_programs=ld.exe
3726 if test x$enable_threads = xyes; then
3730 i[34567]86-dg-dgux*)
3731 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
3732 xm_defines="USG POSIX"
3733 out_file=i386/dgux.c
3735 tmake_file=i386/t-dgux
3736 xmake_file=i386/x-dgux
3737 fixincludes=fixinc.dgux
3738 install_headers_dir=install-headers-cpio
3740 i860-alliant-*) # Alliant FX/2800
3741 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
3742 xm_file="${xm_file}"
3743 xmake_file=i860/x-fx2800
3744 tmake_file=i860/t-fx2800
3745 extra_parts="crtbegin.o crtend.o"
3748 tm_file="${tm_file} i860/bsd.h"
3749 if test x$gas = xyes
3751 tm_file="${tm_file} i860/bsd-gas.h"
3756 tm_file="${tm_file} i860/mach.h"
3757 tmake_file=t-libc-ok
3759 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
3760 tm_file="${tm_file} svr3.h i860/paragon.h"
3761 xm_defines="USG SVR3"
3765 tm_file="${tm_file} svr3.h i860/sysv3.h"
3766 xm_defines="USG SVR3"
3767 xmake_file=i860/x-sysv3
3768 extra_parts="crtbegin.o crtend.o"
3771 tm_file="${tm_file} svr4.h i860/sysv4.h"
3772 xm_defines="USG SVR3"
3773 xmake_file=i860/x-sysv4
3775 extra_parts="crtbegin.o crtend.o"
3777 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
3778 tm_file="${tm_file} i960/vx960.h"
3779 tmake_file=i960/t-vxworks960
3781 thread_file='vxworks'
3783 i960-wrs-vxworks5* | i960-wrs-vxworks)
3784 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
3785 tmake_file=i960/t-vxworks960
3787 thread_file='vxworks'
3790 tm_file="${tm_file} i960/vx960.h"
3791 tmake_file=i960/t-vxworks960
3793 thread_file='vxworks'
3796 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
3797 tmake_file=i960/t-960bare
3801 tmake_file="i960/t-960bare t-rtems"
3802 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
3805 i960-*-*) # Default i960 environment.
3809 extra_parts="crtinit.o crtfini.o"
3811 m68000-convergent-sysv*)
3813 xm_file="m68k/xm-3b1.h ${xm_file}"
3816 extra_headers=math-68881.h
3818 m68000-hp-bsd*) # HP 9000/200 running BSD
3819 tm_file=m68k/hp2bsd.h
3820 xmake_file=m68k/x-hp2bsd
3822 extra_headers=math-68881.h
3824 m68000-hp-hpux*) # HP 9000 series 300
3825 xm_file="xm_alloca.h ${xm_file}"
3826 xm_defines="USG NO_SYS_SIGLIST"
3827 if test x$gas = xyes
3829 xmake_file=m68k/x-hp320g
3830 tm_file=m68k/hp310g.h
3832 xmake_file=m68k/x-hp320
3833 tm_file=m68k/hp310.h
3835 install_headers_dir=install-headers-cpio
3837 extra_headers=math-68881.h
3842 extra_headers=math-68881.h
3845 tm_file=m68k/sun2o4.h
3847 extra_headers=math-68881.h
3850 xm_file="m68k/xm-3b1.h ${xm_file}"
3852 if test x$gas = xyes
3859 extra_headers=math-68881.h
3861 m68k-apple-aux*) # Apple Macintosh running A/UX
3862 xm_defines="USG AUX"
3863 tmake_file=m68k/t-aux
3864 install_headers_dir=install-headers-cpio
3865 extra_headers=math-68881.h
3866 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
3868 if test "$gnu_ld" = yes
3870 tm_file="${tm_file} m68k/auxgld.h"
3872 tm_file="${tm_file} m68k/auxld.h"
3874 if test "$gas" = yes
3876 tm_file="${tm_file} m68k/auxgas.h"
3878 tm_file="${tm_file} m68k/auxas.h"
3880 tm_file="${tm_file} m68k/a-ux.h"
3884 tm_file=m68k/apollo68.h
3885 xmake_file=m68k/x-apollo68
3887 extra_headers=math-68881.h
3890 m68k-altos-sysv*) # Altos 3068
3891 if test x$gas = xyes
3893 tm_file=m68k/altos3068.h
3896 echo "The Altos is supported only with the GNU assembler" 1>&2
3899 extra_headers=math-68881.h
3901 m68k-bull-sysv*) # Bull DPX/2
3902 if test x$gas = xyes
3904 if test x$stabs = xyes
3906 tm_file=m68k/dpx2cdbx.h
3908 tm_file=m68k/dpx2g.h
3913 xm_file="xm-alloca.h ${xm_file}"
3915 xmake_file=m68k/x-dpx2
3917 extra_headers=math-68881.h
3919 m68k-atari-sysv4*) # Atari variant of V.4.
3920 tm_file=m68k/atari.h
3921 xm_file="xm-alloca.h ${xm_file}"
3922 xm_defines="USG FULL_PROTOTYPES"
3924 extra_parts="crtbegin.o crtend.o"
3925 extra_headers=math-68881.h
3928 m68k-motorola-sysv*)
3929 tm_file=m68k/mot3300.h
3930 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
3931 xm_defines=NO_SYS_SIGLIST
3932 if test x$gas = xyes
3934 xmake_file=m68k/x-mot3300-gas
3935 if test x$gnu_ld = xyes
3937 tmake_file=m68k/t-mot3300-gald
3939 tmake_file=m68k/t-mot3300-gas
3943 xmake_file=m68k/x-mot3300
3944 if test x$gnu_ld = xyes
3946 tmake_file=m68k/t-mot3300-gld
3948 tmake_file=m68k/t-mot3300
3952 gdb_needs_out_file_path=yes
3953 extra_parts="crt0.o mcrt0.o"
3954 extra_headers=math-68881.h
3957 m68k-ncr-sysv*) # NCR Tower 32 SVR3
3958 tm_file=m68k/tower-as.h
3959 xm_defines="USG SVR3"
3960 xmake_file=m68k/x-tower
3961 extra_parts="crtbegin.o crtend.o"
3962 extra_headers=math-68881.h
3965 tm_file=m68k/plexus.h
3966 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
3969 extra_headers=math-68881.h
3973 xm_file="xm-alloca.h ${xm_file}"
3975 extra_headers=math-68881.h
3978 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
3979 xm_defines="USG unos"
3980 xmake_file=m68k/x-crds
3983 extra_headers=math-68881.h
3985 m68k-cbm-sysv4*) # Commodore variant of V.4.
3987 xm_file="xm-alloca.h ${xm_file}"
3988 xm_defines="USG FULL_PROTOTYPES"
3989 xmake_file=m68k/x-amix
3991 extra_parts="crtbegin.o crtend.o"
3992 extra_headers=math-68881.h
3996 tm_file=m68k/ccur-GAS.h
3997 xmake_file=m68k/x-ccur
3998 extra_headers=math-68881.h
4002 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
4003 tm_file=m68k/hp3bsd44.h
4004 xmake_file=m68k/x-hp3bsd44
4006 extra_headers=math-68881.h
4009 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
4010 tm_file=m68k/hp3bsd.h
4012 extra_headers=math-68881.h
4016 if test x$with_fp = xno
4018 tm_file=m68k/isi-nfp.h
4024 extra_headers=math-68881.h
4026 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
4027 xm_file="xm_alloca.h ${xm_file}"
4028 xm_defines="USG NO_SYS_SIGLIST"
4029 if test x$gas = xyes
4031 xmake_file=m68k/x-hp320g
4032 tm_file=m68k/hp320g.h
4034 xmake_file=m68k/x-hp320
4035 tm_file=m68k/hpux7.h
4037 install_headers_dir=install-headers-cpio
4039 extra_headers=math-68881.h
4042 m68k-hp-hpux*) # HP 9000 series 300
4043 xm_file="xm_alloca.h ${xm_file}"
4044 xm_defines="USG NO_SYS_SIGLIST"
4045 if test x$gas = xyes
4047 xmake_file=m68k/x-hp320g
4048 tm_file=m68k/hp320g.h
4050 xmake_file=m68k/x-hp320
4051 tm_file=m68k/hp320.h
4053 install_headers_dir=install-headers-cpio
4055 extra_headers=math-68881.h
4059 tm_file=m68k/sun3mach.h
4061 extra_headers=math-68881.h
4065 if test x$gas = xyes
4067 tm_file=m68k/news3gas.h
4069 tm_file=m68k/news3.h
4072 extra_headers=math-68881.h
4075 m68k-sony-bsd* | m68k-sony-newsos*)
4076 if test x$gas = xyes
4078 tm_file=m68k/newsgas.h
4083 extra_headers=math-68881.h
4086 m68k-next-nextstep2*)
4087 tm_file=m68k/next21.h
4088 xm_file="m68k/xm-next.h ${xm_file}"
4089 tmake_file=m68k/t-next
4090 xmake_file=m68k/x-next
4091 extra_objs=nextstep.o
4092 extra_headers=math-68881.h
4096 m68k-next-nextstep3*)
4098 xm_file="m68k/xm-next.h ${xm_file}"
4099 tmake_file=m68k/t-next
4100 xmake_file=m68k/x-next
4101 extra_objs=nextstep.o
4102 extra_parts="crtbegin.o crtend.o"
4103 extra_headers=math-68881.h
4105 if test x$enable_threads = xyes; then
4110 if test x$with_fp = xno
4112 tm_file=m68k/sun3n3.h
4114 tm_file=m68k/sun3o3.h
4118 extra_headers=math-68881.h
4120 m68k-sun-sunos*) # For SunOS 4 (the default).
4121 if test x$with_fp = xno
4123 tm_file=m68k/sun3n.h
4129 extra_headers=math-68881.h
4132 tm_file=m68k/vxm68k.h
4133 tmake_file=m68k/t-vxworks68
4134 extra_headers=math-68881.h
4135 thread_file='vxworks'
4139 tmake_file=m68k/t-m68kbare
4140 tm_file="m68k/m68k-aout.h libgloss.h"
4141 extra_headers=math-68881.h
4145 tmake_file=m68k/t-m68kbare
4146 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
4147 extra_headers=math-68881.h
4151 if test x$gas = xyes
4155 tm_file=m68k/lynx-ng.h
4157 xm_file=m68k/xm-lynx.h
4159 tmake_file=m68k/t-lynx
4160 extra_headers=math-68881.h
4164 tm_file=m68k/netbsd.h
4165 # On NetBSD, the headers are already okay, except for math.h.
4166 fixincludes=fixinc.wrap
4170 m68k-*-sysv3*) # Motorola m68k's running system V.3
4171 xm_file="xm-alloca.h ${xm_file}"
4173 xmake_file=m68k/x-m68kv
4174 extra_parts="crtbegin.o crtend.o"
4175 extra_headers=math-68881.h
4178 m68k-*-sysv4*) # Motorola m68k's running system V.4
4179 tm_file=m68k/m68kv4.h
4180 xm_file="xm-alloca.h ${xm_file}"
4183 extra_parts="crtbegin.o crtend.o"
4184 extra_headers=math-68881.h
4187 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
4190 tm_file=m68k/linux-aout.h
4191 tmake_file="t-linux-aout m68k/t-linux-aout"
4192 fixincludes=Makefile.in # The headers are ok already.
4193 extra_headers=math-68881.h
4197 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
4198 # with ELF format using the
4199 # GNU/Linux C library 5
4201 tm_file=m68k/linux.h
4202 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
4203 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4204 fixincludes=Makefile.in # The headers are ok already.
4205 extra_headers=math-68881.h
4209 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
4210 # with ELF format using glibc 2
4211 # aka the GNU/Linux C library 6.
4213 tm_file=m68k/linux.h
4214 tmake_file="t-linux m68k/t-linux"
4215 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4216 fixincludes=Makefile.in # The headers are ok already.
4217 extra_headers=math-68881.h
4220 if test x$enable_threads = xyes; then
4225 tmake_file=m68k/t-m68kbare
4226 tm_file=m68k/m68k-psos.h
4227 extra_headers=math-68881.h
4231 tmake_file="m68k/t-m68kbare t-rtems"
4232 tm_file=m68k/rtems.h
4233 extra_headers=math-68881.h
4240 tm_file=m88k/dguxbcs.h
4241 tmake_file=m88k/t-dguxbcs
4245 tmake_file=m88k/t-dgux
4248 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
4249 xmake_file=m88k/x-dgux
4250 if test x$gas = xyes
4252 tmake_file=m88k/t-dgux-gas
4254 fixincludes=fixinc.dgux
4256 m88k-dolphin-sysv3*)
4257 tm_file=m88k/dolph.h
4258 extra_parts="crtbegin.o crtend.o"
4259 xm_file="m88k/xm-sysv3.h ${xm_file}"
4260 xmake_file=m88k/x-dolph
4261 if test x$gas = xyes
4263 tmake_file=m88k/t-m88k-gas
4266 m88k-tektronix-sysv3)
4267 tm_file=m88k/tekXD88.h
4268 extra_parts="crtbegin.o crtend.o"
4269 xm_file="m88k/xm-sysv3.h ${xm_file}"
4270 xmake_file=m88k/x-tekXD88
4271 if test x$gas = xyes
4273 tmake_file=m88k/t-m88k-gas
4277 tm_file=m88k/m88k-aout.h
4280 tm_file=m88k/m88k-coff.h
4281 tmake_file=m88k/t-bug
4285 extra_parts="crtbegin.o crtend.o"
4286 if test x$gas = xyes
4288 tmake_file=m88k/t-luna-gas
4290 tmake_file=m88k/t-luna
4294 tm_file=m88k/sysv3.h
4295 extra_parts="crtbegin.o crtend.o"
4296 xm_file="m88k/xm-sysv3.h ${xm_file}"
4297 xmake_file=m88k/x-sysv3
4298 if test x$gas = xyes
4300 tmake_file=m88k/t-m88k-gas
4304 tm_file=m88k/sysv4.h
4305 extra_parts="crtbegin.o crtend.o"
4306 xmake_file=m88k/x-sysv4
4307 tmake_file=m88k/t-sysv4
4309 mips-sgi-irix6*) # SGI System V.4., IRIX 6
4310 tm_file=mips/iris6.h
4311 xm_file=mips/xm-iris6.h
4312 fixincludes=fixinc.irix
4313 xmake_file=mips/x-iris6
4314 tmake_file=mips/t-iris6
4315 # if test x$enable_threads = xyes; then
4316 # thread_file='irix'
4320 tm_file="mips/elf.h libgloss.h"
4321 tmake_file=mips/t-ecoff
4324 extra_parts="crtbegin.o crtend.o"
4325 # thread_file='vxworks'
4327 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
4328 tm_file="mips/iris6.h mips/cross64.h"
4330 xm_file="mips/xm-iris5.h"
4331 fixincludes=Makefile.in
4332 xmake_file=mips/x-iris
4333 tmake_file=mips/t-cross64
4334 # See comment in mips/iris[56].h files.
4336 # if test x$enable_threads = xyes; then
4337 # thread_file='irix'
4341 if test x$gas = xyes
4343 if test x$stabs = xyes
4345 tm_file=mips/iris5gdb.h
4347 tm_file="mips/sni-svr4.h mips/sni-gas.h"
4350 tm_file=mips/sni-svr4.h
4353 xmake_file=mips/x-sni-svr4
4354 tmake_file=mips/t-mips-gas
4355 if test x$gnu_ld != xyes
4360 mips-sgi-irix5*) # SGI System V.4., IRIX 5
4361 if test x$gas = xyes
4363 tm_file="mips/iris5.h mips/iris5gas.h"
4364 if test x$stabs = xyes
4366 tm_file="${tm_file} dbx.h"
4369 tm_file=mips/iris5.h
4372 xm_file="mips/xm-iris5.h"
4373 fixincludes=fixinc.irix
4374 xmake_file=mips/x-iris
4375 # mips-tfile doesn't work yet
4376 tmake_file=mips/t-mips-gas
4377 # See comment in mips/iris5.h file.
4379 # if test x$enable_threads = xyes; then
4380 # thread_file='irix'
4383 mips-sgi-irix4loser*) # Mostly like a MIPS.
4384 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
4385 if test x$stabs = xyes; then
4386 tm_file="${tm_file} dbx.h"
4389 xmake_file=mips/x-iris
4390 if test x$gas = xyes
4392 tmake_file=mips/t-mips-gas
4394 extra_passes="mips-tfile mips-tdump"
4396 if test x$gnu_ld != xyes
4400 # if test x$enable_threads = xyes; then
4401 # thread_file='irix'
4404 mips-sgi-irix4*) # Mostly like a MIPS.
4405 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
4406 if test x$stabs = xyes; then
4407 tm_file="${tm_file} dbx.h"
4410 xmake_file=mips/x-iris
4411 if test x$gas = xyes
4413 tmake_file=mips/t-mips-gas
4415 extra_passes="mips-tfile mips-tdump"
4417 if test x$gnu_ld != xyes
4421 # if test x$enable_threads = xyes; then
4422 # thread_file='irix'
4425 mips-sgi-*) # Mostly like a MIPS.
4426 tm_file="mips/iris3.h ${tm_file}"
4427 if test x$stabs = xyes; then
4428 tm_file="${tm_file} dbx.h"
4431 xmake_file=mips/x-iris3
4432 if test x$gas = xyes
4434 tmake_file=mips/t-mips-gas
4436 extra_passes="mips-tfile mips-tdump"
4438 if test x$gnu_ld != xyes
4443 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
4444 tm_file="mips/osfrose.h ${tm_file}"
4445 xmake_file=mips/x-osfrose
4446 tmake_file=mips/t-osfrose
4447 extra_objs=halfpic.o
4450 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
4451 tm_file=mips/dec-osf1.h
4452 if test x$stabs = xyes; then
4453 tm_file="${tm_file} dbx.h"
4455 xmake_file=mips/x-dec-osf1
4456 if test x$gas = xyes
4458 tmake_file=mips/t-mips-gas
4460 tmake_file=mips/t-ultrix
4461 extra_passes="mips-tfile mips-tdump"
4463 if test x$gnu_ld != xyes
4468 mips-dec-bsd*) # Decstation running 4.4 BSD
4469 tm_file=mips/dec-bsd.h
4471 if test x$gas = xyes
4473 tmake_file=mips/t-mips-gas
4475 tmake_file=mips/t-ultrix
4476 extra_passes="mips-tfile mips-tdump"
4478 if test x$gnu_ld != xyes
4483 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
4484 tm_file=mips/netbsd.h
4485 # On NetBSD, the headers are already okay, except for math.h.
4486 fixincludes=fixinc.wrap
4489 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
4490 tm_file="mips/news4.h ${tm_file}"
4491 if test x$stabs = xyes; then
4492 tm_file="${tm_file} dbx.h"
4494 if test x$gas = xyes
4496 tmake_file=mips/t-mips-gas
4498 extra_passes="mips-tfile mips-tdump"
4500 if test x$gnu_ld != xyes
4504 xmake_file=mips/x-sony
4506 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
4507 # That is based on svr4.
4508 # t-svr4 is not right because this system doesn't use ELF.
4509 tm_file="mips/news5.h ${tm_file}"
4510 if test x$stabs = xyes; then
4511 tm_file="${tm_file} dbx.h"
4513 xm_file="xm-siglist.h ${xm_file}"
4515 if test x$gas = xyes
4517 tmake_file=mips/t-mips-gas
4519 extra_passes="mips-tfile mips-tdump"
4521 if test x$gnu_ld != xyes
4526 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
4527 tm_file="mips/svr4-5.h mips/svr4-t.h"
4528 if test x$stabs = xyes; then
4529 tm_file="${tm_file} dbx.h"
4531 xm_file="xm-siglist.h ${xm_file}"
4533 xmake_file=mips/x-sysv
4534 if test x$gas = xyes
4536 tmake_file=mips/t-mips-gas
4537 extra_parts="crtbegin.o crtend.o"
4539 tmake_file=mips/t-mips
4540 extra_passes="mips-tfile mips-tdump"
4542 if test x$gnu_ld != xyes
4547 mips-*-ultrix* | mips-dec-mach3) # Decstation.
4548 tm_file="mips/ultrix.h ${tm_file}"
4549 if test x$stabs = xyes; then
4550 tm_file="${tm_file} dbx.h"
4552 xmake_file=mips/x-ultrix
4553 if test x$gas = xyes
4555 tmake_file=mips/t-mips-gas
4557 tmake_file=mips/t-ultrix
4558 extra_passes="mips-tfile mips-tdump"
4560 if test x$gnu_ld != xyes
4565 mips-*-riscos[56789]bsd*)
4566 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
4567 if test x$stabs = xyes; then
4568 tm_file="${tm_file} dbx.h"
4570 if test x$gas = xyes
4572 tmake_file=mips/t-bsd-gas
4574 tmake_file=mips/t-bsd
4575 extra_passes="mips-tfile mips-tdump"
4577 if test x$gnu_ld != xyes
4582 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
4583 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
4584 if test x$stabs = xyes; then
4585 tm_file="${tm_file} dbx.h"
4587 if test x$gas = xyes
4589 tmake_file=mips/t-bsd-gas
4591 tmake_file=mips/t-bsd
4592 extra_passes="mips-tfile mips-tdump"
4594 if test x$gnu_ld != xyes
4599 mips-*-riscos[56789]sysv4*)
4600 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
4601 if test x$stabs = xyes; then
4602 tm_file="${tm_file} dbx.h"
4604 xm_file="xm-siglist.h ${xm_file}"
4605 xmake_file=mips/x-sysv
4606 if test x$gas = xyes
4608 tmake_file=mips/t-svr4-gas
4610 tmake_file=mips/t-svr4
4611 extra_passes="mips-tfile mips-tdump"
4613 if test x$gnu_ld != xyes
4618 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
4619 tm_file="mips/svr4-4.h ${tm_file}"
4620 if test x$stabs = xyes; then
4621 tm_file="${tm_file} dbx.h"
4624 xmake_file=mips/x-sysv
4625 if test x$gas = xyes
4627 tmake_file=mips/t-svr4-gas
4629 tmake_file=mips/t-svr4
4630 extra_passes="mips-tfile mips-tdump"
4632 if test x$gnu_ld != xyes
4637 mips-*-riscos[56789]sysv*)
4638 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
4639 if test x$stabs = xyes; then
4640 tm_file="${tm_file} dbx.h"
4643 xmake_file=mips/x-sysv
4644 if test x$gas = xyes
4646 tmake_file=mips/t-svr3-gas
4648 tmake_file=mips/t-svr3
4649 extra_passes="mips-tfile mips-tdump"
4651 if test x$gnu_ld != xyes
4656 mips-*-sysv* | mips-*-riscos*sysv*)
4657 tm_file="mips/svr3-4.h ${tm_file}"
4658 if test x$stabs = xyes; then
4659 tm_file="${tm_file} dbx.h"
4662 xmake_file=mips/x-sysv
4663 if test x$gas = xyes
4665 tmake_file=mips/t-svr3-gas
4667 tmake_file=mips/t-svr3
4668 extra_passes="mips-tfile mips-tdump"
4670 if test x$gnu_ld != xyes
4675 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
4676 tm_file=mips/mips-5.h
4677 if test x$stabs = xyes; then
4678 tm_file="${tm_file} dbx.h"
4680 if test x$gas = xyes
4682 tmake_file=mips/t-mips-gas
4684 extra_passes="mips-tfile mips-tdump"
4686 if test x$gnu_ld != xyes
4694 tm_file=mips/ecoffl.h
4695 if test x$stabs = xyes; then
4696 tm_file="${tm_file} dbx.h"
4698 tmake_file=mips/t-ecoff
4701 tm_file="gofast.h mips/ecoff.h"
4702 if test x$stabs = xyes; then
4703 tm_file="${tm_file} dbx.h"
4705 tmake_file=mips/t-ecoff
4708 tm_file="mips/elfl.h libgloss.h"
4709 tmake_file=mips/t-ecoff
4712 tm_file="mips/elf.h libgloss.h"
4713 tmake_file=mips/t-ecoff
4716 tm_file="mips/elfl64.h libgloss.h"
4717 tmake_file=mips/t-ecoff
4719 mips64orionel-*-elf*)
4720 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
4721 tmake_file=mips/t-ecoff
4724 tm_file="mips/elf64.h libgloss.h"
4725 tmake_file=mips/t-ecoff
4728 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
4729 tmake_file=mips/t-ecoff
4731 mips64orion-*-rtems*)
4732 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
4733 tmake_file="mips/t-ecoff t-rtems"
4736 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
4737 tmake_file=mips/t-r3900
4740 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
4741 tmake_file=mips/t-r3900
4742 # FIXME mips-elf should be fixed to use crtstuff.
4745 mips-*-*) # Default MIPS RISC-OS 4.0.
4746 if test x$stabs = xyes; then
4747 tm_file="${tm_file} dbx.h"
4749 if test x$gas = xyes
4751 tmake_file=mips/t-mips-gas
4753 extra_passes="mips-tfile mips-tdump"
4755 if test x$gnu_ld != xyes
4762 tm_file="mn10200/mn10200.h"
4763 if test x$stabs = xyes
4765 tm_file="${tm_file} dbx.h"
4771 tm_file="mn10300/mn10300.h"
4772 if test x$stabs = xyes
4774 tm_file="${tm_file} dbx.h"
4779 tm_file=ns32k/encore.h
4783 tm_file=ns32k/sequent.h
4787 tm_file=ns32k/tek6100.h
4791 tm_file=ns32k/tek6200.h
4794 # This has not been updated to GCC 2.
4797 # xmake_file=ns32k/x-genix
4798 # tm_file=ns32k/genix.h
4802 tm_file=ns32k/merlin.h
4806 tm_file=ns32k/pc532-mach.h
4810 tm_file=ns32k/pc532-min.h
4811 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
4816 tm_file=ns32k/netbsd.h
4817 xm_file="ns32k/xm-netbsd.h ${xm_file}"
4818 # On NetBSD, the headers are already okay, except for math.h.
4819 fixincludes=fixinc.wrap
4823 tm_file="${tm_file} pdp11/2bsd.h"
4829 xmake_file=pyr/x-pyr
4836 xmake_file=romp/x-mach
4841 tm_file=rs6000/beos.h
4842 xm_file=rs6000/xm-beos.h
4843 tmake_file=rs6000/t-beos
4844 xmake_file=rs6000/x-beos
4846 powerpc-*-sysv* | powerpc-*-elf*)
4847 tm_file=rs6000/sysv4.h
4848 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
4849 xm_defines="USG POSIX"
4850 extra_headers=ppc-asm.h
4851 if test x$gas = xyes
4853 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
4855 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
4857 xmake_file=rs6000/x-sysv4
4860 tm_file=rs6000/eabiaix.h
4861 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4862 fixincludes=Makefile.in
4863 extra_headers=ppc-asm.h
4866 tm_file=rs6000/eabisim.h
4867 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4868 fixincludes=Makefile.in
4869 extra_headers=ppc-asm.h
4872 tm_file=rs6000/eabi.h
4873 if test x$gas = xyes
4875 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4877 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
4879 fixincludes=Makefile.in
4880 extra_headers=ppc-asm.h
4883 tm_file=rs6000/rtems.h
4884 if test x$gas = xyes
4886 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
4888 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
4890 fixincludes=Makefile.in
4891 extra_headers=ppc-asm.h
4893 powerpc-*-linux-gnulibc1)
4894 tm_file=rs6000/linux.h
4895 xm_file=rs6000/xm-sysv4.h
4896 out_file=rs6000/rs6000.c
4897 if test x$gas = xyes
4899 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
4901 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
4904 fixincludes=Makefile.in
4905 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4906 extra_headers=ppc-asm.h
4907 if test x$enable_threads = xyes; then
4911 powerpc-*-linux-gnu*)
4912 tm_file=rs6000/linux.h
4913 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
4914 xm_defines="USG ${xm_defines}"
4915 out_file=rs6000/rs6000.c
4916 if test x$gas = xyes
4918 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
4920 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
4923 fixincludes=Makefile.in
4924 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4925 extra_headers=ppc-asm.h
4926 if test x$enable_threads = xyes; then
4930 powerpc-wrs-vxworks*)
4932 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
4933 xm_defines="USG POSIX"
4934 tm_file=rs6000/vxppc.h
4935 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4936 extra_headers=ppc-asm.h
4937 thread_file='vxworks'
4939 powerpcle-*-sysv* | powerpcle-*-elf*)
4940 tm_file=rs6000/sysv4le.h
4941 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
4942 xm_defines="USG POSIX"
4943 if test x$gas = xyes
4945 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
4947 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
4949 xmake_file=rs6000/x-sysv4
4950 extra_headers=ppc-asm.h
4952 powerpcle-*-eabisim*)
4953 tm_file=rs6000/eabilesim.h
4954 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4955 fixincludes=Makefile.in
4956 extra_headers=ppc-asm.h
4959 tm_file=rs6000/eabile.h
4960 if test x$gas = xyes
4962 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4964 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
4966 fixincludes=Makefile.in
4967 extra_headers=ppc-asm.h
4969 powerpcle-*-winnt* )
4970 tm_file=rs6000/win-nt.h
4971 tmake_file=rs6000/t-winnt
4973 fixincludes=Makefile.in
4974 if test x$enable_threads = xyes; then
4977 extra_headers=ppc-asm.h
4979 powerpcle-*-pe | powerpcle-*-cygwin32)
4980 tm_file=rs6000/cygwin32.h
4981 xm_file="rs6000/xm-cygwin32.h ${xm_file}"
4982 tmake_file=rs6000/t-winnt
4983 xmake_file=rs6000/x-cygwin32
4985 fixincludes=Makefile.in
4986 if test x$enable_threads = xyes; then
4990 extra_headers=ppc-asm.h
4992 powerpcle-*-solaris2*)
4993 tm_file=rs6000/sol2.h
4994 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
4995 xm_defines="USG POSIX"
4996 if test x$gas = xyes
4998 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5000 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5002 xmake_file=rs6000/x-sysv4
5005 fixincludes=fixinc.svr4;;
5007 fixincludes=fixinc.wrap;;
5009 extra_headers=ppc-asm.h
5011 rs6000-ibm-aix3.[01]*)
5012 tm_file=rs6000/aix31.h
5013 xmake_file=rs6000/x-aix31
5016 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
5017 tm_file=rs6000/aix3newas.h
5018 if test x$host != x$target
5020 tmake_file=rs6000/t-xnewas
5022 tmake_file=rs6000/t-newas
5026 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
5027 tm_file=rs6000/aix41.h
5028 if test x$host != x$target
5030 tmake_file=rs6000/t-xnewas
5032 tmake_file=rs6000/t-newas
5034 xmake_file=rs6000/x-aix41
5037 rs6000-ibm-aix4.[3456789].* | powerpc-ibm-aix4.[3456789].*)
5038 tm_file=rs6000/aix43.h
5039 if test x$host != x$target
5041 tmake_file=rs6000/t-xaix43
5043 tmake_file=rs6000/t-aix43
5045 xmake_file=rs6000/x-aix43
5048 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
5049 tm_file=rs6000/aix43.h
5050 if test x$host != x$target
5052 tmake_file=rs6000/t-xaix43
5054 tmake_file=rs6000/t-aix43
5056 xmake_file=rs6000/x-aix43
5066 tm_file=rs6000/mach.h
5067 xm_file="${xm_file} rs6000/xm-mach.h"
5068 xmake_file=rs6000/x-mach
5072 tm_file=rs6000/lynx.h
5073 xm_file=rs6000/xm-lynx.h
5074 tmake_file=rs6000/t-rs6000
5075 xmake_file=rs6000/x-lynx
5083 tmake_file="sh/t-sh t-rtems"
5084 tm_file=sh/rtemself.h
5088 tmake_file="sh/t-sh t-rtems"
5097 xm_file="xm-alloca.h ${xm_file}"
5100 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
5101 tm_file=sparc/vxsparc.h
5102 tmake_file=sparc/t-vxsparc
5104 thread_file='vxworks'
5107 tmake_file=sparc/t-sparcbare
5108 tm_file="sparc/aout.h libgloss.h"
5111 tm_file=sparc/netbsd.h
5112 # On NetBSD, the headers are already okay, except for math.h.
5113 fixincludes=fixinc.wrap
5121 tmake_file=sparc/t-elf
5122 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
5126 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
5127 xm_file="${xm_file} sparc/xm-linux.h"
5128 tm_file=sparc/linux-aout.h
5130 fixincludes=Makefile.in #On Linux, the headers are ok already.
5133 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
5134 xm_file="${xm_file} sparc/xm-linux.h"
5136 tm_file=sparc/linux.h
5137 tmake_file="t-linux t-linux-gnulibc1"
5138 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5139 fixincludes=Makefile.in #On Linux, the headers are ok already.
5142 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
5143 xm_file="${xm_file} sparc/xm-linux.h"
5145 tm_file=sparc/linux.h
5146 tmake_file="t-linux"
5147 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5148 fixincludes=Makefile.in #On Linux, the headers are ok already.
5150 if test x$enable_threads = xyes; then
5155 if test x$gas = xyes
5157 tm_file=sparc/lynx.h
5159 tm_file=sparc/lynx-ng.h
5161 xm_file=sparc/xm-lynx.h
5162 tmake_file=sparc/t-sunos41
5166 tmake_file="sparc/t-sparcbare t-rtems"
5167 tm_file=sparc/rtems.h
5169 sparcv9-*-solaris2*)
5170 tm_file=sparc/sol2-sld-64.h
5171 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
5172 xm_defines="USG POSIX"
5173 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
5174 xmake_file=sparc/x-sysv4
5175 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
5176 fixincludes=fixinc.wrap
5178 if test x${enable_threads} = x ; then
5179 enable_threads=$have_pthread_h
5180 if test x${enable_threads} = x ; then
5181 enable_threads=$have_thread_h
5184 if test x${enable_threads} = xyes ; then
5185 if test x${have_pthread_h} = xyes ; then
5188 thread_file='solaris'
5193 if test x$gnu_ld = xyes
5195 tm_file=sparc/sol2.h
5197 tm_file=sparc/sol2-sld.h
5199 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
5200 xm_defines="USG POSIX"
5201 tmake_file=sparc/t-sol2
5202 xmake_file=sparc/x-sysv4
5203 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
5206 fixincludes=fixinc.svr4;;
5208 fixincludes=fixinc.wrap;;
5211 if test x${enable_threads} = x; then
5212 enable_threads=$have_pthread_h
5213 if test x${enable_threads} = x; then
5214 enable_threads=$have_thread_h
5217 if test x${enable_threads} = xyes; then
5218 if test x${have_pthread_h} = xyes; then
5221 thread_file='solaris'
5226 tm_file=sparc/sunos4.h
5227 tmake_file=sparc/t-sunos40
5231 tm_file=sparc/sunos4.h
5232 tmake_file=sparc/t-sunos41
5234 if test x$gas = xyes; then
5235 tm_file="${tm_file} sparc/sun4gas.h"
5239 tm_file=sparc/sun4o3.h
5243 tm_file=sparc/sysv4.h
5244 xm_file="xm-siglist.h sparc/xm-sysv4.h"
5245 xm_defines="USG POSIX"
5247 xmake_file=sparc/x-sysv4
5248 extra_parts="crtbegin.o crtend.o"
5251 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
5252 xm_defines="USG POSIX"
5253 tm_file=sparc/vxsim.h
5254 tmake_file=sparc/t-vxsparc
5255 xmake_file=sparc/x-sysv4
5258 tm_file="sparc/splet.h libgloss.h"
5259 tmake_file=sparc/t-splet
5262 tm_file="sparc/litecoff.h libgloss.h"
5263 tmake_file=sparc/t-sparclite
5266 tm_file="sparc/lite.h aoutos.h libgloss.h"
5267 tmake_file=sparc/t-sparclite
5270 tmake_file=sparc/t-sp64
5271 tm_file=sparc/sp64-aout.h
5274 tmake_file=sparc/t-sp64
5275 tm_file=sparc/sp64-elf.h
5276 extra_parts="crtbegin.o crtend.o"
5278 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
5279 tmake_file="t-linux sparc/t-linux64"
5280 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
5281 tm_file=sparc/linux64.h
5283 fixincludes=Makefile.in # The headers are ok already.
5284 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5287 # This hasn't been upgraded to GCC 2.
5288 # tahoe-harris-*) # Harris tahoe, using COFF.
5289 # tm_file=tahoe/harris.h
5291 # tahoe-*-bsd*) # tahoe running BSD
5293 thumb-*-coff* | thumbel-*-coff*)
5295 out_file=arm/thumb.c
5296 xm_file=arm/xm-thumb.h
5297 md_file=arm/thumb.md
5298 tmake_file=arm/t-thumb
5299 fixincludes=Makefile.in # There is nothing to fix
5301 # This hasn't been upgraded to GCC 2.
5308 tm_file="v850/v850.h"
5309 xm_file="v850/xm-v850.h"
5310 tmake_file=v850/t-v850
5311 if test x$stabs = xyes
5313 tm_file="${tm_file} dbx.h"
5317 vax-*-bsd*) # vaxen running BSD
5321 vax-*-sysv*) # vaxen running system V
5322 tm_file="${tm_file} vax/vaxv.h"
5327 tm_file="${tm_file} netbsd.h vax/netbsd.h"
5328 # On NetBSD, the headers are already okay, except for math.h.
5329 fixincludes=fixinc.wrap
5333 vax-*-ultrix*) # vaxen running ultrix
5334 tm_file="${tm_file} vax/ultrix.h"
5338 vax-*-vms*) # vaxen running VMS
5339 xm_file=vax/xm-vms.h
5343 vax-*-*) # vax default entry
5347 xm_file="${xm_file} xm-svr3"
5351 echo "Configuration $machine not supported" 1>&2
5358 ;; # Existing GNU/Linux systems do not use the GNU setup.
5360 # On the GNU system, the setup is just about the same on
5361 # each different CPU. The specific machines that GNU
5362 # supports are matched above and just set $cpu_type.
5363 xm_file="xm-gnu.h ${xm_file}"
5364 tm_file=${cpu_type}/gnu.h
5365 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
5366 # GNU always uses ELF.
5368 # GNU tools are the only tools.
5371 # On GNU, the headers are already okay.
5372 fixincludes=Makefile.in
5373 xmake_file=x-linux # These details are the same as Linux.
5374 tmake_file=t-gnu # These are not.
5377 fixincludes=fixinc.svr4
5378 xmake_try_sysv=x-sysv
5379 install_headers_dir=install-headers-cpio
5382 install_headers_dir=install-headers-cpio
5386 # Distinguish i[34567]86
5387 # Also, do not run mips-tfile on MIPS if using gas.
5388 # Process --with-cpu= for PowerPC/rs6000
5389 target_cpu_default2=
5392 target_cpu_default2=1
5395 target_cpu_default2=2
5397 i686-*-* | i786-*-*)
5398 target_cpu_default2=3
5403 target_cpu_default2="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
5406 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
5409 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
5412 target_cpu_default2="MASK_CPU_EV5"
5416 if test x$gas = xyes
5418 if test "$target_cpu_default2" = ""
5420 target_cpu_default2="MASK_GAS"
5422 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
5427 case "x$with_cpu" in
5430 target_cpu_default2="TARGET_CPU_generic"
5433 # Distinguish cores, and major variants
5434 # arm7m doesn't exist, but D & I don't affect code
5435 xarm23678 | xarm250 | xarm67010 \
5436 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
5437 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
5438 | xstrongarm | xstrongarm110)
5439 target_cpu_default2="TARGET_CPU_$with_cpu"
5443 echo "--with-cpu must be passed a value" 1>&2
5448 if test x$pass2done = xyes
5450 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5457 mips*-*-ecoff* | mips*-*-elf*)
5458 if test x$gas = xyes
5460 if test x$gnu_ld = xyes
5462 target_cpu_default2=20
5464 target_cpu_default2=16
5469 if test x$gas = xyes
5471 target_cpu_default2=16
5474 powerpc*-*-* | rs6000-*-*)
5475 case "x$with_cpu" in
5479 xcommon | xpower | xpower2 | xpowerpc | xrios \
5480 | xrios1 | xrios2 | xrsc | xrsc1 \
5481 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
5482 | x403 | x505 | x801 | x821 | x823 | x860)
5483 target_cpu_default2="\"$with_cpu\""
5487 echo "--with-cpu must be passed a value" 1>&2
5492 if test x$pass2done = xyes
5494 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5501 case ".$with_cpu" in
5503 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
5505 .supersparc | .ultrasparc | .v7 | .v8 | .v9)
5506 target_cpu_default2="TARGET_CPU_$with_cpu"
5509 if test x$pass2done = xyes
5511 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5519 if test "$target_cpu_default2" != ""
5521 if test "$target_cpu_default" != ""
5523 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
5525 target_cpu_default=$target_cpu_default2
5529 # No need for collect2 if we have the GNU linker.
5530 # Actually, there is now; GNU ld doesn't handle the EH info or
5531 # collecting for shared libraries.
5538 # Save data on machine being used to compile GCC in build_xm_file.
5539 # Save data on host machine in vars host_xm_file and host_xmake_file.
5540 if test x$pass1done = x
5542 if test x"$xm_file" = x
5543 then build_xm_file=$cpu_type/xm-$cpu_type.h
5544 else build_xm_file=$xm_file
5546 build_xm_defines=$xm_defines
5547 build_install_headers_dir=$install_headers_dir
5548 build_exeext=$exeext
5551 if test x$pass2done = x
5553 if test x"$xm_file" = x
5554 then host_xm_file=$cpu_type/xm-$cpu_type.h
5555 else host_xm_file=$xm_file
5557 host_xm_defines=$xm_defines
5558 if test x"$xmake_file" = x
5559 then xmake_file=$cpu_type/x-$cpu_type
5561 host_xmake_file="$xmake_file"
5562 host_truncate_target=$truncate_target
5563 host_extra_gcc_objs=$extra_gcc_objs
5564 host_extra_objs=$extra_host_objs
5571 extra_objs="${host_extra_objs} ${extra_objs}"
5573 # Default the target-machine variables that were not explicitly set.
5574 if test x"$tm_file" = x
5575 then tm_file=$cpu_type/$cpu_type.h; fi
5577 if test x$extra_headers = x
5578 then extra_headers=; fi
5580 if test x"$xm_file" = x
5581 then xm_file=$cpu_type/xm-$cpu_type.h; fi
5583 if test x$md_file = x
5584 then md_file=$cpu_type/$cpu_type.md; fi
5586 if test x$out_file = x
5587 then out_file=$cpu_type/$cpu_type.c; fi
5589 if test x"$tmake_file" = x
5590 then tmake_file=$cpu_type/t-$cpu_type
5593 if test x$float_format = x
5594 then float_format=i64
5597 if test x$enable_haifa = x
5600 alpha*-* | hppa1.?-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
5605 # Say what files are being used for the output code and MD file.
5606 echo "Using \`$srcdir/config/$out_file' to output insns."
5607 echo "Using \`$srcdir/config/$md_file' as machine description file."
5610 for f in $tm_file; do
5613 if test $count = ax; then
5614 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
5616 echo "Using the following target machine macro files:"
5617 for f in $tm_file; do
5618 echo " $srcdir/config/$f"
5623 for f in $host_xm_file; do
5626 if test $count = ax; then
5627 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
5629 echo "Using the following host machine macro files:"
5630 for f in $host_xm_file; do
5631 echo " $srcdir/config/$f"
5635 if test "$host_xm_file" != "$build_xm_file"; then
5637 for f in $build_xm_file; do
5640 if test $count = ax; then
5641 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
5643 echo "Using the following build machine macro files:"
5644 for f in $build_xm_file; do
5645 echo " $srcdir/config/$f"
5650 if test x$thread_file = x; then
5651 if test x$target_thread_file != x; then
5652 thread_file=$target_thread_file
5654 thread_file='single'
5658 # Set up the header files.
5659 # $links is the list of header files to create.
5660 # $vars is the list of shell variables with file names to include.
5661 # auto-host.h is the file containing items generated by autoconf and is
5662 # the first file included by config.h.
5664 host_xm_file="auto-host.h gansidecl.h ${host_xm_file}"
5666 # If host=build, it is correct to have hconfig include auto-host.h
5667 # as well. If host!=build, we are in error and need to do more
5668 # work to find out the build config parameters.
5669 if test x$host = x$build
5671 build_xm_file="auto-host.h gansidecl.h ${build_xm_file}"
5673 # We create a subdir, then run autoconf in the subdir.
5674 # To prevent recursion we set host and build for the new
5675 # invocation of configure to the build for this invocation
5682 /*) realsrcdir=${srcdir};;
5683 *) realsrcdir=../${srcdir};;
5685 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
5686 --target=$target --host=$build --build=$build
5688 # We just finished tests for the build machine, so rename
5689 # the file auto-build.h in the gcc directory.
5690 mv auto-host.h ../auto-build.h
5693 build_xm_file="auto-build.h gansidecl.h ${build_xm_file}"
5696 xm_file="gansidecl.h ${xm_file}"
5697 tm_file="gansidecl.h ${tm_file}"
5699 vars="host_xm_file tm_file xm_file build_xm_file"
5700 links="config.h tm.h tconfig.h hconfig.h"
5701 defines="host_xm_defines null_defines xm_defines build_xm_defines"
5704 if test -f config.status; then mv -f config.status config.bak; fi
5707 while test -n "$vars"
5709 set $vars; var=$1; shift; vars=$*
5710 set $links; link=$1; shift; links=$*
5711 set $defines; define=$1; shift; defines=$*
5715 # Define TARGET_CPU_DEFAULT if the system wants one.
5716 # This substitutes for lots of *.h files.
5717 if test "$target_cpu_default" != "" -a $link = tm.h
5719 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
5722 for file in `eval echo '$'$var`; do
5723 echo "#include \"$file\"" >>$link
5726 for def in `eval echo '$'$define`; do
5727 echo "#ifndef $def" >>$link
5728 echo "#define $def" >>$link
5729 echo "#endif" >>$link
5733 # Truncate the target if necessary
5734 if test x$host_truncate_target != x; then
5735 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
5738 # Get the version trigger filename from the toplevel
5739 if test "${with_gcc_version_trigger+set}" = set; then
5740 gcc_version_trigger=$with_gcc_version_trigger
5742 gcc_version_trigger=${srcdir}/version.c
5744 gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
5746 # Get an absolute path to the GCC top-level source directory
5752 # Conditionalize the makefile for this host machine.
5753 # Make-host contains the concatenation of all host makefile fragments
5754 # [there can be more than one]. This file is built by configure.frag.
5755 host_overrides=Make-host
5756 dep_host_xmake_file=
5757 for f in .. ${host_xmake_file}
5759 if test -f ${srcdir}/config/$f
5761 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
5765 # Conditionalize the makefile for this target machine.
5766 # Make-target contains the concatenation of all host makefile fragments
5767 # [there can be more than one]. This file is built by configure.frag.
5768 target_overrides=Make-target
5770 for f in .. ${tmake_file}
5772 if test -f ${srcdir}/config/$f
5774 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
5778 # If the host doesn't support symlinks, modify CC in
5779 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
5780 # Otherwise, we can use "CC=$(CC)".
5782 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
5784 cc_set_by_configure="\$(CC)"
5785 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
5788 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
5790 symbolic_link="cp -p"
5794 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
5795 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
5799 out_object_file=`basename $out_file .c`.o
5802 for f in $tm_file; do
5803 if test $f != "gansidecl.h" ; then
5804 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
5806 tm_file_list="${tm_file_list} $f"
5811 for f in $host_xm_file; do
5812 if test $f != "auto-host.h" -a $f != "gansidecl.h" ; then
5813 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
5815 host_xm_file_list="${host_xm_file_list} $f"
5820 for f in $build_xm_file; do
5821 if test $f != "auto-build.h" -a $f != "auto-host.h" -a $f != "gansidecl.h" ; then
5822 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
5824 build_xm_file_list="${build_xm_file_list} $f"
5828 # Define macro CROSS_COMPILE in compilation
5829 # if this is a cross-compiler.
5830 # Also use all.cross instead of all.internal
5831 # and add cross-make to Makefile.
5832 cross_overrides="/dev/null"
5833 if test x$host != x$target
5835 cross_defines="CROSS=-DCROSS_COMPILE"
5836 cross_overrides="${topdir}/cross-make"
5839 # When building gcc with a cross-compiler, we need to fix a few things.
5840 # This must come after cross-make as we want all.build to override
5842 build_overrides="/dev/null"
5843 if test x$build != x$host
5845 build_overrides="${topdir}/build-make"
5848 # Expand extra_headers to include complete path.
5849 # This substitutes for lots of t-* files.
5851 if test "x$extra_headers" = x
5854 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
5855 for file in $extra_headers;
5857 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
5861 if test x$use_collect2 = xno; then
5865 # Add a definition of USE_COLLECT2 if system wants one.
5866 # Also tell toplev.c what to do.
5867 # This substitutes for lots of t-* files.
5868 if test x$use_collect2 = x
5873 will_use_collect2="collect2"
5874 maybe_use_collect2="-DUSE_COLLECT2"
5878 # Set MD_DEPS if the real md file is in md.pre-cpp.
5879 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
5880 # for line oriented comments, so we must always use a GNU cpp. If
5881 # building gcc with a cross compiler, use the cross compiler just
5882 # built. Otherwise, we can use the cpp just built.
5884 if test "x$md_cppflags" = x
5886 md_file_sub=$srcdir/config/$md_file
5891 # If we have gas in the build tree, make a link to it.
5892 if test -f ../gas/Makefile; then
5893 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
5896 # If we have nm in the build tree, make a link to it.
5897 if test -f ../binutils/Makefile; then
5898 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
5901 # If we have ld in the build tree, make a link to it.
5902 if test -f ../ld/Makefile; then
5903 # if test x$use_collect2 = x; then
5904 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
5906 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
5910 # Figure out what assembler alignment features are present.
5911 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
5912 echo "configure:5913: checking assembler alignment features" >&5
5914 gcc_cv_as_alignment_features=
5915 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
5916 if test -x "$DEFAULT_ASSEMBLER"; then
5917 gcc_cv_as="$DEFAULT_ASSEMBLER"
5918 elif test -x "$AS"; then
5920 elif test -x as$host_exeext; then
5921 # Build using assembler in the current directory.
5922 gcc_cv_as=./as$host_exeext
5923 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
5924 # Single tree build which includes gas.
5925 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
5927 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
5928 if test x$gcc_cv_gas_version != x; then
5932 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
5933 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
5934 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
5935 # Gas version 2.6 and later support for .balign and .p2align.
5936 # bytes to skip when using .p2align.
5937 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 6 -o "$gcc_cv_gas_major_version" -gt 2; then
5938 gcc_cv_as_alignment_features=".balign and .p2align"
5939 cat >> confdefs.h <<\EOF
5940 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
5944 # Gas version 2.8 and later support specifying the maximum
5945 # bytes to skip when using .p2align.
5946 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 8 -o "$gcc_cv_gas_major_version" -gt 2; then
5947 gcc_cv_as_alignment_features=".p2align including maximum skip"
5948 cat >> confdefs.h <<\EOF
5949 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
5954 elif test x$host = x$target; then
5956 gcc_cv_as=as$host_exeext
5958 if test x$gcc_cv_as != x; then
5959 # Check if we have .balign and .p2align
5960 echo ".balign 4" > conftest.s
5961 echo ".p2align 2" >> conftest.s
5962 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
5963 gcc_cv_as_alignment_features=".balign and .p2align"
5964 cat >> confdefs.h <<\EOF
5965 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
5969 rm -f conftest.s conftest.o
5970 # Check if specifying the maximum bytes to skip when
5971 # using .p2align is supported.
5972 echo ".p2align 4,,7" > conftest.s
5973 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
5974 gcc_cv_as_alignment_features=".p2align including maximum skip"
5975 cat >> confdefs.h <<\EOF
5976 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
5980 rm -f conftest.s conftest.o
5982 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
5984 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
5985 echo "configure:5986: checking assembler subsection support" >&5
5986 gcc_cv_as_subsections=
5987 if test x$gcc_cv_as != x; then
5988 # Check if we have .subsection
5989 echo ".subsection 1" > conftest.s
5990 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
5991 gcc_cv_as_subsections=".subsection"
5992 if test -x nm$host_exeext; then
5993 gcc_cv_nm=./nm$host_exeext
5994 elif test x$host = x$target; then
5996 gcc_cv_nm=nm$host_exeext
5998 if test x$gcc_cv_nm != x; then
5999 cat > conftest.s <<EOF
6000 conftest_label1: .word 0
6002 conftest_label2: .word 0
6005 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
6006 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
6007 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
6008 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
6011 gcc_cv_as_subsections="working .subsection -1"
6012 cat >> confdefs.h <<\EOF
6013 #define HAVE_GAS_SUBSECTION_ORDERING 1
6020 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
6022 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
6024 # Figure out what language subdirectories are present.
6026 for lang in ${srcdir}/*/config-lang.in ..
6030 # The odd quoting in the next line works around
6031 # an apparent bug in bash 1.12 on linux.
6032 ${srcdir}/ada/config-lang.in)
6033 if test x$gnat = xyes ; then
6034 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
6037 ${srcdir}/[*]/config-lang.in) ;;
6038 *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
6042 # Make gthr-default.h if we have a thread file.
6044 if test $thread_file != single; then
6045 rm -f gthr-default.h
6046 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
6047 gthread_flags=-DHAVE_GTHR_DEFAULT
6051 # Make empty files to contain the specs and options for each language.
6052 # Then add #include lines to for a compiler that has specs and/or options.
6057 rm -f specs.h options.h gencheck.h
6058 touch specs.h options.h gencheck.h
6059 for subdir in . $subdirs
6061 if test -f $srcdir/$subdir/lang-specs.h; then
6062 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
6063 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
6065 if test -f $srcdir/$subdir/lang-options.h; then
6066 echo "#include \"$subdir/lang-options.h\"" >>options.h
6067 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
6069 if test -f $srcdir/$subdir/$subdir-tree.def; then
6070 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
6071 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
6075 # These (without "all_") are set in each config-lang.in.
6076 # `language' must be a single word so is spelled singularly.
6082 all_outputs=Makefile
6083 # List of language makefile fragments.
6088 # Add the language fragments.
6089 # Languages are added via two mechanisms. Some information must be
6090 # recorded in makefile variables, these are defined in config-lang.in.
6091 # We accumulate them and plug them into the main Makefile.
6092 # The other mechanism is a set of hooks for each of the main targets
6093 # like `clean', `install', etc.
6095 language_fragments="Make-lang"
6096 language_hooks="Make-hooks"
6099 for s in .. $subdirs
6111 . ${srcdir}/$s/config-lang.in
6112 if test "x$language" = x
6114 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
6117 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
6118 all_languages="$all_languages $language"
6119 if test "x$boot_language" = xyes
6121 all_boot_languages="$all_boot_languages $language"
6123 all_compilers="$all_compilers $compilers"
6124 all_stagestuff="$all_stagestuff $stagestuff"
6125 all_diff_excludes="$all_diff_excludes $diff_excludes"
6126 all_headers="$all_headers $headers"
6127 all_outputs="$all_outputs $outputs"
6128 if test x$outputs = x
6130 oldstyle_subdirs="$oldstyle_subdirs $s"
6132 all_lib2funcs="$all_lib2funcs $lib2funcs"
6136 # Since we can't use `::' targets, we link each language in
6137 # with a set of hooks, reached indirectly via lang.${target}.
6141 target_list="all.build all.cross start.encap rest.encap \
6143 install-normal install-common install-info install-man \
6145 mostlyclean clean distclean extraclean maintainer-clean \
6146 stage1 stage2 stage3 stage4"
6147 for t in $target_list
6150 for l in .. $all_languages
6152 if test $l != ".."; then
6156 echo "lang.$t: $x" >> Make-hooks
6159 # If we're not building in srcdir, create .gdbinit.
6161 if test ! -f Makefile.in; then
6162 echo "dir ." > .gdbinit
6163 echo "dir ${srcdir}" >> .gdbinit
6164 if test x$gdb_needs_out_file_path = xyes
6166 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
6168 if test "x$subdirs" != x; then
6171 echo "dir ${srcdir}/$s" >> .gdbinit
6174 echo "source ${srcdir}/.gdbinit" >> .gdbinit
6177 # Define variables host_canonical and build_canonical
6178 # because some Cygnus local changes in the Makefile depend on them.
6179 build_canonical=${build}
6180 host_canonical=${host}
6182 if test "${host}" != "${target}" ; then
6183 target_subdir=${target}/
6189 # If this is using newlib, then define inhibit_libc in
6190 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
6191 # libgcc.a, but that's OK because newib should have its own version of
6194 if test x$with_newlib = xyes; then
6195 inhibit_libc=-Dinhibit_libc
6199 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
6202 if test x$enable_haifa = xyes; then
6203 echo "Using the Haifa scheduler."
6205 sched_cflags=-DHAIFA
6209 if test x$enable_haifa != x; then
6210 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
6211 for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do
6219 # Warn if using init_priority.
6220 echo $ac_n "checking whether to enable init_priority by default""... $ac_c" 1>&6
6221 echo "configure:6222: checking whether to enable init_priority by default" >&5
6222 if test x$enable_init_priority != xyes; then
6223 enable_init_priority=no
6225 echo "$ac_t""$enable_init_priority" 1>&6
6227 # Nothing to do for FLOAT_H, float_format already handled.
6231 # Process the language and host/target makefile fragments.
6232 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
6234 # Substitute configuration variables
6293 # Echo that links are built
6294 if test x$host = x$target
6302 if test x$host != x$build
6304 str3=" on a $build system"
6307 if test "x$str2" != x || test "x$str3" != x
6312 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
6314 if test "x$str2" != x || test "x$str3" != x
6316 echo " ${str2}${str3}." 1>&2
6319 # Truncate the target if necessary
6320 if test x$host_truncate_target != x; then
6321 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
6324 # Configure the subdirectories
6325 # AC_CONFIG_SUBDIRS($subdirs)
6327 # Create the Makefile
6328 # and configure language subdirectories
6330 cat > confcache <<\EOF
6331 # This file is a shell script that caches the results of configure
6332 # tests run on this system so they can be shared between configure
6333 # scripts and configure runs. It is not useful on other systems.
6334 # If it contains results you don't want to keep, you may remove or edit it.
6336 # By default, configure uses ./config.cache as the cache file,
6337 # creating it if it does not exist already. You can give configure
6338 # the --cache-file=FILE option to use a different cache file; that is
6339 # what configure does when it calls configure scripts in
6340 # subdirectories, so they share the cache.
6341 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6342 # config.status only pays attention to the cache file if you give it the
6343 # --recheck option to rerun configure.
6346 # The following way of writing the cache mishandles newlines in values,
6347 # but we know of no workaround that is simple, portable, and efficient.
6348 # So, don't put newlines in cache variables' values.
6349 # Ultrix sh set writes to stderr and can't be redirected directly,
6350 # and sets the high bit in the cache file unless we assign to the vars.
6352 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
6354 # `set' does not quote correctly, so add quotes (double-quote substitution
6355 # turns \\\\ into \\, and sed turns \\ into \).
6357 -e "s/'/'\\\\''/g" \
6358 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6361 # `set' quotes correctly as required by POSIX, so do not add quotes.
6362 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6365 if cmp -s $cache_file confcache; then
6368 if test -w $cache_file; then
6369 echo "updating cache $cache_file"
6370 cat confcache > $cache_file
6372 echo "not updating unwritable cache $cache_file"
6377 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6379 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6380 # Let make expand exec_prefix.
6381 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6383 # Any assignment to VPATH causes Sun make to only execute
6384 # the first set of double-colon rules, so remove it if not needed.
6385 # If there is a colon in the path, we need to keep it.
6386 if test "x$srcdir" = x.; then
6387 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6390 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6392 DEFS=-DHAVE_CONFIG_H
6394 # Without the "./", some shells look in PATH for config.status.
6395 : ${CONFIG_STATUS=./config.status}
6397 echo creating $CONFIG_STATUS
6398 rm -f $CONFIG_STATUS
6399 cat > $CONFIG_STATUS <<EOF
6401 # Generated automatically by configure.
6402 # Run this file to recreate the current configuration.
6403 # This directory was configured as follows,
6404 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6406 # $0 $ac_configure_args
6408 # Compiler output produced by configure, useful for debugging
6409 # configure, is in ./config.log if it exists.
6411 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6414 case "\$ac_option" in
6415 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6416 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6417 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6418 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6419 echo "$CONFIG_STATUS generated by autoconf version 2.12.2"
6421 -help | --help | --hel | --he | --h)
6422 echo "\$ac_cs_usage"; exit 0 ;;
6423 *) echo "\$ac_cs_usage"; exit 1 ;;
6427 ac_given_srcdir=$srcdir
6429 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6431 cat >> $CONFIG_STATUS <<EOF
6433 # Protect against being on the right side of a sed subst in config.status.
6434 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6435 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6439 s%@CFLAGS@%$CFLAGS%g
6440 s%@CPPFLAGS@%$CPPFLAGS%g
6441 s%@CXXFLAGS@%$CXXFLAGS%g
6443 s%@LDFLAGS@%$LDFLAGS%g
6445 s%@exec_prefix@%$exec_prefix%g
6446 s%@prefix@%$prefix%g
6447 s%@program_transform_name@%$program_transform_name%g
6448 s%@bindir@%$bindir%g
6449 s%@sbindir@%$sbindir%g
6450 s%@libexecdir@%$libexecdir%g
6451 s%@datadir@%$datadir%g
6452 s%@sysconfdir@%$sysconfdir%g
6453 s%@sharedstatedir@%$sharedstatedir%g
6454 s%@localstatedir@%$localstatedir%g
6455 s%@libdir@%$libdir%g
6456 s%@includedir@%$includedir%g
6457 s%@oldincludedir@%$oldincludedir%g
6458 s%@infodir@%$infodir%g
6459 s%@mandir@%$mandir%g
6461 s%@host_alias@%$host_alias%g
6462 s%@host_cpu@%$host_cpu%g
6463 s%@host_vendor@%$host_vendor%g
6464 s%@host_os@%$host_os%g
6465 s%@target@%$target%g
6466 s%@target_alias@%$target_alias%g
6467 s%@target_cpu@%$target_cpu%g
6468 s%@target_vendor@%$target_vendor%g
6469 s%@target_os@%$target_os%g
6471 s%@build_alias@%$build_alias%g
6472 s%@build_cpu@%$build_cpu%g
6473 s%@build_vendor@%$build_vendor%g
6474 s%@build_os@%$build_os%g
6476 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
6477 s%@SET_MAKE@%$SET_MAKE%g
6480 s%@LEXLIB@%$LEXLIB%g
6483 s%@RANLIB@%$RANLIB%g
6485 s%@INSTALL@%$INSTALL%g
6486 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6487 s%@INSTALL_DATA@%$INSTALL_DATA%g
6490 s%@vfprintf@%$vfprintf%g
6491 s%@doprint@%$doprint%g
6492 s%@manext@%$manext%g
6493 s%@objext@%$objext%g
6494 s%@gthread_flags@%$gthread_flags%g
6495 s%@build_canonical@%$build_canonical%g
6496 s%@host_canonical@%$host_canonical%g
6497 s%@target_subdir@%$target_subdir%g
6498 s%@inhibit_libc@%$inhibit_libc%g
6499 s%@sched_prefix@%$sched_prefix%g
6500 s%@sched_cflags@%$sched_cflags%g
6501 s%@objdir@%$objdir%g
6502 s%@subdirs@%$subdirs%g
6503 s%@all_languages@%$all_languages%g
6504 s%@all_boot_languages@%$all_boot_languages%g
6505 s%@all_compilers@%$all_compilers%g
6506 s%@all_lang_makefiles@%$all_lang_makefiles%g
6507 s%@all_stagestuff@%$all_stagestuff%g
6508 s%@all_diff_excludes@%$all_diff_excludes%g
6509 s%@all_lib2funcs@%$all_lib2funcs%g
6510 s%@all_headers@%$all_headers%g
6511 s%@cpp_main@%$cpp_main%g
6512 s%@extra_passes@%$extra_passes%g
6513 s%@extra_programs@%$extra_programs%g
6514 s%@extra_parts@%$extra_parts%g
6515 s%@extra_c_objs@%$extra_c_objs%g
6516 s%@extra_cxx_objs@%$extra_cxx_objs%g
6517 s%@extra_cpp_objs@%$extra_cpp_objs%g
6518 s%@extra_c_flags@%$extra_c_flags%g
6519 s%@extra_objs@%$extra_objs%g
6520 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
6521 s%@extra_headers_list@%$extra_headers_list%g
6522 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
6523 s%@dep_tmake_file@%$dep_tmake_file%g
6524 s%@out_file@%$out_file%g
6525 s%@out_object_file@%$out_object_file%g
6526 s%@md_file@%$md_file%g
6527 s%@tm_file_list@%$tm_file_list%g
6528 s%@build_xm_file_list@%$build_xm_file_list%g
6529 s%@host_xm_file_list@%$host_xm_file_list%g
6530 s%@lang_specs_files@%$lang_specs_files%g
6531 s%@lang_options_files@%$lang_options_files%g
6532 s%@lang_tree_files@%$lang_tree_files%g
6533 s%@thread_file@%$thread_file%g
6534 s%@objc_boehm_gc@%$objc_boehm_gc%g
6535 s%@JAVAGC@%$JAVAGC%g
6536 s%@gcc_version@%$gcc_version%g
6537 s%@gcc_version_trigger@%$gcc_version_trigger%g
6538 s%@local_prefix@%$local_prefix%g
6539 s%@gxx_include_dir@%$gxx_include_dir%g
6540 s%@fixincludes@%$fixincludes%g
6541 s%@build_install_headers_dir@%$build_install_headers_dir%g
6542 s%@build_exeext@%$build_exeext%g
6543 s%@host_exeext@%$host_exeext%g
6544 s%@float_format@%$float_format%g
6545 s%@will_use_collect2@%$will_use_collect2%g
6546 s%@maybe_use_collect2@%$maybe_use_collect2%g
6547 s%@cc_set_by_configure@%$cc_set_by_configure%g
6548 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
6549 s%@install@%$install%g
6550 s%@symbolic_link@%$symbolic_link%g
6551 /@target_overrides@/r $target_overrides
6552 s%@target_overrides@%%g
6553 /@host_overrides@/r $host_overrides
6554 s%@host_overrides@%%g
6555 s%@cross_defines@%$cross_defines%g
6556 /@cross_overrides@/r $cross_overrides
6557 s%@cross_overrides@%%g
6558 /@build_overrides@/r $build_overrides
6559 s%@build_overrides@%%g
6560 /@language_fragments@/r $language_fragments
6561 s%@language_fragments@%%g
6562 /@language_hooks@/r $language_hooks
6563 s%@language_hooks@%%g
6568 cat >> $CONFIG_STATUS <<\EOF
6570 # Split the substitutions into bite-sized pieces for seds with
6571 # small command number limits, like on Digital OSF/1 and HP-UX.
6572 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6573 ac_file=1 # Number of current file.
6574 ac_beg=1 # First line for current file.
6575 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6578 while $ac_more_lines; do
6579 if test $ac_beg -gt 1; then
6580 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6582 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6584 if test ! -s conftest.s$ac_file; then
6586 rm -f conftest.s$ac_file
6588 if test -z "$ac_sed_cmds"; then
6589 ac_sed_cmds="sed -f conftest.s$ac_file"
6591 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6593 ac_file=`expr $ac_file + 1`
6595 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6598 if test -z "$ac_sed_cmds"; then
6603 cat >> $CONFIG_STATUS <<EOF
6605 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
6607 cat >> $CONFIG_STATUS <<\EOF
6608 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6609 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6611 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6612 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6613 *) ac_file_in="${ac_file}.in" ;;
6616 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6618 # Remove last slash and all that follows it. Not all systems have dirname.
6619 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6620 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6621 # The file is in a subdirectory.
6622 test ! -d "$ac_dir" && mkdir "$ac_dir"
6623 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6624 # A "../" for each directory in $ac_dir_suffix.
6625 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6627 ac_dir_suffix= ac_dots=
6630 case "$ac_given_srcdir" in
6632 if test -z "$ac_dots"; then top_srcdir=.
6633 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6634 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6636 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6637 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6641 echo creating "$ac_file"
6643 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6645 *Makefile*) ac_comsub="1i\\
6646 # $configure_input" ;;
6650 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6652 s%@configure_input@%$configure_input%g
6653 s%@srcdir@%$srcdir%g
6654 s%@top_srcdir@%$top_srcdir%g
6655 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6659 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6660 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6662 # ac_d sets the value in "#define NAME VALUE" lines.
6663 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6664 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6667 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6668 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6669 ac_uB='\([ ]\)%\1#\2define\3'
6672 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6673 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6674 ac_eB='$%\1#\2define\3'
6678 if test "${CONFIG_HEADERS+set}" != set; then
6680 cat >> $CONFIG_STATUS <<EOF
6681 CONFIG_HEADERS="auto-host.h:config.in"
6683 cat >> $CONFIG_STATUS <<\EOF
6685 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6686 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6688 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6689 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6690 *) ac_file_in="${ac_file}.in" ;;
6693 echo creating $ac_file
6695 rm -f conftest.frag conftest.in conftest.out
6696 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6697 cat $ac_file_inputs > conftest.in
6701 # Transform confdefs.h into a sed script conftest.vals that substitutes
6702 # the proper values into config.h.in to produce config.h. And first:
6703 # Protect against being on the right side of a sed subst in config.status.
6704 # Protect against being in an unquoted here document in config.status.
6706 cat > conftest.hdr <<\EOF
6709 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6713 sed -n -f conftest.hdr confdefs.h > conftest.vals
6716 # This sed command replaces #undef with comments. This is necessary, for
6717 # example, in the case of _POSIX_SOURCE, which is predefined and required
6718 # on some systems where configure will not decide to define it.
6719 cat >> conftest.vals <<\EOF
6720 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6723 # Break up conftest.vals because some shells have a limit on
6724 # the size of here documents, and old seds have small limits too.
6729 ac_lines=`grep -c . conftest.vals`
6730 # grep -c gives empty output for an empty file on some AIX systems.
6731 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6732 # Write a limited-size here document to conftest.frag.
6733 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6734 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6736 sed -f conftest.frag conftest.in > conftest.out
6738 mv conftest.out conftest.in
6740 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6742 mv conftest.tail conftest.vals
6746 cat >> $CONFIG_STATUS <<\EOF
6747 rm -f conftest.frag conftest.h
6748 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6749 cat conftest.in >> conftest.h
6751 if cmp -s $ac_file conftest.h 2>/dev/null; then
6752 echo "$ac_file is unchanged"
6755 # Remove last slash and all that follows it. Not all systems have dirname.
6756 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6757 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6758 # The file is in a subdirectory.
6759 test ! -d "$ac_dir" && mkdir "$ac_dir"
6762 mv conftest.h $ac_file
6767 cat >> $CONFIG_STATUS <<EOF
6772 target_alias='${target_alias}'
6774 subdirs='${subdirs}'
6775 oldstyle_subdirs='${oldstyle_subdirs}'
6776 symbolic_link='${symbolic_link}'
6777 program_transform_set='${program_transform_set}'
6778 program_transform_name='${program_transform_name}'
6779 dep_host_xmake_file='${dep_host_xmake_file}'
6780 host_xmake_file='${host_xmake_file}'
6781 dep_tmake_file='${dep_tmake_file}'
6782 tmake_file='${tmake_file}'
6783 thread_file='${thread_file}'
6784 gcc_version='${gcc_version}'
6785 gcc_version_trigger='${gcc_version_trigger}'
6786 local_prefix='${local_prefix}'
6787 build_install_headers_dir='${build_install_headers_dir}'
6788 build_exeext='${build_exeext}'
6789 host_exeext='${host_exeext}'
6790 out_file='${out_file}'
6791 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
6792 SET_MAKE='${SET_MAKE}'
6793 target_list='${target_list}'
6794 target_overrides='${target_overrides}'
6795 host_overrides='${host_overrides}'
6796 cross_defines='${cross_defines}'
6797 cross_overrides='${cross_overrides}'
6798 build_overrides='${build_overrides}'
6801 cat >> $CONFIG_STATUS <<\EOF
6803 . $srcdir/configure.lang
6804 case x$CONFIG_HEADERS in
6805 xauto-host.h:config.in)
6808 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
6809 # bootstrapping and the installation procedure can still use
6810 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
6811 # FLAGS_TO_PASS has been modified to solve the problem there.
6812 # This is virtually a duplicate of what happens in configure.lang; we do
6813 # an extra check to make sure this only happens if ln -s can be used.
6814 if test "$symbolic_link" = "ln -s"; then
6815 for d in .. ${subdirs} ; do
6816 if test $d != ..; then
6819 for t in stage1 stage2 stage3 stage4 include
6822 $symbolic_link ../$t $t 2>/dev/null
6831 chmod +x $CONFIG_STATUS
6832 rm -fr confdefs* $ac_clean_files
6833 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1