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 if test x
${enable_version_specific_runtime_libs} = xyes
; then
619 gxx_include_dir
='${libsubdir}/include/g++'
620 else gxx_include_dir
='${prefix}/include/g++'; fi
624 # Enable expensive internal checks
625 # Check whether --enable-checking or --disable-checking was given.
626 if test "${enable_checking+set}" = set; then
627 enableval
="$enable_checking"
628 cat >> confdefs.h
<<\EOF
629 #define ENABLE_CHECKING 1
636 # Enable use of cpplib for C.
638 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
639 if test "${enable_c_cpplib+set}" = set; then
640 enableval
="$enable_c_cpplib"
641 if [ x
$enable_c_cpplib != xno
]; then
642 extra_c_objs
="${extra_c_objs} cpplib.o cppexp.o cpphash.o cpperror.o"
643 extra_c_objs
="${extra_c_objs} prefix.o"
644 extra_cxx_objs
="${extra_cxx_objs} ../cpplib.o ../cppexp.o ../cpphash.o ../cpperror.o ../prefix.o"
645 extra_c_flags
=-DUSE_CPPLIB=1
651 # Enable Haifa scheduler.
652 # Check whether --enable-haifa or --disable-haifa was given.
653 if test "${enable_haifa+set}" = set; then
654 enableval
="$enable_haifa"
660 # This is a work in progress...
661 # Check whether --with-fast-fixincludes or --without-fast-fixincludes was given.
662 if test "${with_fast_fixincludes+set}" = set; then
663 withval
="$with_fast_fixincludes"
664 fast_fixinc
="$with_fast_fixincludes"
671 # Pass with no value to take the default
672 # Pass with a value to specify a thread package
673 # Check whether --enable-threads or --disable-threads was given.
674 if test "${enable_threads+set}" = set; then
675 enableval
="$enable_threads"
676 if [ x
$enable_threads = xno
]; then
684 enable_threads_flag
=$enable_threads
685 # Check if a valid thread package
686 case x
${enable_threads_flag} in
689 target_thread_file
='single'
693 target_thread_file
=''
695 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
696 xsolaris | xwin32 | xdce | xvxworks
)
697 target_thread_file
=$enable_threads_flag
700 echo "$enable_threads is an unknown thread package" 1>&2
705 # Determine the host, build, and target systems
707 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
708 if test -f $ac_dir/install-sh
; then
710 ac_install_sh
="$ac_aux_dir/install-sh -c"
712 elif test -f $ac_dir/install.sh
; then
714 ac_install_sh
="$ac_aux_dir/install.sh -c"
718 if test -z "$ac_aux_dir"; then
719 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
721 ac_config_guess
=$ac_aux_dir/config.guess
722 ac_config_sub
=$ac_aux_dir/config.sub
723 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
726 # Do some error checking and defaulting for the host and target type.
728 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
731 # 1. You are not allowed to specify --host, --target, and nonopt at the
733 # 2. Host defaults to nonopt.
734 # 3. If nonopt is not specified, then host defaults to the current host,
735 # as determined by config.guess.
736 # 4. Target and build default to nonopt.
737 # 5. If nonopt is not specified, then target and build default to host.
739 # The aliases save the names the user supplied, while $host etc.
740 # will get canonicalized.
741 case $host---$target---$nonopt in
742 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
743 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
747 # Make sure we can run config.sub.
748 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
749 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
752 echo $ac_n "checking host system type""... $ac_c" 1>&6
753 echo "configure:754: checking host system type" >&5
756 case "$host_alias" in
760 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
761 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
763 *) host_alias
=$nonopt ;;
767 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
768 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
769 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
770 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
771 echo "$ac_t""$host" 1>&6
773 echo $ac_n "checking target system type""... $ac_c" 1>&6
774 echo "configure:775: checking target system type" >&5
777 case "$target_alias" in
780 NONE
) target_alias
=$host_alias ;;
781 *) target_alias
=$nonopt ;;
785 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
786 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
787 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
788 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
789 echo "$ac_t""$target" 1>&6
791 echo $ac_n "checking build system type""... $ac_c" 1>&6
792 echo "configure:793: checking build system type" >&5
795 case "$build_alias" in
798 NONE
) build_alias
=$host_alias ;;
799 *) build_alias
=$nonopt ;;
803 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
804 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
805 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
806 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
807 echo "$ac_t""$build" 1>&6
809 test "$host_alias" != "$target_alias" &&
810 test "$program_prefix$program_suffix$program_transform_name" = \
812 program_prefix
=${target_alias}-
815 # Find the native compiler
816 # Extract the first word of "gcc", so it can be a program name with args.
817 set dummy gcc
; ac_word
=$2
818 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
819 echo "configure:820: checking for $ac_word" >&5
820 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
821 echo $ac_n "(cached) $ac_c" 1>&6
823 if test -n "$CC"; then
824 ac_cv_prog_CC
="$CC" # Let the user override the test.
826 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
827 for ac_dir
in $PATH; do
828 test -z "$ac_dir" && ac_dir
=.
829 if test -f $ac_dir/$ac_word; then
838 if test -n "$CC"; then
839 echo "$ac_t""$CC" 1>&6
841 echo "$ac_t""no" 1>&6
844 if test -z "$CC"; then
845 # Extract the first word of "cc", so it can be a program name with args.
846 set dummy cc
; ac_word
=$2
847 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
848 echo "configure:849: checking for $ac_word" >&5
849 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
850 echo $ac_n "(cached) $ac_c" 1>&6
852 if test -n "$CC"; then
853 ac_cv_prog_CC
="$CC" # Let the user override the test.
855 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
857 for ac_dir
in $PATH; do
858 test -z "$ac_dir" && ac_dir
=.
859 if test -f $ac_dir/$ac_word; then
860 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
869 if test $ac_prog_rejected = yes; then
870 # We found a bogon in the path, so make sure we never use it.
871 set dummy
$ac_cv_prog_CC
873 if test $# -gt 0; then
874 # We chose a different compiler from the bogus one.
875 # However, it has the same basename, so the bogon will be chosen
876 # first if we set CC to just the basename; use the full file name.
878 set dummy
"$ac_dir/$ac_word" "$@"
886 if test -n "$CC"; then
887 echo "$ac_t""$CC" 1>&6
889 echo "$ac_t""no" 1>&6
892 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
895 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
896 echo "configure:897: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
899 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
900 ac_cpp
='$CPP $CPPFLAGS'
901 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
902 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
903 cross_compiling
=$ac_cv_prog_cc_cross
905 cat > conftest.
$ac_ext <<EOF
906 #line 907 "configure"
907 #include "confdefs.h"
910 if { (eval echo configure
:911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
911 ac_cv_prog_cc_works
=yes
912 # If we can't run a trivial program, we are probably using a cross compiler.
913 if (.
/conftest
; exit) 2>/dev
/null
; then
914 ac_cv_prog_cc_cross
=no
916 ac_cv_prog_cc_cross
=yes
919 echo "configure: failed program was:" >&5
920 cat conftest.
$ac_ext >&5
921 ac_cv_prog_cc_works
=no
925 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
926 if test $ac_cv_prog_cc_works = no
; then
927 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
929 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
930 echo "configure:931: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
931 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
932 cross_compiling
=$ac_cv_prog_cc_cross
934 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
935 echo "configure:936: checking whether we are using GNU C" >&5
936 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
937 echo $ac_n "(cached) $ac_c" 1>&6
939 cat > conftest.c
<<EOF
944 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
951 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
953 if test $ac_cv_prog_gcc = yes; then
955 ac_test_CFLAGS
="${CFLAGS+set}"
956 ac_save_CFLAGS
="$CFLAGS"
958 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
959 echo "configure:960: checking whether ${CC-cc} accepts -g" >&5
960 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
961 echo $ac_n "(cached) $ac_c" 1>&6
963 echo 'void f(){}' > conftest.c
964 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
973 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
974 if test "$ac_test_CFLAGS" = set; then
975 CFLAGS
="$ac_save_CFLAGS"
976 elif test $ac_cv_prog_cc_g = yes; then
983 test "${CFLAGS+set}" = set || CFLAGS
="-g"
986 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
987 echo "configure:988: checking whether ${MAKE-make} sets \${MAKE}" >&5
988 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
989 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
990 echo $ac_n "(cached) $ac_c" 1>&6
992 cat > conftestmake
<<\EOF
994 @
echo 'ac_maketemp="${MAKE}"'
996 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
997 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
998 if test -n "$ac_maketemp"; then
999 eval ac_cv_prog_make_
${ac_make}_set
=yes
1001 eval ac_cv_prog_make_
${ac_make}_set
=no
1005 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1006 echo "$ac_t""yes" 1>&6
1009 echo "$ac_t""no" 1>&6
1010 SET_MAKE
="MAKE=${MAKE-make}"
1014 # Find some useful tools
1015 for ac_prog
in mawk gawk nawk
awk
1017 # Extract the first word of "$ac_prog", so it can be a program name with args.
1018 set dummy
$ac_prog; ac_word
=$2
1019 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1020 echo "configure:1021: checking for $ac_word" >&5
1021 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1022 echo $ac_n "(cached) $ac_c" 1>&6
1024 if test -n "$AWK"; then
1025 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1027 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1028 for ac_dir
in $PATH; do
1029 test -z "$ac_dir" && ac_dir
=.
1030 if test -f $ac_dir/$ac_word; then
1031 ac_cv_prog_AWK
="$ac_prog"
1038 AWK
="$ac_cv_prog_AWK"
1039 if test -n "$AWK"; then
1040 echo "$ac_t""$AWK" 1>&6
1042 echo "$ac_t""no" 1>&6
1045 test -n "$AWK" && break
1048 # Extract the first word of "flex", so it can be a program name with args.
1049 set dummy flex
; ac_word
=$2
1050 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1051 echo "configure:1052: checking for $ac_word" >&5
1052 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1053 echo $ac_n "(cached) $ac_c" 1>&6
1055 if test -n "$LEX"; then
1056 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1058 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1059 for ac_dir
in $PATH; do
1060 test -z "$ac_dir" && ac_dir
=.
1061 if test -f $ac_dir/$ac_word; then
1062 ac_cv_prog_LEX
="flex"
1067 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1070 LEX
="$ac_cv_prog_LEX"
1071 if test -n "$LEX"; then
1072 echo "$ac_t""$LEX" 1>&6
1074 echo "$ac_t""no" 1>&6
1077 if test -z "$LEXLIB"
1083 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1084 echo "configure:1085: checking for yywrap in -l$ac_lib" >&5
1085 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1086 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1087 echo $ac_n "(cached) $ac_c" 1>&6
1089 ac_save_LIBS
="$LIBS"
1090 LIBS
="-l$ac_lib $LIBS"
1091 cat > conftest.
$ac_ext <<EOF
1092 #line 1093 "configure"
1093 #include "confdefs.h"
1094 /* Override any gcc2 internal prototype to avoid an error. */
1095 /* We use char because int might match the return type of a gcc2
1096 builtin and then its argument prototype would still apply. */
1103 if { (eval echo configure
:1104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1105 eval "ac_cv_lib_$ac_lib_var=yes"
1107 echo "configure: failed program was:" >&5
1108 cat conftest.
$ac_ext >&5
1110 eval "ac_cv_lib_$ac_lib_var=no"
1113 LIBS
="$ac_save_LIBS"
1116 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1117 echo "$ac_t""yes" 1>&6
1120 echo "$ac_t""no" 1>&6
1125 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1126 echo "configure:1127: checking whether ln works" >&5
1127 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1128 echo $ac_n "(cached) $ac_c" 1>&6
1130 rm -f conftestdata_t
1131 echo >conftestdata_f
1132 if ln conftestdata_f conftestdata_t
2>/dev
/null
1136 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1138 gcc_cv_prog_LN
="ln -s"
1143 rm -f conftestdata_f conftestdata_t
1146 LN
="$gcc_cv_prog_LN"
1147 if test "$gcc_cv_prog_LN" = "ln"; then
1148 echo "$ac_t""yes" 1>&6
1150 if test "$gcc_cv_prog_LN" = "ln -s"; then
1151 echo "$ac_t""no, using ln -s" 1>&6
1153 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1157 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1158 echo "configure:1159: checking whether ln -s works" >&5
1159 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1160 echo $ac_n "(cached) $ac_c" 1>&6
1162 rm -f conftestdata_t
1163 echo >conftestdata_f
1164 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1166 gcc_cv_prog_LN_S
="ln -s"
1168 if ln conftestdata_f conftestdata_t
2>/dev
/null
1175 rm -f conftestdata_f conftestdata_t
1178 LN_S
="$gcc_cv_prog_LN_S"
1179 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1180 echo "$ac_t""yes" 1>&6
1182 if test "$gcc_cv_prog_LN_S" = "ln"; then
1183 echo "$ac_t""no, using ln" 1>&6
1185 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1189 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1190 echo "configure:1191: checking for volatile" >&5
1191 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1192 echo $ac_n "(cached) $ac_c" 1>&6
1194 cat > conftest.
$ac_ext <<EOF
1195 #line 1196 "configure"
1196 #include "confdefs.h"
1202 if { (eval echo configure
:1203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1204 gcc_cv_c_volatile
=yes
1206 echo "configure: failed program was:" >&5
1207 cat conftest.
$ac_ext >&5
1209 gcc_cv_c_volatile
=no
1214 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1215 if test $gcc_cv_c_volatile = yes ; then
1216 cat >> confdefs.h
<<\EOF
1217 #define HAVE_VOLATILE 1
1222 # Extract the first word of "ranlib", so it can be a program name with args.
1223 set dummy ranlib
; ac_word
=$2
1224 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1225 echo "configure:1226: checking for $ac_word" >&5
1226 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1227 echo $ac_n "(cached) $ac_c" 1>&6
1229 if test -n "$RANLIB"; then
1230 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1232 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1233 for ac_dir
in $PATH; do
1234 test -z "$ac_dir" && ac_dir
=.
1235 if test -f $ac_dir/$ac_word; then
1236 ac_cv_prog_RANLIB
="ranlib"
1241 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1244 RANLIB
="$ac_cv_prog_RANLIB"
1245 if test -n "$RANLIB"; then
1246 echo "$ac_t""$RANLIB" 1>&6
1248 echo "$ac_t""no" 1>&6
1251 for ac_prog
in 'bison -y' byacc
1253 # Extract the first word of "$ac_prog", so it can be a program name with args.
1254 set dummy
$ac_prog; ac_word
=$2
1255 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1256 echo "configure:1257: checking for $ac_word" >&5
1257 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1258 echo $ac_n "(cached) $ac_c" 1>&6
1260 if test -n "$YACC"; then
1261 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1263 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1264 for ac_dir
in $PATH; do
1265 test -z "$ac_dir" && ac_dir
=.
1266 if test -f $ac_dir/$ac_word; then
1267 ac_cv_prog_YACC
="$ac_prog"
1274 YACC
="$ac_cv_prog_YACC"
1275 if test -n "$YACC"; then
1276 echo "$ac_t""$YACC" 1>&6
1278 echo "$ac_t""no" 1>&6
1281 test -n "$YACC" && break
1283 test -n "$YACC" || YACC
="yacc"
1285 # Find a good install program. We prefer a C program (faster),
1286 # so one script is as good as another. But avoid the broken or
1287 # incompatible versions:
1288 # SysV /etc/install, /usr/sbin/install
1289 # SunOS /usr/etc/install
1290 # IRIX /sbin/install
1292 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1293 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1294 # ./install, which can be erroneously created by make from ./install.sh.
1295 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1296 echo "configure:1297: checking for a BSD compatible install" >&5
1297 if test -z "$INSTALL"; then
1298 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1299 echo $ac_n "(cached) $ac_c" 1>&6
1301 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1302 for ac_dir
in $PATH; do
1303 # Account for people who put trailing slashes in PATH elements.
1305 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1307 # OSF1 and SCO ODT 3.0 have their own names for install.
1308 for ac_prog
in ginstall scoinst
install; do
1309 if test -f $ac_dir/$ac_prog; then
1310 if test $ac_prog = install &&
1311 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1312 # AIX install. It has an incompatible calling convention.
1313 # OSF/1 installbsd also uses dspmsg, but is usable.
1316 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1327 if test "${ac_cv_path_install+set}" = set; then
1328 INSTALL
="$ac_cv_path_install"
1330 # As a last resort, use the slow shell script. We don't cache a
1331 # path for INSTALL within a source directory, because that will
1332 # break other packages using the cache if that directory is
1333 # removed, or if the path is relative.
1334 INSTALL
="$ac_install_sh"
1337 echo "$ac_t""$INSTALL" 1>&6
1339 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1340 # It thinks the first close brace ends the variable substitution.
1341 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1343 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1346 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1347 echo "configure:1348: checking how to run the C preprocessor" >&5
1348 # On Suns, sometimes $CPP names a directory.
1349 if test -n "$CPP" && test -d "$CPP"; then
1352 if test -z "$CPP"; then
1353 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1354 echo $ac_n "(cached) $ac_c" 1>&6
1356 # This must be in double quotes, not single quotes, because CPP may get
1357 # substituted into the Makefile and "${CC-cc}" will confuse make.
1359 # On the NeXT, cc -E runs the code through the compiler's parser,
1360 # not just through cpp.
1361 cat > conftest.
$ac_ext <<EOF
1362 #line 1363 "configure"
1363 #include "confdefs.h"
1367 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1368 { (eval echo configure
:1369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1369 ac_err
=`grep -v '^ *+' conftest.out`
1370 if test -z "$ac_err"; then
1374 echo "configure: failed program was:" >&5
1375 cat conftest.
$ac_ext >&5
1377 CPP
="${CC-cc} -E -traditional-cpp"
1378 cat > conftest.
$ac_ext <<EOF
1379 #line 1380 "configure"
1380 #include "confdefs.h"
1384 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1385 { (eval echo configure
:1386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1386 ac_err
=`grep -v '^ *+' conftest.out`
1387 if test -z "$ac_err"; then
1391 echo "configure: failed program was:" >&5
1392 cat conftest.
$ac_ext >&5
1399 ac_cv_prog_CPP
="$CPP"
1401 CPP
="$ac_cv_prog_CPP"
1403 ac_cv_prog_CPP
="$CPP"
1405 echo "$ac_t""$CPP" 1>&6
1407 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1408 echo "configure:1409: checking for ANSI C header files" >&5
1409 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1410 echo $ac_n "(cached) $ac_c" 1>&6
1412 cat > conftest.
$ac_ext <<EOF
1413 #line 1414 "configure"
1414 #include "confdefs.h"
1420 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1421 { (eval echo configure
:1422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1422 ac_err
=`grep -v '^ *+' conftest.out`
1423 if test -z "$ac_err"; then
1425 ac_cv_header_stdc
=yes
1428 echo "configure: failed program was:" >&5
1429 cat conftest.
$ac_ext >&5
1431 ac_cv_header_stdc
=no
1435 if test $ac_cv_header_stdc = yes; then
1436 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1437 cat > conftest.
$ac_ext <<EOF
1438 #line 1439 "configure"
1439 #include "confdefs.h"
1442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1443 egrep "memchr" >/dev
/null
2>&1; then
1447 ac_cv_header_stdc
=no
1453 if test $ac_cv_header_stdc = yes; then
1454 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1455 cat > conftest.
$ac_ext <<EOF
1456 #line 1457 "configure"
1457 #include "confdefs.h"
1460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1461 egrep "free" >/dev
/null
2>&1; then
1465 ac_cv_header_stdc
=no
1471 if test $ac_cv_header_stdc = yes; then
1472 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1473 if test "$cross_compiling" = yes; then
1476 cat > conftest.
$ac_ext <<EOF
1477 #line 1478 "configure"
1478 #include "confdefs.h"
1480 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1481 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1482 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1483 int main () { int i; for (i = 0; i < 256; i++)
1484 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1488 if { (eval echo configure
:1489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1492 echo "configure: failed program was:" >&5
1493 cat conftest.
$ac_ext >&5
1495 ac_cv_header_stdc
=no
1503 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1504 if test $ac_cv_header_stdc = yes; then
1505 cat >> confdefs.h
<<\EOF
1506 #define STDC_HEADERS 1
1511 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1512 echo "configure:1513: checking whether time.h and sys/time.h may both be included" >&5
1513 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1514 echo $ac_n "(cached) $ac_c" 1>&6
1516 cat > conftest.
$ac_ext <<EOF
1517 #line 1518 "configure"
1518 #include "confdefs.h"
1519 #include <sys/types.h>
1520 #include <sys/time.h>
1526 if { (eval echo configure
:1527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1528 ac_cv_header_time
=yes
1530 echo "configure: failed program was:" >&5
1531 cat conftest.
$ac_ext >&5
1533 ac_cv_header_time
=no
1538 echo "$ac_t""$ac_cv_header_time" 1>&6
1539 if test $ac_cv_header_time = yes; then
1540 cat >> confdefs.h
<<\EOF
1541 #define TIME_WITH_SYS_TIME 1
1546 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h fcntl.h unistd.h stab.h sys
/file.h sys
/time.h sys
/resource.h sys
/param.h sys
/times.h
wait.h sys
/wait.h
1548 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1549 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1550 echo "configure:1551: checking for $ac_hdr" >&5
1551 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1552 echo $ac_n "(cached) $ac_c" 1>&6
1554 cat > conftest.
$ac_ext <<EOF
1555 #line 1556 "configure"
1556 #include "confdefs.h"
1559 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1560 { (eval echo configure
:1561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1561 ac_err
=`grep -v '^ *+' conftest.out`
1562 if test -z "$ac_err"; then
1564 eval "ac_cv_header_$ac_safe=yes"
1567 echo "configure: failed program was:" >&5
1568 cat conftest.
$ac_ext >&5
1570 eval "ac_cv_header_$ac_safe=no"
1574 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1575 echo "$ac_t""yes" 1>&6
1576 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1577 cat >> confdefs.h
<<EOF
1578 #define $ac_tr_hdr 1
1582 echo "$ac_t""no" 1>&6
1587 # Check for thread headers.
1588 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
1589 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
1590 echo "configure:1591: checking for thread.h" >&5
1591 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1592 echo $ac_n "(cached) $ac_c" 1>&6
1594 cat > conftest.
$ac_ext <<EOF
1595 #line 1596 "configure"
1596 #include "confdefs.h"
1599 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1600 { (eval echo configure
:1601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1601 ac_err
=`grep -v '^ *+' conftest.out`
1602 if test -z "$ac_err"; then
1604 eval "ac_cv_header_$ac_safe=yes"
1607 echo "configure: failed program was:" >&5
1608 cat conftest.
$ac_ext >&5
1610 eval "ac_cv_header_$ac_safe=no"
1614 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1615 echo "$ac_t""yes" 1>&6
1618 echo "$ac_t""no" 1>&6
1622 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
1623 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
1624 echo "configure:1625: checking for pthread.h" >&5
1625 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1626 echo $ac_n "(cached) $ac_c" 1>&6
1628 cat > conftest.
$ac_ext <<EOF
1629 #line 1630 "configure"
1630 #include "confdefs.h"
1631 #include <pthread.h>
1633 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1634 { (eval echo configure
:1635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1635 ac_err
=`grep -v '^ *+' conftest.out`
1636 if test -z "$ac_err"; then
1638 eval "ac_cv_header_$ac_safe=yes"
1641 echo "configure: failed program was:" >&5
1642 cat conftest.
$ac_ext >&5
1644 eval "ac_cv_header_$ac_safe=no"
1648 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1649 echo "$ac_t""yes" 1>&6
1652 echo "$ac_t""no" 1>&6
1657 # See if the system preprocessor understands the ANSI C preprocessor
1658 # stringification operator.
1659 echo $ac_n "checking whether cpp understands the stringify operator""... $ac_c" 1>&6
1660 echo "configure:1661: checking whether cpp understands the stringify operator" >&5
1661 if eval "test \"`echo '$''{'gcc_cv_c_have_stringify'+set}'`\" = set"; then
1662 echo $ac_n "(cached) $ac_c" 1>&6
1664 cat > conftest.
$ac_ext <<EOF
1665 #line 1666 "configure"
1666 #include "confdefs.h"
1670 char *test = S(foo);
1673 if { (eval echo configure
:1674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1675 gcc_cv_c_have_stringify
=yes
1677 echo "configure: failed program was:" >&5
1678 cat conftest.
$ac_ext >&5
1680 gcc_cv_c_have_stringify
=no
1685 echo "$ac_t""$gcc_cv_c_have_stringify" 1>&6
1686 if test $gcc_cv_c_have_stringify = yes; then
1687 cat >> confdefs.h
<<\EOF
1688 #define HAVE_CPP_STRINGIFY 1
1693 # Use <inttypes.h> only if it exists,
1694 # doesn't clash with <sys/types.h>, and declares intmax_t.
1695 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
1696 echo "configure:1697: checking for inttypes.h" >&5
1697 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
1698 echo $ac_n "(cached) $ac_c" 1>&6
1700 cat > conftest.
$ac_ext <<EOF
1701 #line 1702 "configure"
1702 #include "confdefs.h"
1703 #include <sys/types.h>
1704 #include <inttypes.h>
1709 if { (eval echo configure
:1710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1711 cat >> confdefs.h
<<EOF
1712 #define HAVE_INTTYPES_H 1
1715 gcc_cv_header_inttypes_h
=yes
1717 echo "configure: failed program was:" >&5
1718 cat conftest.
$ac_ext >&5
1720 gcc_cv_header_inttypes_h
=no
1725 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
1727 for ac_func
in strtoul bsearch strerror putenv popen bcopy bzero bcmp \
1728 index rindex strchr strrchr
kill getrlimit setrlimit atoll atoq \
1729 sysconf isascii gettimeofday
1731 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1732 echo "configure:1733: checking for $ac_func" >&5
1733 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1734 echo $ac_n "(cached) $ac_c" 1>&6
1736 cat > conftest.
$ac_ext <<EOF
1737 #line 1738 "configure"
1738 #include "confdefs.h"
1739 /* System header to define __stub macros and hopefully few prototypes,
1740 which can conflict with char $ac_func(); below. */
1742 /* Override any gcc2 internal prototype to avoid an error. */
1743 /* We use char because int might match the return type of a gcc2
1744 builtin and then its argument prototype would still apply. */
1749 /* The GNU C library defines this for functions which it implements
1750 to always fail with ENOSYS. Some functions are actually named
1751 something starting with __ and the normal name is an alias. */
1752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1760 if { (eval echo configure
:1761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1762 eval "ac_cv_func_$ac_func=yes"
1764 echo "configure: failed program was:" >&5
1765 cat conftest.
$ac_ext >&5
1767 eval "ac_cv_func_$ac_func=no"
1772 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1773 echo "$ac_t""yes" 1>&6
1774 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1775 cat >> confdefs.h
<<EOF
1776 #define $ac_tr_func 1
1780 echo "$ac_t""no" 1>&6
1785 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1786 echo "configure:1787: checking for vprintf" >&5
1787 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1788 echo $ac_n "(cached) $ac_c" 1>&6
1790 cat > conftest.
$ac_ext <<EOF
1791 #line 1792 "configure"
1792 #include "confdefs.h"
1793 /* System header to define __stub macros and hopefully few prototypes,
1794 which can conflict with char vprintf(); below. */
1796 /* Override any gcc2 internal prototype to avoid an error. */
1797 /* We use char because int might match the return type of a gcc2
1798 builtin and then its argument prototype would still apply. */
1803 /* The GNU C library defines this for functions which it implements
1804 to always fail with ENOSYS. Some functions are actually named
1805 something starting with __ and the normal name is an alias. */
1806 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1814 if { (eval echo configure
:1815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1816 eval "ac_cv_func_vprintf=yes"
1818 echo "configure: failed program was:" >&5
1819 cat conftest.
$ac_ext >&5
1821 eval "ac_cv_func_vprintf=no"
1826 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1827 echo "$ac_t""yes" 1>&6
1828 cat >> confdefs.h
<<\EOF
1829 #define HAVE_VPRINTF 1
1833 echo "$ac_t""no" 1>&6
1836 if test "$ac_cv_func_vprintf" != yes; then
1837 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1838 echo "configure:1839: checking for _doprnt" >&5
1839 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1840 echo $ac_n "(cached) $ac_c" 1>&6
1842 cat > conftest.
$ac_ext <<EOF
1843 #line 1844 "configure"
1844 #include "confdefs.h"
1845 /* System header to define __stub macros and hopefully few prototypes,
1846 which can conflict with char _doprnt(); below. */
1848 /* Override any gcc2 internal prototype to avoid an error. */
1849 /* We use char because int might match the return type of a gcc2
1850 builtin and then its argument prototype would still apply. */
1855 /* The GNU C library defines this for functions which it implements
1856 to always fail with ENOSYS. Some functions are actually named
1857 something starting with __ and the normal name is an alias. */
1858 #if defined (__stub__doprnt) || defined (__stub____doprnt)
1866 if { (eval echo configure
:1867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1868 eval "ac_cv_func__doprnt=yes"
1870 echo "configure: failed program was:" >&5
1871 cat conftest.
$ac_ext >&5
1873 eval "ac_cv_func__doprnt=no"
1878 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1879 echo "$ac_t""yes" 1>&6
1880 cat >> confdefs.h
<<\EOF
1881 #define HAVE_DOPRNT 1
1885 echo "$ac_t""no" 1>&6
1892 if test $ac_cv_func_vprintf != yes ; then
1894 if test $ac_cv_func__doprnt != yes ; then
1901 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
1902 echo "configure:1903: checking whether the printf functions support %p" >&5
1903 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
1904 echo $ac_n "(cached) $ac_c" 1>&6
1906 if test "$cross_compiling" = yes; then
1907 gcc_cv_func_printf_ptr
=no
1909 cat > conftest.
$ac_ext <<EOF
1910 #line 1911 "configure"
1911 #include "confdefs.h"
1917 char *p = buf, *q = NULL;
1918 sprintf(buf, "%p", p);
1919 sscanf(buf, "%p", &q);
1923 if { (eval echo configure
:1924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1925 gcc_cv_func_printf_ptr
=yes
1927 echo "configure: failed program was:" >&5
1928 cat conftest.
$ac_ext >&5
1930 gcc_cv_func_printf_ptr
=no
1935 rm -f core core.
* *.core
1938 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
1939 if test $gcc_cv_func_printf_ptr = yes ; then
1940 cat >> confdefs.h
<<\EOF
1941 #define HOST_PTR_PRINTF "%p"
1947 for ac_func
in malloc realloc calloc free bcopy bzero bcmp \
1948 index rindex getenv atol sbrk abort atof strerror getcwd getwd
1950 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
1951 echo "configure:1952: checking whether $ac_func must be declared" >&5
1952 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
1953 echo $ac_n "(cached) $ac_c" 1>&6
1955 cat > conftest.
$ac_ext <<EOF
1956 #line 1957 "configure"
1957 #include "confdefs.h"
1960 #ifdef HAVE_STRING_H
1963 #ifdef HAVE_STRINGS_H
1964 #include <strings.h>
1967 #ifdef HAVE_STDLIB_H
1970 #ifdef HAVE_UNISTD_H
1974 #define rindex strrchr
1977 #define index strchr
1980 char *(*pfn) = (char *(*)) $ac_func
1983 if { (eval echo configure
:1984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1985 eval "gcc_cv_decl_needed_$ac_func=no"
1987 echo "configure: failed program was:" >&5
1988 cat conftest.
$ac_ext >&5
1990 eval "gcc_cv_decl_needed_$ac_func=yes"
1995 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
1996 echo "$ac_t""yes" 1>&6
1997 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1998 cat >> confdefs.h
<<EOF
1999 #define $gcc_tr_decl 1
2003 echo "$ac_t""no" 1>&6
2009 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2010 echo "configure:2011: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2011 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2012 echo $ac_n "(cached) $ac_c" 1>&6
2014 cat > conftest.
$ac_ext <<EOF
2015 #line 2016 "configure"
2016 #include "confdefs.h"
2017 #include <sys/types.h>
2019 /* NetBSD declares sys_siglist in unistd.h. */
2020 #ifdef HAVE_UNISTD_H
2024 char *msg = *(sys_siglist + 1);
2027 if { (eval echo configure
:2028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2029 ac_cv_decl_sys_siglist
=yes
2031 echo "configure: failed program was:" >&5
2032 cat conftest.
$ac_ext >&5
2034 ac_cv_decl_sys_siglist
=no
2039 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2040 if test $ac_cv_decl_sys_siglist = yes; then
2041 cat >> confdefs.h
<<\EOF
2042 #define SYS_SIGLIST_DECLARED 1
2056 build_install_headers_dir
=install-headers-tar
2061 host_truncate_target
=
2064 # Decode the host machine, then the target machine.
2065 # For the host machine, we save the xm_file variable as host_xm_file;
2066 # then we decode the target machine and forget everything else
2067 # that came from the host machine.
2068 for machine
in $build $host $target; do
2082 # Set this to force installation and use of collect2.
2084 # Set this to override the default target model.
2086 # Set this to control which fixincludes program to use.
2087 if [ x
$fast_fixinc != xyes
] ; then
2088 fixincludes
=fixincludes
2089 else fixincludes
=fixinc.sh
; fi
2090 # Set this to control how the header file directory is installed.
2091 install_headers_dir
=install-headers-tar
2092 # Set this to a non-empty list of args to pass to cpp if the target
2093 # wants its .md file passed through cpp.
2095 # Set this if directory names should be truncated to 14 characters.
2097 # Set this if gdb needs a dir command with `dirname $out_file`
2098 gdb_needs_out_file_path
=
2099 # Set this if the build machine requires executables to have a
2102 # Set this to control which thread package will be used.
2104 # Reinitialize these from the flag values every loop pass, since some
2105 # configure entries modify them.
2107 gnu_ld
="$gnu_ld_flag"
2108 enable_threads
=$enable_threads_flag
2110 # Set default cpu_type, tm_file and xm_file so it can be updated in
2111 # each machine entry.
2112 cpu_type
=`echo $machine | sed 's/-.*$//'`
2146 tm_file
=${cpu_type}/${cpu_type}.h
2147 xm_file
=${cpu_type}/xm-
${cpu_type}.h
2149 # Set the default macros to define for GNU/Linux systems.
2152 xm_defines
="HAVE_ATEXIT POSIX BSTRING"
2157 # Support site-specific machine types.
2159 cpu_type
=`echo $machine | sed -e 's/-.*//'`
2160 rest
=`echo $machine | sed -e "s/$cpu_type-//"`
2161 xm_file
=${cpu_type}/xm-
$rest.h
2162 tm_file
=${cpu_type}/$rest.h
2163 if [ -f $srcdir/config
/${cpu_type}/x-
$rest ] ; \
2164 then xmake_file
=${cpu_type}/x-
$rest; \
2167 if [ -f $srcdir/config
/${cpu_type}/t-
$rest ] ; \
2168 then tmake_file
=${cpu_type}/t-
$rest; \
2174 a29k-
*-bsd* | a29k-
*-sym1*)
2175 tm_file
="${tm_file} a29k/unix.h"
2177 xmake_file
=a29k
/x-unix
2180 a29k-
*-udi | a29k-
*-coff)
2181 tm_file
="${tm_file} dbxcoff.h a29k/udi.h"
2182 tmake_file
=a29k
/t-a29kbare
2185 tm_file
="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
2186 tmake_file
=a29k
/t-vx29k
2187 extra_parts
="crtbegin.o crtend.o"
2188 thread_file
='vxworks'
2190 a29k-
*-*) # Default a29k environment.
2193 alpha
*-*-linux-gnuecoff*)
2194 tm_file
="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
2195 target_cpu_default
="MASK_GAS"
2200 alpha
*-*-linux-gnulibc1*)
2201 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
2202 target_cpu_default
="MASK_GAS"
2203 tmake_file
="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
2204 extra_parts
="crtbegin.o crtend.o"
2205 fixincludes
=fixinc.wrap
2208 if [ x
$enable_threads = xyes
]; then
2212 alpha
*-*-linux-gnu*)
2213 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
2214 target_cpu_default
="MASK_GAS"
2215 tmake_file
="t-linux alpha/t-linux alpha/t-crtbe"
2216 extra_parts
="crtbegin.o crtend.o"
2218 fixincludes
=Makefile.
in
2220 if [ x
$enable_threads = xyes
]; then
2225 tm_file
="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsdl-elf.h"
2226 target_cpu_default
="MASK_GAS"
2227 tmake_file
="alpha/t-crtbe"
2228 extra_parts
="crtbegin.o crtend.o"
2230 fixincludes
=fixinc.wrap
2235 if [ x
$stabs = xyes
]
2237 tm_file
="${tm_file} dbx.h"
2239 if [ x
$gas != xyes
]
2241 extra_passes
="mips-tfile mips-tdump"
2246 tm_file
="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
2249 tm_file
="${tm_file} alpha/osf.h alpha/osf2or3.h"
2252 tm_file
="${tm_file} alpha/osf.h"
2253 # Some versions of OSF4 (specifically X4.0-9 296.7) have
2254 # a broken tar, so we use cpio instead.
2255 install_headers_dir
=install-headers-cpio
2259 *-*-osf4.0
[b-z
] |
*-*-osf4.
[1-9]*)
2260 target_cpu_default
=MASK_SUPPORT_ARCH
2265 tm_file
="${tm_file} dbx.h alpha/vxworks.h"
2268 extra_passes
="mips-tfile mips-tdump"
2273 tm_file
="${tm_file} alpha/win-nt.h"
2274 xm_file
="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
2275 tmake_file
=t-libc-ok
2276 xmake_file
=winnt
/x-winnt
2277 extra_host_objs
=oldnames.o
2278 extra_gcc_objs
="spawnv.o oldnames.o"
2279 fixincludes
=fixinc.winnt
2280 if [ x
$gnu_ld != xyes
]
2282 extra_programs
=ld.exe
2284 if [ x
$enable_threads = xyes
]; then
2290 xm_file
="${xm_file} alpha/xm-vms.h"
2291 tmake_file
=alpha
/t-vms
2292 fixincludes
=Makefile.
in
2295 extra_parts
="crtinit.o crtfini.o"
2297 arm-
*-coff* | armel-
*-coff*)
2299 tmake_file
=arm
/t-bare
2301 arm-
*-riscix1.
[01]*) # Acorn RISC machine (early versions)
2302 tm_file
=arm
/riscix1-1.h
2305 arm-
*-riscix*) # Acorn RISC machine
2308 tm_file
=arm
/rix-gas.h
2310 tm_file
=arm
/riscix.h
2312 xmake_file
=arm
/x-riscix
2313 tmake_file
=arm
/t-riscix
2316 arm-semi-aout | armel-semi-aout
)
2318 tmake_file
=arm
/t-semi
2319 fixincludes
=Makefile.
in # There is nothing to fix
2321 arm-semi-aof | armel-semi-aof
)
2322 tm_file
=arm
/semiaof.h
2323 tmake_file
=arm
/t-semiaof
2324 fixincludes
=Makefile.
in # There is nothing to fix
2327 tm_file
=arm
/netbsd.h
2328 xm_file
="xm-siglist.h ${xm_file}"
2329 tmake_file
="t-netbsd arm/t-netbsd"
2330 # On NetBSD, the headers are already okay, except for math.h.
2331 fixincludes
=fixinc.wrap
2333 arm-
*-linux-gnuaout*) # ARM GNU/Linux
2336 tm_file
=arm
/linux-gas.h
2337 tmake_file
=arm
/t-linux
2338 fixincludes
=Makefile.
in
2343 tmake_file
=arm
/t-bare
2345 c1-convex-
*) # Convex C1
2346 target_cpu_default
=1
2348 fixincludes
=Makefile.
in
2350 c2-convex-
*) # Convex C2
2351 target_cpu_default
=2
2353 fixincludes
=Makefile.
in
2356 target_cpu_default
=4
2358 fixincludes
=Makefile.
in
2361 target_cpu_default
=8
2363 fixincludes
=Makefile.
in
2366 target_cpu_default
=16
2368 fixincludes
=Makefile.
in
2370 clipper-intergraph-clix
*)
2371 tm_file
="${tm_file} svr3.h clipper/clix.h"
2372 xm_file
=clipper
/xm-clix.h
2373 xmake_file
=clipper
/x-clix
2374 extra_headers
=va-clipper.h
2375 extra_parts
="crtbegin.o crtend.o"
2376 install_headers_dir
=install-headers-cpio
2383 # This hasn't been upgraded to GCC 2.
2384 # fx80-alliant-*) # Alliant FX/80
2390 tm_file
="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
2391 xm_file
=pa
/xm-papro.h
2395 target_cpu_default
=1
2396 tm_file
="${tm_file} pa/pa-osf.h"
2398 fixincludes
=Makefile.
in
2401 tm_file
="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
2402 xm_file
=pa
/xm-papro.h
2406 tm_file
="${tm_file} pa/pa-osf.h"
2408 fixincludes
=Makefile.
in
2411 target_cpu_default
=1
2413 fixincludes
=Makefile.
in
2417 fixincludes
=Makefile.
in
2420 tm_file
="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
2421 xm_file
=pa
/xm-pahpux.h
2422 xmake_file
=pa
/x-pa-hpux
2425 tm_file
="${tm_file} pa/gas.h"
2427 install_headers_dir
=install-headers-cpio
2430 hppa1.0
-*-hpux8.0
[0-2]*)
2431 tm_file
="${tm_file} pa/pa-hpux.h"
2432 xm_file
=pa
/xm-pahpux.h
2433 xmake_file
=pa
/x-pa-hpux
2436 tm_file
="${tm_file} pa/pa-gas.h"
2438 tm_file
="pa/pa-oldas.h ${tm_file}"
2440 install_headers_dir
=install-headers-cpio
2443 hppa1.1
-*-hpux8.0
[0-2]*)
2444 target_cpu_default
=1
2445 tm_file
="${tm_file} pa/pa-hpux.h"
2446 xm_file
=pa
/xm-pahpux.h
2447 xmake_file
=pa
/x-pa-hpux
2450 tm_file
="${tm_file} pa/pa-gas.h"
2452 tm_file
="pa/pa-oldas.h ${tm_file}"
2454 install_headers_dir
=install-headers-cpio
2458 target_cpu_default
=1
2459 tm_file
="${tm_file} pa/pa-hpux.h"
2460 xm_file
=pa
/xm-pahpux.h
2461 xmake_file
=pa
/x-pa-hpux
2464 tm_file
="${tm_file} pa/pa-gas.h"
2466 install_headers_dir
=install-headers-cpio
2470 tm_file
="${tm_file} pa/pa-hpux.h"
2471 xm_file
=pa
/xm-pahpux.h
2472 xmake_file
=pa
/x-pa-hpux
2475 tm_file
="${tm_file} pa/pa-gas.h"
2477 install_headers_dir
=install-headers-cpio
2481 target_cpu_default
=1
2482 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
2483 xm_file
=pa
/xm-pahpux.h
2484 xmake_file
=pa
/x-pa-hpux
2488 tm_file
="${tm_file} pa/pa-gas.h"
2490 if [ x
$enable_threads = x
]; then
2491 enable_threads
=$have_pthread_h
2493 if [ x
$enable_threads = xyes
]; then
2495 tmake_file
="${tmake_file} pa/t-dce-thr"
2497 install_headers_dir
=install-headers-cpio
2501 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
2502 xm_file
=pa
/xm-pahpux.h
2503 xmake_file
=pa
/x-pa-hpux
2506 tm_file
="${tm_file} pa/pa-gas.h"
2508 if [ x
$enable_threads = x
]; then
2509 enable_threads
=$have_pthread_h
2511 if [ x
$enable_threads = xyes
]; then
2513 tmake_file
="${tmake_file} pa/t-dce-thr"
2515 install_headers_dir
=install-headers-cpio
2519 target_cpu_default
=1
2520 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
2521 xm_file
=pa
/xm-pahpux.h
2522 xmake_file
=pa
/x-pa-hpux
2525 tm_file
="${tm_file} pa/pa-gas.h"
2527 install_headers_dir
=install-headers-cpio
2531 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
2532 xm_file
=pa
/xm-pahpux.h
2533 xmake_file
=pa
/x-pa-hpux
2536 tm_file
="${tm_file} pa/pa-gas.h"
2538 install_headers_dir
=install-headers-cpio
2542 target_cpu_default
=1
2543 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
2544 xm_file
=pa
/xm-pahpux.h
2545 xmake_file
=pa
/x-pa-hpux
2548 tm_file
="${tm_file} pa/pa-gas.h"
2550 install_headers_dir
=install-headers-cpio
2554 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
2555 xm_file
=pa
/xm-pahpux.h
2556 xmake_file
=pa
/x-pa-hpux
2559 tm_file
="${tm_file} pa/pa-gas.h"
2561 install_headers_dir
=install-headers-cpio
2565 target_cpu_default
=1
2567 fixincludes
=Makefile.
in
2571 i
[34567]86-ibm-aix*) # IBM PS/2 running AIX
2574 tm_file
=i386
/aix386.h
2575 extra_parts
="crtbegin.o crtend.o"
2576 tmake_file
=i386
/t-crtstuff
2578 tm_file
=i386
/aix386ng.h
2581 xm_file
="xm-alloca.h i386/xm-aix.h ${xm_file}"
2583 xmake_file
=i386
/x-aix
2585 i
[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
2586 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
2587 xm_defines
="USG POSIX SMALL_ARG_MAX"
2588 xmake_file
=i386
/x-ncr3000
2589 if [ x
$stabs = xyes
-a x
$gas = xyes
]
2591 tm_file
=i386
/sysv4gdb.h
2593 tm_file
=i386
/sysv4.h
2595 extra_parts
="crtbegin.o crtend.o"
2596 tmake_file
=i386
/t-crtpic
2600 xm_file
=i386
/xm-next.h
2601 tmake_file
=i386
/t-next
2602 xmake_file
=i386
/x-next
2603 extra_objs
=nextstep.o
2604 if [ x
$enable_threads = xyes
]; then
2608 i
[34567]86-sequent-bsd*) # 80386 from Sequent
2612 tm_file
=i386
/seq-gas.h
2614 tm_file
=i386
/sequent.h
2617 i
[34567]86-sequent-ptx1*)
2618 xm_defines
="USG SVR3"
2619 xmake_file
=i386
/x-sysv3
2620 tm_file
=i386
/seq-sysv3.h
2621 tmake_file
=i386
/t-crtstuff
2622 fixincludes
=fixinc.
ptx
2623 extra_parts
="crtbegin.o crtend.o"
2624 install_headers_dir
=install-headers-cpio
2626 i
[34567]86-sequent-ptx2* | i
[34567]86-sequent-sysv3*)
2627 xm_defines
="USG SVR3"
2628 xmake_file
=i386
/x-sysv3
2629 tm_file
=i386
/seq2-sysv3.h
2630 tmake_file
=i386
/t-crtstuff
2631 extra_parts
="crtbegin.o crtend.o"
2632 fixincludes
=fixinc.
ptx
2633 install_headers_dir
=install-headers-cpio
2635 i
[34567]86-sequent-ptx4* | i
[34567]86-sequent-sysv4*)
2636 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
2637 xm_defines
="USG POSIX SMALL_ARG_MAX"
2639 tm_file
=i386
/ptx4-i.h
2641 extra_parts
="crtbegin.o crtend.o"
2642 fixincludes
=fixinc.
ptx
2643 install_headers_dir
=install-headers-cpio
2645 i386-sun-sunos
*) # Sun i386 roadrunner
2650 i
[34567]86-wrs-vxworks*)
2651 tm_file
=i386
/vxi386.h
2652 tmake_file
=i386
/t-i386bare
2655 tm_file
=i386
/i386-aout.h
2656 tmake_file
=i386
/t-i386bare
2658 i
[34567]86-*-bsdi* | i
[34567]86-*-bsd386*)
2659 tm_file
=i386
/bsd386.h
2660 # tmake_file=t-libc-ok
2663 tm_file
=i386
/386bsd.h
2664 # tmake_file=t-libc-ok
2665 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
2668 i
[34567]86-*-freebsdelf*)
2669 tm_file
="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
2670 # On FreeBSD, the headers are already ok, except for math.h.
2671 fixincludes
=fixinc.wrap
2672 tmake_file
=i386
/t-freebsd
2677 i
[34567]86-*-freebsd*)
2678 tm_file
=i386
/freebsd.h
2679 # On FreeBSD, the headers are already ok, except for math.h.
2680 fixincludes
=fixinc.wrap
2681 tmake_file
=i386
/t-freebsd
2683 i
[34567]86-*-netbsd*)
2684 tm_file
=i386
/netbsd.h
2685 # On NetBSD, the headers are already okay, except for math.h.
2686 fixincludes
=fixinc.wrap
2690 tm_file
=i386
/i386-coff.h
2691 tmake_file
=i386
/t-i386bare
2693 i
[34567]86-*-isc*) # 80386 running ISC system
2694 xm_file
="${xm_file} i386/xm-isc.h"
2695 xm_defines
="USG SVR3"
2697 i
[34567]86-*-isc[34]*)
2698 xmake_file
=i386
/x-isc3
2701 xmake_file
=i386
/x-isc
2704 if [ x
$gas = xyes
-a x
$stabs = xyes
]
2706 tm_file
=i386
/iscdbx.h
2707 tmake_file
=i386
/t-svr3dbx
2708 extra_parts
="svr3.ifile svr3z.ifile"
2710 tm_file
=i386
/isccoff.h
2711 tmake_file
=i386
/t-crtstuff
2712 extra_parts
="crtbegin.o crtend.o"
2714 install_headers_dir
=install-headers-cpio
2716 i
[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
2717 # with a.out format using
2719 xmake_file
=x-linux-aout
2720 tmake_file
="t-linux-aout i386/t-crtstuff"
2721 tm_file
=i386
/linux-oldld.h
2722 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
2726 i
[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
2728 xmake_file
=x-linux-aout
2729 tmake_file
="t-linux-aout i386/t-crtstuff"
2730 tm_file
=i386
/linux-aout.h
2731 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
2735 i
[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
2736 # with ELF format using the
2737 # GNU/Linux C library 5
2739 tm_file
=i386
/linux.h
2740 tmake_file
="t-linux t-linux-gnulibc1 i386/t-crtstuff"
2741 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2742 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
2745 if [ x
$enable_threads = xyes
]; then
2746 thread_file
='single'
2749 i
[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
2750 # with ELF format using glibc 2
2751 # aka GNU/Linux C library 6
2753 tm_file
=i386
/linux.h
2754 tmake_file
="t-linux i386/t-crtstuff"
2755 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2756 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
2759 if [ x
$enable_threads = xyes
]; then
2765 i
[34567]86-go32-msdos | i
[34567]86-*-go32*)
2766 xm_file
=i386
/xm-go32.h
2768 tmake_file
=i386
/t-go32
2770 i
[34567]86-pc-msdosdjgpp*)
2771 xm_file
=i386
/xm-go32.h
2773 tmake_file
=i386
/t-go32
2777 i
[34567]86-moss-msdos* | i
[34567]86-*-moss*)
2779 tmake_file
=t-libc-ok
2780 fixincludes
=Makefile.
in
2784 i
[34567]86-*-lynxos*)
2789 tm_file
=i386
/lynx-ng.h
2791 xm_file
=i386
/xm-lynx.h
2792 tmake_file
=i386
/t-i386bare
2797 # tmake_file=t-libc-ok
2800 i
[34567]86-*-osfrose*) # 386 using OSF/rose
2803 tm_file
=i386
/osfelf.h
2806 tm_file
=i386
/osfrose.h
2809 xm_file
="i386/xm-osf.h ${xm_file}"
2810 xmake_file
=i386
/x-osfrose
2811 tmake_file
=i386
/t-osf
2812 extra_objs
=halfpic.o
2814 i
[34567]86-go32-rtems*)
2816 xm_file
=i386
/xm-go32.h
2817 tm_file
=i386
/go32-rtems.h
2818 tmake_file
="i386/t-go32 t-rtems"
2820 i
[34567]86-*-rtemself*)
2822 tm_file
=i386
/rtemself.h
2823 tmake_file
="i386/t-i386bare t-rtems"
2825 i
[34567]86-*-rtems*)
2827 tm_file
=i386
/rtems.h
2828 tmake_file
="i386/t-i386bare t-rtems"
2830 i
[34567]86-*-sco3.2v5
*) # 80386 running SCO Open Server 5
2831 xm_file
="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
2832 xm_defines
="USG SVR3"
2833 xmake_file
=i386
/x-sco5
2834 fixincludes
=fixinc.sco
2835 install_headers_dir
=install-headers-cpio
2837 tmake_file
=i386
/t-sco5
2838 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2840 i
[34567]86-*-sco3.2v4
*) # 80386 running SCO 3.2v4 system
2841 xm_file
="${xm_file} i386/xm-sco.h"
2842 xm_defines
="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
2843 xmake_file
=i386
/x-sco4
2844 fixincludes
=fixinc.sco
2845 install_headers_dir
=install-headers-cpio
2846 if [ x
$stabs = xyes
]
2848 tm_file
=i386
/sco4dbx.h
2849 tmake_file
=i386
/t-svr3dbx
2850 extra_parts
="svr3.ifile svr3z.rfile"
2853 tmake_file
=i386
/t-crtstuff
2854 extra_parts
="crtbegin.o crtend.o"
2858 i
[34567]86-*-sco*) # 80386 running SCO system
2859 xm_file
=i386
/xm-sco.h
2860 xmake_file
=i386
/x-sco
2861 install_headers_dir
=install-headers-cpio
2862 if [ x
$stabs = xyes
]
2864 tm_file
=i386
/scodbx.h
2865 tmake_file
=i386
/t-svr3dbx
2866 extra_parts
="svr3.ifile svr3z.rfile"
2869 extra_parts
="crtbegin.o crtend.o"
2870 tmake_file
=i386
/t-crtstuff
2874 i
[34567]86-*-solaris2*)
2875 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
2876 xm_defines
="USG POSIX SMALL_ARG_MAX"
2877 if [ x
$stabs = xyes
]
2879 tm_file
=i386
/sol2dbg.h
2883 tmake_file
=i386
/t-sol2
2884 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2888 fixincludes
=fixinc.svr4
;;
2890 fixincludes
=fixinc.wrap
;;
2892 if [ x
$enable_threads = xyes
]; then
2893 thread_file
='solaris'
2896 i
[34567]86-*-sysv5*) # Intel x86 on System V Release 5
2897 xm_file
="xm-alloca.h xm-siglist.h ${xm_file}"
2898 xm_defines
="USG POSIX"
2899 tm_file
=i386
/sysv4.h
2900 if [ x
$stabs = xyes
]
2902 tm_file
="${tm_file} dbx.h"
2904 tmake_file
=i386
/t-crtpic
2906 extra_parts
="crtbegin.o crtend.o"
2907 fixincludes
=Makefile.
in # The headers are just fine, thank you.
2909 i
[34567]86-*-sysv4*) # Intel 80386's running system V.4
2910 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
2911 xm_defines
="USG POSIX SMALL_ARG_MAX"
2912 tm_file
=i386
/sysv4.h
2913 if [ x
$stabs = xyes
]
2915 tm_file
="${tm_file} dbx.h"
2917 tmake_file
=i386
/t-crtpic
2919 extra_parts
="crtbegin.o crtend.o"
2921 i
[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
2923 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
2924 xm_defines
="USE_C_ALLOCA SMALL_ARG_MAX"
2925 fixincludes
=Makefile.
in #Don't do it on OSF/1
2926 if [ x
$stabs = xyes
]
2928 tm_file
=i386
/osf1elfgdb.h
2930 tm_file
=i386
/osf1elf.h
2932 tmake_file
=i386
/t-osf1elf
2933 xmake_file
=i386
/x-osf1elf
2934 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
2936 i
[34567]86-*-sysv*) # Intel 80386's running system V
2937 xm_defines
="USG SVR3"
2938 xmake_file
=i386
/x-sysv3
2941 if [ x
$stabs = xyes
]
2943 tm_file
=i386
/svr3dbx.h
2944 tmake_file
=i386
/t-svr3dbx
2945 extra_parts
="svr3.ifile svr3z.rfile"
2947 tm_file
=i386
/svr3gas.h
2948 extra_parts
="crtbegin.o crtend.o"
2949 tmake_file
=i386
/t-crtstuff
2952 tm_file
=i386
/sysv3.h
2953 extra_parts
="crtbegin.o crtend.o"
2954 tmake_file
=i386
/t-crtstuff
2957 i386-
*-vsta) # Intel 80386's running VSTa kernel
2958 xm_file
="${xm_file} i386/xm-vsta.h"
2960 tmake_file
=i386
/t-vsta
2961 xmake_file
=i386
/x-vsta
2963 i
[34567]86-*-pe | i
[34567]86-*-cygwin32)
2964 xm_file
="${xm_file} i386/xm-cygwin32.h"
2965 tmake_file
=i386
/t-cygwin32
2966 tm_file
=i386
/cygwin32.h
2967 xmake_file
=i386
/x-cygwin32
2969 fixincludes
=Makefile.
in
2970 if [ x
$enable_threads = xyes
]; then
2975 i
[34567]86-*-mingw32*)
2976 tm_file
=i386
/mingw32.h
2977 xm_file
="${xm_file} i386/xm-mingw32.h"
2978 tmake_file
="i386/t-cygwin32 i386/t-mingw32"
2980 xmake_file
=i386
/x-cygwin32
2981 fixincludes
=Makefile.
in
2982 if [ x
$enable_threads = xyes
]; then
2989 *minwg32crt
* |
*mingw32
*)
2990 tm_file
="${tm_file} i386/crtdll.h"
2994 i
[34567]86-*-winnt3*)
2995 tm_file
=i386
/win-nt.h
2996 out_file
=i386
/i386.c
2997 xm_file
="xm-winnt.h ${xm_file}"
2998 xmake_file
=winnt
/x-winnt
2999 tmake_file
=i386
/t-winnt
3000 extra_host_objs
="winnt.o oldnames.o"
3001 extra_gcc_objs
="spawnv.o oldnames.o"
3002 fixincludes
=fixinc.winnt
3003 if [ x
$gnu_ld != xyes
]
3005 extra_programs
=ld.exe
3007 if [ x
$enable_threads = xyes
]; then
3011 i
[34567]86-dg-dgux*)
3012 xm_file
="xm-alloca.h xm-siglist.h ${xm_file}"
3013 xm_defines
="USG POSIX"
3014 out_file
=i386
/dgux.c
3016 tmake_file
=i386
/t-dgux
3017 xmake_file
=i386
/x-dgux
3018 fixincludes
=fixinc.dgux
3019 install_headers_dir
=install-headers-cpio
3021 i860-alliant-
*) # Alliant FX/2800
3022 tm_file
="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
3023 xm_file
="${xm_file}"
3024 xmake_file
=i860
/x-fx2800
3025 tmake_file
=i860
/t-fx2800
3026 extra_parts
="crtbegin.o crtend.o"
3029 tm_file
="${tm_file} i860/bsd.h"
3032 tm_file
="${tm_file} i860/bsd-gas.h"
3037 tm_file
="${tm_file} i860/mach.h"
3038 tmake_file
=t-libc-ok
3040 i860-
*-osf*) # Intel Paragon XP/S, OSF/1AD
3041 tm_file
="${tm_file} svr3.h i860/paragon.h"
3042 xm_defines
="USG SVR3"
3046 tm_file
="${tm_file} svr3.h i860/sysv3.h"
3047 xm_defines
="USG SVR3"
3048 xmake_file
=i860
/x-sysv3
3049 extra_parts
="crtbegin.o crtend.o"
3052 tm_file
="${tm_file} svr4.h i860/sysv4.h"
3053 xm_defines
="USG SVR3"
3054 xmake_file
=i860
/x-sysv4
3056 extra_parts
="crtbegin.o crtend.o"
3058 i960-wrs-vxworks5 | i960-wrs-vxworks5.0
*)
3059 tm_file
="${tm_file} i960/vx960.h"
3060 tmake_file
=i960
/t-vxworks960
3062 thread_file
='vxworks'
3064 i960-wrs-vxworks5
* | i960-wrs-vxworks
)
3065 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
3066 tmake_file
=i960
/t-vxworks960
3068 thread_file
='vxworks'
3071 tm_file
="${tm_file} i960/vx960.h"
3072 tmake_file
=i960
/t-vxworks960
3074 thread_file
='vxworks'
3077 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
3078 tmake_file
=i960
/t-960bare
3082 tmake_file
="i960/t-960bare t-rtems"
3083 tm_file
="${tm_file} dbxcoff.h i960/rtems.h"
3086 i960-
*-*) # Default i960 environment.
3090 extra_parts
="crtinit.o crtfini.o"
3092 m68000-convergent-sysv
*)
3094 xm_file
="m68k/xm-3b1.h ${xm_file}"
3097 extra_headers
=math-68881.h
3099 m68000-hp-bsd
*) # HP 9000/200 running BSD
3100 tm_file
=m68k
/hp2bsd.h
3101 xmake_file
=m68k
/x-hp2bsd
3103 extra_headers
=math-68881.h
3105 m68000-hp-hpux
*) # HP 9000 series 300
3106 xm_file
="xm_alloca.h ${xm_file}"
3107 xm_defines
="USG NO_SYS_SIGLIST"
3110 xmake_file
=m68k
/x-hp320g
3111 tm_file
=m68k
/hp310g.h
3113 xmake_file
=m68k
/x-hp320
3114 tm_file
=m68k
/hp310.h
3116 install_headers_dir
=install-headers-cpio
3118 extra_headers
=math-68881.h
3123 extra_headers
=math-68881.h
3126 tm_file
=m68k
/sun2o4.h
3128 extra_headers
=math-68881.h
3131 xm_file
="m68k/xm-3b1.h ${xm_file}"
3140 extra_headers
=math-68881.h
3142 m68k-apple-aux
*) # Apple Macintosh running A/UX
3143 xm_defines
="USG AUX"
3144 tmake_file
=m68k
/t-aux
3145 install_headers_dir
=install-headers-cpio
3146 extra_headers
=math-68881.h
3147 extra_parts
="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
3149 if [ "$gnu_ld" = yes ]
3151 tm_file
="${tm_file} m68k/auxgld.h"
3153 tm_file
="${tm_file} m68k/auxld.h"
3157 tm_file
="${tm_file} m68k/auxgas.h"
3159 tm_file
="${tm_file} m68k/auxas.h"
3161 tm_file
="${tm_file} m68k/a-ux.h"
3165 tm_file
=m68k
/apollo68.h
3166 xmake_file
=m68k
/x-apollo68
3168 extra_headers
=math-68881.h
3171 m68k-altos-sysv
*) # Altos 3068
3174 tm_file
=m68k
/altos3068.h
3177 echo "The Altos is supported only with the GNU assembler" 1>&2
3180 extra_headers
=math-68881.h
3182 m68k-bull-sysv
*) # Bull DPX/2
3185 if [ x
$stabs = xyes
]
3187 tm_file
=m68k
/dpx2cdbx.h
3189 tm_file
=m68k
/dpx2g.h
3194 xm_file
="xm-alloca.h ${xm_file}"
3196 xmake_file
=m68k
/x-dpx2
3198 extra_headers
=math-68881.h
3200 m68k-atari-sysv4
*) # Atari variant of V.4.
3201 tm_file
=m68k
/atari.h
3202 xm_file
="xm-alloca.h ${xm_file}"
3203 xm_defines
="USG FULL_PROTOTYPES"
3205 extra_parts
="crtbegin.o crtend.o"
3206 extra_headers
=math-68881.h
3209 m68k-motorola-sysv
*)
3210 tm_file
=m68k
/mot3300.h
3211 xm_file
="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
3212 xm_defines
=NO_SYS_SIGLIST
3215 xmake_file
=m68k
/x-mot3300-gas
3216 if [ x
$gnu_ld = xyes
]
3218 tmake_file
=m68k
/t-mot3300-gald
3220 tmake_file
=m68k
/t-mot3300-gas
3224 xmake_file
=m68k
/x-mot3300
3225 if [ x
$gnu_ld = xyes
]
3227 tmake_file
=m68k
/t-mot3300-gld
3229 tmake_file
=m68k
/t-mot3300
3233 gdb_needs_out_file_path
=yes
3234 extra_parts
="crt0.o mcrt0.o"
3235 extra_headers
=math-68881.h
3238 m68k-ncr-sysv
*) # NCR Tower 32 SVR3
3239 tm_file
=m68k
/tower-as.h
3240 xm_defines
="USG SVR3"
3241 xmake_file
=m68k
/x-tower
3242 extra_parts
="crtbegin.o crtend.o"
3243 extra_headers
=math-68881.h
3246 tm_file
=m68k
/plexus.h
3247 xm_file
="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
3250 extra_headers
=math-68881.h
3254 xm_file
="xm-alloca.h ${xm_file}"
3256 extra_headers
=math-68881.h
3259 xm_file
="xm-alloca.h m68k/xm-crds.h ${xm_file}"
3260 xm_defines
="USG unos"
3261 xmake_file
=m68k
/x-crds
3264 extra_headers
=math-68881.h
3266 m68k-cbm-sysv4
*) # Commodore variant of V.4.
3268 xm_file
="xm-alloca.h ${xm_file}"
3269 xm_defines
="USG FULL_PROTOTYPES"
3270 xmake_file
=m68k
/x-amix
3272 extra_parts
="crtbegin.o crtend.o"
3273 extra_headers
=math-68881.h
3277 tm_file
=m68k
/ccur-GAS.h
3278 xmake_file
=m68k
/x-ccur
3279 extra_headers
=math-68881.h
3283 m68k-hp-bsd4.4
*) # HP 9000/3xx running 4.4bsd
3284 tm_file
=m68k
/hp3bsd44.h
3285 xmake_file
=m68k
/x-hp3bsd44
3287 extra_headers
=math-68881.h
3290 m68k-hp-bsd
*) # HP 9000/3xx running Berkeley Unix
3291 tm_file
=m68k
/hp3bsd.h
3293 extra_headers
=math-68881.h
3297 if [ x
$with_fp = xno
]
3299 tm_file
=m68k
/isi-nfp.h
3305 extra_headers
=math-68881.h
3307 m68k-hp-hpux7
*) # HP 9000 series 300 running HPUX version 7.
3308 xm_file
="xm_alloca.h ${xm_file}"
3309 xm_defines
="USG NO_SYS_SIGLIST"
3312 xmake_file
=m68k
/x-hp320g
3313 tm_file
=m68k
/hp320g.h
3315 xmake_file
=m68k
/x-hp320
3316 tm_file
=m68k
/hpux7.h
3318 install_headers_dir
=install-headers-cpio
3320 extra_headers
=math-68881.h
3323 m68k-hp-hpux
*) # HP 9000 series 300
3324 xm_file
="xm_alloca.h ${xm_file}"
3325 xm_defines
="USG NO_SYS_SIGLIST"
3328 xmake_file
=m68k
/x-hp320g
3329 tm_file
=m68k
/hp320g.h
3331 xmake_file
=m68k
/x-hp320
3332 tm_file
=m68k
/hp320.h
3334 install_headers_dir
=install-headers-cpio
3336 extra_headers
=math-68881.h
3340 tm_file
=m68k
/sun3mach.h
3342 extra_headers
=math-68881.h
3348 tm_file
=m68k
/news3gas.h
3350 tm_file
=m68k
/news3.h
3353 extra_headers
=math-68881.h
3356 m68k-sony-bsd
* | m68k-sony-newsos
*)
3359 tm_file
=m68k
/newsgas.h
3364 extra_headers
=math-68881.h
3367 m68k-next-nextstep2
*)
3368 tm_file
=m68k
/next21.h
3369 xm_file
="m68k/xm-next.h ${xm_file}"
3370 tmake_file
=m68k
/t-next
3371 xmake_file
=m68k
/x-next
3372 extra_objs
=nextstep.o
3373 extra_headers
=math-68881.h
3377 m68k-next-nextstep3
*)
3379 xm_file
="m68k/xm-next.h ${xm_file}"
3380 tmake_file
=m68k
/t-next
3381 xmake_file
=m68k
/x-next
3382 extra_objs
=nextstep.o
3383 extra_headers
=math-68881.h
3385 if [ x
$enable_threads = xyes
]; then
3390 if [ x
$with_fp = xno
]
3392 tm_file
=m68k
/sun3n3.h
3394 tm_file
=m68k
/sun3o3.h
3398 extra_headers
=math-68881.h
3400 m68k-sun-sunos
*) # For SunOS 4 (the default).
3401 if [ x
$with_fp = xno
]
3403 tm_file
=m68k
/sun3n.h
3409 extra_headers
=math-68881.h
3412 tm_file
=m68k
/vxm68k.h
3413 tmake_file
=m68k
/t-vxworks68
3414 extra_headers
=math-68881.h
3415 thread_file
='vxworks'
3419 tmake_file
=m68k
/t-m68kbare
3420 tm_file
="m68k/m68k-aout.h libgloss.h"
3421 extra_headers
=math-68881.h
3425 tmake_file
=m68k
/t-m68kbare
3426 tm_file
="m68k/m68k-coff.h dbx.h libgloss.h"
3427 extra_headers
=math-68881.h
3435 tm_file
=m68k
/lynx-ng.h
3437 xm_file
=m68k
/xm-lynx.h
3439 tmake_file
=m68k
/t-lynx
3440 extra_headers
=math-68881.h
3444 tm_file
=m68k
/netbsd.h
3445 # On NetBSD, the headers are already okay, except for math.h.
3446 fixincludes
=fixinc.wrap
3450 m68k-
*-sysv3*) # Motorola m68k's running system V.3
3451 xm_file
="xm-alloca.h ${xm_file}"
3453 xmake_file
=m68k
/x-m68kv
3454 extra_parts
="crtbegin.o crtend.o"
3455 extra_headers
=math-68881.h
3458 m68k-
*-sysv4*) # Motorola m68k's running system V.4
3459 tm_file
=m68k
/m68kv4.h
3460 xm_file
="xm-alloca.h ${xm_file}"
3463 extra_parts
="crtbegin.o crtend.o"
3464 extra_headers
=math-68881.h
3467 m68k-
*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
3470 tm_file
=m68k
/linux-aout.h
3471 tmake_file
="t-linux-aout m68k/t-linux-aout"
3472 fixincludes
=Makefile.
in # The headers are ok already.
3473 extra_headers
=math-68881.h
3477 m68k-
*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
3478 # with ELF format using the
3479 # GNU/Linux C library 5
3481 tm_file
=m68k
/linux.h
3482 tmake_file
="t-linux t-linux-gnulibc1 m68k/t-linux"
3483 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3484 fixincludes
=Makefile.
in # The headers are ok already.
3485 extra_headers
=math-68881.h
3489 m68k-
*-linux-gnu*) # Motorola m68k's running GNU/Linux
3490 # with ELF format using glibc 2
3491 # aka the GNU/Linux C library 6.
3493 tm_file
=m68k
/linux.h
3494 tmake_file
="t-linux m68k/t-linux"
3495 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3496 fixincludes
=Makefile.
in # The headers are ok already.
3497 extra_headers
=math-68881.h
3500 if [ x
$enable_threads = xyes
]; then
3505 tmake_file
=m68k
/t-m68kbare
3506 tm_file
=m68k
/m68k-psos.h
3507 extra_headers
=math-68881.h
3511 tmake_file
="m68k/t-m68kbare t-rtems"
3512 tm_file
=m68k
/rtems.h
3513 extra_headers
=math-68881.h
3520 tm_file
=m88k
/dguxbcs.h
3521 tmake_file
=m88k
/t-dguxbcs
3525 tmake_file
=m88k
/t-dgux
3528 extra_parts
="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
3529 xmake_file
=m88k
/x-dgux
3532 tmake_file
=m88k
/t-dgux-gas
3534 fixincludes
=fixinc.dgux
3536 m88k-dolphin-sysv3
*)
3537 tm_file
=m88k
/dolph.h
3538 extra_parts
="crtbegin.o crtend.o"
3539 xm_file
="m88k/xm-sysv3.h ${xm_file}"
3540 xmake_file
=m88k
/x-dolph
3543 tmake_file
=m88k
/t-m88k-gas
3546 m88k-tektronix-sysv3
)
3547 tm_file
=m88k
/tekXD88.h
3548 extra_parts
="crtbegin.o crtend.o"
3549 xm_file
="m88k/xm-sysv3.h ${xm_file}"
3550 xmake_file
=m88k
/x-tekXD88
3553 tmake_file
=m88k
/t-m88k-gas
3557 tm_file
=m88k
/m88k-aout.h
3560 tm_file
=m88k
/m88k-coff.h
3561 tmake_file
=m88k
/t-bug
3565 extra_parts
="crtbegin.o crtend.o"
3568 tmake_file
=m88k
/t-luna-gas
3570 tmake_file
=m88k
/t-luna
3574 tm_file
=m88k
/sysv3.h
3575 extra_parts
="crtbegin.o crtend.o"
3576 xm_file
="m88k/xm-sysv3.h ${xm_file}"
3577 xmake_file
=m88k
/x-sysv3
3580 tmake_file
=m88k
/t-m88k-gas
3584 tm_file
=m88k
/sysv4.h
3585 extra_parts
="crtbegin.o crtend.o"
3586 xmake_file
=m88k
/x-sysv4
3587 tmake_file
=m88k
/t-sysv4
3589 mips-sgi-irix6
*) # SGI System V.4., IRIX 6
3590 tm_file
=mips
/iris6.h
3591 xm_file
=mips
/xm-iris6.h
3592 fixincludes
=fixinc.irix
3593 xmake_file
=mips
/x-iris6
3594 tmake_file
=mips
/t-iris6
3595 if [ x
$enable_threads = xyes
]; then
3600 tm_file
="mips/elf.h libgloss.h"
3601 tmake_file
=mips
/t-ecoff
3604 extra_parts
="crtbegin.o crtend.o"
3605 # thread_file='vxworks'
3607 mips-sgi-irix5cross64
) # Irix5 host, Irix 6 target, cross64
3608 tm_file
="mips/iris6.h mips/cross64.h"
3609 xm_defines
="USG HAVE_INTTYPES_H"
3610 fixincludes
=Makefile.
in
3611 xmake_file
=mips
/x-iris
3612 tmake_file
=mips
/t-cross64
3613 # See comment in mips/iris[56].h files.
3615 if [ x
$enable_threads = xyes
]; then
3622 if [ x
$stabs = xyes
]
3624 tm_file
=mips
/iris5gdb.h
3626 tm_file
="mips/sni-svr4.h mips/sni-gas.h"
3629 tm_file
=mips
/sni-svr4.h
3632 xmake_file
=mips
/x-sni-svr4
3633 tmake_file
=mips
/t-mips-gas
3634 if [ x
$gnu_ld != xyes
]
3639 mips-sgi-irix5
*) # SGI System V.4., IRIX 5
3642 tm_file
="mips/iris5.h mips/iris5gas.h"
3643 if [ x
$stabs = xyes
]
3645 tm_file
="${tm_file} dbx.h"
3648 tm_file
=mips
/iris5.h
3650 xm_defines
="USG HAVE_INTTYPES_H"
3651 fixincludes
=fixinc.irix
3652 xmake_file
=mips
/x-iris
3653 # mips-tfile doesn't work yet
3654 tmake_file
=mips
/t-mips-gas
3655 # See comment in mips/iris5.h file.
3657 if [ x
$enable_threads = xyes
]; then
3661 mips-sgi-irix4loser
*) # Mostly like a MIPS.
3662 tm_file
="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
3663 if [ x
$stabs = xyes
]; then
3664 tm_file
="${tm_file} dbx.h"
3667 xmake_file
=mips
/x-iris
3670 tmake_file
=mips
/t-mips-gas
3672 extra_passes
="mips-tfile mips-tdump"
3674 if [ x
$gnu_ld != xyes
]
3678 if [ x
$enable_threads = xyes
]; then
3682 mips-sgi-irix4
*) # Mostly like a MIPS.
3683 tm_file
="mips/iris3.h ${tm_file} mips/iris4.h"
3684 if [ x
$stabs = xyes
]; then
3685 tm_file
="${tm_file} dbx.h"
3688 xmake_file
=mips
/x-iris
3691 tmake_file
=mips
/t-mips-gas
3693 extra_passes
="mips-tfile mips-tdump"
3695 if [ x
$gnu_ld != xyes
]
3699 if [ x
$enable_threads = xyes
]; then
3703 mips-sgi-
*) # Mostly like a MIPS.
3704 tm_file
="mips/iris3.h ${tm_file}"
3705 if [ x
$stabs = xyes
]; then
3706 tm_file
="${tm_file} dbx.h"
3709 xmake_file
=mips
/x-iris3
3712 tmake_file
=mips
/t-mips-gas
3714 extra_passes
="mips-tfile mips-tdump"
3716 if [ x
$gnu_ld != xyes
]
3721 mips-dec-osfrose
*) # Decstation running OSF/1 reference port with OSF/rose.
3722 tm_file
="mips/osfrose.h ${tm_file}"
3723 xmake_file
=mips
/x-osfrose
3724 tmake_file
=mips
/t-osfrose
3725 extra_objs
=halfpic.o
3728 mips-dec-osf
*) # Decstation running OSF/1 as shipped by DIGITAL
3729 tm_file
=mips
/dec-osf1.h
3730 if [ x
$stabs = xyes
]; then
3731 tm_file
="${tm_file} dbx.h"
3733 xmake_file
=mips
/x-dec-osf1
3736 tmake_file
=mips
/t-mips-gas
3738 tmake_file
=mips
/t-ultrix
3739 extra_passes
="mips-tfile mips-tdump"
3741 if [ x
$gnu_ld != xyes
]
3746 mips-dec-bsd
*) # Decstation running 4.4 BSD
3747 tm_file
=mips
/dec-bsd.h
3751 tmake_file
=mips
/t-mips-gas
3753 tmake_file
=mips
/t-ultrix
3754 extra_passes
="mips-tfile mips-tdump"
3756 if [ x
$gnu_ld != xyes
]
3761 mips-dec-netbsd
*) # Decstation running NetBSD
3762 tm_file
=mips
/netbsd.h
3763 # On NetBSD, the headers are already okay, except for math.h.
3764 fixincludes
=fixinc.wrap
3767 mips-sony-bsd
* | mips-sony-newsos
*) # Sony NEWS 3600 or risc/news.
3768 tm_file
="mips/news4.h ${tm_file}"
3769 if [ x
$stabs = xyes
]; then
3770 tm_file
="${tm_file} dbx.h"
3774 tmake_file
=mips
/t-mips-gas
3776 extra_passes
="mips-tfile mips-tdump"
3778 if [ x
$gnu_ld != xyes
]
3782 xmake_file
=mips
/x-sony
3784 mips-sony-sysv
*) # Sony NEWS 3800 with NEWSOS5.0.
3785 # That is based on svr4.
3786 # t-svr4 is not right because this system doesn't use ELF.
3787 tm_file
="mips/news5.h ${tm_file}"
3788 if [ x
$stabs = xyes
]; then
3789 tm_file
="${tm_file} dbx.h"
3791 xm_file
="xm-siglist.h ${xm_file}"
3795 tmake_file
=mips
/t-mips-gas
3797 extra_passes
="mips-tfile mips-tdump"
3799 if [ x
$gnu_ld != xyes
]
3804 mips-tandem-sysv4
*) # Tandem S2 running NonStop UX
3805 tm_file
="mips/svr4-5.h mips/svr4-t.h"
3806 if [ x
$stabs = xyes
]; then
3807 tm_file
="${tm_file} dbx.h"
3809 xm_file
="xm-siglist.h ${xm_file}"
3811 xmake_file
=mips
/x-sysv
3814 tmake_file
=mips
/t-mips-gas
3815 extra_parts
="crtbegin.o crtend.o"
3817 tmake_file
=mips
/t-mips
3818 extra_passes
="mips-tfile mips-tdump"
3820 if [ x
$gnu_ld != xyes
]
3825 mips-
*-ultrix* | mips-dec-mach3
) # Decstation.
3826 tm_file
="mips/ultrix.h ${tm_file}"
3827 if [ x
$stabs = xyes
]; then
3828 tm_file
="${tm_file} dbx.h"
3830 xmake_file
=mips
/x-ultrix
3833 tmake_file
=mips
/t-mips-gas
3835 tmake_file
=mips
/t-ultrix
3836 extra_passes
="mips-tfile mips-tdump"
3838 if [ x
$gnu_ld != xyes
]
3843 mips-
*-riscos[56789]bsd
*)
3844 tm_file
=mips
/bsd-5.h
# MIPS BSD 4.3, RISC-OS 5.0
3845 if [ x
$stabs = xyes
]; then
3846 tm_file
="${tm_file} dbx.h"
3850 tmake_file
=mips
/t-bsd-gas
3852 tmake_file
=mips
/t-bsd
3853 extra_passes
="mips-tfile mips-tdump"
3855 if [ x
$gnu_ld != xyes
]
3860 mips-
*-bsd* | mips-
*-riscosbsd* | mips-
*-riscos[1234]bsd
*)
3861 tm_file
="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
3862 if [ x
$stabs = xyes
]; then
3863 tm_file
="${tm_file} dbx.h"
3867 tmake_file
=mips
/t-bsd-gas
3869 tmake_file
=mips
/t-bsd
3870 extra_passes
="mips-tfile mips-tdump"
3872 if [ x
$gnu_ld != xyes
]
3877 mips-
*-riscos[56789]sysv4
*)
3878 tm_file
=mips
/svr4-5.h
# MIPS System V.4., RISC-OS 5.0
3879 if [ x
$stabs = xyes
]; then
3880 tm_file
="${tm_file} dbx.h"
3882 xm_file
="xm-siglist.h ${xm_file}"
3883 xmake_file
=mips
/x-sysv
3886 tmake_file
=mips
/t-svr4-gas
3888 tmake_file
=mips
/t-svr4
3889 extra_passes
="mips-tfile mips-tdump"
3891 if [ x
$gnu_ld != xyes
]
3896 mips-
*-sysv4* | mips-
*-riscos[1234]sysv4
* | mips-
*-riscossysv4*)
3897 tm_file
="mips/svr4-4.h ${tm_file}"
3898 if [ x
$stabs = xyes
]; then
3899 tm_file
="${tm_file} dbx.h"
3902 xmake_file
=mips
/x-sysv
3905 tmake_file
=mips
/t-svr4-gas
3907 tmake_file
=mips
/t-svr4
3908 extra_passes
="mips-tfile mips-tdump"
3910 if [ x
$gnu_ld != xyes
]
3915 mips-
*-riscos[56789]sysv
*)
3916 tm_file
=mips
/svr3-5.h
# MIPS System V.3, RISC-OS 5.0
3917 if [ x
$stabs = xyes
]; then
3918 tm_file
="${tm_file} dbx.h"
3921 xmake_file
=mips
/x-sysv
3924 tmake_file
=mips
/t-svr3-gas
3926 tmake_file
=mips
/t-svr3
3927 extra_passes
="mips-tfile mips-tdump"
3929 if [ x
$gnu_ld != xyes
]
3934 mips-
*-sysv* | mips-
*-riscos*sysv
*)
3935 tm_file
="mips/svr3-4.h ${tm_file}"
3936 if [ x
$stabs = xyes
]; then
3937 tm_file
="${tm_file} dbx.h"
3940 xmake_file
=mips
/x-sysv
3943 tmake_file
=mips
/t-svr3-gas
3945 tmake_file
=mips
/t-svr3
3946 extra_passes
="mips-tfile mips-tdump"
3948 if [ x
$gnu_ld != xyes
]
3953 mips-
*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
3954 tm_file
=mips
/mips-5.h
3955 if [ x
$stabs = xyes
]; then
3956 tm_file
="${tm_file} dbx.h"
3960 tmake_file
=mips
/t-mips-gas
3962 extra_passes
="mips-tfile mips-tdump"
3964 if [ x
$gnu_ld != xyes
]
3972 tm_file
=mips
/ecoffl.h
3973 if [ x
$stabs = xyes
]; then
3974 tm_file
="${tm_file} dbx.h"
3976 tmake_file
=mips
/t-ecoff
3979 tm_file
="gofast.h mips/ecoff.h"
3980 if [ x
$stabs = xyes
]; then
3981 tm_file
="${tm_file} dbx.h"
3983 tmake_file
=mips
/t-ecoff
3986 tm_file
="mips/elfl.h libgloss.h"
3987 tmake_file
=mips
/t-ecoff
3990 tm_file
="mips/elf.h libgloss.h"
3991 tmake_file
=mips
/t-ecoff
3994 tm_file
="mips/elfl64.h libgloss.h"
3995 tmake_file
=mips
/t-ecoff
3997 mips64orionel-
*-elf*)
3998 tm_file
="mips/elforion.h mips/elfl64.h libgloss.h"
3999 tmake_file
=mips
/t-ecoff
4002 tm_file
="mips/elf64.h libgloss.h"
4003 tmake_file
=mips
/t-ecoff
4006 tm_file
="mips/elforion.h mips/elf64.h libgloss.h"
4007 tmake_file
=mips
/t-ecoff
4009 mips64orion-
*-rtems*)
4010 tm_file
="mips/elforion.h mips/elfl64.h mips/rtems64.h"
4011 tmake_file
="mips/t-ecoff t-rtems"
4014 tm_file
="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
4015 tmake_file
=mips
/t-r3900
4018 tm_file
="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
4019 tmake_file
=mips
/t-r3900
4021 mips-
*-*) # Default MIPS RISC-OS 4.0.
4022 if [ x
$stabs = xyes
]; then
4023 tm_file
="${tm_file} dbx.h"
4027 tmake_file
=mips
/t-mips-gas
4029 extra_passes
="mips-tfile mips-tdump"
4031 if [ x
$gnu_ld != xyes
]
4038 tm_file
="mn10200/mn10200.h"
4039 if [ x
$stabs = xyes
]
4041 tm_file
="${tm_file} dbx.h"
4047 tm_file
="mn10300/mn10300.h"
4048 if [ x
$stabs = xyes
]
4050 tm_file
="${tm_file} dbx.h"
4055 tm_file
=ns32k
/encore.h
4059 tm_file
=ns32k
/sequent.h
4063 tm_file
=ns32k
/tek6100.h
4067 tm_file
=ns32k
/tek6200.h
4070 # This has not been updated to GCC 2.
4073 # xmake_file=ns32k/x-genix
4074 # tm_file=ns32k/genix.h
4078 tm_file
=ns32k
/merlin.h
4082 tm_file
=ns32k
/pc532-mach.h
4086 tm_file
=ns32k
/pc532-min.h
4087 xm_file
="ns32k/xm-pc532-min.h ${xm-file}"
4091 ns32k-pc532-netbsd
*)
4092 tm_file
=ns32k
/netbsd.h
4093 # On NetBSD, the headers are already okay, except for math.h.
4094 fixincludes
=fixinc.wrap
4098 tm_file
="${tm_file} pdp11/2bsd.h"
4104 xmake_file
=pyr
/x-pyr
4111 xmake_file
=romp
/x-mach
4116 tm_file
=rs6000
/beos.h
4117 xm_file
=rs6000
/xm-beos.h
4118 tmake_file
=rs6000
/t-beos
4119 xmake_file
=rs6000
/x-beos
4121 powerpc-
*-sysv* | powerpc-
*-elf*)
4122 tm_file
=rs6000
/sysv4.h
4123 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4124 xm_defines
="USG POSIX"
4125 extra_headers
=ppc-asm.h
4128 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
4130 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4132 xmake_file
=rs6000
/x-sysv4
4135 tm_file
=rs6000
/eabiaix.h
4136 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4137 fixincludes
=Makefile.
in
4138 extra_headers
=ppc-asm.h
4141 tm_file
=rs6000
/eabisim.h
4142 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4143 fixincludes
=Makefile.
in
4144 extra_headers
=ppc-asm.h
4147 tm_file
=rs6000
/eabi.h
4150 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4152 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4154 fixincludes
=Makefile.
in
4155 extra_headers
=ppc-asm.h
4158 tm_file
=rs6000
/rtems.h
4161 tmake_file
="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
4163 tmake_file
="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
4165 fixincludes
=Makefile.
in
4166 extra_headers
=ppc-asm.h
4168 powerpc-
*-linux-gnulibc1)
4169 tm_file
=rs6000
/linux.h
4170 xm_file
=rs6000
/xm-sysv4.h
4171 out_file
=rs6000
/rs6000.c
4174 tmake_file
="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
4176 tmake_file
="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
4179 fixincludes
=Makefile.
in
4180 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4181 extra_headers
=ppc-asm.h
4182 if [ x
$enable_threads = xyes
]; then
4186 powerpc-
*-linux-gnu*)
4187 tm_file
=rs6000
/linux.h
4188 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4189 xm_defines
="USG ${xm_defines}"
4190 out_file
=rs6000
/rs6000.c
4193 tmake_file
="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
4195 tmake_file
="rs6000/t-ppc t-linux rs6000/t-ppccomm"
4198 fixincludes
=Makefile.
in
4199 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4200 extra_headers
=ppc-asm.h
4201 if [ x
$enable_threads = xyes
]; then
4205 powerpc-wrs-vxworks
*)
4207 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4208 xm_defines
="USG POSIX"
4209 tm_file
=rs6000
/vxppc.h
4210 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4211 extra_headers
=ppc-asm.h
4212 thread_file
='vxworks'
4214 powerpcle-
*-sysv* | powerpcle-
*-elf*)
4215 tm_file
=rs6000
/sysv4le.h
4216 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4217 xm_defines
="USG POSIX"
4220 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
4222 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4224 xmake_file
=rs6000
/x-sysv4
4225 extra_headers
=ppc-asm.h
4227 powerpcle-
*-eabisim*)
4228 tm_file
=rs6000
/eabilesim.h
4229 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4230 fixincludes
=Makefile.
in
4231 extra_headers
=ppc-asm.h
4234 tm_file
=rs6000
/eabile.h
4237 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4239 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4241 fixincludes
=Makefile.
in
4242 extra_headers
=ppc-asm.h
4244 powerpcle-
*-winnt* )
4245 tm_file
=rs6000
/win-nt.h
4246 tmake_file
=rs6000
/t-winnt
4248 fixincludes
=Makefile.
in
4249 if [ x
$enable_threads = xyes
]; then
4252 extra_headers
=ppc-asm.h
4254 powerpcle-
*-pe | powerpcle-
*-cygwin32)
4255 tm_file
=rs6000
/cygwin32.h
4256 xm_file
="rs6000/xm-cygwin32.h ${xm_file}"
4257 tmake_file
=rs6000
/t-winnt
4258 xmake_file
=rs6000
/x-cygwin32
4260 fixincludes
=Makefile.
in
4261 if [ x
$enable_threads = xyes
]; then
4265 extra_headers
=ppc-asm.h
4267 powerpcle-
*-solaris2*)
4268 tm_file
=rs6000
/sol2.h
4269 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4270 xm_defines
="USG POSIX"
4273 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
4275 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4277 xmake_file
=rs6000
/x-sysv4
4280 fixincludes
=fixinc.svr4
;;
4282 fixincludes
=fixinc.wrap
;;
4284 extra_headers
=ppc-asm.h
4286 rs6000-ibm-aix3.
[01]*)
4287 tm_file
=rs6000
/aix31.h
4288 xmake_file
=rs6000
/x-aix31
4291 rs6000-ibm-aix3.2.
[456789]* | powerpc-ibm-aix3.2.
[456789]*)
4292 tm_file
=rs6000
/aix3newas.h
4293 if [ x
$host != x
$target ]
4295 tmake_file
=rs6000
/t-xnewas
4297 tmake_file
=rs6000
/t-newas
4301 rs6000-ibm-aix4.
[12].
* | powerpc-ibm-aix4.
[12].
*)
4302 tm_file
=rs6000
/aix41.h
4303 if [ x
$host != x
$target ]
4305 tmake_file
=rs6000
/t-xnewas
4307 tmake_file
=rs6000
/t-newas
4309 xmake_file
=rs6000
/x-aix41
4312 rs6000-ibm-aix4.
[3456789].
* | powerpc-ibm-aix4.
[3456789].
*)
4313 tm_file
=rs6000
/aix43.h
4314 if [ x
$host != x
$target ]
4316 tmake_file
=rs6000
/t-xaix43
4318 tmake_file
=rs6000
/t-aix43
4320 xmake_file
=rs6000
/x-aix43
4323 rs6000-ibm-aix
[56789].
* | powerpc-ibm-aix
[56789].
*)
4324 tm_file
=rs6000
/aix43.h
4325 if [ x
$host != x
$target ]
4327 tmake_file
=rs6000
/t-xaix43
4329 tmake_file
=rs6000
/t-aix43
4331 xmake_file
=rs6000
/x-aix43
4341 tm_file
=rs6000
/mach.h
4342 xm_file
="${xm_file} rs6000/xm-mach.h"
4343 xmake_file
=rs6000
/x-mach
4347 tm_file
=rs6000
/lynx.h
4348 xm_file
=rs6000
/xm-lynx.h
4349 tmake_file
=rs6000
/t-rs6000
4350 xmake_file
=rs6000
/x-lynx
4358 tmake_file
="sh/t-sh t-rtems"
4367 xm_file
="xm-alloca.h ${xm_file}"
4370 sparc-wrs-vxworks
* | sparclite-wrs-vxworks
*)
4371 tm_file
=sparc
/vxsparc.h
4372 tmake_file
=sparc
/t-vxsparc
4374 thread_file
='vxworks'
4377 tmake_file
=sparc
/t-sparcbare
4378 tm_file
="sparc/aout.h libgloss.h"
4381 tm_file
=sparc
/netbsd.h
4382 # On NetBSD, the headers are already okay, except for math.h.
4383 fixincludes
=fixinc.wrap
4391 tmake_file
=sparc
/t-elf
4392 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4396 sparc-
*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
4397 xm_file
="${xm_file} sparc/xm-linux.h"
4398 tm_file
=sparc
/linux-aout.h
4400 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
4403 sparc-
*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
4404 xm_file
="${xm_file} sparc/xm-linux.h"
4406 tm_file
=sparc
/linux.h
4407 tmake_file
="t-linux t-linux-gnulibc1"
4408 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4409 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
4412 sparc-
*-linux-gnu*) # Sparc's running GNU/Linux, libc6
4413 xm_file
="${xm_file} sparc/xm-linux.h"
4415 tm_file
=sparc
/linux.h
4416 tmake_file
="t-linux"
4417 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4418 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
4420 if [ x
$enable_threads = xyes
]; then
4427 tm_file
=sparc
/lynx.h
4429 tm_file
=sparc
/lynx-ng.h
4431 xm_file
=sparc
/xm-lynx.h
4432 tmake_file
=sparc
/t-sunos41
4436 tmake_file
="sparc/t-sparcbare t-rtems"
4437 tm_file
=sparc
/rtems.h
4440 if [ x
$gnu_ld = xyes
]
4442 tm_file
=sparc
/sol2.h
4444 tm_file
=sparc
/sol2-sld.h
4446 xm_file
="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
4447 xm_defines
="USG POSIX"
4448 tmake_file
=sparc
/t-sol2
4449 xmake_file
=sparc
/x-sysv4
4450 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4453 fixincludes
=fixinc.svr4
;;
4455 fixincludes
=fixinc.wrap
;;
4458 if [ x
${enable_threads} = x
]; then
4459 enable_threads
=$have_pthread_h
4460 if [ x
${enable_threads} = x
]; then
4461 enable_threads
=$have_thread_h
4464 if [ x
${enable_threads} = xyes
]; then
4465 if [ x
${have_pthread_h} = xyes
]; then
4468 thread_file
='solaris'
4473 tm_file
=sparc
/sunos4.h
4474 tmake_file
=sparc
/t-sunos40
4478 tm_file
=sparc
/sunos4.h
4479 tmake_file
=sparc
/t-sunos41
4481 if [ x
$gas = xyes
]; then
4482 tm_file
="${tm_file} sparc/sun4gas.h"
4486 tm_file
=sparc
/sun4o3.h
4490 tm_file
=sparc
/sysv4.h
4491 xm_file
="xm-siglist.h sparc/xm-sysv4.h"
4492 xm_defines
="USG POSIX"
4494 xmake_file
=sparc
/x-sysv4
4495 extra_parts
="crtbegin.o crtend.o"
4498 xm_file
="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
4499 xm_defines
="USG POSIX"
4500 tm_file
=sparc
/vxsim.h
4501 tmake_file
=sparc
/t-vxsparc
4502 xmake_file
=sparc
/x-sysv4
4505 tm_file
="sparc/splet.h libgloss.h"
4506 tmake_file
=sparc
/t-splet
4509 tm_file
="sparc/litecoff.h libgloss.h"
4510 tmake_file
=sparc
/t-sparclite
4513 tm_file
="sparc/lite.h aoutos.h libgloss.h"
4514 tmake_file
=sparc
/t-sparclite
4517 tmake_file
=sparc
/t-sp64
4518 tm_file
=sparc
/sp64-aout.h
4521 tmake_file
=sparc
/t-sp64
4522 tm_file
=sparc
/sp64-elf.h
4523 extra_parts
="crtbegin.o crtend.o"
4525 sparc64-
*-linux*) # 64-bit Sparc's running GNU/Linux
4526 tmake_file
=sparc
/t-sp64
4527 xm_file
="sparc/xm-sp64.h sparc/xm-linux.h"
4528 tm_file
=sparc
/linux64.h
4530 fixincludes
=Makefile.
in # The headers are ok already.
4533 # This hasn't been upgraded to GCC 2.
4534 # tahoe-harris-*) # Harris tahoe, using COFF.
4535 # tm_file=tahoe/harris.h
4537 # tahoe-*-bsd*) # tahoe running BSD
4539 thumb-
*-coff* | thumbel-
*-coff*)
4541 out_file
=arm
/thumb.c
4542 xm_file
=arm
/xm-thumb.h
4543 md_file
=arm
/thumb.md
4544 tmake_file
=arm
/t-thumb
4546 # This hasn't been upgraded to GCC 2.
4553 tm_file
="v850/v850.h"
4554 xm_file
="v850/xm-v850.h"
4555 tmake_file
=v850
/t-v850
4556 if [ x
$stabs = xyes
]
4558 tm_file
="${tm_file} dbx.h"
4562 vax-
*-bsd*) # vaxen running BSD
4566 vax-
*-sysv*) # vaxen running system V
4567 tm_file
="${tm_file} vax/vaxv.h"
4572 tm_file
="${tm_file} netbsd.h vax/netbsd.h"
4573 # On NetBSD, the headers are already okay, except for math.h.
4574 fixincludes
=fixinc.wrap
4578 vax-
*-ultrix*) # vaxen running ultrix
4579 tm_file
="${tm_file} vax/ultrix.h"
4583 vax-
*-vms*) # vaxen running VMS
4584 xm_file
=vax
/xm-vms.h
4588 vax-
*-*) # vax default entry
4592 xm_file
="${xm_file} xm-svr3"
4596 echo "Configuration $machine not supported" 1>&2
4603 ;; # Existing GNU/Linux systems do not use the GNU setup.
4605 # On the GNU system, the setup is just about the same on
4606 # each different CPU. The specific machines that GNU
4607 # supports are matched above and just set $cpu_type.
4608 xm_file
="xm-gnu.h ${xm_file}"
4609 tm_file
=${cpu_type}/gnu.h
4610 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
4611 # GNU always uses ELF.
4613 # GNU tools are the only tools.
4616 # On GNU, the headers are already okay.
4617 fixincludes
=Makefile.
in
4618 xmake_file
=x-linux
# These details are the same as Linux.
4619 tmake_file
=t-gnu
# These are not.
4622 fixincludes
=fixinc.svr4
4623 xmake_try_sysv
=x-sysv
4624 install_headers_dir
=install-headers-cpio
4627 install_headers_dir
=install-headers-cpio
4631 # Distinguish i[34567]86
4632 # Also, do not run mips-tfile on MIPS if using gas.
4633 # Process --with-cpu= for PowerPC/rs6000
4634 target_cpu_default2
=
4637 target_cpu_default2
=1
4640 target_cpu_default2
=2
4642 i686-
*-* | i786-
*-*)
4643 target_cpu_default2
=3
4648 target_cpu_default2
="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
4651 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
4654 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX"
4657 target_cpu_default2
="MASK_CPU_EV5"
4663 if [ "$target_cpu_default2" = "" ]
4665 target_cpu_default2
="MASK_GAS"
4667 target_cpu_default2
="${target_cpu_default2}|MASK_GAS"
4672 case "x$with_cpu" in
4675 target_cpu_default2
="TARGET_CPU_generic"
4678 # Distinguish cores, and major variants
4679 # arm7m doesn't exist, but D & I don't affect code
4680 xarm23678 | xarm250 | xarm67010 \
4681 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
4682 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
4683 | xstrongarm | xstrongarm110
)
4684 target_cpu_default2
="TARGET_CPU_$with_cpu"
4688 echo "--with-cpu must be passed a value" 1>&2
4693 if [ x
$pass2done = xyes
]
4695 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4702 mips
*-*-ecoff* | mips
*-*-elf*)
4705 if [ x
$gnu_ld = xyes
]
4707 target_cpu_default2
=20
4709 target_cpu_default2
=16
4716 target_cpu_default2
=16
4719 powerpc
*-*-* | rs6000-
*-*)
4720 case "x$with_cpu" in
4724 xcommon | xpower | xpower2 | xpowerpc | xrios \
4725 | xrios1 | xrios2 | xrsc | xrsc1 \
4726 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
4727 | x403 | x505 | x801 | x821 | x823 | x860
)
4728 target_cpu_default2
="\"$with_cpu\""
4732 echo "--with-cpu must be passed a value" 1>&2
4737 if [ x
$pass2done = xyes
]
4739 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4746 case ".$with_cpu" in
4748 target_cpu_default2
=TARGET_CPU_
"`echo $machine | sed 's/-.*$//'`"
4750 .supersparc | .ultrasparc | .v7 | .v8 | .v9
)
4751 target_cpu_default2
="TARGET_CPU_$with_cpu"
4754 if [ x
$pass2done = xyes
]
4756 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4764 if [ "$target_cpu_default2" != "" ]
4766 if [ "$target_cpu_default" != "" ]
4768 target_cpu_default
="(${target_cpu_default}|${target_cpu_default2})"
4770 target_cpu_default
=$target_cpu_default2
4774 # No need for collect2 if we have the GNU linker.
4775 # Actually, there is now; GNU ld doesn't handle the EH info or
4776 # collecting for shared libraries.
4783 # Save data on machine being used to compile GCC in build_xm_file.
4784 # Save data on host machine in vars host_xm_file and host_xmake_file.
4785 if [ x
$pass1done = x
]
4787 if [ x
"$xm_file" = x
]
4788 then build_xm_file
=$cpu_type/xm-
$cpu_type.h
4789 else build_xm_file
=$xm_file
4791 build_xm_defines
=$xm_defines
4792 build_install_headers_dir
=$install_headers_dir
4793 build_exeext
=$exeext
4796 if [ x
$pass2done = x
]
4798 if [ x
"$xm_file" = x
]
4799 then host_xm_file
=$cpu_type/xm-
$cpu_type.h
4800 else host_xm_file
=$xm_file
4802 host_xm_defines
=$xm_defines
4803 if [ x
"$xmake_file" = x
]
4804 then xmake_file
=$cpu_type/x-
$cpu_type
4806 host_xmake_file
="$xmake_file"
4807 host_truncate_target
=$truncate_target
4808 host_extra_gcc_objs
=$extra_gcc_objs
4809 host_extra_objs
=$extra_host_objs
4816 extra_objs
="${host_extra_objs} ${extra_objs}"
4818 # Default the target-machine variables that were not explicitly set.
4819 if [ x
"$tm_file" = x
]
4820 then tm_file
=$cpu_type/$cpu_type.h
; fi
4822 if [ x
$extra_headers = x
]
4823 then extra_headers
=; fi
4825 if [ x
"$xm_file" = x
]
4826 then xm_file
=$cpu_type/xm-
$cpu_type.h
; fi
4828 if [ x
$md_file = x
]
4829 then md_file
=$cpu_type/$cpu_type.md
; fi
4831 if [ x
$out_file = x
]
4832 then out_file
=$cpu_type/$cpu_type.c
; fi
4834 if [ x
"$tmake_file" = x
]
4835 then tmake_file
=$cpu_type/t-
$cpu_type
4838 if [ x
$float_format = x
]
4839 then float_format
=i64
4842 if [ x
$enable_haifa = x
]
4845 alpha
*-* | hppa1.?
-* | powerpc
*-* | rs6000-
* |
*sparc-
* | m32r
*-*)
4850 # Say what files are being used for the output code and MD file.
4851 echo "Using \`$srcdir/config/$out_file' to output insns."
4852 echo "Using \`$srcdir/config/$md_file' as machine description file."
4855 for f
in $tm_file; do
4858 if [ $count = ax
]; then
4859 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
4861 echo "Using the following target machine macro files:"
4862 for f
in $tm_file; do
4863 echo " $srcdir/config/$f"
4868 for f
in $host_xm_file; do
4871 if [ $count = ax
]; then
4872 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
4874 echo "Using the following host machine macro files:"
4875 for f
in $host_xm_file; do
4876 echo " $srcdir/config/$f"
4880 if [ "$host_xm_file" != "$build_xm_file" ]; then
4882 for f
in $build_xm_file; do
4885 if [ $count = ax
]; then
4886 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
4888 echo "Using the following build machine macro files:"
4889 for f
in $build_xm_file; do
4890 echo " $srcdir/config/$f"
4895 if [ x
$thread_file = x
]; then
4896 if [ x
$target_thread_file != x
]; then
4897 thread_file
=$target_thread_file
4899 thread_file
='single'
4903 # Set up the header files.
4904 # $links is the list of header files to create.
4905 # $vars is the list of shell variables with file names to include.
4906 # auto-host.h is the file containing items generated by autoconf and is
4907 # the first file included by config.h.
4909 host_xm_file
="auto-host.h ${host_xm_file}"
4911 # If host=build, it is correct to have hconfig include auto-host.h
4912 # as well. If host!=build, we are in error and need to do more
4913 # work to find out the build config parameters.
4914 if [ x
$host = x
$build ]
4916 build_xm_file
="auto-host.h ${build_xm_file}"
4918 # We create a subdir, then run autoconf in the subdir.
4919 # To prevent recursion we set host and build for the new
4920 # invocation of configure to the build for this invocation
4927 /*) realsrcdir
=${srcdir};;
4928 *) realsrcdir
=..
/${srcdir};;
4930 CC
=${CC_FOR_BUILD} ${realsrcdir}/configure \
4931 --target=$target --host=$build --build=$build
4933 # We just finished tests for the build machine, so rename
4934 # the file auto-build.h in the gcc directory.
4935 mv auto-host.h ..
/auto-build.h
4938 build_xm_file
="auto-build.h ${build_xm_file}"
4941 vars
="host_xm_file tm_file xm_file build_xm_file"
4942 links
="config.h tm.h tconfig.h hconfig.h"
4943 defines
="host_xm_defines null_defines xm_defines build_xm_defines"
4946 if [ -f config.status
]; then mv -f config.status config.bak
; fi
4949 while [ -n "$vars" ]
4951 set $vars; var
=$1; shift; vars
=$
*
4952 set $links; link
=$1; shift; links
=$
*
4953 set $defines; define
=$1; shift; defines
=$
*
4957 # Define TARGET_CPU_DEFAULT if the system wants one.
4958 # This substitutes for lots of *.h files.
4959 if [ "$target_cpu_default" != "" -a $link = tm.h
]
4961 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
4964 for file in `eval echo '$'$var`; do
4965 echo "#include \"$file\"" >>$link
4968 for def
in `eval echo '$'$define`; do
4969 echo "#ifndef $def" >>$link
4970 echo "#define $def" >>$link
4971 echo "#endif" >>$link
4975 # Truncate the target if necessary
4976 if [ x
$host_truncate_target != x
]; then
4977 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
4980 # Get the version trigger filename from the toplevel
4981 if [ "${with_gcc_version_trigger+set}" = set ]; then
4982 gcc_version_trigger
=$with_gcc_version_trigger
4984 gcc_version_trigger
=${srcdir}/version.c
4986 gcc_version
=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
4988 # Get an absolute path to the GCC top-level source directory
4994 # Conditionalize the makefile for this host machine.
4995 # Make-host contains the concatenation of all host makefile fragments
4996 # [there can be more than one]. This file is built by configure.frag.
4997 host_overrides
=Make-host
4998 dep_host_xmake_file
=
4999 for f
in ..
${host_xmake_file}
5001 if [ -f ${srcdir}/config
/$f ]
5003 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
5007 # Conditionalize the makefile for this target machine.
5008 # Make-target contains the concatenation of all host makefile fragments
5009 # [there can be more than one]. This file is built by configure.frag.
5010 target_overrides
=Make-target
5012 for f
in ..
${tmake_file}
5014 if [ -f ${srcdir}/config
/$f ]
5016 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
5020 # If the host doesn't support symlinks, modify CC in
5021 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
5022 # Otherwise, we can use "CC=$(CC)".
5024 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
5026 cc_set_by_configure
="\$(CC)"
5027 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
5030 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
5032 symbolic_link
="cp -p"
5036 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
5037 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
5041 out_object_file
=`basename $out_file .c`.o
5044 for f
in $tm_file; do
5045 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
5049 for f
in $host_xm_file; do
5050 if test $f != "auto-host.h"; then
5051 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
5053 host_xm_file_list
="${host_xm_file_list} auto-host.h"
5058 for f
in $build_xm_file; do
5059 if test $f != "auto-build.h"; then
5060 if test $f != "auto-host.h"; then
5061 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
5063 build_xm_file_list
="${build_xm_file_list} auto-host.h"
5066 build_xm_file_list
="${build_xm_file_list} auto-build.h"
5070 # Define macro CROSS_COMPILE in compilation
5071 # if this is a cross-compiler.
5072 # Also use all.cross instead of all.internal
5073 # and add cross-make to Makefile.
5074 cross_overrides
="/dev/null"
5075 if [ x
$host != x
$target ]
5077 cross_defines
="CROSS=-DCROSS_COMPILE"
5078 cross_overrides
="${topdir}/cross-make"
5081 # When building gcc with a cross-compiler, we need to fix a few things.
5082 # This must come after cross-make as we want all.build to override
5084 build_overrides
="/dev/null"
5085 if [ x
$build != x
$host ]
5087 build_overrides
="${topdir}/build-make"
5090 # Expand extra_headers to include complete path.
5091 # This substitutes for lots of t-* files.
5093 if [ "x$extra_headers" = x
]
5096 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
5097 for file in $extra_headers;
5099 extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/${file}"
5103 # Add a definition of USE_COLLECT2 if system wants one.
5104 # Also tell toplev.c what to do.
5105 # This substitutes for lots of t-* files.
5106 if [ x
$use_collect2 = x
]
5111 will_use_collect2
="collect2"
5112 maybe_use_collect2
="-DUSE_COLLECT2"
5116 # Set MD_DEPS if the real md file is in md.pre-cpp.
5117 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
5118 # for line oriented comments, so we must always use a GNU cpp. If
5119 # building gcc with a cross compiler, use the cross compiler just
5120 # built. Otherwise, we can use the cpp just built.
5122 if [ "x$md_cppflags" = x
]
5124 md_file_sub
=$srcdir/config
/$md_file
5129 # If we have gas in the build tree, make a link to it.
5130 if [ -f ..
/gas
/Makefile
]; then
5131 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
5134 # If we have nm in the build tree, make a link to it.
5135 if [ -f ..
/binutils
/Makefile
]; then
5136 rm -f nm
; $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
5139 # If we have ld in the build tree, make a link to it.
5140 if [ -f ..
/ld
/Makefile
]; then
5141 # if [[ x$use_collect2 = x ]]; then
5142 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
5144 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
5148 # Figure out what assembler alignment features are present.
5149 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
5150 echo "configure:5151: checking assembler alignment features" >&5
5152 gcc_cv_as_alignment_features
=
5153 if [ -x as
$host_exeext ]; then
5154 # Build using assembler in the current directory.
5155 gcc_cv_as
=.
/as
$host_exeext
5156 elif [ -f $srcdir/..
/gas
/configure.
in ]; then
5157 # Single tree build which includes gas.
5158 for f
in $srcdir/..
/gas
/configure.
in $srcdir/..
/gas
/Makefile.
in
5160 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
5161 if [ x
$gcc_cv_gas_version != x
]; then
5165 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
5166 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
5167 # Gas version 2.8 and later support specifying the maximum
5168 # bytes to skip when using .p2align.
5169 if [ "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 8 -o "$gcc_cv_gas_major_version" -gt 2 ]; then
5170 gcc_cv_as_alignment_features
=".p2align including maximum skip"
5171 cat >> confdefs.h
<<\EOF
5172 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
5176 elif [ x
$host = x
$target ]; then
5178 gcc_cv_as
=as
$host_exeext
5180 if [ x
$gcc_cv_as != x
]; then
5181 # Check if specifying the maximum bytes to skip when
5182 # using .p2align is supported.
5183 echo ".p2align 4,,7" > conftest.s
5184 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
5185 gcc_cv_as_alignment_features
=".p2align including maximum skip"
5186 cat >> confdefs.h
<<\EOF
5187 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
5191 rm -f conftest.s conftest.o
5193 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
5195 # Figure out what language subdirectories are present.
5197 for lang
in ${srcdir}/*/config-lang.
in ..
5201 # The odd quoting in the next line works around
5202 # an apparent bug in bash 1.12 on linux.
5203 ${srcdir}/[*]/config-lang.
in) ;;
5204 *) subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
5208 # Make gthr-default.h if we have a thread file.
5210 if [ $thread_file != single
]; then
5211 rm -f gthr-default.h
5212 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
5213 gthread_flags
=-DHAVE_GTHR_DEFAULT
5217 # Make empty files to contain the specs and options for each language.
5218 # Then add #include lines to for a compiler that has specs and/or options.
5222 rm -f specs.h options.h
5223 touch specs.h options.h
5224 for subdir
in .
$subdirs
5226 if [ -f $srcdir/$subdir/lang-specs.h
]; then
5227 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
5228 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
5230 if [ -f $srcdir/$subdir/lang-options.h
]; then
5231 echo "#include \"$subdir/lang-options.h\"" >>options.h
5232 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
5236 # These (without "all_") are set in each config-lang.in.
5237 # `language' must be a single word so is spelled singularly.
5243 all_outputs
=Makefile
5244 # List of language makefile fragments.
5249 # Add the language fragments.
5250 # Languages are added via two mechanisms. Some information must be
5251 # recorded in makefile variables, these are defined in config-lang.in.
5252 # We accumulate them and plug them into the main Makefile.
5253 # The other mechanism is a set of hooks for each of the main targets
5254 # like `clean', `install', etc.
5256 language_fragments
="Make-lang"
5257 language_hooks
="Make-hooks"
5260 for s
in ..
$subdirs
5272 .
${srcdir}/$s/config-lang.
in
5273 if [ "x$language" = x
]
5275 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
5278 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
5279 all_languages
="$all_languages $language"
5280 if [ "x$boot_language" = xyes
]
5282 all_boot_languages
="$all_boot_languages $language"
5284 all_compilers
="$all_compilers $compilers"
5285 all_stagestuff
="$all_stagestuff $stagestuff"
5286 all_diff_excludes
="$all_diff_excludes $diff_excludes"
5287 all_headers
="$all_headers $headers"
5288 all_outputs
="$all_outputs $outputs"
5289 if [ x
$outputs = x
]
5291 oldstyle_subdirs
="$oldstyle_subdirs $s"
5293 all_lib2funcs
="$all_lib2funcs $lib2funcs"
5297 # Since we can't use `::' targets, we link each language in
5298 # with a set of hooks, reached indirectly via lang.${target}.
5302 target_list
="all.build all.cross start.encap rest.encap \
5304 install-normal install-common install-info install-man \
5306 mostlyclean clean distclean extraclean maintainer-clean \
5307 stage1 stage2 stage3 stage4"
5308 for t
in $target_list
5311 for l
in ..
$all_languages
5313 if [ $l != ".." ]; then
5317 echo "lang.$t: $x" >> Make-hooks
5320 # If we're not building in srcdir, create .gdbinit.
5322 if [ ! -f Makefile.
in ]; then
5323 echo "dir ." > .gdbinit
5324 echo "dir ${srcdir}" >> .gdbinit
5325 if [ x
$gdb_needs_out_file_path = xyes
]
5327 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
5329 if [ "x$subdirs" != x
]; then
5332 echo "dir ${srcdir}/$s" >> .gdbinit
5335 echo "source ${srcdir}/.gdbinit" >> .gdbinit
5338 # Define variables host_canonical and build_canonical
5339 # because some Cygnus local changes in the Makefile depend on them.
5340 build_canonical
=${build}
5341 host_canonical
=${host}
5343 if [ "${host}" != "${target}" ] ; then
5344 target_subdir
=${target}/
5350 # If this is using newlib, then define inhibit_libc in
5351 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
5352 # libgcc.a, but that's OK because newib should have its own version of
5355 if [ x
$with_newlib = xyes
]; then
5356 inhibit_libc
=-Dinhibit_libc
5360 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
5363 if [ x
$enable_haifa = xyes
]; then
5364 echo "Using the Haifa scheduler."
5366 sched_cflags
=-DHAIFA
5370 if [ x
$enable_haifa != x
]; then
5371 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
5372 for x
in genattrtab.o toplev.o loop.o unroll.o
*sched.o
; do
5380 # Nothing to do for FLOAT_H, float_format already handled.
5384 # Process the language and host/target makefile fragments.
5385 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
5387 # Substitute configuration variables
5442 # Echo that links are built
5443 if [ x
$host = x
$target ]
5451 if [ x
$host != x
$build ]
5453 str3
=" on a $build system"
5456 if [ "x$str2" != x
] ||
[ "x$str3" != x
]
5461 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
5463 if [ "x$str2" != x
] ||
[ "x$str3" != x
]
5465 echo " ${str2}${str3}." 1>&2
5468 # Truncate the target if necessary
5469 if [ x
$host_truncate_target != x
]; then
5470 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
5473 # Configure the subdirectories
5474 # AC_CONFIG_SUBDIRS($subdirs)
5476 # Create the Makefile
5477 # and configure language subdirectories
5479 cat > confcache
<<\EOF
5480 # This file is a shell script that caches the results of configure
5481 # tests run on this system so they can be shared between configure
5482 # scripts and configure runs. It is not useful on other systems.
5483 # If it contains results you don't want to keep, you may remove or edit it.
5485 # By default, configure uses ./config.cache as the cache file,
5486 # creating it if it does not exist already. You can give configure
5487 # the --cache-file=FILE option to use a different cache file; that is
5488 # what configure does when it calls configure scripts in
5489 # subdirectories, so they share the cache.
5490 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5491 # config.status only pays attention to the cache file if you give it the
5492 # --recheck option to rerun configure.
5495 # The following way of writing the cache mishandles newlines in values,
5496 # but we know of no workaround that is simple, portable, and efficient.
5497 # So, don't put newlines in cache variables' values.
5498 # Ultrix sh set writes to stderr and can't be redirected directly,
5499 # and sets the high bit in the cache file unless we assign to the vars.
5501 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
5503 # `set' does not quote correctly, so add quotes (double-quote substitution
5504 # turns \\\\ into \\, and sed turns \\ into \).
5506 -e "s/'/'\\\\''/g" \
5507 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5510 # `set' quotes correctly as required by POSIX, so do not add quotes.
5511 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5514 if cmp -s $cache_file confcache
; then
5517 if test -w $cache_file; then
5518 echo "updating cache $cache_file"
5519 cat confcache
> $cache_file
5521 echo "not updating unwritable cache $cache_file"
5526 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5528 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5529 # Let make expand exec_prefix.
5530 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5532 # Any assignment to VPATH causes Sun make to only execute
5533 # the first set of double-colon rules, so remove it if not needed.
5534 # If there is a colon in the path, we need to keep it.
5535 if test "x$srcdir" = x.
; then
5536 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5539 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5541 DEFS
=-DHAVE_CONFIG_H
5543 # Without the "./", some shells look in PATH for config.status.
5544 : ${CONFIG_STATUS=./config.status}
5546 echo creating
$CONFIG_STATUS
5547 rm -f $CONFIG_STATUS
5548 cat > $CONFIG_STATUS <<EOF
5550 # Generated automatically by configure.
5551 # Run this file to recreate the current configuration.
5552 # This directory was configured as follows,
5553 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5555 # $0 $ac_configure_args
5557 # Compiler output produced by configure, useful for debugging
5558 # configure, is in ./config.log if it exists.
5560 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5563 case "\$ac_option" in
5564 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5565 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5566 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5567 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5568 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
5570 -help | --help | --hel | --he | --h)
5571 echo "\$ac_cs_usage"; exit 0 ;;
5572 *) echo "\$ac_cs_usage"; exit 1 ;;
5576 ac_given_srcdir=$srcdir
5578 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5580 cat >> $CONFIG_STATUS <<EOF
5582 # Protect against being on the right side of a sed subst in config.status.
5583 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5584 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5588 s%@CFLAGS@%$CFLAGS%g
5589 s%@CPPFLAGS@%$CPPFLAGS%g
5590 s%@CXXFLAGS@%$CXXFLAGS%g
5592 s%@LDFLAGS@%$LDFLAGS%g
5594 s%@exec_prefix@%$exec_prefix%g
5595 s%@prefix@%$prefix%g
5596 s%@program_transform_name@%$program_transform_name%g
5597 s%@bindir@%$bindir%g
5598 s%@sbindir@%$sbindir%g
5599 s%@libexecdir@%$libexecdir%g
5600 s%@datadir@%$datadir%g
5601 s%@sysconfdir@%$sysconfdir%g
5602 s%@sharedstatedir@%$sharedstatedir%g
5603 s%@localstatedir@%$localstatedir%g
5604 s%@libdir@%$libdir%g
5605 s%@includedir@%$includedir%g
5606 s%@oldincludedir@%$oldincludedir%g
5607 s%@infodir@%$infodir%g
5608 s%@mandir@%$mandir%g
5610 s%@host_alias@%$host_alias%g
5611 s%@host_cpu@%$host_cpu%g
5612 s%@host_vendor@%$host_vendor%g
5613 s%@host_os@%$host_os%g
5614 s%@target@%$target%g
5615 s%@target_alias@%$target_alias%g
5616 s%@target_cpu@%$target_cpu%g
5617 s%@target_vendor@%$target_vendor%g
5618 s%@target_os@%$target_os%g
5620 s%@build_alias@%$build_alias%g
5621 s%@build_cpu@%$build_cpu%g
5622 s%@build_vendor@%$build_vendor%g
5623 s%@build_os@%$build_os%g
5625 s%@SET_MAKE@%$SET_MAKE%g
5628 s%@LEXLIB@%$LEXLIB%g
5631 s%@RANLIB@%$RANLIB%g
5633 s%@INSTALL@%$INSTALL%g
5634 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5635 s%@INSTALL_DATA@%$INSTALL_DATA%g
5637 s%@vfprintf@%$vfprintf%g
5638 s%@doprint@%$doprint%g
5639 s%@manext@%$manext%g
5640 s%@objext@%$objext%g
5641 s%@gthread_flags@%$gthread_flags%g
5642 s%@build_canonical@%$build_canonical%g
5643 s%@host_canonical@%$host_canonical%g
5644 s%@target_subdir@%$target_subdir%g
5645 s%@inhibit_libc@%$inhibit_libc%g
5646 s%@sched_prefix@%$sched_prefix%g
5647 s%@sched_cflags@%$sched_cflags%g
5648 s%@objdir@%$objdir%g
5649 s%@subdirs@%$subdirs%g
5650 s%@all_languages@%$all_languages%g
5651 s%@all_boot_languages@%$all_boot_languages%g
5652 s%@all_compilers@%$all_compilers%g
5653 s%@all_lang_makefiles@%$all_lang_makefiles%g
5654 s%@all_stagestuff@%$all_stagestuff%g
5655 s%@all_diff_excludes@%$all_diff_excludes%g
5656 s%@all_lib2funcs@%$all_lib2funcs%g
5657 s%@all_headers@%$all_headers%g
5658 s%@cpp_main@%$cpp_main%g
5659 s%@extra_passes@%$extra_passes%g
5660 s%@extra_programs@%$extra_programs%g
5661 s%@extra_parts@%$extra_parts%g
5662 s%@extra_c_objs@%$extra_c_objs%g
5663 s%@extra_cxx_objs@%$extra_cxx_objs%g
5664 s%@extra_c_flags@%$extra_c_flags%g
5665 s%@extra_objs@%$extra_objs%g
5666 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
5667 s%@extra_headers_list@%$extra_headers_list%g
5668 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
5669 s%@dep_tmake_file@%$dep_tmake_file%g
5670 s%@out_file@%$out_file%g
5671 s%@out_object_file@%$out_object_file%g
5672 s%@md_file@%$md_file%g
5673 s%@tm_file_list@%$tm_file_list%g
5674 s%@build_xm_file_list@%$build_xm_file_list%g
5675 s%@host_xm_file_list@%$host_xm_file_list%g
5676 s%@lang_specs_files@%$lang_specs_files%g
5677 s%@lang_options_files@%$lang_options_files%g
5678 s%@thread_file@%$thread_file%g
5679 s%@gcc_version@%$gcc_version%g
5680 s%@gcc_version_trigger@%$gcc_version_trigger%g
5681 s%@local_prefix@%$local_prefix%g
5682 s%@gxx_include_dir@%$gxx_include_dir%g
5683 s%@fixincludes@%$fixincludes%g
5684 s%@build_install_headers_dir@%$build_install_headers_dir%g
5685 s%@build_exeext@%$build_exeext%g
5686 s%@host_exeext@%$host_exeext%g
5687 s%@float_format@%$float_format%g
5688 s%@will_use_collect2@%$will_use_collect2%g
5689 s%@maybe_use_collect2@%$maybe_use_collect2%g
5690 s%@cc_set_by_configure@%$cc_set_by_configure%g
5691 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
5692 s%@install@%$install%g
5693 s%@symbolic_link@%$symbolic_link%g
5694 /@target_overrides@/r $target_overrides
5695 s%@target_overrides@%%g
5696 /@host_overrides@/r $host_overrides
5697 s%@host_overrides@%%g
5698 s%@cross_defines@%$cross_defines%g
5699 /@cross_overrides@/r $cross_overrides
5700 s%@cross_overrides@%%g
5701 /@build_overrides@/r $build_overrides
5702 s%@build_overrides@%%g
5703 /@language_fragments@/r $language_fragments
5704 s%@language_fragments@%%g
5705 /@language_hooks@/r $language_hooks
5706 s%@language_hooks@%%g
5711 cat >> $CONFIG_STATUS <<\EOF
5713 # Split the substitutions into bite-sized pieces for seds with
5714 # small command number limits, like on Digital OSF/1 and HP-UX.
5715 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5716 ac_file
=1 # Number of current file.
5717 ac_beg
=1 # First line for current file.
5718 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5721 while $ac_more_lines; do
5722 if test $ac_beg -gt 1; then
5723 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5725 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5727 if test ! -s conftest.s
$ac_file; then
5729 rm -f conftest.s
$ac_file
5731 if test -z "$ac_sed_cmds"; then
5732 ac_sed_cmds
="sed -f conftest.s$ac_file"
5734 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5736 ac_file
=`expr $ac_file + 1`
5738 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5741 if test -z "$ac_sed_cmds"; then
5746 cat >> $CONFIG_STATUS <<EOF
5748 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
5750 cat >> $CONFIG_STATUS <<\EOF
5751 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5752 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5754 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5755 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5756 *) ac_file_in
="${ac_file}.in" ;;
5759 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5761 # Remove last slash and all that follows it. Not all systems have dirname.
5762 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5763 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5764 # The file is in a subdirectory.
5765 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5766 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5767 # A "../" for each directory in $ac_dir_suffix.
5768 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5770 ac_dir_suffix
= ac_dots
=
5773 case "$ac_given_srcdir" in
5775 if test -z "$ac_dots"; then top_srcdir
=.
5776 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5777 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5779 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5780 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5784 echo creating
"$ac_file"
5786 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5788 *Makefile
*) ac_comsub
="1i\\
5789 # $configure_input" ;;
5793 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5795 s%@configure_input@%$configure_input%g
5796 s%@srcdir@%$srcdir%g
5797 s%@top_srcdir@%$top_srcdir%g
5798 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5802 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5803 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5805 # ac_d sets the value in "#define NAME VALUE" lines.
5806 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5807 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5810 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5811 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5812 ac_uB
='\([ ]\)%\1#\2define\3'
5815 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5816 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5817 ac_eB
='$%\1#\2define\3'
5821 if test "${CONFIG_HEADERS+set}" != set; then
5823 cat >> $CONFIG_STATUS <<EOF
5824 CONFIG_HEADERS="auto-host.h:config.in"
5826 cat >> $CONFIG_STATUS <<\EOF
5828 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5829 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5831 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5832 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5833 *) ac_file_in
="${ac_file}.in" ;;
5836 echo creating
$ac_file
5838 rm -f conftest.frag conftest.
in conftest.out
5839 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5840 cat $ac_file_inputs > conftest.
in
5844 # Transform confdefs.h into a sed script conftest.vals that substitutes
5845 # the proper values into config.h.in to produce config.h. And first:
5846 # Protect against being on the right side of a sed subst in config.status.
5847 # Protect against being in an unquoted here document in config.status.
5849 cat > conftest.hdr
<<\EOF
5852 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5856 sed -n -f conftest.hdr confdefs.h > conftest.vals
5859 # This sed command replaces #undef with comments. This is necessary, for
5860 # example, in the case of _POSIX_SOURCE, which is predefined and required
5861 # on some systems where configure will not decide to define it.
5862 cat >> conftest.vals <<\EOF
5863 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5866 # Break up conftest.vals because some shells have a limit on
5867 # the size of here documents, and old seds have small limits too.
5872 ac_lines=`grep -c . conftest.vals
`
5873 # grep -c gives empty output for an empty file on some AIX systems.
5874 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5875 # Write a limited-size here document to conftest.frag.
5876 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5877 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5879 sed -f conftest.frag conftest.in > conftest.out
5881 mv conftest.out conftest.in
5883 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5885 mv conftest.tail conftest.vals
5889 cat >> $CONFIG_STATUS <<\EOF
5890 rm -f conftest.frag conftest.h
5891 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5892 cat conftest.in >> conftest.h
5894 if cmp -s $ac_file conftest.h 2>/dev/null; then
5895 echo "$ac_file is unchanged"
5898 # Remove last slash and all that follows it. Not all systems have dirname.
5899 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5900 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5901 # The file is in a subdirectory.
5902 test ! -d "$ac_dir" && mkdir "$ac_dir"
5905 mv conftest.h $ac_file
5910 cat >> $CONFIG_STATUS <<EOF
5915 target_alias='${target_alias}'
5917 subdirs='${subdirs}'
5918 oldstyle_subdirs='${oldstyle_subdirs}'
5919 symbolic_link='${symbolic_link}'
5920 program_transform_set='${program_transform_set}'
5921 program_transform_name='${program_transform_name}'
5922 dep_host_xmake_file='${dep_host_xmake_file}'
5923 host_xmake_file='${host_xmake_file}'
5924 dep_tmake_file='${dep_tmake_file}'
5925 tmake_file='${tmake_file}'
5926 thread_file='${thread_file}'
5927 gcc_version='${gcc_version}'
5928 gcc_version_trigger='${gcc_version_trigger}'
5929 local_prefix='${local_prefix}'
5930 build_install_headers_dir='${build_install_headers_dir}'
5931 build_exeext='${build_exeext}'
5932 host_exeext='${host_exeext}'
5933 out_file='${out_file}'
5934 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
5935 SET_MAKE='${SET_MAKE}'
5936 target_list='${target_list}'
5937 target_overrides='${target_overrides}'
5938 host_overrides='${host_overrides}'
5939 cross_defines='${cross_defines}'
5940 cross_overrides='${cross_overrides}'
5941 build_overrides='${build_overrides}'
5944 cat >> $CONFIG_STATUS <<\EOF
5946 . $srcdir/configure.lang
5947 case x$CONFIG_HEADERS in
5948 xauto-host.h:config.in)
5951 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
5952 # bootstrapping and the installation procedure can still use
5953 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
5954 # FLAGS_TO_PASS has been modified to solve the problem there.
5955 # This is virtually a duplicate of what happens in configure.lang; we do
5956 # an extra check to make sure this only happens if ln -s can be used.
5957 if [ "$symbolic_link" = "ln -s" ]; then
5958 for d in .. ${subdirs} ; do
5959 if [ $d != .. ]; then
5962 for t in stage1 stage2 stage3 stage4 include
5965 $symbolic_link ../$t $t 2>/dev/null
5974 chmod +x $CONFIG_STATUS
5975 rm -fr confdefs* $ac_clean_files
5976 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1