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-gnu-as arrange to work with GNU as."
19 --with-stabs arrange to use stabs instead of host debug format."
21 --with-elf arrange to use ELF instead of host debug format."
23 --with-local-prefix=DIR specifies directory to put local include."
25 --with-gxx-include-dir=DIR
26 specifies directory to put g++ header files."
28 --enable-checking enable expensive run-time checks."
30 --enable-c-cpplib Use cpplib for C."
32 --enable-haifa Use the experimental scheduler.
33 --disable-haifa Don't use the experimental scheduler for the
34 targets which normally enable it."
36 --with-fast-fixincludes Use a faster fixinclude program. Experimental"
38 --enable-threads enable thread usage for target GCC.
39 --enable-threads=LIB use LIB thread package for target GCC."
41 # Initialize some variables set by options.
42 # The variables have the same names as the options, with
43 # dashes changed to underlines.
45 cache_file
=.
/config.cache
54 program_transform_name
=s
,x
,x
,
62 bindir
='${exec_prefix}/bin'
63 sbindir
='${exec_prefix}/sbin'
64 libexecdir
='${exec_prefix}/libexec'
65 datadir
='${prefix}/share'
66 sysconfdir
='${prefix}/etc'
67 sharedstatedir
='${prefix}/com'
68 localstatedir
='${prefix}/var'
69 libdir
='${exec_prefix}/lib'
70 includedir
='${prefix}/include'
71 oldincludedir
='/usr/include'
72 infodir
='${prefix}/info'
73 mandir
='${prefix}/man'
75 # Initialize some other variables.
78 SHELL
=${CONFIG_SHELL-/bin/sh}
79 # Maximum number of lines to put in a shell here document.
86 # If the previous option needs an argument, assign it.
87 if test -n "$ac_prev"; then
88 eval "$ac_prev=\$ac_option"
94 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
98 # Accept the important Cygnus configure options, so we can diagnose typos.
102 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
104 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
105 bindir
="$ac_optarg" ;;
107 -build |
--build |
--buil |
--bui |
--bu)
109 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
110 build
="$ac_optarg" ;;
112 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
113 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
114 ac_prev
=cache_file
;;
115 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
116 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
117 cache_file
="$ac_optarg" ;;
119 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
121 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
123 datadir
="$ac_optarg" ;;
125 -disable-* |
--disable-*)
126 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
132 eval "enable_${ac_feature}=no" ;;
134 -enable-* |
--enable-*)
135 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
136 # Reject names that are not valid shell variable names.
137 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
138 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
140 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
145 eval "enable_${ac_feature}='$ac_optarg'" ;;
147 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
148 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
149 |
--exec |
--exe |
--ex)
150 ac_prev
=exec_prefix
;;
151 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
152 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
153 |
--exec=* |
--exe=* |
--ex=*)
154 exec_prefix
="$ac_optarg" ;;
156 -gas |
--gas |
--ga |
--g)
157 # Obsolete; use --with-gas.
160 -help |
--help |
--hel |
--he)
161 # Omit some internal or obsolete options to make the list less imposing.
162 # This message is too long to be a string in the A/UX 3.1 sh.
164 Usage: configure [options] [host]
165 Options: [defaults in brackets after descriptions]
167 --cache-file=FILE cache test results in FILE
168 --help print this message
169 --no-create do not create output files
170 --quiet, --silent do not print \`checking...' messages
171 --version print the version of autoconf that created configure
172 Directory and file names:
173 --prefix=PREFIX install architecture-independent files in PREFIX
175 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
177 --bindir=DIR user executables in DIR [EPREFIX/bin]
178 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
179 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
180 --datadir=DIR read-only architecture-independent data in DIR
182 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
183 --sharedstatedir=DIR modifiable architecture-independent data in DIR
185 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
186 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
187 --includedir=DIR C header files in DIR [PREFIX/include]
188 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
189 --infodir=DIR info documentation in DIR [PREFIX/info]
190 --mandir=DIR man documentation in DIR [PREFIX/man]
191 --srcdir=DIR find the sources in DIR [configure dir or ..]
192 --program-prefix=PREFIX prepend PREFIX to installed program names
193 --program-suffix=SUFFIX append SUFFIX to installed program names
194 --program-transform-name=PROGRAM
195 run sed PROGRAM on installed program names
199 --build=BUILD configure for building on BUILD [BUILD=HOST]
200 --host=HOST configure for HOST [guessed]
201 --target=TARGET configure for TARGET [TARGET=HOST]
202 Features and packages:
203 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
204 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
205 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
206 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
207 --x-includes=DIR X include files are in DIR
208 --x-libraries=DIR X library files are in DIR
210 if test -n "$ac_help"; then
211 echo "--enable and --with options recognized:$ac_help"
215 -host |
--host |
--hos |
--ho)
217 -host=* |
--host=* |
--hos=* |
--ho=*)
220 -includedir |
--includedir |
--includedi |
--included |
--include \
221 |
--includ |
--inclu |
--incl |
--inc)
222 ac_prev
=includedir
;;
223 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
224 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
225 includedir
="$ac_optarg" ;;
227 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
229 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
230 infodir
="$ac_optarg" ;;
232 -libdir |
--libdir |
--libdi |
--libd)
234 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
235 libdir
="$ac_optarg" ;;
237 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
238 |
--libexe |
--libex |
--libe)
239 ac_prev
=libexecdir
;;
240 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
241 |
--libexe=* |
--libex=* |
--libe=*)
242 libexecdir
="$ac_optarg" ;;
244 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
245 |
--localstate |
--localstat |
--localsta |
--localst \
246 |
--locals |
--local |
--loca |
--loc |
--lo)
247 ac_prev
=localstatedir
;;
248 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
249 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
250 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
251 localstatedir
="$ac_optarg" ;;
253 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
255 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
256 mandir
="$ac_optarg" ;;
259 # Obsolete; use --without-fp.
262 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
266 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
267 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
270 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
271 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
272 |
--oldin |
--oldi |
--old |
--ol |
--o)
273 ac_prev
=oldincludedir
;;
274 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
275 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
276 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
277 oldincludedir
="$ac_optarg" ;;
279 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
281 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
282 prefix
="$ac_optarg" ;;
284 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
285 |
--program-pre |
--program-pr |
--program-p)
286 ac_prev
=program_prefix
;;
287 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
288 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
289 program_prefix
="$ac_optarg" ;;
291 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
292 |
--program-suf |
--program-su |
--program-s)
293 ac_prev
=program_suffix
;;
294 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
295 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
296 program_suffix
="$ac_optarg" ;;
298 -program-transform-name |
--program-transform-name \
299 |
--program-transform-nam |
--program-transform-na \
300 |
--program-transform-n |
--program-transform- \
301 |
--program-transform |
--program-transfor \
302 |
--program-transfo |
--program-transf \
303 |
--program-trans |
--program-tran \
304 |
--progr-tra |
--program-tr |
--program-t)
305 ac_prev
=program_transform_name
;;
306 -program-transform-name=* |
--program-transform-name=* \
307 |
--program-transform-nam=* |
--program-transform-na=* \
308 |
--program-transform-n=* |
--program-transform-=* \
309 |
--program-transform=* |
--program-transfor=* \
310 |
--program-transfo=* |
--program-transf=* \
311 |
--program-trans=* |
--program-tran=* \
312 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
313 program_transform_name
="$ac_optarg" ;;
315 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
316 |
-silent |
--silent |
--silen |
--sile |
--sil)
319 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
321 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
323 sbindir
="$ac_optarg" ;;
325 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
326 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
327 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
329 ac_prev
=sharedstatedir
;;
330 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
331 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
332 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
334 sharedstatedir
="$ac_optarg" ;;
336 -site |
--site |
--sit)
338 -site=* |
--site=* |
--sit=*)
341 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
343 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
344 srcdir
="$ac_optarg" ;;
346 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
347 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
348 ac_prev
=sysconfdir
;;
349 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
350 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
351 sysconfdir
="$ac_optarg" ;;
353 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
355 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
356 target
="$ac_optarg" ;;
358 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
361 -version |
--version |
--versio |
--versi |
--vers)
362 echo "configure generated by autoconf version 2.12.1"
366 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
367 # Reject names that are not valid shell variable names.
368 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
369 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
371 ac_package
=`echo $ac_package| sed 's/-/_/g'`
376 eval "with_${ac_package}='$ac_optarg'" ;;
378 -without-* |
--without-*)
379 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
380 # Reject names that are not valid shell variable names.
381 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
382 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
384 ac_package
=`echo $ac_package| sed 's/-/_/g'`
385 eval "with_${ac_package}=no" ;;
388 # Obsolete; use --with-x.
391 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
392 |
--x-incl |
--x-inc |
--x-in |
--x-i)
393 ac_prev
=x_includes
;;
394 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
395 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
396 x_includes
="$ac_optarg" ;;
398 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
399 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
400 ac_prev
=x_libraries
;;
401 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
402 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
403 x_libraries
="$ac_optarg" ;;
405 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
409 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
410 echo "configure: warning: $ac_option: invalid host type" 1>&2
412 if test "x$nonopt" != xNONE
; then
413 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
421 if test -n "$ac_prev"; then
422 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
425 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
427 # File descriptor usage:
430 # 2 errors and warnings
431 # 3 some systems may open it to /dev/tty
432 # 4 used on the Kubota Titan
433 # 6 checking for... messages and results
434 # 5 compiler messages saved in config.log
435 if test "$silent" = yes; then
443 This file contains any messages produced by compilers while
444 running configure, to aid debugging if configure makes a mistake.
447 # Strip out --no-create and --no-recursion so they do not pile up.
448 # Also quote any args containing shell metacharacters.
453 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
454 |
--no-cr |
--no-c) ;;
455 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
456 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
457 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
458 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
459 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
464 # Only set these to C if already set. These must not be set unconditionally
465 # because not all systems understand e.g. LANG=C (notably SCO).
466 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
467 # Non-C LC_CTYPE values break the ctype check.
468 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
469 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
470 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
471 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
473 # confdefs.h avoids OS command line length limits that DEFS can exceed.
474 rm -rf conftest
* confdefs.h
475 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
478 # A filename unique to this package, relative to the directory that
479 # configure is in, which we can look for to find out if srcdir is correct.
480 ac_unique_file
=tree.c
482 # Find the source files, if location was not specified.
483 if test -z "$srcdir"; then
484 ac_srcdir_defaulted
=yes
485 # Try the directory containing this script, then its parent.
487 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
488 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
490 if test ! -r $srcdir/$ac_unique_file; then
494 ac_srcdir_defaulted
=no
496 if test ! -r $srcdir/$ac_unique_file; then
497 if test "$ac_srcdir_defaulted" = yes; then
498 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
500 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
503 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
505 # Prefer explicitly selected file to automatically selected ones.
506 if test -z "$CONFIG_SITE"; then
507 if test "x$prefix" != xNONE
; then
508 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
510 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
513 for ac_site_file
in $CONFIG_SITE; do
514 if test -r "$ac_site_file"; then
515 echo "loading site script $ac_site_file"
520 if test -r "$cache_file"; then
521 echo "loading cache $cache_file"
524 echo "creating cache $cache_file"
529 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
530 ac_cpp
='$CPP $CPPFLAGS'
531 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
532 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
533 cross_compiling
=$ac_cv_prog_cc_cross
535 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
536 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
537 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
544 ac_n
= ac_c
='\c' ac_t
=
552 symbolic_link
='ln -s'
555 # Check for additional parameters
558 # Check whether --with-gnu-ld or --without-gnu-ld was given.
559 if test "${with_gnu_ld+set}" = set; then
560 withval
="$with_gnu_ld"
561 gnu_ld_flag
="$with_gnu_ld"
568 # Check whether --with-gnu-as or --without-gnu-as was given.
569 if test "${with_gnu_as+set}" = set; then
570 withval
="$with_gnu_as"
571 gas_flag
="$with_gnu_as"
578 # Check whether --with-stabs or --without-stabs was given.
579 if test "${with_stabs+set}" = set; then
580 withval
="$with_stabs"
588 # Check whether --with-elf or --without-elf was given.
589 if test "${with_elf+set}" = set; then
597 # Specify the local prefix
598 # Check whether --with-local-prefix or --without-local-prefix was given.
599 if test "${with_local_prefix+set}" = set; then
600 withval
="$with_local_prefix"
601 local_prefix
=$with_local_prefix
603 local_prefix
=/usr
/local
607 # Default local prefix if it is empty
608 if [ x
$local_prefix = x
]; then
609 local_prefix
=/usr
/local
612 # Specify the g++ header file directory
613 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
614 if test "${with_gxx_include_dir+set}" = set; then
615 withval
="$with_gxx_include_dir"
616 gxx_include_dir
=$with_gxx_include_dir
618 gxx_include_dir
='${prefix}/include/g++'
622 # Default g++ header file directory if it is empty
623 if [ x
$gxx_include_dir = x
]; then
624 gxx_include_dir
='${prefix}/include/g++'
627 # Enable expensive internal checks
628 # Check whether --enable-checking or --disable-checking was given.
629 if test "${enable_checking+set}" = set; then
630 enableval
="$enable_checking"
631 cat >> confdefs.h
<<\EOF
632 #define ENABLE_CHECKING 1
639 # Enable use of cpplib for C.
641 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
642 if test "${enable_c_cpplib+set}" = set; then
643 enableval
="$enable_c_cpplib"
644 if [ x
$enable_c_cpplib != xno
]; then
645 extra_c_objs
="${extra_c_objs} cpplib.o cppexp.o cpphash.o cpperror.o"
646 extra_c_objs
="${extra_c_objs} prefix.o"
647 extra_cxx_objs
="${extra_cxx_objs} ../cpplib.o ../cppexp.o ../cpphash.o ../cpperror.o ../prefix.o"
648 extra_c_flags
=-DUSE_CPPLIB=1
654 # Enable Haifa scheduler.
655 # Check whether --enable-haifa or --disable-haifa was given.
656 if test "${enable_haifa+set}" = set; then
657 enableval
="$enable_haifa"
663 # This is a work in progress...
664 # Check whether --with-fast-fixincludes or --without-fast-fixincludes was given.
665 if test "${with_fast_fixincludes+set}" = set; then
666 withval
="$with_fast_fixincludes"
667 fast_fixinc
="$with_fast_fixincludes"
674 # Pass with no value to take the default
675 # Pass with a value to specify a thread package
676 # Check whether --enable-threads or --disable-threads was given.
677 if test "${enable_threads+set}" = set; then
678 enableval
="$enable_threads"
679 if [ x
$enable_threads = xno
]; then
687 enable_threads_flag
=$enable_threads
688 # Check if a valid thread package
689 case x
${enable_threads_flag} in
692 target_thread_file
='single'
696 target_thread_file
=''
698 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
699 xsolaris | xwin32 | xdce | xvxworks
)
700 target_thread_file
=$enable_threads_flag
703 echo "$enable_threads is an unknown thread package" 1>&2
708 # Determine the host, build, and target systems
710 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
711 if test -f $ac_dir/install-sh
; then
713 ac_install_sh
="$ac_aux_dir/install-sh -c"
715 elif test -f $ac_dir/install.sh
; then
717 ac_install_sh
="$ac_aux_dir/install.sh -c"
721 if test -z "$ac_aux_dir"; then
722 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
724 ac_config_guess
=$ac_aux_dir/config.guess
725 ac_config_sub
=$ac_aux_dir/config.sub
726 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
729 # Do some error checking and defaulting for the host and target type.
731 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
734 # 1. You are not allowed to specify --host, --target, and nonopt at the
736 # 2. Host defaults to nonopt.
737 # 3. If nonopt is not specified, then host defaults to the current host,
738 # as determined by config.guess.
739 # 4. Target and build default to nonopt.
740 # 5. If nonopt is not specified, then target and build default to host.
742 # The aliases save the names the user supplied, while $host etc.
743 # will get canonicalized.
744 case $host---$target---$nonopt in
745 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
746 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
750 # Make sure we can run config.sub.
751 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
752 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
755 echo $ac_n "checking host system type""... $ac_c" 1>&6
756 echo "configure:757: checking host system type" >&5
759 case "$host_alias" in
763 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
764 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
766 *) host_alias
=$nonopt ;;
770 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
771 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
772 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
773 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
774 echo "$ac_t""$host" 1>&6
776 echo $ac_n "checking target system type""... $ac_c" 1>&6
777 echo "configure:778: checking target system type" >&5
780 case "$target_alias" in
783 NONE
) target_alias
=$host_alias ;;
784 *) target_alias
=$nonopt ;;
788 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
789 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
790 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
791 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
792 echo "$ac_t""$target" 1>&6
794 echo $ac_n "checking build system type""... $ac_c" 1>&6
795 echo "configure:796: checking build system type" >&5
798 case "$build_alias" in
801 NONE
) build_alias
=$host_alias ;;
802 *) build_alias
=$nonopt ;;
806 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
807 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
808 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
809 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
810 echo "$ac_t""$build" 1>&6
812 test "$host_alias" != "$target_alias" &&
813 test "$program_prefix$program_suffix$program_transform_name" = \
815 program_prefix
=${target_alias}-
818 # Find the native compiler
819 # Extract the first word of "gcc", so it can be a program name with args.
820 set dummy gcc
; ac_word
=$2
821 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
822 echo "configure:823: checking for $ac_word" >&5
823 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
824 echo $ac_n "(cached) $ac_c" 1>&6
826 if test -n "$CC"; then
827 ac_cv_prog_CC
="$CC" # Let the user override the test.
829 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
830 for ac_dir
in $PATH; do
831 test -z "$ac_dir" && ac_dir
=.
832 if test -f $ac_dir/$ac_word; then
841 if test -n "$CC"; then
842 echo "$ac_t""$CC" 1>&6
844 echo "$ac_t""no" 1>&6
847 if test -z "$CC"; then
848 # Extract the first word of "cc", so it can be a program name with args.
849 set dummy cc
; ac_word
=$2
850 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
851 echo "configure:852: checking for $ac_word" >&5
852 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
853 echo $ac_n "(cached) $ac_c" 1>&6
855 if test -n "$CC"; then
856 ac_cv_prog_CC
="$CC" # Let the user override the test.
858 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
860 for ac_dir
in $PATH; do
861 test -z "$ac_dir" && ac_dir
=.
862 if test -f $ac_dir/$ac_word; then
863 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
872 if test $ac_prog_rejected = yes; then
873 # We found a bogon in the path, so make sure we never use it.
874 set dummy
$ac_cv_prog_CC
876 if test $# -gt 0; then
877 # We chose a different compiler from the bogus one.
878 # However, it has the same basename, so the bogon will be chosen
879 # first if we set CC to just the basename; use the full file name.
881 set dummy
"$ac_dir/$ac_word" "$@"
889 if test -n "$CC"; then
890 echo "$ac_t""$CC" 1>&6
892 echo "$ac_t""no" 1>&6
895 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
898 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
899 echo "configure:900: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
902 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
903 ac_cpp
='$CPP $CPPFLAGS'
904 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
905 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
906 cross_compiling
=$ac_cv_prog_cc_cross
908 cat > conftest.
$ac_ext <<EOF
909 #line 910 "configure"
910 #include "confdefs.h"
913 if { (eval echo configure
:914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
914 ac_cv_prog_cc_works
=yes
915 # If we can't run a trivial program, we are probably using a cross compiler.
916 if (.
/conftest
; exit) 2>/dev
/null
; then
917 ac_cv_prog_cc_cross
=no
919 ac_cv_prog_cc_cross
=yes
922 echo "configure: failed program was:" >&5
923 cat conftest.
$ac_ext >&5
924 ac_cv_prog_cc_works
=no
928 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
929 if test $ac_cv_prog_cc_works = no
; then
930 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
932 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
933 echo "configure:934: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
934 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
935 cross_compiling
=$ac_cv_prog_cc_cross
937 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
938 echo "configure:939: checking whether we are using GNU C" >&5
939 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
940 echo $ac_n "(cached) $ac_c" 1>&6
942 cat > conftest.c
<<EOF
947 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
954 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
956 if test $ac_cv_prog_gcc = yes; then
958 ac_test_CFLAGS
="${CFLAGS+set}"
959 ac_save_CFLAGS
="$CFLAGS"
961 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
962 echo "configure:963: checking whether ${CC-cc} accepts -g" >&5
963 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
964 echo $ac_n "(cached) $ac_c" 1>&6
966 echo 'void f(){}' > conftest.c
967 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
976 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
977 if test "$ac_test_CFLAGS" = set; then
978 CFLAGS
="$ac_save_CFLAGS"
979 elif test $ac_cv_prog_cc_g = yes; then
986 test "${CFLAGS+set}" = set || CFLAGS
="-g"
989 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
990 echo "configure:991: checking whether ${MAKE-make} sets \${MAKE}" >&5
991 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
992 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
993 echo $ac_n "(cached) $ac_c" 1>&6
995 cat > conftestmake
<<\EOF
997 @
echo 'ac_maketemp="${MAKE}"'
999 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1000 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1001 if test -n "$ac_maketemp"; then
1002 eval ac_cv_prog_make_
${ac_make}_set
=yes
1004 eval ac_cv_prog_make_
${ac_make}_set
=no
1008 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1009 echo "$ac_t""yes" 1>&6
1012 echo "$ac_t""no" 1>&6
1013 SET_MAKE
="MAKE=${MAKE-make}"
1017 # Find some useful tools
1018 for ac_prog
in mawk gawk nawk
awk
1020 # Extract the first word of "$ac_prog", so it can be a program name with args.
1021 set dummy
$ac_prog; ac_word
=$2
1022 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1023 echo "configure:1024: checking for $ac_word" >&5
1024 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1025 echo $ac_n "(cached) $ac_c" 1>&6
1027 if test -n "$AWK"; then
1028 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1030 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1031 for ac_dir
in $PATH; do
1032 test -z "$ac_dir" && ac_dir
=.
1033 if test -f $ac_dir/$ac_word; then
1034 ac_cv_prog_AWK
="$ac_prog"
1041 AWK
="$ac_cv_prog_AWK"
1042 if test -n "$AWK"; then
1043 echo "$ac_t""$AWK" 1>&6
1045 echo "$ac_t""no" 1>&6
1048 test -n "$AWK" && break
1051 # Extract the first word of "flex", so it can be a program name with args.
1052 set dummy flex
; ac_word
=$2
1053 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1054 echo "configure:1055: checking for $ac_word" >&5
1055 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1056 echo $ac_n "(cached) $ac_c" 1>&6
1058 if test -n "$LEX"; then
1059 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1061 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1062 for ac_dir
in $PATH; do
1063 test -z "$ac_dir" && ac_dir
=.
1064 if test -f $ac_dir/$ac_word; then
1065 ac_cv_prog_LEX
="flex"
1070 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1073 LEX
="$ac_cv_prog_LEX"
1074 if test -n "$LEX"; then
1075 echo "$ac_t""$LEX" 1>&6
1077 echo "$ac_t""no" 1>&6
1080 if test -z "$LEXLIB"
1086 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1087 echo "configure:1088: checking for yywrap in -l$ac_lib" >&5
1088 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1089 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1090 echo $ac_n "(cached) $ac_c" 1>&6
1092 ac_save_LIBS
="$LIBS"
1093 LIBS
="-l$ac_lib $LIBS"
1094 cat > conftest.
$ac_ext <<EOF
1095 #line 1096 "configure"
1096 #include "confdefs.h"
1097 /* Override any gcc2 internal prototype to avoid an error. */
1098 /* We use char because int might match the return type of a gcc2
1099 builtin and then its argument prototype would still apply. */
1106 if { (eval echo configure
:1107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1108 eval "ac_cv_lib_$ac_lib_var=yes"
1110 echo "configure: failed program was:" >&5
1111 cat conftest.
$ac_ext >&5
1113 eval "ac_cv_lib_$ac_lib_var=no"
1116 LIBS
="$ac_save_LIBS"
1119 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1120 echo "$ac_t""yes" 1>&6
1123 echo "$ac_t""no" 1>&6
1128 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1129 echo "configure:1130: checking whether ln works" >&5
1130 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1131 echo $ac_n "(cached) $ac_c" 1>&6
1133 rm -f conftestdata_t
1134 echo >conftestdata_f
1135 if ln conftestdata_f conftestdata_t
2>/dev
/null
1139 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1141 gcc_cv_prog_LN
="ln -s"
1146 rm -f conftestdata_f conftestdata_t
1149 LN
="$gcc_cv_prog_LN"
1150 if test "$gcc_cv_prog_LN" = "ln"; then
1151 echo "$ac_t""yes" 1>&6
1153 if test "$gcc_cv_prog_LN" = "ln -s"; then
1154 echo "$ac_t""no, using ln -s" 1>&6
1156 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1160 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1161 echo "configure:1162: checking whether ln -s works" >&5
1162 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1163 echo $ac_n "(cached) $ac_c" 1>&6
1165 rm -f conftestdata_t
1166 echo >conftestdata_f
1167 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1169 gcc_cv_prog_LN_S
="ln -s"
1171 if ln conftestdata_f conftestdata_t
2>/dev
/null
1178 rm -f conftestdata_f conftestdata_t
1181 LN_S
="$gcc_cv_prog_LN_S"
1182 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1183 echo "$ac_t""yes" 1>&6
1185 if test "$gcc_cv_prog_LN_S" = "ln"; then
1186 echo "$ac_t""no, using ln" 1>&6
1188 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1192 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1193 echo "configure:1194: checking for volatile" >&5
1194 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1195 echo $ac_n "(cached) $ac_c" 1>&6
1197 cat > conftest.
$ac_ext <<EOF
1198 #line 1199 "configure"
1199 #include "confdefs.h"
1205 if { (eval echo configure
:1206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1207 gcc_cv_c_volatile
=yes
1209 echo "configure: failed program was:" >&5
1210 cat conftest.
$ac_ext >&5
1212 gcc_cv_c_volatile
=no
1217 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1218 if test $gcc_cv_c_volatile = yes ; then
1219 cat >> confdefs.h
<<\EOF
1220 #define HAVE_VOLATILE 1
1225 # Extract the first word of "ranlib", so it can be a program name with args.
1226 set dummy ranlib
; ac_word
=$2
1227 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1228 echo "configure:1229: checking for $ac_word" >&5
1229 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1230 echo $ac_n "(cached) $ac_c" 1>&6
1232 if test -n "$RANLIB"; then
1233 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1235 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1236 for ac_dir
in $PATH; do
1237 test -z "$ac_dir" && ac_dir
=.
1238 if test -f $ac_dir/$ac_word; then
1239 ac_cv_prog_RANLIB
="ranlib"
1244 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1247 RANLIB
="$ac_cv_prog_RANLIB"
1248 if test -n "$RANLIB"; then
1249 echo "$ac_t""$RANLIB" 1>&6
1251 echo "$ac_t""no" 1>&6
1254 for ac_prog
in 'bison -y' byacc
1256 # Extract the first word of "$ac_prog", so it can be a program name with args.
1257 set dummy
$ac_prog; ac_word
=$2
1258 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1259 echo "configure:1260: checking for $ac_word" >&5
1260 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1261 echo $ac_n "(cached) $ac_c" 1>&6
1263 if test -n "$YACC"; then
1264 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1266 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1267 for ac_dir
in $PATH; do
1268 test -z "$ac_dir" && ac_dir
=.
1269 if test -f $ac_dir/$ac_word; then
1270 ac_cv_prog_YACC
="$ac_prog"
1277 YACC
="$ac_cv_prog_YACC"
1278 if test -n "$YACC"; then
1279 echo "$ac_t""$YACC" 1>&6
1281 echo "$ac_t""no" 1>&6
1284 test -n "$YACC" && break
1286 test -n "$YACC" || YACC
="yacc"
1288 # Find a good install program. We prefer a C program (faster),
1289 # so one script is as good as another. But avoid the broken or
1290 # incompatible versions:
1291 # SysV /etc/install, /usr/sbin/install
1292 # SunOS /usr/etc/install
1293 # IRIX /sbin/install
1295 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1296 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1297 # ./install, which can be erroneously created by make from ./install.sh.
1298 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1299 echo "configure:1300: checking for a BSD compatible install" >&5
1300 if test -z "$INSTALL"; then
1301 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1302 echo $ac_n "(cached) $ac_c" 1>&6
1304 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1305 for ac_dir
in $PATH; do
1306 # Account for people who put trailing slashes in PATH elements.
1308 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1310 # OSF1 and SCO ODT 3.0 have their own names for install.
1311 for ac_prog
in ginstall scoinst
install; do
1312 if test -f $ac_dir/$ac_prog; then
1313 if test $ac_prog = install &&
1314 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1315 # AIX install. It has an incompatible calling convention.
1316 # OSF/1 installbsd also uses dspmsg, but is usable.
1319 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1330 if test "${ac_cv_path_install+set}" = set; then
1331 INSTALL
="$ac_cv_path_install"
1333 # As a last resort, use the slow shell script. We don't cache a
1334 # path for INSTALL within a source directory, because that will
1335 # break other packages using the cache if that directory is
1336 # removed, or if the path is relative.
1337 INSTALL
="$ac_install_sh"
1340 echo "$ac_t""$INSTALL" 1>&6
1342 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1343 # It thinks the first close brace ends the variable substitution.
1344 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1346 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1349 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1350 echo "configure:1351: checking how to run the C preprocessor" >&5
1351 # On Suns, sometimes $CPP names a directory.
1352 if test -n "$CPP" && test -d "$CPP"; then
1355 if test -z "$CPP"; then
1356 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1357 echo $ac_n "(cached) $ac_c" 1>&6
1359 # This must be in double quotes, not single quotes, because CPP may get
1360 # substituted into the Makefile and "${CC-cc}" will confuse make.
1362 # On the NeXT, cc -E runs the code through the compiler's parser,
1363 # not just through cpp.
1364 cat > conftest.
$ac_ext <<EOF
1365 #line 1366 "configure"
1366 #include "confdefs.h"
1370 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1371 { (eval echo configure
:1372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1372 ac_err
=`grep -v '^ *+' conftest.out`
1373 if test -z "$ac_err"; then
1377 echo "configure: failed program was:" >&5
1378 cat conftest.
$ac_ext >&5
1380 CPP
="${CC-cc} -E -traditional-cpp"
1381 cat > conftest.
$ac_ext <<EOF
1382 #line 1383 "configure"
1383 #include "confdefs.h"
1387 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1388 { (eval echo configure
:1389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1389 ac_err
=`grep -v '^ *+' conftest.out`
1390 if test -z "$ac_err"; then
1394 echo "configure: failed program was:" >&5
1395 cat conftest.
$ac_ext >&5
1402 ac_cv_prog_CPP
="$CPP"
1404 CPP
="$ac_cv_prog_CPP"
1406 ac_cv_prog_CPP
="$CPP"
1408 echo "$ac_t""$CPP" 1>&6
1410 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1411 echo "configure:1412: checking for ANSI C header files" >&5
1412 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1413 echo $ac_n "(cached) $ac_c" 1>&6
1415 cat > conftest.
$ac_ext <<EOF
1416 #line 1417 "configure"
1417 #include "confdefs.h"
1423 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1424 { (eval echo configure
:1425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1425 ac_err
=`grep -v '^ *+' conftest.out`
1426 if test -z "$ac_err"; then
1428 ac_cv_header_stdc
=yes
1431 echo "configure: failed program was:" >&5
1432 cat conftest.
$ac_ext >&5
1434 ac_cv_header_stdc
=no
1438 if test $ac_cv_header_stdc = yes; then
1439 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1440 cat > conftest.
$ac_ext <<EOF
1441 #line 1442 "configure"
1442 #include "confdefs.h"
1445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1446 egrep "memchr" >/dev
/null
2>&1; then
1450 ac_cv_header_stdc
=no
1456 if test $ac_cv_header_stdc = yes; then
1457 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1458 cat > conftest.
$ac_ext <<EOF
1459 #line 1460 "configure"
1460 #include "confdefs.h"
1463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1464 egrep "free" >/dev
/null
2>&1; then
1468 ac_cv_header_stdc
=no
1474 if test $ac_cv_header_stdc = yes; then
1475 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1476 if test "$cross_compiling" = yes; then
1479 cat > conftest.
$ac_ext <<EOF
1480 #line 1481 "configure"
1481 #include "confdefs.h"
1483 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1484 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1485 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1486 int main () { int i; for (i = 0; i < 256; i++)
1487 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1491 if { (eval echo configure
:1492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1495 echo "configure: failed program was:" >&5
1496 cat conftest.
$ac_ext >&5
1498 ac_cv_header_stdc
=no
1506 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1507 if test $ac_cv_header_stdc = yes; then
1508 cat >> confdefs.h
<<\EOF
1509 #define STDC_HEADERS 1
1514 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1515 echo "configure:1516: checking whether time.h and sys/time.h may both be included" >&5
1516 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1517 echo $ac_n "(cached) $ac_c" 1>&6
1519 cat > conftest.
$ac_ext <<EOF
1520 #line 1521 "configure"
1521 #include "confdefs.h"
1522 #include <sys/types.h>
1523 #include <sys/time.h>
1529 if { (eval echo configure
:1530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1531 ac_cv_header_time
=yes
1533 echo "configure: failed program was:" >&5
1534 cat conftest.
$ac_ext >&5
1536 ac_cv_header_time
=no
1541 echo "$ac_t""$ac_cv_header_time" 1>&6
1542 if test $ac_cv_header_time = yes; then
1543 cat >> confdefs.h
<<\EOF
1544 #define TIME_WITH_SYS_TIME 1
1549 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
1551 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1552 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1553 echo "configure:1554: checking for $ac_hdr" >&5
1554 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1555 echo $ac_n "(cached) $ac_c" 1>&6
1557 cat > conftest.
$ac_ext <<EOF
1558 #line 1559 "configure"
1559 #include "confdefs.h"
1562 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1563 { (eval echo configure
:1564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1564 ac_err
=`grep -v '^ *+' conftest.out`
1565 if test -z "$ac_err"; then
1567 eval "ac_cv_header_$ac_safe=yes"
1570 echo "configure: failed program was:" >&5
1571 cat conftest.
$ac_ext >&5
1573 eval "ac_cv_header_$ac_safe=no"
1577 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1578 echo "$ac_t""yes" 1>&6
1579 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1580 cat >> confdefs.h
<<EOF
1581 #define $ac_tr_hdr 1
1585 echo "$ac_t""no" 1>&6
1590 # Check for thread headers.
1591 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
1592 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
1593 echo "configure:1594: checking for thread.h" >&5
1594 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1595 echo $ac_n "(cached) $ac_c" 1>&6
1597 cat > conftest.
$ac_ext <<EOF
1598 #line 1599 "configure"
1599 #include "confdefs.h"
1602 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1603 { (eval echo configure
:1604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1604 ac_err
=`grep -v '^ *+' conftest.out`
1605 if test -z "$ac_err"; then
1607 eval "ac_cv_header_$ac_safe=yes"
1610 echo "configure: failed program was:" >&5
1611 cat conftest.
$ac_ext >&5
1613 eval "ac_cv_header_$ac_safe=no"
1617 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1618 echo "$ac_t""yes" 1>&6
1621 echo "$ac_t""no" 1>&6
1625 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
1626 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
1627 echo "configure:1628: checking for pthread.h" >&5
1628 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1629 echo $ac_n "(cached) $ac_c" 1>&6
1631 cat > conftest.
$ac_ext <<EOF
1632 #line 1633 "configure"
1633 #include "confdefs.h"
1634 #include <pthread.h>
1636 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1637 { (eval echo configure
:1638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1638 ac_err
=`grep -v '^ *+' conftest.out`
1639 if test -z "$ac_err"; then
1641 eval "ac_cv_header_$ac_safe=yes"
1644 echo "configure: failed program was:" >&5
1645 cat conftest.
$ac_ext >&5
1647 eval "ac_cv_header_$ac_safe=no"
1651 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1652 echo "$ac_t""yes" 1>&6
1655 echo "$ac_t""no" 1>&6
1660 # See if the system preprocessor understands the ANSI C preprocessor
1661 # stringification operator.
1662 echo $ac_n "checking whether cpp understands the stringify operator""... $ac_c" 1>&6
1663 echo "configure:1664: checking whether cpp understands the stringify operator" >&5
1664 if eval "test \"`echo '$''{'gcc_cv_c_have_stringify'+set}'`\" = set"; then
1665 echo $ac_n "(cached) $ac_c" 1>&6
1667 cat > conftest.
$ac_ext <<EOF
1668 #line 1669 "configure"
1669 #include "confdefs.h"
1673 char *test = S(foo);
1676 if { (eval echo configure
:1677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1678 gcc_cv_c_have_stringify
=yes
1680 echo "configure: failed program was:" >&5
1681 cat conftest.
$ac_ext >&5
1683 gcc_cv_c_have_stringify
=no
1688 echo "$ac_t""$gcc_cv_c_have_stringify" 1>&6
1689 if test $gcc_cv_c_have_stringify = yes; then
1690 cat >> confdefs.h
<<\EOF
1691 #define HAVE_CPP_STRINGIFY 1
1696 # Use <inttypes.h> only if it exists,
1697 # doesn't clash with <sys/types.h>, and declares intmax_t.
1698 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
1699 echo "configure:1700: checking for inttypes.h" >&5
1700 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
1701 echo $ac_n "(cached) $ac_c" 1>&6
1703 cat > conftest.
$ac_ext <<EOF
1704 #line 1705 "configure"
1705 #include "confdefs.h"
1706 #include <sys/types.h>
1707 #include <inttypes.h>
1712 if { (eval echo configure
:1713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1714 cat >> confdefs.h
<<EOF
1715 #define HAVE_INTTYPES_H 1
1718 gcc_cv_header_inttypes_h
=yes
1720 echo "configure: failed program was:" >&5
1721 cat conftest.
$ac_ext >&5
1723 gcc_cv_header_inttypes_h
=no
1728 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
1730 for ac_func
in strtoul bsearch strerror putenv popen bcopy bzero bcmp \
1731 index rindex strchr strrchr
kill getrlimit setrlimit atoll atoq \
1734 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1735 echo "configure:1736: checking for $ac_func" >&5
1736 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1737 echo $ac_n "(cached) $ac_c" 1>&6
1739 cat > conftest.
$ac_ext <<EOF
1740 #line 1741 "configure"
1741 #include "confdefs.h"
1742 /* System header to define __stub macros and hopefully few prototypes,
1743 which can conflict with char $ac_func(); below. */
1745 /* Override any gcc2 internal prototype to avoid an error. */
1746 /* We use char because int might match the return type of a gcc2
1747 builtin and then its argument prototype would still apply. */
1752 /* The GNU C library defines this for functions which it implements
1753 to always fail with ENOSYS. Some functions are actually named
1754 something starting with __ and the normal name is an alias. */
1755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1763 if { (eval echo configure
:1764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1765 eval "ac_cv_func_$ac_func=yes"
1767 echo "configure: failed program was:" >&5
1768 cat conftest.
$ac_ext >&5
1770 eval "ac_cv_func_$ac_func=no"
1775 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1776 echo "$ac_t""yes" 1>&6
1777 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1778 cat >> confdefs.h
<<EOF
1779 #define $ac_tr_func 1
1783 echo "$ac_t""no" 1>&6
1788 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1789 echo "configure:1790: checking for vprintf" >&5
1790 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1791 echo $ac_n "(cached) $ac_c" 1>&6
1793 cat > conftest.
$ac_ext <<EOF
1794 #line 1795 "configure"
1795 #include "confdefs.h"
1796 /* System header to define __stub macros and hopefully few prototypes,
1797 which can conflict with char vprintf(); below. */
1799 /* Override any gcc2 internal prototype to avoid an error. */
1800 /* We use char because int might match the return type of a gcc2
1801 builtin and then its argument prototype would still apply. */
1806 /* The GNU C library defines this for functions which it implements
1807 to always fail with ENOSYS. Some functions are actually named
1808 something starting with __ and the normal name is an alias. */
1809 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1817 if { (eval echo configure
:1818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1819 eval "ac_cv_func_vprintf=yes"
1821 echo "configure: failed program was:" >&5
1822 cat conftest.
$ac_ext >&5
1824 eval "ac_cv_func_vprintf=no"
1829 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1830 echo "$ac_t""yes" 1>&6
1831 cat >> confdefs.h
<<\EOF
1832 #define HAVE_VPRINTF 1
1836 echo "$ac_t""no" 1>&6
1839 if test "$ac_cv_func_vprintf" != yes; then
1840 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1841 echo "configure:1842: checking for _doprnt" >&5
1842 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1843 echo $ac_n "(cached) $ac_c" 1>&6
1845 cat > conftest.
$ac_ext <<EOF
1846 #line 1847 "configure"
1847 #include "confdefs.h"
1848 /* System header to define __stub macros and hopefully few prototypes,
1849 which can conflict with char _doprnt(); below. */
1851 /* Override any gcc2 internal prototype to avoid an error. */
1852 /* We use char because int might match the return type of a gcc2
1853 builtin and then its argument prototype would still apply. */
1858 /* The GNU C library defines this for functions which it implements
1859 to always fail with ENOSYS. Some functions are actually named
1860 something starting with __ and the normal name is an alias. */
1861 #if defined (__stub__doprnt) || defined (__stub____doprnt)
1869 if { (eval echo configure
:1870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1871 eval "ac_cv_func__doprnt=yes"
1873 echo "configure: failed program was:" >&5
1874 cat conftest.
$ac_ext >&5
1876 eval "ac_cv_func__doprnt=no"
1881 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1882 echo "$ac_t""yes" 1>&6
1883 cat >> confdefs.h
<<\EOF
1884 #define HAVE_DOPRNT 1
1888 echo "$ac_t""no" 1>&6
1895 if test $ac_cv_func_vprintf != yes ; then
1897 if test $ac_cv_func__doprnt != yes ; then
1904 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
1905 echo "configure:1906: checking whether the printf functions support %p" >&5
1906 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
1907 echo $ac_n "(cached) $ac_c" 1>&6
1909 if test "$cross_compiling" = yes; then
1910 gcc_cv_func_printf_ptr
=no
1912 cat > conftest.
$ac_ext <<EOF
1913 #line 1914 "configure"
1914 #include "confdefs.h"
1920 char *p = buf, *q = NULL;
1921 sprintf(buf, "%p", p);
1922 sscanf(buf, "%p", &q);
1926 if { (eval echo configure
:1927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1928 gcc_cv_func_printf_ptr
=yes
1930 echo "configure: failed program was:" >&5
1931 cat conftest.
$ac_ext >&5
1933 gcc_cv_func_printf_ptr
=no
1938 rm -f core core.
* *.core
1941 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
1942 if test $gcc_cv_func_printf_ptr = yes ; then
1943 cat >> confdefs.h
<<\EOF
1944 #define HOST_PTR_PRINTF "%p"
1950 for ac_func
in malloc realloc calloc free bcopy bzero bcmp \
1951 index rindex getenv atol sbrk abort atof
1953 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
1954 echo "configure:1955: checking whether $ac_func must be declared" >&5
1955 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
1956 echo $ac_n "(cached) $ac_c" 1>&6
1958 cat > conftest.
$ac_ext <<EOF
1959 #line 1960 "configure"
1960 #include "confdefs.h"
1963 #ifdef HAVE_STRING_H
1966 #ifdef HAVE_STRINGS_H
1967 #include <strings.h>
1970 #ifdef HAVE_STDLIB_H
1973 #ifdef HAVE_UNISTD_H
1977 #define rindex strrchr
1980 #define index strchr
1983 char *(*pfn) = (char *(*)) $ac_func
1986 if { (eval echo configure
:1987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1988 eval "gcc_cv_decl_needed_$ac_func=no"
1990 echo "configure: failed program was:" >&5
1991 cat conftest.
$ac_ext >&5
1993 eval "gcc_cv_decl_needed_$ac_func=yes"
1998 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
1999 echo "$ac_t""yes" 1>&6
2000 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2001 cat >> confdefs.h
<<EOF
2002 #define $gcc_tr_decl 1
2006 echo "$ac_t""no" 1>&6
2012 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2013 echo "configure:2014: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2014 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2015 echo $ac_n "(cached) $ac_c" 1>&6
2017 cat > conftest.
$ac_ext <<EOF
2018 #line 2019 "configure"
2019 #include "confdefs.h"
2020 #include <sys/types.h>
2022 /* NetBSD declares sys_siglist in unistd.h. */
2023 #ifdef HAVE_UNISTD_H
2027 char *msg = *(sys_siglist + 1);
2030 if { (eval echo configure
:2031: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2032 ac_cv_decl_sys_siglist
=yes
2034 echo "configure: failed program was:" >&5
2035 cat conftest.
$ac_ext >&5
2037 ac_cv_decl_sys_siglist
=no
2042 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2043 if test $ac_cv_decl_sys_siglist = yes; then
2044 cat >> confdefs.h
<<\EOF
2045 #define SYS_SIGLIST_DECLARED 1
2059 build_install_headers_dir
=install-headers-tar
2064 host_truncate_target
=
2067 # Decode the host machine, then the target machine.
2068 # For the host machine, we save the xm_file variable as host_xm_file;
2069 # then we decode the target machine and forget everything else
2070 # that came from the host machine.
2071 for machine
in $build $host $target; do
2085 # Set this to force installation and use of collect2.
2087 # Set this to override the default target model.
2089 # Set this to control which fixincludes program to use.
2090 if [ x
$fast_fixinc != xyes
] ; then
2091 fixincludes
=fixincludes
2092 else fixincludes
=fixinc.sh
; fi
2093 # Set this to control how the header file directory is installed.
2094 install_headers_dir
=install-headers-tar
2095 # Set this to a non-empty list of args to pass to cpp if the target
2096 # wants its .md file passed through cpp.
2098 # Set this if directory names should be truncated to 14 characters.
2100 # Set this if gdb needs a dir command with `dirname $out_file`
2101 gdb_needs_out_file_path
=
2102 # Set this if the build machine requires executables to have a
2105 # Set this to control which thread package will be used.
2107 # Reinitialize these from the flag values every loop pass, since some
2108 # configure entries modify them.
2110 gnu_ld
="$gnu_ld_flag"
2111 enable_threads
=$enable_threads_flag
2113 # Set default cpu_type, tm_file and xm_file so it can be updated in
2114 # each machine entry.
2115 cpu_type
=`echo $machine | sed 's/-.*$//'`
2149 tm_file
=${cpu_type}/${cpu_type}.h
2150 xm_file
=${cpu_type}/xm-
${cpu_type}.h
2152 # Set the default macros to define for GNU/Linux systems.
2155 xm_defines
="HAVE_ATEXIT POSIX BSTRING"
2160 # Support site-specific machine types.
2162 cpu_type
=`echo $machine | sed -e 's/-.*//'`
2163 rest
=`echo $machine | sed -e "s/$cpu_type-//"`
2164 xm_file
=${cpu_type}/xm-
$rest.h
2165 tm_file
=${cpu_type}/$rest.h
2166 if [ -f $srcdir/config
/${cpu_type}/x-
$rest ] ; \
2167 then xmake_file
=${cpu_type}/x-
$rest; \
2170 if [ -f $srcdir/config
/${cpu_type}/t-
$rest ] ; \
2171 then tmake_file
=${cpu_type}/t-
$rest; \
2177 a29k-
*-bsd* | a29k-
*-sym1*)
2178 tm_file
="${tm_file} a29k/unix.h"
2180 xmake_file
=a29k
/x-unix
2183 a29k-
*-udi | a29k-
*-coff)
2184 tm_file
="${tm_file} dbxcoff.h a29k/udi.h"
2185 tmake_file
=a29k
/t-a29kbare
2188 tm_file
="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
2189 tmake_file
=a29k
/t-vx29k
2190 extra_parts
="crtbegin.o crtend.o"
2191 thread_file
='vxworks'
2193 a29k-
*-*) # Default a29k environment.
2196 alpha
*-*-linux-gnuecoff*)
2197 tm_file
="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
2198 target_cpu_default
="MASK_GAS"
2203 alpha
*-*-linux-gnulibc1*)
2204 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
2205 target_cpu_default
="MASK_GAS"
2206 tmake_file
="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
2207 extra_parts
="crtbegin.o crtend.o"
2208 fixincludes
=fixinc.wrap
2211 if [ x
$enable_threads = xyes
]; then
2215 alpha
*-*-linux-gnu*)
2216 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
2217 target_cpu_default
="MASK_GAS"
2218 tmake_file
="t-linux alpha/t-linux alpha/t-crtbe"
2219 extra_parts
="crtbegin.o crtend.o"
2221 fixincludes
=Makefile.
in
2223 if [ x
$enable_threads = xyes
]; then
2228 tm_file
="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsdl-elf.h"
2229 target_cpu_default
="MASK_GAS"
2230 tmake_file
="alpha/t-crtbe"
2231 extra_parts
="crtbegin.o crtend.o"
2233 fixincludes
=fixinc.wrap
2238 if [ x
$stabs = xyes
]
2240 tm_file
="${tm_file} dbx.h"
2242 if [ x
$gas != xyes
]
2244 extra_passes
="mips-tfile mips-tdump"
2249 tm_file
="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
2252 tm_file
="${tm_file} alpha/osf.h alpha/osf2or3.h"
2255 tm_file
="${tm_file} alpha/osf.h"
2256 # Some versions of OSF4 (specifically X4.0-9 296.7) have
2257 # a broken tar, so we use cpio instead.
2258 install_headers_dir
=install-headers-cpio
2262 *-*-osf4.0
[b-z
] |
*-*-osf4.
[1-9]*)
2263 target_cpu_default
=MASK_SUPPORT_ARCH
2268 tm_file
="${tm_file} alpha/win-nt.h"
2269 xm_file
="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
2270 tmake_file
=t-libc-ok
2271 xmake_file
=winnt
/x-winnt
2272 extra_host_objs
=oldnames.o
2273 extra_gcc_objs
="spawnv.o oldnames.o"
2274 fixincludes
=fixinc.winnt
2275 if [ x
$gnu_ld != xyes
]
2277 extra_programs
=ld.exe
2279 if [ x
$enable_threads = xyes
]; then
2285 xm_file
="${xm_file} alpha/xm-vms.h"
2286 tmake_file
=alpha
/t-vms
2287 fixincludes
=Makefile.
in
2290 extra_parts
="crtinit.o crtfini.o"
2292 arm-
*-coff* | armel-
*-coff*)
2294 tmake_file
=arm
/t-bare
2296 arm-
*-riscix1.
[01]*) # Acorn RISC machine (early versions)
2297 tm_file
=arm
/riscix1-1.h
2300 arm-
*-riscix*) # Acorn RISC machine
2303 tm_file
=arm
/rix-gas.h
2305 tm_file
=arm
/riscix.h
2307 xmake_file
=arm
/x-riscix
2308 tmake_file
=arm
/t-riscix
2311 arm-semi-aout | armel-semi-aout
)
2313 tmake_file
=arm
/t-semi
2314 fixincludes
=Makefile.
in # There is nothing to fix
2316 arm-semi-aof | armel-semi-aof
)
2317 tm_file
=arm
/semiaof.h
2318 tmake_file
=arm
/t-semiaof
2319 fixincludes
=Makefile.
in # There is nothing to fix
2322 tm_file
=arm
/netbsd.h
2323 xm_file
="xm-siglist.h ${xm_file}"
2324 tmake_file
="t-netbsd arm/t-netbsd"
2325 # On NetBSD, the headers are already okay, except for math.h.
2326 fixincludes
=fixinc.wrap
2328 arm-
*-linux-gnuaout*) # ARM GNU/Linux
2331 tm_file
=arm
/linux-gas.h
2332 tmake_file
=arm
/t-linux
2333 fixincludes
=Makefile.
in
2338 tmake_file
=arm
/t-bare
2340 c1-convex-
*) # Convex C1
2341 target_cpu_default
=1
2343 fixincludes
=Makefile.
in
2345 c2-convex-
*) # Convex C2
2346 target_cpu_default
=2
2348 fixincludes
=Makefile.
in
2351 target_cpu_default
=4
2353 fixincludes
=Makefile.
in
2356 target_cpu_default
=8
2358 fixincludes
=Makefile.
in
2361 target_cpu_default
=16
2363 fixincludes
=Makefile.
in
2365 clipper-intergraph-clix
*)
2366 tm_file
="${tm_file} svr3.h clipper/clix.h"
2367 xm_file
=clipper
/xm-clix.h
2368 xmake_file
=clipper
/x-clix
2369 extra_headers
=va-clipper.h
2370 extra_parts
="crtbegin.o crtend.o"
2371 install_headers_dir
=install-headers-cpio
2378 # This hasn't been upgraded to GCC 2.
2379 # fx80-alliant-*) # Alliant FX/80
2385 tm_file
="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
2386 xm_file
=pa
/xm-papro.h
2390 target_cpu_default
=1
2391 tm_file
="${tm_file} pa/pa-osf.h"
2393 fixincludes
=Makefile.
in
2396 tm_file
="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
2397 xm_file
=pa
/xm-papro.h
2401 tm_file
="${tm_file} pa/pa-osf.h"
2403 fixincludes
=Makefile.
in
2406 target_cpu_default
=1
2408 fixincludes
=Makefile.
in
2412 fixincludes
=Makefile.
in
2415 tm_file
="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
2416 xm_file
=pa
/xm-pahpux.h
2417 xmake_file
=pa
/x-pa-hpux
2420 tm_file
="${tm_file} pa/gas.h"
2422 install_headers_dir
=install-headers-cpio
2425 hppa1.0
-*-hpux8.0
[0-2]*)
2426 tm_file
="${tm_file} pa/pa-hpux.h"
2427 xm_file
=pa
/xm-pahpux.h
2428 xmake_file
=pa
/x-pa-hpux
2431 tm_file
="${tm_file} pa/pa-gas.h"
2433 tm_file
="pa/pa-oldas.h ${tm_file}"
2435 install_headers_dir
=install-headers-cpio
2438 hppa1.1
-*-hpux8.0
[0-2]*)
2439 target_cpu_default
=1
2440 tm_file
="${tm_file} pa/pa-hpux.h"
2441 xm_file
=pa
/xm-pahpux.h
2442 xmake_file
=pa
/x-pa-hpux
2445 tm_file
="${tm_file} pa/pa-gas.h"
2447 tm_file
="pa/pa-oldas.h ${tm_file}"
2449 install_headers_dir
=install-headers-cpio
2453 target_cpu_default
=1
2454 tm_file
="${tm_file} pa/pa-hpux.h"
2455 xm_file
=pa
/xm-pahpux.h
2456 xmake_file
=pa
/x-pa-hpux
2459 tm_file
="${tm_file} pa/pa-gas.h"
2461 install_headers_dir
=install-headers-cpio
2465 tm_file
="${tm_file} pa/pa-hpux.h"
2466 xm_file
=pa
/xm-pahpux.h
2467 xmake_file
=pa
/x-pa-hpux
2470 tm_file
="${tm_file} pa/pa-gas.h"
2472 install_headers_dir
=install-headers-cpio
2476 target_cpu_default
=1
2477 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
2478 xm_file
=pa
/xm-pahpux.h
2479 xmake_file
=pa
/x-pa-hpux
2483 tm_file
="${tm_file} pa/pa-gas.h"
2485 if [ x
$enable_threads = x
]; then
2486 enable_threads
=$have_pthread_h
2488 if [ x
$enable_threads = xyes
]; then
2490 tmake_file
="${tmake_file} pa/t-dce-thr"
2492 install_headers_dir
=install-headers-cpio
2496 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
2497 xm_file
=pa
/xm-pahpux.h
2498 xmake_file
=pa
/x-pa-hpux
2501 tm_file
="${tm_file} pa/pa-gas.h"
2503 if [ x
$enable_threads = x
]; then
2504 enable_threads
=$have_pthread_h
2506 if [ x
$enable_threads = xyes
]; then
2508 tmake_file
="${tmake_file} pa/t-dce-thr"
2510 install_headers_dir
=install-headers-cpio
2514 target_cpu_default
=1
2515 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
2516 xm_file
=pa
/xm-pahpux.h
2517 xmake_file
=pa
/x-pa-hpux
2520 tm_file
="${tm_file} pa/pa-gas.h"
2522 install_headers_dir
=install-headers-cpio
2526 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
2527 xm_file
=pa
/xm-pahpux.h
2528 xmake_file
=pa
/x-pa-hpux
2531 tm_file
="${tm_file} pa/pa-gas.h"
2533 install_headers_dir
=install-headers-cpio
2537 target_cpu_default
=1
2538 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
2539 xm_file
=pa
/xm-pahpux.h
2540 xmake_file
=pa
/x-pa-hpux
2543 tm_file
="${tm_file} pa/pa-gas.h"
2545 install_headers_dir
=install-headers-cpio
2549 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
2550 xm_file
=pa
/xm-pahpux.h
2551 xmake_file
=pa
/x-pa-hpux
2554 tm_file
="${tm_file} pa/pa-gas.h"
2556 install_headers_dir
=install-headers-cpio
2560 target_cpu_default
=1
2562 fixincludes
=Makefile.
in
2566 i
[34567]86-ibm-aix*) # IBM PS/2 running AIX
2569 tm_file
=i386
/aix386.h
2570 extra_parts
="crtbegin.o crtend.o"
2571 tmake_file
=i386
/t-crtstuff
2573 tm_file
=i386
/aix386ng.h
2576 xm_file
="xm-alloca.h i386/xm-aix.h ${xm_file}"
2578 xmake_file
=i386
/x-aix
2580 i
[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
2581 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
2582 xm_defines
="USG POSIX SMALL_ARG_MAX"
2583 xmake_file
=i386
/x-ncr3000
2584 if [ x
$stabs = xyes
-a x
$gas = xyes
]
2586 tm_file
=i386
/sysv4gdb.h
2588 tm_file
=i386
/sysv4.h
2590 extra_parts
="crtbegin.o crtend.o"
2591 tmake_file
=i386
/t-crtpic
2595 xm_file
=i386
/xm-next.h
2596 tmake_file
=i386
/t-next
2597 xmake_file
=i386
/x-next
2598 extra_objs
=nextstep.o
2599 if [ x
$enable_threads = xyes
]; then
2603 i
[34567]86-sequent-bsd*) # 80386 from Sequent
2607 tm_file
=i386
/seq-gas.h
2609 tm_file
=i386
/sequent.h
2612 i
[34567]86-sequent-ptx1*)
2613 xm_defines
="USG SVR3"
2614 xmake_file
=i386
/x-sysv3
2615 tm_file
=i386
/seq-sysv3.h
2616 tmake_file
=i386
/t-crtstuff
2617 fixincludes
=fixinc.
ptx
2618 extra_parts
="crtbegin.o crtend.o"
2619 install_headers_dir
=install-headers-cpio
2621 i
[34567]86-sequent-ptx2* | i
[34567]86-sequent-sysv3*)
2622 xm_defines
="USG SVR3"
2623 xmake_file
=i386
/x-sysv3
2624 tm_file
=i386
/seq2-sysv3.h
2625 tmake_file
=i386
/t-crtstuff
2626 extra_parts
="crtbegin.o crtend.o"
2627 fixincludes
=fixinc.
ptx
2628 install_headers_dir
=install-headers-cpio
2630 i
[34567]86-sequent-ptx4* | i
[34567]86-sequent-sysv4*)
2631 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
2632 xm_defines
="USG POSIX SMALL_ARG_MAX"
2634 tm_file
=i386
/ptx4-i.h
2636 extra_parts
="crtbegin.o crtend.o"
2637 fixincludes
=fixinc.
ptx
2638 install_headers_dir
=install-headers-cpio
2640 i386-sun-sunos
*) # Sun i386 roadrunner
2645 i
[34567]86-wrs-vxworks*)
2646 tm_file
=i386
/vxi386.h
2647 tmake_file
=i386
/t-i386bare
2650 tm_file
=i386
/i386-aout.h
2651 tmake_file
=i386
/t-i386bare
2653 i
[34567]86-*-bsdi* | i
[34567]86-*-bsd386*)
2654 tm_file
=i386
/bsd386.h
2655 # tmake_file=t-libc-ok
2658 tm_file
=i386
/386bsd.h
2659 # tmake_file=t-libc-ok
2660 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
2663 i
[34567]86-*-freebsdelf*)
2664 tm_file
="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
2665 # On FreeBSD, the headers are already ok, except for math.h.
2666 fixincludes
=fixinc.wrap
2667 tmake_file
=i386
/t-freebsd
2672 i
[34567]86-*-freebsd*)
2673 tm_file
=i386
/freebsd.h
2674 # On FreeBSD, the headers are already ok, except for math.h.
2675 fixincludes
=fixinc.wrap
2676 tmake_file
=i386
/t-freebsd
2678 i
[34567]86-*-netbsd*)
2679 tm_file
=i386
/netbsd.h
2680 # On NetBSD, the headers are already okay, except for math.h.
2681 fixincludes
=fixinc.wrap
2685 tm_file
=i386
/i386-coff.h
2686 tmake_file
=i386
/t-i386bare
2688 i
[34567]86-*-isc*) # 80386 running ISC system
2689 xm_file
="${xm_file} i386/xm-isc.h"
2690 xm_defines
="USG SVR3"
2692 i
[34567]86-*-isc[34]*)
2693 xmake_file
=i386
/x-isc3
2696 xmake_file
=i386
/x-isc
2699 if [ x
$gas = xyes
-a x
$stabs = xyes
]
2701 tm_file
=i386
/iscdbx.h
2702 tmake_file
=i386
/t-svr3dbx
2703 extra_parts
="svr3.ifile svr3z.ifile"
2705 tm_file
=i386
/isccoff.h
2706 tmake_file
=i386
/t-crtstuff
2707 extra_parts
="crtbegin.o crtend.o"
2709 install_headers_dir
=install-headers-cpio
2711 i
[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
2712 # with a.out format using
2714 xmake_file
=x-linux-aout
2715 tmake_file
="t-linux-aout i386/t-crtstuff"
2716 tm_file
=i386
/linux-oldld.h
2717 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
2720 i
[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
2722 xmake_file
=x-linux-aout
2723 tmake_file
="t-linux-aout i386/t-crtstuff"
2724 tm_file
=i386
/linux-aout.h
2725 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
2728 i
[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
2729 # with ELF format using the
2730 # GNU/Linux C library 5
2732 tm_file
=i386
/linux.h
2733 tmake_file
="t-linux t-linux-gnulibc1 i386/t-crtstuff"
2734 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2735 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
2737 if [ x
$enable_threads = xyes
]; then
2738 thread_file
='single'
2741 i
[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
2742 # with ELF format using glibc 2
2743 # aka GNU/Linux C library 6
2745 tm_file
=i386
/linux.h
2746 tmake_file
="t-linux i386/t-crtstuff"
2747 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2748 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
2750 if [ x
$enable_threads = xyes
]; then
2756 i
[34567]86-go32-msdos | i
[34567]86-*-go32*)
2757 xm_file
=i386
/xm-go32.h
2759 tmake_file
=i386
/t-go32
2761 i
[34567]86-pc-msdosdjgpp*)
2762 xm_file
=i386
/xm-go32.h
2764 tmake_file
=i386
/t-go32
2768 i
[34567]86-moss-msdos* | i
[34567]86-*-moss*)
2770 tmake_file
=t-libc-ok
2771 fixincludes
=Makefile.
in
2775 i
[34567]86-*-lynxos*)
2780 tm_file
=i386
/lynx-ng.h
2782 xm_file
=i386
/xm-lynx.h
2783 tmake_file
=i386
/t-i386bare
2788 # tmake_file=t-libc-ok
2791 i
[34567]86-*-osfrose*) # 386 using OSF/rose
2794 tm_file
=i386
/osfelf.h
2797 tm_file
=i386
/osfrose.h
2800 xm_file
="i386/xm-osf.h ${xm_file}"
2801 xmake_file
=i386
/x-osfrose
2802 tmake_file
=i386
/t-osf
2803 extra_objs
=halfpic.o
2805 i
[34567]86-go32-rtems*)
2807 xm_file
=i386
/xm-go32.h
2808 tm_file
=i386
/go32-rtems.h
2809 tmake_file
="i386/t-go32 t-rtems"
2811 i
[34567]86-*-rtemself*)
2813 tm_file
=i386
/rtemself.h
2814 tmake_file
="i386/t-i386bare t-rtems"
2816 i
[34567]86-*-rtems*)
2818 tm_file
=i386
/rtems.h
2819 tmake_file
="i386/t-i386bare t-rtems"
2821 i
[34567]86-*-sco3.2v5
*) # 80386 running SCO Open Server 5
2822 xm_file
="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
2823 xm_defines
="USG SVR3"
2824 xmake_file
=i386
/x-sco5
2825 fixincludes
=fixinc.sco
2826 install_headers_dir
=install-headers-cpio
2828 tmake_file
=i386
/t-sco5
2829 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2831 i
[34567]86-*-sco3.2v4
*) # 80386 running SCO 3.2v4 system
2832 xm_file
="${xm_file} i386/xm-sco.h"
2833 xm_defines
="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
2834 xmake_file
=i386
/x-sco4
2835 fixincludes
=fixinc.sco
2836 install_headers_dir
=install-headers-cpio
2837 if [ x
$stabs = xyes
]
2839 tm_file
=i386
/sco4dbx.h
2840 tmake_file
=i386
/t-svr3dbx
2841 extra_parts
="svr3.ifile svr3z.rfile"
2844 tmake_file
=i386
/t-crtstuff
2845 extra_parts
="crtbegin.o crtend.o"
2849 i
[34567]86-*-sco*) # 80386 running SCO system
2850 xm_file
=i386
/xm-sco.h
2851 xmake_file
=i386
/x-sco
2852 install_headers_dir
=install-headers-cpio
2853 if [ x
$stabs = xyes
]
2855 tm_file
=i386
/scodbx.h
2856 tmake_file
=i386
/t-svr3dbx
2857 extra_parts
="svr3.ifile svr3z.rfile"
2860 extra_parts
="crtbegin.o crtend.o"
2861 tmake_file
=i386
/t-crtstuff
2865 i
[34567]86-*-solaris2*)
2866 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
2867 xm_defines
="USG POSIX SMALL_ARG_MAX"
2868 if [ x
$stabs = xyes
]
2870 tm_file
=i386
/sol2dbg.h
2874 tmake_file
=i386
/t-sol2
2875 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2879 fixincludes
=fixinc.svr4
;;
2881 fixincludes
=fixinc.wrap
;;
2883 if [ x
$enable_threads = xyes
]; then
2884 thread_file
='solaris'
2887 i
[34567]86-*-sysv5*) # Intel x86 on System V Release 5
2888 xm_file
="xm-alloca.h xm-siglist.h ${xm_file}"
2889 xm_defines
="USG POSIX"
2890 tm_file
=i386
/sysv4.h
2891 if [ x
$stabs = xyes
]
2893 tm_file
="${tm_file} dbx.h"
2895 tmake_file
=i386
/t-crtpic
2897 extra_parts
="crtbegin.o crtend.o"
2898 fixincludes
=Makefile.
in # The headers are just fine, thank you.
2900 i
[34567]86-*-sysv4*) # Intel 80386's running system V.4
2901 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
2902 xm_defines
="USG POSIX SMALL_ARG_MAX"
2903 tm_file
=i386
/sysv4.h
2904 if [ x
$stabs = xyes
]
2906 tm_file
="${tm_file} dbx.h"
2908 tmake_file
=i386
/t-crtpic
2910 extra_parts
="crtbegin.o crtend.o"
2912 i
[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
2914 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
2915 xm_defines
="USE_C_ALLOCA SMALL_ARG_MAX"
2916 fixincludes
=Makefile.
in #Don't do it on OSF/1
2917 if [ x
$stabs = xyes
]
2919 tm_file
=i386
/osf1elfgdb.h
2921 tm_file
=i386
/osf1elf.h
2923 tmake_file
=i386
/t-osf1elf
2924 xmake_file
=i386
/x-osf1elf
2925 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
2927 i
[34567]86-*-sysv*) # Intel 80386's running system V
2928 xm_defines
="USG SVR3"
2929 xmake_file
=i386
/x-sysv3
2932 if [ x
$stabs = xyes
]
2934 tm_file
=i386
/svr3dbx.h
2935 tmake_file
=i386
/t-svr3dbx
2936 extra_parts
="svr3.ifile svr3z.rfile"
2938 tm_file
=i386
/svr3gas.h
2939 extra_parts
="crtbegin.o crtend.o"
2940 tmake_file
=i386
/t-crtstuff
2943 tm_file
=i386
/sysv3.h
2944 extra_parts
="crtbegin.o crtend.o"
2945 tmake_file
=i386
/t-crtstuff
2948 i386-
*-vsta) # Intel 80386's running VSTa kernel
2949 xm_file
="${xm_file} i386/xm-vsta.h"
2951 tmake_file
=i386
/t-vsta
2952 xmake_file
=i386
/x-vsta
2954 i
[34567]86-*-pe | i
[34567]86-*-cygwin32)
2955 xm_file
="${xm_file} i386/xm-cygwin32.h"
2956 tmake_file
=i386
/t-cygwin32
2957 tm_file
=i386
/cygwin32.h
2958 xmake_file
=i386
/x-cygwin32
2960 fixincludes
=Makefile.
in
2961 if [ x
$enable_threads = xyes
]; then
2966 i
[34567]86-*-mingw32*)
2967 tm_file
=i386
/mingw32.h
2968 xm_file
="${xm_file} i386/xm-mingw32.h"
2969 tmake_file
="i386/t-cygwin32 i386/t-mingw32"
2971 xmake_file
=i386
/x-cygwin32
2972 fixincludes
=Makefile.
in
2973 if [ x
$enable_threads = xyes
]; then
2980 *minwg32crt
* |
*mingw32
*)
2981 tm_file
="${tm_file} i386/crtdll.h"
2985 i
[34567]86-*-winnt3*)
2986 tm_file
=i386
/win-nt.h
2987 out_file
=i386
/i386.c
2988 xm_file
="xm-winnt.h ${xm_file}"
2989 xmake_file
=winnt
/x-winnt
2990 tmake_file
=i386
/t-winnt
2991 extra_host_objs
="winnt.o oldnames.o"
2992 extra_gcc_objs
="spawnv.o oldnames.o"
2993 fixincludes
=fixinc.winnt
2994 if [ x
$gnu_ld != xyes
]
2996 extra_programs
=ld.exe
2998 if [ x
$enable_threads = xyes
]; then
3002 i
[34567]86-dg-dgux*)
3003 xm_file
="xm-alloca.h xm-siglist.h ${xm_file}"
3004 xm_defines
="USG POSIX"
3005 out_file
=i386
/dgux.c
3007 tmake_file
=i386
/t-dgux
3008 xmake_file
=i386
/x-dgux
3009 fixincludes
=fixinc.dgux
3010 install_headers_dir
=install-headers-cpio
3012 i860-alliant-
*) # Alliant FX/2800
3013 tm_file
="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
3014 xm_file
="${xm_file}"
3015 xmake_file
=i860
/x-fx2800
3016 tmake_file
=i860
/t-fx2800
3017 extra_parts
="crtbegin.o crtend.o"
3020 tm_file
="${tm_file} i860/bsd.h"
3023 tm_file
="${tm_file} i860/bsd-gas.h"
3028 tm_file
="${tm_file} i860/mach.h"
3029 tmake_file
=t-libc-ok
3031 i860-
*-osf*) # Intel Paragon XP/S, OSF/1AD
3032 tm_file
="${tm_file} svr3.h i860/paragon.h"
3033 xm_defines
="USG SVR3"
3037 tm_file
="${tm_file} svr3.h i860/sysv3.h"
3038 xm_defines
="USG SVR3"
3039 xmake_file
=i860
/x-sysv3
3040 extra_parts
="crtbegin.o crtend.o"
3043 tm_file
="${tm_file} svr4.h i860/sysv4.h"
3044 xm_defines
="USG SVR3"
3045 xmake_file
=i860
/x-sysv4
3047 extra_parts
="crtbegin.o crtend.o"
3049 i960-wrs-vxworks5 | i960-wrs-vxworks5.0
*)
3050 tm_file
="${tm_file} i960/vx960.h"
3051 tmake_file
=i960
/t-vxworks960
3053 thread_file
='vxworks'
3055 i960-wrs-vxworks5
* | i960-wrs-vxworks
)
3056 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
3057 tmake_file
=i960
/t-vxworks960
3059 thread_file
='vxworks'
3062 tm_file
="${tm_file} i960/vx960.h"
3063 tmake_file
=i960
/t-vxworks960
3065 thread_file
='vxworks'
3068 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
3069 tmake_file
=i960
/t-960bare
3073 tmake_file
="i960/t-960bare t-rtems"
3074 tm_file
="${tm_file} dbxcoff.h i960/rtems.h"
3077 i960-
*-*) # Default i960 environment.
3081 extra_parts
="crtinit.o crtfini.o"
3083 m68000-convergent-sysv
*)
3085 xm_file
="m68k/xm-3b1.h ${xm_file}"
3088 extra_headers
=math-68881.h
3090 m68000-hp-bsd
*) # HP 9000/200 running BSD
3091 tm_file
=m68k
/hp2bsd.h
3092 xmake_file
=m68k
/x-hp2bsd
3094 extra_headers
=math-68881.h
3096 m68000-hp-hpux
*) # HP 9000 series 300
3097 xm_file
="xm_alloca.h ${xm_file}"
3098 xm_defines
="USG NO_SYS_SIGLIST"
3101 xmake_file
=m68k
/x-hp320g
3102 tm_file
=m68k
/hp310g.h
3104 xmake_file
=m68k
/x-hp320
3105 tm_file
=m68k
/hp310.h
3107 install_headers_dir
=install-headers-cpio
3109 extra_headers
=math-68881.h
3114 extra_headers
=math-68881.h
3117 tm_file
=m68k
/sun2o4.h
3119 extra_headers
=math-68881.h
3122 xm_file
="m68k/xm-3b1.h ${xm_file}"
3131 extra_headers
=math-68881.h
3133 m68k-apple-aux
*) # Apple Macintosh running A/UX
3134 xm_defines
="USG AUX"
3135 tmake_file
=m68k
/t-aux
3136 install_headers_dir
=install-headers-cpio
3137 extra_headers
=math-68881.h
3138 extra_parts
="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
3140 if [ "$gnu_ld" = yes ]
3142 tm_file
="${tm_file} m68k/auxgld.h"
3144 tm_file
="${tm_file} m68k/auxld.h"
3148 tm_file
="${tm_file} m68k/auxgas.h"
3150 tm_file
="${tm_file} m68k/auxas.h"
3152 tm_file
="${tm_file} m68k/a-ux.h"
3156 tm_file
=m68k
/apollo68.h
3157 xmake_file
=m68k
/x-apollo68
3159 extra_headers
=math-68881.h
3162 m68k-altos-sysv
*) # Altos 3068
3165 tm_file
=m68k
/altos3068.h
3168 echo "The Altos is supported only with the GNU assembler" 1>&2
3171 extra_headers
=math-68881.h
3173 m68k-bull-sysv
*) # Bull DPX/2
3176 if [ x
$stabs = xyes
]
3178 tm_file
=m68k
/dpx2cdbx.h
3180 tm_file
=m68k
/dpx2g.h
3185 xm_file
="xm-alloca.h ${xm_file}"
3187 xmake_file
=m68k
/x-dpx2
3189 extra_headers
=math-68881.h
3191 m68k-atari-sysv4
*) # Atari variant of V.4.
3192 tm_file
=m68k
/atari.h
3193 xm_file
="xm-alloca.h ${xm_file}"
3194 xm_defines
="USG FULL_PROTOTYPES"
3196 extra_parts
="crtbegin.o crtend.o"
3197 extra_headers
=math-68881.h
3200 m68k-motorola-sysv
*)
3201 tm_file
=m68k
/mot3300.h
3202 xm_file
="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
3203 xm_defines
=NO_SYS_SIGLIST
3206 xmake_file
=m68k
/x-mot3300-gas
3207 if [ x
$gnu_ld = xyes
]
3209 tmake_file
=m68k
/t-mot3300-gald
3211 tmake_file
=m68k
/t-mot3300-gas
3215 xmake_file
=m68k
/x-mot3300
3216 if [ x
$gnu_ld = xyes
]
3218 tmake_file
=m68k
/t-mot3300-gld
3220 tmake_file
=m68k
/t-mot3300
3224 gdb_needs_out_file_path
=yes
3225 extra_parts
="crt0.o mcrt0.o"
3226 extra_headers
=math-68881.h
3229 m68k-ncr-sysv
*) # NCR Tower 32 SVR3
3230 tm_file
=m68k
/tower-as.h
3231 xm_defines
="USG SVR3"
3232 xmake_file
=m68k
/x-tower
3233 extra_parts
="crtbegin.o crtend.o"
3234 extra_headers
=math-68881.h
3237 tm_file
=m68k
/plexus.h
3238 xm_file
="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
3241 extra_headers
=math-68881.h
3245 xm_file
="xm-alloca.h ${xm_file}"
3247 extra_headers
=math-68881.h
3250 xm_file
="xm-alloca.h m68k/xm-crds.h ${xm_file}"
3251 xm_defines
="USG unos"
3252 xmake_file
=m68k
/x-crds
3255 extra_headers
=math-68881.h
3257 m68k-cbm-sysv4
*) # Commodore variant of V.4.
3259 xm_file
="xm-alloca.h ${xm_file}"
3260 xm_defines
="USG FULL_PROTOTYPES"
3261 xmake_file
=m68k
/x-amix
3263 extra_parts
="crtbegin.o crtend.o"
3264 extra_headers
=math-68881.h
3268 tm_file
=m68k
/ccur-GAS.h
3269 xmake_file
=m68k
/x-ccur
3270 extra_headers
=math-68881.h
3274 m68k-hp-bsd4.4
*) # HP 9000/3xx running 4.4bsd
3275 tm_file
=m68k
/hp3bsd44.h
3276 xmake_file
=m68k
/x-hp3bsd44
3278 extra_headers
=math-68881.h
3281 m68k-hp-bsd
*) # HP 9000/3xx running Berkeley Unix
3282 tm_file
=m68k
/hp3bsd.h
3284 extra_headers
=math-68881.h
3288 if [ x
$with_fp = xno
]
3290 tm_file
=m68k
/isi-nfp.h
3296 extra_headers
=math-68881.h
3298 m68k-hp-hpux7
*) # HP 9000 series 300 running HPUX version 7.
3299 xm_file
="xm_alloca.h ${xm_file}"
3300 xm_defines
="USG NO_SYS_SIGLIST"
3303 xmake_file
=m68k
/x-hp320g
3304 tm_file
=m68k
/hp320g.h
3306 xmake_file
=m68k
/x-hp320
3307 tm_file
=m68k
/hpux7.h
3309 install_headers_dir
=install-headers-cpio
3311 extra_headers
=math-68881.h
3314 m68k-hp-hpux
*) # HP 9000 series 300
3315 xm_file
="xm_alloca.h ${xm_file}"
3316 xm_defines
="USG NO_SYS_SIGLIST"
3319 xmake_file
=m68k
/x-hp320g
3320 tm_file
=m68k
/hp320g.h
3322 xmake_file
=m68k
/x-hp320
3323 tm_file
=m68k
/hp320.h
3325 install_headers_dir
=install-headers-cpio
3327 extra_headers
=math-68881.h
3331 tm_file
=m68k
/sun3mach.h
3333 extra_headers
=math-68881.h
3339 tm_file
=m68k
/news3gas.h
3341 tm_file
=m68k
/news3.h
3344 extra_headers
=math-68881.h
3347 m68k-sony-bsd
* | m68k-sony-newsos
*)
3350 tm_file
=m68k
/newsgas.h
3355 extra_headers
=math-68881.h
3358 m68k-next-nextstep2
*)
3359 tm_file
=m68k
/next21.h
3360 xm_file
="m68k/xm-next.h ${xm_file}"
3361 tmake_file
=m68k
/t-next
3362 xmake_file
=m68k
/x-next
3363 extra_objs
=nextstep.o
3364 extra_headers
=math-68881.h
3368 m68k-next-nextstep3
*)
3370 xm_file
="m68k/xm-next.h ${xm_file}"
3371 tmake_file
=m68k
/t-next
3372 xmake_file
=m68k
/x-next
3373 extra_objs
=nextstep.o
3374 extra_headers
=math-68881.h
3376 if [ x
$enable_threads = xyes
]; then
3381 if [ x
$with_fp = xno
]
3383 tm_file
=m68k
/sun3n3.h
3385 tm_file
=m68k
/sun3o3.h
3389 extra_headers
=math-68881.h
3391 m68k-sun-sunos
*) # For SunOS 4 (the default).
3392 if [ x
$with_fp = xno
]
3394 tm_file
=m68k
/sun3n.h
3400 extra_headers
=math-68881.h
3403 tm_file
=m68k
/vxm68k.h
3404 tmake_file
=m68k
/t-vxworks68
3405 extra_headers
=math-68881.h
3406 thread_file
='vxworks'
3410 tmake_file
=m68k
/t-m68kbare
3411 tm_file
="m68k/m68k-aout.h libgloss.h"
3412 extra_headers
=math-68881.h
3416 tmake_file
=m68k
/t-m68kbare
3417 tm_file
="m68k/m68k-coff.h dbx.h libgloss.h"
3418 extra_headers
=math-68881.h
3426 tm_file
=m68k
/lynx-ng.h
3428 xm_file
=m68k
/xm-lynx.h
3430 tmake_file
=m68k
/t-lynx
3431 extra_headers
=math-68881.h
3435 tm_file
=m68k
/netbsd.h
3436 # On NetBSD, the headers are already okay, except for math.h.
3437 fixincludes
=fixinc.wrap
3441 m68k-
*-sysv3*) # Motorola m68k's running system V.3
3442 xm_file
="xm-alloca.h ${xm_file}"
3444 xmake_file
=m68k
/x-m68kv
3445 extra_parts
="crtbegin.o crtend.o"
3446 extra_headers
=math-68881.h
3449 m68k-
*-sysv4*) # Motorola m68k's running system V.4
3450 tm_file
=m68k
/m68kv4.h
3451 xm_file
="xm-alloca.h ${xm_file}"
3454 extra_parts
="crtbegin.o crtend.o"
3455 extra_headers
=math-68881.h
3458 m68k-
*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
3461 tm_file
=m68k
/linux-aout.h
3462 tmake_file
="t-linux-aout m68k/t-linux-aout"
3463 fixincludes
=Makefile.
in # The headers are ok already.
3464 extra_headers
=math-68881.h
3468 m68k-
*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
3469 # with ELF format using the
3470 # GNU/Linux C library 5
3472 tm_file
=m68k
/linux.h
3473 tmake_file
="t-linux t-linux-gnulibc1 m68k/t-linux"
3474 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3475 fixincludes
=Makefile.
in # The headers are ok already.
3476 extra_headers
=math-68881.h
3480 m68k-
*-linux-gnu*) # Motorola m68k's running GNU/Linux
3481 # with ELF format using glibc 2
3482 # aka the GNU/Linux C library 6.
3484 tm_file
=m68k
/linux.h
3485 tmake_file
="t-linux m68k/t-linux"
3486 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3487 fixincludes
=Makefile.
in # The headers are ok already.
3488 extra_headers
=math-68881.h
3491 if [ x
$enable_threads = xyes
]; then
3496 tmake_file
=m68k
/t-m68kbare
3497 tm_file
=m68k
/m68k-psos.h
3498 extra_headers
=math-68881.h
3502 tmake_file
="m68k/t-m68kbare t-rtems"
3503 tm_file
=m68k
/rtems.h
3504 extra_headers
=math-68881.h
3511 tm_file
=m88k
/dguxbcs.h
3512 tmake_file
=m88k
/t-dguxbcs
3516 tmake_file
=m88k
/t-dgux
3519 extra_parts
="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
3520 xmake_file
=m88k
/x-dgux
3523 tmake_file
=m88k
/t-dgux-gas
3525 fixincludes
=fixinc.dgux
3527 m88k-dolphin-sysv3
*)
3528 tm_file
=m88k
/dolph.h
3529 extra_parts
="crtbegin.o crtend.o"
3530 xm_file
="m88k/xm-sysv3.h ${xm_file}"
3531 xmake_file
=m88k
/x-dolph
3534 tmake_file
=m88k
/t-m88k-gas
3537 m88k-tektronix-sysv3
)
3538 tm_file
=m88k
/tekXD88.h
3539 extra_parts
="crtbegin.o crtend.o"
3540 xm_file
="m88k/xm-sysv3.h ${xm_file}"
3541 xmake_file
=m88k
/x-tekXD88
3544 tmake_file
=m88k
/t-m88k-gas
3548 tm_file
=m88k
/m88k-aout.h
3551 tm_file
=m88k
/m88k-coff.h
3552 tmake_file
=m88k
/t-bug
3556 extra_parts
="crtbegin.o crtend.o"
3559 tmake_file
=m88k
/t-luna-gas
3561 tmake_file
=m88k
/t-luna
3565 tm_file
=m88k
/sysv3.h
3566 extra_parts
="crtbegin.o crtend.o"
3567 xm_file
="m88k/xm-sysv3.h ${xm_file}"
3568 xmake_file
=m88k
/x-sysv3
3571 tmake_file
=m88k
/t-m88k-gas
3575 tm_file
=m88k
/sysv4.h
3576 extra_parts
="crtbegin.o crtend.o"
3577 xmake_file
=m88k
/x-sysv4
3578 tmake_file
=m88k
/t-sysv4
3580 mips-sgi-irix6
*) # SGI System V.4., IRIX 6
3581 tm_file
=mips
/iris6.h
3582 xm_file
=mips
/xm-iris6.h
3583 fixincludes
=fixinc.irix
3584 xmake_file
=mips
/x-iris6
3585 tmake_file
=mips
/t-iris6
3586 if [ x
$enable_threads = xyes
]; then
3591 tm_file
="mips/elf.h libgloss.h"
3592 tmake_file
=mips
/t-ecoff
3595 extra_parts
="crtbegin.o crtend.o"
3596 # thread_file='vxworks'
3598 mips-sgi-irix5cross64
) # Irix5 host, Irix 6 target, cross64
3599 tm_file
="mips/iris6.h mips/cross64.h"
3600 xm_defines
="USG HAVE_INTTYPES_H"
3601 fixincludes
=Makefile.
in
3602 xmake_file
=mips
/x-iris
3603 tmake_file
=mips
/t-cross64
3604 # See comment in mips/iris[56].h files.
3606 if [ x
$enable_threads = xyes
]; then
3613 if [ x
$stabs = xyes
]
3615 tm_file
=mips
/iris5gdb.h
3617 tm_file
="mips/sni-svr4.h mips/sni-gas.h"
3620 tm_file
=mips
/sni-svr4.h
3623 xmake_file
=mips
/x-sni-svr4
3624 tmake_file
=mips
/t-mips-gas
3625 if [ x
$gnu_ld != xyes
]
3630 mips-sgi-irix5
*) # SGI System V.4., IRIX 5
3633 tm_file
="mips/iris5.h mips/iris5gas.h"
3634 if [ x
$stabs = xyes
]
3636 tm_file
="${tm_file} dbx.h"
3639 tm_file
=mips
/iris5.h
3641 xm_defines
="USG HAVE_INTTYPES_H"
3642 fixincludes
=fixinc.irix
3643 xmake_file
=mips
/x-iris
3644 # mips-tfile doesn't work yet
3645 tmake_file
=mips
/t-mips-gas
3646 # See comment in mips/iris5.h file.
3648 if [ x
$enable_threads = xyes
]; then
3652 mips-sgi-irix4loser
*) # Mostly like a MIPS.
3653 tm_file
="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
3654 if [ x
$stabs = xyes
]; then
3655 tm_file
="${tm_file} dbx.h"
3658 xmake_file
=mips
/x-iris
3661 tmake_file
=mips
/t-mips-gas
3663 extra_passes
="mips-tfile mips-tdump"
3665 if [ x
$gnu_ld != xyes
]
3669 if [ x
$enable_threads = xyes
]; then
3673 mips-sgi-irix4
*) # Mostly like a MIPS.
3674 tm_file
="mips/iris3.h ${tm_file} mips/iris4.h"
3675 if [ x
$stabs = xyes
]; then
3676 tm_file
="${tm_file} dbx.h"
3679 xmake_file
=mips
/x-iris
3682 tmake_file
=mips
/t-mips-gas
3684 extra_passes
="mips-tfile mips-tdump"
3686 if [ x
$gnu_ld != xyes
]
3690 if [ x
$enable_threads = xyes
]; then
3694 mips-sgi-
*) # Mostly like a MIPS.
3695 tm_file
="mips/iris3.h ${tm_file}"
3696 if [ x
$stabs = xyes
]; then
3697 tm_file
="${tm_file} dbx.h"
3700 xmake_file
=mips
/x-iris3
3703 tmake_file
=mips
/t-mips-gas
3705 extra_passes
="mips-tfile mips-tdump"
3707 if [ x
$gnu_ld != xyes
]
3712 mips-dec-osfrose
*) # Decstation running OSF/1 reference port with OSF/rose.
3713 tm_file
="mips/osfrose.h ${tm_file}"
3714 xmake_file
=mips
/x-osfrose
3715 tmake_file
=mips
/t-osfrose
3716 extra_objs
=halfpic.o
3719 mips-dec-osf
*) # Decstation running OSF/1 as shipped by DIGITAL
3720 tm_file
=mips
/dec-osf1.h
3721 if [ x
$stabs = xyes
]; then
3722 tm_file
="${tm_file} dbx.h"
3724 xmake_file
=mips
/x-dec-osf1
3727 tmake_file
=mips
/t-mips-gas
3729 tmake_file
=mips
/t-ultrix
3730 extra_passes
="mips-tfile mips-tdump"
3732 if [ x
$gnu_ld != xyes
]
3737 mips-dec-bsd
*) # Decstation running 4.4 BSD
3738 tm_file
=mips
/dec-bsd.h
3742 tmake_file
=mips
/t-mips-gas
3744 tmake_file
=mips
/t-ultrix
3745 extra_passes
="mips-tfile mips-tdump"
3747 if [ x
$gnu_ld != xyes
]
3752 mips-dec-netbsd
*) # Decstation running NetBSD
3753 tm_file
=mips
/netbsd.h
3754 # On NetBSD, the headers are already okay, except for math.h.
3755 fixincludes
=fixinc.wrap
3758 mips-sony-bsd
* | mips-sony-newsos
*) # Sony NEWS 3600 or risc/news.
3759 tm_file
="mips/news4.h ${tm_file}"
3760 if [ x
$stabs = xyes
]; then
3761 tm_file
="${tm_file} dbx.h"
3765 tmake_file
=mips
/t-mips-gas
3767 extra_passes
="mips-tfile mips-tdump"
3769 if [ x
$gnu_ld != xyes
]
3773 xmake_file
=mips
/x-sony
3775 mips-sony-sysv
*) # Sony NEWS 3800 with NEWSOS5.0.
3776 # That is based on svr4.
3777 # t-svr4 is not right because this system doesn't use ELF.
3778 tm_file
="mips/news5.h ${tm_file}"
3779 if [ x
$stabs = xyes
]; then
3780 tm_file
="${tm_file} dbx.h"
3782 xm_file
="xm-siglist.h ${xm_file}"
3786 tmake_file
=mips
/t-mips-gas
3788 extra_passes
="mips-tfile mips-tdump"
3790 if [ x
$gnu_ld != xyes
]
3795 mips-tandem-sysv4
*) # Tandem S2 running NonStop UX
3796 tm_file
="mips/svr4-5.h mips/svr4-t.h"
3797 if [ x
$stabs = xyes
]; then
3798 tm_file
="${tm_file} dbx.h"
3800 xm_file
="xm-siglist.h ${xm_file}"
3802 xmake_file
=mips
/x-sysv
3805 tmake_file
=mips
/t-mips-gas
3806 extra_parts
="crtbegin.o crtend.o"
3808 tmake_file
=mips
/t-mips
3809 extra_passes
="mips-tfile mips-tdump"
3811 if [ x
$gnu_ld != xyes
]
3816 mips-
*-ultrix* | mips-dec-mach3
) # Decstation.
3817 tm_file
="mips/ultrix.h ${tm_file}"
3818 if [ x
$stabs = xyes
]; then
3819 tm_file
="${tm_file} dbx.h"
3821 xmake_file
=mips
/x-ultrix
3824 tmake_file
=mips
/t-mips-gas
3826 tmake_file
=mips
/t-ultrix
3827 extra_passes
="mips-tfile mips-tdump"
3829 if [ x
$gnu_ld != xyes
]
3834 mips-
*-riscos[56789]bsd
*)
3835 tm_file
=mips
/bsd-5.h
# MIPS BSD 4.3, RISC-OS 5.0
3836 if [ x
$stabs = xyes
]; then
3837 tm_file
="${tm_file} dbx.h"
3841 tmake_file
=mips
/t-bsd-gas
3843 tmake_file
=mips
/t-bsd
3844 extra_passes
="mips-tfile mips-tdump"
3846 if [ x
$gnu_ld != xyes
]
3851 mips-
*-bsd* | mips-
*-riscosbsd* | mips-
*-riscos[1234]bsd
*)
3852 tm_file
="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
3853 if [ x
$stabs = xyes
]; then
3854 tm_file
="${tm_file} dbx.h"
3858 tmake_file
=mips
/t-bsd-gas
3860 tmake_file
=mips
/t-bsd
3861 extra_passes
="mips-tfile mips-tdump"
3863 if [ x
$gnu_ld != xyes
]
3868 mips-
*-riscos[56789]sysv4
*)
3869 tm_file
=mips
/svr4-5.h
# MIPS System V.4., RISC-OS 5.0
3870 if [ x
$stabs = xyes
]; then
3871 tm_file
="${tm_file} dbx.h"
3873 xm_file
="xm-siglist.h ${xm_file}"
3874 xmake_file
=mips
/x-sysv
3877 tmake_file
=mips
/t-svr4-gas
3879 tmake_file
=mips
/t-svr4
3880 extra_passes
="mips-tfile mips-tdump"
3882 if [ x
$gnu_ld != xyes
]
3887 mips-
*-sysv4* | mips-
*-riscos[1234]sysv4
* | mips-
*-riscossysv4*)
3888 tm_file
="mips/svr4-4.h ${tm_file}"
3889 if [ x
$stabs = xyes
]; then
3890 tm_file
="${tm_file} dbx.h"
3893 xmake_file
=mips
/x-sysv
3896 tmake_file
=mips
/t-svr4-gas
3898 tmake_file
=mips
/t-svr4
3899 extra_passes
="mips-tfile mips-tdump"
3901 if [ x
$gnu_ld != xyes
]
3906 mips-
*-riscos[56789]sysv
*)
3907 tm_file
=mips
/svr3-5.h
# MIPS System V.3, RISC-OS 5.0
3908 if [ x
$stabs = xyes
]; then
3909 tm_file
="${tm_file} dbx.h"
3912 xmake_file
=mips
/x-sysv
3915 tmake_file
=mips
/t-svr3-gas
3917 tmake_file
=mips
/t-svr3
3918 extra_passes
="mips-tfile mips-tdump"
3920 if [ x
$gnu_ld != xyes
]
3925 mips-
*-sysv* | mips-
*-riscos*sysv
*)
3926 tm_file
="mips/svr3-4.h ${tm_file}"
3927 if [ x
$stabs = xyes
]; then
3928 tm_file
="${tm_file} dbx.h"
3931 xmake_file
=mips
/x-sysv
3934 tmake_file
=mips
/t-svr3-gas
3936 tmake_file
=mips
/t-svr3
3937 extra_passes
="mips-tfile mips-tdump"
3939 if [ x
$gnu_ld != xyes
]
3944 mips-
*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
3945 tm_file
=mips
/mips-5.h
3946 if [ x
$stabs = xyes
]; then
3947 tm_file
="${tm_file} dbx.h"
3951 tmake_file
=mips
/t-mips-gas
3953 extra_passes
="mips-tfile mips-tdump"
3955 if [ x
$gnu_ld != xyes
]
3963 tm_file
=mips
/ecoffl.h
3964 if [ x
$stabs = xyes
]; then
3965 tm_file
="${tm_file} dbx.h"
3967 tmake_file
=mips
/t-ecoff
3970 tm_file
="gofast.h mips/ecoff.h"
3971 if [ x
$stabs = xyes
]; then
3972 tm_file
="${tm_file} dbx.h"
3974 tmake_file
=mips
/t-ecoff
3977 tm_file
="mips/elfl.h libgloss.h"
3978 tmake_file
=mips
/t-ecoff
3981 tm_file
="mips/elf.h libgloss.h"
3982 tmake_file
=mips
/t-ecoff
3985 tm_file
="mips/elfl64.h libgloss.h"
3986 tmake_file
=mips
/t-ecoff
3988 mips64orionel-
*-elf*)
3989 tm_file
="mips/elforion.h mips/elfl64.h libgloss.h"
3990 tmake_file
=mips
/t-ecoff
3993 tm_file
="mips/elf64.h libgloss.h"
3994 tmake_file
=mips
/t-ecoff
3997 tm_file
="mips/elforion.h mips/elf64.h libgloss.h"
3998 tmake_file
=mips
/t-ecoff
4000 mips64orion-
*-rtems*)
4001 tm_file
="mips/elforion.h mips/elfl64.h mips/rtems64.h"
4002 tmake_file
="mips/t-ecoff t-rtems"
4005 tm_file
="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
4006 tmake_file
=mips
/t-r3900
4009 tm_file
="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
4010 tmake_file
=mips
/t-r3900
4012 mips-
*-*) # Default MIPS RISC-OS 4.0.
4013 if [ x
$stabs = xyes
]; then
4014 tm_file
="${tm_file} dbx.h"
4018 tmake_file
=mips
/t-mips-gas
4020 extra_passes
="mips-tfile mips-tdump"
4022 if [ x
$gnu_ld != xyes
]
4029 tm_file
="mn10200/mn10200.h"
4030 if [ x
$stabs = xyes
]
4032 tm_file
="${tm_file} dbx.h"
4038 tm_file
="mn10300/mn10300.h"
4039 if [ x
$stabs = xyes
]
4041 tm_file
="${tm_file} dbx.h"
4046 tm_file
=ns32k
/encore.h
4050 tm_file
=ns32k
/sequent.h
4054 tm_file
=ns32k
/tek6100.h
4058 tm_file
=ns32k
/tek6200.h
4061 # This has not been updated to GCC 2.
4064 # xmake_file=ns32k/x-genix
4065 # tm_file=ns32k/genix.h
4069 tm_file
=ns32k
/merlin.h
4073 tm_file
=ns32k
/pc532-mach.h
4077 tm_file
=ns32k
/pc532-min.h
4078 xm_file
="ns32k/xm-pc532-min.h ${xm-file}"
4082 ns32k-pc532-netbsd
*)
4083 tm_file
=ns32k
/netbsd.h
4084 # On NetBSD, the headers are already okay, except for math.h.
4085 fixincludes
=fixinc.wrap
4089 tm_file
="${tm_file} pdp11/2bsd.h"
4095 xmake_file
=pyr
/x-pyr
4102 xmake_file
=romp
/x-mach
4107 tm_file
=rs6000
/beos.h
4108 xm_file
=rs6000
/xm-beos.h
4109 tmake_file
=rs6000
/t-beos
4110 xmake_file
=rs6000
/x-beos
4112 powerpc-
*-sysv* | powerpc-
*-elf*)
4113 tm_file
=rs6000
/sysv4.h
4114 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4115 xm_defines
="USG POSIX"
4116 extra_headers
=ppc-asm.h
4119 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
4121 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4123 xmake_file
=rs6000
/x-sysv4
4126 tm_file
=rs6000
/eabiaix.h
4127 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4128 fixincludes
=Makefile.
in
4129 extra_headers
=ppc-asm.h
4132 tm_file
=rs6000
/eabisim.h
4133 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4134 fixincludes
=Makefile.
in
4135 extra_headers
=ppc-asm.h
4138 tm_file
=rs6000
/eabi.h
4141 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4143 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4145 fixincludes
=Makefile.
in
4146 extra_headers
=ppc-asm.h
4149 tm_file
=rs6000
/rtems.h
4152 tmake_file
="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
4154 tmake_file
="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
4156 fixincludes
=Makefile.
in
4157 extra_headers
=ppc-asm.h
4159 powerpc-
*-linux-gnulibc1)
4160 tm_file
=rs6000
/linux.h
4161 xm_file
=rs6000
/xm-sysv4.h
4162 out_file
=rs6000
/rs6000.c
4165 tmake_file
="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
4167 tmake_file
="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
4170 fixincludes
=Makefile.
in
4171 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4172 extra_headers
=ppc-asm.h
4173 if [ x
$enable_threads = xyes
]; then
4177 powerpc-
*-linux-gnu*)
4178 tm_file
=rs6000
/linux.h
4179 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4180 xm_defines
="USG ${xm_defines}"
4181 out_file
=rs6000
/rs6000.c
4184 tmake_file
="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
4186 tmake_file
="rs6000/t-ppc t-linux rs6000/t-ppccomm"
4189 fixincludes
=Makefile.
in
4190 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4191 extra_headers
=ppc-asm.h
4192 if [ x
$enable_threads = xyes
]; then
4196 powerpc-wrs-vxworks
*)
4198 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4199 xm_defines
="USG POSIX"
4200 tm_file
=rs6000
/vxppc.h
4201 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4202 extra_headers
=ppc-asm.h
4203 thread_file
='vxworks'
4205 powerpcle-
*-sysv* | powerpcle-
*-elf*)
4206 tm_file
=rs6000
/sysv4le.h
4207 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4208 xm_defines
="USG POSIX"
4211 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
4213 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4215 xmake_file
=rs6000
/x-sysv4
4216 extra_headers
=ppc-asm.h
4218 powerpcle-
*-eabisim*)
4219 tm_file
=rs6000
/eabilesim.h
4220 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4221 fixincludes
=Makefile.
in
4222 extra_headers
=ppc-asm.h
4225 tm_file
=rs6000
/eabile.h
4228 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4230 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4232 fixincludes
=Makefile.
in
4233 extra_headers
=ppc-asm.h
4235 powerpcle-
*-winnt* )
4236 tm_file
=rs6000
/win-nt.h
4237 tmake_file
=rs6000
/t-winnt
4239 fixincludes
=Makefile.
in
4240 if [ x
$enable_threads = xyes
]; then
4243 extra_headers
=ppc-asm.h
4245 powerpcle-
*-pe | powerpcle-
*-cygwin32)
4246 tm_file
=rs6000
/cygwin32.h
4247 xm_file
="rs6000/xm-cygwin32.h ${xm_file}"
4248 tmake_file
=rs6000
/t-winnt
4249 xmake_file
=rs6000
/x-cygwin32
4251 fixincludes
=Makefile.
in
4252 if [ x
$enable_threads = xyes
]; then
4256 extra_headers
=ppc-asm.h
4258 powerpcle-
*-solaris2*)
4259 tm_file
=rs6000
/sol2.h
4260 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4261 xm_defines
="USG POSIX"
4264 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
4266 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4268 xmake_file
=rs6000
/x-sysv4
4271 fixincludes
=fixinc.svr4
;;
4273 fixincludes
=fixinc.wrap
;;
4275 extra_headers
=ppc-asm.h
4277 rs6000-ibm-aix3.
[01]*)
4278 tm_file
=rs6000
/aix31.h
4279 xmake_file
=rs6000
/x-aix31
4282 rs6000-ibm-aix3.2.
[456789]* | powerpc-ibm-aix3.2.
[456789]*)
4283 tm_file
=rs6000
/aix3newas.h
4284 if [ x
$host != x
$target ]
4286 tmake_file
=rs6000
/t-xnewas
4288 tmake_file
=rs6000
/t-newas
4292 rs6000-ibm-aix4.
[12].
* | powerpc-ibm-aix4.
[12].
*)
4293 tm_file
=rs6000
/aix41.h
4294 if [ x
$host != x
$target ]
4296 tmake_file
=rs6000
/t-xnewas
4298 tmake_file
=rs6000
/t-newas
4300 xmake_file
=rs6000
/x-aix41
4303 rs6000-ibm-aix4.
[3456789].
* | powerpc-ibm-aix4.
[3456789].
*)
4304 tm_file
=rs6000
/aix43.h
4305 if [ x
$host != x
$target ]
4307 tmake_file
=rs6000
/t-xaix43
4309 tmake_file
=rs6000
/t-aix43
4311 xmake_file
=rs6000
/x-aix43
4314 rs6000-ibm-aix
[56789].
* | powerpc-ibm-aix
[56789].
*)
4315 tm_file
=rs6000
/aix43.h
4316 if [ x
$host != x
$target ]
4318 tmake_file
=rs6000
/t-xaix43
4320 tmake_file
=rs6000
/t-aix43
4322 xmake_file
=rs6000
/x-aix43
4332 tm_file
=rs6000
/mach.h
4333 xm_file
="${xm_file} rs6000/xm-mach.h"
4334 xmake_file
=rs6000
/x-mach
4338 tm_file
=rs6000
/lynx.h
4339 xm_file
=rs6000
/xm-lynx.h
4340 tmake_file
=rs6000
/t-rs6000
4341 xmake_file
=rs6000
/x-lynx
4349 tmake_file
="sh/t-sh t-rtems"
4358 xm_file
="xm-alloca.h ${xm_file}"
4361 sparc-wrs-vxworks
* | sparclite-wrs-vxworks
*)
4362 tm_file
=sparc
/vxsparc.h
4363 tmake_file
=sparc
/t-vxsparc
4365 thread_file
='vxworks'
4368 tmake_file
=sparc
/t-sparcbare
4369 tm_file
="sparc/aout.h libgloss.h"
4372 tm_file
=sparc
/netbsd.h
4373 # On NetBSD, the headers are already okay, except for math.h.
4374 fixincludes
=fixinc.wrap
4382 tmake_file
=sparc
/t-elf
4383 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4387 sparc-
*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
4388 xm_file
="${xm_file} sparc/xm-linux.h"
4389 tm_file
=sparc
/linux-aout.h
4391 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
4394 sparc-
*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
4395 xm_file
="${xm_file} sparc/xm-linux.h"
4397 tm_file
=sparc
/linux.h
4398 tmake_file
="t-linux t-linux-gnulibc1"
4399 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4400 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
4403 sparc-
*-linux-gnu*) # Sparc's running GNU/Linux, libc6
4404 xm_file
="${xm_file} sparc/xm-linux.h"
4406 tm_file
=sparc
/linux.h
4407 tmake_file
="t-linux"
4408 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4409 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
4411 if [ x
$enable_threads = xyes
]; then
4418 tm_file
=sparc
/lynx.h
4420 tm_file
=sparc
/lynx-ng.h
4422 xm_file
=sparc
/xm-lynx.h
4423 tmake_file
=sparc
/t-sunos41
4427 tmake_file
="sparc/t-sparcbare t-rtems"
4428 tm_file
=sparc
/rtems.h
4431 if [ x
$gnu_ld = xyes
]
4433 tm_file
=sparc
/sol2.h
4435 tm_file
=sparc
/sol2-sld.h
4437 xm_file
="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
4438 xm_defines
="USG POSIX"
4439 tmake_file
=sparc
/t-sol2
4440 xmake_file
=sparc
/x-sysv4
4441 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4444 fixincludes
=fixinc.svr4
;;
4446 fixincludes
=fixinc.wrap
;;
4449 if [ x
${enable_threads} = x
]; then
4450 enable_threads
=$have_pthread_h
4451 if [ x
${enable_threads} = x
]; then
4452 enable_threads
=$have_thread_h
4455 if [ x
${enable_threads} = xyes
]; then
4456 if [ x
${have_pthread_h} = xyes
]; then
4459 thread_file
='solaris'
4464 tm_file
=sparc
/sunos4.h
4465 tmake_file
=sparc
/t-sunos40
4469 tm_file
=sparc
/sunos4.h
4470 tmake_file
=sparc
/t-sunos41
4472 if [ x
$gas = xyes
]; then
4473 tm_file
="${tm_file} sparc/sun4gas.h"
4477 tm_file
=sparc
/sun4o3.h
4481 tm_file
=sparc
/sysv4.h
4482 xm_file
="xm-siglist.h sparc/xm-sysv4.h"
4483 xm_defines
="USG POSIX"
4485 xmake_file
=sparc
/x-sysv4
4486 extra_parts
="crtbegin.o crtend.o"
4489 xm_file
="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
4490 xm_defines
="USG POSIX"
4491 tm_file
=sparc
/vxsim.h
4492 tmake_file
=sparc
/t-vxsparc
4493 xmake_file
=sparc
/x-sysv4
4496 tm_file
="sparc/splet.h libgloss.h"
4497 tmake_file
=sparc
/t-splet
4500 tm_file
="sparc/litecoff.h libgloss.h"
4501 tmake_file
=sparc
/t-sparclite
4504 tm_file
="sparc/lite.h aoutos.h libgloss.h"
4505 tmake_file
=sparc
/t-sparclite
4508 tmake_file
=sparc
/t-sp64
4509 tm_file
=sparc
/sp64-aout.h
4512 tmake_file
=sparc
/t-sp64
4513 tm_file
=sparc
/sp64-elf.h
4514 extra_parts
="crtbegin.o crtend.o"
4516 sparc64-
*-linux*) # 64-bit Sparc's running GNU/Linux
4517 tmake_file
=sparc
/t-sp64
4518 xm_file
="sparc/xm-sp64.h sparc/xm-linux.h"
4519 tm_file
=sparc
/linux64.h
4521 fixincludes
=Makefile.
in # The headers are ok already.
4524 # This hasn't been upgraded to GCC 2.
4525 # tahoe-harris-*) # Harris tahoe, using COFF.
4526 # tm_file=tahoe/harris.h
4528 # tahoe-*-bsd*) # tahoe running BSD
4530 thumb-
*-coff* | thumbel-
*-coff*)
4532 out_file
=arm
/thumb.c
4533 xm_file
=arm
/xm-thumb.h
4534 md_file
=arm
/thumb.md
4535 tmake_file
=arm
/t-thumb
4537 # This hasn't been upgraded to GCC 2.
4544 tm_file
="v850/v850.h"
4545 xm_file
="v850/xm-v850.h"
4546 tmake_file
=v850
/t-v850
4547 if [ x
$stabs = xyes
]
4549 tm_file
="${tm_file} dbx.h"
4553 vax-
*-bsd*) # vaxen running BSD
4557 vax-
*-sysv*) # vaxen running system V
4558 tm_file
="${tm_file} vax/vaxv.h"
4563 tm_file
="${tm_file} netbsd.h vax/netbsd.h"
4564 # On NetBSD, the headers are already okay, except for math.h.
4565 fixincludes
=fixinc.wrap
4569 vax-
*-ultrix*) # vaxen running ultrix
4570 tm_file
="${tm_file} vax/ultrix.h"
4574 vax-
*-vms*) # vaxen running VMS
4575 xm_file
=vax
/xm-vms.h
4579 vax-
*-*) # vax default entry
4583 xm_file
="${xm_file} xm-svr3"
4587 echo "Configuration $machine not supported" 1>&2
4594 ;; # Existing GNU/Linux systems do not use the GNU setup.
4596 # On the GNU system, the setup is just about the same on
4597 # each different CPU. The specific machines that GNU
4598 # supports are matched above and just set $cpu_type.
4599 xm_file
="xm-gnu.h ${xm_file}"
4600 tm_file
=${cpu_type}/gnu.h
4601 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
4602 # GNU always uses ELF.
4604 # GNU tools are the only tools.
4607 # On GNU, the headers are already okay.
4608 fixincludes
=Makefile.
in
4609 xmake_file
=x-linux
# These details are the same as Linux.
4610 tmake_file
=t-gnu
# These are not.
4613 fixincludes
=fixinc.svr4
4614 xmake_try_sysv
=x-sysv
4615 install_headers_dir
=install-headers-cpio
4618 install_headers_dir
=install-headers-cpio
4622 # Distinguish i[34567]86
4623 # Also, do not run mips-tfile on MIPS if using gas.
4624 # Process --with-cpu= for PowerPC/rs6000
4625 target_cpu_default2
=
4628 target_cpu_default2
=1
4631 target_cpu_default2
=2
4633 i686-
*-* | i786-
*-*)
4634 target_cpu_default2
=3
4639 target_cpu_default2
="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
4642 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
4645 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX"
4648 target_cpu_default2
="MASK_CPU_EV5"
4654 if [ "$target_cpu_default2" = "" ]
4656 target_cpu_default2
="MASK_GAS"
4658 target_cpu_default2
="${target_cpu_default2}|MASK_GAS"
4663 case "x$with_cpu" in
4666 target_cpu_default2
="TARGET_CPU_generic"
4669 # Distinguish cores, and major variants
4670 # arm7m doesn't exist, but D & I don't affect code
4671 xarm23678 | xarm250 | xarm67010 \
4672 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
4673 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
4674 | xstrongarm | xstrongarm110
)
4675 target_cpu_default2
="TARGET_CPU_$with_cpu"
4679 echo "--with-cpu must be passed a value" 1>&2
4684 if [ x
$pass2done = xyes
]
4686 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4693 mips
*-*-ecoff* | mips
*-*-elf*)
4696 if [ x
$gnu_ld = xyes
]
4698 target_cpu_default2
=20
4700 target_cpu_default2
=16
4707 target_cpu_default2
=16
4710 powerpc
*-*-* | rs6000-
*-*)
4711 case "x$with_cpu" in
4715 xcommon | xpower | xpower2 | xpowerpc | xrios \
4716 | xrios1 | xrios2 | xrsc | xrsc1 \
4717 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
4718 | x403 | x505 | x801 | x821 | x823 | x860
)
4719 target_cpu_default2
="\"$with_cpu\""
4723 echo "--with-cpu must be passed a value" 1>&2
4728 if [ x
$pass2done = xyes
]
4730 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4737 case ".$with_cpu" in
4739 target_cpu_default2
=TARGET_CPU_
"`echo $machine | sed 's/-.*$//'`"
4741 .supersparc | .ultrasparc | .v7 | .v8 | .v9
)
4742 target_cpu_default2
="TARGET_CPU_$with_cpu"
4745 if [ x
$pass2done = xyes
]
4747 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4755 if [ "$target_cpu_default2" != "" ]
4757 if [ "$target_cpu_default" != "" ]
4759 target_cpu_default
="(${target_cpu_default}|${target_cpu_default2})"
4761 target_cpu_default
=$target_cpu_default2
4765 # No need for collect2 if we have the GNU linker.
4772 # Save data on machine being used to compile GCC in build_xm_file.
4773 # Save data on host machine in vars host_xm_file and host_xmake_file.
4774 if [ x
$pass1done = x
]
4776 if [ x
"$xm_file" = x
]
4777 then build_xm_file
=$cpu_type/xm-
$cpu_type.h
4778 else build_xm_file
=$xm_file
4780 build_xm_defines
=$xm_defines
4781 build_install_headers_dir
=$install_headers_dir
4782 build_exeext
=$exeext
4785 if [ x
$pass2done = x
]
4787 if [ x
"$xm_file" = x
]
4788 then host_xm_file
=$cpu_type/xm-
$cpu_type.h
4789 else host_xm_file
=$xm_file
4791 host_xm_defines
=$xm_defines
4792 if [ x
"$xmake_file" = x
]
4793 then xmake_file
=$cpu_type/x-
$cpu_type
4795 host_xmake_file
="$xmake_file"
4796 host_truncate_target
=$truncate_target
4797 host_extra_gcc_objs
=$extra_gcc_objs
4798 host_extra_objs
=$extra_host_objs
4805 extra_objs
="${host_extra_objs} ${extra_objs}"
4807 # Default the target-machine variables that were not explicitly set.
4808 if [ x
"$tm_file" = x
]
4809 then tm_file
=$cpu_type/$cpu_type.h
; fi
4811 if [ x
$extra_headers = x
]
4812 then extra_headers
=; fi
4814 if [ x
"$xm_file" = x
]
4815 then xm_file
=$cpu_type/xm-
$cpu_type.h
; fi
4817 if [ x
$md_file = x
]
4818 then md_file
=$cpu_type/$cpu_type.md
; fi
4820 if [ x
$out_file = x
]
4821 then out_file
=$cpu_type/$cpu_type.c
; fi
4823 if [ x
"$tmake_file" = x
]
4824 then tmake_file
=$cpu_type/t-
$cpu_type
4827 if [ x
$float_format = x
]
4828 then float_format
=i64
4831 if [ x
$enable_haifa = x
]
4834 alpha
*-* | hppa1.?
-* | powerpc
*-* | rs6000-
* |
*sparc-
* | m32r
*-*)
4839 # Say what files are being used for the output code and MD file.
4840 echo "Using \`$srcdir/config/$out_file' to output insns."
4841 echo "Using \`$srcdir/config/$md_file' as machine description file."
4844 for f
in $tm_file; do
4847 if [ $count = ax
]; then
4848 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
4850 echo "Using the following target machine macro files:"
4851 for f
in $tm_file; do
4852 echo " $srcdir/config/$f"
4857 for f
in $host_xm_file; do
4860 if [ $count = ax
]; then
4861 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
4863 echo "Using the following host machine macro files:"
4864 for f
in $host_xm_file; do
4865 echo " $srcdir/config/$f"
4869 if [ "$host_xm_file" != "$build_xm_file" ]; then
4871 for f
in $build_xm_file; do
4874 if [ $count = ax
]; then
4875 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
4877 echo "Using the following build machine macro files:"
4878 for f
in $build_xm_file; do
4879 echo " $srcdir/config/$f"
4884 if [ x
$thread_file = x
]; then
4885 if [ x
$target_thread_file != x
]; then
4886 thread_file
=$target_thread_file
4888 thread_file
='single'
4892 # Set up the header files.
4893 # $links is the list of header files to create.
4894 # $vars is the list of shell variables with file names to include.
4895 # auto-host.h is the file containing items generated by autoconf and is
4896 # the first file included by config.h.
4898 host_xm_file
="auto-host.h ${host_xm_file}"
4900 # If host=build, it is correct to have hconfig include auto-host.h
4901 # as well. If host!=build, we are in error and need to do more
4902 # work to find out the build config parameters.
4903 if [ x
$host = x
$build ]
4905 build_xm_file
="auto-host.h ${build_xm_file}"
4907 # We create a subdir, then run autoconf in the subdir.
4908 # To prevent recursion we set host and build for the new
4909 # invocation of configure to the build for this invocation
4916 /*) realsrcdir
=${srcdir};;
4917 *) realsrcdir
=..
/${srcdir};;
4919 CC
=${CC_FOR_BUILD} ${realsrcdir}/configure \
4920 --target=$target --host=$build --build=$build
4922 # We just finished tests for the build machine, so rename
4923 # the file auto-build.h in the gcc directory.
4924 mv auto-host.h ..
/auto-build.h
4927 build_xm_file
="auto-build.h ${build_xm_file}"
4930 vars
="host_xm_file tm_file xm_file build_xm_file"
4931 links
="config.h tm.h tconfig.h hconfig.h"
4932 defines
="host_xm_defines null_defines xm_defines build_xm_defines"
4935 if [ -f config.status
]; then mv -f config.status config.bak
; fi
4938 while [ -n "$vars" ]
4940 set $vars; var
=$1; shift; vars
=$
*
4941 set $links; link
=$1; shift; links
=$
*
4942 set $defines; define
=$1; shift; defines
=$
*
4946 # Define TARGET_CPU_DEFAULT if the system wants one.
4947 # This substitutes for lots of *.h files.
4948 if [ "$target_cpu_default" != "" -a $link = tm.h
]
4950 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
4953 for file in `eval echo '$'$var`; do
4954 echo "#include \"$file\"" >>$link
4957 for def
in `eval echo '$'$define`; do
4958 echo "#ifndef $def" >>$link
4959 echo "#define $def" >>$link
4960 echo "#endif" >>$link
4964 # Truncate the target if necessary
4965 if [ x
$host_truncate_target != x
]; then
4966 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
4969 # Get the version number from the toplevel
4970 version
=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${srcdir}/version.c`
4972 # Get an absolute path to the GCC top-level source directory
4978 # Conditionalize the makefile for this host machine.
4979 # Make-host contains the concatenation of all host makefile fragments
4980 # [there can be more than one]. This file is built by configure.frag.
4981 host_overrides
=Make-host
4982 dep_host_xmake_file
=
4983 for f
in ..
${host_xmake_file}
4985 if [ -f ${srcdir}/config
/$f ]
4987 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
4991 # Conditionalize the makefile for this target machine.
4992 # Make-target contains the concatenation of all host makefile fragments
4993 # [there can be more than one]. This file is built by configure.frag.
4994 target_overrides
=Make-target
4996 for f
in ..
${tmake_file}
4998 if [ -f ${srcdir}/config
/$f ]
5000 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
5004 # If the host doesn't support symlinks, modify CC in
5005 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
5006 # Otherwise, we can use "CC=$(CC)".
5008 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
5010 cc_set_by_configure
="\$(CC)"
5011 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
5014 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
5016 symbolic_link
="cp -p"
5020 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
5021 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
5025 out_object_file
=`basename $out_file .c`.o
5028 for f
in $tm_file; do
5029 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
5033 for f
in $host_xm_file; do
5034 if test $f != "auto-host.h"; then
5035 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
5037 host_xm_file_list
="${host_xm_file_list} auto-host.h"
5042 for f
in $build_xm_file; do
5043 if test $f != "auto-build.h"; then
5044 if test $f != "auto-host.h"; then
5045 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
5047 build_xm_file_list
="${build_xm_file_list} auto-host.h"
5050 build_xm_file_list
="${build_xm_file_list} auto-build.h"
5054 # Define macro CROSS_COMPILE in compilation
5055 # if this is a cross-compiler.
5056 # Also use all.cross instead of all.internal
5057 # and add cross-make to Makefile.
5058 cross_overrides
="/dev/null"
5059 if [ x
$host != x
$target ]
5061 cross_defines
="CROSS=-DCROSS_COMPILE"
5062 cross_overrides
="${topdir}/cross-make"
5065 # When building gcc with a cross-compiler, we need to fix a few things.
5066 # This must come after cross-make as we want all.build to override
5068 build_overrides
="/dev/null"
5069 if [ x
$build != x
$host ]
5071 build_overrides
="${topdir}/build-make"
5074 # Expand extra_headers to include complete path.
5075 # This substitutes for lots of t-* files.
5077 if [ "x$extra_headers" = x
]
5080 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
5081 for file in $extra_headers;
5083 extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/${file}"
5087 # Add a definition of USE_COLLECT2 if system wants one.
5088 # Also tell toplev.c what to do.
5089 # This substitutes for lots of t-* files.
5090 if [ x
$use_collect2 = x
]
5095 will_use_collect2
="collect2"
5096 maybe_use_collect2
="-DUSE_COLLECT2"
5100 # Set MD_DEPS if the real md file is in md.pre-cpp.
5101 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
5102 # for line oriented comments, so we must always use a GNU cpp. If
5103 # building gcc with a cross compiler, use the cross compiler just
5104 # built. Otherwise, we can use the cpp just built.
5106 if [ "x$md_cppflags" = x
]
5108 md_file_sub
=$srcdir/config
/$md_file
5113 # If we have gas in the build tree, make a link to it.
5114 if [ -f ..
/gas
/Makefile
]; then
5115 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
5118 # If we have ld in the build tree, make a link to it.
5119 if [ -f ..
/ld
/Makefile
]; then
5120 # if [[ x$use_collect2 = x ]]; then
5121 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
5123 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
5127 # Figure out what assembler alignment features are present.
5128 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
5129 echo "configure:5130: checking assembler alignment features" >&5
5131 gcc_cv_as_alignment_features
=
5132 if [ -x as
$host_exeext ]; then
5133 # Build using assembler in the current directory.
5134 gcc_cv_as
=.
/as
$host_exeext
5135 elif [ -f $srcdir/..
/gas
/configure.
in ]; then
5136 # Single tree build which includes gas.
5137 for f
in $srcdir/..
/gas
/configure.
in $srcdir/..
/gas
/Makefile.
in
5139 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
5140 if [ x
$gcc_cv_gas_version != x
]; then
5144 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
5145 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
5146 # Gas version 2.8 and later support specifying the maximum
5147 # bytes to skip when using .p2align.
5148 if [ "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 8 -o "$gcc_cv_gas_major_version" -gt 2 ]; then
5149 gcc_cv_as_alignment_features
=".p2align including maximum skip"
5150 cat >> confdefs.h
<<\EOF
5151 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
5155 elif [ x
$host = x
$target ]; then
5157 gcc_cv_as
=as
$host_exeext
5159 if [ x
$gcc_cv_as != x
]; then
5160 # Check if specifying the maximum bytes to skip when
5161 # using .p2align is supported.
5162 echo ".p2align 4,,7" > conftest.s
5163 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
5164 gcc_cv_as_alignment_features
=".p2align including maximum skip"
5165 cat >> confdefs.h
<<\EOF
5166 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
5170 rm -f conftest.s conftest.o
5172 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
5174 # Figure out what language subdirectories are present.
5176 for lang
in ${srcdir}/*/config-lang.
in ..
5180 # The odd quoting in the next line works around
5181 # an apparent bug in bash 1.12 on linux.
5182 ${srcdir}/[*]/config-lang.
in) ;;
5183 *) subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
5187 # Make gthr-default.h if we have a thread file.
5189 if [ $thread_file != single
]; then
5190 rm -f gthr-default.h
5191 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
5192 gthread_flags
=-DHAVE_GTHR_DEFAULT
5196 # Make empty files to contain the specs and options for each language.
5197 # Then add #include lines to for a compiler that has specs and/or options.
5201 rm -f specs.h options.h
5202 touch specs.h options.h
5203 for subdir
in .
$subdirs
5205 if [ -f $srcdir/$subdir/lang-specs.h
]; then
5206 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
5207 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
5209 if [ -f $srcdir/$subdir/lang-options.h
]; then
5210 echo "#include \"$subdir/lang-options.h\"" >>options.h
5211 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
5215 # These (without "all_") are set in each config-lang.in.
5216 # `language' must be a single word so is spelled singularly.
5222 all_outputs
=Makefile
5223 # List of language makefile fragments.
5228 # Add the language fragments.
5229 # Languages are added via two mechanisms. Some information must be
5230 # recorded in makefile variables, these are defined in config-lang.in.
5231 # We accumulate them and plug them into the main Makefile.
5232 # The other mechanism is a set of hooks for each of the main targets
5233 # like `clean', `install', etc.
5235 language_fragments
="Make-lang"
5236 language_hooks
="Make-hooks"
5239 for s
in ..
$subdirs
5251 .
${srcdir}/$s/config-lang.
in
5252 if [ "x$language" = x
]
5254 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
5257 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
5258 all_languages
="$all_languages $language"
5259 if [ "x$boot_language" = xyes
]
5261 all_boot_languages
="$all_boot_languages $language"
5263 all_compilers
="$all_compilers $compilers"
5264 all_stagestuff
="$all_stagestuff $stagestuff"
5265 all_diff_excludes
="$all_diff_excludes $diff_excludes"
5266 all_headers
="$all_headers $headers"
5267 all_outputs
="$all_outputs $outputs"
5268 if [ x
$outputs = x
]
5270 oldstyle_subdirs
="$oldstyle_subdirs $s"
5272 all_lib2funcs
="$all_lib2funcs $lib2funcs"
5276 # Since we can't use `::' targets, we link each language in
5277 # with a set of hooks, reached indirectly via lang.${target}.
5281 target_list
="all.build all.cross start.encap rest.encap \
5283 install-normal install-common install-info install-man \
5285 mostlyclean clean distclean extraclean maintainer-clean \
5286 stage1 stage2 stage3 stage4"
5287 for t
in $target_list
5290 for l
in ..
$all_languages
5292 if [ $l != ".." ]; then
5296 echo "lang.$t: $x" >> Make-hooks
5299 # If we're not building in srcdir, create .gdbinit.
5301 if [ ! -f Makefile.
in ]; then
5302 echo "dir ." > .gdbinit
5303 echo "dir ${srcdir}" >> .gdbinit
5304 if [ x
$gdb_needs_out_file_path = xyes
]
5306 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
5308 if [ "x$subdirs" != x
]; then
5311 echo "dir ${srcdir}/$s" >> .gdbinit
5314 echo "source ${srcdir}/.gdbinit" >> .gdbinit
5317 # Define variables host_canonical and build_canonical
5318 # because some Cygnus local changes in the Makefile depend on them.
5319 build_canonical
=${build}
5320 host_canonical
=${host}
5322 if [ "${host}" != "${target}" ] ; then
5323 target_subdir
=${target}/
5329 # If this is using newlib, then define inhibit_libc in
5330 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
5331 # libgcc.a, but that's OK because newib should have its own version of
5334 if [ x
$with_newlib = xyes
]; then
5335 inhibit_libc
=-Dinhibit_libc
5339 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
5342 if [ x
$enable_haifa = xyes
]; then
5343 echo "Using the Haifa scheduler."
5345 sched_cflags
=-DHAIFA
5349 if [ x
$enable_haifa != x
]; then
5350 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
5351 for x
in genattrtab.o toplev.o loop.o unroll.o
*sched.o
; do
5359 # Nothing to do for FLOAT_H, float_format already handled.
5363 # Process the language and host/target makefile fragments.
5364 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
5366 # Substitute configuration variables
5420 # Echo that links are built
5421 if [ x
$host = x
$target ]
5429 if [ x
$host != x
$build ]
5431 str3
=" on a $build system"
5434 if [ "x$str2" != x
] ||
[ "x$str3" != x
]
5439 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
5441 if [ "x$str2" != x
] ||
[ "x$str3" != x
]
5443 echo " ${str2}${str3}." 1>&2
5446 # Truncate the target if necessary
5447 if [ x
$host_truncate_target != x
]; then
5448 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
5451 # Configure the subdirectories
5452 # AC_CONFIG_SUBDIRS($subdirs)
5454 # Create the Makefile
5455 # and configure language subdirectories
5457 cat > confcache
<<\EOF
5458 # This file is a shell script that caches the results of configure
5459 # tests run on this system so they can be shared between configure
5460 # scripts and configure runs. It is not useful on other systems.
5461 # If it contains results you don't want to keep, you may remove or edit it.
5463 # By default, configure uses ./config.cache as the cache file,
5464 # creating it if it does not exist already. You can give configure
5465 # the --cache-file=FILE option to use a different cache file; that is
5466 # what configure does when it calls configure scripts in
5467 # subdirectories, so they share the cache.
5468 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5469 # config.status only pays attention to the cache file if you give it the
5470 # --recheck option to rerun configure.
5473 # The following way of writing the cache mishandles newlines in values,
5474 # but we know of no workaround that is simple, portable, and efficient.
5475 # So, don't put newlines in cache variables' values.
5476 # Ultrix sh set writes to stderr and can't be redirected directly,
5477 # and sets the high bit in the cache file unless we assign to the vars.
5479 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
5481 # `set' does not quote correctly, so add quotes (double-quote substitution
5482 # turns \\\\ into \\, and sed turns \\ into \).
5484 -e "s/'/'\\\\''/g" \
5485 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5488 # `set' quotes correctly as required by POSIX, so do not add quotes.
5489 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5492 if cmp -s $cache_file confcache
; then
5495 if test -w $cache_file; then
5496 echo "updating cache $cache_file"
5497 cat confcache
> $cache_file
5499 echo "not updating unwritable cache $cache_file"
5504 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5506 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5507 # Let make expand exec_prefix.
5508 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5510 # Any assignment to VPATH causes Sun make to only execute
5511 # the first set of double-colon rules, so remove it if not needed.
5512 # If there is a colon in the path, we need to keep it.
5513 if test "x$srcdir" = x.
; then
5514 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5517 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5519 DEFS
=-DHAVE_CONFIG_H
5521 # Without the "./", some shells look in PATH for config.status.
5522 : ${CONFIG_STATUS=./config.status}
5524 echo creating
$CONFIG_STATUS
5525 rm -f $CONFIG_STATUS
5526 cat > $CONFIG_STATUS <<EOF
5528 # Generated automatically by configure.
5529 # Run this file to recreate the current configuration.
5530 # This directory was configured as follows,
5531 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5533 # $0 $ac_configure_args
5535 # Compiler output produced by configure, useful for debugging
5536 # configure, is in ./config.log if it exists.
5538 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5541 case "\$ac_option" in
5542 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5543 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5544 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5545 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5546 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
5548 -help | --help | --hel | --he | --h)
5549 echo "\$ac_cs_usage"; exit 0 ;;
5550 *) echo "\$ac_cs_usage"; exit 1 ;;
5554 ac_given_srcdir=$srcdir
5556 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5558 cat >> $CONFIG_STATUS <<EOF
5560 # Protect against being on the right side of a sed subst in config.status.
5561 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5562 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5566 s%@CFLAGS@%$CFLAGS%g
5567 s%@CPPFLAGS@%$CPPFLAGS%g
5568 s%@CXXFLAGS@%$CXXFLAGS%g
5570 s%@LDFLAGS@%$LDFLAGS%g
5572 s%@exec_prefix@%$exec_prefix%g
5573 s%@prefix@%$prefix%g
5574 s%@program_transform_name@%$program_transform_name%g
5575 s%@bindir@%$bindir%g
5576 s%@sbindir@%$sbindir%g
5577 s%@libexecdir@%$libexecdir%g
5578 s%@datadir@%$datadir%g
5579 s%@sysconfdir@%$sysconfdir%g
5580 s%@sharedstatedir@%$sharedstatedir%g
5581 s%@localstatedir@%$localstatedir%g
5582 s%@libdir@%$libdir%g
5583 s%@includedir@%$includedir%g
5584 s%@oldincludedir@%$oldincludedir%g
5585 s%@infodir@%$infodir%g
5586 s%@mandir@%$mandir%g
5588 s%@host_alias@%$host_alias%g
5589 s%@host_cpu@%$host_cpu%g
5590 s%@host_vendor@%$host_vendor%g
5591 s%@host_os@%$host_os%g
5592 s%@target@%$target%g
5593 s%@target_alias@%$target_alias%g
5594 s%@target_cpu@%$target_cpu%g
5595 s%@target_vendor@%$target_vendor%g
5596 s%@target_os@%$target_os%g
5598 s%@build_alias@%$build_alias%g
5599 s%@build_cpu@%$build_cpu%g
5600 s%@build_vendor@%$build_vendor%g
5601 s%@build_os@%$build_os%g
5603 s%@SET_MAKE@%$SET_MAKE%g
5606 s%@LEXLIB@%$LEXLIB%g
5609 s%@RANLIB@%$RANLIB%g
5611 s%@INSTALL@%$INSTALL%g
5612 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5613 s%@INSTALL_DATA@%$INSTALL_DATA%g
5615 s%@vfprintf@%$vfprintf%g
5616 s%@doprint@%$doprint%g
5617 s%@manext@%$manext%g
5618 s%@objext@%$objext%g
5619 s%@gthread_flags@%$gthread_flags%g
5620 s%@build_canonical@%$build_canonical%g
5621 s%@host_canonical@%$host_canonical%g
5622 s%@target_subdir@%$target_subdir%g
5623 s%@inhibit_libc@%$inhibit_libc%g
5624 s%@sched_prefix@%$sched_prefix%g
5625 s%@sched_cflags@%$sched_cflags%g
5626 s%@objdir@%$objdir%g
5627 s%@subdirs@%$subdirs%g
5628 s%@all_languages@%$all_languages%g
5629 s%@all_boot_languages@%$all_boot_languages%g
5630 s%@all_compilers@%$all_compilers%g
5631 s%@all_lang_makefiles@%$all_lang_makefiles%g
5632 s%@all_stagestuff@%$all_stagestuff%g
5633 s%@all_diff_excludes@%$all_diff_excludes%g
5634 s%@all_lib2funcs@%$all_lib2funcs%g
5635 s%@all_headers@%$all_headers%g
5636 s%@cpp_main@%$cpp_main%g
5637 s%@extra_passes@%$extra_passes%g
5638 s%@extra_programs@%$extra_programs%g
5639 s%@extra_parts@%$extra_parts%g
5640 s%@extra_c_objs@%$extra_c_objs%g
5641 s%@extra_cxx_objs@%$extra_cxx_objs%g
5642 s%@extra_c_flags@%$extra_c_flags%g
5643 s%@extra_objs@%$extra_objs%g
5644 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
5645 s%@extra_headers_list@%$extra_headers_list%g
5646 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
5647 s%@dep_tmake_file@%$dep_tmake_file%g
5648 s%@out_file@%$out_file%g
5649 s%@out_object_file@%$out_object_file%g
5650 s%@md_file@%$md_file%g
5651 s%@tm_file_list@%$tm_file_list%g
5652 s%@build_xm_file_list@%$build_xm_file_list%g
5653 s%@host_xm_file_list@%$host_xm_file_list%g
5654 s%@lang_specs_files@%$lang_specs_files%g
5655 s%@lang_options_files@%$lang_options_files%g
5656 s%@thread_file@%$thread_file%g
5657 s%@version@%$version%g
5658 s%@local_prefix@%$local_prefix%g
5659 s%@gxx_include_dir@%$gxx_include_dir%g
5660 s%@fixincludes@%$fixincludes%g
5661 s%@build_install_headers_dir@%$build_install_headers_dir%g
5662 s%@build_exeext@%$build_exeext%g
5663 s%@host_exeext@%$host_exeext%g
5664 s%@float_format@%$float_format%g
5665 s%@will_use_collect2@%$will_use_collect2%g
5666 s%@maybe_use_collect2@%$maybe_use_collect2%g
5667 s%@cc_set_by_configure@%$cc_set_by_configure%g
5668 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
5669 s%@install@%$install%g
5670 s%@symbolic_link@%$symbolic_link%g
5671 /@target_overrides@/r $target_overrides
5672 s%@target_overrides@%%g
5673 /@host_overrides@/r $host_overrides
5674 s%@host_overrides@%%g
5675 s%@cross_defines@%$cross_defines%g
5676 /@cross_overrides@/r $cross_overrides
5677 s%@cross_overrides@%%g
5678 /@build_overrides@/r $build_overrides
5679 s%@build_overrides@%%g
5680 /@language_fragments@/r $language_fragments
5681 s%@language_fragments@%%g
5682 /@language_hooks@/r $language_hooks
5683 s%@language_hooks@%%g
5688 cat >> $CONFIG_STATUS <<\EOF
5690 # Split the substitutions into bite-sized pieces for seds with
5691 # small command number limits, like on Digital OSF/1 and HP-UX.
5692 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5693 ac_file
=1 # Number of current file.
5694 ac_beg
=1 # First line for current file.
5695 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5698 while $ac_more_lines; do
5699 if test $ac_beg -gt 1; then
5700 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5702 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5704 if test ! -s conftest.s
$ac_file; then
5706 rm -f conftest.s
$ac_file
5708 if test -z "$ac_sed_cmds"; then
5709 ac_sed_cmds
="sed -f conftest.s$ac_file"
5711 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5713 ac_file
=`expr $ac_file + 1`
5715 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5718 if test -z "$ac_sed_cmds"; then
5723 cat >> $CONFIG_STATUS <<EOF
5725 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
5727 cat >> $CONFIG_STATUS <<\EOF
5728 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5729 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5731 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5732 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5733 *) ac_file_in
="${ac_file}.in" ;;
5736 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5738 # Remove last slash and all that follows it. Not all systems have dirname.
5739 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5740 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5741 # The file is in a subdirectory.
5742 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5743 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5744 # A "../" for each directory in $ac_dir_suffix.
5745 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5747 ac_dir_suffix
= ac_dots
=
5750 case "$ac_given_srcdir" in
5752 if test -z "$ac_dots"; then top_srcdir
=.
5753 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5754 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5756 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5757 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5761 echo creating
"$ac_file"
5763 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5765 *Makefile
*) ac_comsub
="1i\\
5766 # $configure_input" ;;
5770 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5772 s%@configure_input@%$configure_input%g
5773 s%@srcdir@%$srcdir%g
5774 s%@top_srcdir@%$top_srcdir%g
5775 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5779 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5780 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5782 # ac_d sets the value in "#define NAME VALUE" lines.
5783 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5784 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5787 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5788 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5789 ac_uB
='\([ ]\)%\1#\2define\3'
5792 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5793 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5794 ac_eB
='$%\1#\2define\3'
5798 if test "${CONFIG_HEADERS+set}" != set; then
5800 cat >> $CONFIG_STATUS <<EOF
5801 CONFIG_HEADERS="auto-host.h:config.in"
5803 cat >> $CONFIG_STATUS <<\EOF
5805 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5806 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5808 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5809 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5810 *) ac_file_in
="${ac_file}.in" ;;
5813 echo creating
$ac_file
5815 rm -f conftest.frag conftest.
in conftest.out
5816 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5817 cat $ac_file_inputs > conftest.
in
5821 # Transform confdefs.h into a sed script conftest.vals that substitutes
5822 # the proper values into config.h.in to produce config.h. And first:
5823 # Protect against being on the right side of a sed subst in config.status.
5824 # Protect against being in an unquoted here document in config.status.
5826 cat > conftest.hdr
<<\EOF
5829 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5833 sed -n -f conftest.hdr confdefs.h > conftest.vals
5836 # This sed command replaces #undef with comments. This is necessary, for
5837 # example, in the case of _POSIX_SOURCE, which is predefined and required
5838 # on some systems where configure will not decide to define it.
5839 cat >> conftest.vals <<\EOF
5840 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5843 # Break up conftest.vals because some shells have a limit on
5844 # the size of here documents, and old seds have small limits too.
5849 ac_lines=`grep -c . conftest.vals
`
5850 # grep -c gives empty output for an empty file on some AIX systems.
5851 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5852 # Write a limited-size here document to conftest.frag.
5853 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5854 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5856 sed -f conftest.frag conftest.in > conftest.out
5858 mv conftest.out conftest.in
5860 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5862 mv conftest.tail conftest.vals
5866 cat >> $CONFIG_STATUS <<\EOF
5867 rm -f conftest.frag conftest.h
5868 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5869 cat conftest.in >> conftest.h
5871 if cmp -s $ac_file conftest.h 2>/dev/null; then
5872 echo "$ac_file is unchanged"
5875 # Remove last slash and all that follows it. Not all systems have dirname.
5876 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5877 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5878 # The file is in a subdirectory.
5879 test ! -d "$ac_dir" && mkdir "$ac_dir"
5882 mv conftest.h $ac_file
5887 cat >> $CONFIG_STATUS <<EOF
5892 target_alias='${target_alias}'
5894 subdirs='${subdirs}'
5895 oldstyle_subdirs='${oldstyle_subdirs}'
5896 symbolic_link='${symbolic_link}'
5897 program_transform_set='${program_transform_set}'
5898 program_transform_name='${program_transform_name}'
5899 dep_host_xmake_file='${dep_host_xmake_file}'
5900 host_xmake_file='${host_xmake_file}'
5901 dep_tmake_file='${dep_tmake_file}'
5902 tmake_file='${tmake_file}'
5903 thread_file='${thread_file}'
5904 version='${version}'
5905 local_prefix='${local_prefix}'
5906 build_install_headers_dir='${build_install_headers_dir}'
5907 build_exeext='${build_exeext}'
5908 host_exeext='${host_exeext}'
5909 out_file='${out_file}'
5910 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
5911 SET_MAKE='${SET_MAKE}'
5912 target_list='${target_list}'
5913 target_overrides='${target_overrides}'
5914 host_overrides='${host_overrides}'
5915 cross_defines='${cross_defines}'
5916 cross_overrides='${cross_overrides}'
5917 build_overrides='${build_overrides}'
5920 cat >> $CONFIG_STATUS <<\EOF
5922 . $srcdir/configure.lang
5923 case x$CONFIG_HEADERS in
5924 xauto-host.h:config.in)
5927 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
5928 # bootstrapping and the installation procedure can still use
5929 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
5930 # FLAGS_TO_PASS has been modified to solve the problem there.
5931 # This is virtually a duplicate of what happens in configure.lang; we do
5932 # an extra check to make sure this only happens if ln -s can be used.
5933 if [ "$symbolic_link" = "ln -s" ]; then
5934 for d in .. ${subdirs} ; do
5935 if [ $d != .. ]; then
5938 for t in stage1 stage2 stage3 stage4 include
5941 $symbolic_link ../$t $t 2>/dev/null
5950 chmod +x $CONFIG_STATUS
5951 rm -fr confdefs* $ac_clean_files
5952 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1