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-c-cpplib Use cpplib for C."
30 --enable-haifa Use the experimental scheduler.
31 --disable-haifa Don't use the experimental scheduler for the
32 targets which normally enable it."
34 --with-fast-fixincludes Use a faster fixinclude program. Experimental"
36 --enable-threads enable thread usage for target GCC.
37 --enable-threads=LIB use LIB thread package for target GCC."
39 # Initialize some variables set by options.
40 # The variables have the same names as the options, with
41 # dashes changed to underlines.
43 cache_file
=.
/config.cache
52 program_transform_name
=s
,x
,x
,
60 bindir
='${exec_prefix}/bin'
61 sbindir
='${exec_prefix}/sbin'
62 libexecdir
='${exec_prefix}/libexec'
63 datadir
='${prefix}/share'
64 sysconfdir
='${prefix}/etc'
65 sharedstatedir
='${prefix}/com'
66 localstatedir
='${prefix}/var'
67 libdir
='${exec_prefix}/lib'
68 includedir
='${prefix}/include'
69 oldincludedir
='/usr/include'
70 infodir
='${prefix}/info'
71 mandir
='${prefix}/man'
73 # Initialize some other variables.
76 SHELL
=${CONFIG_SHELL-/bin/sh}
77 # Maximum number of lines to put in a shell here document.
84 # If the previous option needs an argument, assign it.
85 if test -n "$ac_prev"; then
86 eval "$ac_prev=\$ac_option"
92 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
96 # Accept the important Cygnus configure options, so we can diagnose typos.
100 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
102 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
103 bindir
="$ac_optarg" ;;
105 -build |
--build |
--buil |
--bui |
--bu)
107 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
108 build
="$ac_optarg" ;;
110 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
111 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
112 ac_prev
=cache_file
;;
113 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
114 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
115 cache_file
="$ac_optarg" ;;
117 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
119 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
121 datadir
="$ac_optarg" ;;
123 -disable-* |
--disable-*)
124 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
130 eval "enable_${ac_feature}=no" ;;
132 -enable-* |
--enable-*)
133 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
134 # Reject names that are not valid shell variable names.
135 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
136 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
138 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
143 eval "enable_${ac_feature}='$ac_optarg'" ;;
145 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
146 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
147 |
--exec |
--exe |
--ex)
148 ac_prev
=exec_prefix
;;
149 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
150 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
151 |
--exec=* |
--exe=* |
--ex=*)
152 exec_prefix
="$ac_optarg" ;;
154 -gas |
--gas |
--ga |
--g)
155 # Obsolete; use --with-gas.
158 -help |
--help |
--hel |
--he)
159 # Omit some internal or obsolete options to make the list less imposing.
160 # This message is too long to be a string in the A/UX 3.1 sh.
162 Usage: configure [options] [host]
163 Options: [defaults in brackets after descriptions]
165 --cache-file=FILE cache test results in FILE
166 --help print this message
167 --no-create do not create output files
168 --quiet, --silent do not print \`checking...' messages
169 --version print the version of autoconf that created configure
170 Directory and file names:
171 --prefix=PREFIX install architecture-independent files in PREFIX
173 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
175 --bindir=DIR user executables in DIR [EPREFIX/bin]
176 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
177 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
178 --datadir=DIR read-only architecture-independent data in DIR
180 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
181 --sharedstatedir=DIR modifiable architecture-independent data in DIR
183 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
184 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
185 --includedir=DIR C header files in DIR [PREFIX/include]
186 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
187 --infodir=DIR info documentation in DIR [PREFIX/info]
188 --mandir=DIR man documentation in DIR [PREFIX/man]
189 --srcdir=DIR find the sources in DIR [configure dir or ..]
190 --program-prefix=PREFIX prepend PREFIX to installed program names
191 --program-suffix=SUFFIX append SUFFIX to installed program names
192 --program-transform-name=PROGRAM
193 run sed PROGRAM on installed program names
197 --build=BUILD configure for building on BUILD [BUILD=HOST]
198 --host=HOST configure for HOST [guessed]
199 --target=TARGET configure for TARGET [TARGET=HOST]
200 Features and packages:
201 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
202 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
203 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
204 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
205 --x-includes=DIR X include files are in DIR
206 --x-libraries=DIR X library files are in DIR
208 if test -n "$ac_help"; then
209 echo "--enable and --with options recognized:$ac_help"
213 -host |
--host |
--hos |
--ho)
215 -host=* |
--host=* |
--hos=* |
--ho=*)
218 -includedir |
--includedir |
--includedi |
--included |
--include \
219 |
--includ |
--inclu |
--incl |
--inc)
220 ac_prev
=includedir
;;
221 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
222 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
223 includedir
="$ac_optarg" ;;
225 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
227 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
228 infodir
="$ac_optarg" ;;
230 -libdir |
--libdir |
--libdi |
--libd)
232 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
233 libdir
="$ac_optarg" ;;
235 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
236 |
--libexe |
--libex |
--libe)
237 ac_prev
=libexecdir
;;
238 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
239 |
--libexe=* |
--libex=* |
--libe=*)
240 libexecdir
="$ac_optarg" ;;
242 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
243 |
--localstate |
--localstat |
--localsta |
--localst \
244 |
--locals |
--local |
--loca |
--loc |
--lo)
245 ac_prev
=localstatedir
;;
246 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
247 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
248 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
249 localstatedir
="$ac_optarg" ;;
251 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
253 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
254 mandir
="$ac_optarg" ;;
257 # Obsolete; use --without-fp.
260 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
264 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
265 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
268 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
269 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
270 |
--oldin |
--oldi |
--old |
--ol |
--o)
271 ac_prev
=oldincludedir
;;
272 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
273 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
274 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
275 oldincludedir
="$ac_optarg" ;;
277 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
279 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
280 prefix
="$ac_optarg" ;;
282 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
283 |
--program-pre |
--program-pr |
--program-p)
284 ac_prev
=program_prefix
;;
285 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
286 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
287 program_prefix
="$ac_optarg" ;;
289 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
290 |
--program-suf |
--program-su |
--program-s)
291 ac_prev
=program_suffix
;;
292 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
293 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
294 program_suffix
="$ac_optarg" ;;
296 -program-transform-name |
--program-transform-name \
297 |
--program-transform-nam |
--program-transform-na \
298 |
--program-transform-n |
--program-transform- \
299 |
--program-transform |
--program-transfor \
300 |
--program-transfo |
--program-transf \
301 |
--program-trans |
--program-tran \
302 |
--progr-tra |
--program-tr |
--program-t)
303 ac_prev
=program_transform_name
;;
304 -program-transform-name=* |
--program-transform-name=* \
305 |
--program-transform-nam=* |
--program-transform-na=* \
306 |
--program-transform-n=* |
--program-transform-=* \
307 |
--program-transform=* |
--program-transfor=* \
308 |
--program-transfo=* |
--program-transf=* \
309 |
--program-trans=* |
--program-tran=* \
310 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
311 program_transform_name
="$ac_optarg" ;;
313 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
314 |
-silent |
--silent |
--silen |
--sile |
--sil)
317 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
319 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
321 sbindir
="$ac_optarg" ;;
323 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
324 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
325 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
327 ac_prev
=sharedstatedir
;;
328 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
329 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
330 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
332 sharedstatedir
="$ac_optarg" ;;
334 -site |
--site |
--sit)
336 -site=* |
--site=* |
--sit=*)
339 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
341 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
342 srcdir
="$ac_optarg" ;;
344 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
345 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
346 ac_prev
=sysconfdir
;;
347 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
348 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
349 sysconfdir
="$ac_optarg" ;;
351 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
353 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
354 target
="$ac_optarg" ;;
356 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
359 -version |
--version |
--versio |
--versi |
--vers)
360 echo "configure generated by autoconf version 2.12.1"
364 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
365 # Reject names that are not valid shell variable names.
366 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
367 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
369 ac_package
=`echo $ac_package| sed 's/-/_/g'`
374 eval "with_${ac_package}='$ac_optarg'" ;;
376 -without-* |
--without-*)
377 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
378 # Reject names that are not valid shell variable names.
379 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
380 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
382 ac_package
=`echo $ac_package| sed 's/-/_/g'`
383 eval "with_${ac_package}=no" ;;
386 # Obsolete; use --with-x.
389 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
390 |
--x-incl |
--x-inc |
--x-in |
--x-i)
391 ac_prev
=x_includes
;;
392 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
393 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
394 x_includes
="$ac_optarg" ;;
396 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
397 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
398 ac_prev
=x_libraries
;;
399 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
400 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
401 x_libraries
="$ac_optarg" ;;
403 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
407 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
408 echo "configure: warning: $ac_option: invalid host type" 1>&2
410 if test "x$nonopt" != xNONE
; then
411 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
419 if test -n "$ac_prev"; then
420 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
423 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
425 # File descriptor usage:
428 # 2 errors and warnings
429 # 3 some systems may open it to /dev/tty
430 # 4 used on the Kubota Titan
431 # 6 checking for... messages and results
432 # 5 compiler messages saved in config.log
433 if test "$silent" = yes; then
441 This file contains any messages produced by compilers while
442 running configure, to aid debugging if configure makes a mistake.
445 # Strip out --no-create and --no-recursion so they do not pile up.
446 # Also quote any args containing shell metacharacters.
451 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
452 |
--no-cr |
--no-c) ;;
453 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
454 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
455 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
456 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
457 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
462 # Only set these to C if already set. These must not be set unconditionally
463 # because not all systems understand e.g. LANG=C (notably SCO).
464 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
465 # Non-C LC_CTYPE values break the ctype check.
466 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
467 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
468 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
469 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
471 # confdefs.h avoids OS command line length limits that DEFS can exceed.
472 rm -rf conftest
* confdefs.h
473 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
476 # A filename unique to this package, relative to the directory that
477 # configure is in, which we can look for to find out if srcdir is correct.
478 ac_unique_file
=tree.c
480 # Find the source files, if location was not specified.
481 if test -z "$srcdir"; then
482 ac_srcdir_defaulted
=yes
483 # Try the directory containing this script, then its parent.
485 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
486 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
488 if test ! -r $srcdir/$ac_unique_file; then
492 ac_srcdir_defaulted
=no
494 if test ! -r $srcdir/$ac_unique_file; then
495 if test "$ac_srcdir_defaulted" = yes; then
496 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
498 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
501 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
503 # Prefer explicitly selected file to automatically selected ones.
504 if test -z "$CONFIG_SITE"; then
505 if test "x$prefix" != xNONE
; then
506 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
508 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
511 for ac_site_file
in $CONFIG_SITE; do
512 if test -r "$ac_site_file"; then
513 echo "loading site script $ac_site_file"
518 if test -r "$cache_file"; then
519 echo "loading cache $cache_file"
522 echo "creating cache $cache_file"
527 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
528 ac_cpp
='$CPP $CPPFLAGS'
529 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
530 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
531 cross_compiling
=$ac_cv_prog_cc_cross
533 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
534 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
535 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
542 ac_n
= ac_c
='\c' ac_t
=
550 symbolic_link
='ln -s'
553 # Check for additional parameters
556 # Check whether --with-gnu-ld or --without-gnu-ld was given.
557 if test "${with_gnu_ld+set}" = set; then
558 withval
="$with_gnu_ld"
559 gnu_ld_flag
="$with_gnu_ld"
566 # Check whether --with-gnu-as or --without-gnu-as was given.
567 if test "${with_gnu_as+set}" = set; then
568 withval
="$with_gnu_as"
569 gas_flag
="$with_gnu_as"
576 # Check whether --with-stabs or --without-stabs was given.
577 if test "${with_stabs+set}" = set; then
578 withval
="$with_stabs"
586 # Check whether --with-elf or --without-elf was given.
587 if test "${with_elf+set}" = set; then
595 # Specify the local prefix
596 # Check whether --with-local-prefix or --without-local-prefix was given.
597 if test "${with_local_prefix+set}" = set; then
598 withval
="$with_local_prefix"
599 local_prefix
=$with_local_prefix
601 local_prefix
=/usr
/local
605 # Default local prefix if it is empty
606 if [ x
$local_prefix = x
]; then
607 local_prefix
=/usr
/local
610 # Specify the g++ header file directory
611 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
612 if test "${with_gxx_include_dir+set}" = set; then
613 withval
="$with_gxx_include_dir"
614 gxx_include_dir
=$with_gxx_include_dir
616 gxx_include_dir
='${prefix}/include/g++'
620 # Default g++ header file directory if it is empty
621 if [ x
$gxx_include_dir = x
]; then
622 gxx_include_dir
='${prefix}/include/g++'
625 # Enable use of cpplib for C.
626 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
627 if test "${enable_c_cpplib+set}" = set; then
628 enableval
="$enable_c_cpplib"
629 if [ x
$enable_c_cpplib != xno
]; then
630 extra_c_objs
="${extra_c_objs} cpplib.o cppexp.o cpphash.o cpperror.o"
631 extra_c_flags
=-DUSE_CPPLIB=1
636 # Enable Haifa scheduler.
637 # Check whether --enable-haifa or --disable-haifa was given.
638 if test "${enable_haifa+set}" = set; then
639 enableval
="$enable_haifa"
645 # This is a work in progress...
646 # Check whether --with-fast-fixincludes or --without-fast-fixincludes was given.
647 if test "${with_fast_fixincludes+set}" = set; then
648 withval
="$with_fast_fixincludes"
649 fast_fixinc
="$with_fast_fixincludes"
656 # Pass with no value to take the default
657 # Pass with a value to specify a thread package
658 # Check whether --enable-threads or --disable-threads was given.
659 if test "${enable_threads+set}" = set; then
660 enableval
="$enable_threads"
661 if [ x
$enable_threads = xno
]; then
669 # Check if a valid thread package
670 case x
${enable_threads} in
673 target_thread_file
='single'
677 target_thread_file
=''
679 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
680 xsolaris | xwin32 | xdce | xvxworks
)
681 target_thread_file
=$enable_threads
684 echo "$enable_threads is an unknown thread package" 1>&2
689 # Determine the host, build, and target systems
691 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
692 if test -f $ac_dir/install-sh
; then
694 ac_install_sh
="$ac_aux_dir/install-sh -c"
696 elif test -f $ac_dir/install.sh
; then
698 ac_install_sh
="$ac_aux_dir/install.sh -c"
702 if test -z "$ac_aux_dir"; then
703 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
705 ac_config_guess
=$ac_aux_dir/config.guess
706 ac_config_sub
=$ac_aux_dir/config.sub
707 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
710 # Do some error checking and defaulting for the host and target type.
712 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
715 # 1. You are not allowed to specify --host, --target, and nonopt at the
717 # 2. Host defaults to nonopt.
718 # 3. If nonopt is not specified, then host defaults to the current host,
719 # as determined by config.guess.
720 # 4. Target and build default to nonopt.
721 # 5. If nonopt is not specified, then target and build default to host.
723 # The aliases save the names the user supplied, while $host etc.
724 # will get canonicalized.
725 case $host---$target---$nonopt in
726 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
727 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
731 # Make sure we can run config.sub.
732 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
733 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
736 echo $ac_n "checking host system type""... $ac_c" 1>&6
737 echo "configure:738: checking host system type" >&5
740 case "$host_alias" in
744 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
745 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
747 *) host_alias
=$nonopt ;;
751 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
752 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
753 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
754 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
755 echo "$ac_t""$host" 1>&6
757 echo $ac_n "checking target system type""... $ac_c" 1>&6
758 echo "configure:759: checking target system type" >&5
761 case "$target_alias" in
764 NONE
) target_alias
=$host_alias ;;
765 *) target_alias
=$nonopt ;;
769 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
770 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
771 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
772 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
773 echo "$ac_t""$target" 1>&6
775 echo $ac_n "checking build system type""... $ac_c" 1>&6
776 echo "configure:777: checking build system type" >&5
779 case "$build_alias" in
782 NONE
) build_alias
=$host_alias ;;
783 *) build_alias
=$nonopt ;;
787 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
788 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
789 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
790 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
791 echo "$ac_t""$build" 1>&6
793 test "$host_alias" != "$target_alias" &&
794 test "$program_prefix$program_suffix$program_transform_name" = \
796 program_prefix
=${target_alias}-
799 # Find the native compiler
800 # Extract the first word of "gcc", so it can be a program name with args.
801 set dummy gcc
; ac_word
=$2
802 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
803 echo "configure:804: checking for $ac_word" >&5
804 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
805 echo $ac_n "(cached) $ac_c" 1>&6
807 if test -n "$CC"; then
808 ac_cv_prog_CC
="$CC" # Let the user override the test.
810 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
811 for ac_dir
in $PATH; do
812 test -z "$ac_dir" && ac_dir
=.
813 if test -f $ac_dir/$ac_word; then
822 if test -n "$CC"; then
823 echo "$ac_t""$CC" 1>&6
825 echo "$ac_t""no" 1>&6
828 if test -z "$CC"; then
829 # Extract the first word of "cc", so it can be a program name with args.
830 set dummy cc
; ac_word
=$2
831 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
832 echo "configure:833: checking for $ac_word" >&5
833 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
834 echo $ac_n "(cached) $ac_c" 1>&6
836 if test -n "$CC"; then
837 ac_cv_prog_CC
="$CC" # Let the user override the test.
839 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
841 for ac_dir
in $PATH; do
842 test -z "$ac_dir" && ac_dir
=.
843 if test -f $ac_dir/$ac_word; then
844 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
853 if test $ac_prog_rejected = yes; then
854 # We found a bogon in the path, so make sure we never use it.
855 set dummy
$ac_cv_prog_CC
857 if test $# -gt 0; then
858 # We chose a different compiler from the bogus one.
859 # However, it has the same basename, so the bogon will be chosen
860 # first if we set CC to just the basename; use the full file name.
862 set dummy
"$ac_dir/$ac_word" "$@"
870 if test -n "$CC"; then
871 echo "$ac_t""$CC" 1>&6
873 echo "$ac_t""no" 1>&6
876 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
879 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
880 echo "configure:881: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
883 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
884 ac_cpp
='$CPP $CPPFLAGS'
885 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
886 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
887 cross_compiling
=$ac_cv_prog_cc_cross
889 cat > conftest.
$ac_ext <<EOF
890 #line 891 "configure"
891 #include "confdefs.h"
894 if { (eval echo configure
:895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
895 ac_cv_prog_cc_works
=yes
896 # If we can't run a trivial program, we are probably using a cross compiler.
897 if (.
/conftest
; exit) 2>/dev
/null
; then
898 ac_cv_prog_cc_cross
=no
900 ac_cv_prog_cc_cross
=yes
903 echo "configure: failed program was:" >&5
904 cat conftest.
$ac_ext >&5
905 ac_cv_prog_cc_works
=no
909 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
910 if test $ac_cv_prog_cc_works = no
; then
911 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
913 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
914 echo "configure:915: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
915 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
916 cross_compiling
=$ac_cv_prog_cc_cross
918 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
919 echo "configure:920: checking whether we are using GNU C" >&5
920 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
921 echo $ac_n "(cached) $ac_c" 1>&6
923 cat > conftest.c
<<EOF
928 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
935 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
937 if test $ac_cv_prog_gcc = yes; then
939 ac_test_CFLAGS
="${CFLAGS+set}"
940 ac_save_CFLAGS
="$CFLAGS"
942 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
943 echo "configure:944: checking whether ${CC-cc} accepts -g" >&5
944 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
945 echo $ac_n "(cached) $ac_c" 1>&6
947 echo 'void f(){}' > conftest.c
948 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
957 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
958 if test "$ac_test_CFLAGS" = set; then
959 CFLAGS
="$ac_save_CFLAGS"
960 elif test $ac_cv_prog_cc_g = yes; then
967 test "${CFLAGS+set}" = set || CFLAGS
="-g"
970 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
971 echo "configure:972: checking whether ${MAKE-make} sets \${MAKE}" >&5
972 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
973 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
974 echo $ac_n "(cached) $ac_c" 1>&6
976 cat > conftestmake
<<\EOF
978 @
echo 'ac_maketemp="${MAKE}"'
980 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
981 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
982 if test -n "$ac_maketemp"; then
983 eval ac_cv_prog_make_
${ac_make}_set
=yes
985 eval ac_cv_prog_make_
${ac_make}_set
=no
989 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
990 echo "$ac_t""yes" 1>&6
993 echo "$ac_t""no" 1>&6
994 SET_MAKE
="MAKE=${MAKE-make}"
998 # Find some useful tools
999 for ac_prog
in mawk gawk nawk
awk
1001 # Extract the first word of "$ac_prog", so it can be a program name with args.
1002 set dummy
$ac_prog; ac_word
=$2
1003 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1004 echo "configure:1005: checking for $ac_word" >&5
1005 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1006 echo $ac_n "(cached) $ac_c" 1>&6
1008 if test -n "$AWK"; then
1009 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1011 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1012 for ac_dir
in $PATH; do
1013 test -z "$ac_dir" && ac_dir
=.
1014 if test -f $ac_dir/$ac_word; then
1015 ac_cv_prog_AWK
="$ac_prog"
1022 AWK
="$ac_cv_prog_AWK"
1023 if test -n "$AWK"; then
1024 echo "$ac_t""$AWK" 1>&6
1026 echo "$ac_t""no" 1>&6
1029 test -n "$AWK" && break
1032 # Extract the first word of "flex", so it can be a program name with args.
1033 set dummy flex
; ac_word
=$2
1034 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1035 echo "configure:1036: checking for $ac_word" >&5
1036 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1037 echo $ac_n "(cached) $ac_c" 1>&6
1039 if test -n "$LEX"; then
1040 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1042 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1043 for ac_dir
in $PATH; do
1044 test -z "$ac_dir" && ac_dir
=.
1045 if test -f $ac_dir/$ac_word; then
1046 ac_cv_prog_LEX
="flex"
1051 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1054 LEX
="$ac_cv_prog_LEX"
1055 if test -n "$LEX"; then
1056 echo "$ac_t""$LEX" 1>&6
1058 echo "$ac_t""no" 1>&6
1061 if test -z "$LEXLIB"
1067 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1068 echo "configure:1069: checking for yywrap in -l$ac_lib" >&5
1069 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1070 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1071 echo $ac_n "(cached) $ac_c" 1>&6
1073 ac_save_LIBS
="$LIBS"
1074 LIBS
="-l$ac_lib $LIBS"
1075 cat > conftest.
$ac_ext <<EOF
1076 #line 1077 "configure"
1077 #include "confdefs.h"
1078 /* Override any gcc2 internal prototype to avoid an error. */
1079 /* We use char because int might match the return type of a gcc2
1080 builtin and then its argument prototype would still apply. */
1087 if { (eval echo configure
:1088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1089 eval "ac_cv_lib_$ac_lib_var=yes"
1091 echo "configure: failed program was:" >&5
1092 cat conftest.
$ac_ext >&5
1094 eval "ac_cv_lib_$ac_lib_var=no"
1097 LIBS
="$ac_save_LIBS"
1100 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1101 echo "$ac_t""yes" 1>&6
1104 echo "$ac_t""no" 1>&6
1109 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1110 echo "configure:1111: checking whether ln works" >&5
1111 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1112 echo $ac_n "(cached) $ac_c" 1>&6
1114 rm -f conftestdata_t
1115 echo >conftestdata_f
1116 if ln conftestdata_f conftestdata_t
2>/dev
/null
1120 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1122 gcc_cv_prog_LN
="ln -s"
1127 rm -f conftestdata_f conftestdata_t
1130 LN
="$gcc_cv_prog_LN"
1131 if test "$gcc_cv_prog_LN" = "ln"; then
1132 echo "$ac_t""yes" 1>&6
1134 if test "$gcc_cv_prog_LN" = "ln -s"; then
1135 echo "$ac_t""no, using ln -s" 1>&6
1137 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1141 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1142 echo "configure:1143: checking whether ln -s works" >&5
1143 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1144 echo $ac_n "(cached) $ac_c" 1>&6
1146 rm -f conftestdata_t
1147 echo >conftestdata_f
1148 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1150 gcc_cv_prog_LN_S
="ln -s"
1152 if ln conftestdata_f conftestdata_t
2>/dev
/null
1159 rm -f conftestdata_f conftestdata_t
1162 LN_S
="$gcc_cv_prog_LN_S"
1163 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1164 echo "$ac_t""yes" 1>&6
1166 if test "$gcc_cv_prog_LN_S" = "ln"; then
1167 echo "$ac_t""no, using ln" 1>&6
1169 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1173 # Extract the first word of "ranlib", so it can be a program name with args.
1174 set dummy ranlib
; ac_word
=$2
1175 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1176 echo "configure:1177: checking for $ac_word" >&5
1177 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1178 echo $ac_n "(cached) $ac_c" 1>&6
1180 if test -n "$RANLIB"; then
1181 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1183 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1184 for ac_dir
in $PATH; do
1185 test -z "$ac_dir" && ac_dir
=.
1186 if test -f $ac_dir/$ac_word; then
1187 ac_cv_prog_RANLIB
="ranlib"
1192 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1195 RANLIB
="$ac_cv_prog_RANLIB"
1196 if test -n "$RANLIB"; then
1197 echo "$ac_t""$RANLIB" 1>&6
1199 echo "$ac_t""no" 1>&6
1202 for ac_prog
in 'bison -y' byacc
1204 # Extract the first word of "$ac_prog", so it can be a program name with args.
1205 set dummy
$ac_prog; ac_word
=$2
1206 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1207 echo "configure:1208: checking for $ac_word" >&5
1208 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1209 echo $ac_n "(cached) $ac_c" 1>&6
1211 if test -n "$YACC"; then
1212 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1214 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1215 for ac_dir
in $PATH; do
1216 test -z "$ac_dir" && ac_dir
=.
1217 if test -f $ac_dir/$ac_word; then
1218 ac_cv_prog_YACC
="$ac_prog"
1225 YACC
="$ac_cv_prog_YACC"
1226 if test -n "$YACC"; then
1227 echo "$ac_t""$YACC" 1>&6
1229 echo "$ac_t""no" 1>&6
1232 test -n "$YACC" && break
1234 test -n "$YACC" || YACC
="yacc"
1236 # Find a good install program. We prefer a C program (faster),
1237 # so one script is as good as another. But avoid the broken or
1238 # incompatible versions:
1239 # SysV /etc/install, /usr/sbin/install
1240 # SunOS /usr/etc/install
1241 # IRIX /sbin/install
1243 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1244 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1245 # ./install, which can be erroneously created by make from ./install.sh.
1246 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1247 echo "configure:1248: checking for a BSD compatible install" >&5
1248 if test -z "$INSTALL"; then
1249 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1250 echo $ac_n "(cached) $ac_c" 1>&6
1252 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1253 for ac_dir
in $PATH; do
1254 # Account for people who put trailing slashes in PATH elements.
1256 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1258 # OSF1 and SCO ODT 3.0 have their own names for install.
1259 for ac_prog
in ginstall scoinst
install; do
1260 if test -f $ac_dir/$ac_prog; then
1261 if test $ac_prog = install &&
1262 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1263 # AIX install. It has an incompatible calling convention.
1264 # OSF/1 installbsd also uses dspmsg, but is usable.
1267 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1278 if test "${ac_cv_path_install+set}" = set; then
1279 INSTALL
="$ac_cv_path_install"
1281 # As a last resort, use the slow shell script. We don't cache a
1282 # path for INSTALL within a source directory, because that will
1283 # break other packages using the cache if that directory is
1284 # removed, or if the path is relative.
1285 INSTALL
="$ac_install_sh"
1288 echo "$ac_t""$INSTALL" 1>&6
1290 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1291 # It thinks the first close brace ends the variable substitution.
1292 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1294 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1297 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1298 echo "configure:1299: checking how to run the C preprocessor" >&5
1299 # On Suns, sometimes $CPP names a directory.
1300 if test -n "$CPP" && test -d "$CPP"; then
1303 if test -z "$CPP"; then
1304 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1305 echo $ac_n "(cached) $ac_c" 1>&6
1307 # This must be in double quotes, not single quotes, because CPP may get
1308 # substituted into the Makefile and "${CC-cc}" will confuse make.
1310 # On the NeXT, cc -E runs the code through the compiler's parser,
1311 # not just through cpp.
1312 cat > conftest.
$ac_ext <<EOF
1313 #line 1314 "configure"
1314 #include "confdefs.h"
1318 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1319 { (eval echo configure
:1320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1320 ac_err
=`grep -v '^ *+' conftest.out`
1321 if test -z "$ac_err"; then
1325 echo "configure: failed program was:" >&5
1326 cat conftest.
$ac_ext >&5
1328 CPP
="${CC-cc} -E -traditional-cpp"
1329 cat > conftest.
$ac_ext <<EOF
1330 #line 1331 "configure"
1331 #include "confdefs.h"
1335 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1336 { (eval echo configure
:1337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1337 ac_err
=`grep -v '^ *+' conftest.out`
1338 if test -z "$ac_err"; then
1342 echo "configure: failed program was:" >&5
1343 cat conftest.
$ac_ext >&5
1350 ac_cv_prog_CPP
="$CPP"
1352 CPP
="$ac_cv_prog_CPP"
1354 ac_cv_prog_CPP
="$CPP"
1356 echo "$ac_t""$CPP" 1>&6
1358 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1359 echo "configure:1360: checking for ANSI C header files" >&5
1360 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1361 echo $ac_n "(cached) $ac_c" 1>&6
1363 cat > conftest.
$ac_ext <<EOF
1364 #line 1365 "configure"
1365 #include "confdefs.h"
1371 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1372 { (eval echo configure
:1373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1373 ac_err
=`grep -v '^ *+' conftest.out`
1374 if test -z "$ac_err"; then
1376 ac_cv_header_stdc
=yes
1379 echo "configure: failed program was:" >&5
1380 cat conftest.
$ac_ext >&5
1382 ac_cv_header_stdc
=no
1386 if test $ac_cv_header_stdc = yes; then
1387 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1388 cat > conftest.
$ac_ext <<EOF
1389 #line 1390 "configure"
1390 #include "confdefs.h"
1393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1394 egrep "memchr" >/dev
/null
2>&1; then
1398 ac_cv_header_stdc
=no
1404 if test $ac_cv_header_stdc = yes; then
1405 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1406 cat > conftest.
$ac_ext <<EOF
1407 #line 1408 "configure"
1408 #include "confdefs.h"
1411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1412 egrep "free" >/dev
/null
2>&1; then
1416 ac_cv_header_stdc
=no
1422 if test $ac_cv_header_stdc = yes; then
1423 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1424 if test "$cross_compiling" = yes; then
1427 cat > conftest.
$ac_ext <<EOF
1428 #line 1429 "configure"
1429 #include "confdefs.h"
1431 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1432 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1433 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1434 int main () { int i; for (i = 0; i < 256; i++)
1435 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1439 if { (eval echo configure
:1440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1443 echo "configure: failed program was:" >&5
1444 cat conftest.
$ac_ext >&5
1446 ac_cv_header_stdc
=no
1454 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1455 if test $ac_cv_header_stdc = yes; then
1456 cat >> confdefs.h
<<\EOF
1457 #define STDC_HEADERS 1
1462 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1463 echo "configure:1464: checking whether time.h and sys/time.h may both be included" >&5
1464 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1465 echo $ac_n "(cached) $ac_c" 1>&6
1467 cat > conftest.
$ac_ext <<EOF
1468 #line 1469 "configure"
1469 #include "confdefs.h"
1470 #include <sys/types.h>
1471 #include <sys/time.h>
1477 if { (eval echo configure
:1478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1479 ac_cv_header_time
=yes
1481 echo "configure: failed program was:" >&5
1482 cat conftest.
$ac_ext >&5
1484 ac_cv_header_time
=no
1489 echo "$ac_t""$ac_cv_header_time" 1>&6
1490 if test $ac_cv_header_time = yes; then
1491 cat >> confdefs.h
<<\EOF
1492 #define TIME_WITH_SYS_TIME 1
1497 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 varargs.h sys
/varargs.h
wait.h sys
/wait.h
1499 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1500 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1501 echo "configure:1502: checking for $ac_hdr" >&5
1502 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1503 echo $ac_n "(cached) $ac_c" 1>&6
1505 cat > conftest.
$ac_ext <<EOF
1506 #line 1507 "configure"
1507 #include "confdefs.h"
1510 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1511 { (eval echo configure
:1512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1512 ac_err
=`grep -v '^ *+' conftest.out`
1513 if test -z "$ac_err"; then
1515 eval "ac_cv_header_$ac_safe=yes"
1518 echo "configure: failed program was:" >&5
1519 cat conftest.
$ac_ext >&5
1521 eval "ac_cv_header_$ac_safe=no"
1525 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1526 echo "$ac_t""yes" 1>&6
1527 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1528 cat >> confdefs.h
<<EOF
1529 #define $ac_tr_hdr 1
1533 echo "$ac_t""no" 1>&6
1538 # Check for thread headers.
1539 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
1540 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
1541 echo "configure:1542: checking for thread.h" >&5
1542 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1543 echo $ac_n "(cached) $ac_c" 1>&6
1545 cat > conftest.
$ac_ext <<EOF
1546 #line 1547 "configure"
1547 #include "confdefs.h"
1550 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1551 { (eval echo configure
:1552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1552 ac_err
=`grep -v '^ *+' conftest.out`
1553 if test -z "$ac_err"; then
1555 eval "ac_cv_header_$ac_safe=yes"
1558 echo "configure: failed program was:" >&5
1559 cat conftest.
$ac_ext >&5
1561 eval "ac_cv_header_$ac_safe=no"
1565 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1566 echo "$ac_t""yes" 1>&6
1569 echo "$ac_t""no" 1>&6
1573 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
1574 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
1575 echo "configure:1576: checking for pthread.h" >&5
1576 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1577 echo $ac_n "(cached) $ac_c" 1>&6
1579 cat > conftest.
$ac_ext <<EOF
1580 #line 1581 "configure"
1581 #include "confdefs.h"
1582 #include <pthread.h>
1584 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1585 { (eval echo configure
:1586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1586 ac_err
=`grep -v '^ *+' conftest.out`
1587 if test -z "$ac_err"; then
1589 eval "ac_cv_header_$ac_safe=yes"
1592 echo "configure: failed program was:" >&5
1593 cat conftest.
$ac_ext >&5
1595 eval "ac_cv_header_$ac_safe=no"
1599 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1600 echo "$ac_t""yes" 1>&6
1603 echo "$ac_t""no" 1>&6
1608 # See if the system preprocessor understands the ANSI C preprocessor
1609 # stringification operator.
1610 echo $ac_n "checking whether cpp understands the stringify operator""... $ac_c" 1>&6
1611 echo "configure:1612: checking whether cpp understands the stringify operator" >&5
1612 if eval "test \"`echo '$''{'gcc_cv_c_have_stringify'+set}'`\" = set"; then
1613 echo $ac_n "(cached) $ac_c" 1>&6
1615 cat > conftest.
$ac_ext <<EOF
1616 #line 1617 "configure"
1617 #include "confdefs.h"
1621 char *test = S(foo);
1624 if { (eval echo configure
:1625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1626 gcc_cv_c_have_stringify
=yes
1628 echo "configure: failed program was:" >&5
1629 cat conftest.
$ac_ext >&5
1631 gcc_cv_c_have_stringify
=no
1636 echo "$ac_t""$gcc_cv_c_have_stringify" 1>&6
1637 if test $gcc_cv_c_have_stringify = yes; then
1638 cat >> confdefs.h
<<\EOF
1639 #define HAVE_CPP_STRINGIFY 1
1644 # Use <inttypes.h> only if it exists,
1645 # doesn't clash with <sys/types.h>, and declares intmax_t.
1646 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
1647 echo "configure:1648: checking for inttypes.h" >&5
1648 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
1649 echo $ac_n "(cached) $ac_c" 1>&6
1651 cat > conftest.
$ac_ext <<EOF
1652 #line 1653 "configure"
1653 #include "confdefs.h"
1654 #include <sys/types.h>
1655 #include <inttypes.h>
1660 if { (eval echo configure
:1661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1662 cat >> confdefs.h
<<EOF
1663 #define HAVE_INTTYPES_H 1
1666 gcc_cv_header_inttypes_h
=yes
1668 echo "configure: failed program was:" >&5
1669 cat conftest.
$ac_ext >&5
1671 gcc_cv_header_inttypes_h
=no
1676 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
1678 for ac_func
in strtoul bsearch strerror putenv popen vprintf bcopy bzero bcmp \
1679 index rindex strchr strrchr
kill getrlimit setrlimit atoll atoq sysconf
1681 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1682 echo "configure:1683: checking for $ac_func" >&5
1683 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1684 echo $ac_n "(cached) $ac_c" 1>&6
1686 cat > conftest.
$ac_ext <<EOF
1687 #line 1688 "configure"
1688 #include "confdefs.h"
1689 /* System header to define __stub macros and hopefully few prototypes,
1690 which can conflict with char $ac_func(); below. */
1692 /* Override any gcc2 internal prototype to avoid an error. */
1693 /* We use char because int might match the return type of a gcc2
1694 builtin and then its argument prototype would still apply. */
1699 /* The GNU C library defines this for functions which it implements
1700 to always fail with ENOSYS. Some functions are actually named
1701 something starting with __ and the normal name is an alias. */
1702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1710 if { (eval echo configure
:1711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1712 eval "ac_cv_func_$ac_func=yes"
1714 echo "configure: failed program was:" >&5
1715 cat conftest.
$ac_ext >&5
1717 eval "ac_cv_func_$ac_func=no"
1722 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1723 echo "$ac_t""yes" 1>&6
1724 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1725 cat >> confdefs.h
<<EOF
1726 #define $ac_tr_func 1
1730 echo "$ac_t""no" 1>&6
1735 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
1736 echo "configure:1737: checking whether the printf functions support %p" >&5
1737 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
1738 echo $ac_n "(cached) $ac_c" 1>&6
1740 if test "$cross_compiling" = yes; then
1741 gcc_cv_func_printf_ptr
=no
1743 cat > conftest.
$ac_ext <<EOF
1744 #line 1745 "configure"
1745 #include "confdefs.h"
1751 char *p = buf, *q = NULL;
1752 sprintf(buf, "%p", p);
1753 sscanf(buf, "%p", &q);
1757 if { (eval echo configure
:1758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1759 gcc_cv_func_printf_ptr
=yes
1761 echo "configure: failed program was:" >&5
1762 cat conftest.
$ac_ext >&5
1764 gcc_cv_func_printf_ptr
=no
1769 rm -f core core.
* *.core
1772 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
1773 if test $gcc_cv_func_printf_ptr = yes ; then
1774 cat >> confdefs.h
<<\EOF
1775 #define HOST_PTR_PRINTF "%p"
1781 for ac_func
in malloc realloc calloc free bcopy bzero bcmp \
1782 index rindex getenv atol sbrk abort
1784 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
1785 echo "configure:1786: checking whether $ac_func must be declared" >&5
1786 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
1787 echo $ac_n "(cached) $ac_c" 1>&6
1789 cat > conftest.
$ac_ext <<EOF
1790 #line 1791 "configure"
1791 #include "confdefs.h"
1794 #ifdef HAVE_STRING_H
1797 #ifdef HAVE_STRINGS_H
1798 #include <strings.h>
1801 #ifdef HAVE_STDLIB_H
1804 #ifdef HAVE_UNISTD_H
1808 #define rindex strrchr
1811 #define index strchr
1814 char *(*pfn) = (char *(*)) $ac_func
1817 if { (eval echo configure
:1818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1819 eval "gcc_cv_decl_needed_$ac_func=no"
1821 echo "configure: failed program was:" >&5
1822 cat conftest.
$ac_ext >&5
1824 eval "gcc_cv_decl_needed_$ac_func=yes"
1829 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
1830 echo "$ac_t""yes" 1>&6
1831 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1832 cat >> confdefs.h
<<EOF
1833 #define $gcc_tr_decl 1
1837 echo "$ac_t""no" 1>&6
1843 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
1844 echo "configure:1845: checking for sys_siglist declaration in signal.h or unistd.h" >&5
1845 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
1846 echo $ac_n "(cached) $ac_c" 1>&6
1848 cat > conftest.
$ac_ext <<EOF
1849 #line 1850 "configure"
1850 #include "confdefs.h"
1851 #include <sys/types.h>
1853 /* NetBSD declares sys_siglist in unistd.h. */
1854 #ifdef HAVE_UNISTD_H
1858 char *msg = *(sys_siglist + 1);
1861 if { (eval echo configure
:1862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1863 ac_cv_decl_sys_siglist
=yes
1865 echo "configure: failed program was:" >&5
1866 cat conftest.
$ac_ext >&5
1868 ac_cv_decl_sys_siglist
=no
1873 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
1874 if test $ac_cv_decl_sys_siglist = yes; then
1875 cat >> confdefs.h
<<\EOF
1876 #define SYS_SIGLIST_DECLARED 1
1890 build_install_headers_dir
=install-headers-tar
1895 host_truncate_target
=
1898 # Decode the host machine, then the target machine.
1899 # For the host machine, we save the xm_file variable as host_xm_file;
1900 # then we decode the target machine and forget everything else
1901 # that came from the host machine.
1902 for machine
in $build $host $target; do
1916 # Set this to force installation and use of collect2.
1918 # Set this to override the default target model.
1920 # Set this to control which fixincludes program to use.
1921 if [ x
$fast_fixinc != xyes
] ; then
1922 fixincludes
=fixincludes
1923 else fixincludes
=fixinc.sh
; fi
1924 # Set this to control how the header file directory is installed.
1925 install_headers_dir
=install-headers-tar
1926 # Set this to a non-empty list of args to pass to cpp if the target
1927 # wants its .md file passed through cpp.
1929 # Set this if directory names should be truncated to 14 characters.
1931 # Set this if gdb needs a dir command with `dirname $out_file`
1932 gdb_needs_out_file_path
=
1933 # Set this if the build machine requires executables to have a
1936 # Set this to control which thread package will be used.
1938 # Reinitialize these from the flag values every loop pass, since some
1939 # configure entries modify them.
1941 gnu_ld
="$gnu_ld_flag"
1943 # Set default cpu_type, tm_file and xm_file so it can be updated in
1944 # each machine entry.
1945 cpu_type
=`echo $machine | sed 's/-.*$//'`
1979 tm_file
=${cpu_type}/${cpu_type}.h
1980 xm_file
=${cpu_type}/xm-
${cpu_type}.h
1982 # Set the default macros to define for GNU/Linux systems.
1985 xm_defines
="HAVE_ATEXIT POSIX NO_STAB_H BSTRING"
1990 # Support site-specific machine types.
1992 cpu_type
=`echo $machine | sed -e 's/-.*//'`
1993 rest
=`echo $machine | sed -e "s/$cpu_type-//"`
1994 xm_file
=${cpu_type}/xm-
$rest.h
1995 tm_file
=${cpu_type}/$rest.h
1996 if [ -f $srcdir/config
/${cpu_type}/x-
$rest ] ; \
1997 then xmake_file
=${cpu_type}/x-
$rest; \
2000 if [ -f $srcdir/config
/${cpu_type}/t-
$rest ] ; \
2001 then tmake_file
=${cpu_type}/t-
$rest; \
2007 a29k-
*-bsd* | a29k-
*-sym1*)
2008 tm_file
="${tm_file} a29k/unix.h"
2010 xmake_file
=a29k
/x-unix
2013 a29k-
*-udi | a29k-
*-coff)
2014 tm_file
="${tm_file} dbxcoff.h a29k/udi.h"
2015 tmake_file
=a29k
/t-a29kbare
2018 tm_file
="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
2019 tmake_file
=a29k
/t-vx29k
2020 extra_parts
="crtbegin.o crtend.o"
2021 thread_file
='vxworks'
2023 a29k-
*-*) # Default a29k environment.
2026 alpha
*-*-linux-gnuecoff*)
2027 tm_file
="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
2029 target_cpu_default
="MASK_GAS"
2034 alpha
*-*-linux-gnulibc1*)
2035 tm_file
="${tm_file} alpha/elf.h alpha/linux-elf.h alpha/linux.h"
2037 target_cpu_default
="MASK_GAS"
2038 tmake_file
="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
2039 extra_parts
="crtbegin.o crtend.o"
2042 if [ x
$enable_threads = xyes
]; then
2046 alpha
*-*-linux-gnu*)
2047 tm_file
="${tm_file} alpha/linux.h alpha/elf.h"
2049 target_cpu_default
="MASK_GAS"
2050 tmake_file
="t-linux alpha/t-linux alpha/t-crtbe"
2051 extra_parts
="crtbegin.o crtend.o"
2053 fixincludes
=Makefile.
in
2055 if [ x
$enable_threads = xyes
]; then
2060 if [ x
$stabs = xyes
]
2062 tm_file
="${tm_file} dbx.h"
2064 if [ x
$gas != xyes
]
2066 extra_passes
="mips-tfile mips-tdump"
2071 tm_file
="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
2074 tm_file
="${tm_file} alpha/osf.h alpha/osf2or3.h"
2077 tm_file
="${tm_file} alpha/osf.h"
2078 # Some versions of OSF4 (specifically X4.0-9 296.7) have
2079 # a broken tar, so we use cpio instead.
2080 install_headers_dir
=install-headers-cpio
2084 *-*-osf4.0
[b-z
] |
*-*-osf4.
[1-9]*)
2085 target_cpu_default
=MASK_SUPPORT_ARCH
2090 tm_file
="${tm_file} alpha/win-nt.h"
2091 xm_file
="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
2092 tmake_file
=t-libc-ok
2093 xmake_file
=winnt
/x-winnt
2094 extra_host_objs
=oldnames.o
2095 extra_gcc_objs
="spawnv.o oldnames.o"
2096 fixincludes
=fixinc.winnt
2097 if [ x
$gnu_ld != xyes
]
2099 extra_programs
=ld.exe
2101 if [ x
$enable_threads = xyes
]; then
2107 xm_file
="${xm_file} alpha/xm-vms.h"
2108 tmake_file
=alpha
/t-vms
2109 fixincludes
=Makefile.
in
2112 extra_parts
="crtinit.o crtfini.o"
2114 arm-
*-coff* | armel-
*-coff*)
2116 tmake_file
=arm
/t-bare
2118 arm-
*-riscix1.
[01]*) # Acorn RISC machine (early versions)
2119 tm_file
=arm
/riscix1-1.h
2122 arm-
*-riscix*) # Acorn RISC machine
2125 tm_file
=arm
/rix-gas.h
2127 tm_file
=arm
/riscix.h
2129 xmake_file
=arm
/x-riscix
2130 tmake_file
=arm
/t-riscix
2133 arm-semi-aout | armel-semi-aout
)
2135 tmake_file
=arm
/t-semi
2136 fixincludes
=Makefile.
in # There is nothing to fix
2138 arm-semi-aof | armel-semi-aof
)
2139 tm_file
=arm
/semiaof.h
2140 tmake_file
=arm
/t-semiaof
2141 fixincludes
=Makefile.
in # There is nothing to fix
2144 tm_file
=arm
/netbsd.h
2145 xm_file
="xm-siglist.h ${xm_file}"
2146 tmake_file
="t-netbsd arm/t-netbsd"
2147 # On NetBSD, the headers are already okay, except for math.h.
2148 fixincludes
=fixinc.math
2150 arm-
*-linux-gnuaout*) # ARM GNU/Linux
2153 tm_file
=arm
/linux-gas.h
2154 tmake_file
=arm
/t-linux
2155 fixincludes
=Makefile.
in
2160 tmake_file
=arm
/t-bare
2162 c1-convex-
*) # Convex C1
2163 target_cpu_default
=1
2165 fixincludes
=Makefile.
in
2167 c2-convex-
*) # Convex C2
2168 target_cpu_default
=2
2170 fixincludes
=Makefile.
in
2173 target_cpu_default
=4
2175 fixincludes
=Makefile.
in
2178 target_cpu_default
=8
2180 fixincludes
=Makefile.
in
2183 target_cpu_default
=16
2185 fixincludes
=Makefile.
in
2187 clipper-intergraph-clix
*)
2188 tm_file
="${tm_file} svr3.h clipper/clix.h"
2189 xm_file
=clipper
/xm-clix.h
2190 xmake_file
=clipper
/x-clix
2191 extra_headers
=va-clipper.h
2192 extra_parts
="crtbegin.o crtend.o"
2193 install_headers_dir
=install-headers-cpio
2200 # This hasn't been upgraded to GCC 2.
2201 # fx80-alliant-*) # Alliant FX/80
2207 tm_file
="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
2208 xm_file
=pa
/xm-papro.h
2212 target_cpu_default
=1
2213 tm_file
="${tm_file} pa/pa-osf.h"
2215 fixincludes
=Makefile.
in
2218 tm_file
="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
2219 xm_file
=pa
/xm-papro.h
2223 tm_file
="${tm_file} pa/pa-osf.h"
2225 fixincludes
=Makefile.
in
2228 target_cpu_default
=1
2230 fixincludes
=Makefile.
in
2234 fixincludes
=Makefile.
in
2237 tm_file
="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
2238 xm_file
=pa
/xm-pahpux.h
2239 xmake_file
=pa
/x-pa-hpux
2242 tm_file
="${tm_file} pa/gas.h"
2244 install_headers_dir
=install-headers-cpio
2247 hppa1.0
-*-hpux8.0
[0-2]*)
2248 tm_file
="${tm_file} pa/pa-hpux.h"
2249 xm_file
=pa
/xm-pahpux.h
2250 xmake_file
=pa
/x-pa-hpux
2253 tm_file
="${tm_file} pa/pa-gas.h"
2255 tm_file
="pa/pa-oldas.h ${tm_file}"
2257 install_headers_dir
=install-headers-cpio
2260 hppa1.1
-*-hpux8.0
[0-2]*)
2261 target_cpu_default
=1
2262 tm_file
="${tm_file} pa/pa-hpux.h"
2263 xm_file
=pa
/xm-pahpux.h
2264 xmake_file
=pa
/x-pa-hpux
2267 tm_file
="${tm_file} pa/pa-gas.h"
2269 tm_file
="pa/pa-oldas.h ${tm_file}"
2271 install_headers_dir
=install-headers-cpio
2275 target_cpu_default
=1
2276 tm_file
="${tm_file} pa/pa-hpux.h"
2277 xm_file
=pa
/xm-pahpux.h
2278 xmake_file
=pa
/x-pa-hpux
2281 tm_file
="${tm_file} pa/pa-gas.h"
2283 install_headers_dir
=install-headers-cpio
2287 tm_file
="${tm_file} pa/pa-hpux.h"
2288 xm_file
=pa
/xm-pahpux.h
2289 xmake_file
=pa
/x-pa-hpux
2292 tm_file
="${tm_file} pa/pa-gas.h"
2294 install_headers_dir
=install-headers-cpio
2298 target_cpu_default
=1
2299 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
2300 xm_file
=pa
/xm-pahpux.h
2301 xmake_file
=pa
/x-pa-hpux
2305 tm_file
="${tm_file} pa/pa-gas.h"
2307 if [ x
$enable_threads = x
]; then
2308 enable_threads
=$have_pthread_h
2310 if [ x
$enable_threads = xyes
]; then
2312 tmake_file
="${tmake_file} pa/t-dce-thr"
2314 install_headers_dir
=install-headers-cpio
2318 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
2319 xm_file
=pa
/xm-pahpux.h
2320 xmake_file
=pa
/x-pa-hpux
2323 tm_file
="${tm_file} pa/pa-gas.h"
2325 if [ x
$enable_threads = x
]; then
2326 enable_threads
=$have_pthread_h
2328 if [ x
$enable_threads = xyes
]; then
2330 tmake_file
="${tmake_file} pa/t-dce-thr"
2332 install_headers_dir
=install-headers-cpio
2336 target_cpu_default
=1
2337 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
2338 xm_file
=pa
/xm-pahpux.h
2339 xmake_file
=pa
/x-pa-hpux
2342 tm_file
="${tm_file} pa/pa-gas.h"
2344 install_headers_dir
=install-headers-cpio
2348 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
2349 xm_file
=pa
/xm-pahpux.h
2350 xmake_file
=pa
/x-pa-hpux
2353 tm_file
="${tm_file} pa/pa-gas.h"
2355 install_headers_dir
=install-headers-cpio
2359 target_cpu_default
=1
2360 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
2361 xm_file
=pa
/xm-pahpux.h
2362 xmake_file
=pa
/x-pa-hpux
2365 tm_file
="${tm_file} pa/pa-gas.h"
2367 install_headers_dir
=install-headers-cpio
2371 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
2372 xm_file
=pa
/xm-pahpux.h
2373 xmake_file
=pa
/x-pa-hpux
2376 tm_file
="${tm_file} pa/pa-gas.h"
2378 install_headers_dir
=install-headers-cpio
2382 target_cpu_default
=1
2384 fixincludes
=Makefile.
in
2388 i
[34567]86-ibm-aix*) # IBM PS/2 running AIX
2391 tm_file
=i386
/aix386.h
2392 extra_parts
="crtbegin.o crtend.o"
2393 tmake_file
=i386
/t-crtstuff
2395 tm_file
=i386
/aix386ng.h
2398 xm_file
="xm-alloca.h i386/xm-aix.h ${xm_file}"
2400 xmake_file
=i386
/x-aix
2402 i
[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
2403 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
2404 xm_defines
="USG POSIX SMALL_ARG_MAX"
2405 xmake_file
=i386
/x-ncr3000
2406 if [ x
$stabs = xyes
-a x
$gas = xyes
]
2408 tm_file
=i386
/sysv4gdb.h
2410 tm_file
=i386
/sysv4.h
2412 extra_parts
="crtbegin.o crtend.o"
2413 tmake_file
=i386
/t-crtpic
2417 xm_file
=i386
/xm-next.h
2418 tmake_file
=i386
/t-next
2419 xmake_file
=i386
/x-next
2420 extra_objs
=nextstep.o
2421 if [ x
$enable_threads = xyes
]; then
2425 i
[34567]86-sequent-bsd*) # 80386 from Sequent
2429 tm_file
=i386
/seq-gas.h
2431 tm_file
=i386
/sequent.h
2434 i
[34567]86-sequent-ptx1*)
2435 xm_defines
="USG SVR3"
2436 xmake_file
=i386
/x-sysv3
2437 tm_file
=i386
/seq-sysv3.h
2438 tmake_file
=i386
/t-crtstuff
2439 fixincludes
=fixinc.
ptx
2440 extra_parts
="crtbegin.o crtend.o"
2441 install_headers_dir
=install-headers-cpio
2443 i
[34567]86-sequent-ptx2* | i
[34567]86-sequent-sysv3*)
2444 xm_defines
="USG SVR3"
2445 xmake_file
=i386
/x-sysv3
2446 tm_file
=i386
/seq2-sysv3.h
2447 tmake_file
=i386
/t-crtstuff
2448 extra_parts
="crtbegin.o crtend.o"
2449 fixincludes
=fixinc.
ptx
2450 install_headers_dir
=install-headers-cpio
2452 i
[34567]86-sequent-ptx4* | i
[34567]86-sequent-sysv4*)
2453 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
2454 xm_defines
="USG POSIX SMALL_ARG_MAX"
2456 tm_file
=i386
/ptx4-i.h
2458 extra_parts
="crtbegin.o crtend.o"
2459 fixincludes
=fixinc.
ptx
2460 install_headers_dir
=install-headers-cpio
2462 i386-sun-sunos
*) # Sun i386 roadrunner
2467 i
[34567]86-wrs-vxworks*)
2468 tm_file
=i386
/vxi386.h
2469 tmake_file
=i386
/t-i386bare
2472 tm_file
=i386
/i386-aout.h
2473 tmake_file
=i386
/t-i386bare
2475 i
[34567]86-*-bsdi* | i
[34567]86-*-bsd386*)
2476 tm_file
=i386
/bsd386.h
2477 # tmake_file=t-libc-ok
2480 tm_file
=i386
/386bsd.h
2481 # tmake_file=t-libc-ok
2482 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
2485 i
[34567]86-*-freebsdelf*)
2486 tm_file
="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
2487 # On FreeBSD, the headers are already ok, except for math.h.
2488 fixincludes
=fixinc.math
2489 tmake_file
=i386
/t-freebsd
2494 i
[34567]86-*-freebsd*)
2495 tm_file
=i386
/freebsd.h
2496 # On FreeBSD, the headers are already ok, except for math.h.
2497 fixincludes
=fixinc.math
2498 tmake_file
=i386
/t-freebsd
2500 i
[34567]86-*-netbsd*)
2501 tm_file
=i386
/netbsd.h
2502 # On NetBSD, the headers are already okay, except for math.h.
2503 fixincludes
=fixinc.math
2507 tm_file
=i386
/i386-coff.h
2508 tmake_file
=i386
/t-i386bare
2510 i
[34567]86-*-isc*) # 80386 running ISC system
2511 xm_file
="${xm_file} i386/xm-isc.h"
2512 xm_defines
="USG SVR3"
2514 i
[34567]86-*-isc[34]*)
2515 xmake_file
=i386
/x-isc3
2518 xmake_file
=i386
/x-isc
2521 if [ x
$gas = xyes
-a x
$stabs = xyes
]
2523 tm_file
=i386
/iscdbx.h
2524 tmake_file
=i386
/t-svr3dbx
2525 extra_parts
="svr3.ifile svr3z.ifile"
2527 tm_file
=i386
/isccoff.h
2528 tmake_file
=i386
/t-crtstuff
2529 extra_parts
="crtbegin.o crtend.o"
2531 install_headers_dir
=install-headers-cpio
2533 i
[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
2534 # with a.out format using
2536 xmake_file
=x-linux-aout
2537 tmake_file
="t-linux-aout i386/t-crtstuff"
2538 tm_file
=i386
/linux-oldld.h
2539 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
2542 i
[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
2544 xmake_file
=x-linux-aout
2545 tmake_file
="t-linux-aout i386/t-crtstuff"
2546 tm_file
=i386
/linux-aout.h
2547 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
2550 i
[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
2551 # with ELF format using the
2552 # GNU/Linux C library 5
2554 tm_file
=i386
/linux.h
2555 tmake_file
="t-linux t-linux-gnulibc1 i386/t-crtstuff"
2556 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2557 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
2559 if [ x
$enable_threads = xyes
]; then
2560 thread_file
='single'
2563 i
[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
2564 # with ELF format using glibc 2
2565 # aka GNU/Linux C library 6
2567 tm_file
=i386
/linux.h
2568 tmake_file
="t-linux i386/t-crtstuff"
2569 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2570 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
2572 if [ x
$enable_threads = xyes
]; then
2578 i
[34567]86-go32-msdos | i
[34567]86-*-go32*)
2579 xm_file
=i386
/xm-go32.h
2581 tmake_file
=i386
/t-go32
2583 i
[34567]86-pc-msdosdjgpp*)
2584 xm_file
=i386
/xm-go32.h
2586 tmake_file
=i386
/t-go32
2590 i
[34567]86-moss-msdos* | i
[34567]86-*-moss*)
2592 tmake_file
=t-libc-ok
2593 fixincludes
=Makefile.
in
2597 i
[34567]86-*-lynxos*)
2602 tm_file
=i386
/lynx-ng.h
2604 xm_file
=i386
/xm-lynx.h
2605 tmake_file
=i386
/t-i386bare
2610 # tmake_file=t-libc-ok
2613 i
[34567]86-*-osfrose*) # 386 using OSF/rose
2616 tm_file
=i386
/osfelf.h
2619 tm_file
=i386
/osfrose.h
2622 xm_file
="i386/xm-osf.h ${xm_file}"
2623 xmake_file
=i386
/x-osfrose
2624 tmake_file
=i386
/t-osf
2625 extra_objs
=halfpic.o
2627 i
[34567]86-go32-rtems*)
2629 xm_file
=i386
/xm-go32.h
2630 tm_file
=i386
/go32-rtems.h
2631 tmake_file
="i386/t-go32 t-rtems"
2633 i
[34567]86-*-rtemself*)
2635 tm_file
=i386
/rtemself.h
2636 tmake_file
="i386/t-i386bare t-rtems"
2638 i
[34567]86-*-rtems*)
2640 tm_file
=i386
/rtems.h
2641 tmake_file
="i386/t-i386bare t-rtems"
2643 i
[34567]86-*-sco3.2v5
*) # 80386 running SCO Open Server 5
2644 xm_file
="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
2645 xm_defines
="USG SVR3"
2646 xmake_file
=i386
/x-sco5
2647 fixincludes
=fixinc.sco
2648 install_headers_dir
=install-headers-cpio
2650 tmake_file
=i386
/t-sco5
2651 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2653 i
[34567]86-*-sco3.2v4
*) # 80386 running SCO 3.2v4 system
2654 xm_file
="${xm_file} i386/xm-sco.h"
2655 xm_defines
="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
2656 xmake_file
=i386
/x-sco4
2657 fixincludes
=fixinc.sco
2658 install_headers_dir
=install-headers-cpio
2659 if [ x
$stabs = xyes
]
2661 tm_file
=i386
/sco4dbx.h
2662 tmake_file
=i386
/t-svr3dbx
2663 extra_parts
="svr3.ifile svr3z.rfile"
2666 tmake_file
=i386
/t-crtstuff
2667 extra_parts
="crtbegin.o crtend.o"
2671 i
[34567]86-*-sco*) # 80386 running SCO system
2672 xm_file
=i386
/xm-sco.h
2673 xmake_file
=i386
/x-sco
2674 install_headers_dir
=install-headers-cpio
2675 if [ x
$stabs = xyes
]
2677 tm_file
=i386
/scodbx.h
2678 tmake_file
=i386
/t-svr3dbx
2679 extra_parts
="svr3.ifile svr3z.rfile"
2682 extra_parts
="crtbegin.o crtend.o"
2683 tmake_file
=i386
/t-crtstuff
2687 i
[34567]86-*-solaris2*)
2688 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
2689 xm_defines
="USG POSIX SMALL_ARG_MAX"
2690 if [ x
$stabs = xyes
]
2692 tm_file
=i386
/sol2dbg.h
2696 tmake_file
=i386
/t-sol2
2697 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2701 fixincludes
=fixinc.svr4
;;
2703 fixincludes
=fixinc.math
;;
2705 if [ x
$enable_threads = xyes
]; then
2706 thread_file
='solaris'
2709 i
[34567]86-*-sysv5*) # Intel x86 on System V Release 5
2710 xm_file
="xm-alloca.h xm-siglist.h ${xm_file}"
2711 xm_defines
="USG POSIX"
2712 tm_file
=i386
/sysv4.h
2713 if [ x
$stabs = xyes
]
2715 tm_file
="${tm_file} dbx.h"
2717 tmake_file
=i386
/t-crtpic
2719 extra_parts
="crtbegin.o crtend.o"
2720 fixincludes
=Makefile.
in # The headers are just fine, thank you.
2722 i
[34567]86-*-sysv4*) # Intel 80386's running system V.4
2723 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
2724 xm_defines
="USG POSIX SMALL_ARG_MAX"
2725 tm_file
=i386
/sysv4.h
2726 if [ x
$stabs = xyes
]
2728 tm_file
="${tm_file} dbx.h"
2730 tmake_file
=i386
/t-crtpic
2732 extra_parts
="crtbegin.o crtend.o"
2734 i
[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
2736 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
2737 xm_defines
="USE_C_ALLOCA SMALL_ARG_MAX"
2738 fixincludes
=Makefile.
in #Don't do it on OSF/1
2739 if [ x
$stabs = xyes
]
2741 tm_file
=i386
/osf1elfgdb.h
2743 tm_file
=i386
/osf1elf.h
2745 tmake_file
=i386
/t-osf1elf
2746 xmake_file
=i386
/x-osf1elf
2747 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
2749 i
[34567]86-*-sysv*) # Intel 80386's running system V
2750 xm_defines
="USG SVR3"
2751 xmake_file
=i386
/x-sysv3
2754 if [ x
$stabs = xyes
]
2756 tm_file
=i386
/svr3dbx.h
2757 tmake_file
=i386
/t-svr3dbx
2758 extra_parts
="svr3.ifile svr3z.rfile"
2760 tm_file
=i386
/svr3gas.h
2761 extra_parts
="crtbegin.o crtend.o"
2762 tmake_file
=i386
/t-crtstuff
2765 tm_file
=i386
/sysv3.h
2766 extra_parts
="crtbegin.o crtend.o"
2767 tmake_file
=i386
/t-crtstuff
2770 i386-
*-vsta) # Intel 80386's running VSTa kernel
2771 xm_file
="${xm_file} i386/xm-vsta.h"
2773 tmake_file
=i386
/t-vsta
2774 xmake_file
=i386
/x-vsta
2776 i
[34567]86-*-pe | i
[34567]86-*-cygwin32)
2777 xm_file
="${xm_file} i386/xm-cygwin32.h"
2778 tmake_file
=i386
/t-cygwin32
2779 tm_file
=i386
/cygwin32.h
2780 xmake_file
=i386
/x-cygwin32
2782 fixincludes
=Makefile.
in
2783 if [ x
$enable_threads = xyes
]; then
2788 i
[34567]86-*-mingw32*)
2789 tm_file
=i386
/mingw32.h
2790 xm_file
="${xm_file} i386/xm-mingw32.h"
2791 tmake_file
=i386
/t-cygwin32
2793 xmake_file
=i386
/x-cygwin32
2794 fixincludes
=Makefile.
in
2795 if [ x
$enable_threads = xyes
]; then
2802 *minwg32crt
* |
*mingw32
*)
2803 tm_file
="${tm_file} i386/crtdll.h"
2807 i
[34567]86-*-winnt3*)
2808 tm_file
=i386
/win-nt.h
2809 out_file
=i386
/i386.c
2810 xm_file
="xm-winnt.h ${xm_file}"
2811 xmake_file
=winnt
/x-winnt
2812 tmake_file
=i386
/t-winnt
2813 extra_host_objs
="winnt.o oldnames.o"
2814 extra_gcc_objs
="spawnv.o oldnames.o"
2815 fixincludes
=fixinc.winnt
2816 if [ x
$gnu_ld != xyes
]
2818 extra_programs
=ld.exe
2820 if [ x
$enable_threads = xyes
]; then
2824 i
[34567]86-dg-dgux*)
2825 xm_file
="xm-alloca.h xm-siglist.h ${xm_file}"
2826 xm_defines
="USG POSIX"
2827 out_file
=i386
/dgux.c
2829 tmake_file
=i386
/t-dgux
2830 xmake_file
=i386
/x-dgux
2831 fixincludes
=fixinc.dgux
2832 install_headers_dir
=install-headers-cpio
2834 i860-alliant-
*) # Alliant FX/2800
2835 tm_file
="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
2836 xm_file
="${xm_file}"
2837 xmake_file
=i860
/x-fx2800
2838 tmake_file
=i860
/t-fx2800
2839 extra_parts
="crtbegin.o crtend.o"
2842 tm_file
="${tm_file} i860/bsd.h"
2845 tm_file
="${tm_file} i860/bsd-gas.h"
2850 tm_file
="${tm_file} i860/mach.h"
2851 tmake_file
=t-libc-ok
2853 i860-
*-osf*) # Intel Paragon XP/S, OSF/1AD
2854 tm_file
="${tm_file} svr3.h i860/paragon.h"
2855 xm_defines
="USG SVR3"
2859 tm_file
="${tm_file} svr3.h i860/sysv3.h"
2860 xm_defines
="USG SVR3"
2861 xmake_file
=i860
/x-sysv3
2862 extra_parts
="crtbegin.o crtend.o"
2865 tm_file
="${tm_file} svr4.h i860/sysv4.h"
2866 xm_defines
="USG SVR3"
2867 xmake_file
=i860
/x-sysv4
2869 extra_parts
="crtbegin.o crtend.o"
2871 i960-wrs-vxworks5 | i960-wrs-vxworks5.0
*)
2872 tm_file
="${tm_file} i960/vx960.h"
2873 tmake_file
=i960
/t-vxworks960
2875 thread_file
='vxworks'
2877 i960-wrs-vxworks5
* | i960-wrs-vxworks
)
2878 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
2879 tmake_file
=i960
/t-vxworks960
2881 thread_file
='vxworks'
2884 tm_file
="${tm_file} i960/vx960.h"
2885 tmake_file
=i960
/t-vxworks960
2887 thread_file
='vxworks'
2890 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
2891 tmake_file
=i960
/t-960bare
2895 tmake_file
="i960/t-960bare t-rtems"
2896 tm_file
="${tm_file} dbxcoff.h i960/rtems.h"
2899 i960-
*-*) # Default i960 environment.
2903 extra_parts
="crtinit.o crtfini.o"
2905 m68000-convergent-sysv
*)
2907 xm_file
="m68k/xm-3b1.h ${xm_file}"
2910 extra_headers
=math-68881.h
2912 m68000-hp-bsd
*) # HP 9000/200 running BSD
2913 tm_file
=m68k
/hp2bsd.h
2914 xmake_file
=m68k
/x-hp2bsd
2916 extra_headers
=math-68881.h
2918 m68000-hp-hpux
*) # HP 9000 series 300
2919 xm_file
="xm_alloca.h ${xm_file}"
2920 xm_defines
="USG NO_SYS_SIGLIST"
2923 xmake_file
=m68k
/x-hp320g
2924 tm_file
=m68k
/hp310g.h
2926 xmake_file
=m68k
/x-hp320
2927 tm_file
=m68k
/hp310.h
2929 install_headers_dir
=install-headers-cpio
2931 extra_headers
=math-68881.h
2936 extra_headers
=math-68881.h
2939 tm_file
=m68k
/sun2o4.h
2941 extra_headers
=math-68881.h
2944 xm_file
="m68k/xm-3b1.h ${xm_file}"
2953 extra_headers
=math-68881.h
2955 m68k-apple-aux
*) # Apple Macintosh running A/UX
2956 xm_defines
="USG AUX"
2957 tmake_file
=m68k
/t-aux
2958 install_headers_dir
=install-headers-cpio
2959 extra_headers
=math-68881.h
2960 extra_parts
="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
2962 if [ "$gnu_ld" = yes ]
2964 tm_file
="${tm_file} m68k/auxgld.h"
2966 tm_file
="${tm_file} m68k/auxld.h"
2970 tm_file
="${tm_file} m68k/auxgas.h"
2972 tm_file
="${tm_file} m68k/auxas.h"
2974 tm_file
="${tm_file} m68k/a-ux.h"
2977 tm_file
=m68k
/apollo68.h
2978 xmake_file
=m68k
/x-apollo68
2980 extra_headers
=math-68881.h
2982 m68k-altos-sysv
*) # Altos 3068
2985 tm_file
=m68k
/altos3068.h
2988 echo "The Altos is supported only with the GNU assembler" 1>&2
2991 extra_headers
=math-68881.h
2993 m68k-bull-sysv
*) # Bull DPX/2
2996 if [ x
$stabs = xyes
]
2998 tm_file
=m68k
/dpx2cdbx.h
3000 tm_file
=m68k
/dpx2g.h
3005 xm_file
="xm-alloca.h ${xm_file}"
3007 xmake_file
=m68k
/x-dpx2
3009 extra_headers
=math-68881.h
3011 m68k-atari-sysv4
*) # Atari variant of V.4.
3012 tm_file
=m68k
/atari.h
3013 xm_file
="xm-alloca.h ${xm_file}"
3014 xm_defines
="USG FULL_PROTOTYPES"
3016 extra_parts
="crtbegin.o crtend.o"
3017 extra_headers
=math-68881.h
3019 m68k-motorola-sysv
*)
3020 tm_file
=m68k
/mot3300.h
3021 xm_file
="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
3022 xm_defines
=NO_SYS_SIGLIST
3025 xmake_file
=m68k
/x-mot3300-gas
3026 if [ x
$gnu_ld = xyes
]
3028 tmake_file
=m68k
/t-mot3300-gald
3030 tmake_file
=m68k
/t-mot3300-gas
3034 xmake_file
=m68k
/x-mot3300
3035 if [ x
$gnu_ld = xyes
]
3037 tmake_file
=m68k
/t-mot3300-gld
3039 tmake_file
=m68k
/t-mot3300
3043 gdb_needs_out_file_path
=yes
3044 extra_parts
="crt0.o mcrt0.o"
3045 extra_headers
=math-68881.h
3047 m68k-ncr-sysv
*) # NCR Tower 32 SVR3
3048 tm_file
=m68k
/tower-as.h
3049 xm_defines
="USG SVR3"
3050 xmake_file
=m68k
/x-tower
3051 extra_parts
="crtbegin.o crtend.o"
3052 extra_headers
=math-68881.h
3055 tm_file
=m68k
/plexus.h
3056 xm_file
="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
3059 extra_headers
=math-68881.h
3063 xm_file
="xm-alloca.h ${xm_file}"
3065 extra_headers
=math-68881.h
3068 xm_file
="xm-alloca.h m68k/xm-crds.h ${xm_file}"
3069 xm_defines
="USG unos"
3070 xmake_file
=m68k
/x-crds
3073 extra_headers
=math-68881.h
3075 m68k-cbm-sysv4
*) # Commodore variant of V.4.
3077 xm_file
="xm-alloca.h ${xm_file}"
3078 xm_defines
="USG FULL_PROTOTYPES"
3079 xmake_file
=m68k
/x-amix
3081 extra_parts
="crtbegin.o crtend.o"
3082 extra_headers
=math-68881.h
3085 tm_file
=m68k
/ccur-GAS.h
3086 xmake_file
=m68k
/x-ccur
3087 extra_headers
=math-68881.h
3090 m68k-hp-bsd4.4
*) # HP 9000/3xx running 4.4bsd
3091 tm_file
=m68k
/hp3bsd44.h
3092 xmake_file
=m68k
/x-hp3bsd44
3094 extra_headers
=math-68881.h
3096 m68k-hp-bsd
*) # HP 9000/3xx running Berkeley Unix
3097 tm_file
=m68k
/hp3bsd.h
3099 extra_headers
=math-68881.h
3102 if [ x
$with_fp = xno
]
3104 tm_file
=m68k
/isi-nfp.h
3109 extra_headers
=math-68881.h
3111 m68k-hp-hpux7
*) # HP 9000 series 300 running HPUX version 7.
3112 xm_file
="xm_alloca.h ${xm_file}"
3113 xm_defines
="USG NO_SYS_SIGLIST"
3116 xmake_file
=m68k
/x-hp320g
3117 tm_file
=m68k
/hp320g.h
3119 xmake_file
=m68k
/x-hp320
3120 tm_file
=m68k
/hpux7.h
3122 install_headers_dir
=install-headers-cpio
3124 extra_headers
=math-68881.h
3126 m68k-hp-hpux
*) # HP 9000 series 300
3127 xm_file
="xm_alloca.h ${xm_file}"
3128 xm_defines
="USG NO_SYS_SIGLIST"
3131 xmake_file
=m68k
/x-hp320g
3132 tm_file
=m68k
/hp320g.h
3134 xmake_file
=m68k
/x-hp320
3135 tm_file
=m68k
/hp320.h
3137 install_headers_dir
=install-headers-cpio
3139 extra_headers
=math-68881.h
3142 tm_file
=m68k
/sun3mach.h
3144 extra_headers
=math-68881.h
3149 tm_file
=m68k
/news3gas.h
3151 tm_file
=m68k
/news3.h
3154 extra_headers
=math-68881.h
3156 m68k-sony-bsd
* | m68k-sony-newsos
*)
3159 tm_file
=m68k
/newsgas.h
3164 extra_headers
=math-68881.h
3166 m68k-next-nextstep2
*)
3167 tm_file
=m68k
/next21.h
3168 xm_file
="m68k/xm-next.h ${xm_file}"
3169 tmake_file
=m68k
/t-next
3170 xmake_file
=m68k
/x-next
3171 extra_objs
=nextstep.o
3172 extra_headers
=math-68881.h
3175 m68k-next-nextstep3
*)
3177 xm_file
="m68k/xm-next.h ${xm_file}"
3178 tmake_file
=m68k
/t-next
3179 xmake_file
=m68k
/x-next
3180 extra_objs
=nextstep.o
3181 extra_headers
=math-68881.h
3182 if [ x
$enable_threads = xyes
]; then
3187 if [ x
$with_fp = xno
]
3189 tm_file
=m68k
/sun3n3.h
3191 tm_file
=m68k
/sun3o3.h
3194 extra_headers
=math-68881.h
3196 m68k-sun-sunos
*) # For SunOS 4 (the default).
3197 if [ x
$with_fp = xno
]
3199 tm_file
=m68k
/sun3n.h
3204 extra_headers
=math-68881.h
3207 tm_file
=m68k
/vxm68k.h
3208 tmake_file
=m68k
/t-vxworks68
3209 extra_headers
=math-68881.h
3210 thread_file
='vxworks'
3213 tmake_file
=m68k
/t-m68kbare
3214 tm_file
="m68k/m68k-aout.h libgloss.h"
3215 extra_headers
=math-68881.h
3218 tmake_file
=m68k
/t-m68kbare
3219 tm_file
="m68k/m68k-coff.h dbx.h libgloss.h"
3220 extra_headers
=math-68881.h
3227 tm_file
=m68k
/lynx-ng.h
3229 xm_file
=m68k
/xm-lynx.h
3231 tmake_file
=m68k
/t-lynx
3232 extra_headers
=math-68881.h
3235 tm_file
=m68k
/netbsd.h
3236 # On NetBSD, the headers are already okay, except for math.h.
3237 fixincludes
=fixinc.math
3240 m68k-
*-sysv3*) # Motorola m68k's running system V.3
3241 xm_file
="xm-alloca.h ${xm_file}"
3243 xmake_file
=m68k
/x-m68kv
3244 extra_parts
="crtbegin.o crtend.o"
3245 extra_headers
=math-68881.h
3247 m68k-
*-sysv4*) # Motorola m68k's running system V.4
3248 tm_file
=m68k
/m68kv4.h
3249 xm_file
="xm-alloca.h ${xm_file}"
3252 extra_parts
="crtbegin.o crtend.o"
3253 extra_headers
=math-68881.h
3255 m68k-
*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
3258 tm_file
=m68k
/linux-aout.h
3259 tmake_file
="t-linux-aout m68k/t-linux-aout"
3260 fixincludes
=Makefile.
in # The headers are ok already.
3261 extra_headers
=math-68881.h
3264 m68k-
*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
3265 # with ELF format using the
3266 # GNU/Linux C library 5
3268 tm_file
=m68k
/linux.h
3269 tmake_file
="t-linux t-linux-gnulibc1 m68k/t-linux"
3270 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3271 fixincludes
=Makefile.
in # The headers are ok already.
3272 extra_headers
=math-68881.h
3275 m68k-
*-linux-gnu*) # Motorola m68k's running GNU/Linux
3276 # with ELF format using glibc 2
3277 # aka the GNU/Linux C library 6.
3279 tm_file
=m68k
/linux.h
3280 tmake_file
="t-linux m68k/t-linux"
3281 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3282 fixincludes
=Makefile.
in # The headers are ok already.
3283 extra_headers
=math-68881.h
3285 if [ x
$enable_threads = xyes
]; then
3290 tmake_file
=m68k
/t-m68kbare
3291 tm_file
=m68k
/m68k-psos.h
3292 extra_headers
=math-68881.h
3295 tmake_file
="m68k/t-m68kbare t-rtems"
3296 tm_file
=m68k
/rtems.h
3297 extra_headers
=math-68881.h
3303 tm_file
=m88k
/dguxbcs.h
3304 tmake_file
=m88k
/t-dguxbcs
3308 tmake_file
=m88k
/t-dgux
3311 extra_parts
="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
3312 xmake_file
=m88k
/x-dgux
3315 tmake_file
=m88k
/t-dgux-gas
3317 fixincludes
=fixinc.dgux
3319 m88k-dolphin-sysv3
*)
3320 tm_file
=m88k
/dolph.h
3321 extra_parts
="crtbegin.o crtend.o"
3322 xm_file
="m88k/xm-sysv3.h ${xm_file}"
3323 xmake_file
=m88k
/x-dolph
3326 tmake_file
=m88k
/t-m88k-gas
3329 m88k-tektronix-sysv3
)
3330 tm_file
=m88k
/tekXD88.h
3331 extra_parts
="crtbegin.o crtend.o"
3332 xm_file
="m88k/xm-sysv3.h ${xm_file}"
3333 xmake_file
=m88k
/x-tekXD88
3336 tmake_file
=m88k
/t-m88k-gas
3340 tm_file
=m88k
/m88k-aout.h
3343 tm_file
=m88k
/m88k-coff.h
3344 tmake_file
=m88k
/t-bug
3348 extra_parts
="crtbegin.o crtend.o"
3351 tmake_file
=m88k
/t-luna-gas
3353 tmake_file
=m88k
/t-luna
3357 tm_file
=m88k
/sysv3.h
3358 extra_parts
="crtbegin.o crtend.o"
3359 xm_file
="m88k/xm-sysv3.h ${xm_file}"
3360 xmake_file
=m88k
/x-sysv3
3363 tmake_file
=m88k
/t-m88k-gas
3367 tm_file
=m88k
/sysv4.h
3368 extra_parts
="crtbegin.o crtend.o"
3369 xmake_file
=m88k
/x-sysv4
3370 tmake_file
=m88k
/t-sysv4
3372 mips-sgi-irix6
*) # SGI System V.4., IRIX 6
3373 tm_file
=mips
/iris6.h
3374 xm_file
=mips
/xm-iris6.h
3375 fixincludes
=fixinc.irix
3376 xmake_file
=mips
/x-iris6
3377 tmake_file
=mips
/t-iris6
3378 if [ x
$enable_threads = xyes
]; then
3383 tm_file
="mips/elf.h libgloss.h"
3384 tmake_file
=mips
/t-ecoff
3387 extra_parts
="crtbegin.o crtend.o"
3388 # thread_file='vxworks'
3390 mips-sgi-irix5cross64
) # Irix5 host, Irix 6 target, cross64
3391 tm_file
="mips/iris6.h mips/cross64.h"
3392 xm_defines
="USG HAVE_INTTYPES_H"
3393 fixincludes
=Makefile.
in
3394 xmake_file
=mips
/x-iris
3395 tmake_file
=mips
/t-cross64
3396 # See comment in mips/iris[56].h files.
3398 if [ x
$enable_threads = xyes
]; then
3405 if [ x
$stabs = xyes
]
3407 tm_file
=mips
/iris5gdb.h
3409 tm_file
="mips/sni-svr4.h mips/sni-gas.h"
3412 tm_file
=mips
/sni-svr4.h
3415 xmake_file
=mips
/x-sni-svr4
3416 tmake_file
=mips
/t-mips-gas
3417 if [ x
$gnu_ld != xyes
]
3422 mips-sgi-irix5
*) # SGI System V.4., IRIX 5
3425 tm_file
="mips/iris5.h mips/iris5gas.h"
3426 if [ x
$stabs = xyes
]
3428 tm_file
="${tm_file} dbx.h"
3431 tm_file
=mips
/iris5.h
3433 xm_defines
="USG HAVE_INTTYPES_H"
3434 fixincludes
=fixinc.irix
3435 xmake_file
=mips
/x-iris
3436 # mips-tfile doesn't work yet
3437 tmake_file
=mips
/t-mips-gas
3438 # See comment in mips/iris5.h file.
3440 if [ x
$enable_threads = xyes
]; then
3444 mips-sgi-irix4loser
*) # Mostly like a MIPS.
3445 tm_file
="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
3446 if [ x
$stabs = xyes
]; then
3447 tm_file
="${tm_file} dbx.h"
3450 xmake_file
=mips
/x-iris
3453 tmake_file
=mips
/t-mips-gas
3455 extra_passes
="mips-tfile mips-tdump"
3457 if [ x
$gnu_ld != xyes
]
3461 if [ x
$enable_threads = xyes
]; then
3465 mips-sgi-irix4
*) # Mostly like a MIPS.
3466 tm_file
="mips/iris3.h ${tm_file} mips/iris4.h"
3467 if [ x
$stabs = xyes
]; then
3468 tm_file
="${tm_file} dbx.h"
3471 xmake_file
=mips
/x-iris
3474 tmake_file
=mips
/t-mips-gas
3476 extra_passes
="mips-tfile mips-tdump"
3478 if [ x
$gnu_ld != xyes
]
3482 if [ x
$enable_threads = xyes
]; then
3486 mips-sgi-
*) # Mostly like a MIPS.
3487 tm_file
="mips/iris3.h ${tm_file}"
3488 if [ x
$stabs = xyes
]; then
3489 tm_file
="${tm_file} dbx.h"
3492 xmake_file
=mips
/x-iris3
3495 tmake_file
=mips
/t-mips-gas
3497 extra_passes
="mips-tfile mips-tdump"
3499 if [ x
$gnu_ld != xyes
]
3504 mips-dec-osfrose
*) # Decstation running OSF/1 reference port with OSF/rose.
3505 tm_file
="mips/osfrose.h ${tm_file}"
3506 xmake_file
=mips
/x-osfrose
3507 tmake_file
=mips
/t-osfrose
3508 extra_objs
=halfpic.o
3511 mips-dec-osf
*) # Decstation running OSF/1 as shipped by DIGITAL
3512 tm_file
=mips
/dec-osf1.h
3513 if [ x
$stabs = xyes
]; then
3514 tm_file
="${tm_file} dbx.h"
3516 xmake_file
=mips
/x-dec-osf1
3519 tmake_file
=mips
/t-mips-gas
3521 tmake_file
=mips
/t-ultrix
3522 extra_passes
="mips-tfile mips-tdump"
3524 if [ x
$gnu_ld != xyes
]
3529 mips-dec-bsd
*) # Decstation running 4.4 BSD
3530 tm_file
=mips
/dec-bsd.h
3534 tmake_file
=mips
/t-mips-gas
3536 tmake_file
=mips
/t-ultrix
3537 extra_passes
="mips-tfile mips-tdump"
3539 if [ x
$gnu_ld != xyes
]
3544 mips-dec-netbsd
*) # Decstation running NetBSD
3545 tm_file
=mips
/netbsd.h
3546 # On NetBSD, the headers are already okay, except for math.h.
3547 fixincludes
=fixinc.math
3550 mips-sony-bsd
* | mips-sony-newsos
*) # Sony NEWS 3600 or risc/news.
3551 tm_file
="mips/news4.h ${tm_file}"
3552 if [ x
$stabs = xyes
]; then
3553 tm_file
="${tm_file} dbx.h"
3557 tmake_file
=mips
/t-mips-gas
3559 extra_passes
="mips-tfile mips-tdump"
3561 if [ x
$gnu_ld != xyes
]
3565 xmake_file
=mips
/x-sony
3567 mips-sony-sysv
*) # Sony NEWS 3800 with NEWSOS5.0.
3568 # That is based on svr4.
3569 # t-svr4 is not right because this system doesn't use ELF.
3570 tm_file
="mips/news5.h ${tm_file}"
3571 if [ x
$stabs = xyes
]; then
3572 tm_file
="${tm_file} dbx.h"
3574 xm_file
="xm-siglist.h ${xm_file}"
3578 tmake_file
=mips
/t-mips-gas
3580 extra_passes
="mips-tfile mips-tdump"
3582 if [ x
$gnu_ld != xyes
]
3587 mips-tandem-sysv4
*) # Tandem S2 running NonStop UX
3588 tm_file
="mips/svr4-5.h mips/svr4-t.h"
3589 if [ x
$stabs = xyes
]; then
3590 tm_file
="${tm_file} dbx.h"
3592 xm_file
="xm-siglist.h ${xm_file}"
3594 xmake_file
=mips
/x-sysv
3597 tmake_file
=mips
/t-mips-gas
3598 extra_parts
="crtbegin.o crtend.o"
3600 tmake_file
=mips
/t-mips
3601 extra_passes
="mips-tfile mips-tdump"
3603 if [ x
$gnu_ld != xyes
]
3608 mips-
*-ultrix* | mips-dec-mach3
) # Decstation.
3609 tm_file
="mips/ultrix.h ${tm_file}"
3610 if [ x
$stabs = xyes
]; then
3611 tm_file
="${tm_file} dbx.h"
3613 xmake_file
=mips
/x-ultrix
3616 tmake_file
=mips
/t-mips-gas
3618 tmake_file
=mips
/t-ultrix
3619 extra_passes
="mips-tfile mips-tdump"
3621 if [ x
$gnu_ld != xyes
]
3626 mips-
*-riscos[56789]bsd
*)
3627 tm_file
=mips
/bsd-5.h
# MIPS BSD 4.3, RISC-OS 5.0
3628 if [ x
$stabs = xyes
]; then
3629 tm_file
="${tm_file} dbx.h"
3633 tmake_file
=mips
/t-bsd-gas
3635 tmake_file
=mips
/t-bsd
3636 extra_passes
="mips-tfile mips-tdump"
3638 if [ x
$gnu_ld != xyes
]
3643 mips-
*-bsd* | mips-
*-riscosbsd* | mips-
*-riscos[1234]bsd
*)
3644 tm_file
="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
3645 if [ x
$stabs = xyes
]; then
3646 tm_file
="${tm_file} dbx.h"
3650 tmake_file
=mips
/t-bsd-gas
3652 tmake_file
=mips
/t-bsd
3653 extra_passes
="mips-tfile mips-tdump"
3655 if [ x
$gnu_ld != xyes
]
3660 mips-
*-riscos[56789]sysv4
*)
3661 tm_file
=mips
/svr4-5.h
# MIPS System V.4., RISC-OS 5.0
3662 if [ x
$stabs = xyes
]; then
3663 tm_file
="${tm_file} dbx.h"
3665 xm_file
="xm-siglist.h ${xm_file}"
3666 xmake_file
=mips
/x-sysv
3669 tmake_file
=mips
/t-svr4-gas
3671 tmake_file
=mips
/t-svr4
3672 extra_passes
="mips-tfile mips-tdump"
3674 if [ x
$gnu_ld != xyes
]
3679 mips-
*-sysv4* | mips-
*-riscos[1234]sysv4
* | mips-
*-riscossysv4*)
3680 tm_file
="mips/svr4-4.h ${tm_file}"
3681 if [ x
$stabs = xyes
]; then
3682 tm_file
="${tm_file} dbx.h"
3685 xmake_file
=mips
/x-sysv
3688 tmake_file
=mips
/t-svr4-gas
3690 tmake_file
=mips
/t-svr4
3691 extra_passes
="mips-tfile mips-tdump"
3693 if [ x
$gnu_ld != xyes
]
3698 mips-
*-riscos[56789]sysv
*)
3699 tm_file
=mips
/svr3-5.h
# MIPS System V.3, RISC-OS 5.0
3700 if [ x
$stabs = xyes
]; then
3701 tm_file
="${tm_file} dbx.h"
3704 xmake_file
=mips
/x-sysv
3707 tmake_file
=mips
/t-svr3-gas
3709 tmake_file
=mips
/t-svr3
3710 extra_passes
="mips-tfile mips-tdump"
3712 if [ x
$gnu_ld != xyes
]
3717 mips-
*-sysv* | mips-
*-riscos*sysv
*)
3718 tm_file
="mips/svr3-4.h ${tm_file}"
3719 if [ x
$stabs = xyes
]; then
3720 tm_file
="${tm_file} dbx.h"
3723 xmake_file
=mips
/x-sysv
3726 tmake_file
=mips
/t-svr3-gas
3728 tmake_file
=mips
/t-svr3
3729 extra_passes
="mips-tfile mips-tdump"
3731 if [ x
$gnu_ld != xyes
]
3736 mips-
*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
3737 tm_file
=mips
/mips-5.h
3738 if [ x
$stabs = xyes
]; then
3739 tm_file
="${tm_file} dbx.h"
3743 tmake_file
=mips
/t-mips-gas
3745 extra_passes
="mips-tfile mips-tdump"
3747 if [ x
$gnu_ld != xyes
]
3755 tm_file
=mips
/ecoffl.h
3756 if [ x
$stabs = xyes
]; then
3757 tm_file
="${tm_file} dbx.h"
3759 tmake_file
=mips
/t-ecoff
3762 tm_file
="gofast.h mips/ecoff.h"
3763 if [ x
$stabs = xyes
]; then
3764 tm_file
="${tm_file} dbx.h"
3766 tmake_file
=mips
/t-ecoff
3769 tm_file
="mips/elfl.h libgloss.h"
3770 tmake_file
=mips
/t-ecoff
3773 tm_file
="mips/elf.h libgloss.h"
3774 tmake_file
=mips
/t-ecoff
3777 tm_file
="mips/elfl64.h libgloss.h"
3778 tmake_file
=mips
/t-ecoff
3780 mips64orionel-
*-elf*)
3781 tm_file
="mips/elforion.h mips/elfl64.h libgloss.h"
3782 tmake_file
=mips
/t-ecoff
3785 tm_file
="mips/elf64.h libgloss.h"
3786 tmake_file
=mips
/t-ecoff
3789 tm_file
="mips/elforion.h mips/elf64.h libgloss.h"
3790 tmake_file
=mips
/t-ecoff
3792 mips64orion-
*-rtems*)
3793 tm_file
="mips/elforion.h mips/elfl64.h mips/rtems64.h"
3794 tmake_file
="mips/t-ecoff t-rtems"
3797 tm_file
="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
3798 tmake_file
=mips
/t-r3900
3801 tm_file
="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
3802 tmake_file
=mips
/t-r3900
3804 mips-
*-*) # Default MIPS RISC-OS 4.0.
3805 if [ x
$stabs = xyes
]; then
3806 tm_file
="${tm_file} dbx.h"
3810 tmake_file
=mips
/t-mips-gas
3812 extra_passes
="mips-tfile mips-tdump"
3814 if [ x
$gnu_ld != xyes
]
3821 tm_file
="mn10200/mn10200.h"
3822 if [ x
$stabs = xyes
]
3824 tm_file
="${tm_file} dbx.h"
3830 tm_file
="mn10300/mn10300.h"
3831 if [ x
$stabs = xyes
]
3833 tm_file
="${tm_file} dbx.h"
3838 tm_file
=ns32k
/encore.h
3842 tm_file
=ns32k
/sequent.h
3846 tm_file
=ns32k
/tek6100.h
3850 tm_file
=ns32k
/tek6200.h
3853 # This has not been updated to GCC 2.
3856 # xmake_file=ns32k/x-genix
3857 # tm_file=ns32k/genix.h
3861 tm_file
=ns32k
/merlin.h
3865 tm_file
=ns32k
/pc532-mach.h
3869 tm_file
=ns32k
/pc532-min.h
3870 xm_file
="ns32k/xm-pc532-min.h ${xm-file}"
3874 ns32k-pc532-netbsd
*)
3875 tm_file
=ns32k
/netbsd.h
3876 # On NetBSD, the headers are already okay, except for math.h.
3877 fixincludes
=fixinc.math
3881 tm_file
="${tm_file} pdp11/2bsd.h"
3887 xmake_file
=pyr
/x-pyr
3894 xmake_file
=romp
/x-mach
3899 tm_file
=rs6000
/beos.h
3900 xm_file
=rs6000
/xm-beos.h
3901 tmake_file
=rs6000
/t-beos
3902 xmake_file
=rs6000
/x-beos
3904 powerpc-
*-sysv* | powerpc-
*-elf*)
3905 tm_file
=rs6000
/sysv4.h
3906 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
3907 xm_defines
="USG POSIX"
3908 extra_headers
=ppc-asm.h
3911 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
3913 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
3915 xmake_file
=rs6000
/x-sysv4
3918 tm_file
=rs6000
/eabiaix.h
3919 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
3920 fixincludes
=Makefile.
in
3921 extra_headers
=ppc-asm.h
3924 tm_file
=rs6000
/eabisim.h
3925 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
3926 fixincludes
=Makefile.
in
3927 extra_headers
=ppc-asm.h
3930 tm_file
=rs6000
/eabi.h
3933 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
3935 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
3937 fixincludes
=Makefile.
in
3938 extra_headers
=ppc-asm.h
3941 tm_file
=rs6000
/rtems.h
3944 tmake_file
="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
3946 tmake_file
="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
3948 fixincludes
=Makefile.
in
3949 extra_headers
=ppc-asm.h
3951 powerpc-
*-linux-gnulibc1)
3952 tm_file
=rs6000
/linux.h
3953 xm_file
=rs6000
/xm-sysv4.h
3954 out_file
=rs6000
/rs6000.c
3957 tmake_file
="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
3959 tmake_file
="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
3962 fixincludes
=Makefile.
in
3963 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3964 extra_headers
=ppc-asm.h
3965 if [ x
$enable_threads = xyes
]; then
3969 powerpc-
*-linux-gnu*)
3970 tm_file
=rs6000
/linux.h
3971 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
3972 xm_defines
="USG ${xm_defines}"
3973 out_file
=rs6000
/rs6000.c
3976 tmake_file
="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
3978 tmake_file
="rs6000/t-ppc t-linux rs6000/t-ppccomm"
3981 fixincludes
=Makefile.
in
3982 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3983 extra_headers
=ppc-asm.h
3984 if [ x
$enable_threads = xyes
]; then
3988 powerpc-wrs-vxworks
*)
3990 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
3991 xm_defines
="USG POSIX"
3992 tm_file
=rs6000
/vxppc.h
3993 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
3994 extra_headers
=ppc-asm.h
3995 thread_file
='vxworks'
3997 powerpcle-
*-sysv* | powerpcle-
*-elf*)
3998 tm_file
=rs6000
/sysv4le.h
3999 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4000 xm_defines
="USG POSIX"
4003 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
4005 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4007 xmake_file
=rs6000
/x-sysv4
4008 extra_headers
=ppc-asm.h
4010 powerpcle-
*-eabisim*)
4011 tm_file
=rs6000
/eabilesim.h
4012 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4013 fixincludes
=Makefile.
in
4014 extra_headers
=ppc-asm.h
4017 tm_file
=rs6000
/eabile.h
4020 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4022 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4024 fixincludes
=Makefile.
in
4025 extra_headers
=ppc-asm.h
4027 powerpcle-
*-winnt* )
4028 tm_file
=rs6000
/win-nt.h
4029 tmake_file
=rs6000
/t-winnt
4031 fixincludes
=Makefile.
in
4032 if [ x
$enable_threads = xyes
]; then
4035 extra_headers
=ppc-asm.h
4037 powerpcle-
*-pe | powerpcle-
*-cygwin32)
4038 tm_file
=rs6000
/cygwin32.h
4039 xm_file
="rs6000/xm-cygwin32.h ${xm_file}"
4040 xm_defines
=NO_STAB_H
4041 tmake_file
=rs6000
/t-winnt
4042 xmake_file
=rs6000
/x-cygwin32
4044 fixincludes
=Makefile.
in
4045 if [ x
$enable_threads = xyes
]; then
4049 extra_headers
=ppc-asm.h
4051 powerpcle-
*-solaris2*)
4052 tm_file
=rs6000
/sol2.h
4053 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4054 xm_defines
="USG POSIX"
4057 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
4059 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4061 xmake_file
=rs6000
/x-sysv4
4064 fixincludes
=fixinc.svr4
;;
4066 fixincludes
=fixinc.math
;;
4068 extra_headers
=ppc-asm.h
4070 rs6000-ibm-aix3.
[01]*)
4071 tm_file
=rs6000
/aix31.h
4072 xmake_file
=rs6000
/x-aix31
4075 rs6000-ibm-aix3.2.
[456789]* | powerpc-ibm-aix3.2.
[456789]*)
4076 tm_file
=rs6000
/aix3newas.h
4077 if [ x
$host != x
$target ]
4079 tmake_file
=rs6000
/t-xnewas
4081 tmake_file
=rs6000
/t-newas
4085 rs6000-ibm-aix
[456789].
* | powerpc-ibm-aix
[456789].
*)
4086 tm_file
=rs6000
/aix41.h
4087 if [ x
$host != x
$target ]
4089 tmake_file
=rs6000
/t-xnewas
4091 tmake_file
=rs6000
/t-newas
4093 xmake_file
=rs6000
/x-aix31
4103 tm_file
=rs6000
/mach.h
4104 xm_file
="${xm_file} rs6000/xm-mach.h"
4105 xmake_file
=rs6000
/x-mach
4109 tm_file
=rs6000
/lynx.h
4110 xm_file
=rs6000
/xm-lynx.h
4111 tmake_file
=rs6000
/t-rs6000
4112 xmake_file
=rs6000
/x-lynx
4120 tmake_file
="sh/t-sh t-rtems"
4129 xm_file
="xm-alloca.h ${xm_file}"
4132 sparc-wrs-vxworks
* | sparclite-wrs-vxworks
*)
4133 tm_file
=sparc
/vxsparc.h
4134 tmake_file
=sparc
/t-vxsparc
4136 thread_file
='vxworks'
4139 tmake_file
=sparc
/t-sparcbare
4140 tm_file
="sparc/aout.h libgloss.h"
4143 tm_file
=sparc
/netbsd.h
4144 # On NetBSD, the headers are already okay, except for math.h.
4145 fixincludes
=fixinc.math
4153 tmake_file
=sparc
/t-elf
4154 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4158 sparc-
*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
4159 xm_file
="${xm_file} sparc/xm-linux.h"
4160 tm_file
=sparc
/linux-aout.h
4162 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
4165 sparc-
*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
4166 xm_file
="${xm_file} sparc/xm-linux.h"
4168 tm_file
=sparc
/linux.h
4169 tmake_file
="t-linux t-linux-gnulibc1"
4170 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4171 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
4174 sparc-
*-linux-gnu*) # Sparc's running GNU/Linux, libc6
4175 xm_file
="${xm_file} sparc/xm-linux.h"
4177 tm_file
=sparc
/linux.h
4178 tmake_file
="t-linux"
4179 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4180 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
4182 if [ x
$enable_threads = xyes
]; then
4189 tm_file
=sparc
/lynx.h
4191 tm_file
=sparc
/lynx-ng.h
4193 xm_file
=sparc
/xm-lynx.h
4194 tmake_file
=sparc
/t-sunos41
4198 tmake_file
="sparc/t-sparcbare t-rtems"
4199 tm_file
=sparc
/rtems.h
4202 if [ x
$gnu_ld = xyes
]
4204 tm_file
=sparc
/sol2.h
4206 tm_file
=sparc
/sol2-sld.h
4208 xm_file
="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
4209 xm_defines
="USG POSIX"
4210 tmake_file
=sparc
/t-sol2
4211 xmake_file
=sparc
/x-sysv4
4212 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4215 fixincludes
=fixinc.svr4
;;
4217 fixincludes
=fixinc.math
;;
4220 if [ x
${enable_threads} = x
]; then
4221 enable_threads
=$have_pthread_h
4222 if [ x
${enable_threads} = x
]; then
4223 enable_threads
=$have_thread_h
4226 if [ x
${enable_threads} = xyes
]; then
4227 if [ x
${have_pthread_h} = xyes
]; then
4230 thread_file
='solaris'
4235 tm_file
=sparc
/sunos4.h
4236 tmake_file
=sparc
/t-sunos40
4240 tm_file
=sparc
/sunos4.h
4241 tmake_file
=sparc
/t-sunos41
4243 if [ x
$gas = xyes
]; then
4244 tm_file
="${tm_file} sparc/sun4gas.h"
4248 tm_file
=sparc
/sun4o3.h
4252 tm_file
=sparc
/sysv4.h
4253 xm_file
="xm-siglist.h sparc/xm-sysv4.h"
4254 xm_defines
="USG POSIX"
4256 xmake_file
=sparc
/x-sysv4
4257 extra_parts
="crtbegin.o crtend.o"
4260 xm_file
="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
4261 xm_defines
="USG POSIX"
4262 tm_file
=sparc
/vxsim.h
4263 tmake_file
=sparc
/t-vxsparc
4264 xmake_file
=sparc
/x-sysv4
4267 tm_file
="sparc/splet.h libgloss.h"
4268 tmake_file
=sparc
/t-splet
4271 tm_file
="sparc/litecoff.h libgloss.h"
4272 tmake_file
=sparc
/t-sparclite
4275 tm_file
="sparc/lite.h aoutos.h libgloss.h"
4276 tmake_file
=sparc
/t-sparclite
4279 tmake_file
=sparc
/t-sp64
4280 tm_file
=sparc
/sp64-aout.h
4283 tmake_file
=sparc
/t-sp64
4284 tm_file
=sparc
/sp64-elf.h
4285 extra_parts
="crtbegin.o crtend.o"
4287 sparc64-
*-linux*) # 64-bit Sparc's running GNU/Linux
4288 tmake_file
=sparc
/t-sp64
4289 xm_file
="sparc/xm-sp64.h sparc/xm-linux.h"
4290 tm_file
=sparc
/linux64.h
4292 fixincludes
=Makefile.
in # The headers are ok already.
4295 # This hasn't been upgraded to GCC 2.
4296 # tahoe-harris-*) # Harris tahoe, using COFF.
4297 # tm_file=tahoe/harris.h
4299 # tahoe-*-bsd*) # tahoe running BSD
4301 thumb-
*-coff* | thumbel-
*-coff*)
4303 out_file
=arm
/thumb.c
4304 xm_file
=arm
/xm-thumb.h
4305 md_file
=arm
/thumb.md
4306 tmake_file
=arm
/t-thumb
4308 # This hasn't been upgraded to GCC 2.
4315 tm_file
="v850/v850.h"
4316 xm_file
="v850/xm-v850.h"
4317 tmake_file
=v850
/t-v850
4318 if [ x
$stabs = xyes
]
4320 tm_file
="${tm_file} dbx.h"
4324 vax-
*-bsd*) # vaxen running BSD
4328 vax-
*-sysv*) # vaxen running system V
4329 tm_file
="${tm_file} vax/vaxv.h"
4334 tm_file
="${tm_file} netbsd.h vax/netbsd.h"
4335 # On NetBSD, the headers are already okay, except for math.h.
4336 fixincludes
=fixinc.math
4340 vax-
*-ultrix*) # vaxen running ultrix
4341 tm_file
="${tm_file} vax/ultrix.h"
4345 vax-
*-vms*) # vaxen running VMS
4346 xm_file
=vax
/xm-vms.h
4350 vax-
*-*) # vax default entry
4354 xm_file
="${xm_file} xm-svr3"
4358 echo "Configuration $machine not supported" 1>&2
4365 ;; # Existing GNU/Linux systems do not use the GNU setup.
4367 # On the GNU system, the setup is just about the same on
4368 # each different CPU. The specific machines that GNU
4369 # supports are matched above and just set $cpu_type.
4370 xm_file
="xm-gnu.h ${xm_file}"
4371 tm_file
=${cpu_type}/gnu.h
4372 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
4373 # GNU always uses ELF.
4375 # GNU tools are the only tools.
4378 # On GNU, the headers are already okay.
4379 fixincludes
=Makefile.
in
4380 xmake_file
=x-linux
# These details are the same as Linux.
4381 tmake_file
=t-gnu
# These are not.
4384 fixincludes
=fixinc.svr4
4385 xmake_try_sysv
=x-sysv
4386 install_headers_dir
=install-headers-cpio
4389 install_headers_dir
=install-headers-cpio
4393 # Distinguish i[34567]86
4394 # Also, do not run mips-tfile on MIPS if using gas.
4395 # Process --with-cpu= for PowerPC/rs6000
4396 target_cpu_default2
=
4399 target_cpu_default2
=1
4402 target_cpu_default2
=2
4404 i686-
*-* | i786-
*-*)
4405 target_cpu_default2
=3
4410 target_cpu_default2
="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
4413 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
4416 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX"
4419 target_cpu_default2
="MASK_CPU_EV5"
4425 if [ "$target_cpu_default2" = "" ]
4427 target_cpu_default2
="MASK_GAS"
4429 target_cpu_default2
="${target_cpu_default2}|MASK_GAS"
4434 case "x$with_cpu" in
4437 target_cpu_default2
="TARGET_CPU_generic"
4440 # Distinguish cores, and major variants
4441 # arm7m doesn't exist, but D & I don't affect code
4442 xarm23678 | xarm250 | xarm67010 \
4443 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
4444 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
4445 | xstrongarm | xstrongarm110
)
4446 target_cpu_default2
="TARGET_CPU_$with_cpu"
4450 echo "--with-cpu must be passed a value" 1>&2
4455 if [ x
$pass2done = xyes
]
4457 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4464 mips
*-*-ecoff* | mips
*-*-elf*)
4467 if [ x
$gnu_ld = xyes
]
4469 target_cpu_default2
=20
4471 target_cpu_default2
=16
4478 target_cpu_default2
=16
4481 powerpc
*-*-* | rs6000-
*-*)
4482 case "x$with_cpu" in
4486 xcommon | xpower | xpower2 | xpowerpc | xrios \
4487 | xrios1 | xrios2 | xrsc | xrsc1 \
4488 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
4489 | x403 | x505 | x801 | x821 | x823 | x860
)
4490 target_cpu_default2
="\"$with_cpu\""
4494 echo "--with-cpu must be passed a value" 1>&2
4499 if [ x
$pass2done = xyes
]
4501 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4508 case ".$with_cpu" in
4510 target_cpu_default2
=TARGET_CPU_
"`echo $machine | sed 's/-.*$//'`"
4512 .supersparc | .ultrasparc | .v7 | .v8 | .v9
)
4513 target_cpu_default2
="TARGET_CPU_$with_cpu"
4516 if [ x
$pass2done = xyes
]
4518 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4526 if [ "$target_cpu_default2" != "" ]
4528 if [ "$target_cpu_default" != "" ]
4530 target_cpu_default
="(${target_cpu_default}|${target_cpu_default2})"
4532 target_cpu_default
=$target_cpu_default2
4536 # No need for collect2 if we have the GNU linker.
4543 # Save data on machine being used to compile GCC in build_xm_file.
4544 # Save data on host machine in vars host_xm_file and host_xmake_file.
4545 if [ x
$pass1done = x
]
4547 if [ x
"$xm_file" = x
]
4548 then build_xm_file
=$cpu_type/xm-
$cpu_type.h
4549 else build_xm_file
=$xm_file
4551 build_xm_defines
=$xm_defines
4552 build_install_headers_dir
=$install_headers_dir
4553 build_exeext
=$exeext
4556 if [ x
$pass2done = x
]
4558 if [ x
"$xm_file" = x
]
4559 then host_xm_file
=$cpu_type/xm-
$cpu_type.h
4560 else host_xm_file
=$xm_file
4562 host_xm_defines
=$xm_defines
4563 if [ x
"$xmake_file" = x
]
4564 then xmake_file
=$cpu_type/x-
$cpu_type
4566 host_xmake_file
="$xmake_file"
4567 host_truncate_target
=$truncate_target
4568 host_extra_gcc_objs
=$extra_gcc_objs
4569 host_extra_objs
=$extra_host_objs
4576 extra_objs
="${host_extra_objs} ${extra_objs}"
4578 # Default the target-machine variables that were not explicitly set.
4579 if [ x
"$tm_file" = x
]
4580 then tm_file
=$cpu_type/$cpu_type.h
; fi
4582 if [ x
$extra_headers = x
]
4583 then extra_headers
=; fi
4585 if [ x
"$xm_file" = x
]
4586 then xm_file
=$cpu_type/xm-
$cpu_type.h
; fi
4588 if [ x
$md_file = x
]
4589 then md_file
=$cpu_type/$cpu_type.md
; fi
4591 if [ x
$out_file = x
]
4592 then out_file
=$cpu_type/$cpu_type.c
; fi
4594 if [ x
"$tmake_file" = x
]
4595 then tmake_file
=$cpu_type/t-
$cpu_type
4598 if [ x
$float_format = x
]
4599 then float_format
=i64
4602 if [ x
$enable_haifa = x
]
4605 alpha
*-* | hppa1.?
-* | powerpc
*-* | rs6000-
* |
*sparc-
* | m32r
*-*)
4610 # Say what files are being used for the output code and MD file.
4611 echo "Using \`$srcdir/config/$out_file' to output insns."
4612 echo "Using \`$srcdir/config/$md_file' as machine description file."
4615 for f
in $tm_file; do
4618 if [ $count = ax
]; then
4619 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
4621 echo "Using the following target machine macro files:"
4622 for f
in $tm_file; do
4623 echo " $srcdir/config/$f"
4628 for f
in $host_xm_file; do
4631 if [ $count = ax
]; then
4632 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
4634 echo "Using the following host machine macro files:"
4635 for f
in $host_xm_file; do
4636 echo " $srcdir/config/$f"
4640 if [ "$host_xm_file" != "$build_xm_file" ]; then
4642 for f
in $build_xm_file; do
4645 if [ $count = ax
]; then
4646 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
4648 echo "Using the following build machine macro files:"
4649 for f
in $build_xm_file; do
4650 echo " $srcdir/config/$f"
4655 if [ x
$thread_file = x
]; then
4656 if [ x
$target_thread_file != x
]; then
4657 thread_file
=$target_thread_file
4659 thread_file
='single'
4663 # Set up the header files.
4664 # $links is the list of header files to create.
4665 # $vars is the list of shell variables with file names to include.
4666 # auto-host.h is the file containing items generated by autoconf and is
4667 # the first file included by config.h.
4669 host_xm_file
="auto-host.h ${host_xm_file}"
4671 # If host=build, it is correct to have hconfig include auto-host.h
4672 # as well. If host!=build, we are in error and need to do more
4673 # work to find out the build config parameters.
4674 if [ x
$host = x
$build ]
4676 build_xm_file
="auto-host.h ${build_xm_file}"
4678 # We create a subdir, then run autoconf in the subdir.
4679 # To prevent recursion we set host and build for the new
4680 # invocation of configure to the build for this invocation
4687 /*) realsrcdir
=${srcdir};;
4688 *) realsrcdir
=..
/${srcdir};;
4690 CC
=${CC_FOR_BUILD} ${realsrcdir}/configure \
4691 --target=$target --host=$build --build=$build
4693 # We just finished tests for the build machine, so rename
4694 # the file auto-build.h in the gcc directory.
4695 mv auto-host.h ..
/auto-build.h
4698 build_xm_file
="auto-build.h ${build_xm_file}"
4701 vars
="host_xm_file tm_file xm_file build_xm_file"
4702 links
="config.h tm.h tconfig.h hconfig.h"
4703 defines
="host_xm_defines null_defines xm_defines build_xm_defines"
4706 if [ -f config.status
]; then mv -f config.status config.bak
; fi
4709 while [ -n "$vars" ]
4711 set $vars; var
=$1; shift; vars
=$
*
4712 set $links; link
=$1; shift; links
=$
*
4713 set $defines; define
=$1; shift; defines
=$
*
4717 # Define TARGET_CPU_DEFAULT if the system wants one.
4718 # This substitutes for lots of *.h files.
4719 if [ "$target_cpu_default" != "" -a $link = tm.h
]
4721 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
4724 for file in `eval echo '$'$var`; do
4725 echo "#include \"$file\"" >>$link
4728 for def
in `eval echo '$'$define`; do
4729 echo "#ifndef $def" >>$link
4730 echo "#define $def" >>$link
4731 echo "#endif" >>$link
4735 # Truncate the target if necessary
4736 if [ x
$host_truncate_target != x
]; then
4737 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
4740 # Get the version number from the toplevel
4741 version
=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${srcdir}/version.c`
4743 # Get an absolute path to the GCC top-level source directory
4749 # Conditionalize the makefile for this host machine.
4750 # Make-host contains the concatenation of all host makefile fragments
4751 # [there can be more than one]. This file is built by configure.frag.
4752 host_overrides
=Make-host
4753 dep_host_xmake_file
=
4754 for f
in ..
${host_xmake_file}
4756 if [ -f ${srcdir}/config
/$f ]
4758 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
4762 # Conditionalize the makefile for this target machine.
4763 # Make-target contains the concatenation of all host makefile fragments
4764 # [there can be more than one]. This file is built by configure.frag.
4765 target_overrides
=Make-target
4767 for f
in ..
${tmake_file}
4769 if [ -f ${srcdir}/config
/$f ]
4771 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
4775 # If the host doesn't support symlinks, modify CC in
4776 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
4777 # Otherwise, we can use "CC=$(CC)".
4779 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
4781 cc_set_by_configure
="\$(CC)"
4782 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
4785 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
4787 symbolic_link
="cp -p"
4791 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
4792 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
4796 out_object_file
=`basename $out_file .c`.o
4799 for f
in $tm_file; do
4800 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
4804 for f
in $host_xm_file; do
4805 if test $f != "auto-host.h"; then
4806 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
4808 host_xm_file_list
="${host_xm_file_list} auto-host.h"
4813 for f
in $build_xm_file; do
4814 if test $f != "auto-build.h"; then
4815 if test $f != "auto-host.h"; then
4816 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
4818 build_xm_file_list
="${build_xm_file_list} auto-host.h"
4821 build_xm_file_list
="${build_xm_file_list} auto-build.h"
4825 # Define macro CROSS_COMPILE in compilation
4826 # if this is a cross-compiler.
4827 # Also use all.cross instead of all.internal
4828 # and add cross-make to Makefile.
4829 cross_overrides
="/dev/null"
4830 if [ x
$host != x
$target ]
4832 cross_defines
="CROSS=-DCROSS_COMPILE"
4833 cross_overrides
="${topdir}/cross-make"
4836 # When building gcc with a cross-compiler, we need to fix a few things.
4837 # This must come after cross-make as we want all.build to override
4839 build_overrides
="/dev/null"
4840 if [ x
$build != x
$host ]
4842 build_overrides
="${topdir}/build-make"
4845 # Expand extra_headers to include complete path.
4846 # This substitutes for lots of t-* files.
4848 if [ "x$extra_headers" = x
]
4851 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
4852 for file in $extra_headers;
4854 extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/${file}"
4858 # Add a definition of USE_COLLECT2 if system wants one.
4859 # Also tell toplev.c what to do.
4860 # This substitutes for lots of t-* files.
4861 if [ x
$use_collect2 = x
]
4866 will_use_collect2
="collect2"
4867 maybe_use_collect2
="-DUSE_COLLECT2"
4871 # Set MD_DEPS if the real md file is in md.pre-cpp.
4872 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
4873 # for line oriented comments, so we must always use a GNU cpp. If
4874 # building gcc with a cross compiler, use the cross compiler just
4875 # built. Otherwise, we can use the cpp just built.
4877 if [ "x$md_cppflags" = x
]
4879 md_file_sub
=$srcdir/config
/$md_file
4884 # If we have gas in the build tree, make a link to it.
4885 if [ -f ..
/gas
/Makefile
]; then
4886 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
4889 # If we have ld in the build tree, make a link to it.
4890 if [ -f ..
/ld
/Makefile
]; then
4891 # if [[ x$use_collect2 = x ]]; then
4892 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
4894 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
4898 # Figure out what language subdirectories are present.
4900 for lang
in ${srcdir}/*/config-lang.
in ..
4904 # The odd quoting in the next line works around
4905 # an apparent bug in bash 1.12 on linux.
4906 ${srcdir}/[*]/config-lang.
in) ;;
4907 *) subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
4911 # Make gthr-default.h if we have a thread file.
4913 if [ $thread_file != single
]; then
4914 rm -f gthr-default.h
4915 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
4916 gthread_flags
=-DHAVE_GTHR_DEFAULT
4920 # Make empty files to contain the specs and options for each language.
4921 # Then add #include lines to for a compiler that has specs and/or options.
4925 rm -f specs.h options.h
4926 touch specs.h options.h
4927 for subdir
in .
$subdirs
4929 if [ -f $srcdir/$subdir/lang-specs.h
]; then
4930 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
4931 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
4933 if [ -f $srcdir/$subdir/lang-options.h
]; then
4934 echo "#include \"$subdir/lang-options.h\"" >>options.h
4935 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
4939 # These (without "all_") are set in each config-lang.in.
4940 # `language' must be a single word so is spelled singularly.
4946 all_outputs
=Makefile
4947 # List of language makefile fragments.
4952 # Add the language fragments.
4953 # Languages are added via two mechanisms. Some information must be
4954 # recorded in makefile variables, these are defined in config-lang.in.
4955 # We accumulate them and plug them into the main Makefile.
4956 # The other mechanism is a set of hooks for each of the main targets
4957 # like `clean', `install', etc.
4959 language_fragments
="Make-lang"
4960 language_hooks
="Make-hooks"
4963 for s
in ..
$subdirs
4975 .
${srcdir}/$s/config-lang.
in
4976 if [ "x$language" = x
]
4978 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
4981 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
4982 all_languages
="$all_languages $language"
4983 if [ "x$boot_language" = xyes
]
4985 all_boot_languages
="$all_boot_languages $language"
4987 all_compilers
="$all_compilers $compilers"
4988 all_stagestuff
="$all_stagestuff $stagestuff"
4989 all_diff_excludes
="$all_diff_excludes $diff_excludes"
4990 all_headers
="$all_headers $headers"
4991 all_outputs
="$all_outputs $outputs"
4992 if [ x
$outputs = x
]
4994 oldstyle_subdirs
="$oldstyle_subdirs $s"
4996 all_lib2funcs
="$all_lib2funcs $lib2funcs"
5000 # Since we can't use `::' targets, we link each language in
5001 # with a set of hooks, reached indirectly via lang.${target}.
5005 target_list
="all.build all.cross start.encap rest.encap \
5007 install-normal install-common install-info install-man \
5009 mostlyclean clean distclean extraclean maintainer-clean \
5010 stage1 stage2 stage3 stage4"
5011 for t
in $target_list
5014 for l
in ..
$all_languages
5016 if [ $l != ".." ]; then
5020 echo "lang.$t: $x" >> Make-hooks
5023 # If we're not building in srcdir, create .gdbinit.
5025 if [ ! -f Makefile.
in ]; then
5026 echo "dir ." > .gdbinit
5027 echo "dir ${srcdir}" >> .gdbinit
5028 if [ x
$gdb_needs_out_file_path = xyes
]
5030 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
5032 if [ "x$subdirs" != x
]; then
5035 echo "dir ${srcdir}/$s" >> .gdbinit
5038 echo "source ${srcdir}/.gdbinit" >> .gdbinit
5041 # If this is using newlib, then define inhibit_libc in
5042 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
5043 # libgcc.a, but that's OK because newib should have its own version of
5046 if [ x
$with_newlib = xyes
]; then
5047 inhibit_libc
=-Dinhibit_libc
5051 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
5054 if [ x
$enable_haifa = xyes
]; then
5055 echo "Using the Haifa scheduler."
5057 sched_cflags
=-DHAIFA
5061 if [ x
$enable_haifa != x
]; then
5062 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
5063 for x
in genattrtab.o toplev.o loop.o unroll.o
*sched.o
; do
5071 # Process the language and host/target makefile fragments.
5072 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
5074 # Substitute configuration variables
5126 # Echo that links are built
5127 if [ x
$host = x
$target ]
5135 if [ x
$host != x
$build ]
5137 str3
=" on a $build system"
5140 if [ "x$str2" != x
] ||
[ "x$str3" != x
]
5145 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
5147 if [ "x$str2" != x
] ||
[ "x$str3" != x
]
5149 echo " ${str2}${str3}." 1>&2
5152 # Truncate the target if necessary
5153 if [ x
$host_truncate_target != x
]; then
5154 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
5157 # Configure the subdirectories
5158 # AC_CONFIG_SUBDIRS($subdirs)
5160 # Create the Makefile
5161 # and configure language subdirectories
5163 cat > confcache
<<\EOF
5164 # This file is a shell script that caches the results of configure
5165 # tests run on this system so they can be shared between configure
5166 # scripts and configure runs. It is not useful on other systems.
5167 # If it contains results you don't want to keep, you may remove or edit it.
5169 # By default, configure uses ./config.cache as the cache file,
5170 # creating it if it does not exist already. You can give configure
5171 # the --cache-file=FILE option to use a different cache file; that is
5172 # what configure does when it calls configure scripts in
5173 # subdirectories, so they share the cache.
5174 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5175 # config.status only pays attention to the cache file if you give it the
5176 # --recheck option to rerun configure.
5179 # The following way of writing the cache mishandles newlines in values,
5180 # but we know of no workaround that is simple, portable, and efficient.
5181 # So, don't put newlines in cache variables' values.
5182 # Ultrix sh set writes to stderr and can't be redirected directly,
5183 # and sets the high bit in the cache file unless we assign to the vars.
5185 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
5187 # `set' does not quote correctly, so add quotes (double-quote substitution
5188 # turns \\\\ into \\, and sed turns \\ into \).
5190 -e "s/'/'\\\\''/g" \
5191 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5194 # `set' quotes correctly as required by POSIX, so do not add quotes.
5195 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5198 if cmp -s $cache_file confcache
; then
5201 if test -w $cache_file; then
5202 echo "updating cache $cache_file"
5203 cat confcache
> $cache_file
5205 echo "not updating unwritable cache $cache_file"
5210 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5212 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5213 # Let make expand exec_prefix.
5214 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5216 # Any assignment to VPATH causes Sun make to only execute
5217 # the first set of double-colon rules, so remove it if not needed.
5218 # If there is a colon in the path, we need to keep it.
5219 if test "x$srcdir" = x.
; then
5220 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5223 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5225 DEFS
=-DHAVE_CONFIG_H
5227 # Without the "./", some shells look in PATH for config.status.
5228 : ${CONFIG_STATUS=./config.status}
5230 echo creating
$CONFIG_STATUS
5231 rm -f $CONFIG_STATUS
5232 cat > $CONFIG_STATUS <<EOF
5234 # Generated automatically by configure.
5235 # Run this file to recreate the current configuration.
5236 # This directory was configured as follows,
5237 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5239 # $0 $ac_configure_args
5241 # Compiler output produced by configure, useful for debugging
5242 # configure, is in ./config.log if it exists.
5244 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5247 case "\$ac_option" in
5248 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5249 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5250 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5251 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5252 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
5254 -help | --help | --hel | --he | --h)
5255 echo "\$ac_cs_usage"; exit 0 ;;
5256 *) echo "\$ac_cs_usage"; exit 1 ;;
5260 ac_given_srcdir=$srcdir
5262 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5264 cat >> $CONFIG_STATUS <<EOF
5266 # Protect against being on the right side of a sed subst in config.status.
5267 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5268 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5272 s%@CFLAGS@%$CFLAGS%g
5273 s%@CPPFLAGS@%$CPPFLAGS%g
5274 s%@CXXFLAGS@%$CXXFLAGS%g
5276 s%@LDFLAGS@%$LDFLAGS%g
5278 s%@exec_prefix@%$exec_prefix%g
5279 s%@prefix@%$prefix%g
5280 s%@program_transform_name@%$program_transform_name%g
5281 s%@bindir@%$bindir%g
5282 s%@sbindir@%$sbindir%g
5283 s%@libexecdir@%$libexecdir%g
5284 s%@datadir@%$datadir%g
5285 s%@sysconfdir@%$sysconfdir%g
5286 s%@sharedstatedir@%$sharedstatedir%g
5287 s%@localstatedir@%$localstatedir%g
5288 s%@libdir@%$libdir%g
5289 s%@includedir@%$includedir%g
5290 s%@oldincludedir@%$oldincludedir%g
5291 s%@infodir@%$infodir%g
5292 s%@mandir@%$mandir%g
5294 s%@host_alias@%$host_alias%g
5295 s%@host_cpu@%$host_cpu%g
5296 s%@host_vendor@%$host_vendor%g
5297 s%@host_os@%$host_os%g
5298 s%@target@%$target%g
5299 s%@target_alias@%$target_alias%g
5300 s%@target_cpu@%$target_cpu%g
5301 s%@target_vendor@%$target_vendor%g
5302 s%@target_os@%$target_os%g
5304 s%@build_alias@%$build_alias%g
5305 s%@build_cpu@%$build_cpu%g
5306 s%@build_vendor@%$build_vendor%g
5307 s%@build_os@%$build_os%g
5309 s%@SET_MAKE@%$SET_MAKE%g
5312 s%@LEXLIB@%$LEXLIB%g
5315 s%@RANLIB@%$RANLIB%g
5317 s%@INSTALL@%$INSTALL%g
5318 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5319 s%@INSTALL_DATA@%$INSTALL_DATA%g
5321 s%@manext@%$manext%g
5322 s%@objext@%$objext%g
5323 s%@gthread_flags@%$gthread_flags%g
5324 s%@inhibit_libc@%$inhibit_libc%g
5325 s%@sched_prefix@%$sched_prefix%g
5326 s%@sched_cflags@%$sched_cflags%g
5327 s%@subdirs@%$subdirs%g
5328 s%@all_languages@%$all_languages%g
5329 s%@all_boot_languages@%$all_boot_languages%g
5330 s%@all_compilers@%$all_compilers%g
5331 s%@all_lang_makefiles@%$all_lang_makefiles%g
5332 s%@all_stagestuff@%$all_stagestuff%g
5333 s%@all_diff_excludes@%$all_diff_excludes%g
5334 s%@all_lib2funcs@%$all_lib2funcs%g
5335 s%@all_headers@%$all_headers%g
5336 s%@extra_passes@%$extra_passes%g
5337 s%@extra_programs@%$extra_programs%g
5338 s%@extra_parts@%$extra_parts%g
5339 s%@extra_c_objs@%$extra_c_objs%g
5340 s%@extra_c_flags@%$extra_c_flags%g
5341 s%@extra_objs@%$extra_objs%g
5342 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
5343 s%@extra_headers_list@%$extra_headers_list%g
5344 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
5345 s%@dep_tmake_file@%$dep_tmake_file%g
5346 s%@out_file@%$out_file%g
5347 s%@out_object_file@%$out_object_file%g
5348 s%@md_file@%$md_file%g
5349 s%@tm_file_list@%$tm_file_list%g
5350 s%@build_xm_file_list@%$build_xm_file_list%g
5351 s%@host_xm_file_list@%$host_xm_file_list%g
5352 s%@lang_specs_files@%$lang_specs_files%g
5353 s%@lang_options_files@%$lang_options_files%g
5354 s%@thread_file@%$thread_file%g
5355 s%@version@%$version%g
5356 s%@local_prefix@%$local_prefix%g
5357 s%@gxx_include_dir@%$gxx_include_dir%g
5358 s%@fixincludes@%$fixincludes%g
5359 s%@build_install_headers_dir@%$build_install_headers_dir%g
5360 s%@build_exeext@%$build_exeext%g
5361 s%@host_exeext@%$host_exeext%g
5362 s%@float_format@%$float_format%g
5363 s%@will_use_collect2@%$will_use_collect2%g
5364 s%@maybe_use_collect2@%$maybe_use_collect2%g
5365 s%@cc_set_by_configure@%$cc_set_by_configure%g
5366 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
5367 s%@install@%$install%g
5368 s%@symbolic_link@%$symbolic_link%g
5369 /@target_overrides@/r $target_overrides
5370 s%@target_overrides@%%g
5371 /@host_overrides@/r $host_overrides
5372 s%@host_overrides@%%g
5373 s%@cross_defines@%$cross_defines%g
5374 /@cross_overrides@/r $cross_overrides
5375 s%@cross_overrides@%%g
5376 /@build_overrides@/r $build_overrides
5377 s%@build_overrides@%%g
5378 /@language_fragments@/r $language_fragments
5379 s%@language_fragments@%%g
5380 /@language_hooks@/r $language_hooks
5381 s%@language_hooks@%%g
5386 cat >> $CONFIG_STATUS <<\EOF
5388 # Split the substitutions into bite-sized pieces for seds with
5389 # small command number limits, like on Digital OSF/1 and HP-UX.
5390 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5391 ac_file
=1 # Number of current file.
5392 ac_beg
=1 # First line for current file.
5393 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5396 while $ac_more_lines; do
5397 if test $ac_beg -gt 1; then
5398 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5400 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5402 if test ! -s conftest.s
$ac_file; then
5404 rm -f conftest.s
$ac_file
5406 if test -z "$ac_sed_cmds"; then
5407 ac_sed_cmds
="sed -f conftest.s$ac_file"
5409 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5411 ac_file
=`expr $ac_file + 1`
5413 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5416 if test -z "$ac_sed_cmds"; then
5421 cat >> $CONFIG_STATUS <<EOF
5423 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
5425 cat >> $CONFIG_STATUS <<\EOF
5426 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5427 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5429 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5430 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5431 *) ac_file_in
="${ac_file}.in" ;;
5434 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5436 # Remove last slash and all that follows it. Not all systems have dirname.
5437 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5438 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5439 # The file is in a subdirectory.
5440 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5441 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5442 # A "../" for each directory in $ac_dir_suffix.
5443 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5445 ac_dir_suffix
= ac_dots
=
5448 case "$ac_given_srcdir" in
5450 if test -z "$ac_dots"; then top_srcdir
=.
5451 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5452 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5454 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5455 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5459 echo creating
"$ac_file"
5461 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5463 *Makefile
*) ac_comsub
="1i\\
5464 # $configure_input" ;;
5468 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5470 s%@configure_input@%$configure_input%g
5471 s%@srcdir@%$srcdir%g
5472 s%@top_srcdir@%$top_srcdir%g
5473 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5477 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5478 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5480 # ac_d sets the value in "#define NAME VALUE" lines.
5481 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5482 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5485 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5486 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5487 ac_uB
='\([ ]\)%\1#\2define\3'
5490 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5491 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5492 ac_eB
='$%\1#\2define\3'
5496 if test "${CONFIG_HEADERS+set}" != set; then
5498 cat >> $CONFIG_STATUS <<EOF
5499 CONFIG_HEADERS="auto-host.h:config.in"
5501 cat >> $CONFIG_STATUS <<\EOF
5503 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5504 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5506 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5507 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5508 *) ac_file_in
="${ac_file}.in" ;;
5511 echo creating
$ac_file
5513 rm -f conftest.frag conftest.
in conftest.out
5514 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5515 cat $ac_file_inputs > conftest.
in
5519 # Transform confdefs.h into a sed script conftest.vals that substitutes
5520 # the proper values into config.h.in to produce config.h. And first:
5521 # Protect against being on the right side of a sed subst in config.status.
5522 # Protect against being in an unquoted here document in config.status.
5524 cat > conftest.hdr
<<\EOF
5527 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5531 sed -n -f conftest.hdr confdefs.h > conftest.vals
5534 # This sed command replaces #undef with comments. This is necessary, for
5535 # example, in the case of _POSIX_SOURCE, which is predefined and required
5536 # on some systems where configure will not decide to define it.
5537 cat >> conftest.vals <<\EOF
5538 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5541 # Break up conftest.vals because some shells have a limit on
5542 # the size of here documents, and old seds have small limits too.
5547 ac_lines=`grep -c . conftest.vals
`
5548 # grep -c gives empty output for an empty file on some AIX systems.
5549 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5550 # Write a limited-size here document to conftest.frag.
5551 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5552 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5554 sed -f conftest.frag conftest.in > conftest.out
5556 mv conftest.out conftest.in
5558 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5560 mv conftest.tail conftest.vals
5564 cat >> $CONFIG_STATUS <<\EOF
5565 rm -f conftest.frag conftest.h
5566 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5567 cat conftest.in >> conftest.h
5569 if cmp -s $ac_file conftest.h 2>/dev/null; then
5570 echo "$ac_file is unchanged"
5573 # Remove last slash and all that follows it. Not all systems have dirname.
5574 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5575 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5576 # The file is in a subdirectory.
5577 test ! -d "$ac_dir" && mkdir "$ac_dir"
5580 mv conftest.h $ac_file
5585 cat >> $CONFIG_STATUS <<EOF
5590 target_alias='${target_alias}'
5592 subdirs='${subdirs}'
5593 oldstyle_subdirs='${oldstyle_subdirs}'
5594 symbolic_link='${symbolic_link}'
5595 program_transform_set='${program_transform_set}'
5596 program_transform_name='${program_transform_name}'
5597 dep_host_xmake_file='${dep_host_xmake_file}'
5598 host_xmake_file='${host_xmake_file}'
5599 dep_tmake_file='${dep_tmake_file}'
5600 tmake_file='${tmake_file}'
5601 thread_file='${thread_file}'
5602 version='${version}'
5603 local_prefix='${local_prefix}'
5604 build_install_headers_dir='${build_install_headers_dir}'
5605 build_exeext='${build_exeext}'
5606 host_exeext='${host_exeext}'
5607 out_file='${out_file}'
5608 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
5609 SET_MAKE='${SET_MAKE}'
5610 target_list='${target_list}'
5611 target_overrides='${target_overrides}'
5612 host_overrides='${host_overrides}'
5613 cross_defines='${cross_defines}'
5614 cross_overrides='${cross_overrides}'
5615 build_overrides='${build_overrides}'
5618 cat >> $CONFIG_STATUS <<\EOF
5620 . $srcdir/configure.lang
5621 case x$CONFIG_HEADERS in
5622 xauto-host.h:config.in)
5625 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
5626 # bootstrapping and the installation procedure can still use
5627 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
5628 # FLAGS_TO_PASS has been modified to solve the problem there.
5629 # This is virtually a duplicate of what happens in configure.lang; we do
5630 # an extra check to make sure this only happens if ln -s can be used.
5631 if [ "$symbolic_link" = "ln -s" ]; then
5632 for d in .. ${subdirs} ; do
5633 if [ $d != .. ]; then
5636 for t in stage1 stage2 stage3 stage4 include
5639 $symbolic_link ../$t $t 2>/dev/null
5648 chmod +x $CONFIG_STATUS
5649 rm -fr confdefs* $ac_clean_files
5650 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1