3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12.1
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
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 # Initialize some variables set by options.
59 # The variables have the same names as the options, with
60 # dashes changed to underlines.
62 cache_file=./config.cache
71 program_transform_name=s,x,x,
79 bindir='${exec_prefix}/bin'
80 sbindir='${exec_prefix}/sbin'
81 libexecdir='${exec_prefix}/libexec'
82 datadir='${prefix}/share'
83 sysconfdir='${prefix}/etc'
84 sharedstatedir='${prefix}/com'
85 localstatedir='${prefix}/var'
86 libdir='${exec_prefix}/lib'
87 includedir='${prefix}/include'
88 oldincludedir='/usr/include'
89 infodir='${prefix}/info'
90 mandir='${prefix}/man'
92 # Initialize some other variables.
95 SHELL=${CONFIG_SHELL-/bin/sh}
96 # Maximum number of lines to put in a shell here document.
103 # If the previous option needs an argument, assign it.
104 if test -n "$ac_prev"; then
105 eval "$ac_prev=\$ac_option"
111 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
115 # Accept the important Cygnus configure options, so we can diagnose typos.
119 -bindir | --bindir | --bindi | --bind | --bin | --bi)
121 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
122 bindir="$ac_optarg" ;;
124 -build | --build | --buil | --bui | --bu)
126 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
127 build="$ac_optarg" ;;
129 -cache-file | --cache-file | --cache-fil | --cache-fi \
130 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
131 ac_prev=cache_file ;;
132 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
133 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
134 cache_file="$ac_optarg" ;;
136 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
138 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
140 datadir="$ac_optarg" ;;
142 -disable-* | --disable-*)
143 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
144 # Reject names that are not valid shell variable names.
145 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
146 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
148 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
149 eval "enable_${ac_feature}=no" ;;
151 -enable-* | --enable-*)
152 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
153 # Reject names that are not valid shell variable names.
154 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
155 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
157 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
162 eval "enable_${ac_feature}='$ac_optarg'" ;;
164 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
165 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
166 | --exec | --exe | --ex)
167 ac_prev=exec_prefix ;;
168 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
169 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
170 | --exec=* | --exe=* | --ex=*)
171 exec_prefix="$ac_optarg" ;;
173 -gas | --gas | --ga | --g)
174 # Obsolete; use --with-gas.
177 -help | --help | --hel | --he)
178 # Omit some internal or obsolete options to make the list less imposing.
179 # This message is too long to be a string in the A/UX 3.1 sh.
181 Usage: configure [options] [host]
182 Options: [defaults in brackets after descriptions]
184 --cache-file=FILE cache test results in FILE
185 --help print this message
186 --no-create do not create output files
187 --quiet, --silent do not print \`checking...' messages
188 --version print the version of autoconf that created configure
189 Directory and file names:
190 --prefix=PREFIX install architecture-independent files in PREFIX
192 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
194 --bindir=DIR user executables in DIR [EPREFIX/bin]
195 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
196 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
197 --datadir=DIR read-only architecture-independent data in DIR
199 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
200 --sharedstatedir=DIR modifiable architecture-independent data in DIR
202 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
203 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
204 --includedir=DIR C header files in DIR [PREFIX/include]
205 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
206 --infodir=DIR info documentation in DIR [PREFIX/info]
207 --mandir=DIR man documentation in DIR [PREFIX/man]
208 --srcdir=DIR find the sources in DIR [configure dir or ..]
209 --program-prefix=PREFIX prepend PREFIX to installed program names
210 --program-suffix=SUFFIX append SUFFIX to installed program names
211 --program-transform-name=PROGRAM
212 run sed PROGRAM on installed program names
216 --build=BUILD configure for building on BUILD [BUILD=HOST]
217 --host=HOST configure for HOST [guessed]
218 --target=TARGET configure for TARGET [TARGET=HOST]
219 Features and packages:
220 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
221 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
222 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
223 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
224 --x-includes=DIR X include files are in DIR
225 --x-libraries=DIR X library files are in DIR
227 if test -n "$ac_help"; then
228 echo "--enable and --with options recognized:$ac_help"
232 -host | --host | --hos | --ho)
234 -host=* | --host=* | --hos=* | --ho=*)
237 -includedir | --includedir | --includedi | --included | --include \
238 | --includ | --inclu | --incl | --inc)
239 ac_prev=includedir ;;
240 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
241 | --includ=* | --inclu=* | --incl=* | --inc=*)
242 includedir="$ac_optarg" ;;
244 -infodir | --infodir | --infodi | --infod | --info | --inf)
246 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
247 infodir="$ac_optarg" ;;
249 -libdir | --libdir | --libdi | --libd)
251 -libdir=* | --libdir=* | --libdi=* | --libd=*)
252 libdir="$ac_optarg" ;;
254 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
255 | --libexe | --libex | --libe)
256 ac_prev=libexecdir ;;
257 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
258 | --libexe=* | --libex=* | --libe=*)
259 libexecdir="$ac_optarg" ;;
261 -localstatedir | --localstatedir | --localstatedi | --localstated \
262 | --localstate | --localstat | --localsta | --localst \
263 | --locals | --local | --loca | --loc | --lo)
264 ac_prev=localstatedir ;;
265 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
266 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
267 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
268 localstatedir="$ac_optarg" ;;
270 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
272 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
273 mandir="$ac_optarg" ;;
276 # Obsolete; use --without-fp.
279 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
283 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
284 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
287 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
288 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
289 | --oldin | --oldi | --old | --ol | --o)
290 ac_prev=oldincludedir ;;
291 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
292 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
293 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
294 oldincludedir="$ac_optarg" ;;
296 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
298 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
299 prefix="$ac_optarg" ;;
301 -program-prefix | --program-prefix | --program-prefi | --program-pref \
302 | --program-pre | --program-pr | --program-p)
303 ac_prev=program_prefix ;;
304 -program-prefix=* | --program-prefix=* | --program-prefi=* \
305 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
306 program_prefix="$ac_optarg" ;;
308 -program-suffix | --program-suffix | --program-suffi | --program-suff \
309 | --program-suf | --program-su | --program-s)
310 ac_prev=program_suffix ;;
311 -program-suffix=* | --program-suffix=* | --program-suffi=* \
312 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
313 program_suffix="$ac_optarg" ;;
315 -program-transform-name | --program-transform-name \
316 | --program-transform-nam | --program-transform-na \
317 | --program-transform-n | --program-transform- \
318 | --program-transform | --program-transfor \
319 | --program-transfo | --program-transf \
320 | --program-trans | --program-tran \
321 | --progr-tra | --program-tr | --program-t)
322 ac_prev=program_transform_name ;;
323 -program-transform-name=* | --program-transform-name=* \
324 | --program-transform-nam=* | --program-transform-na=* \
325 | --program-transform-n=* | --program-transform-=* \
326 | --program-transform=* | --program-transfor=* \
327 | --program-transfo=* | --program-transf=* \
328 | --program-trans=* | --program-tran=* \
329 | --progr-tra=* | --program-tr=* | --program-t=*)
330 program_transform_name="$ac_optarg" ;;
332 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
333 | -silent | --silent | --silen | --sile | --sil)
336 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
338 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
340 sbindir="$ac_optarg" ;;
342 -sharedstatedir | --sharedstatedir | --sharedstatedi \
343 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
344 | --sharedst | --shareds | --shared | --share | --shar \
346 ac_prev=sharedstatedir ;;
347 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
348 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
349 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
351 sharedstatedir="$ac_optarg" ;;
353 -site | --site | --sit)
355 -site=* | --site=* | --sit=*)
358 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
360 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
361 srcdir="$ac_optarg" ;;
363 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
364 | --syscon | --sysco | --sysc | --sys | --sy)
365 ac_prev=sysconfdir ;;
366 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
367 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
368 sysconfdir="$ac_optarg" ;;
370 -target | --target | --targe | --targ | --tar | --ta | --t)
372 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
373 target="$ac_optarg" ;;
375 -v | -verbose | --verbose | --verbos | --verbo | --verb)
378 -version | --version | --versio | --versi | --vers)
379 echo "configure generated by autoconf version 2.12.1"
383 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
384 # Reject names that are not valid shell variable names.
385 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
386 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
388 ac_package=`echo $ac_package| sed 's/-/_/g'`
393 eval "with_${ac_package}='$ac_optarg'" ;;
395 -without-* | --without-*)
396 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
397 # Reject names that are not valid shell variable names.
398 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
399 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
401 ac_package=`echo $ac_package| sed 's/-/_/g'`
402 eval "with_${ac_package}=no" ;;
405 # Obsolete; use --with-x.
408 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
409 | --x-incl | --x-inc | --x-in | --x-i)
410 ac_prev=x_includes ;;
411 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
412 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
413 x_includes="$ac_optarg" ;;
415 -x-libraries | --x-libraries | --x-librarie | --x-librari \
416 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
417 ac_prev=x_libraries ;;
418 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
419 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
420 x_libraries="$ac_optarg" ;;
422 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
426 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
427 echo "configure: warning: $ac_option: invalid host type" 1>&2
429 if test "x$nonopt" != xNONE; then
430 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
438 if test -n "$ac_prev"; then
439 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
442 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
444 # File descriptor usage:
447 # 2 errors and warnings
448 # 3 some systems may open it to /dev/tty
449 # 4 used on the Kubota Titan
450 # 6 checking for... messages and results
451 # 5 compiler messages saved in config.log
452 if test "$silent" = yes; then
460 This file contains any messages produced by compilers while
461 running configure, to aid debugging if configure makes a mistake.
464 # Strip out --no-create and --no-recursion so they do not pile up.
465 # Also quote any args containing shell metacharacters.
470 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
471 | --no-cr | --no-c) ;;
472 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
473 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
474 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
475 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
476 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
481 # Only set these to C if already set. These must not be set unconditionally
482 # because not all systems understand e.g. LANG=C (notably SCO).
483 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
484 # Non-C LC_CTYPE values break the ctype check.
485 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
486 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
487 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
488 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
490 # confdefs.h avoids OS command line length limits that DEFS can exceed.
491 rm -rf conftest* confdefs.h
492 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
495 # A filename unique to this package, relative to the directory that
496 # configure is in, which we can look for to find out if srcdir is correct.
497 ac_unique_file=tree.c
499 # Find the source files, if location was not specified.
500 if test -z "$srcdir"; then
501 ac_srcdir_defaulted=yes
502 # Try the directory containing this script, then its parent.
504 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
505 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
507 if test ! -r $srcdir/$ac_unique_file; then
511 ac_srcdir_defaulted=no
513 if test ! -r $srcdir/$ac_unique_file; then
514 if test "$ac_srcdir_defaulted" = yes; then
515 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
517 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
520 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
522 # Prefer explicitly selected file to automatically selected ones.
523 if test -z "$CONFIG_SITE"; then
524 if test "x$prefix" != xNONE; then
525 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
527 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
530 for ac_site_file in $CONFIG_SITE; do
531 if test -r "$ac_site_file"; then
532 echo "loading site script $ac_site_file"
537 if test -r "$cache_file"; then
538 echo "loading cache $cache_file"
541 echo "creating cache $cache_file"
546 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
547 ac_cpp='$CPP $CPPFLAGS'
548 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
549 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
550 cross_compiling=$ac_cv_prog_cc_cross
552 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
553 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
554 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
561 ac_n= ac_c='\c' ac_t=
569 symbolic_link='ln -s'
572 # Check for bogus environment variables.
573 # Test if LIBRARY_PATH contains the notation for the current directory
574 # since this would lead to problems installing/building glibc.
575 # LIBRARY_PATH contains the current directory if one of the following
577 # - one of the terminals (":" and ";") is the first or last sign
578 # - two terminals occur directly after each other
579 # - the path contains an element with a dot in it
580 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
581 echo "configure:582: checking LIBRARY_PATH variable" >&5
582 case ${LIBRARY_PATH} in
583 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
584 library_path_setting="contains current directory"
587 library_path_setting="ok"
590 echo "$ac_t""$library_path_setting" 1>&6
591 if test "$library_path_setting" != "ok"; then
592 { echo "configure: error:
593 *** LIBRARY_PATH shouldn't contain the current directory when
594 *** building egcs. Please change the environment variable
595 *** and run configure again." 1>&2; exit 1; }
598 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
599 # since this would lead to problems installing/building glibc.
600 # GCC_EXEC_PREFIX contains the current directory if one of the following
602 # - one of the terminals (":" and ";") is the first or last sign
603 # - two terminals occur directly after each other
604 # - the path contains an element with a dot in it
605 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
606 echo "configure:607: checking GCC_EXEC_PREFIX variable" >&5
607 case ${GCC_EXEC_PREFIX} in
608 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
609 gcc_exec_prefix_setting="contains current directory"
612 gcc_exec_prefix_setting="ok"
615 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
616 if test "$gcc_exec_prefix_setting" != "ok"; then
617 { echo "configure: error:
618 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
619 *** building egcs. Please change the environment variable
620 *** and run configure again." 1>&2; exit 1; }
623 # Check for additional parameters
626 # Check whether --with-gnu-ld or --without-gnu-ld was given.
627 if test "${with_gnu_ld+set}" = set; then
628 withval="$with_gnu_ld"
629 gnu_ld_flag="$with_gnu_ld"
635 # With pre-defined ld
636 # Check whether --with-ld or --without-ld was given.
637 if test "${with_ld+set}" = set; then
642 if test x"${LD+set}" = x"set"; then
643 if test ! -x "$LD"; then
644 echo "configure: warning: cannot execute: $LD: check --with-ld or env. var. LD" 1>&2
645 elif test "GNU" = `$LD -v </dev/null 2>&1 | sed '1s/^GNU.*/GNU/;q'`; then
648 cat >> confdefs.h <<EOF
649 #define DEFAULT_LINKER "$LD"
655 # Check whether --with-gnu-as or --without-gnu-as was given.
656 if test "${with_gnu_as+set}" = set; then
657 withval="$with_gnu_as"
658 gas_flag="$with_gnu_as"
664 # Check whether --with-as or --without-as was given.
665 if test "${with_as+set}" = set; then
670 if test x"${AS+set}" = x"set"; then
671 if test ! -x "$AS"; then
672 echo "configure: warning: cannot execute: $AS: check --with-as or env. var. AS" 1>&2
673 elif test "GNU" = `$AS -v </dev/null 2>&1 | sed '1s/^GNU.*/GNU/;q'`; then
676 cat >> confdefs.h <<EOF
677 #define DEFAULT_ASSEMBLER "$AS"
683 # Check whether --with-stabs or --without-stabs was given.
684 if test "${with_stabs+set}" = set; then
685 withval="$with_stabs"
693 # Check whether --with-elf or --without-elf was given.
694 if test "${with_elf+set}" = set; then
702 # Specify the local prefix
704 # Check whether --with-local-prefix or --without-local-prefix was given.
705 if test "${with_local_prefix+set}" = set; then
706 withval="$with_local_prefix"
708 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
710 *) local_prefix=$with_local_prefix ;;
715 # Default local prefix if it is empty
716 if test x$local_prefix = x; then
717 local_prefix=/usr/local
721 # Specify the g++ header file directory
722 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
723 if test "${with_gxx_include_dir+set}" = set; then
724 withval="$with_gxx_include_dir"
726 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
728 *) gxx_include_dir=$with_gxx_include_dir ;;
733 if test x${gxx_include_dir} = x; then
734 if test x${enable_version_specific_runtime_libs} = xyes; then
735 gxx_include_dir='${libsubdir}/include/g++'
737 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
738 gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/^/*|/..|g'\`/include/g++"-${libstdcxx_interface}
742 # Enable expensive internal checks
743 # Check whether --enable-checking or --disable-checking was given.
744 if test "${enable_checking+set}" = set; then
745 enableval="$enable_checking"
746 case "${enableval}" in
747 yes) cat >> confdefs.h <<\EOF
748 #define ENABLE_CHECKING 1
752 *) { echo "configure: error: bad value ${enableval} given for checking option" 1>&2; exit 1; } ;;
757 # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
759 # Check whether --enable-cpplib or --disable-cpplib was given.
760 if test "${enable_cpplib+set}" = set; then
761 enableval="$enable_cpplib"
762 if test x$enable_cpplib != xno; then
768 # Link cpplib into the compiler proper, for C/C++/ObjC.
769 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
770 if test "${enable_c_cpplib+set}" = set; then
771 enableval="$enable_c_cpplib"
772 if test x$enable_c_cpplib != xno; then
773 extra_c_objs="${extra_c_objs} cpplib.o cppexp.o cpphash.o cpperror.o"
774 extra_c_objs="${extra_c_objs} prefix.o"
775 extra_cxx_objs="${extra_cxx_objs} ../cpplib.o ../cppexp.o ../cpphash.o ../cpperror.o ../prefix.o"
776 extra_c_flags=-DUSE_CPPLIB=1
782 # Enable Multibyte Characters for C/C++
783 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
784 if test "${enable_c_mbchar+set}" = set; then
785 enableval="$enable_c_mbchar"
786 if test x$enable_c_mbchar != xno; then
787 extra_c_flags=-DMULTIBYTE_CHARS=1
792 # Enable Haifa scheduler.
793 # Check whether --enable-haifa or --disable-haifa was given.
794 if test "${enable_haifa+set}" = set; then
795 enableval="$enable_haifa"
801 # This is a work in progress...
802 # Check whether --with-fast-fixincludes or --without-fast-fixincludes was given.
803 if test "${with_fast_fixincludes+set}" = set; then
804 withval="$with_fast_fixincludes"
805 fast_fixinc="$with_fast_fixincludes"
811 # Enable init_priority.
812 # Check whether --enable-init-priority or --disable-init-priority was given.
813 if test "${enable_init_priority+set}" = set; then
814 enableval="$enable_init_priority"
815 if test x$enable_init_priority != xno; then
816 extra_c_flags=-DUSE_INIT_PRIORITY
822 # Pass with no value to take the default
823 # Pass with a value to specify a thread package
824 # Check whether --enable-threads or --disable-threads was given.
825 if test "${enable_threads+set}" = set; then
826 enableval="$enable_threads"
827 if test x$enable_threads = xno; then
835 enable_threads_flag=$enable_threads
836 # Check if a valid thread package
837 case x${enable_threads_flag} in
840 target_thread_file='single'
844 target_thread_file=''
846 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
847 xsolaris | xwin32 | xdce | xvxworks)
848 target_thread_file=$enable_threads_flag
851 echo "$enable_threads is an unknown thread package" 1>&2
856 # Check whether --enable-objc-gc or --disable-objc-gc was given.
857 if test "${enable_objc_gc+set}" = set; then
858 enableval="$enable_objc_gc"
859 if [ x$enable_objc_gc = xno ]; then
869 # Determine the host, build, and target systems
871 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
872 if test -f $ac_dir/install-sh; then
874 ac_install_sh="$ac_aux_dir/install-sh -c"
876 elif test -f $ac_dir/install.sh; then
878 ac_install_sh="$ac_aux_dir/install.sh -c"
882 if test -z "$ac_aux_dir"; then
883 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
885 ac_config_guess=$ac_aux_dir/config.guess
886 ac_config_sub=$ac_aux_dir/config.sub
887 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
890 # Do some error checking and defaulting for the host and target type.
892 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
895 # 1. You are not allowed to specify --host, --target, and nonopt at the
897 # 2. Host defaults to nonopt.
898 # 3. If nonopt is not specified, then host defaults to the current host,
899 # as determined by config.guess.
900 # 4. Target and build default to nonopt.
901 # 5. If nonopt is not specified, then target and build default to host.
903 # The aliases save the names the user supplied, while $host etc.
904 # will get canonicalized.
905 case $host---$target---$nonopt in
906 NONE---*---* | *---NONE---* | *---*---NONE) ;;
907 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
911 # Make sure we can run config.sub.
912 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
913 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
916 echo $ac_n "checking host system type""... $ac_c" 1>&6
917 echo "configure:918: checking host system type" >&5
920 case "$host_alias" in
924 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
925 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
927 *) host_alias=$nonopt ;;
931 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
932 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
933 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
934 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
935 echo "$ac_t""$host" 1>&6
937 echo $ac_n "checking target system type""... $ac_c" 1>&6
938 echo "configure:939: checking target system type" >&5
941 case "$target_alias" in
944 NONE) target_alias=$host_alias ;;
945 *) target_alias=$nonopt ;;
949 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
950 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
951 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
952 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
953 echo "$ac_t""$target" 1>&6
955 echo $ac_n "checking build system type""... $ac_c" 1>&6
956 echo "configure:957: checking build system type" >&5
959 case "$build_alias" in
962 NONE) build_alias=$host_alias ;;
963 *) build_alias=$nonopt ;;
967 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
968 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
969 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
970 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
971 echo "$ac_t""$build" 1>&6
973 test "$host_alias" != "$target_alias" &&
974 test "$program_prefix$program_suffix$program_transform_name" = \
976 program_prefix=${target_alias}-
979 # Find the native compiler
980 # Extract the first word of "gcc", so it can be a program name with args.
981 set dummy gcc; ac_word=$2
982 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
983 echo "configure:984: checking for $ac_word" >&5
984 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
985 echo $ac_n "(cached) $ac_c" 1>&6
987 if test -n "$CC"; then
988 ac_cv_prog_CC="$CC" # Let the user override the test.
990 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
991 for ac_dir in $PATH; do
992 test -z "$ac_dir" && ac_dir=.
993 if test -f $ac_dir/$ac_word; then
1002 if test -n "$CC"; then
1003 echo "$ac_t""$CC" 1>&6
1005 echo "$ac_t""no" 1>&6
1008 if test -z "$CC"; then
1009 # Extract the first word of "cc", so it can be a program name with args.
1010 set dummy cc; ac_word=$2
1011 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1012 echo "configure:1013: checking for $ac_word" >&5
1013 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1014 echo $ac_n "(cached) $ac_c" 1>&6
1016 if test -n "$CC"; then
1017 ac_cv_prog_CC="$CC" # Let the user override the test.
1019 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1021 for ac_dir in $PATH; do
1022 test -z "$ac_dir" && ac_dir=.
1023 if test -f $ac_dir/$ac_word; then
1024 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1025 ac_prog_rejected=yes
1033 if test $ac_prog_rejected = yes; then
1034 # We found a bogon in the path, so make sure we never use it.
1035 set dummy $ac_cv_prog_CC
1037 if test $# -gt 0; then
1038 # We chose a different compiler from the bogus one.
1039 # However, it has the same basename, so the bogon will be chosen
1040 # first if we set CC to just the basename; use the full file name.
1042 set dummy "$ac_dir/$ac_word" "$@"
1050 if test -n "$CC"; then
1051 echo "$ac_t""$CC" 1>&6
1053 echo "$ac_t""no" 1>&6
1056 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1059 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1060 echo "configure:1061: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1063 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1064 ac_cpp='$CPP $CPPFLAGS'
1065 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1066 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1067 cross_compiling=$ac_cv_prog_cc_cross
1069 cat > conftest.$ac_ext <<EOF
1070 #line 1071 "configure"
1071 #include "confdefs.h"
1074 if { (eval echo configure:1075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1075 ac_cv_prog_cc_works=yes
1076 # If we can't run a trivial program, we are probably using a cross compiler.
1077 if (./conftest; exit) 2>/dev/null; then
1078 ac_cv_prog_cc_cross=no
1080 ac_cv_prog_cc_cross=yes
1083 echo "configure: failed program was:" >&5
1084 cat conftest.$ac_ext >&5
1085 ac_cv_prog_cc_works=no
1089 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1090 if test $ac_cv_prog_cc_works = no; then
1091 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1093 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1094 echo "configure:1095: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1095 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1096 cross_compiling=$ac_cv_prog_cc_cross
1098 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1099 echo "configure:1100: checking whether we are using GNU C" >&5
1100 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1101 echo $ac_n "(cached) $ac_c" 1>&6
1103 cat > conftest.c <<EOF
1108 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1115 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1117 if test $ac_cv_prog_gcc = yes; then
1119 ac_test_CFLAGS="${CFLAGS+set}"
1120 ac_save_CFLAGS="$CFLAGS"
1122 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1123 echo "configure:1124: checking whether ${CC-cc} accepts -g" >&5
1124 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1125 echo $ac_n "(cached) $ac_c" 1>&6
1127 echo 'void f(){}' > conftest.c
1128 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1137 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1138 if test "$ac_test_CFLAGS" = set; then
1139 CFLAGS="$ac_save_CFLAGS"
1140 elif test $ac_cv_prog_cc_g = yes; then
1147 test "${CFLAGS+set}" = set || CFLAGS="-g"
1151 # If the native compiler is GCC, we can enable warnings even in stage1.
1152 # That's useful for people building cross-compilers, or just running a
1154 if test "x$GCC" = "xyes"; then
1155 stage1_warn_cflags='$(WARN_CFLAGS)'
1157 stage1_warn_cflags=""
1161 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1162 echo "configure:1163: checking whether ${MAKE-make} sets \${MAKE}" >&5
1163 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1164 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1165 echo $ac_n "(cached) $ac_c" 1>&6
1167 cat > conftestmake <<\EOF
1169 @echo 'ac_maketemp="${MAKE}"'
1171 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1172 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1173 if test -n "$ac_maketemp"; then
1174 eval ac_cv_prog_make_${ac_make}_set=yes
1176 eval ac_cv_prog_make_${ac_make}_set=no
1180 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1181 echo "$ac_t""yes" 1>&6
1184 echo "$ac_t""no" 1>&6
1185 SET_MAKE="MAKE=${MAKE-make}"
1189 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1190 echo "configure:1191: checking whether a default assembler was specified" >&5
1191 if test x"${AS+set}" = x"set"; then
1192 if test x"$with_gas" = x"no"; then
1193 echo "$ac_t""yes ($AS)" 1>&6
1195 echo "$ac_t""yes ($AS - GNU as)" 1>&6
1198 echo "$ac_t""no" 1>&6
1201 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1202 echo "configure:1203: checking whether a default linker was specified" >&5
1203 if test x"${LD+set}" = x"set"; then
1204 if test x"$with_gnu_ld" = x"no"; then
1205 echo "$ac_t""yes ($LD)" 1>&6
1207 echo "$ac_t""yes ($LD - GNU ld)" 1>&6
1210 echo "$ac_t""no" 1>&6
1213 # Find some useful tools
1214 for ac_prog in mawk gawk nawk awk
1216 # Extract the first word of "$ac_prog", so it can be a program name with args.
1217 set dummy $ac_prog; ac_word=$2
1218 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1219 echo "configure:1220: checking for $ac_word" >&5
1220 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1221 echo $ac_n "(cached) $ac_c" 1>&6
1223 if test -n "$AWK"; then
1224 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1226 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1227 for ac_dir in $PATH; do
1228 test -z "$ac_dir" && ac_dir=.
1229 if test -f $ac_dir/$ac_word; then
1230 ac_cv_prog_AWK="$ac_prog"
1237 AWK="$ac_cv_prog_AWK"
1238 if test -n "$AWK"; then
1239 echo "$ac_t""$AWK" 1>&6
1241 echo "$ac_t""no" 1>&6
1244 test -n "$AWK" && break
1247 # Extract the first word of "flex", so it can be a program name with args.
1248 set dummy flex; ac_word=$2
1249 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1250 echo "configure:1251: checking for $ac_word" >&5
1251 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1252 echo $ac_n "(cached) $ac_c" 1>&6
1254 if test -n "$LEX"; then
1255 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1257 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1258 for ac_dir in $PATH; do
1259 test -z "$ac_dir" && ac_dir=.
1260 if test -f $ac_dir/$ac_word; then
1261 ac_cv_prog_LEX="flex"
1266 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1269 LEX="$ac_cv_prog_LEX"
1270 if test -n "$LEX"; then
1271 echo "$ac_t""$LEX" 1>&6
1273 echo "$ac_t""no" 1>&6
1276 if test -z "$LEXLIB"
1282 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1283 echo "configure:1284: checking for yywrap in -l$ac_lib" >&5
1284 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1285 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1286 echo $ac_n "(cached) $ac_c" 1>&6
1288 ac_save_LIBS="$LIBS"
1289 LIBS="-l$ac_lib $LIBS"
1290 cat > conftest.$ac_ext <<EOF
1291 #line 1292 "configure"
1292 #include "confdefs.h"
1293 /* Override any gcc2 internal prototype to avoid an error. */
1294 /* We use char because int might match the return type of a gcc2
1295 builtin and then its argument prototype would still apply. */
1302 if { (eval echo configure:1303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1304 eval "ac_cv_lib_$ac_lib_var=yes"
1306 echo "configure: failed program was:" >&5
1307 cat conftest.$ac_ext >&5
1309 eval "ac_cv_lib_$ac_lib_var=no"
1312 LIBS="$ac_save_LIBS"
1315 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1316 echo "$ac_t""yes" 1>&6
1319 echo "$ac_t""no" 1>&6
1324 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1325 echo "configure:1326: checking whether ln works" >&5
1326 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1327 echo $ac_n "(cached) $ac_c" 1>&6
1329 rm -f conftestdata_t
1330 echo >conftestdata_f
1331 if ln conftestdata_f conftestdata_t 2>/dev/null
1335 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1337 gcc_cv_prog_LN="ln -s"
1342 rm -f conftestdata_f conftestdata_t
1345 LN="$gcc_cv_prog_LN"
1346 if test "$gcc_cv_prog_LN" = "ln"; then
1347 echo "$ac_t""yes" 1>&6
1349 if test "$gcc_cv_prog_LN" = "ln -s"; then
1350 echo "$ac_t""no, using ln -s" 1>&6
1352 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1356 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1357 echo "configure:1358: checking whether ln -s works" >&5
1358 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1359 echo $ac_n "(cached) $ac_c" 1>&6
1361 rm -f conftestdata_t
1362 echo >conftestdata_f
1363 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1365 gcc_cv_prog_LN_S="ln -s"
1367 if ln conftestdata_f conftestdata_t 2>/dev/null
1374 rm -f conftestdata_f conftestdata_t
1377 LN_S="$gcc_cv_prog_LN_S"
1378 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1379 echo "$ac_t""yes" 1>&6
1381 if test "$gcc_cv_prog_LN_S" = "ln"; then
1382 echo "$ac_t""no, using ln" 1>&6
1384 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1388 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1389 echo "configure:1390: checking for volatile" >&5
1390 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1391 echo $ac_n "(cached) $ac_c" 1>&6
1393 cat > conftest.$ac_ext <<EOF
1394 #line 1395 "configure"
1395 #include "confdefs.h"
1401 if { (eval echo configure:1402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1403 gcc_cv_c_volatile=yes
1405 echo "configure: failed program was:" >&5
1406 cat conftest.$ac_ext >&5
1408 gcc_cv_c_volatile=no
1413 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1414 if test $gcc_cv_c_volatile = yes ; then
1415 cat >> confdefs.h <<\EOF
1416 #define HAVE_VOLATILE 1
1421 # Extract the first word of "ranlib", so it can be a program name with args.
1422 set dummy ranlib; ac_word=$2
1423 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1424 echo "configure:1425: checking for $ac_word" >&5
1425 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1426 echo $ac_n "(cached) $ac_c" 1>&6
1428 if test -n "$RANLIB"; then
1429 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1431 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1432 for ac_dir in $PATH; do
1433 test -z "$ac_dir" && ac_dir=.
1434 if test -f $ac_dir/$ac_word; then
1435 ac_cv_prog_RANLIB="ranlib"
1440 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1443 RANLIB="$ac_cv_prog_RANLIB"
1444 if test -n "$RANLIB"; then
1445 echo "$ac_t""$RANLIB" 1>&6
1447 echo "$ac_t""no" 1>&6
1450 for ac_prog in 'bison -y' byacc
1452 # Extract the first word of "$ac_prog", so it can be a program name with args.
1453 set dummy $ac_prog; ac_word=$2
1454 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1455 echo "configure:1456: checking for $ac_word" >&5
1456 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1457 echo $ac_n "(cached) $ac_c" 1>&6
1459 if test -n "$YACC"; then
1460 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1462 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1463 for ac_dir in $PATH; do
1464 test -z "$ac_dir" && ac_dir=.
1465 if test -f $ac_dir/$ac_word; then
1466 ac_cv_prog_YACC="$ac_prog"
1473 YACC="$ac_cv_prog_YACC"
1474 if test -n "$YACC"; then
1475 echo "$ac_t""$YACC" 1>&6
1477 echo "$ac_t""no" 1>&6
1480 test -n "$YACC" && break
1482 test -n "$YACC" || YACC="yacc"
1484 # Find a good install program. We prefer a C program (faster),
1485 # so one script is as good as another. But avoid the broken or
1486 # incompatible versions:
1487 # SysV /etc/install, /usr/sbin/install
1488 # SunOS /usr/etc/install
1489 # IRIX /sbin/install
1491 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1492 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1493 # ./install, which can be erroneously created by make from ./install.sh.
1494 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1495 echo "configure:1496: checking for a BSD compatible install" >&5
1496 if test -z "$INSTALL"; then
1497 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1498 echo $ac_n "(cached) $ac_c" 1>&6
1500 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1501 for ac_dir in $PATH; do
1502 # Account for people who put trailing slashes in PATH elements.
1504 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1506 # OSF1 and SCO ODT 3.0 have their own names for install.
1507 for ac_prog in ginstall scoinst install; do
1508 if test -f $ac_dir/$ac_prog; then
1509 if test $ac_prog = install &&
1510 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1511 # AIX install. It has an incompatible calling convention.
1512 # OSF/1 installbsd also uses dspmsg, but is usable.
1515 ac_cv_path_install="$ac_dir/$ac_prog -c"
1526 if test "${ac_cv_path_install+set}" = set; then
1527 INSTALL="$ac_cv_path_install"
1529 # As a last resort, use the slow shell script. We don't cache a
1530 # path for INSTALL within a source directory, because that will
1531 # break other packages using the cache if that directory is
1532 # removed, or if the path is relative.
1533 INSTALL="$ac_install_sh"
1536 echo "$ac_t""$INSTALL" 1>&6
1538 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1539 # It thinks the first close brace ends the variable substitution.
1540 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1542 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1545 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1546 echo "configure:1547: checking how to run the C preprocessor" >&5
1547 # On Suns, sometimes $CPP names a directory.
1548 if test -n "$CPP" && test -d "$CPP"; then
1551 if test -z "$CPP"; then
1552 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1553 echo $ac_n "(cached) $ac_c" 1>&6
1555 # This must be in double quotes, not single quotes, because CPP may get
1556 # substituted into the Makefile and "${CC-cc}" will confuse make.
1558 # On the NeXT, cc -E runs the code through the compiler's parser,
1559 # not just through cpp.
1560 cat > conftest.$ac_ext <<EOF
1561 #line 1562 "configure"
1562 #include "confdefs.h"
1566 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1567 { (eval echo configure:1568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1568 ac_err=`grep -v '^ *+' conftest.out`
1569 if test -z "$ac_err"; then
1573 echo "configure: failed program was:" >&5
1574 cat conftest.$ac_ext >&5
1576 CPP="${CC-cc} -E -traditional-cpp"
1577 cat > conftest.$ac_ext <<EOF
1578 #line 1579 "configure"
1579 #include "confdefs.h"
1583 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1584 { (eval echo configure:1585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1585 ac_err=`grep -v '^ *+' conftest.out`
1586 if test -z "$ac_err"; then
1590 echo "configure: failed program was:" >&5
1591 cat conftest.$ac_ext >&5
1598 ac_cv_prog_CPP="$CPP"
1600 CPP="$ac_cv_prog_CPP"
1602 ac_cv_prog_CPP="$CPP"
1604 echo "$ac_t""$CPP" 1>&6
1606 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1607 echo "configure:1608: checking for ANSI C header files" >&5
1608 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1609 echo $ac_n "(cached) $ac_c" 1>&6
1611 cat > conftest.$ac_ext <<EOF
1612 #line 1613 "configure"
1613 #include "confdefs.h"
1619 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1620 { (eval echo configure:1621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1621 ac_err=`grep -v '^ *+' conftest.out`
1622 if test -z "$ac_err"; then
1624 ac_cv_header_stdc=yes
1627 echo "configure: failed program was:" >&5
1628 cat conftest.$ac_ext >&5
1630 ac_cv_header_stdc=no
1634 if test $ac_cv_header_stdc = yes; then
1635 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1636 cat > conftest.$ac_ext <<EOF
1637 #line 1638 "configure"
1638 #include "confdefs.h"
1641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1642 egrep "memchr" >/dev/null 2>&1; then
1646 ac_cv_header_stdc=no
1652 if test $ac_cv_header_stdc = yes; then
1653 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1654 cat > conftest.$ac_ext <<EOF
1655 #line 1656 "configure"
1656 #include "confdefs.h"
1659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1660 egrep "free" >/dev/null 2>&1; then
1664 ac_cv_header_stdc=no
1670 if test $ac_cv_header_stdc = yes; then
1671 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1672 if test "$cross_compiling" = yes; then
1675 cat > conftest.$ac_ext <<EOF
1676 #line 1677 "configure"
1677 #include "confdefs.h"
1679 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1680 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1681 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1682 int main () { int i; for (i = 0; i < 256; i++)
1683 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1687 if { (eval echo configure:1688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1691 echo "configure: failed program was:" >&5
1692 cat conftest.$ac_ext >&5
1694 ac_cv_header_stdc=no
1702 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1703 if test $ac_cv_header_stdc = yes; then
1704 cat >> confdefs.h <<\EOF
1705 #define STDC_HEADERS 1
1710 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1711 echo "configure:1712: checking whether time.h and sys/time.h may both be included" >&5
1712 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1713 echo $ac_n "(cached) $ac_c" 1>&6
1715 cat > conftest.$ac_ext <<EOF
1716 #line 1717 "configure"
1717 #include "confdefs.h"
1718 #include <sys/types.h>
1719 #include <sys/time.h>
1725 if { (eval echo configure:1726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1727 ac_cv_header_time=yes
1729 echo "configure: failed program was:" >&5
1730 cat conftest.$ac_ext >&5
1732 ac_cv_header_time=no
1737 echo "$ac_t""$ac_cv_header_time" 1>&6
1738 if test $ac_cv_header_time = yes; then
1739 cat >> confdefs.h <<\EOF
1740 #define TIME_WITH_SYS_TIME 1
1745 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
1746 echo "configure:1747: checking whether string.h and strings.h may both be included" >&5
1747 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
1748 echo $ac_n "(cached) $ac_c" 1>&6
1750 cat > conftest.$ac_ext <<EOF
1751 #line 1752 "configure"
1752 #include "confdefs.h"
1754 #include <strings.h>
1759 if { (eval echo configure:1760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1761 gcc_cv_header_string=yes
1763 echo "configure: failed program was:" >&5
1764 cat conftest.$ac_ext >&5
1766 gcc_cv_header_string=no
1771 echo "$ac_t""$gcc_cv_header_string" 1>&6
1772 if test $gcc_cv_header_string = yes; then
1773 cat >> confdefs.h <<\EOF
1774 #define STRING_WITH_STRINGS 1
1779 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
1781 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1782 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1783 echo "configure:1784: checking for $ac_hdr" >&5
1784 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1785 echo $ac_n "(cached) $ac_c" 1>&6
1787 cat > conftest.$ac_ext <<EOF
1788 #line 1789 "configure"
1789 #include "confdefs.h"
1792 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1793 { (eval echo configure:1794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1794 ac_err=`grep -v '^ *+' conftest.out`
1795 if test -z "$ac_err"; then
1797 eval "ac_cv_header_$ac_safe=yes"
1800 echo "configure: failed program was:" >&5
1801 cat conftest.$ac_ext >&5
1803 eval "ac_cv_header_$ac_safe=no"
1807 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1808 echo "$ac_t""yes" 1>&6
1809 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1810 cat >> confdefs.h <<EOF
1811 #define $ac_tr_hdr 1
1815 echo "$ac_t""no" 1>&6
1820 # Check for thread headers.
1821 ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'`
1822 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
1823 echo "configure:1824: checking for thread.h" >&5
1824 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1825 echo $ac_n "(cached) $ac_c" 1>&6
1827 cat > conftest.$ac_ext <<EOF
1828 #line 1829 "configure"
1829 #include "confdefs.h"
1832 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1833 { (eval echo configure:1834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1834 ac_err=`grep -v '^ *+' conftest.out`
1835 if test -z "$ac_err"; then
1837 eval "ac_cv_header_$ac_safe=yes"
1840 echo "configure: failed program was:" >&5
1841 cat conftest.$ac_ext >&5
1843 eval "ac_cv_header_$ac_safe=no"
1847 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1848 echo "$ac_t""yes" 1>&6
1851 echo "$ac_t""no" 1>&6
1855 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
1856 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
1857 echo "configure:1858: checking for pthread.h" >&5
1858 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1859 echo $ac_n "(cached) $ac_c" 1>&6
1861 cat > conftest.$ac_ext <<EOF
1862 #line 1863 "configure"
1863 #include "confdefs.h"
1864 #include <pthread.h>
1866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1867 { (eval echo configure:1868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1868 ac_err=`grep -v '^ *+' conftest.out`
1869 if test -z "$ac_err"; then
1871 eval "ac_cv_header_$ac_safe=yes"
1874 echo "configure: failed program was:" >&5
1875 cat conftest.$ac_ext >&5
1877 eval "ac_cv_header_$ac_safe=no"
1881 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1882 echo "$ac_t""yes" 1>&6
1885 echo "$ac_t""no" 1>&6
1890 # See if GNAT has been installed
1891 # Extract the first word of "gnatbind", so it can be a program name with args.
1892 set dummy gnatbind; ac_word=$2
1893 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1894 echo "configure:1895: checking for $ac_word" >&5
1895 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
1896 echo $ac_n "(cached) $ac_c" 1>&6
1898 if test -n "$gnat"; then
1899 ac_cv_prog_gnat="$gnat" # Let the user override the test.
1901 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1902 for ac_dir in $PATH; do
1903 test -z "$ac_dir" && ac_dir=.
1904 if test -f $ac_dir/$ac_word; then
1905 ac_cv_prog_gnat="yes"
1910 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat="no"
1913 gnat="$ac_cv_prog_gnat"
1914 if test -n "$gnat"; then
1915 echo "$ac_t""$gnat" 1>&6
1917 echo "$ac_t""no" 1>&6
1921 # See if the system preprocessor understands the ANSI C preprocessor
1922 # stringification operator.
1923 echo $ac_n "checking whether cpp understands the stringify operator""... $ac_c" 1>&6
1924 echo "configure:1925: checking whether cpp understands the stringify operator" >&5
1925 if eval "test \"`echo '$''{'gcc_cv_c_have_stringify'+set}'`\" = set"; then
1926 echo $ac_n "(cached) $ac_c" 1>&6
1928 cat > conftest.$ac_ext <<EOF
1929 #line 1930 "configure"
1930 #include "confdefs.h"
1934 char *test = S(foo);
1937 if { (eval echo configure:1938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1939 gcc_cv_c_have_stringify=yes
1941 echo "configure: failed program was:" >&5
1942 cat conftest.$ac_ext >&5
1944 gcc_cv_c_have_stringify=no
1949 echo "$ac_t""$gcc_cv_c_have_stringify" 1>&6
1950 if test $gcc_cv_c_have_stringify = yes; then
1951 cat >> confdefs.h <<\EOF
1952 #define HAVE_CPP_STRINGIFY 1
1957 # Use <inttypes.h> only if it exists,
1958 # doesn't clash with <sys/types.h>, and declares intmax_t.
1959 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
1960 echo "configure:1961: checking for inttypes.h" >&5
1961 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
1962 echo $ac_n "(cached) $ac_c" 1>&6
1964 cat > conftest.$ac_ext <<EOF
1965 #line 1966 "configure"
1966 #include "confdefs.h"
1967 #include <sys/types.h>
1968 #include <inttypes.h>
1973 if { (eval echo configure:1974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1975 cat >> confdefs.h <<EOF
1976 #define HAVE_INTTYPES_H 1
1979 gcc_cv_header_inttypes_h=yes
1981 echo "configure: failed program was:" >&5
1982 cat conftest.$ac_ext >&5
1984 gcc_cv_header_inttypes_h=no
1989 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
1991 for ac_func in strtoul bsearch strerror putenv popen bcopy bzero bcmp \
1992 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
1993 sysconf isascii gettimeofday strsignal
1995 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1996 echo "configure:1997: checking for $ac_func" >&5
1997 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1998 echo $ac_n "(cached) $ac_c" 1>&6
2000 cat > conftest.$ac_ext <<EOF
2001 #line 2002 "configure"
2002 #include "confdefs.h"
2003 /* System header to define __stub macros and hopefully few prototypes,
2004 which can conflict with char $ac_func(); below. */
2006 /* Override any gcc2 internal prototype to avoid an error. */
2007 /* We use char because int might match the return type of a gcc2
2008 builtin and then its argument prototype would still apply. */
2013 /* The GNU C library defines this for functions which it implements
2014 to always fail with ENOSYS. Some functions are actually named
2015 something starting with __ and the normal name is an alias. */
2016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2024 if { (eval echo configure:2025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2026 eval "ac_cv_func_$ac_func=yes"
2028 echo "configure: failed program was:" >&5
2029 cat conftest.$ac_ext >&5
2031 eval "ac_cv_func_$ac_func=no"
2036 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2037 echo "$ac_t""yes" 1>&6
2038 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2039 cat >> confdefs.h <<EOF
2040 #define $ac_tr_func 1
2044 echo "$ac_t""no" 1>&6
2049 # Make sure wchar_t is available
2050 #AC_CHECK_TYPE(wchar_t, unsigned int)
2052 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2053 echo "configure:2054: checking for vprintf" >&5
2054 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2055 echo $ac_n "(cached) $ac_c" 1>&6
2057 cat > conftest.$ac_ext <<EOF
2058 #line 2059 "configure"
2059 #include "confdefs.h"
2060 /* System header to define __stub macros and hopefully few prototypes,
2061 which can conflict with char vprintf(); below. */
2063 /* Override any gcc2 internal prototype to avoid an error. */
2064 /* We use char because int might match the return type of a gcc2
2065 builtin and then its argument prototype would still apply. */
2070 /* The GNU C library defines this for functions which it implements
2071 to always fail with ENOSYS. Some functions are actually named
2072 something starting with __ and the normal name is an alias. */
2073 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2081 if { (eval echo configure:2082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2083 eval "ac_cv_func_vprintf=yes"
2085 echo "configure: failed program was:" >&5
2086 cat conftest.$ac_ext >&5
2088 eval "ac_cv_func_vprintf=no"
2093 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2094 echo "$ac_t""yes" 1>&6
2095 cat >> confdefs.h <<\EOF
2096 #define HAVE_VPRINTF 1
2100 echo "$ac_t""no" 1>&6
2103 if test "$ac_cv_func_vprintf" != yes; then
2104 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2105 echo "configure:2106: checking for _doprnt" >&5
2106 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2107 echo $ac_n "(cached) $ac_c" 1>&6
2109 cat > conftest.$ac_ext <<EOF
2110 #line 2111 "configure"
2111 #include "confdefs.h"
2112 /* System header to define __stub macros and hopefully few prototypes,
2113 which can conflict with char _doprnt(); below. */
2115 /* Override any gcc2 internal prototype to avoid an error. */
2116 /* We use char because int might match the return type of a gcc2
2117 builtin and then its argument prototype would still apply. */
2122 /* The GNU C library defines this for functions which it implements
2123 to always fail with ENOSYS. Some functions are actually named
2124 something starting with __ and the normal name is an alias. */
2125 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2133 if { (eval echo configure:2134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2135 eval "ac_cv_func__doprnt=yes"
2137 echo "configure: failed program was:" >&5
2138 cat conftest.$ac_ext >&5
2140 eval "ac_cv_func__doprnt=no"
2145 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2146 echo "$ac_t""yes" 1>&6
2147 cat >> confdefs.h <<\EOF
2148 #define HAVE_DOPRNT 1
2152 echo "$ac_t""no" 1>&6
2159 if test $ac_cv_func_vprintf != yes ; then
2161 if test $ac_cv_func__doprnt != yes ; then
2168 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2169 echo "configure:2170: checking whether the printf functions support %p" >&5
2170 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2171 echo $ac_n "(cached) $ac_c" 1>&6
2173 if test "$cross_compiling" = yes; then
2174 gcc_cv_func_printf_ptr=no
2176 cat > conftest.$ac_ext <<EOF
2177 #line 2178 "configure"
2178 #include "confdefs.h"
2184 char *p = buf, *q = NULL;
2185 sprintf(buf, "%p", p);
2186 sscanf(buf, "%p", &q);
2190 if { (eval echo configure:2191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2192 gcc_cv_func_printf_ptr=yes
2194 echo "configure: failed program was:" >&5
2195 cat conftest.$ac_ext >&5
2197 gcc_cv_func_printf_ptr=no
2202 rm -f core core.* *.core
2205 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2206 if test $gcc_cv_func_printf_ptr = yes ; then
2207 cat >> confdefs.h <<\EOF
2208 #define HAVE_PRINTF_PTR 1
2214 for ac_func in malloc realloc calloc free bcopy bzero bcmp \
2215 index rindex getenv atol sbrk abort atof strerror getcwd getwd \
2218 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2219 echo "configure:2220: checking whether $ac_func must be declared" >&5
2220 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2221 echo $ac_n "(cached) $ac_c" 1>&6
2223 cat > conftest.$ac_ext <<EOF
2224 #line 2225 "configure"
2225 #include "confdefs.h"
2228 #ifdef STRING_WITH_STRINGS
2229 # include <string.h>
2230 # include <strings.h>
2232 # ifdef HAVE_STRING_H
2233 # include <string.h>
2235 # ifdef HAVE_STRINGS_H
2236 # include <strings.h>
2240 #ifdef HAVE_STDLIB_H
2243 #ifdef HAVE_UNISTD_H
2247 #define rindex strrchr
2250 #define index strchr
2254 char *(*pfn) = (char *(*)) $ac_func
2257 if { (eval echo configure:2258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2259 eval "gcc_cv_decl_needed_$ac_func=no"
2261 echo "configure: failed program was:" >&5
2262 cat conftest.$ac_ext >&5
2264 eval "gcc_cv_decl_needed_$ac_func=yes"
2269 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2270 echo "$ac_t""yes" 1>&6
2271 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2272 cat >> confdefs.h <<EOF
2273 #define $gcc_tr_decl 1
2277 echo "$ac_t""no" 1>&6
2283 for ac_func in getrlimit setrlimit
2285 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2286 echo "configure:2287: checking whether $ac_func must be declared" >&5
2287 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2288 echo $ac_n "(cached) $ac_c" 1>&6
2290 cat > conftest.$ac_ext <<EOF
2291 #line 2292 "configure"
2292 #include "confdefs.h"
2295 #ifdef STRING_WITH_STRINGS
2296 # include <string.h>
2297 # include <strings.h>
2299 # ifdef HAVE_STRING_H
2300 # include <string.h>
2302 # ifdef HAVE_STRINGS_H
2303 # include <strings.h>
2307 #ifdef HAVE_STDLIB_H
2310 #ifdef HAVE_UNISTD_H
2314 #define rindex strrchr
2317 #define index strchr
2319 #include <sys/types.h>
2320 #ifdef HAVE_SYS_RESOURCE_H
2321 #include <sys/resource.h>
2325 char *(*pfn) = (char *(*)) $ac_func
2328 if { (eval echo configure:2329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2330 eval "gcc_cv_decl_needed_$ac_func=no"
2332 echo "configure: failed program was:" >&5
2333 cat conftest.$ac_ext >&5
2335 eval "gcc_cv_decl_needed_$ac_func=yes"
2340 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2341 echo "$ac_t""yes" 1>&6
2342 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2343 cat >> confdefs.h <<EOF
2344 #define $gcc_tr_decl 1
2348 echo "$ac_t""no" 1>&6
2354 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2355 echo "configure:2356: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2356 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2357 echo $ac_n "(cached) $ac_c" 1>&6
2359 cat > conftest.$ac_ext <<EOF
2360 #line 2361 "configure"
2361 #include "confdefs.h"
2362 #include <sys/types.h>
2364 /* NetBSD declares sys_siglist in unistd.h. */
2365 #ifdef HAVE_UNISTD_H
2369 char *msg = *(sys_siglist + 1);
2372 if { (eval echo configure:2373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2374 ac_cv_decl_sys_siglist=yes
2376 echo "configure: failed program was:" >&5
2377 cat conftest.$ac_ext >&5
2379 ac_cv_decl_sys_siglist=no
2384 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2385 if test $ac_cv_decl_sys_siglist = yes; then
2386 cat >> confdefs.h <<\EOF
2387 #define SYS_SIGLIST_DECLARED 1
2401 build_install_headers_dir=install-headers-tar
2406 host_truncate_target=
2409 # Decode the host machine, then the target machine.
2410 # For the host machine, we save the xm_file variable as host_xm_file;
2411 # then we decode the target machine and forget everything else
2412 # that came from the host machine.
2413 for machine in $build $host $target; do
2427 # Set this to force installation and use of collect2.
2429 # Set this to override the default target model.
2431 # Set this to control which fixincludes program to use.
2432 if test x$fast_fixinc != xyes; then
2433 fixincludes=fixincludes
2434 else fixincludes=fixinc.sh ; fi
2435 # Set this to control how the header file directory is installed.
2436 install_headers_dir=install-headers-tar
2437 # Set this to a non-empty list of args to pass to cpp if the target
2438 # wants its .md file passed through cpp.
2440 # Set this if directory names should be truncated to 14 characters.
2442 # Set this if gdb needs a dir command with `dirname $out_file`
2443 gdb_needs_out_file_path=
2444 # Set this if the build machine requires executables to have a
2447 # Set this to control which thread package will be used.
2449 # Reinitialize these from the flag values every loop pass, since some
2450 # configure entries modify them.
2452 gnu_ld="$gnu_ld_flag"
2453 enable_threads=$enable_threads_flag
2455 # Set default cpu_type, tm_file and xm_file so it can be updated in
2456 # each machine entry.
2457 cpu_type=`echo $machine | sed 's/-.*$//'`
2491 tm_file=${cpu_type}/${cpu_type}.h
2492 xm_file=${cpu_type}/xm-${cpu_type}.h
2494 # Set the default macros to define for GNU/Linux systems.
2497 xm_defines="HAVE_ATEXIT POSIX BSTRING"
2502 # Support site-specific machine types.
2504 cpu_type=`echo $machine | sed -e 's/-.*//'`
2505 rest=`echo $machine | sed -e "s/$cpu_type-//"`
2506 xm_file=${cpu_type}/xm-$rest.h
2507 tm_file=${cpu_type}/$rest.h
2508 if test -f $srcdir/config/${cpu_type}/x-$rest; \
2509 then xmake_file=${cpu_type}/x-$rest; \
2512 if test -f $srcdir/config/${cpu_type}/t-$rest; \
2513 then tmake_file=${cpu_type}/t-$rest; \
2519 a29k-*-bsd* | a29k-*-sym1*)
2520 tm_file="${tm_file} a29k/unix.h"
2522 xmake_file=a29k/x-unix
2525 a29k-*-udi | a29k-*-coff)
2526 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
2527 tmake_file=a29k/t-a29kbare
2530 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
2531 tmake_file=a29k/t-vx29k
2532 extra_parts="crtbegin.o crtend.o"
2533 thread_file='vxworks'
2535 a29k-*-*) # Default a29k environment.
2538 alpha*-*-linux-gnuecoff*)
2539 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
2540 target_cpu_default="MASK_GAS"
2545 alpha*-*-linux-gnulibc1*)
2546 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
2547 target_cpu_default="MASK_GAS"
2548 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
2549 extra_parts="crtbegin.o crtend.o"
2550 fixincludes=fixinc.wrap
2553 if test x$enable_threads = xyes; then
2557 alpha*-*-linux-gnu*)
2558 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
2559 target_cpu_default="MASK_GAS"
2560 tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
2561 extra_parts="crtbegin.o crtend.o"
2563 fixincludes=Makefile.in
2565 if test x$enable_threads = xyes; then
2570 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsdl-elf.h"
2571 target_cpu_default="MASK_GAS"
2572 tmake_file="alpha/t-crtbe"
2573 extra_parts="crtbegin.o crtend.o"
2575 fixincludes=fixinc.wrap
2580 if test x$stabs = xyes
2582 tm_file="${tm_file} dbx.h"
2584 if test x$gas != xyes
2586 extra_passes="mips-tfile mips-tdump"
2591 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
2594 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
2597 tm_file="${tm_file} alpha/osf.h"
2598 # Some versions of OSF4 (specifically X4.0-9 296.7) have
2599 # a broken tar, so we use cpio instead.
2600 install_headers_dir=install-headers-cpio
2604 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
2605 target_cpu_default=MASK_SUPPORT_ARCH
2610 tm_file="${tm_file} dbx.h alpha/vxworks.h"
2613 extra_passes="mips-tfile mips-tdump"
2618 tm_file="${tm_file} alpha/win-nt.h"
2619 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
2620 tmake_file=t-libc-ok
2621 xmake_file=winnt/x-winnt
2622 extra_host_objs=oldnames.o
2623 extra_gcc_objs="spawnv.o oldnames.o"
2624 fixincludes=fixinc.winnt
2625 if test x$gnu_ld != xyes
2627 extra_programs=ld.exe
2629 if test x$enable_threads = xyes; then
2635 xm_file="${xm_file} alpha/xm-vms.h"
2636 tmake_file=alpha/t-vms
2637 fixincludes=Makefile.in
2640 extra_parts="crtinit.o crtfini.o"
2642 arm-*-coff* | armel-*-coff*)
2644 tmake_file=arm/t-bare
2646 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
2647 tm_file=arm/riscix1-1.h
2650 arm-*-riscix*) # Acorn RISC machine
2651 if test x$gas = xyes
2653 tm_file=arm/rix-gas.h
2655 tm_file=arm/riscix.h
2657 xmake_file=arm/x-riscix
2658 tmake_file=arm/t-riscix
2661 arm-semi-aout | armel-semi-aout)
2663 tmake_file=arm/t-semi
2664 fixincludes=Makefile.in # There is nothing to fix
2666 arm-semi-aof | armel-semi-aof)
2667 tm_file=arm/semiaof.h
2668 tmake_file=arm/t-semiaof
2669 fixincludes=Makefile.in # There is nothing to fix
2672 tm_file=arm/netbsd.h
2673 xm_file="arm/xm-netbsd.h ${xm_file}"
2674 tmake_file="t-netbsd arm/t-netbsd"
2675 # On NetBSD, the headers are already okay, except for math.h.
2676 fixincludes=fixinc.wrap
2678 arm-*-linux-gnuaout*) # ARM GNU/Linux
2681 tm_file=arm/linux-gas.h
2682 tmake_file=arm/t-linux
2683 fixincludes=Makefile.in
2688 tmake_file=arm/t-bare
2690 c1-convex-*) # Convex C1
2691 target_cpu_default=1
2693 fixincludes=Makefile.in
2695 c2-convex-*) # Convex C2
2696 target_cpu_default=2
2698 fixincludes=Makefile.in
2701 target_cpu_default=4
2703 fixincludes=Makefile.in
2706 target_cpu_default=8
2708 fixincludes=Makefile.in
2711 target_cpu_default=16
2713 fixincludes=Makefile.in
2717 tmake_file=c4x/t-c4x
2719 clipper-intergraph-clix*)
2720 tm_file="${tm_file} svr3.h clipper/clix.h"
2721 xm_file=clipper/xm-clix.h
2722 xmake_file=clipper/x-clix
2723 extra_headers=va-clipper.h
2724 extra_parts="crtbegin.o crtend.o"
2725 install_headers_dir=install-headers-cpio
2732 # This hasn't been upgraded to GCC 2.
2733 # fx80-alliant-*) # Alliant FX/80
2739 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
2740 xm_file=pa/xm-papro.h
2744 target_cpu_default=1
2745 tm_file="${tm_file} pa/pa-osf.h"
2747 fixincludes=Makefile.in
2750 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
2751 xm_file=pa/xm-papro.h
2755 tm_file="${tm_file} pa/pa-osf.h"
2757 fixincludes=Makefile.in
2760 target_cpu_default=1
2762 fixincludes=Makefile.in
2766 fixincludes=Makefile.in
2769 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
2770 xm_file=pa/xm-pahpux.h
2771 xmake_file=pa/x-pa-hpux
2772 if test x$gas = xyes
2774 tm_file="${tm_file} pa/gas.h"
2776 install_headers_dir=install-headers-cpio
2779 hppa1.0-*-hpux8.0[0-2]*)
2780 tm_file="${tm_file} pa/pa-hpux.h"
2781 xm_file=pa/xm-pahpux.h
2782 xmake_file=pa/x-pa-hpux
2783 if test x$gas = xyes
2785 tm_file="${tm_file} pa/pa-gas.h"
2787 tm_file="pa/pa-oldas.h ${tm_file}"
2789 install_headers_dir=install-headers-cpio
2792 hppa1.1-*-hpux8.0[0-2]*)
2793 target_cpu_default=1
2794 tm_file="${tm_file} pa/pa-hpux.h"
2795 xm_file=pa/xm-pahpux.h
2796 xmake_file=pa/x-pa-hpux
2797 if test x$gas = xyes
2799 tm_file="${tm_file} pa/pa-gas.h"
2801 tm_file="pa/pa-oldas.h ${tm_file}"
2803 install_headers_dir=install-headers-cpio
2807 target_cpu_default=1
2808 tm_file="${tm_file} pa/pa-hpux.h"
2809 xm_file=pa/xm-pahpux.h
2810 xmake_file=pa/x-pa-hpux
2811 if test x$gas = xyes
2813 tm_file="${tm_file} pa/pa-gas.h"
2815 install_headers_dir=install-headers-cpio
2819 tm_file="${tm_file} pa/pa-hpux.h"
2820 xm_file=pa/xm-pahpux.h
2821 xmake_file=pa/x-pa-hpux
2822 if test x$gas = xyes
2824 tm_file="${tm_file} pa/pa-gas.h"
2826 install_headers_dir=install-headers-cpio
2830 target_cpu_default=1
2831 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
2832 xm_file=pa/xm-pahpux.h
2833 xmake_file=pa/x-pa-hpux
2835 if test x$gas = xyes
2837 tm_file="${tm_file} pa/pa-gas.h"
2839 if test x$enable_threads = x; then
2840 enable_threads=$have_pthread_h
2842 if test x$enable_threads = xyes; then
2844 tmake_file="${tmake_file} pa/t-dce-thr"
2846 install_headers_dir=install-headers-cpio
2850 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
2851 xm_file=pa/xm-pahpux.h
2852 xmake_file=pa/x-pa-hpux
2853 if test x$gas = xyes
2855 tm_file="${tm_file} pa/pa-gas.h"
2857 if test x$enable_threads = x; then
2858 enable_threads=$have_pthread_h
2860 if test x$enable_threads = xyes; then
2862 tmake_file="${tmake_file} pa/t-dce-thr"
2864 install_headers_dir=install-headers-cpio
2868 target_cpu_default=1
2869 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
2870 xm_file=pa/xm-pahpux.h
2871 xmake_file=pa/x-pa-hpux
2872 if test x$gas = xyes
2874 tm_file="${tm_file} pa/pa-gas.h"
2876 install_headers_dir=install-headers-cpio
2880 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
2881 xm_file=pa/xm-pahpux.h
2882 xmake_file=pa/x-pa-hpux
2883 if test x$gas = xyes
2885 tm_file="${tm_file} pa/pa-gas.h"
2887 install_headers_dir=install-headers-cpio
2891 target_cpu_default=1
2892 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
2893 xm_file=pa/xm-pahpux.h
2894 xmake_file=pa/x-pa-hpux
2895 if test x$gas = xyes
2897 tm_file="${tm_file} pa/pa-gas.h"
2899 install_headers_dir=install-headers-cpio
2903 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
2904 xm_file=pa/xm-pahpux.h
2905 xmake_file=pa/x-pa-hpux
2906 if test x$gas = xyes
2908 tm_file="${tm_file} pa/pa-gas.h"
2910 install_headers_dir=install-headers-cpio
2914 target_cpu_default=1
2916 fixincludes=Makefile.in
2920 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
2921 if test x$gas = xyes
2923 tm_file=i386/aix386.h
2924 extra_parts="crtbegin.o crtend.o"
2925 tmake_file=i386/t-crtstuff
2927 tm_file=i386/aix386ng.h
2930 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
2932 xmake_file=i386/x-aix
2934 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
2935 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
2936 xm_defines="USG POSIX SMALL_ARG_MAX"
2937 xmake_file=i386/x-ncr3000
2938 if test x$stabs = xyes -a x$gas = xyes
2940 tm_file=i386/sysv4gdb.h
2942 tm_file=i386/sysv4.h
2944 extra_parts="crtbegin.o crtend.o"
2945 tmake_file=i386/t-crtpic
2949 xm_file=i386/xm-next.h
2950 tmake_file=i386/t-next
2951 xmake_file=i386/x-next
2952 extra_objs=nextstep.o
2953 extra_parts="crtbegin.o crtend.o"
2954 if test x$enable_threads = xyes; then
2958 i[34567]86-sequent-bsd*) # 80386 from Sequent
2960 if test x$gas = xyes
2962 tm_file=i386/seq-gas.h
2964 tm_file=i386/sequent.h
2967 i[34567]86-sequent-ptx1*)
2968 xm_defines="USG SVR3"
2969 xmake_file=i386/x-sysv3
2970 tm_file=i386/seq-sysv3.h
2971 tmake_file=i386/t-crtstuff
2972 fixincludes=fixinc.ptx
2973 extra_parts="crtbegin.o crtend.o"
2974 install_headers_dir=install-headers-cpio
2976 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
2977 xm_defines="USG SVR3"
2978 xmake_file=i386/x-sysv3
2979 tm_file=i386/seq2-sysv3.h
2980 tmake_file=i386/t-crtstuff
2981 extra_parts="crtbegin.o crtend.o"
2982 fixincludes=fixinc.ptx
2983 install_headers_dir=install-headers-cpio
2985 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
2986 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
2987 xm_defines="USG POSIX SMALL_ARG_MAX"
2989 tm_file=i386/ptx4-i.h
2991 extra_parts="crtbegin.o crtend.o"
2992 fixincludes=fixinc.ptx
2993 install_headers_dir=install-headers-cpio
2995 i386-sun-sunos*) # Sun i386 roadrunner
3000 i[34567]86-wrs-vxworks*)
3001 tm_file=i386/vxi386.h
3002 tmake_file=i386/t-i386bare
3005 tm_file=i386/i386-aout.h
3006 tmake_file=i386/t-i386bare
3008 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
3009 tm_file=i386/bsd386.h
3010 # tmake_file=t-libc-ok
3013 tm_file=i386/386bsd.h
3014 # tmake_file=t-libc-ok
3015 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
3018 i[34567]86-*-freebsdelf*)
3019 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
3020 # On FreeBSD, the headers are already ok, except for math.h.
3021 fixincludes=fixinc.wrap
3022 tmake_file=i386/t-freebsd
3027 i[34567]86-*-freebsd*)
3028 tm_file=i386/freebsd.h
3029 # On FreeBSD, the headers are already ok, except for math.h.
3030 fixincludes=fixinc.wrap
3031 tmake_file=i386/t-freebsd
3033 # We are hoping OpenBSD is still close enough to NetBSD that we can
3034 # share the configurations.
3035 i[34567]86-*-netbsd* | i[34567]86-*-openbsd*)
3036 tm_file=i386/netbsd.h
3037 # On NetBSD, the headers are already okay, except for math.h.
3038 fixincludes=fixinc.wrap
3042 tm_file=i386/i386-coff.h
3043 tmake_file=i386/t-i386bare
3045 i[34567]86-*-isc*) # 80386 running ISC system
3046 xm_file="${xm_file} i386/xm-isc.h"
3047 xm_defines="USG SVR3"
3049 i[34567]86-*-isc[34]*)
3050 xmake_file=i386/x-isc3
3053 xmake_file=i386/x-isc
3056 if test x$gas = xyes -a x$stabs = xyes
3058 tm_file=i386/iscdbx.h
3059 tmake_file=i386/t-svr3dbx
3060 extra_parts="svr3.ifile svr3z.ifile"
3062 tm_file=i386/isccoff.h
3063 tmake_file=i386/t-crtstuff
3064 extra_parts="crtbegin.o crtend.o"
3066 install_headers_dir=install-headers-cpio
3068 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
3070 xmake_file=x-linux-aout
3071 tmake_file="t-linux-aout i386/t-crtstuff"
3072 tm_file=i386/linux-oldld.h
3073 fixincludes=Makefile.in #On Linux, the headers are ok already.
3077 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
3078 xmake_file=x-linux-aout
3079 tmake_file="t-linux-aout i386/t-crtstuff"
3080 tm_file=i386/linux-aout.h
3081 fixincludes=Makefile.in #On Linux, the headers are ok already.
3085 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
3086 # GNU/Linux C library 5
3088 tm_file=i386/linux.h
3089 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
3090 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3091 fixincludes=Makefile.in #On Linux, the headers are ok already.
3094 if test x$enable_threads = xyes; then
3095 thread_file='single'
3098 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
3099 # aka GNU/Linux C library 6
3101 tm_file=i386/linux.h
3102 tmake_file="t-linux i386/t-crtstuff"
3103 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3104 fixincludes=Makefile.in #On Linux, the headers are ok already.
3107 if test x$enable_threads = xyes; then
3113 i[34567]86-go32-msdos | i[34567]86-*-go32*)
3114 xm_file=i386/xm-go32.h
3116 tmake_file=i386/t-go32
3118 i[34567]86-pc-msdosdjgpp*)
3119 xm_file=i386/xm-go32.h
3121 tmake_file=i386/t-go32
3125 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
3127 tmake_file=t-libc-ok
3128 fixincludes=Makefile.in
3132 i[34567]86-*-lynxos*)
3133 if test x$gas = xyes
3137 tm_file=i386/lynx-ng.h
3139 xm_file=i386/xm-lynx.h
3140 tmake_file=i386/t-i386bare
3145 # tmake_file=t-libc-ok
3148 i[34567]86-*-osfrose*) # 386 using OSF/rose
3149 if test x$elf = xyes
3151 tm_file=i386/osfelf.h
3154 tm_file=i386/osfrose.h
3157 xm_file="i386/xm-osf.h ${xm_file}"
3158 xmake_file=i386/x-osfrose
3159 tmake_file=i386/t-osf
3160 extra_objs=halfpic.o
3162 i[34567]86-go32-rtems*)
3164 xm_file=i386/xm-go32.h
3165 tm_file=i386/go32-rtems.h
3166 tmake_file="i386/t-go32 t-rtems"
3168 i[34567]86-*-rtemself*)
3170 tm_file=i386/rtemself.h
3171 tmake_file="i386/t-i386bare t-rtems"
3173 i[34567]86-*-rtems*)
3175 tm_file=i386/rtems.h
3176 tmake_file="i386/t-i386bare t-rtems"
3178 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
3179 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
3180 xm_defines="USG SVR3"
3181 xmake_file=i386/x-sco5
3182 fixincludes=fixinc.sco
3183 install_headers_dir=install-headers-cpio
3185 if test x$gas = xyes
3187 tm_file="i386/sco5gas.h ${tm_file}"
3188 tmake_file=i386/t-sco5gas
3190 tmake_file=i386/t-sco5
3192 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3194 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
3195 xm_file="${xm_file} i386/xm-sco.h"
3196 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
3197 xmake_file=i386/x-sco4
3198 fixincludes=fixinc.sco
3199 install_headers_dir=install-headers-cpio
3200 if test x$stabs = xyes
3202 tm_file=i386/sco4dbx.h
3203 tmake_file=i386/t-svr3dbx
3204 extra_parts="svr3.ifile svr3z.rfile"
3207 tmake_file=i386/t-crtstuff
3208 extra_parts="crtbegin.o crtend.o"
3212 i[34567]86-*-sco*) # 80386 running SCO system
3213 xm_file=i386/xm-sco.h
3214 xmake_file=i386/x-sco
3215 install_headers_dir=install-headers-cpio
3216 if test x$stabs = xyes
3218 tm_file=i386/scodbx.h
3219 tmake_file=i386/t-svr3dbx
3220 extra_parts="svr3.ifile svr3z.rfile"
3223 extra_parts="crtbegin.o crtend.o"
3224 tmake_file=i386/t-crtstuff
3228 i[34567]86-*-solaris2*)
3229 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3230 xm_defines="USG POSIX SMALL_ARG_MAX"
3231 if test x$stabs = xyes
3233 tm_file=i386/sol2dbg.h
3237 tmake_file=i386/t-sol2
3238 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3242 fixincludes=fixinc.svr4;;
3244 fixincludes=fixinc.wrap;;
3246 if test x$enable_threads = xyes; then
3247 thread_file='solaris'
3250 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
3251 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
3252 xm_defines="USG POSIX"
3253 tm_file=i386/sysv4.h
3254 if test x$stabs = xyes
3256 tm_file="${tm_file} dbx.h"
3258 tmake_file=i386/t-crtpic
3260 extra_parts="crtbegin.o crtend.o"
3261 fixincludes=fixinc.svr4
3263 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
3264 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3265 xm_defines="USG POSIX SMALL_ARG_MAX"
3266 tm_file=i386/sysv4.h
3267 if test x$stabs = xyes
3269 tm_file="${tm_file} dbx.h"
3271 tmake_file=i386/t-crtpic
3273 extra_parts="crtbegin.o crtend.o"
3275 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
3276 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
3277 xm_defines="USG POSIX"
3279 tmake_file="i386/t-crtpic i386/t-udk"
3281 extra_parts="crtbegin.o crtend.o"
3282 fixincludes="fixinc.svr4"
3284 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
3286 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
3287 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
3288 fixincludes=Makefile.in #Don't do it on OSF/1
3289 if test x$stabs = xyes
3291 tm_file=i386/osf1elfgdb.h
3293 tm_file=i386/osf1elf.h
3295 tmake_file=i386/t-osf1elf
3296 xmake_file=i386/x-osf1elf
3297 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3299 i[34567]86-*-sysv*) # Intel 80386's running system V
3300 xm_defines="USG SVR3"
3301 xmake_file=i386/x-sysv3
3302 if test x$gas = xyes
3304 if test x$stabs = xyes
3306 tm_file=i386/svr3dbx.h
3307 tmake_file=i386/t-svr3dbx
3308 extra_parts="svr3.ifile svr3z.rfile"
3310 tm_file=i386/svr3gas.h
3311 extra_parts="crtbegin.o crtend.o"
3312 tmake_file=i386/t-crtstuff
3315 tm_file=i386/sysv3.h
3316 extra_parts="crtbegin.o crtend.o"
3317 tmake_file=i386/t-crtstuff
3320 i386-*-vsta) # Intel 80386's running VSTa kernel
3321 xm_file="${xm_file} i386/xm-vsta.h"
3323 tmake_file=i386/t-vsta
3324 xmake_file=i386/x-vsta
3327 xm_file="${xm_file} i386/xm-cygwin32.h"
3328 tmake_file=i386/t-cygwin32
3329 tm_file=i386/win32.h
3330 xmake_file=i386/x-cygwin32
3332 fixincludes=Makefile.in
3333 if test x$enable_threads = xyes; then
3338 i[34567]86-*-pe | i[34567]86-*-cygwin32)
3339 xm_file="${xm_file} i386/xm-cygwin32.h"
3340 tmake_file=i386/t-cygwin32
3341 tm_file=i386/cygwin32.h
3342 xmake_file=i386/x-cygwin32
3344 fixincludes=Makefile.in
3345 if test x$enable_threads = xyes; then
3350 i[34567]86-*-mingw32*)
3351 tm_file=i386/mingw32.h
3352 xm_file="${xm_file} i386/xm-mingw32.h"
3353 tmake_file="i386/t-cygwin32 i386/t-mingw32"
3355 xmake_file=i386/x-cygwin32
3356 fixincludes=Makefile.in
3357 if test x$enable_threads = xyes; then
3364 *minwg32crt* | *mingw32*)
3365 tm_file="${tm_file} i386/crtdll.h"
3369 i[34567]86-*-winnt3*)
3370 tm_file=i386/win-nt.h
3371 out_file=i386/i386.c
3372 xm_file="xm-winnt.h ${xm_file}"
3373 xmake_file=winnt/x-winnt
3374 tmake_file=i386/t-winnt
3375 extra_host_objs="winnt.o oldnames.o"
3376 extra_gcc_objs="spawnv.o oldnames.o"
3377 fixincludes=fixinc.winnt
3378 if test x$gnu_ld != xyes
3380 extra_programs=ld.exe
3382 if test x$enable_threads = xyes; then
3386 i[34567]86-dg-dgux*)
3387 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
3388 xm_defines="USG POSIX"
3389 out_file=i386/dgux.c
3391 tmake_file=i386/t-dgux
3392 xmake_file=i386/x-dgux
3393 fixincludes=fixinc.dgux
3394 install_headers_dir=install-headers-cpio
3396 i860-alliant-*) # Alliant FX/2800
3397 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
3398 xm_file="${xm_file}"
3399 xmake_file=i860/x-fx2800
3400 tmake_file=i860/t-fx2800
3401 extra_parts="crtbegin.o crtend.o"
3404 tm_file="${tm_file} i860/bsd.h"
3405 if test x$gas = xyes
3407 tm_file="${tm_file} i860/bsd-gas.h"
3412 tm_file="${tm_file} i860/mach.h"
3413 tmake_file=t-libc-ok
3415 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
3416 tm_file="${tm_file} svr3.h i860/paragon.h"
3417 xm_defines="USG SVR3"
3421 tm_file="${tm_file} svr3.h i860/sysv3.h"
3422 xm_defines="USG SVR3"
3423 xmake_file=i860/x-sysv3
3424 extra_parts="crtbegin.o crtend.o"
3427 tm_file="${tm_file} svr4.h i860/sysv4.h"
3428 xm_defines="USG SVR3"
3429 xmake_file=i860/x-sysv4
3431 extra_parts="crtbegin.o crtend.o"
3433 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
3434 tm_file="${tm_file} i960/vx960.h"
3435 tmake_file=i960/t-vxworks960
3437 thread_file='vxworks'
3439 i960-wrs-vxworks5* | i960-wrs-vxworks)
3440 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
3441 tmake_file=i960/t-vxworks960
3443 thread_file='vxworks'
3446 tm_file="${tm_file} i960/vx960.h"
3447 tmake_file=i960/t-vxworks960
3449 thread_file='vxworks'
3452 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
3453 tmake_file=i960/t-960bare
3457 tmake_file="i960/t-960bare t-rtems"
3458 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
3461 i960-*-*) # Default i960 environment.
3465 extra_parts="crtinit.o crtfini.o"
3467 m68000-convergent-sysv*)
3469 xm_file="m68k/xm-3b1.h ${xm_file}"
3472 extra_headers=math-68881.h
3474 m68000-hp-bsd*) # HP 9000/200 running BSD
3475 tm_file=m68k/hp2bsd.h
3476 xmake_file=m68k/x-hp2bsd
3478 extra_headers=math-68881.h
3480 m68000-hp-hpux*) # HP 9000 series 300
3481 xm_file="xm_alloca.h ${xm_file}"
3482 xm_defines="USG NO_SYS_SIGLIST"
3483 if test x$gas = xyes
3485 xmake_file=m68k/x-hp320g
3486 tm_file=m68k/hp310g.h
3488 xmake_file=m68k/x-hp320
3489 tm_file=m68k/hp310.h
3491 install_headers_dir=install-headers-cpio
3493 extra_headers=math-68881.h
3498 extra_headers=math-68881.h
3501 tm_file=m68k/sun2o4.h
3503 extra_headers=math-68881.h
3506 xm_file="m68k/xm-3b1.h ${xm_file}"
3508 if test x$gas = xyes
3515 extra_headers=math-68881.h
3517 m68k-apple-aux*) # Apple Macintosh running A/UX
3518 xm_defines="USG AUX"
3519 tmake_file=m68k/t-aux
3520 install_headers_dir=install-headers-cpio
3521 extra_headers=math-68881.h
3522 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
3524 if test "$gnu_ld" = yes
3526 tm_file="${tm_file} m68k/auxgld.h"
3528 tm_file="${tm_file} m68k/auxld.h"
3530 if test "$gas" = yes
3532 tm_file="${tm_file} m68k/auxgas.h"
3534 tm_file="${tm_file} m68k/auxas.h"
3536 tm_file="${tm_file} m68k/a-ux.h"
3540 tm_file=m68k/apollo68.h
3541 xmake_file=m68k/x-apollo68
3543 extra_headers=math-68881.h
3546 m68k-altos-sysv*) # Altos 3068
3547 if test x$gas = xyes
3549 tm_file=m68k/altos3068.h
3552 echo "The Altos is supported only with the GNU assembler" 1>&2
3555 extra_headers=math-68881.h
3557 m68k-bull-sysv*) # Bull DPX/2
3558 if test x$gas = xyes
3560 if test x$stabs = xyes
3562 tm_file=m68k/dpx2cdbx.h
3564 tm_file=m68k/dpx2g.h
3569 xm_file="xm-alloca.h ${xm_file}"
3571 xmake_file=m68k/x-dpx2
3573 extra_headers=math-68881.h
3575 m68k-atari-sysv4*) # Atari variant of V.4.
3576 tm_file=m68k/atari.h
3577 xm_file="xm-alloca.h ${xm_file}"
3578 xm_defines="USG FULL_PROTOTYPES"
3580 extra_parts="crtbegin.o crtend.o"
3581 extra_headers=math-68881.h
3584 m68k-motorola-sysv*)
3585 tm_file=m68k/mot3300.h
3586 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
3587 xm_defines=NO_SYS_SIGLIST
3588 if test x$gas = xyes
3590 xmake_file=m68k/x-mot3300-gas
3591 if test x$gnu_ld = xyes
3593 tmake_file=m68k/t-mot3300-gald
3595 tmake_file=m68k/t-mot3300-gas
3599 xmake_file=m68k/x-mot3300
3600 if test x$gnu_ld = xyes
3602 tmake_file=m68k/t-mot3300-gld
3604 tmake_file=m68k/t-mot3300
3608 gdb_needs_out_file_path=yes
3609 extra_parts="crt0.o mcrt0.o"
3610 extra_headers=math-68881.h
3613 m68k-ncr-sysv*) # NCR Tower 32 SVR3
3614 tm_file=m68k/tower-as.h
3615 xm_defines="USG SVR3"
3616 xmake_file=m68k/x-tower
3617 extra_parts="crtbegin.o crtend.o"
3618 extra_headers=math-68881.h
3621 tm_file=m68k/plexus.h
3622 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
3625 extra_headers=math-68881.h
3629 xm_file="xm-alloca.h ${xm_file}"
3631 extra_headers=math-68881.h
3634 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
3635 xm_defines="USG unos"
3636 xmake_file=m68k/x-crds
3639 extra_headers=math-68881.h
3641 m68k-cbm-sysv4*) # Commodore variant of V.4.
3643 xm_file="xm-alloca.h ${xm_file}"
3644 xm_defines="USG FULL_PROTOTYPES"
3645 xmake_file=m68k/x-amix
3647 extra_parts="crtbegin.o crtend.o"
3648 extra_headers=math-68881.h
3652 tm_file=m68k/ccur-GAS.h
3653 xmake_file=m68k/x-ccur
3654 extra_headers=math-68881.h
3658 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
3659 tm_file=m68k/hp3bsd44.h
3660 xmake_file=m68k/x-hp3bsd44
3662 extra_headers=math-68881.h
3665 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
3666 tm_file=m68k/hp3bsd.h
3668 extra_headers=math-68881.h
3672 if test x$with_fp = xno
3674 tm_file=m68k/isi-nfp.h
3680 extra_headers=math-68881.h
3682 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
3683 xm_file="xm_alloca.h ${xm_file}"
3684 xm_defines="USG NO_SYS_SIGLIST"
3685 if test x$gas = xyes
3687 xmake_file=m68k/x-hp320g
3688 tm_file=m68k/hp320g.h
3690 xmake_file=m68k/x-hp320
3691 tm_file=m68k/hpux7.h
3693 install_headers_dir=install-headers-cpio
3695 extra_headers=math-68881.h
3698 m68k-hp-hpux*) # HP 9000 series 300
3699 xm_file="xm_alloca.h ${xm_file}"
3700 xm_defines="USG NO_SYS_SIGLIST"
3701 if test x$gas = xyes
3703 xmake_file=m68k/x-hp320g
3704 tm_file=m68k/hp320g.h
3706 xmake_file=m68k/x-hp320
3707 tm_file=m68k/hp320.h
3709 install_headers_dir=install-headers-cpio
3711 extra_headers=math-68881.h
3715 tm_file=m68k/sun3mach.h
3717 extra_headers=math-68881.h
3721 if test x$gas = xyes
3723 tm_file=m68k/news3gas.h
3725 tm_file=m68k/news3.h
3728 extra_headers=math-68881.h
3731 m68k-sony-bsd* | m68k-sony-newsos*)
3732 if test x$gas = xyes
3734 tm_file=m68k/newsgas.h
3739 extra_headers=math-68881.h
3742 m68k-next-nextstep2*)
3743 tm_file=m68k/next21.h
3744 xm_file="m68k/xm-next.h ${xm_file}"
3745 tmake_file=m68k/t-next
3746 xmake_file=m68k/x-next
3747 extra_objs=nextstep.o
3748 extra_headers=math-68881.h
3752 m68k-next-nextstep3*)
3754 xm_file="m68k/xm-next.h ${xm_file}"
3755 tmake_file=m68k/t-next
3756 xmake_file=m68k/x-next
3757 extra_objs=nextstep.o
3758 extra_parts="crtbegin.o crtend.o"
3759 extra_headers=math-68881.h
3761 if test x$enable_threads = xyes; then
3766 if test x$with_fp = xno
3768 tm_file=m68k/sun3n3.h
3770 tm_file=m68k/sun3o3.h
3774 extra_headers=math-68881.h
3776 m68k-sun-sunos*) # For SunOS 4 (the default).
3777 if test x$with_fp = xno
3779 tm_file=m68k/sun3n.h
3785 extra_headers=math-68881.h
3788 tm_file=m68k/vxm68k.h
3789 tmake_file=m68k/t-vxworks68
3790 extra_headers=math-68881.h
3791 thread_file='vxworks'
3795 tmake_file=m68k/t-m68kbare
3796 tm_file="m68k/m68k-aout.h libgloss.h"
3797 extra_headers=math-68881.h
3801 tmake_file=m68k/t-m68kbare
3802 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
3803 extra_headers=math-68881.h
3807 if test x$gas = xyes
3811 tm_file=m68k/lynx-ng.h
3813 xm_file=m68k/xm-lynx.h
3815 tmake_file=m68k/t-lynx
3816 extra_headers=math-68881.h
3820 tm_file=m68k/netbsd.h
3821 # On NetBSD, the headers are already okay, except for math.h.
3822 fixincludes=fixinc.wrap
3826 m68k-*-sysv3*) # Motorola m68k's running system V.3
3827 xm_file="xm-alloca.h ${xm_file}"
3829 xmake_file=m68k/x-m68kv
3830 extra_parts="crtbegin.o crtend.o"
3831 extra_headers=math-68881.h
3834 m68k-*-sysv4*) # Motorola m68k's running system V.4
3835 tm_file=m68k/m68kv4.h
3836 xm_file="xm-alloca.h ${xm_file}"
3839 extra_parts="crtbegin.o crtend.o"
3840 extra_headers=math-68881.h
3843 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
3846 tm_file=m68k/linux-aout.h
3847 tmake_file="t-linux-aout m68k/t-linux-aout"
3848 fixincludes=Makefile.in # The headers are ok already.
3849 extra_headers=math-68881.h
3853 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
3854 # with ELF format using the
3855 # GNU/Linux C library 5
3857 tm_file=m68k/linux.h
3858 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
3859 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3860 fixincludes=Makefile.in # The headers are ok already.
3861 extra_headers=math-68881.h
3865 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
3866 # with ELF format using glibc 2
3867 # aka the GNU/Linux C library 6.
3869 tm_file=m68k/linux.h
3870 tmake_file="t-linux m68k/t-linux"
3871 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3872 fixincludes=Makefile.in # The headers are ok already.
3873 extra_headers=math-68881.h
3876 if test x$enable_threads = xyes; then
3881 tmake_file=m68k/t-m68kbare
3882 tm_file=m68k/m68k-psos.h
3883 extra_headers=math-68881.h
3887 tmake_file="m68k/t-m68kbare t-rtems"
3888 tm_file=m68k/rtems.h
3889 extra_headers=math-68881.h
3896 tm_file=m88k/dguxbcs.h
3897 tmake_file=m88k/t-dguxbcs
3901 tmake_file=m88k/t-dgux
3904 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
3905 xmake_file=m88k/x-dgux
3906 if test x$gas = xyes
3908 tmake_file=m88k/t-dgux-gas
3910 fixincludes=fixinc.dgux
3912 m88k-dolphin-sysv3*)
3913 tm_file=m88k/dolph.h
3914 extra_parts="crtbegin.o crtend.o"
3915 xm_file="m88k/xm-sysv3.h ${xm_file}"
3916 xmake_file=m88k/x-dolph
3917 if test x$gas = xyes
3919 tmake_file=m88k/t-m88k-gas
3922 m88k-tektronix-sysv3)
3923 tm_file=m88k/tekXD88.h
3924 extra_parts="crtbegin.o crtend.o"
3925 xm_file="m88k/xm-sysv3.h ${xm_file}"
3926 xmake_file=m88k/x-tekXD88
3927 if test x$gas = xyes
3929 tmake_file=m88k/t-m88k-gas
3933 tm_file=m88k/m88k-aout.h
3936 tm_file=m88k/m88k-coff.h
3937 tmake_file=m88k/t-bug
3941 extra_parts="crtbegin.o crtend.o"
3942 if test x$gas = xyes
3944 tmake_file=m88k/t-luna-gas
3946 tmake_file=m88k/t-luna
3950 tm_file=m88k/sysv3.h
3951 extra_parts="crtbegin.o crtend.o"
3952 xm_file="m88k/xm-sysv3.h ${xm_file}"
3953 xmake_file=m88k/x-sysv3
3954 if test x$gas = xyes
3956 tmake_file=m88k/t-m88k-gas
3960 tm_file=m88k/sysv4.h
3961 extra_parts="crtbegin.o crtend.o"
3962 xmake_file=m88k/x-sysv4
3963 tmake_file=m88k/t-sysv4
3965 mips-sgi-irix6*) # SGI System V.4., IRIX 6
3966 tm_file=mips/iris6.h
3967 xm_file=mips/xm-iris6.h
3968 fixincludes=fixinc.irix
3969 xmake_file=mips/x-iris6
3970 tmake_file=mips/t-iris6
3971 # if test x$enable_threads = xyes; then
3972 # thread_file='irix'
3976 tm_file="mips/elf.h libgloss.h"
3977 tmake_file=mips/t-ecoff
3980 extra_parts="crtbegin.o crtend.o"
3981 # thread_file='vxworks'
3983 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
3984 tm_file="mips/iris6.h mips/cross64.h"
3986 xm_file="mips/xm-iris5.h"
3987 fixincludes=Makefile.in
3988 xmake_file=mips/x-iris
3989 tmake_file=mips/t-cross64
3990 # See comment in mips/iris[56].h files.
3992 # if test x$enable_threads = xyes; then
3993 # thread_file='irix'
3997 if test x$gas = xyes
3999 if test x$stabs = xyes
4001 tm_file=mips/iris5gdb.h
4003 tm_file="mips/sni-svr4.h mips/sni-gas.h"
4006 tm_file=mips/sni-svr4.h
4009 xmake_file=mips/x-sni-svr4
4010 tmake_file=mips/t-mips-gas
4011 if test x$gnu_ld != xyes
4016 mips-sgi-irix5*) # SGI System V.4., IRIX 5
4017 if test x$gas = xyes
4019 tm_file="mips/iris5.h mips/iris5gas.h"
4020 if test x$stabs = xyes
4022 tm_file="${tm_file} dbx.h"
4025 tm_file=mips/iris5.h
4028 xm_file="mips/xm-iris5.h"
4029 fixincludes=fixinc.irix
4030 xmake_file=mips/x-iris
4031 # mips-tfile doesn't work yet
4032 tmake_file=mips/t-mips-gas
4033 # See comment in mips/iris5.h file.
4035 # if test x$enable_threads = xyes; then
4036 # thread_file='irix'
4039 mips-sgi-irix4loser*) # Mostly like a MIPS.
4040 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
4041 if test x$stabs = xyes; then
4042 tm_file="${tm_file} dbx.h"
4045 xmake_file=mips/x-iris
4046 if test x$gas = xyes
4048 tmake_file=mips/t-mips-gas
4050 extra_passes="mips-tfile mips-tdump"
4052 if test x$gnu_ld != xyes
4056 # if test x$enable_threads = xyes; then
4057 # thread_file='irix'
4060 mips-sgi-irix4*) # Mostly like a MIPS.
4061 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
4062 if test x$stabs = xyes; then
4063 tm_file="${tm_file} dbx.h"
4066 xmake_file=mips/x-iris
4067 if test x$gas = xyes
4069 tmake_file=mips/t-mips-gas
4071 extra_passes="mips-tfile mips-tdump"
4073 if test x$gnu_ld != xyes
4077 # if test x$enable_threads = xyes; then
4078 # thread_file='irix'
4081 mips-sgi-*) # Mostly like a MIPS.
4082 tm_file="mips/iris3.h ${tm_file}"
4083 if test x$stabs = xyes; then
4084 tm_file="${tm_file} dbx.h"
4087 xmake_file=mips/x-iris3
4088 if test x$gas = xyes
4090 tmake_file=mips/t-mips-gas
4092 extra_passes="mips-tfile mips-tdump"
4094 if test x$gnu_ld != xyes
4099 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
4100 tm_file="mips/osfrose.h ${tm_file}"
4101 xmake_file=mips/x-osfrose
4102 tmake_file=mips/t-osfrose
4103 extra_objs=halfpic.o
4106 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
4107 tm_file=mips/dec-osf1.h
4108 if test x$stabs = xyes; then
4109 tm_file="${tm_file} dbx.h"
4111 xmake_file=mips/x-dec-osf1
4112 if test x$gas = xyes
4114 tmake_file=mips/t-mips-gas
4116 tmake_file=mips/t-ultrix
4117 extra_passes="mips-tfile mips-tdump"
4119 if test x$gnu_ld != xyes
4124 mips-dec-bsd*) # Decstation running 4.4 BSD
4125 tm_file=mips/dec-bsd.h
4127 if test x$gas = xyes
4129 tmake_file=mips/t-mips-gas
4131 tmake_file=mips/t-ultrix
4132 extra_passes="mips-tfile mips-tdump"
4134 if test x$gnu_ld != xyes
4139 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
4140 tm_file=mips/netbsd.h
4141 # On NetBSD, the headers are already okay, except for math.h.
4142 fixincludes=fixinc.wrap
4145 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
4146 tm_file="mips/news4.h ${tm_file}"
4147 if test x$stabs = xyes; then
4148 tm_file="${tm_file} dbx.h"
4150 if test x$gas = xyes
4152 tmake_file=mips/t-mips-gas
4154 extra_passes="mips-tfile mips-tdump"
4156 if test x$gnu_ld != xyes
4160 xmake_file=mips/x-sony
4162 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
4163 # That is based on svr4.
4164 # t-svr4 is not right because this system doesn't use ELF.
4165 tm_file="mips/news5.h ${tm_file}"
4166 if test x$stabs = xyes; then
4167 tm_file="${tm_file} dbx.h"
4169 xm_file="xm-siglist.h ${xm_file}"
4171 if test x$gas = xyes
4173 tmake_file=mips/t-mips-gas
4175 extra_passes="mips-tfile mips-tdump"
4177 if test x$gnu_ld != xyes
4182 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
4183 tm_file="mips/svr4-5.h mips/svr4-t.h"
4184 if test x$stabs = xyes; then
4185 tm_file="${tm_file} dbx.h"
4187 xm_file="xm-siglist.h ${xm_file}"
4189 xmake_file=mips/x-sysv
4190 if test x$gas = xyes
4192 tmake_file=mips/t-mips-gas
4193 extra_parts="crtbegin.o crtend.o"
4195 tmake_file=mips/t-mips
4196 extra_passes="mips-tfile mips-tdump"
4198 if test x$gnu_ld != xyes
4203 mips-*-ultrix* | mips-dec-mach3) # Decstation.
4204 tm_file="mips/ultrix.h ${tm_file}"
4205 if test x$stabs = xyes; then
4206 tm_file="${tm_file} dbx.h"
4208 xmake_file=mips/x-ultrix
4209 if test x$gas = xyes
4211 tmake_file=mips/t-mips-gas
4213 tmake_file=mips/t-ultrix
4214 extra_passes="mips-tfile mips-tdump"
4216 if test x$gnu_ld != xyes
4221 mips-*-riscos[56789]bsd*)
4222 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
4223 if test x$stabs = xyes; then
4224 tm_file="${tm_file} dbx.h"
4226 if test x$gas = xyes
4228 tmake_file=mips/t-bsd-gas
4230 tmake_file=mips/t-bsd
4231 extra_passes="mips-tfile mips-tdump"
4233 if test x$gnu_ld != xyes
4238 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
4239 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
4240 if test x$stabs = xyes; then
4241 tm_file="${tm_file} dbx.h"
4243 if test x$gas = xyes
4245 tmake_file=mips/t-bsd-gas
4247 tmake_file=mips/t-bsd
4248 extra_passes="mips-tfile mips-tdump"
4250 if test x$gnu_ld != xyes
4255 mips-*-riscos[56789]sysv4*)
4256 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
4257 if test x$stabs = xyes; then
4258 tm_file="${tm_file} dbx.h"
4260 xm_file="xm-siglist.h ${xm_file}"
4261 xmake_file=mips/x-sysv
4262 if test x$gas = xyes
4264 tmake_file=mips/t-svr4-gas
4266 tmake_file=mips/t-svr4
4267 extra_passes="mips-tfile mips-tdump"
4269 if test x$gnu_ld != xyes
4274 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
4275 tm_file="mips/svr4-4.h ${tm_file}"
4276 if test x$stabs = xyes; then
4277 tm_file="${tm_file} dbx.h"
4280 xmake_file=mips/x-sysv
4281 if test x$gas = xyes
4283 tmake_file=mips/t-svr4-gas
4285 tmake_file=mips/t-svr4
4286 extra_passes="mips-tfile mips-tdump"
4288 if test x$gnu_ld != xyes
4293 mips-*-riscos[56789]sysv*)
4294 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
4295 if test x$stabs = xyes; then
4296 tm_file="${tm_file} dbx.h"
4299 xmake_file=mips/x-sysv
4300 if test x$gas = xyes
4302 tmake_file=mips/t-svr3-gas
4304 tmake_file=mips/t-svr3
4305 extra_passes="mips-tfile mips-tdump"
4307 if test x$gnu_ld != xyes
4312 mips-*-sysv* | mips-*-riscos*sysv*)
4313 tm_file="mips/svr3-4.h ${tm_file}"
4314 if test x$stabs = xyes; then
4315 tm_file="${tm_file} dbx.h"
4318 xmake_file=mips/x-sysv
4319 if test x$gas = xyes
4321 tmake_file=mips/t-svr3-gas
4323 tmake_file=mips/t-svr3
4324 extra_passes="mips-tfile mips-tdump"
4326 if test x$gnu_ld != xyes
4331 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
4332 tm_file=mips/mips-5.h
4333 if test x$stabs = xyes; then
4334 tm_file="${tm_file} dbx.h"
4336 if test x$gas = xyes
4338 tmake_file=mips/t-mips-gas
4340 extra_passes="mips-tfile mips-tdump"
4342 if test x$gnu_ld != xyes
4350 tm_file=mips/ecoffl.h
4351 if test x$stabs = xyes; then
4352 tm_file="${tm_file} dbx.h"
4354 tmake_file=mips/t-ecoff
4357 tm_file="gofast.h mips/ecoff.h"
4358 if test x$stabs = xyes; then
4359 tm_file="${tm_file} dbx.h"
4361 tmake_file=mips/t-ecoff
4364 tm_file="mips/elfl.h libgloss.h"
4365 tmake_file=mips/t-ecoff
4368 tm_file="mips/elf.h libgloss.h"
4369 tmake_file=mips/t-ecoff
4372 tm_file="mips/elfl64.h libgloss.h"
4373 tmake_file=mips/t-ecoff
4375 mips64orionel-*-elf*)
4376 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
4377 tmake_file=mips/t-ecoff
4380 tm_file="mips/elf64.h libgloss.h"
4381 tmake_file=mips/t-ecoff
4384 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
4385 tmake_file=mips/t-ecoff
4387 mips64orion-*-rtems*)
4388 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
4389 tmake_file="mips/t-ecoff t-rtems"
4392 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
4393 tmake_file=mips/t-r3900
4396 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
4397 tmake_file=mips/t-r3900
4398 # FIXME mips-elf should be fixed to use crtstuff.
4401 mips-*-*) # Default MIPS RISC-OS 4.0.
4402 if test x$stabs = xyes; then
4403 tm_file="${tm_file} dbx.h"
4405 if test x$gas = xyes
4407 tmake_file=mips/t-mips-gas
4409 extra_passes="mips-tfile mips-tdump"
4411 if test x$gnu_ld != xyes
4418 tm_file="mn10200/mn10200.h"
4419 if test x$stabs = xyes
4421 tm_file="${tm_file} dbx.h"
4427 tm_file="mn10300/mn10300.h"
4428 if test x$stabs = xyes
4430 tm_file="${tm_file} dbx.h"
4435 tm_file=ns32k/encore.h
4439 tm_file=ns32k/sequent.h
4443 tm_file=ns32k/tek6100.h
4447 tm_file=ns32k/tek6200.h
4450 # This has not been updated to GCC 2.
4453 # xmake_file=ns32k/x-genix
4454 # tm_file=ns32k/genix.h
4458 tm_file=ns32k/merlin.h
4462 tm_file=ns32k/pc532-mach.h
4466 tm_file=ns32k/pc532-min.h
4467 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
4472 tm_file=ns32k/netbsd.h
4473 xm_file="ns32k/xm-netbsd.h ${xm_file}"
4474 # On NetBSD, the headers are already okay, except for math.h.
4475 fixincludes=fixinc.wrap
4479 tm_file="${tm_file} pdp11/2bsd.h"
4485 xmake_file=pyr/x-pyr
4492 xmake_file=romp/x-mach
4497 tm_file=rs6000/beos.h
4498 xm_file=rs6000/xm-beos.h
4499 tmake_file=rs6000/t-beos
4500 xmake_file=rs6000/x-beos
4502 powerpc-*-sysv* | powerpc-*-elf*)
4503 tm_file=rs6000/sysv4.h
4504 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
4505 xm_defines="USG POSIX"
4506 extra_headers=ppc-asm.h
4507 if test x$gas = xyes
4509 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
4511 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
4513 xmake_file=rs6000/x-sysv4
4516 tm_file=rs6000/eabiaix.h
4517 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4518 fixincludes=Makefile.in
4519 extra_headers=ppc-asm.h
4522 tm_file=rs6000/eabisim.h
4523 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4524 fixincludes=Makefile.in
4525 extra_headers=ppc-asm.h
4528 tm_file=rs6000/eabi.h
4529 if test x$gas = xyes
4531 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4533 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
4535 fixincludes=Makefile.in
4536 extra_headers=ppc-asm.h
4539 tm_file=rs6000/rtems.h
4540 if test x$gas = xyes
4542 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
4544 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
4546 fixincludes=Makefile.in
4547 extra_headers=ppc-asm.h
4549 powerpc-*-linux-gnulibc1)
4550 tm_file=rs6000/linux.h
4551 xm_file=rs6000/xm-sysv4.h
4552 out_file=rs6000/rs6000.c
4553 if test x$gas = xyes
4555 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
4557 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
4560 fixincludes=Makefile.in
4561 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4562 extra_headers=ppc-asm.h
4563 if test x$enable_threads = xyes; then
4567 powerpc-*-linux-gnu*)
4568 tm_file=rs6000/linux.h
4569 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
4570 xm_defines="USG ${xm_defines}"
4571 out_file=rs6000/rs6000.c
4572 if test x$gas = xyes
4574 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
4576 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
4579 fixincludes=Makefile.in
4580 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4581 extra_headers=ppc-asm.h
4582 if test x$enable_threads = xyes; then
4586 powerpc-wrs-vxworks*)
4588 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
4589 xm_defines="USG POSIX"
4590 tm_file=rs6000/vxppc.h
4591 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4592 extra_headers=ppc-asm.h
4593 thread_file='vxworks'
4595 powerpcle-*-sysv* | powerpcle-*-elf*)
4596 tm_file=rs6000/sysv4le.h
4597 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
4598 xm_defines="USG POSIX"
4599 if test x$gas = xyes
4601 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
4603 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
4605 xmake_file=rs6000/x-sysv4
4606 extra_headers=ppc-asm.h
4608 powerpcle-*-eabisim*)
4609 tm_file=rs6000/eabilesim.h
4610 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4611 fixincludes=Makefile.in
4612 extra_headers=ppc-asm.h
4615 tm_file=rs6000/eabile.h
4616 if test x$gas = xyes
4618 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4620 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
4622 fixincludes=Makefile.in
4623 extra_headers=ppc-asm.h
4625 powerpcle-*-winnt* )
4626 tm_file=rs6000/win-nt.h
4627 tmake_file=rs6000/t-winnt
4629 fixincludes=Makefile.in
4630 if test x$enable_threads = xyes; then
4633 extra_headers=ppc-asm.h
4635 powerpcle-*-pe | powerpcle-*-cygwin32)
4636 tm_file=rs6000/cygwin32.h
4637 xm_file="rs6000/xm-cygwin32.h ${xm_file}"
4638 tmake_file=rs6000/t-winnt
4639 xmake_file=rs6000/x-cygwin32
4641 fixincludes=Makefile.in
4642 if test x$enable_threads = xyes; then
4646 extra_headers=ppc-asm.h
4648 powerpcle-*-solaris2*)
4649 tm_file=rs6000/sol2.h
4650 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
4651 xm_defines="USG POSIX"
4652 if test x$gas = xyes
4654 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
4656 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
4658 xmake_file=rs6000/x-sysv4
4661 fixincludes=fixinc.svr4;;
4663 fixincludes=fixinc.wrap;;
4665 extra_headers=ppc-asm.h
4667 rs6000-ibm-aix3.[01]*)
4668 tm_file=rs6000/aix31.h
4669 xmake_file=rs6000/x-aix31
4672 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
4673 tm_file=rs6000/aix3newas.h
4674 if test x$host != x$target
4676 tmake_file=rs6000/t-xnewas
4678 tmake_file=rs6000/t-newas
4682 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
4683 tm_file=rs6000/aix41.h
4684 if test x$host != x$target
4686 tmake_file=rs6000/t-xnewas
4688 tmake_file=rs6000/t-newas
4690 xmake_file=rs6000/x-aix41
4693 rs6000-ibm-aix4.[3456789].* | powerpc-ibm-aix4.[3456789].*)
4694 tm_file=rs6000/aix43.h
4695 if test x$host != x$target
4697 tmake_file=rs6000/t-xaix43
4699 tmake_file=rs6000/t-aix43
4701 xmake_file=rs6000/x-aix43
4704 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
4705 tm_file=rs6000/aix43.h
4706 if test x$host != x$target
4708 tmake_file=rs6000/t-xaix43
4710 tmake_file=rs6000/t-aix43
4712 xmake_file=rs6000/x-aix43
4722 tm_file=rs6000/mach.h
4723 xm_file="${xm_file} rs6000/xm-mach.h"
4724 xmake_file=rs6000/x-mach
4728 tm_file=rs6000/lynx.h
4729 xm_file=rs6000/xm-lynx.h
4730 tmake_file=rs6000/t-rs6000
4731 xmake_file=rs6000/x-lynx
4739 tmake_file="sh/t-sh t-rtems"
4740 tm_file=sh/rtemself.h
4744 tmake_file="sh/t-sh t-rtems"
4753 xm_file="xm-alloca.h ${xm_file}"
4756 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
4757 tm_file=sparc/vxsparc.h
4758 tmake_file=sparc/t-vxsparc
4760 thread_file='vxworks'
4763 tmake_file=sparc/t-sparcbare
4764 tm_file="sparc/aout.h libgloss.h"
4767 tm_file=sparc/netbsd.h
4768 # On NetBSD, the headers are already okay, except for math.h.
4769 fixincludes=fixinc.wrap
4777 tmake_file=sparc/t-elf
4778 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
4782 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
4783 xm_file="${xm_file} sparc/xm-linux.h"
4784 tm_file=sparc/linux-aout.h
4786 fixincludes=Makefile.in #On Linux, the headers are ok already.
4789 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
4790 xm_file="${xm_file} sparc/xm-linux.h"
4792 tm_file=sparc/linux.h
4793 tmake_file="t-linux t-linux-gnulibc1"
4794 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4795 fixincludes=Makefile.in #On Linux, the headers are ok already.
4798 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
4799 xm_file="${xm_file} sparc/xm-linux.h"
4801 tm_file=sparc/linux.h
4802 tmake_file="t-linux"
4803 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4804 fixincludes=Makefile.in #On Linux, the headers are ok already.
4806 if test x$enable_threads = xyes; then
4811 if test x$gas = xyes
4813 tm_file=sparc/lynx.h
4815 tm_file=sparc/lynx-ng.h
4817 xm_file=sparc/xm-lynx.h
4818 tmake_file=sparc/t-sunos41
4822 tmake_file="sparc/t-sparcbare t-rtems"
4823 tm_file=sparc/rtems.h
4825 sparcv9-*-solaris2*)
4826 tm_file=sparc/sol2-sld-64.h
4827 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
4828 xm_defines="USG POSIX"
4829 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
4830 xmake_file=sparc/x-sysv4
4831 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
4832 fixincludes=fixinc.wrap
4834 if test x${enable_threads} = x ; then
4835 enable_threads=$have_pthread_h
4836 if test x${enable_threads} = x ; then
4837 enable_threads=$have_thread_h
4840 if test x${enable_threads} = xyes ; then
4841 if test x${have_pthread_h} = xyes ; then
4844 thread_file='solaris'
4849 if test x$gnu_ld = xyes
4851 tm_file=sparc/sol2.h
4853 tm_file=sparc/sol2-sld.h
4855 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
4856 xm_defines="USG POSIX"
4857 tmake_file=sparc/t-sol2
4858 xmake_file=sparc/x-sysv4
4859 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4862 fixincludes=fixinc.svr4;;
4864 fixincludes=fixinc.wrap;;
4867 if test x${enable_threads} = x; then
4868 enable_threads=$have_pthread_h
4869 if test x${enable_threads} = x; then
4870 enable_threads=$have_thread_h
4873 if test x${enable_threads} = xyes; then
4874 if test x${have_pthread_h} = xyes; then
4877 thread_file='solaris'
4882 tm_file=sparc/sunos4.h
4883 tmake_file=sparc/t-sunos40
4887 tm_file=sparc/sunos4.h
4888 tmake_file=sparc/t-sunos41
4890 if test x$gas = xyes; then
4891 tm_file="${tm_file} sparc/sun4gas.h"
4895 tm_file=sparc/sun4o3.h
4899 tm_file=sparc/sysv4.h
4900 xm_file="xm-siglist.h sparc/xm-sysv4.h"
4901 xm_defines="USG POSIX"
4903 xmake_file=sparc/x-sysv4
4904 extra_parts="crtbegin.o crtend.o"
4907 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
4908 xm_defines="USG POSIX"
4909 tm_file=sparc/vxsim.h
4910 tmake_file=sparc/t-vxsparc
4911 xmake_file=sparc/x-sysv4
4914 tm_file="sparc/splet.h libgloss.h"
4915 tmake_file=sparc/t-splet
4918 tm_file="sparc/litecoff.h libgloss.h"
4919 tmake_file=sparc/t-sparclite
4922 tm_file="sparc/lite.h aoutos.h libgloss.h"
4923 tmake_file=sparc/t-sparclite
4926 tmake_file=sparc/t-sp64
4927 tm_file=sparc/sp64-aout.h
4930 tmake_file=sparc/t-sp64
4931 tm_file=sparc/sp64-elf.h
4932 extra_parts="crtbegin.o crtend.o"
4934 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
4935 tmake_file="t-linux sparc/t-linux64"
4936 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
4937 tm_file=sparc/linux64.h
4939 fixincludes=Makefile.in # The headers are ok already.
4940 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4943 # This hasn't been upgraded to GCC 2.
4944 # tahoe-harris-*) # Harris tahoe, using COFF.
4945 # tm_file=tahoe/harris.h
4947 # tahoe-*-bsd*) # tahoe running BSD
4949 thumb-*-coff* | thumbel-*-coff*)
4951 out_file=arm/thumb.c
4952 xm_file=arm/xm-thumb.h
4953 md_file=arm/thumb.md
4954 tmake_file=arm/t-thumb
4955 fixincludes=Makefile.in # There is nothing to fix
4957 # This hasn't been upgraded to GCC 2.
4964 tm_file="v850/v850.h"
4965 xm_file="v850/xm-v850.h"
4966 tmake_file=v850/t-v850
4967 if test x$stabs = xyes
4969 tm_file="${tm_file} dbx.h"
4973 vax-*-bsd*) # vaxen running BSD
4977 vax-*-sysv*) # vaxen running system V
4978 tm_file="${tm_file} vax/vaxv.h"
4983 tm_file="${tm_file} netbsd.h vax/netbsd.h"
4984 # On NetBSD, the headers are already okay, except for math.h.
4985 fixincludes=fixinc.wrap
4989 vax-*-ultrix*) # vaxen running ultrix
4990 tm_file="${tm_file} vax/ultrix.h"
4994 vax-*-vms*) # vaxen running VMS
4995 xm_file=vax/xm-vms.h
4999 vax-*-*) # vax default entry
5003 xm_file="${xm_file} xm-svr3"
5007 echo "Configuration $machine not supported" 1>&2
5014 ;; # Existing GNU/Linux systems do not use the GNU setup.
5016 # On the GNU system, the setup is just about the same on
5017 # each different CPU. The specific machines that GNU
5018 # supports are matched above and just set $cpu_type.
5019 xm_file="xm-gnu.h ${xm_file}"
5020 tm_file=${cpu_type}/gnu.h
5021 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
5022 # GNU always uses ELF.
5024 # GNU tools are the only tools.
5027 # On GNU, the headers are already okay.
5028 fixincludes=Makefile.in
5029 xmake_file=x-linux # These details are the same as Linux.
5030 tmake_file=t-gnu # These are not.
5033 fixincludes=fixinc.svr4
5034 xmake_try_sysv=x-sysv
5035 install_headers_dir=install-headers-cpio
5038 install_headers_dir=install-headers-cpio
5042 # Distinguish i[34567]86
5043 # Also, do not run mips-tfile on MIPS if using gas.
5044 # Process --with-cpu= for PowerPC/rs6000
5045 target_cpu_default2=
5048 target_cpu_default2=1
5051 target_cpu_default2=2
5053 i686-*-* | i786-*-*)
5054 target_cpu_default2=3
5059 target_cpu_default2="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
5062 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
5065 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
5068 target_cpu_default2="MASK_CPU_EV5"
5072 if test x$gas = xyes
5074 if test "$target_cpu_default2" = ""
5076 target_cpu_default2="MASK_GAS"
5078 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
5083 case "x$with_cpu" in
5086 target_cpu_default2="TARGET_CPU_generic"
5089 # Distinguish cores, and major variants
5090 # arm7m doesn't exist, but D & I don't affect code
5091 xarm23678 | xarm250 | xarm67010 \
5092 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
5093 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
5094 | xstrongarm | xstrongarm110)
5095 target_cpu_default2="TARGET_CPU_$with_cpu"
5099 echo "--with-cpu must be passed a value" 1>&2
5104 if test x$pass2done = xyes
5106 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5113 mips*-*-ecoff* | mips*-*-elf*)
5114 if test x$gas = xyes
5116 if test x$gnu_ld = xyes
5118 target_cpu_default2=20
5120 target_cpu_default2=16
5125 if test x$gas = xyes
5127 target_cpu_default2=16
5130 powerpc*-*-* | rs6000-*-*)
5131 case "x$with_cpu" in
5135 xcommon | xpower | xpower2 | xpowerpc | xrios \
5136 | xrios1 | xrios2 | xrsc | xrsc1 \
5137 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
5138 | x403 | x505 | x801 | x821 | x823 | x860)
5139 target_cpu_default2="\"$with_cpu\""
5143 echo "--with-cpu must be passed a value" 1>&2
5148 if test x$pass2done = xyes
5150 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5157 case ".$with_cpu" in
5159 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
5161 .supersparc | .ultrasparc | .v7 | .v8 | .v9)
5162 target_cpu_default2="TARGET_CPU_$with_cpu"
5165 if test x$pass2done = xyes
5167 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5175 if test "$target_cpu_default2" != ""
5177 if test "$target_cpu_default" != ""
5179 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
5181 target_cpu_default=$target_cpu_default2
5185 # No need for collect2 if we have the GNU linker.
5186 # Actually, there is now; GNU ld doesn't handle the EH info or
5187 # collecting for shared libraries.
5194 # Save data on machine being used to compile GCC in build_xm_file.
5195 # Save data on host machine in vars host_xm_file and host_xmake_file.
5196 if test x$pass1done = x
5198 if test x"$xm_file" = x
5199 then build_xm_file=$cpu_type/xm-$cpu_type.h
5200 else build_xm_file=$xm_file
5202 build_xm_defines=$xm_defines
5203 build_install_headers_dir=$install_headers_dir
5204 build_exeext=$exeext
5207 if test x$pass2done = x
5209 if test x"$xm_file" = x
5210 then host_xm_file=$cpu_type/xm-$cpu_type.h
5211 else host_xm_file=$xm_file
5213 host_xm_defines=$xm_defines
5214 if test x"$xmake_file" = x
5215 then xmake_file=$cpu_type/x-$cpu_type
5217 host_xmake_file="$xmake_file"
5218 host_truncate_target=$truncate_target
5219 host_extra_gcc_objs=$extra_gcc_objs
5220 host_extra_objs=$extra_host_objs
5227 extra_objs="${host_extra_objs} ${extra_objs}"
5229 # Default the target-machine variables that were not explicitly set.
5230 if test x"$tm_file" = x
5231 then tm_file=$cpu_type/$cpu_type.h; fi
5233 if test x$extra_headers = x
5234 then extra_headers=; fi
5236 if test x"$xm_file" = x
5237 then xm_file=$cpu_type/xm-$cpu_type.h; fi
5239 if test x$md_file = x
5240 then md_file=$cpu_type/$cpu_type.md; fi
5242 if test x$out_file = x
5243 then out_file=$cpu_type/$cpu_type.c; fi
5245 if test x"$tmake_file" = x
5246 then tmake_file=$cpu_type/t-$cpu_type
5249 if test x$float_format = x
5250 then float_format=i64
5253 if test x$enable_haifa = x
5256 alpha*-* | hppa1.?-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
5261 # Say what files are being used for the output code and MD file.
5262 echo "Using \`$srcdir/config/$out_file' to output insns."
5263 echo "Using \`$srcdir/config/$md_file' as machine description file."
5266 for f in $tm_file; do
5269 if test $count = ax; then
5270 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
5272 echo "Using the following target machine macro files:"
5273 for f in $tm_file; do
5274 echo " $srcdir/config/$f"
5279 for f in $host_xm_file; do
5282 if test $count = ax; then
5283 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
5285 echo "Using the following host machine macro files:"
5286 for f in $host_xm_file; do
5287 echo " $srcdir/config/$f"
5291 if test "$host_xm_file" != "$build_xm_file"; then
5293 for f in $build_xm_file; do
5296 if test $count = ax; then
5297 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
5299 echo "Using the following build machine macro files:"
5300 for f in $build_xm_file; do
5301 echo " $srcdir/config/$f"
5306 if test x$thread_file = x; then
5307 if test x$target_thread_file != x; then
5308 thread_file=$target_thread_file
5310 thread_file='single'
5314 # Set up the header files.
5315 # $links is the list of header files to create.
5316 # $vars is the list of shell variables with file names to include.
5317 # auto-host.h is the file containing items generated by autoconf and is
5318 # the first file included by config.h.
5320 host_xm_file="auto-host.h ${host_xm_file}"
5322 # If host=build, it is correct to have hconfig include auto-host.h
5323 # as well. If host!=build, we are in error and need to do more
5324 # work to find out the build config parameters.
5325 if test x$host = x$build
5327 build_xm_file="auto-host.h ${build_xm_file}"
5329 # We create a subdir, then run autoconf in the subdir.
5330 # To prevent recursion we set host and build for the new
5331 # invocation of configure to the build for this invocation
5338 /*) realsrcdir=${srcdir};;
5339 *) realsrcdir=../${srcdir};;
5341 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
5342 --target=$target --host=$build --build=$build
5344 # We just finished tests for the build machine, so rename
5345 # the file auto-build.h in the gcc directory.
5346 mv auto-host.h ../auto-build.h
5349 build_xm_file="auto-build.h ${build_xm_file}"
5352 vars="host_xm_file tm_file xm_file build_xm_file"
5353 links="config.h tm.h tconfig.h hconfig.h"
5354 defines="host_xm_defines null_defines xm_defines build_xm_defines"
5357 if test -f config.status; then mv -f config.status config.bak; fi
5360 while test -n "$vars"
5362 set $vars; var=$1; shift; vars=$*
5363 set $links; link=$1; shift; links=$*
5364 set $defines; define=$1; shift; defines=$*
5368 # Define TARGET_CPU_DEFAULT if the system wants one.
5369 # This substitutes for lots of *.h files.
5370 if test "$target_cpu_default" != "" -a $link = tm.h
5372 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
5375 for file in `eval echo '$'$var`; do
5376 echo "#include \"$file\"" >>$link
5379 for def in `eval echo '$'$define`; do
5380 echo "#ifndef $def" >>$link
5381 echo "#define $def" >>$link
5382 echo "#endif" >>$link
5386 # Truncate the target if necessary
5387 if test x$host_truncate_target != x; then
5388 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
5391 # Get the version trigger filename from the toplevel
5392 if test "${with_gcc_version_trigger+set}" = set; then
5393 gcc_version_trigger=$with_gcc_version_trigger
5395 gcc_version_trigger=${srcdir}/version.c
5397 gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
5399 # Get an absolute path to the GCC top-level source directory
5405 # Conditionalize the makefile for this host machine.
5406 # Make-host contains the concatenation of all host makefile fragments
5407 # [there can be more than one]. This file is built by configure.frag.
5408 host_overrides=Make-host
5409 dep_host_xmake_file=
5410 for f in .. ${host_xmake_file}
5412 if test -f ${srcdir}/config/$f
5414 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
5418 # Conditionalize the makefile for this target machine.
5419 # Make-target contains the concatenation of all host makefile fragments
5420 # [there can be more than one]. This file is built by configure.frag.
5421 target_overrides=Make-target
5423 for f in .. ${tmake_file}
5425 if test -f ${srcdir}/config/$f
5427 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
5431 # If the host doesn't support symlinks, modify CC in
5432 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
5433 # Otherwise, we can use "CC=$(CC)".
5435 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
5437 cc_set_by_configure="\$(CC)"
5438 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
5441 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
5443 symbolic_link="cp -p"
5447 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
5448 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
5452 out_object_file=`basename $out_file .c`.o
5455 for f in $tm_file; do
5456 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
5460 for f in $host_xm_file; do
5461 if test $f != "auto-host.h"; then
5462 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
5464 host_xm_file_list="${host_xm_file_list} auto-host.h"
5469 for f in $build_xm_file; do
5470 if test $f != "auto-build.h"; then
5471 if test $f != "auto-host.h"; then
5472 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
5474 build_xm_file_list="${build_xm_file_list} auto-host.h"
5477 build_xm_file_list="${build_xm_file_list} auto-build.h"
5481 # Define macro CROSS_COMPILE in compilation
5482 # if this is a cross-compiler.
5483 # Also use all.cross instead of all.internal
5484 # and add cross-make to Makefile.
5485 cross_overrides="/dev/null"
5486 if test x$host != x$target
5488 cross_defines="CROSS=-DCROSS_COMPILE"
5489 cross_overrides="${topdir}/cross-make"
5492 # When building gcc with a cross-compiler, we need to fix a few things.
5493 # This must come after cross-make as we want all.build to override
5495 build_overrides="/dev/null"
5496 if test x$build != x$host
5498 build_overrides="${topdir}/build-make"
5501 # Expand extra_headers to include complete path.
5502 # This substitutes for lots of t-* files.
5504 if test "x$extra_headers" = x
5507 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
5508 for file in $extra_headers;
5510 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
5514 if test x$use_collect2 = xno; then
5518 # Add a definition of USE_COLLECT2 if system wants one.
5519 # Also tell toplev.c what to do.
5520 # This substitutes for lots of t-* files.
5521 if test x$use_collect2 = x
5526 will_use_collect2="collect2"
5527 maybe_use_collect2="-DUSE_COLLECT2"
5531 # Set MD_DEPS if the real md file is in md.pre-cpp.
5532 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
5533 # for line oriented comments, so we must always use a GNU cpp. If
5534 # building gcc with a cross compiler, use the cross compiler just
5535 # built. Otherwise, we can use the cpp just built.
5537 if test "x$md_cppflags" = x
5539 md_file_sub=$srcdir/config/$md_file
5544 # If we have gas in the build tree, make a link to it.
5545 if test -f ../gas/Makefile; then
5546 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
5549 # If we have nm in the build tree, make a link to it.
5550 if test -f ../binutils/Makefile; then
5551 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
5554 # If we have ld in the build tree, make a link to it.
5555 if test -f ../ld/Makefile; then
5556 # if test x$use_collect2 = x; then
5557 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
5559 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
5563 # Figure out what assembler alignment features are present.
5564 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
5565 echo "configure:5566: checking assembler alignment features" >&5
5567 gcc_cv_as_alignment_features=
5568 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
5569 if test -x "$AS"; then
5571 elif test -x as$host_exeext; then
5572 # Build using assembler in the current directory.
5573 gcc_cv_as=./as$host_exeext
5574 elif test -f $gcc_cv_as_gas_srcdir/configure.in; then
5575 # Single tree build which includes gas.
5576 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
5578 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
5579 if test x$gcc_cv_gas_version != x; then
5583 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
5584 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
5585 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
5586 # Gas version 2.6 and later support for .balign and .p2align.
5587 # bytes to skip when using .p2align.
5588 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
5589 gcc_cv_as_alignment_features=".balign and .p2align"
5590 cat >> confdefs.h <<\EOF
5591 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
5595 # Gas version 2.8 and later support specifying the maximum
5596 # bytes to skip when using .p2align.
5597 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
5598 gcc_cv_as_alignment_features=".p2align including maximum skip"
5599 cat >> confdefs.h <<\EOF
5600 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
5605 elif test x$host = x$target; then
5607 gcc_cv_as=as$host_exeext
5609 if test x$gcc_cv_as != x; then
5610 # Check if we have .balign and .p2align
5611 echo ".balign 4" > conftest.s
5612 echo ".p2align 2" >> conftest.s
5613 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
5614 gcc_cv_as_alignment_features=".balign and .p2align"
5615 cat >> confdefs.h <<\EOF
5616 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
5620 rm -f conftest.s conftest.o
5621 # Check if specifying the maximum bytes to skip when
5622 # using .p2align is supported.
5623 echo ".p2align 4,,7" > conftest.s
5624 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
5625 gcc_cv_as_alignment_features=".p2align including maximum skip"
5626 cat >> confdefs.h <<\EOF
5627 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
5631 rm -f conftest.s conftest.o
5633 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
5635 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
5636 echo "configure:5637: checking assembler subsection support" >&5
5637 gcc_cv_as_subsections=
5638 if test x$gcc_cv_as != x; then
5639 # Check if we have .subsection
5640 echo ".subsection 1" > conftest.s
5641 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
5642 gcc_cv_as_subsections=".subsection"
5643 if test -x nm$host_exeext; then
5644 gcc_cv_nm=./nm$host_exeext
5645 elif test x$host = x$target; then
5647 gcc_cv_nm=nm$host_exeext
5649 if test x$gcc_cv_nm != x; then
5650 cat > conftest.s <<EOF
5651 conftest_label1: .word 0
5653 conftest_label2: .word 0
5656 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
5657 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
5658 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
5659 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
5662 gcc_cv_as_subsections="working .subsection -1"
5663 cat >> confdefs.h <<\EOF
5664 #define HAVE_GAS_SUBSECTION_ORDERING 1
5671 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
5673 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
5675 # Figure out what language subdirectories are present.
5677 for lang in ${srcdir}/*/config-lang.in ..
5681 # The odd quoting in the next line works around
5682 # an apparent bug in bash 1.12 on linux.
5683 ${srcdir}/ada/config-lang.in)
5684 if test x$gnat = xyes ; then
5685 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
5688 ${srcdir}/[*]/config-lang.in) ;;
5689 *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
5693 # Make gthr-default.h if we have a thread file.
5695 if test $thread_file != single; then
5696 rm -f gthr-default.h
5697 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
5698 gthread_flags=-DHAVE_GTHR_DEFAULT
5702 # Make empty files to contain the specs and options for each language.
5703 # Then add #include lines to for a compiler that has specs and/or options.
5708 rm -f specs.h options.h gencheck.h
5709 touch specs.h options.h gencheck.h
5710 for subdir in . $subdirs
5712 if test -f $srcdir/$subdir/lang-specs.h; then
5713 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
5714 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
5716 if test -f $srcdir/$subdir/lang-options.h; then
5717 echo "#include \"$subdir/lang-options.h\"" >>options.h
5718 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
5720 if test -f $srcdir/$subdir/$subdir-tree.def; then
5721 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
5722 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
5726 # These (without "all_") are set in each config-lang.in.
5727 # `language' must be a single word so is spelled singularly.
5733 all_outputs=Makefile
5734 # List of language makefile fragments.
5739 # Add the language fragments.
5740 # Languages are added via two mechanisms. Some information must be
5741 # recorded in makefile variables, these are defined in config-lang.in.
5742 # We accumulate them and plug them into the main Makefile.
5743 # The other mechanism is a set of hooks for each of the main targets
5744 # like `clean', `install', etc.
5746 language_fragments="Make-lang"
5747 language_hooks="Make-hooks"
5750 for s in .. $subdirs
5762 . ${srcdir}/$s/config-lang.in
5763 if test "x$language" = x
5765 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
5768 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
5769 all_languages="$all_languages $language"
5770 if test "x$boot_language" = xyes
5772 all_boot_languages="$all_boot_languages $language"
5774 all_compilers="$all_compilers $compilers"
5775 all_stagestuff="$all_stagestuff $stagestuff"
5776 all_diff_excludes="$all_diff_excludes $diff_excludes"
5777 all_headers="$all_headers $headers"
5778 all_outputs="$all_outputs $outputs"
5779 if test x$outputs = x
5781 oldstyle_subdirs="$oldstyle_subdirs $s"
5783 all_lib2funcs="$all_lib2funcs $lib2funcs"
5787 # Since we can't use `::' targets, we link each language in
5788 # with a set of hooks, reached indirectly via lang.${target}.
5792 target_list="all.build all.cross start.encap rest.encap \
5794 install-normal install-common install-info install-man \
5796 mostlyclean clean distclean extraclean maintainer-clean \
5797 stage1 stage2 stage3 stage4"
5798 for t in $target_list
5801 for l in .. $all_languages
5803 if test $l != ".."; then
5807 echo "lang.$t: $x" >> Make-hooks
5810 # If we're not building in srcdir, create .gdbinit.
5812 if test ! -f Makefile.in; then
5813 echo "dir ." > .gdbinit
5814 echo "dir ${srcdir}" >> .gdbinit
5815 if test x$gdb_needs_out_file_path = xyes
5817 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
5819 if test "x$subdirs" != x; then
5822 echo "dir ${srcdir}/$s" >> .gdbinit
5825 echo "source ${srcdir}/.gdbinit" >> .gdbinit
5828 # Define variables host_canonical and build_canonical
5829 # because some Cygnus local changes in the Makefile depend on them.
5830 build_canonical=${build}
5831 host_canonical=${host}
5833 if test "${host}" != "${target}" ; then
5834 target_subdir=${target}/
5840 # If this is using newlib, then define inhibit_libc in
5841 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
5842 # libgcc.a, but that's OK because newib should have its own version of
5845 if test x$with_newlib = xyes; then
5846 inhibit_libc=-Dinhibit_libc
5850 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
5853 if test x$enable_haifa = xyes; then
5854 echo "Using the Haifa scheduler."
5856 sched_cflags=-DHAIFA
5860 if test x$enable_haifa != x; then
5861 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
5862 for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do
5870 # Warn if using init_priority.
5871 echo $ac_n "checking whether to enable init_priority by default""... $ac_c" 1>&6
5872 echo "configure:5873: checking whether to enable init_priority by default" >&5
5873 if test x$enable_init_priority != xyes; then
5874 enable_init_priority=no
5876 echo "$ac_t""$enable_init_priority" 1>&6
5878 # Nothing to do for FLOAT_H, float_format already handled.
5882 # Process the language and host/target makefile fragments.
5883 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
5885 # Substitute configuration variables
5943 # Echo that links are built
5944 if test x$host = x$target
5952 if test x$host != x$build
5954 str3=" on a $build system"
5957 if test "x$str2" != x || test "x$str3" != x
5962 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
5964 if test "x$str2" != x || test "x$str3" != x
5966 echo " ${str2}${str3}." 1>&2
5969 # Truncate the target if necessary
5970 if test x$host_truncate_target != x; then
5971 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
5974 # Configure the subdirectories
5975 # AC_CONFIG_SUBDIRS($subdirs)
5977 # Create the Makefile
5978 # and configure language subdirectories
5980 cat > confcache <<\EOF
5981 # This file is a shell script that caches the results of configure
5982 # tests run on this system so they can be shared between configure
5983 # scripts and configure runs. It is not useful on other systems.
5984 # If it contains results you don't want to keep, you may remove or edit it.
5986 # By default, configure uses ./config.cache as the cache file,
5987 # creating it if it does not exist already. You can give configure
5988 # the --cache-file=FILE option to use a different cache file; that is
5989 # what configure does when it calls configure scripts in
5990 # subdirectories, so they share the cache.
5991 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5992 # config.status only pays attention to the cache file if you give it the
5993 # --recheck option to rerun configure.
5996 # The following way of writing the cache mishandles newlines in values,
5997 # but we know of no workaround that is simple, portable, and efficient.
5998 # So, don't put newlines in cache variables' values.
5999 # Ultrix sh set writes to stderr and can't be redirected directly,
6000 # and sets the high bit in the cache file unless we assign to the vars.
6002 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
6004 # `set' does not quote correctly, so add quotes (double-quote substitution
6005 # turns \\\\ into \\, and sed turns \\ into \).
6007 -e "s/'/'\\\\''/g" \
6008 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6011 # `set' quotes correctly as required by POSIX, so do not add quotes.
6012 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6015 if cmp -s $cache_file confcache; then
6018 if test -w $cache_file; then
6019 echo "updating cache $cache_file"
6020 cat confcache > $cache_file
6022 echo "not updating unwritable cache $cache_file"
6027 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6029 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6030 # Let make expand exec_prefix.
6031 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6033 # Any assignment to VPATH causes Sun make to only execute
6034 # the first set of double-colon rules, so remove it if not needed.
6035 # If there is a colon in the path, we need to keep it.
6036 if test "x$srcdir" = x.; then
6037 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6040 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6042 DEFS=-DHAVE_CONFIG_H
6044 # Without the "./", some shells look in PATH for config.status.
6045 : ${CONFIG_STATUS=./config.status}
6047 echo creating $CONFIG_STATUS
6048 rm -f $CONFIG_STATUS
6049 cat > $CONFIG_STATUS <<EOF
6051 # Generated automatically by configure.
6052 # Run this file to recreate the current configuration.
6053 # This directory was configured as follows,
6054 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6056 # $0 $ac_configure_args
6058 # Compiler output produced by configure, useful for debugging
6059 # configure, is in ./config.log if it exists.
6061 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6064 case "\$ac_option" in
6065 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6066 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6067 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6068 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6069 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
6071 -help | --help | --hel | --he | --h)
6072 echo "\$ac_cs_usage"; exit 0 ;;
6073 *) echo "\$ac_cs_usage"; exit 1 ;;
6077 ac_given_srcdir=$srcdir
6079 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6081 cat >> $CONFIG_STATUS <<EOF
6083 # Protect against being on the right side of a sed subst in config.status.
6084 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6085 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6089 s%@CFLAGS@%$CFLAGS%g
6090 s%@CPPFLAGS@%$CPPFLAGS%g
6091 s%@CXXFLAGS@%$CXXFLAGS%g
6093 s%@LDFLAGS@%$LDFLAGS%g
6095 s%@exec_prefix@%$exec_prefix%g
6096 s%@prefix@%$prefix%g
6097 s%@program_transform_name@%$program_transform_name%g
6098 s%@bindir@%$bindir%g
6099 s%@sbindir@%$sbindir%g
6100 s%@libexecdir@%$libexecdir%g
6101 s%@datadir@%$datadir%g
6102 s%@sysconfdir@%$sysconfdir%g
6103 s%@sharedstatedir@%$sharedstatedir%g
6104 s%@localstatedir@%$localstatedir%g
6105 s%@libdir@%$libdir%g
6106 s%@includedir@%$includedir%g
6107 s%@oldincludedir@%$oldincludedir%g
6108 s%@infodir@%$infodir%g
6109 s%@mandir@%$mandir%g
6111 s%@host_alias@%$host_alias%g
6112 s%@host_cpu@%$host_cpu%g
6113 s%@host_vendor@%$host_vendor%g
6114 s%@host_os@%$host_os%g
6115 s%@target@%$target%g
6116 s%@target_alias@%$target_alias%g
6117 s%@target_cpu@%$target_cpu%g
6118 s%@target_vendor@%$target_vendor%g
6119 s%@target_os@%$target_os%g
6121 s%@build_alias@%$build_alias%g
6122 s%@build_cpu@%$build_cpu%g
6123 s%@build_vendor@%$build_vendor%g
6124 s%@build_os@%$build_os%g
6126 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
6127 s%@SET_MAKE@%$SET_MAKE%g
6130 s%@LEXLIB@%$LEXLIB%g
6133 s%@RANLIB@%$RANLIB%g
6135 s%@INSTALL@%$INSTALL%g
6136 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6137 s%@INSTALL_DATA@%$INSTALL_DATA%g
6140 s%@vfprintf@%$vfprintf%g
6141 s%@doprint@%$doprint%g
6142 s%@manext@%$manext%g
6143 s%@objext@%$objext%g
6144 s%@gthread_flags@%$gthread_flags%g
6145 s%@build_canonical@%$build_canonical%g
6146 s%@host_canonical@%$host_canonical%g
6147 s%@target_subdir@%$target_subdir%g
6148 s%@inhibit_libc@%$inhibit_libc%g
6149 s%@sched_prefix@%$sched_prefix%g
6150 s%@sched_cflags@%$sched_cflags%g
6151 s%@objdir@%$objdir%g
6152 s%@subdirs@%$subdirs%g
6153 s%@all_languages@%$all_languages%g
6154 s%@all_boot_languages@%$all_boot_languages%g
6155 s%@all_compilers@%$all_compilers%g
6156 s%@all_lang_makefiles@%$all_lang_makefiles%g
6157 s%@all_stagestuff@%$all_stagestuff%g
6158 s%@all_diff_excludes@%$all_diff_excludes%g
6159 s%@all_lib2funcs@%$all_lib2funcs%g
6160 s%@all_headers@%$all_headers%g
6161 s%@cpp_main@%$cpp_main%g
6162 s%@extra_passes@%$extra_passes%g
6163 s%@extra_programs@%$extra_programs%g
6164 s%@extra_parts@%$extra_parts%g
6165 s%@extra_c_objs@%$extra_c_objs%g
6166 s%@extra_cxx_objs@%$extra_cxx_objs%g
6167 s%@extra_cpp_objs@%$extra_cpp_objs%g
6168 s%@extra_c_flags@%$extra_c_flags%g
6169 s%@extra_objs@%$extra_objs%g
6170 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
6171 s%@extra_headers_list@%$extra_headers_list%g
6172 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
6173 s%@dep_tmake_file@%$dep_tmake_file%g
6174 s%@out_file@%$out_file%g
6175 s%@out_object_file@%$out_object_file%g
6176 s%@md_file@%$md_file%g
6177 s%@tm_file_list@%$tm_file_list%g
6178 s%@build_xm_file_list@%$build_xm_file_list%g
6179 s%@host_xm_file_list@%$host_xm_file_list%g
6180 s%@lang_specs_files@%$lang_specs_files%g
6181 s%@lang_options_files@%$lang_options_files%g
6182 s%@lang_tree_files@%$lang_tree_files%g
6183 s%@thread_file@%$thread_file%g
6184 s%@objc_boehm_gc@%$objc_boehm_gc%g
6185 s%@gcc_version@%$gcc_version%g
6186 s%@gcc_version_trigger@%$gcc_version_trigger%g
6187 s%@local_prefix@%$local_prefix%g
6188 s%@gxx_include_dir@%$gxx_include_dir%g
6189 s%@fixincludes@%$fixincludes%g
6190 s%@build_install_headers_dir@%$build_install_headers_dir%g
6191 s%@build_exeext@%$build_exeext%g
6192 s%@host_exeext@%$host_exeext%g
6193 s%@float_format@%$float_format%g
6194 s%@will_use_collect2@%$will_use_collect2%g
6195 s%@maybe_use_collect2@%$maybe_use_collect2%g
6196 s%@cc_set_by_configure@%$cc_set_by_configure%g
6197 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
6198 s%@install@%$install%g
6199 s%@symbolic_link@%$symbolic_link%g
6200 /@target_overrides@/r $target_overrides
6201 s%@target_overrides@%%g
6202 /@host_overrides@/r $host_overrides
6203 s%@host_overrides@%%g
6204 s%@cross_defines@%$cross_defines%g
6205 /@cross_overrides@/r $cross_overrides
6206 s%@cross_overrides@%%g
6207 /@build_overrides@/r $build_overrides
6208 s%@build_overrides@%%g
6209 /@language_fragments@/r $language_fragments
6210 s%@language_fragments@%%g
6211 /@language_hooks@/r $language_hooks
6212 s%@language_hooks@%%g
6217 cat >> $CONFIG_STATUS <<\EOF
6219 # Split the substitutions into bite-sized pieces for seds with
6220 # small command number limits, like on Digital OSF/1 and HP-UX.
6221 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6222 ac_file=1 # Number of current file.
6223 ac_beg=1 # First line for current file.
6224 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6227 while $ac_more_lines; do
6228 if test $ac_beg -gt 1; then
6229 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6231 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6233 if test ! -s conftest.s$ac_file; then
6235 rm -f conftest.s$ac_file
6237 if test -z "$ac_sed_cmds"; then
6238 ac_sed_cmds="sed -f conftest.s$ac_file"
6240 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6242 ac_file=`expr $ac_file + 1`
6244 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6247 if test -z "$ac_sed_cmds"; then
6252 cat >> $CONFIG_STATUS <<EOF
6254 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
6256 cat >> $CONFIG_STATUS <<\EOF
6257 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6258 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6260 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6261 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6262 *) ac_file_in="${ac_file}.in" ;;
6265 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6267 # Remove last slash and all that follows it. Not all systems have dirname.
6268 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6269 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6270 # The file is in a subdirectory.
6271 test ! -d "$ac_dir" && mkdir "$ac_dir"
6272 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6273 # A "../" for each directory in $ac_dir_suffix.
6274 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6276 ac_dir_suffix= ac_dots=
6279 case "$ac_given_srcdir" in
6281 if test -z "$ac_dots"; then top_srcdir=.
6282 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6283 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6285 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6286 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6290 echo creating "$ac_file"
6292 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6294 *Makefile*) ac_comsub="1i\\
6295 # $configure_input" ;;
6299 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6301 s%@configure_input@%$configure_input%g
6302 s%@srcdir@%$srcdir%g
6303 s%@top_srcdir@%$top_srcdir%g
6304 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6308 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6309 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6311 # ac_d sets the value in "#define NAME VALUE" lines.
6312 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6313 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6316 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6317 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6318 ac_uB='\([ ]\)%\1#\2define\3'
6321 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6322 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6323 ac_eB='$%\1#\2define\3'
6327 if test "${CONFIG_HEADERS+set}" != set; then
6329 cat >> $CONFIG_STATUS <<EOF
6330 CONFIG_HEADERS="auto-host.h:config.in"
6332 cat >> $CONFIG_STATUS <<\EOF
6334 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6335 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6337 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6338 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6339 *) ac_file_in="${ac_file}.in" ;;
6342 echo creating $ac_file
6344 rm -f conftest.frag conftest.in conftest.out
6345 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6346 cat $ac_file_inputs > conftest.in
6350 # Transform confdefs.h into a sed script conftest.vals that substitutes
6351 # the proper values into config.h.in to produce config.h. And first:
6352 # Protect against being on the right side of a sed subst in config.status.
6353 # Protect against being in an unquoted here document in config.status.
6355 cat > conftest.hdr <<\EOF
6358 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6362 sed -n -f conftest.hdr confdefs.h > conftest.vals
6365 # This sed command replaces #undef with comments. This is necessary, for
6366 # example, in the case of _POSIX_SOURCE, which is predefined and required
6367 # on some systems where configure will not decide to define it.
6368 cat >> conftest.vals <<\EOF
6369 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6372 # Break up conftest.vals because some shells have a limit on
6373 # the size of here documents, and old seds have small limits too.
6378 ac_lines=`grep -c . conftest.vals`
6379 # grep -c gives empty output for an empty file on some AIX systems.
6380 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6381 # Write a limited-size here document to conftest.frag.
6382 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6383 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6385 sed -f conftest.frag conftest.in > conftest.out
6387 mv conftest.out conftest.in
6389 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6391 mv conftest.tail conftest.vals
6395 cat >> $CONFIG_STATUS <<\EOF
6396 rm -f conftest.frag conftest.h
6397 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6398 cat conftest.in >> conftest.h
6400 if cmp -s $ac_file conftest.h 2>/dev/null; then
6401 echo "$ac_file is unchanged"
6404 # Remove last slash and all that follows it. Not all systems have dirname.
6405 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6406 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6407 # The file is in a subdirectory.
6408 test ! -d "$ac_dir" && mkdir "$ac_dir"
6411 mv conftest.h $ac_file
6416 cat >> $CONFIG_STATUS <<EOF
6421 target_alias='${target_alias}'
6423 subdirs='${subdirs}'
6424 oldstyle_subdirs='${oldstyle_subdirs}'
6425 symbolic_link='${symbolic_link}'
6426 program_transform_set='${program_transform_set}'
6427 program_transform_name='${program_transform_name}'
6428 dep_host_xmake_file='${dep_host_xmake_file}'
6429 host_xmake_file='${host_xmake_file}'
6430 dep_tmake_file='${dep_tmake_file}'
6431 tmake_file='${tmake_file}'
6432 thread_file='${thread_file}'
6433 gcc_version='${gcc_version}'
6434 gcc_version_trigger='${gcc_version_trigger}'
6435 local_prefix='${local_prefix}'
6436 build_install_headers_dir='${build_install_headers_dir}'
6437 build_exeext='${build_exeext}'
6438 host_exeext='${host_exeext}'
6439 out_file='${out_file}'
6440 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
6441 SET_MAKE='${SET_MAKE}'
6442 target_list='${target_list}'
6443 target_overrides='${target_overrides}'
6444 host_overrides='${host_overrides}'
6445 cross_defines='${cross_defines}'
6446 cross_overrides='${cross_overrides}'
6447 build_overrides='${build_overrides}'
6450 cat >> $CONFIG_STATUS <<\EOF
6452 . $srcdir/configure.lang
6453 case x$CONFIG_HEADERS in
6454 xauto-host.h:config.in)
6457 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
6458 # bootstrapping and the installation procedure can still use
6459 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
6460 # FLAGS_TO_PASS has been modified to solve the problem there.
6461 # This is virtually a duplicate of what happens in configure.lang; we do
6462 # an extra check to make sure this only happens if ln -s can be used.
6463 if test "$symbolic_link" = "ln -s"; then
6464 for d in .. ${subdirs} ; do
6465 if test $d != ..; then
6468 for t in stage1 stage2 stage3 stage4 include
6471 $symbolic_link ../$t $t 2>/dev/null
6480 chmod +x $CONFIG_STATUS
6481 rm -fr confdefs* $ac_clean_files
6482 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1