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.
640 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
641 if test "${enable_c_cpplib+set}" = set; then
642 enableval
="$enable_c_cpplib"
643 if [ x
$enable_c_cpplib != xno
]; then
644 extra_c_objs
="${extra_c_objs} cpplib.o cppexp.o cpphash.o cpperror.o"
645 extra_c_objs
="${extra_c_objs} prefix.o"
646 extra_cxx_objs
="${extra_cxx_objs} ../cpplib.o ../cppexp.o ../cpphash.o ../cpperror.o ../prefix.o"
647 extra_c_flags
=-DUSE_CPPLIB=1
652 # Enable Haifa scheduler.
653 # Check whether --enable-haifa or --disable-haifa was given.
654 if test "${enable_haifa+set}" = set; then
655 enableval
="$enable_haifa"
661 # This is a work in progress...
662 # Check whether --with-fast-fixincludes or --without-fast-fixincludes was given.
663 if test "${with_fast_fixincludes+set}" = set; then
664 withval
="$with_fast_fixincludes"
665 fast_fixinc
="$with_fast_fixincludes"
672 # Pass with no value to take the default
673 # Pass with a value to specify a thread package
674 # Check whether --enable-threads or --disable-threads was given.
675 if test "${enable_threads+set}" = set; then
676 enableval
="$enable_threads"
677 if [ x
$enable_threads = xno
]; then
685 enable_threads_flag
=$enable_threads
686 # Check if a valid thread package
687 case x
${enable_threads_flag} in
690 target_thread_file
='single'
694 target_thread_file
=''
696 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
697 xsolaris | xwin32 | xdce | xvxworks
)
698 target_thread_file
=$enable_threads_flag
701 echo "$enable_threads is an unknown thread package" 1>&2
706 # Determine the host, build, and target systems
708 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
709 if test -f $ac_dir/install-sh
; then
711 ac_install_sh
="$ac_aux_dir/install-sh -c"
713 elif test -f $ac_dir/install.sh
; then
715 ac_install_sh
="$ac_aux_dir/install.sh -c"
719 if test -z "$ac_aux_dir"; then
720 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
722 ac_config_guess
=$ac_aux_dir/config.guess
723 ac_config_sub
=$ac_aux_dir/config.sub
724 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
727 # Do some error checking and defaulting for the host and target type.
729 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
732 # 1. You are not allowed to specify --host, --target, and nonopt at the
734 # 2. Host defaults to nonopt.
735 # 3. If nonopt is not specified, then host defaults to the current host,
736 # as determined by config.guess.
737 # 4. Target and build default to nonopt.
738 # 5. If nonopt is not specified, then target and build default to host.
740 # The aliases save the names the user supplied, while $host etc.
741 # will get canonicalized.
742 case $host---$target---$nonopt in
743 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
744 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
748 # Make sure we can run config.sub.
749 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
750 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
753 echo $ac_n "checking host system type""... $ac_c" 1>&6
754 echo "configure:755: checking host system type" >&5
757 case "$host_alias" in
761 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
762 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
764 *) host_alias
=$nonopt ;;
768 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
769 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
770 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
771 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
772 echo "$ac_t""$host" 1>&6
774 echo $ac_n "checking target system type""... $ac_c" 1>&6
775 echo "configure:776: checking target system type" >&5
778 case "$target_alias" in
781 NONE
) target_alias
=$host_alias ;;
782 *) target_alias
=$nonopt ;;
786 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
787 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
788 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
789 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
790 echo "$ac_t""$target" 1>&6
792 echo $ac_n "checking build system type""... $ac_c" 1>&6
793 echo "configure:794: checking build system type" >&5
796 case "$build_alias" in
799 NONE
) build_alias
=$host_alias ;;
800 *) build_alias
=$nonopt ;;
804 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
805 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
806 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
807 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
808 echo "$ac_t""$build" 1>&6
810 test "$host_alias" != "$target_alias" &&
811 test "$program_prefix$program_suffix$program_transform_name" = \
813 program_prefix
=${target_alias}-
816 # Find the native compiler
817 # Extract the first word of "gcc", so it can be a program name with args.
818 set dummy gcc
; ac_word
=$2
819 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
820 echo "configure:821: checking for $ac_word" >&5
821 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
822 echo $ac_n "(cached) $ac_c" 1>&6
824 if test -n "$CC"; then
825 ac_cv_prog_CC
="$CC" # Let the user override the test.
827 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
828 for ac_dir
in $PATH; do
829 test -z "$ac_dir" && ac_dir
=.
830 if test -f $ac_dir/$ac_word; then
839 if test -n "$CC"; then
840 echo "$ac_t""$CC" 1>&6
842 echo "$ac_t""no" 1>&6
845 if test -z "$CC"; then
846 # Extract the first word of "cc", so it can be a program name with args.
847 set dummy cc
; ac_word
=$2
848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
849 echo "configure:850: checking for $ac_word" >&5
850 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
851 echo $ac_n "(cached) $ac_c" 1>&6
853 if test -n "$CC"; then
854 ac_cv_prog_CC
="$CC" # Let the user override the test.
856 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
858 for ac_dir
in $PATH; do
859 test -z "$ac_dir" && ac_dir
=.
860 if test -f $ac_dir/$ac_word; then
861 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
870 if test $ac_prog_rejected = yes; then
871 # We found a bogon in the path, so make sure we never use it.
872 set dummy
$ac_cv_prog_CC
874 if test $# -gt 0; then
875 # We chose a different compiler from the bogus one.
876 # However, it has the same basename, so the bogon will be chosen
877 # first if we set CC to just the basename; use the full file name.
879 set dummy
"$ac_dir/$ac_word" "$@"
887 if test -n "$CC"; then
888 echo "$ac_t""$CC" 1>&6
890 echo "$ac_t""no" 1>&6
893 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
896 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
897 echo "configure:898: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
900 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
901 ac_cpp
='$CPP $CPPFLAGS'
902 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
903 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
904 cross_compiling
=$ac_cv_prog_cc_cross
906 cat > conftest.
$ac_ext <<EOF
907 #line 908 "configure"
908 #include "confdefs.h"
911 if { (eval echo configure
:912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
912 ac_cv_prog_cc_works
=yes
913 # If we can't run a trivial program, we are probably using a cross compiler.
914 if (.
/conftest
; exit) 2>/dev
/null
; then
915 ac_cv_prog_cc_cross
=no
917 ac_cv_prog_cc_cross
=yes
920 echo "configure: failed program was:" >&5
921 cat conftest.
$ac_ext >&5
922 ac_cv_prog_cc_works
=no
926 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
927 if test $ac_cv_prog_cc_works = no
; then
928 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
930 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
931 echo "configure:932: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
932 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
933 cross_compiling
=$ac_cv_prog_cc_cross
935 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
936 echo "configure:937: checking whether we are using GNU C" >&5
937 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
938 echo $ac_n "(cached) $ac_c" 1>&6
940 cat > conftest.c
<<EOF
945 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
952 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
954 if test $ac_cv_prog_gcc = yes; then
956 ac_test_CFLAGS
="${CFLAGS+set}"
957 ac_save_CFLAGS
="$CFLAGS"
959 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
960 echo "configure:961: checking whether ${CC-cc} accepts -g" >&5
961 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
962 echo $ac_n "(cached) $ac_c" 1>&6
964 echo 'void f(){}' > conftest.c
965 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
974 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
975 if test "$ac_test_CFLAGS" = set; then
976 CFLAGS
="$ac_save_CFLAGS"
977 elif test $ac_cv_prog_cc_g = yes; then
984 test "${CFLAGS+set}" = set || CFLAGS
="-g"
987 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
988 echo "configure:989: checking whether ${MAKE-make} sets \${MAKE}" >&5
989 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
990 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
991 echo $ac_n "(cached) $ac_c" 1>&6
993 cat > conftestmake
<<\EOF
995 @
echo 'ac_maketemp="${MAKE}"'
997 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
998 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
999 if test -n "$ac_maketemp"; then
1000 eval ac_cv_prog_make_
${ac_make}_set
=yes
1002 eval ac_cv_prog_make_
${ac_make}_set
=no
1006 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1007 echo "$ac_t""yes" 1>&6
1010 echo "$ac_t""no" 1>&6
1011 SET_MAKE
="MAKE=${MAKE-make}"
1015 # Find some useful tools
1016 for ac_prog
in mawk gawk nawk
awk
1018 # Extract the first word of "$ac_prog", so it can be a program name with args.
1019 set dummy
$ac_prog; ac_word
=$2
1020 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1021 echo "configure:1022: checking for $ac_word" >&5
1022 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1023 echo $ac_n "(cached) $ac_c" 1>&6
1025 if test -n "$AWK"; then
1026 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1028 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1029 for ac_dir
in $PATH; do
1030 test -z "$ac_dir" && ac_dir
=.
1031 if test -f $ac_dir/$ac_word; then
1032 ac_cv_prog_AWK
="$ac_prog"
1039 AWK
="$ac_cv_prog_AWK"
1040 if test -n "$AWK"; then
1041 echo "$ac_t""$AWK" 1>&6
1043 echo "$ac_t""no" 1>&6
1046 test -n "$AWK" && break
1049 # Extract the first word of "flex", so it can be a program name with args.
1050 set dummy flex
; ac_word
=$2
1051 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1052 echo "configure:1053: checking for $ac_word" >&5
1053 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1054 echo $ac_n "(cached) $ac_c" 1>&6
1056 if test -n "$LEX"; then
1057 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1059 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1060 for ac_dir
in $PATH; do
1061 test -z "$ac_dir" && ac_dir
=.
1062 if test -f $ac_dir/$ac_word; then
1063 ac_cv_prog_LEX
="flex"
1068 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1071 LEX
="$ac_cv_prog_LEX"
1072 if test -n "$LEX"; then
1073 echo "$ac_t""$LEX" 1>&6
1075 echo "$ac_t""no" 1>&6
1078 if test -z "$LEXLIB"
1084 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1085 echo "configure:1086: checking for yywrap in -l$ac_lib" >&5
1086 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1087 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1088 echo $ac_n "(cached) $ac_c" 1>&6
1090 ac_save_LIBS
="$LIBS"
1091 LIBS
="-l$ac_lib $LIBS"
1092 cat > conftest.
$ac_ext <<EOF
1093 #line 1094 "configure"
1094 #include "confdefs.h"
1095 /* Override any gcc2 internal prototype to avoid an error. */
1096 /* We use char because int might match the return type of a gcc2
1097 builtin and then its argument prototype would still apply. */
1104 if { (eval echo configure
:1105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1106 eval "ac_cv_lib_$ac_lib_var=yes"
1108 echo "configure: failed program was:" >&5
1109 cat conftest.
$ac_ext >&5
1111 eval "ac_cv_lib_$ac_lib_var=no"
1114 LIBS
="$ac_save_LIBS"
1117 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1118 echo "$ac_t""yes" 1>&6
1121 echo "$ac_t""no" 1>&6
1126 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1127 echo "configure:1128: checking whether ln works" >&5
1128 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1129 echo $ac_n "(cached) $ac_c" 1>&6
1131 rm -f conftestdata_t
1132 echo >conftestdata_f
1133 if ln conftestdata_f conftestdata_t
2>/dev
/null
1137 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1139 gcc_cv_prog_LN
="ln -s"
1144 rm -f conftestdata_f conftestdata_t
1147 LN
="$gcc_cv_prog_LN"
1148 if test "$gcc_cv_prog_LN" = "ln"; then
1149 echo "$ac_t""yes" 1>&6
1151 if test "$gcc_cv_prog_LN" = "ln -s"; then
1152 echo "$ac_t""no, using ln -s" 1>&6
1154 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1158 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1159 echo "configure:1160: checking whether ln -s works" >&5
1160 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1161 echo $ac_n "(cached) $ac_c" 1>&6
1163 rm -f conftestdata_t
1164 echo >conftestdata_f
1165 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1167 gcc_cv_prog_LN_S
="ln -s"
1169 if ln conftestdata_f conftestdata_t
2>/dev
/null
1176 rm -f conftestdata_f conftestdata_t
1179 LN_S
="$gcc_cv_prog_LN_S"
1180 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1181 echo "$ac_t""yes" 1>&6
1183 if test "$gcc_cv_prog_LN_S" = "ln"; then
1184 echo "$ac_t""no, using ln" 1>&6
1186 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1190 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1191 echo "configure:1192: checking for volatile" >&5
1192 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1193 echo $ac_n "(cached) $ac_c" 1>&6
1195 cat > conftest.
$ac_ext <<EOF
1196 #line 1197 "configure"
1197 #include "confdefs.h"
1203 if { (eval echo configure
:1204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1205 gcc_cv_c_volatile
=yes
1207 echo "configure: failed program was:" >&5
1208 cat conftest.
$ac_ext >&5
1210 gcc_cv_c_volatile
=no
1215 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1216 if test $gcc_cv_c_volatile = yes ; then
1217 cat >> confdefs.h
<<\EOF
1218 #define HAVE_VOLATILE 1
1223 # Extract the first word of "ranlib", so it can be a program name with args.
1224 set dummy ranlib
; ac_word
=$2
1225 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1226 echo "configure:1227: checking for $ac_word" >&5
1227 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1228 echo $ac_n "(cached) $ac_c" 1>&6
1230 if test -n "$RANLIB"; then
1231 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1233 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1234 for ac_dir
in $PATH; do
1235 test -z "$ac_dir" && ac_dir
=.
1236 if test -f $ac_dir/$ac_word; then
1237 ac_cv_prog_RANLIB
="ranlib"
1242 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1245 RANLIB
="$ac_cv_prog_RANLIB"
1246 if test -n "$RANLIB"; then
1247 echo "$ac_t""$RANLIB" 1>&6
1249 echo "$ac_t""no" 1>&6
1252 for ac_prog
in 'bison -y' byacc
1254 # Extract the first word of "$ac_prog", so it can be a program name with args.
1255 set dummy
$ac_prog; ac_word
=$2
1256 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1257 echo "configure:1258: checking for $ac_word" >&5
1258 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1259 echo $ac_n "(cached) $ac_c" 1>&6
1261 if test -n "$YACC"; then
1262 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1264 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1265 for ac_dir
in $PATH; do
1266 test -z "$ac_dir" && ac_dir
=.
1267 if test -f $ac_dir/$ac_word; then
1268 ac_cv_prog_YACC
="$ac_prog"
1275 YACC
="$ac_cv_prog_YACC"
1276 if test -n "$YACC"; then
1277 echo "$ac_t""$YACC" 1>&6
1279 echo "$ac_t""no" 1>&6
1282 test -n "$YACC" && break
1284 test -n "$YACC" || YACC
="yacc"
1286 # Find a good install program. We prefer a C program (faster),
1287 # so one script is as good as another. But avoid the broken or
1288 # incompatible versions:
1289 # SysV /etc/install, /usr/sbin/install
1290 # SunOS /usr/etc/install
1291 # IRIX /sbin/install
1293 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1294 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1295 # ./install, which can be erroneously created by make from ./install.sh.
1296 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1297 echo "configure:1298: checking for a BSD compatible install" >&5
1298 if test -z "$INSTALL"; then
1299 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1300 echo $ac_n "(cached) $ac_c" 1>&6
1302 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1303 for ac_dir
in $PATH; do
1304 # Account for people who put trailing slashes in PATH elements.
1306 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1308 # OSF1 and SCO ODT 3.0 have their own names for install.
1309 for ac_prog
in ginstall scoinst
install; do
1310 if test -f $ac_dir/$ac_prog; then
1311 if test $ac_prog = install &&
1312 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1313 # AIX install. It has an incompatible calling convention.
1314 # OSF/1 installbsd also uses dspmsg, but is usable.
1317 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1328 if test "${ac_cv_path_install+set}" = set; then
1329 INSTALL
="$ac_cv_path_install"
1331 # As a last resort, use the slow shell script. We don't cache a
1332 # path for INSTALL within a source directory, because that will
1333 # break other packages using the cache if that directory is
1334 # removed, or if the path is relative.
1335 INSTALL
="$ac_install_sh"
1338 echo "$ac_t""$INSTALL" 1>&6
1340 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1341 # It thinks the first close brace ends the variable substitution.
1342 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1344 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1347 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1348 echo "configure:1349: checking how to run the C preprocessor" >&5
1349 # On Suns, sometimes $CPP names a directory.
1350 if test -n "$CPP" && test -d "$CPP"; then
1353 if test -z "$CPP"; then
1354 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1355 echo $ac_n "(cached) $ac_c" 1>&6
1357 # This must be in double quotes, not single quotes, because CPP may get
1358 # substituted into the Makefile and "${CC-cc}" will confuse make.
1360 # On the NeXT, cc -E runs the code through the compiler's parser,
1361 # not just through cpp.
1362 cat > conftest.
$ac_ext <<EOF
1363 #line 1364 "configure"
1364 #include "confdefs.h"
1368 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1369 { (eval echo configure
:1370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1370 ac_err
=`grep -v '^ *+' conftest.out`
1371 if test -z "$ac_err"; then
1375 echo "configure: failed program was:" >&5
1376 cat conftest.
$ac_ext >&5
1378 CPP
="${CC-cc} -E -traditional-cpp"
1379 cat > conftest.
$ac_ext <<EOF
1380 #line 1381 "configure"
1381 #include "confdefs.h"
1385 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1386 { (eval echo configure
:1387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1387 ac_err
=`grep -v '^ *+' conftest.out`
1388 if test -z "$ac_err"; then
1392 echo "configure: failed program was:" >&5
1393 cat conftest.
$ac_ext >&5
1400 ac_cv_prog_CPP
="$CPP"
1402 CPP
="$ac_cv_prog_CPP"
1404 ac_cv_prog_CPP
="$CPP"
1406 echo "$ac_t""$CPP" 1>&6
1408 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1409 echo "configure:1410: checking for ANSI C header files" >&5
1410 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1411 echo $ac_n "(cached) $ac_c" 1>&6
1413 cat > conftest.
$ac_ext <<EOF
1414 #line 1415 "configure"
1415 #include "confdefs.h"
1421 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1422 { (eval echo configure
:1423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1423 ac_err
=`grep -v '^ *+' conftest.out`
1424 if test -z "$ac_err"; then
1426 ac_cv_header_stdc
=yes
1429 echo "configure: failed program was:" >&5
1430 cat conftest.
$ac_ext >&5
1432 ac_cv_header_stdc
=no
1436 if test $ac_cv_header_stdc = yes; then
1437 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1438 cat > conftest.
$ac_ext <<EOF
1439 #line 1440 "configure"
1440 #include "confdefs.h"
1443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1444 egrep "memchr" >/dev
/null
2>&1; then
1448 ac_cv_header_stdc
=no
1454 if test $ac_cv_header_stdc = yes; then
1455 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1456 cat > conftest.
$ac_ext <<EOF
1457 #line 1458 "configure"
1458 #include "confdefs.h"
1461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1462 egrep "free" >/dev
/null
2>&1; then
1466 ac_cv_header_stdc
=no
1472 if test $ac_cv_header_stdc = yes; then
1473 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1474 if test "$cross_compiling" = yes; then
1477 cat > conftest.
$ac_ext <<EOF
1478 #line 1479 "configure"
1479 #include "confdefs.h"
1481 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1482 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1483 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1484 int main () { int i; for (i = 0; i < 256; i++)
1485 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1489 if { (eval echo configure
:1490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1493 echo "configure: failed program was:" >&5
1494 cat conftest.
$ac_ext >&5
1496 ac_cv_header_stdc
=no
1504 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1505 if test $ac_cv_header_stdc = yes; then
1506 cat >> confdefs.h
<<\EOF
1507 #define STDC_HEADERS 1
1512 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1513 echo "configure:1514: checking whether time.h and sys/time.h may both be included" >&5
1514 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1515 echo $ac_n "(cached) $ac_c" 1>&6
1517 cat > conftest.
$ac_ext <<EOF
1518 #line 1519 "configure"
1519 #include "confdefs.h"
1520 #include <sys/types.h>
1521 #include <sys/time.h>
1527 if { (eval echo configure
:1528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1529 ac_cv_header_time
=yes
1531 echo "configure: failed program was:" >&5
1532 cat conftest.
$ac_ext >&5
1534 ac_cv_header_time
=no
1539 echo "$ac_t""$ac_cv_header_time" 1>&6
1540 if test $ac_cv_header_time = yes; then
1541 cat >> confdefs.h
<<\EOF
1542 #define TIME_WITH_SYS_TIME 1
1547 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
1549 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1550 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1551 echo "configure:1552: checking for $ac_hdr" >&5
1552 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1553 echo $ac_n "(cached) $ac_c" 1>&6
1555 cat > conftest.
$ac_ext <<EOF
1556 #line 1557 "configure"
1557 #include "confdefs.h"
1560 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1561 { (eval echo configure
:1562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1562 ac_err
=`grep -v '^ *+' conftest.out`
1563 if test -z "$ac_err"; then
1565 eval "ac_cv_header_$ac_safe=yes"
1568 echo "configure: failed program was:" >&5
1569 cat conftest.
$ac_ext >&5
1571 eval "ac_cv_header_$ac_safe=no"
1575 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1576 echo "$ac_t""yes" 1>&6
1577 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1578 cat >> confdefs.h
<<EOF
1579 #define $ac_tr_hdr 1
1583 echo "$ac_t""no" 1>&6
1588 # Check for thread headers.
1589 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
1590 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
1591 echo "configure:1592: checking for thread.h" >&5
1592 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1593 echo $ac_n "(cached) $ac_c" 1>&6
1595 cat > conftest.
$ac_ext <<EOF
1596 #line 1597 "configure"
1597 #include "confdefs.h"
1600 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1601 { (eval echo configure
:1602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1602 ac_err
=`grep -v '^ *+' conftest.out`
1603 if test -z "$ac_err"; then
1605 eval "ac_cv_header_$ac_safe=yes"
1608 echo "configure: failed program was:" >&5
1609 cat conftest.
$ac_ext >&5
1611 eval "ac_cv_header_$ac_safe=no"
1615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1616 echo "$ac_t""yes" 1>&6
1619 echo "$ac_t""no" 1>&6
1623 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
1624 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
1625 echo "configure:1626: checking for pthread.h" >&5
1626 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1627 echo $ac_n "(cached) $ac_c" 1>&6
1629 cat > conftest.
$ac_ext <<EOF
1630 #line 1631 "configure"
1631 #include "confdefs.h"
1632 #include <pthread.h>
1634 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1635 { (eval echo configure
:1636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1636 ac_err
=`grep -v '^ *+' conftest.out`
1637 if test -z "$ac_err"; then
1639 eval "ac_cv_header_$ac_safe=yes"
1642 echo "configure: failed program was:" >&5
1643 cat conftest.
$ac_ext >&5
1645 eval "ac_cv_header_$ac_safe=no"
1649 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1650 echo "$ac_t""yes" 1>&6
1653 echo "$ac_t""no" 1>&6
1658 # See if the system preprocessor understands the ANSI C preprocessor
1659 # stringification operator.
1660 echo $ac_n "checking whether cpp understands the stringify operator""... $ac_c" 1>&6
1661 echo "configure:1662: checking whether cpp understands the stringify operator" >&5
1662 if eval "test \"`echo '$''{'gcc_cv_c_have_stringify'+set}'`\" = set"; then
1663 echo $ac_n "(cached) $ac_c" 1>&6
1665 cat > conftest.
$ac_ext <<EOF
1666 #line 1667 "configure"
1667 #include "confdefs.h"
1671 char *test = S(foo);
1674 if { (eval echo configure
:1675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1676 gcc_cv_c_have_stringify
=yes
1678 echo "configure: failed program was:" >&5
1679 cat conftest.
$ac_ext >&5
1681 gcc_cv_c_have_stringify
=no
1686 echo "$ac_t""$gcc_cv_c_have_stringify" 1>&6
1687 if test $gcc_cv_c_have_stringify = yes; then
1688 cat >> confdefs.h
<<\EOF
1689 #define HAVE_CPP_STRINGIFY 1
1694 # Use <inttypes.h> only if it exists,
1695 # doesn't clash with <sys/types.h>, and declares intmax_t.
1696 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
1697 echo "configure:1698: checking for inttypes.h" >&5
1698 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
1699 echo $ac_n "(cached) $ac_c" 1>&6
1701 cat > conftest.
$ac_ext <<EOF
1702 #line 1703 "configure"
1703 #include "confdefs.h"
1704 #include <sys/types.h>
1705 #include <inttypes.h>
1710 if { (eval echo configure
:1711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1712 cat >> confdefs.h
<<EOF
1713 #define HAVE_INTTYPES_H 1
1716 gcc_cv_header_inttypes_h
=yes
1718 echo "configure: failed program was:" >&5
1719 cat conftest.
$ac_ext >&5
1721 gcc_cv_header_inttypes_h
=no
1726 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
1728 for ac_func
in strtoul bsearch strerror putenv popen bcopy bzero bcmp \
1729 index rindex strchr strrchr
kill getrlimit setrlimit atoll atoq \
1732 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1733 echo "configure:1734: checking for $ac_func" >&5
1734 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1735 echo $ac_n "(cached) $ac_c" 1>&6
1737 cat > conftest.
$ac_ext <<EOF
1738 #line 1739 "configure"
1739 #include "confdefs.h"
1740 /* System header to define __stub macros and hopefully few prototypes,
1741 which can conflict with char $ac_func(); below. */
1743 /* Override any gcc2 internal prototype to avoid an error. */
1744 /* We use char because int might match the return type of a gcc2
1745 builtin and then its argument prototype would still apply. */
1750 /* The GNU C library defines this for functions which it implements
1751 to always fail with ENOSYS. Some functions are actually named
1752 something starting with __ and the normal name is an alias. */
1753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1761 if { (eval echo configure
:1762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1763 eval "ac_cv_func_$ac_func=yes"
1765 echo "configure: failed program was:" >&5
1766 cat conftest.
$ac_ext >&5
1768 eval "ac_cv_func_$ac_func=no"
1773 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1774 echo "$ac_t""yes" 1>&6
1775 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1776 cat >> confdefs.h
<<EOF
1777 #define $ac_tr_func 1
1781 echo "$ac_t""no" 1>&6
1786 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1787 echo "configure:1788: checking for vprintf" >&5
1788 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1789 echo $ac_n "(cached) $ac_c" 1>&6
1791 cat > conftest.
$ac_ext <<EOF
1792 #line 1793 "configure"
1793 #include "confdefs.h"
1794 /* System header to define __stub macros and hopefully few prototypes,
1795 which can conflict with char vprintf(); below. */
1797 /* Override any gcc2 internal prototype to avoid an error. */
1798 /* We use char because int might match the return type of a gcc2
1799 builtin and then its argument prototype would still apply. */
1804 /* The GNU C library defines this for functions which it implements
1805 to always fail with ENOSYS. Some functions are actually named
1806 something starting with __ and the normal name is an alias. */
1807 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1815 if { (eval echo configure
:1816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1817 eval "ac_cv_func_vprintf=yes"
1819 echo "configure: failed program was:" >&5
1820 cat conftest.
$ac_ext >&5
1822 eval "ac_cv_func_vprintf=no"
1827 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1828 echo "$ac_t""yes" 1>&6
1829 cat >> confdefs.h
<<\EOF
1830 #define HAVE_VPRINTF 1
1834 echo "$ac_t""no" 1>&6
1837 if test "$ac_cv_func_vprintf" != yes; then
1838 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1839 echo "configure:1840: checking for _doprnt" >&5
1840 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1841 echo $ac_n "(cached) $ac_c" 1>&6
1843 cat > conftest.
$ac_ext <<EOF
1844 #line 1845 "configure"
1845 #include "confdefs.h"
1846 /* System header to define __stub macros and hopefully few prototypes,
1847 which can conflict with char _doprnt(); below. */
1849 /* Override any gcc2 internal prototype to avoid an error. */
1850 /* We use char because int might match the return type of a gcc2
1851 builtin and then its argument prototype would still apply. */
1856 /* The GNU C library defines this for functions which it implements
1857 to always fail with ENOSYS. Some functions are actually named
1858 something starting with __ and the normal name is an alias. */
1859 #if defined (__stub__doprnt) || defined (__stub____doprnt)
1867 if { (eval echo configure
:1868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1869 eval "ac_cv_func__doprnt=yes"
1871 echo "configure: failed program was:" >&5
1872 cat conftest.
$ac_ext >&5
1874 eval "ac_cv_func__doprnt=no"
1879 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1880 echo "$ac_t""yes" 1>&6
1881 cat >> confdefs.h
<<\EOF
1882 #define HAVE_DOPRNT 1
1886 echo "$ac_t""no" 1>&6
1893 if test $ac_cv_func_vprintf != yes ; then
1895 if test $ac_cv_func__doprnt != yes ; then
1902 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
1903 echo "configure:1904: checking whether the printf functions support %p" >&5
1904 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
1905 echo $ac_n "(cached) $ac_c" 1>&6
1907 if test "$cross_compiling" = yes; then
1908 gcc_cv_func_printf_ptr
=no
1910 cat > conftest.
$ac_ext <<EOF
1911 #line 1912 "configure"
1912 #include "confdefs.h"
1918 char *p = buf, *q = NULL;
1919 sprintf(buf, "%p", p);
1920 sscanf(buf, "%p", &q);
1924 if { (eval echo configure
:1925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1926 gcc_cv_func_printf_ptr
=yes
1928 echo "configure: failed program was:" >&5
1929 cat conftest.
$ac_ext >&5
1931 gcc_cv_func_printf_ptr
=no
1936 rm -f core core.
* *.core
1939 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
1940 if test $gcc_cv_func_printf_ptr = yes ; then
1941 cat >> confdefs.h
<<\EOF
1942 #define HOST_PTR_PRINTF "%p"
1948 for ac_func
in malloc realloc calloc free bcopy bzero bcmp \
1949 index rindex getenv atol sbrk abort atof
1951 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
1952 echo "configure:1953: checking whether $ac_func must be declared" >&5
1953 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
1954 echo $ac_n "(cached) $ac_c" 1>&6
1956 cat > conftest.
$ac_ext <<EOF
1957 #line 1958 "configure"
1958 #include "confdefs.h"
1961 #ifdef HAVE_STRING_H
1964 #ifdef HAVE_STRINGS_H
1965 #include <strings.h>
1968 #ifdef HAVE_STDLIB_H
1971 #ifdef HAVE_UNISTD_H
1975 #define rindex strrchr
1978 #define index strchr
1981 char *(*pfn) = (char *(*)) $ac_func
1984 if { (eval echo configure
:1985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1986 eval "gcc_cv_decl_needed_$ac_func=no"
1988 echo "configure: failed program was:" >&5
1989 cat conftest.
$ac_ext >&5
1991 eval "gcc_cv_decl_needed_$ac_func=yes"
1996 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
1997 echo "$ac_t""yes" 1>&6
1998 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1999 cat >> confdefs.h
<<EOF
2000 #define $gcc_tr_decl 1
2004 echo "$ac_t""no" 1>&6
2010 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2011 echo "configure:2012: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2012 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2013 echo $ac_n "(cached) $ac_c" 1>&6
2015 cat > conftest.
$ac_ext <<EOF
2016 #line 2017 "configure"
2017 #include "confdefs.h"
2018 #include <sys/types.h>
2020 /* NetBSD declares sys_siglist in unistd.h. */
2021 #ifdef HAVE_UNISTD_H
2025 char *msg = *(sys_siglist + 1);
2028 if { (eval echo configure
:2029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2030 ac_cv_decl_sys_siglist
=yes
2032 echo "configure: failed program was:" >&5
2033 cat conftest.
$ac_ext >&5
2035 ac_cv_decl_sys_siglist
=no
2040 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2041 if test $ac_cv_decl_sys_siglist = yes; then
2042 cat >> confdefs.h
<<\EOF
2043 #define SYS_SIGLIST_DECLARED 1
2057 build_install_headers_dir
=install-headers-tar
2062 host_truncate_target
=
2065 # Decode the host machine, then the target machine.
2066 # For the host machine, we save the xm_file variable as host_xm_file;
2067 # then we decode the target machine and forget everything else
2068 # that came from the host machine.
2069 for machine
in $build $host $target; do
2083 # Set this to force installation and use of collect2.
2085 # Set this to override the default target model.
2087 # Set this to control which fixincludes program to use.
2088 if [ x
$fast_fixinc != xyes
] ; then
2089 fixincludes
=fixincludes
2090 else fixincludes
=fixinc.sh
; fi
2091 # Set this to control how the header file directory is installed.
2092 install_headers_dir
=install-headers-tar
2093 # Set this to a non-empty list of args to pass to cpp if the target
2094 # wants its .md file passed through cpp.
2096 # Set this if directory names should be truncated to 14 characters.
2098 # Set this if gdb needs a dir command with `dirname $out_file`
2099 gdb_needs_out_file_path
=
2100 # Set this if the build machine requires executables to have a
2103 # Set this to control which thread package will be used.
2105 # Reinitialize these from the flag values every loop pass, since some
2106 # configure entries modify them.
2108 gnu_ld
="$gnu_ld_flag"
2109 enable_threads
=$enable_threads_flag
2111 # Set default cpu_type, tm_file and xm_file so it can be updated in
2112 # each machine entry.
2113 cpu_type
=`echo $machine | sed 's/-.*$//'`
2147 tm_file
=${cpu_type}/${cpu_type}.h
2148 xm_file
=${cpu_type}/xm-
${cpu_type}.h
2150 # Set the default macros to define for GNU/Linux systems.
2153 xm_defines
="HAVE_ATEXIT POSIX BSTRING"
2158 # Support site-specific machine types.
2160 cpu_type
=`echo $machine | sed -e 's/-.*//'`
2161 rest
=`echo $machine | sed -e "s/$cpu_type-//"`
2162 xm_file
=${cpu_type}/xm-
$rest.h
2163 tm_file
=${cpu_type}/$rest.h
2164 if [ -f $srcdir/config
/${cpu_type}/x-
$rest ] ; \
2165 then xmake_file
=${cpu_type}/x-
$rest; \
2168 if [ -f $srcdir/config
/${cpu_type}/t-
$rest ] ; \
2169 then tmake_file
=${cpu_type}/t-
$rest; \
2175 a29k-
*-bsd* | a29k-
*-sym1*)
2176 tm_file
="${tm_file} a29k/unix.h"
2178 xmake_file
=a29k
/x-unix
2181 a29k-
*-udi | a29k-
*-coff)
2182 tm_file
="${tm_file} dbxcoff.h a29k/udi.h"
2183 tmake_file
=a29k
/t-a29kbare
2186 tm_file
="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
2187 tmake_file
=a29k
/t-vx29k
2188 extra_parts
="crtbegin.o crtend.o"
2189 thread_file
='vxworks'
2191 a29k-
*-*) # Default a29k environment.
2194 alpha
*-*-linux-gnuecoff*)
2195 tm_file
="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
2196 target_cpu_default
="MASK_GAS"
2201 alpha
*-*-linux-gnulibc1*)
2202 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
2203 target_cpu_default
="MASK_GAS"
2204 tmake_file
="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
2205 extra_parts
="crtbegin.o crtend.o"
2206 fixincludes
=fixinc.wrap
2209 if [ x
$enable_threads = xyes
]; then
2213 alpha
*-*-linux-gnu*)
2214 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
2215 target_cpu_default
="MASK_GAS"
2216 tmake_file
="t-linux alpha/t-linux alpha/t-crtbe"
2217 extra_parts
="crtbegin.o crtend.o"
2219 fixincludes
=Makefile.
in
2221 if [ x
$enable_threads = xyes
]; then
2226 tm_file
="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsdl-elf.h"
2227 target_cpu_default
="MASK_GAS"
2228 tmake_file
="alpha/t-crtbe"
2229 extra_parts
="crtbegin.o crtend.o"
2231 fixincludes
=fixinc.wrap
2236 if [ x
$stabs = xyes
]
2238 tm_file
="${tm_file} dbx.h"
2240 if [ x
$gas != xyes
]
2242 extra_passes
="mips-tfile mips-tdump"
2247 tm_file
="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
2250 tm_file
="${tm_file} alpha/osf.h alpha/osf2or3.h"
2253 tm_file
="${tm_file} alpha/osf.h"
2254 # Some versions of OSF4 (specifically X4.0-9 296.7) have
2255 # a broken tar, so we use cpio instead.
2256 install_headers_dir
=install-headers-cpio
2260 *-*-osf4.0
[b-z
] |
*-*-osf4.
[1-9]*)
2261 target_cpu_default
=MASK_SUPPORT_ARCH
2266 tm_file
="${tm_file} alpha/win-nt.h"
2267 xm_file
="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
2268 tmake_file
=t-libc-ok
2269 xmake_file
=winnt
/x-winnt
2270 extra_host_objs
=oldnames.o
2271 extra_gcc_objs
="spawnv.o oldnames.o"
2272 fixincludes
=fixinc.winnt
2273 if [ x
$gnu_ld != xyes
]
2275 extra_programs
=ld.exe
2277 if [ x
$enable_threads = xyes
]; then
2283 xm_file
="${xm_file} alpha/xm-vms.h"
2284 tmake_file
=alpha
/t-vms
2285 fixincludes
=Makefile.
in
2288 extra_parts
="crtinit.o crtfini.o"
2290 arm-
*-coff* | armel-
*-coff*)
2292 tmake_file
=arm
/t-bare
2294 arm-
*-riscix1.
[01]*) # Acorn RISC machine (early versions)
2295 tm_file
=arm
/riscix1-1.h
2298 arm-
*-riscix*) # Acorn RISC machine
2301 tm_file
=arm
/rix-gas.h
2303 tm_file
=arm
/riscix.h
2305 xmake_file
=arm
/x-riscix
2306 tmake_file
=arm
/t-riscix
2309 arm-semi-aout | armel-semi-aout
)
2311 tmake_file
=arm
/t-semi
2312 fixincludes
=Makefile.
in # There is nothing to fix
2314 arm-semi-aof | armel-semi-aof
)
2315 tm_file
=arm
/semiaof.h
2316 tmake_file
=arm
/t-semiaof
2317 fixincludes
=Makefile.
in # There is nothing to fix
2320 tm_file
=arm
/netbsd.h
2321 xm_file
="xm-siglist.h ${xm_file}"
2322 tmake_file
="t-netbsd arm/t-netbsd"
2323 # On NetBSD, the headers are already okay, except for math.h.
2324 fixincludes
=fixinc.wrap
2326 arm-
*-linux-gnuaout*) # ARM GNU/Linux
2329 tm_file
=arm
/linux-gas.h
2330 tmake_file
=arm
/t-linux
2331 fixincludes
=Makefile.
in
2336 tmake_file
=arm
/t-bare
2338 c1-convex-
*) # Convex C1
2339 target_cpu_default
=1
2341 fixincludes
=Makefile.
in
2343 c2-convex-
*) # Convex C2
2344 target_cpu_default
=2
2346 fixincludes
=Makefile.
in
2349 target_cpu_default
=4
2351 fixincludes
=Makefile.
in
2354 target_cpu_default
=8
2356 fixincludes
=Makefile.
in
2359 target_cpu_default
=16
2361 fixincludes
=Makefile.
in
2363 clipper-intergraph-clix
*)
2364 tm_file
="${tm_file} svr3.h clipper/clix.h"
2365 xm_file
=clipper
/xm-clix.h
2366 xmake_file
=clipper
/x-clix
2367 extra_headers
=va-clipper.h
2368 extra_parts
="crtbegin.o crtend.o"
2369 install_headers_dir
=install-headers-cpio
2376 # This hasn't been upgraded to GCC 2.
2377 # fx80-alliant-*) # Alliant FX/80
2383 tm_file
="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
2384 xm_file
=pa
/xm-papro.h
2388 target_cpu_default
=1
2389 tm_file
="${tm_file} pa/pa-osf.h"
2391 fixincludes
=Makefile.
in
2394 tm_file
="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
2395 xm_file
=pa
/xm-papro.h
2399 tm_file
="${tm_file} pa/pa-osf.h"
2401 fixincludes
=Makefile.
in
2404 target_cpu_default
=1
2406 fixincludes
=Makefile.
in
2410 fixincludes
=Makefile.
in
2413 tm_file
="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
2414 xm_file
=pa
/xm-pahpux.h
2415 xmake_file
=pa
/x-pa-hpux
2418 tm_file
="${tm_file} pa/gas.h"
2420 install_headers_dir
=install-headers-cpio
2423 hppa1.0
-*-hpux8.0
[0-2]*)
2424 tm_file
="${tm_file} pa/pa-hpux.h"
2425 xm_file
=pa
/xm-pahpux.h
2426 xmake_file
=pa
/x-pa-hpux
2429 tm_file
="${tm_file} pa/pa-gas.h"
2431 tm_file
="pa/pa-oldas.h ${tm_file}"
2433 install_headers_dir
=install-headers-cpio
2436 hppa1.1
-*-hpux8.0
[0-2]*)
2437 target_cpu_default
=1
2438 tm_file
="${tm_file} pa/pa-hpux.h"
2439 xm_file
=pa
/xm-pahpux.h
2440 xmake_file
=pa
/x-pa-hpux
2443 tm_file
="${tm_file} pa/pa-gas.h"
2445 tm_file
="pa/pa-oldas.h ${tm_file}"
2447 install_headers_dir
=install-headers-cpio
2451 target_cpu_default
=1
2452 tm_file
="${tm_file} pa/pa-hpux.h"
2453 xm_file
=pa
/xm-pahpux.h
2454 xmake_file
=pa
/x-pa-hpux
2457 tm_file
="${tm_file} pa/pa-gas.h"
2459 install_headers_dir
=install-headers-cpio
2463 tm_file
="${tm_file} pa/pa-hpux.h"
2464 xm_file
=pa
/xm-pahpux.h
2465 xmake_file
=pa
/x-pa-hpux
2468 tm_file
="${tm_file} pa/pa-gas.h"
2470 install_headers_dir
=install-headers-cpio
2474 target_cpu_default
=1
2475 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
2476 xm_file
=pa
/xm-pahpux.h
2477 xmake_file
=pa
/x-pa-hpux
2481 tm_file
="${tm_file} pa/pa-gas.h"
2483 if [ x
$enable_threads = x
]; then
2484 enable_threads
=$have_pthread_h
2486 if [ x
$enable_threads = xyes
]; then
2488 tmake_file
="${tmake_file} pa/t-dce-thr"
2490 install_headers_dir
=install-headers-cpio
2494 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
2495 xm_file
=pa
/xm-pahpux.h
2496 xmake_file
=pa
/x-pa-hpux
2499 tm_file
="${tm_file} pa/pa-gas.h"
2501 if [ x
$enable_threads = x
]; then
2502 enable_threads
=$have_pthread_h
2504 if [ x
$enable_threads = xyes
]; then
2506 tmake_file
="${tmake_file} pa/t-dce-thr"
2508 install_headers_dir
=install-headers-cpio
2512 target_cpu_default
=1
2513 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
2514 xm_file
=pa
/xm-pahpux.h
2515 xmake_file
=pa
/x-pa-hpux
2518 tm_file
="${tm_file} pa/pa-gas.h"
2520 install_headers_dir
=install-headers-cpio
2524 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
2525 xm_file
=pa
/xm-pahpux.h
2526 xmake_file
=pa
/x-pa-hpux
2529 tm_file
="${tm_file} pa/pa-gas.h"
2531 install_headers_dir
=install-headers-cpio
2535 target_cpu_default
=1
2536 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
2537 xm_file
=pa
/xm-pahpux.h
2538 xmake_file
=pa
/x-pa-hpux
2541 tm_file
="${tm_file} pa/pa-gas.h"
2543 install_headers_dir
=install-headers-cpio
2547 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
2548 xm_file
=pa
/xm-pahpux.h
2549 xmake_file
=pa
/x-pa-hpux
2552 tm_file
="${tm_file} pa/pa-gas.h"
2554 install_headers_dir
=install-headers-cpio
2558 target_cpu_default
=1
2560 fixincludes
=Makefile.
in
2564 i
[34567]86-ibm-aix*) # IBM PS/2 running AIX
2567 tm_file
=i386
/aix386.h
2568 extra_parts
="crtbegin.o crtend.o"
2569 tmake_file
=i386
/t-crtstuff
2571 tm_file
=i386
/aix386ng.h
2574 xm_file
="xm-alloca.h i386/xm-aix.h ${xm_file}"
2576 xmake_file
=i386
/x-aix
2578 i
[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
2579 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
2580 xm_defines
="USG POSIX SMALL_ARG_MAX"
2581 xmake_file
=i386
/x-ncr3000
2582 if [ x
$stabs = xyes
-a x
$gas = xyes
]
2584 tm_file
=i386
/sysv4gdb.h
2586 tm_file
=i386
/sysv4.h
2588 extra_parts
="crtbegin.o crtend.o"
2589 tmake_file
=i386
/t-crtpic
2593 xm_file
=i386
/xm-next.h
2594 tmake_file
=i386
/t-next
2595 xmake_file
=i386
/x-next
2596 extra_objs
=nextstep.o
2597 if [ x
$enable_threads = xyes
]; then
2601 i
[34567]86-sequent-bsd*) # 80386 from Sequent
2605 tm_file
=i386
/seq-gas.h
2607 tm_file
=i386
/sequent.h
2610 i
[34567]86-sequent-ptx1*)
2611 xm_defines
="USG SVR3"
2612 xmake_file
=i386
/x-sysv3
2613 tm_file
=i386
/seq-sysv3.h
2614 tmake_file
=i386
/t-crtstuff
2615 fixincludes
=fixinc.
ptx
2616 extra_parts
="crtbegin.o crtend.o"
2617 install_headers_dir
=install-headers-cpio
2619 i
[34567]86-sequent-ptx2* | i
[34567]86-sequent-sysv3*)
2620 xm_defines
="USG SVR3"
2621 xmake_file
=i386
/x-sysv3
2622 tm_file
=i386
/seq2-sysv3.h
2623 tmake_file
=i386
/t-crtstuff
2624 extra_parts
="crtbegin.o crtend.o"
2625 fixincludes
=fixinc.
ptx
2626 install_headers_dir
=install-headers-cpio
2628 i
[34567]86-sequent-ptx4* | i
[34567]86-sequent-sysv4*)
2629 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
2630 xm_defines
="USG POSIX SMALL_ARG_MAX"
2632 tm_file
=i386
/ptx4-i.h
2634 extra_parts
="crtbegin.o crtend.o"
2635 fixincludes
=fixinc.
ptx
2636 install_headers_dir
=install-headers-cpio
2638 i386-sun-sunos
*) # Sun i386 roadrunner
2643 i
[34567]86-wrs-vxworks*)
2644 tm_file
=i386
/vxi386.h
2645 tmake_file
=i386
/t-i386bare
2648 tm_file
=i386
/i386-aout.h
2649 tmake_file
=i386
/t-i386bare
2651 i
[34567]86-*-bsdi* | i
[34567]86-*-bsd386*)
2652 tm_file
=i386
/bsd386.h
2653 # tmake_file=t-libc-ok
2656 tm_file
=i386
/386bsd.h
2657 # tmake_file=t-libc-ok
2658 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
2661 i
[34567]86-*-freebsdelf*)
2662 tm_file
="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
2663 # On FreeBSD, the headers are already ok, except for math.h.
2664 fixincludes
=fixinc.wrap
2665 tmake_file
=i386
/t-freebsd
2670 i
[34567]86-*-freebsd*)
2671 tm_file
=i386
/freebsd.h
2672 # On FreeBSD, the headers are already ok, except for math.h.
2673 fixincludes
=fixinc.wrap
2674 tmake_file
=i386
/t-freebsd
2676 i
[34567]86-*-netbsd*)
2677 tm_file
=i386
/netbsd.h
2678 # On NetBSD, the headers are already okay, except for math.h.
2679 fixincludes
=fixinc.wrap
2683 tm_file
=i386
/i386-coff.h
2684 tmake_file
=i386
/t-i386bare
2686 i
[34567]86-*-isc*) # 80386 running ISC system
2687 xm_file
="${xm_file} i386/xm-isc.h"
2688 xm_defines
="USG SVR3"
2690 i
[34567]86-*-isc[34]*)
2691 xmake_file
=i386
/x-isc3
2694 xmake_file
=i386
/x-isc
2697 if [ x
$gas = xyes
-a x
$stabs = xyes
]
2699 tm_file
=i386
/iscdbx.h
2700 tmake_file
=i386
/t-svr3dbx
2701 extra_parts
="svr3.ifile svr3z.ifile"
2703 tm_file
=i386
/isccoff.h
2704 tmake_file
=i386
/t-crtstuff
2705 extra_parts
="crtbegin.o crtend.o"
2707 install_headers_dir
=install-headers-cpio
2709 i
[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
2710 # with a.out format using
2712 xmake_file
=x-linux-aout
2713 tmake_file
="t-linux-aout i386/t-crtstuff"
2714 tm_file
=i386
/linux-oldld.h
2715 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
2718 i
[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
2720 xmake_file
=x-linux-aout
2721 tmake_file
="t-linux-aout i386/t-crtstuff"
2722 tm_file
=i386
/linux-aout.h
2723 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
2726 i
[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
2727 # with ELF format using the
2728 # GNU/Linux C library 5
2730 tm_file
=i386
/linux.h
2731 tmake_file
="t-linux t-linux-gnulibc1 i386/t-crtstuff"
2732 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2733 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
2735 if [ x
$enable_threads = xyes
]; then
2736 thread_file
='single'
2739 i
[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
2740 # with ELF format using glibc 2
2741 # aka GNU/Linux C library 6
2743 tm_file
=i386
/linux.h
2744 tmake_file
="t-linux i386/t-crtstuff"
2745 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2746 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
2748 if [ x
$enable_threads = xyes
]; then
2754 i
[34567]86-go32-msdos | i
[34567]86-*-go32*)
2755 xm_file
=i386
/xm-go32.h
2757 tmake_file
=i386
/t-go32
2759 i
[34567]86-pc-msdosdjgpp*)
2760 xm_file
=i386
/xm-go32.h
2762 tmake_file
=i386
/t-go32
2766 i
[34567]86-moss-msdos* | i
[34567]86-*-moss*)
2768 tmake_file
=t-libc-ok
2769 fixincludes
=Makefile.
in
2773 i
[34567]86-*-lynxos*)
2778 tm_file
=i386
/lynx-ng.h
2780 xm_file
=i386
/xm-lynx.h
2781 tmake_file
=i386
/t-i386bare
2786 # tmake_file=t-libc-ok
2789 i
[34567]86-*-osfrose*) # 386 using OSF/rose
2792 tm_file
=i386
/osfelf.h
2795 tm_file
=i386
/osfrose.h
2798 xm_file
="i386/xm-osf.h ${xm_file}"
2799 xmake_file
=i386
/x-osfrose
2800 tmake_file
=i386
/t-osf
2801 extra_objs
=halfpic.o
2803 i
[34567]86-go32-rtems*)
2805 xm_file
=i386
/xm-go32.h
2806 tm_file
=i386
/go32-rtems.h
2807 tmake_file
="i386/t-go32 t-rtems"
2809 i
[34567]86-*-rtemself*)
2811 tm_file
=i386
/rtemself.h
2812 tmake_file
="i386/t-i386bare t-rtems"
2814 i
[34567]86-*-rtems*)
2816 tm_file
=i386
/rtems.h
2817 tmake_file
="i386/t-i386bare t-rtems"
2819 i
[34567]86-*-sco3.2v5
*) # 80386 running SCO Open Server 5
2820 xm_file
="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
2821 xm_defines
="USG SVR3"
2822 xmake_file
=i386
/x-sco5
2823 fixincludes
=fixinc.sco
2824 install_headers_dir
=install-headers-cpio
2826 tmake_file
=i386
/t-sco5
2827 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2829 i
[34567]86-*-sco3.2v4
*) # 80386 running SCO 3.2v4 system
2830 xm_file
="${xm_file} i386/xm-sco.h"
2831 xm_defines
="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
2832 xmake_file
=i386
/x-sco4
2833 fixincludes
=fixinc.sco
2834 install_headers_dir
=install-headers-cpio
2835 if [ x
$stabs = xyes
]
2837 tm_file
=i386
/sco4dbx.h
2838 tmake_file
=i386
/t-svr3dbx
2839 extra_parts
="svr3.ifile svr3z.rfile"
2842 tmake_file
=i386
/t-crtstuff
2843 extra_parts
="crtbegin.o crtend.o"
2847 i
[34567]86-*-sco*) # 80386 running SCO system
2848 xm_file
=i386
/xm-sco.h
2849 xmake_file
=i386
/x-sco
2850 install_headers_dir
=install-headers-cpio
2851 if [ x
$stabs = xyes
]
2853 tm_file
=i386
/scodbx.h
2854 tmake_file
=i386
/t-svr3dbx
2855 extra_parts
="svr3.ifile svr3z.rfile"
2858 extra_parts
="crtbegin.o crtend.o"
2859 tmake_file
=i386
/t-crtstuff
2863 i
[34567]86-*-solaris2*)
2864 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
2865 xm_defines
="USG POSIX SMALL_ARG_MAX"
2866 if [ x
$stabs = xyes
]
2868 tm_file
=i386
/sol2dbg.h
2872 tmake_file
=i386
/t-sol2
2873 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2877 fixincludes
=fixinc.svr4
;;
2879 fixincludes
=fixinc.wrap
;;
2881 if [ x
$enable_threads = xyes
]; then
2882 thread_file
='solaris'
2885 i
[34567]86-*-sysv5*) # Intel x86 on System V Release 5
2886 xm_file
="xm-alloca.h xm-siglist.h ${xm_file}"
2887 xm_defines
="USG POSIX"
2888 tm_file
=i386
/sysv4.h
2889 if [ x
$stabs = xyes
]
2891 tm_file
="${tm_file} dbx.h"
2893 tmake_file
=i386
/t-crtpic
2895 extra_parts
="crtbegin.o crtend.o"
2896 fixincludes
=Makefile.
in # The headers are just fine, thank you.
2898 i
[34567]86-*-sysv4*) # Intel 80386's running system V.4
2899 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
2900 xm_defines
="USG POSIX SMALL_ARG_MAX"
2901 tm_file
=i386
/sysv4.h
2902 if [ x
$stabs = xyes
]
2904 tm_file
="${tm_file} dbx.h"
2906 tmake_file
=i386
/t-crtpic
2908 extra_parts
="crtbegin.o crtend.o"
2910 i
[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
2912 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
2913 xm_defines
="USE_C_ALLOCA SMALL_ARG_MAX"
2914 fixincludes
=Makefile.
in #Don't do it on OSF/1
2915 if [ x
$stabs = xyes
]
2917 tm_file
=i386
/osf1elfgdb.h
2919 tm_file
=i386
/osf1elf.h
2921 tmake_file
=i386
/t-osf1elf
2922 xmake_file
=i386
/x-osf1elf
2923 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
2925 i
[34567]86-*-sysv*) # Intel 80386's running system V
2926 xm_defines
="USG SVR3"
2927 xmake_file
=i386
/x-sysv3
2930 if [ x
$stabs = xyes
]
2932 tm_file
=i386
/svr3dbx.h
2933 tmake_file
=i386
/t-svr3dbx
2934 extra_parts
="svr3.ifile svr3z.rfile"
2936 tm_file
=i386
/svr3gas.h
2937 extra_parts
="crtbegin.o crtend.o"
2938 tmake_file
=i386
/t-crtstuff
2941 tm_file
=i386
/sysv3.h
2942 extra_parts
="crtbegin.o crtend.o"
2943 tmake_file
=i386
/t-crtstuff
2946 i386-
*-vsta) # Intel 80386's running VSTa kernel
2947 xm_file
="${xm_file} i386/xm-vsta.h"
2949 tmake_file
=i386
/t-vsta
2950 xmake_file
=i386
/x-vsta
2952 i
[34567]86-*-pe | i
[34567]86-*-cygwin32)
2953 xm_file
="${xm_file} i386/xm-cygwin32.h"
2954 tmake_file
=i386
/t-cygwin32
2955 tm_file
=i386
/cygwin32.h
2956 xmake_file
=i386
/x-cygwin32
2958 fixincludes
=Makefile.
in
2959 if [ x
$enable_threads = xyes
]; then
2964 i
[34567]86-*-mingw32*)
2965 tm_file
=i386
/mingw32.h
2966 xm_file
="${xm_file} i386/xm-mingw32.h"
2967 tmake_file
=i386
/t-cygwin32
2969 xmake_file
=i386
/x-cygwin32
2970 fixincludes
=Makefile.
in
2971 if [ x
$enable_threads = xyes
]; then
2978 *minwg32crt
* |
*mingw32
*)
2979 tm_file
="${tm_file} i386/crtdll.h"
2983 i
[34567]86-*-winnt3*)
2984 tm_file
=i386
/win-nt.h
2985 out_file
=i386
/i386.c
2986 xm_file
="xm-winnt.h ${xm_file}"
2987 xmake_file
=winnt
/x-winnt
2988 tmake_file
=i386
/t-winnt
2989 extra_host_objs
="winnt.o oldnames.o"
2990 extra_gcc_objs
="spawnv.o oldnames.o"
2991 fixincludes
=fixinc.winnt
2992 if [ x
$gnu_ld != xyes
]
2994 extra_programs
=ld.exe
2996 if [ x
$enable_threads = xyes
]; then
3000 i
[34567]86-dg-dgux*)
3001 xm_file
="xm-alloca.h xm-siglist.h ${xm_file}"
3002 xm_defines
="USG POSIX"
3003 out_file
=i386
/dgux.c
3005 tmake_file
=i386
/t-dgux
3006 xmake_file
=i386
/x-dgux
3007 fixincludes
=fixinc.dgux
3008 install_headers_dir
=install-headers-cpio
3010 i860-alliant-
*) # Alliant FX/2800
3011 tm_file
="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
3012 xm_file
="${xm_file}"
3013 xmake_file
=i860
/x-fx2800
3014 tmake_file
=i860
/t-fx2800
3015 extra_parts
="crtbegin.o crtend.o"
3018 tm_file
="${tm_file} i860/bsd.h"
3021 tm_file
="${tm_file} i860/bsd-gas.h"
3026 tm_file
="${tm_file} i860/mach.h"
3027 tmake_file
=t-libc-ok
3029 i860-
*-osf*) # Intel Paragon XP/S, OSF/1AD
3030 tm_file
="${tm_file} svr3.h i860/paragon.h"
3031 xm_defines
="USG SVR3"
3035 tm_file
="${tm_file} svr3.h i860/sysv3.h"
3036 xm_defines
="USG SVR3"
3037 xmake_file
=i860
/x-sysv3
3038 extra_parts
="crtbegin.o crtend.o"
3041 tm_file
="${tm_file} svr4.h i860/sysv4.h"
3042 xm_defines
="USG SVR3"
3043 xmake_file
=i860
/x-sysv4
3045 extra_parts
="crtbegin.o crtend.o"
3047 i960-wrs-vxworks5 | i960-wrs-vxworks5.0
*)
3048 tm_file
="${tm_file} i960/vx960.h"
3049 tmake_file
=i960
/t-vxworks960
3051 thread_file
='vxworks'
3053 i960-wrs-vxworks5
* | i960-wrs-vxworks
)
3054 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
3055 tmake_file
=i960
/t-vxworks960
3057 thread_file
='vxworks'
3060 tm_file
="${tm_file} i960/vx960.h"
3061 tmake_file
=i960
/t-vxworks960
3063 thread_file
='vxworks'
3066 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
3067 tmake_file
=i960
/t-960bare
3071 tmake_file
="i960/t-960bare t-rtems"
3072 tm_file
="${tm_file} dbxcoff.h i960/rtems.h"
3075 i960-
*-*) # Default i960 environment.
3079 extra_parts
="crtinit.o crtfini.o"
3081 m68000-convergent-sysv
*)
3083 xm_file
="m68k/xm-3b1.h ${xm_file}"
3086 extra_headers
=math-68881.h
3088 m68000-hp-bsd
*) # HP 9000/200 running BSD
3089 tm_file
=m68k
/hp2bsd.h
3090 xmake_file
=m68k
/x-hp2bsd
3092 extra_headers
=math-68881.h
3094 m68000-hp-hpux
*) # HP 9000 series 300
3095 xm_file
="xm_alloca.h ${xm_file}"
3096 xm_defines
="USG NO_SYS_SIGLIST"
3099 xmake_file
=m68k
/x-hp320g
3100 tm_file
=m68k
/hp310g.h
3102 xmake_file
=m68k
/x-hp320
3103 tm_file
=m68k
/hp310.h
3105 install_headers_dir
=install-headers-cpio
3107 extra_headers
=math-68881.h
3112 extra_headers
=math-68881.h
3115 tm_file
=m68k
/sun2o4.h
3117 extra_headers
=math-68881.h
3120 xm_file
="m68k/xm-3b1.h ${xm_file}"
3129 extra_headers
=math-68881.h
3131 m68k-apple-aux
*) # Apple Macintosh running A/UX
3132 xm_defines
="USG AUX"
3133 tmake_file
=m68k
/t-aux
3134 install_headers_dir
=install-headers-cpio
3135 extra_headers
=math-68881.h
3136 extra_parts
="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
3138 if [ "$gnu_ld" = yes ]
3140 tm_file
="${tm_file} m68k/auxgld.h"
3142 tm_file
="${tm_file} m68k/auxld.h"
3146 tm_file
="${tm_file} m68k/auxgas.h"
3148 tm_file
="${tm_file} m68k/auxas.h"
3150 tm_file
="${tm_file} m68k/a-ux.h"
3153 tm_file
=m68k
/apollo68.h
3154 xmake_file
=m68k
/x-apollo68
3156 extra_headers
=math-68881.h
3158 m68k-altos-sysv
*) # Altos 3068
3161 tm_file
=m68k
/altos3068.h
3164 echo "The Altos is supported only with the GNU assembler" 1>&2
3167 extra_headers
=math-68881.h
3169 m68k-bull-sysv
*) # Bull DPX/2
3172 if [ x
$stabs = xyes
]
3174 tm_file
=m68k
/dpx2cdbx.h
3176 tm_file
=m68k
/dpx2g.h
3181 xm_file
="xm-alloca.h ${xm_file}"
3183 xmake_file
=m68k
/x-dpx2
3185 extra_headers
=math-68881.h
3187 m68k-atari-sysv4
*) # Atari variant of V.4.
3188 tm_file
=m68k
/atari.h
3189 xm_file
="xm-alloca.h ${xm_file}"
3190 xm_defines
="USG FULL_PROTOTYPES"
3192 extra_parts
="crtbegin.o crtend.o"
3193 extra_headers
=math-68881.h
3195 m68k-motorola-sysv
*)
3196 tm_file
=m68k
/mot3300.h
3197 xm_file
="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
3198 xm_defines
=NO_SYS_SIGLIST
3201 xmake_file
=m68k
/x-mot3300-gas
3202 if [ x
$gnu_ld = xyes
]
3204 tmake_file
=m68k
/t-mot3300-gald
3206 tmake_file
=m68k
/t-mot3300-gas
3210 xmake_file
=m68k
/x-mot3300
3211 if [ x
$gnu_ld = xyes
]
3213 tmake_file
=m68k
/t-mot3300-gld
3215 tmake_file
=m68k
/t-mot3300
3219 gdb_needs_out_file_path
=yes
3220 extra_parts
="crt0.o mcrt0.o"
3221 extra_headers
=math-68881.h
3223 m68k-ncr-sysv
*) # NCR Tower 32 SVR3
3224 tm_file
=m68k
/tower-as.h
3225 xm_defines
="USG SVR3"
3226 xmake_file
=m68k
/x-tower
3227 extra_parts
="crtbegin.o crtend.o"
3228 extra_headers
=math-68881.h
3231 tm_file
=m68k
/plexus.h
3232 xm_file
="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
3235 extra_headers
=math-68881.h
3239 xm_file
="xm-alloca.h ${xm_file}"
3241 extra_headers
=math-68881.h
3244 xm_file
="xm-alloca.h m68k/xm-crds.h ${xm_file}"
3245 xm_defines
="USG unos"
3246 xmake_file
=m68k
/x-crds
3249 extra_headers
=math-68881.h
3251 m68k-cbm-sysv4
*) # Commodore variant of V.4.
3253 xm_file
="xm-alloca.h ${xm_file}"
3254 xm_defines
="USG FULL_PROTOTYPES"
3255 xmake_file
=m68k
/x-amix
3257 extra_parts
="crtbegin.o crtend.o"
3258 extra_headers
=math-68881.h
3261 tm_file
=m68k
/ccur-GAS.h
3262 xmake_file
=m68k
/x-ccur
3263 extra_headers
=math-68881.h
3266 m68k-hp-bsd4.4
*) # HP 9000/3xx running 4.4bsd
3267 tm_file
=m68k
/hp3bsd44.h
3268 xmake_file
=m68k
/x-hp3bsd44
3270 extra_headers
=math-68881.h
3272 m68k-hp-bsd
*) # HP 9000/3xx running Berkeley Unix
3273 tm_file
=m68k
/hp3bsd.h
3275 extra_headers
=math-68881.h
3278 if [ x
$with_fp = xno
]
3280 tm_file
=m68k
/isi-nfp.h
3285 extra_headers
=math-68881.h
3287 m68k-hp-hpux7
*) # HP 9000 series 300 running HPUX version 7.
3288 xm_file
="xm_alloca.h ${xm_file}"
3289 xm_defines
="USG NO_SYS_SIGLIST"
3292 xmake_file
=m68k
/x-hp320g
3293 tm_file
=m68k
/hp320g.h
3295 xmake_file
=m68k
/x-hp320
3296 tm_file
=m68k
/hpux7.h
3298 install_headers_dir
=install-headers-cpio
3300 extra_headers
=math-68881.h
3302 m68k-hp-hpux
*) # HP 9000 series 300
3303 xm_file
="xm_alloca.h ${xm_file}"
3304 xm_defines
="USG NO_SYS_SIGLIST"
3307 xmake_file
=m68k
/x-hp320g
3308 tm_file
=m68k
/hp320g.h
3310 xmake_file
=m68k
/x-hp320
3311 tm_file
=m68k
/hp320.h
3313 install_headers_dir
=install-headers-cpio
3315 extra_headers
=math-68881.h
3318 tm_file
=m68k
/sun3mach.h
3320 extra_headers
=math-68881.h
3325 tm_file
=m68k
/news3gas.h
3327 tm_file
=m68k
/news3.h
3330 extra_headers
=math-68881.h
3332 m68k-sony-bsd
* | m68k-sony-newsos
*)
3335 tm_file
=m68k
/newsgas.h
3340 extra_headers
=math-68881.h
3342 m68k-next-nextstep2
*)
3343 tm_file
=m68k
/next21.h
3344 xm_file
="m68k/xm-next.h ${xm_file}"
3345 tmake_file
=m68k
/t-next
3346 xmake_file
=m68k
/x-next
3347 extra_objs
=nextstep.o
3348 extra_headers
=math-68881.h
3351 m68k-next-nextstep3
*)
3353 xm_file
="m68k/xm-next.h ${xm_file}"
3354 tmake_file
=m68k
/t-next
3355 xmake_file
=m68k
/x-next
3356 extra_objs
=nextstep.o
3357 extra_headers
=math-68881.h
3358 if [ x
$enable_threads = xyes
]; then
3363 if [ x
$with_fp = xno
]
3365 tm_file
=m68k
/sun3n3.h
3367 tm_file
=m68k
/sun3o3.h
3370 extra_headers
=math-68881.h
3372 m68k-sun-sunos
*) # For SunOS 4 (the default).
3373 if [ x
$with_fp = xno
]
3375 tm_file
=m68k
/sun3n.h
3380 extra_headers
=math-68881.h
3383 tm_file
=m68k
/vxm68k.h
3384 tmake_file
=m68k
/t-vxworks68
3385 extra_headers
=math-68881.h
3386 thread_file
='vxworks'
3389 tmake_file
=m68k
/t-m68kbare
3390 tm_file
="m68k/m68k-aout.h libgloss.h"
3391 extra_headers
=math-68881.h
3394 tmake_file
=m68k
/t-m68kbare
3395 tm_file
="m68k/m68k-coff.h dbx.h libgloss.h"
3396 extra_headers
=math-68881.h
3403 tm_file
=m68k
/lynx-ng.h
3405 xm_file
=m68k
/xm-lynx.h
3407 tmake_file
=m68k
/t-lynx
3408 extra_headers
=math-68881.h
3411 tm_file
=m68k
/netbsd.h
3412 # On NetBSD, the headers are already okay, except for math.h.
3413 fixincludes
=fixinc.wrap
3416 m68k-
*-sysv3*) # Motorola m68k's running system V.3
3417 xm_file
="xm-alloca.h ${xm_file}"
3419 xmake_file
=m68k
/x-m68kv
3420 extra_parts
="crtbegin.o crtend.o"
3421 extra_headers
=math-68881.h
3423 m68k-
*-sysv4*) # Motorola m68k's running system V.4
3424 tm_file
=m68k
/m68kv4.h
3425 xm_file
="xm-alloca.h ${xm_file}"
3428 extra_parts
="crtbegin.o crtend.o"
3429 extra_headers
=math-68881.h
3431 m68k-
*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
3434 tm_file
=m68k
/linux-aout.h
3435 tmake_file
="t-linux-aout m68k/t-linux-aout"
3436 fixincludes
=Makefile.
in # The headers are ok already.
3437 extra_headers
=math-68881.h
3440 m68k-
*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
3441 # with ELF format using the
3442 # GNU/Linux C library 5
3444 tm_file
=m68k
/linux.h
3445 tmake_file
="t-linux t-linux-gnulibc1 m68k/t-linux"
3446 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3447 fixincludes
=Makefile.
in # The headers are ok already.
3448 extra_headers
=math-68881.h
3451 m68k-
*-linux-gnu*) # Motorola m68k's running GNU/Linux
3452 # with ELF format using glibc 2
3453 # aka the GNU/Linux C library 6.
3455 tm_file
=m68k
/linux.h
3456 tmake_file
="t-linux m68k/t-linux"
3457 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3458 fixincludes
=Makefile.
in # The headers are ok already.
3459 extra_headers
=math-68881.h
3461 if [ x
$enable_threads = xyes
]; then
3466 tmake_file
=m68k
/t-m68kbare
3467 tm_file
=m68k
/m68k-psos.h
3468 extra_headers
=math-68881.h
3471 tmake_file
="m68k/t-m68kbare t-rtems"
3472 tm_file
=m68k
/rtems.h
3473 extra_headers
=math-68881.h
3479 tm_file
=m88k
/dguxbcs.h
3480 tmake_file
=m88k
/t-dguxbcs
3484 tmake_file
=m88k
/t-dgux
3487 extra_parts
="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
3488 xmake_file
=m88k
/x-dgux
3491 tmake_file
=m88k
/t-dgux-gas
3493 fixincludes
=fixinc.dgux
3495 m88k-dolphin-sysv3
*)
3496 tm_file
=m88k
/dolph.h
3497 extra_parts
="crtbegin.o crtend.o"
3498 xm_file
="m88k/xm-sysv3.h ${xm_file}"
3499 xmake_file
=m88k
/x-dolph
3502 tmake_file
=m88k
/t-m88k-gas
3505 m88k-tektronix-sysv3
)
3506 tm_file
=m88k
/tekXD88.h
3507 extra_parts
="crtbegin.o crtend.o"
3508 xm_file
="m88k/xm-sysv3.h ${xm_file}"
3509 xmake_file
=m88k
/x-tekXD88
3512 tmake_file
=m88k
/t-m88k-gas
3516 tm_file
=m88k
/m88k-aout.h
3519 tm_file
=m88k
/m88k-coff.h
3520 tmake_file
=m88k
/t-bug
3524 extra_parts
="crtbegin.o crtend.o"
3527 tmake_file
=m88k
/t-luna-gas
3529 tmake_file
=m88k
/t-luna
3533 tm_file
=m88k
/sysv3.h
3534 extra_parts
="crtbegin.o crtend.o"
3535 xm_file
="m88k/xm-sysv3.h ${xm_file}"
3536 xmake_file
=m88k
/x-sysv3
3539 tmake_file
=m88k
/t-m88k-gas
3543 tm_file
=m88k
/sysv4.h
3544 extra_parts
="crtbegin.o crtend.o"
3545 xmake_file
=m88k
/x-sysv4
3546 tmake_file
=m88k
/t-sysv4
3548 mips-sgi-irix6
*) # SGI System V.4., IRIX 6
3549 tm_file
=mips
/iris6.h
3550 xm_file
=mips
/xm-iris6.h
3551 fixincludes
=fixinc.irix
3552 xmake_file
=mips
/x-iris6
3553 tmake_file
=mips
/t-iris6
3554 if [ x
$enable_threads = xyes
]; then
3559 tm_file
="mips/elf.h libgloss.h"
3560 tmake_file
=mips
/t-ecoff
3563 extra_parts
="crtbegin.o crtend.o"
3564 # thread_file='vxworks'
3566 mips-sgi-irix5cross64
) # Irix5 host, Irix 6 target, cross64
3567 tm_file
="mips/iris6.h mips/cross64.h"
3568 xm_defines
="USG HAVE_INTTYPES_H"
3569 fixincludes
=Makefile.
in
3570 xmake_file
=mips
/x-iris
3571 tmake_file
=mips
/t-cross64
3572 # See comment in mips/iris[56].h files.
3574 if [ x
$enable_threads = xyes
]; then
3581 if [ x
$stabs = xyes
]
3583 tm_file
=mips
/iris5gdb.h
3585 tm_file
="mips/sni-svr4.h mips/sni-gas.h"
3588 tm_file
=mips
/sni-svr4.h
3591 xmake_file
=mips
/x-sni-svr4
3592 tmake_file
=mips
/t-mips-gas
3593 if [ x
$gnu_ld != xyes
]
3598 mips-sgi-irix5
*) # SGI System V.4., IRIX 5
3601 tm_file
="mips/iris5.h mips/iris5gas.h"
3602 if [ x
$stabs = xyes
]
3604 tm_file
="${tm_file} dbx.h"
3607 tm_file
=mips
/iris5.h
3609 xm_defines
="USG HAVE_INTTYPES_H"
3610 fixincludes
=fixinc.irix
3611 xmake_file
=mips
/x-iris
3612 # mips-tfile doesn't work yet
3613 tmake_file
=mips
/t-mips-gas
3614 # See comment in mips/iris5.h file.
3616 if [ x
$enable_threads = xyes
]; then
3620 mips-sgi-irix4loser
*) # Mostly like a MIPS.
3621 tm_file
="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
3622 if [ x
$stabs = xyes
]; then
3623 tm_file
="${tm_file} dbx.h"
3626 xmake_file
=mips
/x-iris
3629 tmake_file
=mips
/t-mips-gas
3631 extra_passes
="mips-tfile mips-tdump"
3633 if [ x
$gnu_ld != xyes
]
3637 if [ x
$enable_threads = xyes
]; then
3641 mips-sgi-irix4
*) # Mostly like a MIPS.
3642 tm_file
="mips/iris3.h ${tm_file} mips/iris4.h"
3643 if [ x
$stabs = xyes
]; then
3644 tm_file
="${tm_file} dbx.h"
3647 xmake_file
=mips
/x-iris
3650 tmake_file
=mips
/t-mips-gas
3652 extra_passes
="mips-tfile mips-tdump"
3654 if [ x
$gnu_ld != xyes
]
3658 if [ x
$enable_threads = xyes
]; then
3662 mips-sgi-
*) # Mostly like a MIPS.
3663 tm_file
="mips/iris3.h ${tm_file}"
3664 if [ x
$stabs = xyes
]; then
3665 tm_file
="${tm_file} dbx.h"
3668 xmake_file
=mips
/x-iris3
3671 tmake_file
=mips
/t-mips-gas
3673 extra_passes
="mips-tfile mips-tdump"
3675 if [ x
$gnu_ld != xyes
]
3680 mips-dec-osfrose
*) # Decstation running OSF/1 reference port with OSF/rose.
3681 tm_file
="mips/osfrose.h ${tm_file}"
3682 xmake_file
=mips
/x-osfrose
3683 tmake_file
=mips
/t-osfrose
3684 extra_objs
=halfpic.o
3687 mips-dec-osf
*) # Decstation running OSF/1 as shipped by DIGITAL
3688 tm_file
=mips
/dec-osf1.h
3689 if [ x
$stabs = xyes
]; then
3690 tm_file
="${tm_file} dbx.h"
3692 xmake_file
=mips
/x-dec-osf1
3695 tmake_file
=mips
/t-mips-gas
3697 tmake_file
=mips
/t-ultrix
3698 extra_passes
="mips-tfile mips-tdump"
3700 if [ x
$gnu_ld != xyes
]
3705 mips-dec-bsd
*) # Decstation running 4.4 BSD
3706 tm_file
=mips
/dec-bsd.h
3710 tmake_file
=mips
/t-mips-gas
3712 tmake_file
=mips
/t-ultrix
3713 extra_passes
="mips-tfile mips-tdump"
3715 if [ x
$gnu_ld != xyes
]
3720 mips-dec-netbsd
*) # Decstation running NetBSD
3721 tm_file
=mips
/netbsd.h
3722 # On NetBSD, the headers are already okay, except for math.h.
3723 fixincludes
=fixinc.wrap
3726 mips-sony-bsd
* | mips-sony-newsos
*) # Sony NEWS 3600 or risc/news.
3727 tm_file
="mips/news4.h ${tm_file}"
3728 if [ x
$stabs = xyes
]; then
3729 tm_file
="${tm_file} dbx.h"
3733 tmake_file
=mips
/t-mips-gas
3735 extra_passes
="mips-tfile mips-tdump"
3737 if [ x
$gnu_ld != xyes
]
3741 xmake_file
=mips
/x-sony
3743 mips-sony-sysv
*) # Sony NEWS 3800 with NEWSOS5.0.
3744 # That is based on svr4.
3745 # t-svr4 is not right because this system doesn't use ELF.
3746 tm_file
="mips/news5.h ${tm_file}"
3747 if [ x
$stabs = xyes
]; then
3748 tm_file
="${tm_file} dbx.h"
3750 xm_file
="xm-siglist.h ${xm_file}"
3754 tmake_file
=mips
/t-mips-gas
3756 extra_passes
="mips-tfile mips-tdump"
3758 if [ x
$gnu_ld != xyes
]
3763 mips-tandem-sysv4
*) # Tandem S2 running NonStop UX
3764 tm_file
="mips/svr4-5.h mips/svr4-t.h"
3765 if [ x
$stabs = xyes
]; then
3766 tm_file
="${tm_file} dbx.h"
3768 xm_file
="xm-siglist.h ${xm_file}"
3770 xmake_file
=mips
/x-sysv
3773 tmake_file
=mips
/t-mips-gas
3774 extra_parts
="crtbegin.o crtend.o"
3776 tmake_file
=mips
/t-mips
3777 extra_passes
="mips-tfile mips-tdump"
3779 if [ x
$gnu_ld != xyes
]
3784 mips-
*-ultrix* | mips-dec-mach3
) # Decstation.
3785 tm_file
="mips/ultrix.h ${tm_file}"
3786 if [ x
$stabs = xyes
]; then
3787 tm_file
="${tm_file} dbx.h"
3789 xmake_file
=mips
/x-ultrix
3792 tmake_file
=mips
/t-mips-gas
3794 tmake_file
=mips
/t-ultrix
3795 extra_passes
="mips-tfile mips-tdump"
3797 if [ x
$gnu_ld != xyes
]
3802 mips-
*-riscos[56789]bsd
*)
3803 tm_file
=mips
/bsd-5.h
# MIPS BSD 4.3, RISC-OS 5.0
3804 if [ x
$stabs = xyes
]; then
3805 tm_file
="${tm_file} dbx.h"
3809 tmake_file
=mips
/t-bsd-gas
3811 tmake_file
=mips
/t-bsd
3812 extra_passes
="mips-tfile mips-tdump"
3814 if [ x
$gnu_ld != xyes
]
3819 mips-
*-bsd* | mips-
*-riscosbsd* | mips-
*-riscos[1234]bsd
*)
3820 tm_file
="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
3821 if [ x
$stabs = xyes
]; then
3822 tm_file
="${tm_file} dbx.h"
3826 tmake_file
=mips
/t-bsd-gas
3828 tmake_file
=mips
/t-bsd
3829 extra_passes
="mips-tfile mips-tdump"
3831 if [ x
$gnu_ld != xyes
]
3836 mips-
*-riscos[56789]sysv4
*)
3837 tm_file
=mips
/svr4-5.h
# MIPS System V.4., RISC-OS 5.0
3838 if [ x
$stabs = xyes
]; then
3839 tm_file
="${tm_file} dbx.h"
3841 xm_file
="xm-siglist.h ${xm_file}"
3842 xmake_file
=mips
/x-sysv
3845 tmake_file
=mips
/t-svr4-gas
3847 tmake_file
=mips
/t-svr4
3848 extra_passes
="mips-tfile mips-tdump"
3850 if [ x
$gnu_ld != xyes
]
3855 mips-
*-sysv4* | mips-
*-riscos[1234]sysv4
* | mips-
*-riscossysv4*)
3856 tm_file
="mips/svr4-4.h ${tm_file}"
3857 if [ x
$stabs = xyes
]; then
3858 tm_file
="${tm_file} dbx.h"
3861 xmake_file
=mips
/x-sysv
3864 tmake_file
=mips
/t-svr4-gas
3866 tmake_file
=mips
/t-svr4
3867 extra_passes
="mips-tfile mips-tdump"
3869 if [ x
$gnu_ld != xyes
]
3874 mips-
*-riscos[56789]sysv
*)
3875 tm_file
=mips
/svr3-5.h
# MIPS System V.3, RISC-OS 5.0
3876 if [ x
$stabs = xyes
]; then
3877 tm_file
="${tm_file} dbx.h"
3880 xmake_file
=mips
/x-sysv
3883 tmake_file
=mips
/t-svr3-gas
3885 tmake_file
=mips
/t-svr3
3886 extra_passes
="mips-tfile mips-tdump"
3888 if [ x
$gnu_ld != xyes
]
3893 mips-
*-sysv* | mips-
*-riscos*sysv
*)
3894 tm_file
="mips/svr3-4.h ${tm_file}"
3895 if [ x
$stabs = xyes
]; then
3896 tm_file
="${tm_file} dbx.h"
3899 xmake_file
=mips
/x-sysv
3902 tmake_file
=mips
/t-svr3-gas
3904 tmake_file
=mips
/t-svr3
3905 extra_passes
="mips-tfile mips-tdump"
3907 if [ x
$gnu_ld != xyes
]
3912 mips-
*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
3913 tm_file
=mips
/mips-5.h
3914 if [ x
$stabs = xyes
]; then
3915 tm_file
="${tm_file} dbx.h"
3919 tmake_file
=mips
/t-mips-gas
3921 extra_passes
="mips-tfile mips-tdump"
3923 if [ x
$gnu_ld != xyes
]
3931 tm_file
=mips
/ecoffl.h
3932 if [ x
$stabs = xyes
]; then
3933 tm_file
="${tm_file} dbx.h"
3935 tmake_file
=mips
/t-ecoff
3938 tm_file
="gofast.h mips/ecoff.h"
3939 if [ x
$stabs = xyes
]; then
3940 tm_file
="${tm_file} dbx.h"
3942 tmake_file
=mips
/t-ecoff
3945 tm_file
="mips/elfl.h libgloss.h"
3946 tmake_file
=mips
/t-ecoff
3949 tm_file
="mips/elf.h libgloss.h"
3950 tmake_file
=mips
/t-ecoff
3953 tm_file
="mips/elfl64.h libgloss.h"
3954 tmake_file
=mips
/t-ecoff
3956 mips64orionel-
*-elf*)
3957 tm_file
="mips/elforion.h mips/elfl64.h libgloss.h"
3958 tmake_file
=mips
/t-ecoff
3961 tm_file
="mips/elf64.h libgloss.h"
3962 tmake_file
=mips
/t-ecoff
3965 tm_file
="mips/elforion.h mips/elf64.h libgloss.h"
3966 tmake_file
=mips
/t-ecoff
3968 mips64orion-
*-rtems*)
3969 tm_file
="mips/elforion.h mips/elfl64.h mips/rtems64.h"
3970 tmake_file
="mips/t-ecoff t-rtems"
3973 tm_file
="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
3974 tmake_file
=mips
/t-r3900
3977 tm_file
="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
3978 tmake_file
=mips
/t-r3900
3980 mips-
*-*) # Default MIPS RISC-OS 4.0.
3981 if [ x
$stabs = xyes
]; then
3982 tm_file
="${tm_file} dbx.h"
3986 tmake_file
=mips
/t-mips-gas
3988 extra_passes
="mips-tfile mips-tdump"
3990 if [ x
$gnu_ld != xyes
]
3997 tm_file
="mn10200/mn10200.h"
3998 if [ x
$stabs = xyes
]
4000 tm_file
="${tm_file} dbx.h"
4006 tm_file
="mn10300/mn10300.h"
4007 if [ x
$stabs = xyes
]
4009 tm_file
="${tm_file} dbx.h"
4014 tm_file
=ns32k
/encore.h
4018 tm_file
=ns32k
/sequent.h
4022 tm_file
=ns32k
/tek6100.h
4026 tm_file
=ns32k
/tek6200.h
4029 # This has not been updated to GCC 2.
4032 # xmake_file=ns32k/x-genix
4033 # tm_file=ns32k/genix.h
4037 tm_file
=ns32k
/merlin.h
4041 tm_file
=ns32k
/pc532-mach.h
4045 tm_file
=ns32k
/pc532-min.h
4046 xm_file
="ns32k/xm-pc532-min.h ${xm-file}"
4050 ns32k-pc532-netbsd
*)
4051 tm_file
=ns32k
/netbsd.h
4052 # On NetBSD, the headers are already okay, except for math.h.
4053 fixincludes
=fixinc.wrap
4057 tm_file
="${tm_file} pdp11/2bsd.h"
4063 xmake_file
=pyr
/x-pyr
4070 xmake_file
=romp
/x-mach
4075 tm_file
=rs6000
/beos.h
4076 xm_file
=rs6000
/xm-beos.h
4077 tmake_file
=rs6000
/t-beos
4078 xmake_file
=rs6000
/x-beos
4080 powerpc-
*-sysv* | powerpc-
*-elf*)
4081 tm_file
=rs6000
/sysv4.h
4082 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4083 xm_defines
="USG POSIX"
4084 extra_headers
=ppc-asm.h
4087 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
4089 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4091 xmake_file
=rs6000
/x-sysv4
4094 tm_file
=rs6000
/eabiaix.h
4095 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4096 fixincludes
=Makefile.
in
4097 extra_headers
=ppc-asm.h
4100 tm_file
=rs6000
/eabisim.h
4101 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4102 fixincludes
=Makefile.
in
4103 extra_headers
=ppc-asm.h
4106 tm_file
=rs6000
/eabi.h
4109 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4111 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4113 fixincludes
=Makefile.
in
4114 extra_headers
=ppc-asm.h
4117 tm_file
=rs6000
/rtems.h
4120 tmake_file
="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
4122 tmake_file
="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
4124 fixincludes
=Makefile.
in
4125 extra_headers
=ppc-asm.h
4127 powerpc-
*-linux-gnulibc1)
4128 tm_file
=rs6000
/linux.h
4129 xm_file
=rs6000
/xm-sysv4.h
4130 out_file
=rs6000
/rs6000.c
4133 tmake_file
="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
4135 tmake_file
="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
4138 fixincludes
=Makefile.
in
4139 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4140 extra_headers
=ppc-asm.h
4141 if [ x
$enable_threads = xyes
]; then
4145 powerpc-
*-linux-gnu*)
4146 tm_file
=rs6000
/linux.h
4147 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4148 xm_defines
="USG ${xm_defines}"
4149 out_file
=rs6000
/rs6000.c
4152 tmake_file
="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
4154 tmake_file
="rs6000/t-ppc t-linux rs6000/t-ppccomm"
4157 fixincludes
=Makefile.
in
4158 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4159 extra_headers
=ppc-asm.h
4160 if [ x
$enable_threads = xyes
]; then
4164 powerpc-wrs-vxworks
*)
4166 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4167 xm_defines
="USG POSIX"
4168 tm_file
=rs6000
/vxppc.h
4169 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4170 extra_headers
=ppc-asm.h
4171 thread_file
='vxworks'
4173 powerpcle-
*-sysv* | powerpcle-
*-elf*)
4174 tm_file
=rs6000
/sysv4le.h
4175 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4176 xm_defines
="USG POSIX"
4179 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
4181 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4183 xmake_file
=rs6000
/x-sysv4
4184 extra_headers
=ppc-asm.h
4186 powerpcle-
*-eabisim*)
4187 tm_file
=rs6000
/eabilesim.h
4188 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4189 fixincludes
=Makefile.
in
4190 extra_headers
=ppc-asm.h
4193 tm_file
=rs6000
/eabile.h
4196 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4198 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4200 fixincludes
=Makefile.
in
4201 extra_headers
=ppc-asm.h
4203 powerpcle-
*-winnt* )
4204 tm_file
=rs6000
/win-nt.h
4205 tmake_file
=rs6000
/t-winnt
4207 fixincludes
=Makefile.
in
4208 if [ x
$enable_threads = xyes
]; then
4211 extra_headers
=ppc-asm.h
4213 powerpcle-
*-pe | powerpcle-
*-cygwin32)
4214 tm_file
=rs6000
/cygwin32.h
4215 xm_file
="rs6000/xm-cygwin32.h ${xm_file}"
4216 tmake_file
=rs6000
/t-winnt
4217 xmake_file
=rs6000
/x-cygwin32
4219 fixincludes
=Makefile.
in
4220 if [ x
$enable_threads = xyes
]; then
4224 extra_headers
=ppc-asm.h
4226 powerpcle-
*-solaris2*)
4227 tm_file
=rs6000
/sol2.h
4228 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4229 xm_defines
="USG POSIX"
4232 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
4234 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4236 xmake_file
=rs6000
/x-sysv4
4239 fixincludes
=fixinc.svr4
;;
4241 fixincludes
=fixinc.wrap
;;
4243 extra_headers
=ppc-asm.h
4245 rs6000-ibm-aix3.
[01]*)
4246 tm_file
=rs6000
/aix31.h
4247 xmake_file
=rs6000
/x-aix31
4250 rs6000-ibm-aix3.2.
[456789]* | powerpc-ibm-aix3.2.
[456789]*)
4251 tm_file
=rs6000
/aix3newas.h
4252 if [ x
$host != x
$target ]
4254 tmake_file
=rs6000
/t-xnewas
4256 tmake_file
=rs6000
/t-newas
4260 rs6000-ibm-aix
[456789].
* | powerpc-ibm-aix
[456789].
*)
4261 tm_file
=rs6000
/aix41.h
4262 if [ x
$host != x
$target ]
4264 tmake_file
=rs6000
/t-xnewas
4266 tmake_file
=rs6000
/t-newas
4268 xmake_file
=rs6000
/x-aix31
4278 tm_file
=rs6000
/mach.h
4279 xm_file
="${xm_file} rs6000/xm-mach.h"
4280 xmake_file
=rs6000
/x-mach
4284 tm_file
=rs6000
/lynx.h
4285 xm_file
=rs6000
/xm-lynx.h
4286 tmake_file
=rs6000
/t-rs6000
4287 xmake_file
=rs6000
/x-lynx
4295 tmake_file
="sh/t-sh t-rtems"
4304 xm_file
="xm-alloca.h ${xm_file}"
4307 sparc-wrs-vxworks
* | sparclite-wrs-vxworks
*)
4308 tm_file
=sparc
/vxsparc.h
4309 tmake_file
=sparc
/t-vxsparc
4311 thread_file
='vxworks'
4314 tmake_file
=sparc
/t-sparcbare
4315 tm_file
="sparc/aout.h libgloss.h"
4318 tm_file
=sparc
/netbsd.h
4319 # On NetBSD, the headers are already okay, except for math.h.
4320 fixincludes
=fixinc.wrap
4328 tmake_file
=sparc
/t-elf
4329 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4333 sparc-
*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
4334 xm_file
="${xm_file} sparc/xm-linux.h"
4335 tm_file
=sparc
/linux-aout.h
4337 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
4340 sparc-
*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
4341 xm_file
="${xm_file} sparc/xm-linux.h"
4343 tm_file
=sparc
/linux.h
4344 tmake_file
="t-linux t-linux-gnulibc1"
4345 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4346 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
4349 sparc-
*-linux-gnu*) # Sparc's running GNU/Linux, libc6
4350 xm_file
="${xm_file} sparc/xm-linux.h"
4352 tm_file
=sparc
/linux.h
4353 tmake_file
="t-linux"
4354 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4355 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
4357 if [ x
$enable_threads = xyes
]; then
4364 tm_file
=sparc
/lynx.h
4366 tm_file
=sparc
/lynx-ng.h
4368 xm_file
=sparc
/xm-lynx.h
4369 tmake_file
=sparc
/t-sunos41
4373 tmake_file
="sparc/t-sparcbare t-rtems"
4374 tm_file
=sparc
/rtems.h
4377 if [ x
$gnu_ld = xyes
]
4379 tm_file
=sparc
/sol2.h
4381 tm_file
=sparc
/sol2-sld.h
4383 xm_file
="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
4384 xm_defines
="USG POSIX"
4385 tmake_file
=sparc
/t-sol2
4386 xmake_file
=sparc
/x-sysv4
4387 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4390 fixincludes
=fixinc.svr4
;;
4392 fixincludes
=fixinc.wrap
;;
4395 if [ x
${enable_threads} = x
]; then
4396 enable_threads
=$have_pthread_h
4397 if [ x
${enable_threads} = x
]; then
4398 enable_threads
=$have_thread_h
4401 if [ x
${enable_threads} = xyes
]; then
4402 if [ x
${have_pthread_h} = xyes
]; then
4405 thread_file
='solaris'
4410 tm_file
=sparc
/sunos4.h
4411 tmake_file
=sparc
/t-sunos40
4415 tm_file
=sparc
/sunos4.h
4416 tmake_file
=sparc
/t-sunos41
4418 if [ x
$gas = xyes
]; then
4419 tm_file
="${tm_file} sparc/sun4gas.h"
4423 tm_file
=sparc
/sun4o3.h
4427 tm_file
=sparc
/sysv4.h
4428 xm_file
="xm-siglist.h sparc/xm-sysv4.h"
4429 xm_defines
="USG POSIX"
4431 xmake_file
=sparc
/x-sysv4
4432 extra_parts
="crtbegin.o crtend.o"
4435 xm_file
="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
4436 xm_defines
="USG POSIX"
4437 tm_file
=sparc
/vxsim.h
4438 tmake_file
=sparc
/t-vxsparc
4439 xmake_file
=sparc
/x-sysv4
4442 tm_file
="sparc/splet.h libgloss.h"
4443 tmake_file
=sparc
/t-splet
4446 tm_file
="sparc/litecoff.h libgloss.h"
4447 tmake_file
=sparc
/t-sparclite
4450 tm_file
="sparc/lite.h aoutos.h libgloss.h"
4451 tmake_file
=sparc
/t-sparclite
4454 tmake_file
=sparc
/t-sp64
4455 tm_file
=sparc
/sp64-aout.h
4458 tmake_file
=sparc
/t-sp64
4459 tm_file
=sparc
/sp64-elf.h
4460 extra_parts
="crtbegin.o crtend.o"
4462 sparc64-
*-linux*) # 64-bit Sparc's running GNU/Linux
4463 tmake_file
=sparc
/t-sp64
4464 xm_file
="sparc/xm-sp64.h sparc/xm-linux.h"
4465 tm_file
=sparc
/linux64.h
4467 fixincludes
=Makefile.
in # The headers are ok already.
4470 # This hasn't been upgraded to GCC 2.
4471 # tahoe-harris-*) # Harris tahoe, using COFF.
4472 # tm_file=tahoe/harris.h
4474 # tahoe-*-bsd*) # tahoe running BSD
4476 thumb-
*-coff* | thumbel-
*-coff*)
4478 out_file
=arm
/thumb.c
4479 xm_file
=arm
/xm-thumb.h
4480 md_file
=arm
/thumb.md
4481 tmake_file
=arm
/t-thumb
4483 # This hasn't been upgraded to GCC 2.
4490 tm_file
="v850/v850.h"
4491 xm_file
="v850/xm-v850.h"
4492 tmake_file
=v850
/t-v850
4493 if [ x
$stabs = xyes
]
4495 tm_file
="${tm_file} dbx.h"
4499 vax-
*-bsd*) # vaxen running BSD
4503 vax-
*-sysv*) # vaxen running system V
4504 tm_file
="${tm_file} vax/vaxv.h"
4509 tm_file
="${tm_file} netbsd.h vax/netbsd.h"
4510 # On NetBSD, the headers are already okay, except for math.h.
4511 fixincludes
=fixinc.wrap
4515 vax-
*-ultrix*) # vaxen running ultrix
4516 tm_file
="${tm_file} vax/ultrix.h"
4520 vax-
*-vms*) # vaxen running VMS
4521 xm_file
=vax
/xm-vms.h
4525 vax-
*-*) # vax default entry
4529 xm_file
="${xm_file} xm-svr3"
4533 echo "Configuration $machine not supported" 1>&2
4540 ;; # Existing GNU/Linux systems do not use the GNU setup.
4542 # On the GNU system, the setup is just about the same on
4543 # each different CPU. The specific machines that GNU
4544 # supports are matched above and just set $cpu_type.
4545 xm_file
="xm-gnu.h ${xm_file}"
4546 tm_file
=${cpu_type}/gnu.h
4547 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
4548 # GNU always uses ELF.
4550 # GNU tools are the only tools.
4553 # On GNU, the headers are already okay.
4554 fixincludes
=Makefile.
in
4555 xmake_file
=x-linux
# These details are the same as Linux.
4556 tmake_file
=t-gnu
# These are not.
4559 fixincludes
=fixinc.svr4
4560 xmake_try_sysv
=x-sysv
4561 install_headers_dir
=install-headers-cpio
4564 install_headers_dir
=install-headers-cpio
4568 # Distinguish i[34567]86
4569 # Also, do not run mips-tfile on MIPS if using gas.
4570 # Process --with-cpu= for PowerPC/rs6000
4571 target_cpu_default2
=
4574 target_cpu_default2
=1
4577 target_cpu_default2
=2
4579 i686-
*-* | i786-
*-*)
4580 target_cpu_default2
=3
4585 target_cpu_default2
="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
4588 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
4591 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX"
4594 target_cpu_default2
="MASK_CPU_EV5"
4600 if [ "$target_cpu_default2" = "" ]
4602 target_cpu_default2
="MASK_GAS"
4604 target_cpu_default2
="${target_cpu_default2}|MASK_GAS"
4609 case "x$with_cpu" in
4612 target_cpu_default2
="TARGET_CPU_generic"
4615 # Distinguish cores, and major variants
4616 # arm7m doesn't exist, but D & I don't affect code
4617 xarm23678 | xarm250 | xarm67010 \
4618 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
4619 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
4620 | xstrongarm | xstrongarm110
)
4621 target_cpu_default2
="TARGET_CPU_$with_cpu"
4625 echo "--with-cpu must be passed a value" 1>&2
4630 if [ x
$pass2done = xyes
]
4632 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4639 mips
*-*-ecoff* | mips
*-*-elf*)
4642 if [ x
$gnu_ld = xyes
]
4644 target_cpu_default2
=20
4646 target_cpu_default2
=16
4653 target_cpu_default2
=16
4656 powerpc
*-*-* | rs6000-
*-*)
4657 case "x$with_cpu" in
4661 xcommon | xpower | xpower2 | xpowerpc | xrios \
4662 | xrios1 | xrios2 | xrsc | xrsc1 \
4663 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
4664 | x403 | x505 | x801 | x821 | x823 | x860
)
4665 target_cpu_default2
="\"$with_cpu\""
4669 echo "--with-cpu must be passed a value" 1>&2
4674 if [ x
$pass2done = xyes
]
4676 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4683 case ".$with_cpu" in
4685 target_cpu_default2
=TARGET_CPU_
"`echo $machine | sed 's/-.*$//'`"
4687 .supersparc | .ultrasparc | .v7 | .v8 | .v9
)
4688 target_cpu_default2
="TARGET_CPU_$with_cpu"
4691 if [ x
$pass2done = xyes
]
4693 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4701 if [ "$target_cpu_default2" != "" ]
4703 if [ "$target_cpu_default" != "" ]
4705 target_cpu_default
="(${target_cpu_default}|${target_cpu_default2})"
4707 target_cpu_default
=$target_cpu_default2
4711 # No need for collect2 if we have the GNU linker.
4718 # Save data on machine being used to compile GCC in build_xm_file.
4719 # Save data on host machine in vars host_xm_file and host_xmake_file.
4720 if [ x
$pass1done = x
]
4722 if [ x
"$xm_file" = x
]
4723 then build_xm_file
=$cpu_type/xm-
$cpu_type.h
4724 else build_xm_file
=$xm_file
4726 build_xm_defines
=$xm_defines
4727 build_install_headers_dir
=$install_headers_dir
4728 build_exeext
=$exeext
4731 if [ x
$pass2done = x
]
4733 if [ x
"$xm_file" = x
]
4734 then host_xm_file
=$cpu_type/xm-
$cpu_type.h
4735 else host_xm_file
=$xm_file
4737 host_xm_defines
=$xm_defines
4738 if [ x
"$xmake_file" = x
]
4739 then xmake_file
=$cpu_type/x-
$cpu_type
4741 host_xmake_file
="$xmake_file"
4742 host_truncate_target
=$truncate_target
4743 host_extra_gcc_objs
=$extra_gcc_objs
4744 host_extra_objs
=$extra_host_objs
4751 extra_objs
="${host_extra_objs} ${extra_objs}"
4753 # Default the target-machine variables that were not explicitly set.
4754 if [ x
"$tm_file" = x
]
4755 then tm_file
=$cpu_type/$cpu_type.h
; fi
4757 if [ x
$extra_headers = x
]
4758 then extra_headers
=; fi
4760 if [ x
"$xm_file" = x
]
4761 then xm_file
=$cpu_type/xm-
$cpu_type.h
; fi
4763 if [ x
$md_file = x
]
4764 then md_file
=$cpu_type/$cpu_type.md
; fi
4766 if [ x
$out_file = x
]
4767 then out_file
=$cpu_type/$cpu_type.c
; fi
4769 if [ x
"$tmake_file" = x
]
4770 then tmake_file
=$cpu_type/t-
$cpu_type
4773 if [ x
$float_format = x
]
4774 then float_format
=i64
4777 if [ x
$enable_haifa = x
]
4780 alpha
*-* | hppa1.?
-* | powerpc
*-* | rs6000-
* |
*sparc-
* | m32r
*-*)
4785 # Say what files are being used for the output code and MD file.
4786 echo "Using \`$srcdir/config/$out_file' to output insns."
4787 echo "Using \`$srcdir/config/$md_file' as machine description file."
4790 for f
in $tm_file; do
4793 if [ $count = ax
]; then
4794 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
4796 echo "Using the following target machine macro files:"
4797 for f
in $tm_file; do
4798 echo " $srcdir/config/$f"
4803 for f
in $host_xm_file; do
4806 if [ $count = ax
]; then
4807 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
4809 echo "Using the following host machine macro files:"
4810 for f
in $host_xm_file; do
4811 echo " $srcdir/config/$f"
4815 if [ "$host_xm_file" != "$build_xm_file" ]; then
4817 for f
in $build_xm_file; do
4820 if [ $count = ax
]; then
4821 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
4823 echo "Using the following build machine macro files:"
4824 for f
in $build_xm_file; do
4825 echo " $srcdir/config/$f"
4830 if [ x
$thread_file = x
]; then
4831 if [ x
$target_thread_file != x
]; then
4832 thread_file
=$target_thread_file
4834 thread_file
='single'
4838 # Set up the header files.
4839 # $links is the list of header files to create.
4840 # $vars is the list of shell variables with file names to include.
4841 # auto-host.h is the file containing items generated by autoconf and is
4842 # the first file included by config.h.
4844 host_xm_file
="auto-host.h ${host_xm_file}"
4846 # If host=build, it is correct to have hconfig include auto-host.h
4847 # as well. If host!=build, we are in error and need to do more
4848 # work to find out the build config parameters.
4849 if [ x
$host = x
$build ]
4851 build_xm_file
="auto-host.h ${build_xm_file}"
4853 # We create a subdir, then run autoconf in the subdir.
4854 # To prevent recursion we set host and build for the new
4855 # invocation of configure to the build for this invocation
4862 /*) realsrcdir
=${srcdir};;
4863 *) realsrcdir
=..
/${srcdir};;
4865 CC
=${CC_FOR_BUILD} ${realsrcdir}/configure \
4866 --target=$target --host=$build --build=$build
4868 # We just finished tests for the build machine, so rename
4869 # the file auto-build.h in the gcc directory.
4870 mv auto-host.h ..
/auto-build.h
4873 build_xm_file
="auto-build.h ${build_xm_file}"
4876 vars
="host_xm_file tm_file xm_file build_xm_file"
4877 links
="config.h tm.h tconfig.h hconfig.h"
4878 defines
="host_xm_defines null_defines xm_defines build_xm_defines"
4881 if [ -f config.status
]; then mv -f config.status config.bak
; fi
4884 while [ -n "$vars" ]
4886 set $vars; var
=$1; shift; vars
=$
*
4887 set $links; link
=$1; shift; links
=$
*
4888 set $defines; define
=$1; shift; defines
=$
*
4892 # Define TARGET_CPU_DEFAULT if the system wants one.
4893 # This substitutes for lots of *.h files.
4894 if [ "$target_cpu_default" != "" -a $link = tm.h
]
4896 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
4899 for file in `eval echo '$'$var`; do
4900 echo "#include \"$file\"" >>$link
4903 for def
in `eval echo '$'$define`; do
4904 echo "#ifndef $def" >>$link
4905 echo "#define $def" >>$link
4906 echo "#endif" >>$link
4910 # Truncate the target if necessary
4911 if [ x
$host_truncate_target != x
]; then
4912 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
4915 # Get the version number from the toplevel
4916 version
=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${srcdir}/version.c`
4918 # Get an absolute path to the GCC top-level source directory
4924 # Conditionalize the makefile for this host machine.
4925 # Make-host contains the concatenation of all host makefile fragments
4926 # [there can be more than one]. This file is built by configure.frag.
4927 host_overrides
=Make-host
4928 dep_host_xmake_file
=
4929 for f
in ..
${host_xmake_file}
4931 if [ -f ${srcdir}/config
/$f ]
4933 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
4937 # Conditionalize the makefile for this target machine.
4938 # Make-target contains the concatenation of all host makefile fragments
4939 # [there can be more than one]. This file is built by configure.frag.
4940 target_overrides
=Make-target
4942 for f
in ..
${tmake_file}
4944 if [ -f ${srcdir}/config
/$f ]
4946 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
4950 # If the host doesn't support symlinks, modify CC in
4951 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
4952 # Otherwise, we can use "CC=$(CC)".
4954 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
4956 cc_set_by_configure
="\$(CC)"
4957 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
4960 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
4962 symbolic_link
="cp -p"
4966 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
4967 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
4971 out_object_file
=`basename $out_file .c`.o
4974 for f
in $tm_file; do
4975 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
4979 for f
in $host_xm_file; do
4980 if test $f != "auto-host.h"; then
4981 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
4983 host_xm_file_list
="${host_xm_file_list} auto-host.h"
4988 for f
in $build_xm_file; do
4989 if test $f != "auto-build.h"; then
4990 if test $f != "auto-host.h"; then
4991 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
4993 build_xm_file_list
="${build_xm_file_list} auto-host.h"
4996 build_xm_file_list
="${build_xm_file_list} auto-build.h"
5000 # Define macro CROSS_COMPILE in compilation
5001 # if this is a cross-compiler.
5002 # Also use all.cross instead of all.internal
5003 # and add cross-make to Makefile.
5004 cross_overrides
="/dev/null"
5005 if [ x
$host != x
$target ]
5007 cross_defines
="CROSS=-DCROSS_COMPILE"
5008 cross_overrides
="${topdir}/cross-make"
5011 # When building gcc with a cross-compiler, we need to fix a few things.
5012 # This must come after cross-make as we want all.build to override
5014 build_overrides
="/dev/null"
5015 if [ x
$build != x
$host ]
5017 build_overrides
="${topdir}/build-make"
5020 # Expand extra_headers to include complete path.
5021 # This substitutes for lots of t-* files.
5023 if [ "x$extra_headers" = x
]
5026 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
5027 for file in $extra_headers;
5029 extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/${file}"
5033 # Add a definition of USE_COLLECT2 if system wants one.
5034 # Also tell toplev.c what to do.
5035 # This substitutes for lots of t-* files.
5036 if [ x
$use_collect2 = x
]
5041 will_use_collect2
="collect2"
5042 maybe_use_collect2
="-DUSE_COLLECT2"
5046 # Set MD_DEPS if the real md file is in md.pre-cpp.
5047 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
5048 # for line oriented comments, so we must always use a GNU cpp. If
5049 # building gcc with a cross compiler, use the cross compiler just
5050 # built. Otherwise, we can use the cpp just built.
5052 if [ "x$md_cppflags" = x
]
5054 md_file_sub
=$srcdir/config
/$md_file
5059 # If we have gas in the build tree, make a link to it.
5060 if [ -f ..
/gas
/Makefile
]; then
5061 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
5064 # If we have ld in the build tree, make a link to it.
5065 if [ -f ..
/ld
/Makefile
]; then
5066 # if [[ x$use_collect2 = x ]]; then
5067 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
5069 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
5073 # Figure out what assembler alignment features are present.
5074 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
5075 echo "configure:5076: checking assembler alignment features" >&5
5077 gcc_cv_as_alignment_features
=
5078 if [ -x as
$host_exeext ]; then
5079 # Build using assembler in the current directory.
5080 gcc_cv_as
=.
/as
$host_exeext
5081 elif [ -f $srcdir/..
/gas
/configure.
in ]; then
5082 # Single tree build which includes gas.
5083 for f
in $srcdir/..
/gas
/configure.
in $srcdir/..
/gas
/Makefile.
in
5085 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
5086 if [ x
$gcc_cv_gas_version != x
]; then
5090 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
5091 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
5092 # Gas version 2.8 and later support specifying the maximum
5093 # bytes to skip when using .p2align.
5094 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
5095 gcc_cv_as_alignment_features
=".p2align including maximum skip"
5096 cat >> confdefs.h
<<\EOF
5097 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
5101 elif [ x
$host = x
$target ]; then
5103 gcc_cv_as
=as
$host_exeext
5105 if [ x
$gcc_cv_as != x
]; then
5106 # Check if specifying the maximum bytes to skip when
5107 # using .p2align is supported.
5108 echo ".p2align 4,,7" > conftest.s
5109 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
5110 gcc_cv_as_alignment_features
=".p2align including maximum skip"
5111 cat >> confdefs.h
<<\EOF
5112 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
5116 rm -f conftest.s conftest.o
5118 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
5120 # Figure out what language subdirectories are present.
5122 for lang
in ${srcdir}/*/config-lang.
in ..
5126 # The odd quoting in the next line works around
5127 # an apparent bug in bash 1.12 on linux.
5128 ${srcdir}/[*]/config-lang.
in) ;;
5129 *) subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
5133 # Make gthr-default.h if we have a thread file.
5135 if [ $thread_file != single
]; then
5136 rm -f gthr-default.h
5137 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
5138 gthread_flags
=-DHAVE_GTHR_DEFAULT
5142 # Make empty files to contain the specs and options for each language.
5143 # Then add #include lines to for a compiler that has specs and/or options.
5147 rm -f specs.h options.h
5148 touch specs.h options.h
5149 for subdir
in .
$subdirs
5151 if [ -f $srcdir/$subdir/lang-specs.h
]; then
5152 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
5153 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
5155 if [ -f $srcdir/$subdir/lang-options.h
]; then
5156 echo "#include \"$subdir/lang-options.h\"" >>options.h
5157 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
5161 # These (without "all_") are set in each config-lang.in.
5162 # `language' must be a single word so is spelled singularly.
5168 all_outputs
=Makefile
5169 # List of language makefile fragments.
5174 # Add the language fragments.
5175 # Languages are added via two mechanisms. Some information must be
5176 # recorded in makefile variables, these are defined in config-lang.in.
5177 # We accumulate them and plug them into the main Makefile.
5178 # The other mechanism is a set of hooks for each of the main targets
5179 # like `clean', `install', etc.
5181 language_fragments
="Make-lang"
5182 language_hooks
="Make-hooks"
5185 for s
in ..
$subdirs
5197 .
${srcdir}/$s/config-lang.
in
5198 if [ "x$language" = x
]
5200 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
5203 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
5204 all_languages
="$all_languages $language"
5205 if [ "x$boot_language" = xyes
]
5207 all_boot_languages
="$all_boot_languages $language"
5209 all_compilers
="$all_compilers $compilers"
5210 all_stagestuff
="$all_stagestuff $stagestuff"
5211 all_diff_excludes
="$all_diff_excludes $diff_excludes"
5212 all_headers
="$all_headers $headers"
5213 all_outputs
="$all_outputs $outputs"
5214 if [ x
$outputs = x
]
5216 oldstyle_subdirs
="$oldstyle_subdirs $s"
5218 all_lib2funcs
="$all_lib2funcs $lib2funcs"
5222 # Since we can't use `::' targets, we link each language in
5223 # with a set of hooks, reached indirectly via lang.${target}.
5227 target_list
="all.build all.cross start.encap rest.encap \
5229 install-normal install-common install-info install-man \
5231 mostlyclean clean distclean extraclean maintainer-clean \
5232 stage1 stage2 stage3 stage4"
5233 for t
in $target_list
5236 for l
in ..
$all_languages
5238 if [ $l != ".." ]; then
5242 echo "lang.$t: $x" >> Make-hooks
5245 # If we're not building in srcdir, create .gdbinit.
5247 if [ ! -f Makefile.
in ]; then
5248 echo "dir ." > .gdbinit
5249 echo "dir ${srcdir}" >> .gdbinit
5250 if [ x
$gdb_needs_out_file_path = xyes
]
5252 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
5254 if [ "x$subdirs" != x
]; then
5257 echo "dir ${srcdir}/$s" >> .gdbinit
5260 echo "source ${srcdir}/.gdbinit" >> .gdbinit
5263 # Define variables host_canonical and build_canonical
5264 # because some Cygnus local changes in the Makefile depend on them.
5265 build_canonical
=${build}
5266 host_canonical
=${host}
5268 if [ "${host}" != "${target}" ] ; then
5269 target_subdir
=${target}/
5275 # If this is using newlib, then define inhibit_libc in
5276 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
5277 # libgcc.a, but that's OK because newib should have its own version of
5280 if [ x
$with_newlib = xyes
]; then
5281 inhibit_libc
=-Dinhibit_libc
5285 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
5288 if [ x
$enable_haifa = xyes
]; then
5289 echo "Using the Haifa scheduler."
5291 sched_cflags
=-DHAIFA
5295 if [ x
$enable_haifa != x
]; then
5296 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
5297 for x
in genattrtab.o toplev.o loop.o unroll.o
*sched.o
; do
5305 # Nothing to do for FLOAT_H, float_format already handled.
5309 # Process the language and host/target makefile fragments.
5310 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
5312 # Substitute configuration variables
5365 # Echo that links are built
5366 if [ x
$host = x
$target ]
5374 if [ x
$host != x
$build ]
5376 str3
=" on a $build system"
5379 if [ "x$str2" != x
] ||
[ "x$str3" != x
]
5384 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
5386 if [ "x$str2" != x
] ||
[ "x$str3" != x
]
5388 echo " ${str2}${str3}." 1>&2
5391 # Truncate the target if necessary
5392 if [ x
$host_truncate_target != x
]; then
5393 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
5396 # Configure the subdirectories
5397 # AC_CONFIG_SUBDIRS($subdirs)
5399 # Create the Makefile
5400 # and configure language subdirectories
5402 cat > confcache
<<\EOF
5403 # This file is a shell script that caches the results of configure
5404 # tests run on this system so they can be shared between configure
5405 # scripts and configure runs. It is not useful on other systems.
5406 # If it contains results you don't want to keep, you may remove or edit it.
5408 # By default, configure uses ./config.cache as the cache file,
5409 # creating it if it does not exist already. You can give configure
5410 # the --cache-file=FILE option to use a different cache file; that is
5411 # what configure does when it calls configure scripts in
5412 # subdirectories, so they share the cache.
5413 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5414 # config.status only pays attention to the cache file if you give it the
5415 # --recheck option to rerun configure.
5418 # The following way of writing the cache mishandles newlines in values,
5419 # but we know of no workaround that is simple, portable, and efficient.
5420 # So, don't put newlines in cache variables' values.
5421 # Ultrix sh set writes to stderr and can't be redirected directly,
5422 # and sets the high bit in the cache file unless we assign to the vars.
5424 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
5426 # `set' does not quote correctly, so add quotes (double-quote substitution
5427 # turns \\\\ into \\, and sed turns \\ into \).
5429 -e "s/'/'\\\\''/g" \
5430 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5433 # `set' quotes correctly as required by POSIX, so do not add quotes.
5434 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5437 if cmp -s $cache_file confcache
; then
5440 if test -w $cache_file; then
5441 echo "updating cache $cache_file"
5442 cat confcache
> $cache_file
5444 echo "not updating unwritable cache $cache_file"
5449 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5451 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5452 # Let make expand exec_prefix.
5453 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5455 # Any assignment to VPATH causes Sun make to only execute
5456 # the first set of double-colon rules, so remove it if not needed.
5457 # If there is a colon in the path, we need to keep it.
5458 if test "x$srcdir" = x.
; then
5459 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5462 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5464 DEFS
=-DHAVE_CONFIG_H
5466 # Without the "./", some shells look in PATH for config.status.
5467 : ${CONFIG_STATUS=./config.status}
5469 echo creating
$CONFIG_STATUS
5470 rm -f $CONFIG_STATUS
5471 cat > $CONFIG_STATUS <<EOF
5473 # Generated automatically by configure.
5474 # Run this file to recreate the current configuration.
5475 # This directory was configured as follows,
5476 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5478 # $0 $ac_configure_args
5480 # Compiler output produced by configure, useful for debugging
5481 # configure, is in ./config.log if it exists.
5483 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5486 case "\$ac_option" in
5487 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5488 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5489 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5490 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5491 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
5493 -help | --help | --hel | --he | --h)
5494 echo "\$ac_cs_usage"; exit 0 ;;
5495 *) echo "\$ac_cs_usage"; exit 1 ;;
5499 ac_given_srcdir=$srcdir
5501 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5503 cat >> $CONFIG_STATUS <<EOF
5505 # Protect against being on the right side of a sed subst in config.status.
5506 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5507 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5511 s%@CFLAGS@%$CFLAGS%g
5512 s%@CPPFLAGS@%$CPPFLAGS%g
5513 s%@CXXFLAGS@%$CXXFLAGS%g
5515 s%@LDFLAGS@%$LDFLAGS%g
5517 s%@exec_prefix@%$exec_prefix%g
5518 s%@prefix@%$prefix%g
5519 s%@program_transform_name@%$program_transform_name%g
5520 s%@bindir@%$bindir%g
5521 s%@sbindir@%$sbindir%g
5522 s%@libexecdir@%$libexecdir%g
5523 s%@datadir@%$datadir%g
5524 s%@sysconfdir@%$sysconfdir%g
5525 s%@sharedstatedir@%$sharedstatedir%g
5526 s%@localstatedir@%$localstatedir%g
5527 s%@libdir@%$libdir%g
5528 s%@includedir@%$includedir%g
5529 s%@oldincludedir@%$oldincludedir%g
5530 s%@infodir@%$infodir%g
5531 s%@mandir@%$mandir%g
5533 s%@host_alias@%$host_alias%g
5534 s%@host_cpu@%$host_cpu%g
5535 s%@host_vendor@%$host_vendor%g
5536 s%@host_os@%$host_os%g
5537 s%@target@%$target%g
5538 s%@target_alias@%$target_alias%g
5539 s%@target_cpu@%$target_cpu%g
5540 s%@target_vendor@%$target_vendor%g
5541 s%@target_os@%$target_os%g
5543 s%@build_alias@%$build_alias%g
5544 s%@build_cpu@%$build_cpu%g
5545 s%@build_vendor@%$build_vendor%g
5546 s%@build_os@%$build_os%g
5548 s%@SET_MAKE@%$SET_MAKE%g
5551 s%@LEXLIB@%$LEXLIB%g
5554 s%@RANLIB@%$RANLIB%g
5556 s%@INSTALL@%$INSTALL%g
5557 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5558 s%@INSTALL_DATA@%$INSTALL_DATA%g
5560 s%@vfprintf@%$vfprintf%g
5561 s%@doprint@%$doprint%g
5562 s%@manext@%$manext%g
5563 s%@objext@%$objext%g
5564 s%@gthread_flags@%$gthread_flags%g
5565 s%@build_canonical@%$build_canonical%g
5566 s%@host_canonical@%$host_canonical%g
5567 s%@target_subdir@%$target_subdir%g
5568 s%@inhibit_libc@%$inhibit_libc%g
5569 s%@sched_prefix@%$sched_prefix%g
5570 s%@sched_cflags@%$sched_cflags%g
5571 s%@objdir@%$objdir%g
5572 s%@subdirs@%$subdirs%g
5573 s%@all_languages@%$all_languages%g
5574 s%@all_boot_languages@%$all_boot_languages%g
5575 s%@all_compilers@%$all_compilers%g
5576 s%@all_lang_makefiles@%$all_lang_makefiles%g
5577 s%@all_stagestuff@%$all_stagestuff%g
5578 s%@all_diff_excludes@%$all_diff_excludes%g
5579 s%@all_lib2funcs@%$all_lib2funcs%g
5580 s%@all_headers@%$all_headers%g
5581 s%@extra_passes@%$extra_passes%g
5582 s%@extra_programs@%$extra_programs%g
5583 s%@extra_parts@%$extra_parts%g
5584 s%@extra_c_objs@%$extra_c_objs%g
5585 s%@extra_cxx_objs@%$extra_cxx_objs%g
5586 s%@extra_c_flags@%$extra_c_flags%g
5587 s%@extra_objs@%$extra_objs%g
5588 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
5589 s%@extra_headers_list@%$extra_headers_list%g
5590 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
5591 s%@dep_tmake_file@%$dep_tmake_file%g
5592 s%@out_file@%$out_file%g
5593 s%@out_object_file@%$out_object_file%g
5594 s%@md_file@%$md_file%g
5595 s%@tm_file_list@%$tm_file_list%g
5596 s%@build_xm_file_list@%$build_xm_file_list%g
5597 s%@host_xm_file_list@%$host_xm_file_list%g
5598 s%@lang_specs_files@%$lang_specs_files%g
5599 s%@lang_options_files@%$lang_options_files%g
5600 s%@thread_file@%$thread_file%g
5601 s%@version@%$version%g
5602 s%@local_prefix@%$local_prefix%g
5603 s%@gxx_include_dir@%$gxx_include_dir%g
5604 s%@fixincludes@%$fixincludes%g
5605 s%@build_install_headers_dir@%$build_install_headers_dir%g
5606 s%@build_exeext@%$build_exeext%g
5607 s%@host_exeext@%$host_exeext%g
5608 s%@float_format@%$float_format%g
5609 s%@will_use_collect2@%$will_use_collect2%g
5610 s%@maybe_use_collect2@%$maybe_use_collect2%g
5611 s%@cc_set_by_configure@%$cc_set_by_configure%g
5612 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
5613 s%@install@%$install%g
5614 s%@symbolic_link@%$symbolic_link%g
5615 /@target_overrides@/r $target_overrides
5616 s%@target_overrides@%%g
5617 /@host_overrides@/r $host_overrides
5618 s%@host_overrides@%%g
5619 s%@cross_defines@%$cross_defines%g
5620 /@cross_overrides@/r $cross_overrides
5621 s%@cross_overrides@%%g
5622 /@build_overrides@/r $build_overrides
5623 s%@build_overrides@%%g
5624 /@language_fragments@/r $language_fragments
5625 s%@language_fragments@%%g
5626 /@language_hooks@/r $language_hooks
5627 s%@language_hooks@%%g
5632 cat >> $CONFIG_STATUS <<\EOF
5634 # Split the substitutions into bite-sized pieces for seds with
5635 # small command number limits, like on Digital OSF/1 and HP-UX.
5636 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5637 ac_file
=1 # Number of current file.
5638 ac_beg
=1 # First line for current file.
5639 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5642 while $ac_more_lines; do
5643 if test $ac_beg -gt 1; then
5644 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5646 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5648 if test ! -s conftest.s
$ac_file; then
5650 rm -f conftest.s
$ac_file
5652 if test -z "$ac_sed_cmds"; then
5653 ac_sed_cmds
="sed -f conftest.s$ac_file"
5655 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5657 ac_file
=`expr $ac_file + 1`
5659 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5662 if test -z "$ac_sed_cmds"; then
5667 cat >> $CONFIG_STATUS <<EOF
5669 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
5671 cat >> $CONFIG_STATUS <<\EOF
5672 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5673 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5675 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5676 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5677 *) ac_file_in
="${ac_file}.in" ;;
5680 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5682 # Remove last slash and all that follows it. Not all systems have dirname.
5683 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5684 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5685 # The file is in a subdirectory.
5686 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5687 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5688 # A "../" for each directory in $ac_dir_suffix.
5689 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5691 ac_dir_suffix
= ac_dots
=
5694 case "$ac_given_srcdir" in
5696 if test -z "$ac_dots"; then top_srcdir
=.
5697 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5698 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5700 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5701 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5705 echo creating
"$ac_file"
5707 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5709 *Makefile
*) ac_comsub
="1i\\
5710 # $configure_input" ;;
5714 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5716 s%@configure_input@%$configure_input%g
5717 s%@srcdir@%$srcdir%g
5718 s%@top_srcdir@%$top_srcdir%g
5719 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5723 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5724 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5726 # ac_d sets the value in "#define NAME VALUE" lines.
5727 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5728 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5731 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5732 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5733 ac_uB
='\([ ]\)%\1#\2define\3'
5736 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5737 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5738 ac_eB
='$%\1#\2define\3'
5742 if test "${CONFIG_HEADERS+set}" != set; then
5744 cat >> $CONFIG_STATUS <<EOF
5745 CONFIG_HEADERS="auto-host.h:config.in"
5747 cat >> $CONFIG_STATUS <<\EOF
5749 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5750 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5752 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5753 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5754 *) ac_file_in
="${ac_file}.in" ;;
5757 echo creating
$ac_file
5759 rm -f conftest.frag conftest.
in conftest.out
5760 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5761 cat $ac_file_inputs > conftest.
in
5765 # Transform confdefs.h into a sed script conftest.vals that substitutes
5766 # the proper values into config.h.in to produce config.h. And first:
5767 # Protect against being on the right side of a sed subst in config.status.
5768 # Protect against being in an unquoted here document in config.status.
5770 cat > conftest.hdr
<<\EOF
5773 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5777 sed -n -f conftest.hdr confdefs.h > conftest.vals
5780 # This sed command replaces #undef with comments. This is necessary, for
5781 # example, in the case of _POSIX_SOURCE, which is predefined and required
5782 # on some systems where configure will not decide to define it.
5783 cat >> conftest.vals <<\EOF
5784 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5787 # Break up conftest.vals because some shells have a limit on
5788 # the size of here documents, and old seds have small limits too.
5793 ac_lines=`grep -c . conftest.vals
`
5794 # grep -c gives empty output for an empty file on some AIX systems.
5795 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5796 # Write a limited-size here document to conftest.frag.
5797 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5798 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5800 sed -f conftest.frag conftest.in > conftest.out
5802 mv conftest.out conftest.in
5804 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5806 mv conftest.tail conftest.vals
5810 cat >> $CONFIG_STATUS <<\EOF
5811 rm -f conftest.frag conftest.h
5812 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5813 cat conftest.in >> conftest.h
5815 if cmp -s $ac_file conftest.h 2>/dev/null; then
5816 echo "$ac_file is unchanged"
5819 # Remove last slash and all that follows it. Not all systems have dirname.
5820 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5821 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5822 # The file is in a subdirectory.
5823 test ! -d "$ac_dir" && mkdir "$ac_dir"
5826 mv conftest.h $ac_file
5831 cat >> $CONFIG_STATUS <<EOF
5836 target_alias='${target_alias}'
5838 subdirs='${subdirs}'
5839 oldstyle_subdirs='${oldstyle_subdirs}'
5840 symbolic_link='${symbolic_link}'
5841 program_transform_set='${program_transform_set}'
5842 program_transform_name='${program_transform_name}'
5843 dep_host_xmake_file='${dep_host_xmake_file}'
5844 host_xmake_file='${host_xmake_file}'
5845 dep_tmake_file='${dep_tmake_file}'
5846 tmake_file='${tmake_file}'
5847 thread_file='${thread_file}'
5848 version='${version}'
5849 local_prefix='${local_prefix}'
5850 build_install_headers_dir='${build_install_headers_dir}'
5851 build_exeext='${build_exeext}'
5852 host_exeext='${host_exeext}'
5853 out_file='${out_file}'
5854 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
5855 SET_MAKE='${SET_MAKE}'
5856 target_list='${target_list}'
5857 target_overrides='${target_overrides}'
5858 host_overrides='${host_overrides}'
5859 cross_defines='${cross_defines}'
5860 cross_overrides='${cross_overrides}'
5861 build_overrides='${build_overrides}'
5864 cat >> $CONFIG_STATUS <<\EOF
5866 . $srcdir/configure.lang
5867 case x$CONFIG_HEADERS in
5868 xauto-host.h:config.in)
5871 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
5872 # bootstrapping and the installation procedure can still use
5873 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
5874 # FLAGS_TO_PASS has been modified to solve the problem there.
5875 # This is virtually a duplicate of what happens in configure.lang; we do
5876 # an extra check to make sure this only happens if ln -s can be used.
5877 if [ "$symbolic_link" = "ln -s" ]; then
5878 for d in .. ${subdirs} ; do
5879 if [ $d != .. ]; then
5882 for t in stage1 stage2 stage3 stage4 include
5885 $symbolic_link ../$t $t 2>/dev/null
5894 chmod +x $CONFIG_STATUS
5895 rm -fr confdefs* $ac_clean_files
5896 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1