3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12.1
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-gnu-ld arrange to work with GNU ld."
17 --with-gnu-as arrange to work with GNU as."
19 --with-stabs arrange to use stabs instead of host debug format."
21 --with-elf arrange to use ELF instead of host debug format."
23 --with-local-prefix=DIR specifies directory to put local include."
25 --with-gxx-include-dir=DIR
26 specifies directory to put g++ header files."
28 --enable-checking enable expensive run-time checks."
30 --enable-c-cpplib Use cpplib for C."
32 --enable-haifa Use the experimental scheduler.
33 --disable-haifa Don't use the experimental scheduler for the
34 targets which normally enable it."
36 --with-fast-fixincludes Use a faster fixinclude program. Experimental"
38 --enable-threads enable thread usage for target GCC.
39 --enable-threads=LIB use LIB thread package for target GCC."
41 # Initialize some variables set by options.
42 # The variables have the same names as the options, with
43 # dashes changed to underlines.
45 cache_file
=.
/config.cache
54 program_transform_name
=s
,x
,x
,
62 bindir
='${exec_prefix}/bin'
63 sbindir
='${exec_prefix}/sbin'
64 libexecdir
='${exec_prefix}/libexec'
65 datadir
='${prefix}/share'
66 sysconfdir
='${prefix}/etc'
67 sharedstatedir
='${prefix}/com'
68 localstatedir
='${prefix}/var'
69 libdir
='${exec_prefix}/lib'
70 includedir
='${prefix}/include'
71 oldincludedir
='/usr/include'
72 infodir
='${prefix}/info'
73 mandir
='${prefix}/man'
75 # Initialize some other variables.
78 SHELL
=${CONFIG_SHELL-/bin/sh}
79 # Maximum number of lines to put in a shell here document.
86 # If the previous option needs an argument, assign it.
87 if test -n "$ac_prev"; then
88 eval "$ac_prev=\$ac_option"
94 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
98 # Accept the important Cygnus configure options, so we can diagnose typos.
102 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
104 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
105 bindir
="$ac_optarg" ;;
107 -build |
--build |
--buil |
--bui |
--bu)
109 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
110 build
="$ac_optarg" ;;
112 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
113 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
114 ac_prev
=cache_file
;;
115 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
116 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
117 cache_file
="$ac_optarg" ;;
119 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
121 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
123 datadir
="$ac_optarg" ;;
125 -disable-* |
--disable-*)
126 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
132 eval "enable_${ac_feature}=no" ;;
134 -enable-* |
--enable-*)
135 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
136 # Reject names that are not valid shell variable names.
137 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
138 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
140 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
145 eval "enable_${ac_feature}='$ac_optarg'" ;;
147 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
148 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
149 |
--exec |
--exe |
--ex)
150 ac_prev
=exec_prefix
;;
151 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
152 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
153 |
--exec=* |
--exe=* |
--ex=*)
154 exec_prefix
="$ac_optarg" ;;
156 -gas |
--gas |
--ga |
--g)
157 # Obsolete; use --with-gas.
160 -help |
--help |
--hel |
--he)
161 # Omit some internal or obsolete options to make the list less imposing.
162 # This message is too long to be a string in the A/UX 3.1 sh.
164 Usage: configure [options] [host]
165 Options: [defaults in brackets after descriptions]
167 --cache-file=FILE cache test results in FILE
168 --help print this message
169 --no-create do not create output files
170 --quiet, --silent do not print \`checking...' messages
171 --version print the version of autoconf that created configure
172 Directory and file names:
173 --prefix=PREFIX install architecture-independent files in PREFIX
175 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
177 --bindir=DIR user executables in DIR [EPREFIX/bin]
178 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
179 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
180 --datadir=DIR read-only architecture-independent data in DIR
182 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
183 --sharedstatedir=DIR modifiable architecture-independent data in DIR
185 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
186 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
187 --includedir=DIR C header files in DIR [PREFIX/include]
188 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
189 --infodir=DIR info documentation in DIR [PREFIX/info]
190 --mandir=DIR man documentation in DIR [PREFIX/man]
191 --srcdir=DIR find the sources in DIR [configure dir or ..]
192 --program-prefix=PREFIX prepend PREFIX to installed program names
193 --program-suffix=SUFFIX append SUFFIX to installed program names
194 --program-transform-name=PROGRAM
195 run sed PROGRAM on installed program names
199 --build=BUILD configure for building on BUILD [BUILD=HOST]
200 --host=HOST configure for HOST [guessed]
201 --target=TARGET configure for TARGET [TARGET=HOST]
202 Features and packages:
203 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
204 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
205 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
206 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
207 --x-includes=DIR X include files are in DIR
208 --x-libraries=DIR X library files are in DIR
210 if test -n "$ac_help"; then
211 echo "--enable and --with options recognized:$ac_help"
215 -host |
--host |
--hos |
--ho)
217 -host=* |
--host=* |
--hos=* |
--ho=*)
220 -includedir |
--includedir |
--includedi |
--included |
--include \
221 |
--includ |
--inclu |
--incl |
--inc)
222 ac_prev
=includedir
;;
223 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
224 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
225 includedir
="$ac_optarg" ;;
227 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
229 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
230 infodir
="$ac_optarg" ;;
232 -libdir |
--libdir |
--libdi |
--libd)
234 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
235 libdir
="$ac_optarg" ;;
237 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
238 |
--libexe |
--libex |
--libe)
239 ac_prev
=libexecdir
;;
240 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
241 |
--libexe=* |
--libex=* |
--libe=*)
242 libexecdir
="$ac_optarg" ;;
244 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
245 |
--localstate |
--localstat |
--localsta |
--localst \
246 |
--locals |
--local |
--loca |
--loc |
--lo)
247 ac_prev
=localstatedir
;;
248 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
249 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
250 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
251 localstatedir
="$ac_optarg" ;;
253 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
255 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
256 mandir
="$ac_optarg" ;;
259 # Obsolete; use --without-fp.
262 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
266 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
267 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
270 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
271 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
272 |
--oldin |
--oldi |
--old |
--ol |
--o)
273 ac_prev
=oldincludedir
;;
274 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
275 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
276 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
277 oldincludedir
="$ac_optarg" ;;
279 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
281 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
282 prefix
="$ac_optarg" ;;
284 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
285 |
--program-pre |
--program-pr |
--program-p)
286 ac_prev
=program_prefix
;;
287 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
288 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
289 program_prefix
="$ac_optarg" ;;
291 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
292 |
--program-suf |
--program-su |
--program-s)
293 ac_prev
=program_suffix
;;
294 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
295 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
296 program_suffix
="$ac_optarg" ;;
298 -program-transform-name |
--program-transform-name \
299 |
--program-transform-nam |
--program-transform-na \
300 |
--program-transform-n |
--program-transform- \
301 |
--program-transform |
--program-transfor \
302 |
--program-transfo |
--program-transf \
303 |
--program-trans |
--program-tran \
304 |
--progr-tra |
--program-tr |
--program-t)
305 ac_prev
=program_transform_name
;;
306 -program-transform-name=* |
--program-transform-name=* \
307 |
--program-transform-nam=* |
--program-transform-na=* \
308 |
--program-transform-n=* |
--program-transform-=* \
309 |
--program-transform=* |
--program-transfor=* \
310 |
--program-transfo=* |
--program-transf=* \
311 |
--program-trans=* |
--program-tran=* \
312 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
313 program_transform_name
="$ac_optarg" ;;
315 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
316 |
-silent |
--silent |
--silen |
--sile |
--sil)
319 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
321 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
323 sbindir
="$ac_optarg" ;;
325 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
326 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
327 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
329 ac_prev
=sharedstatedir
;;
330 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
331 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
332 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
334 sharedstatedir
="$ac_optarg" ;;
336 -site |
--site |
--sit)
338 -site=* |
--site=* |
--sit=*)
341 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
343 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
344 srcdir
="$ac_optarg" ;;
346 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
347 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
348 ac_prev
=sysconfdir
;;
349 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
350 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
351 sysconfdir
="$ac_optarg" ;;
353 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
355 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
356 target
="$ac_optarg" ;;
358 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
361 -version |
--version |
--versio |
--versi |
--vers)
362 echo "configure generated by autoconf version 2.12.1"
366 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
367 # Reject names that are not valid shell variable names.
368 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
369 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
371 ac_package
=`echo $ac_package| sed 's/-/_/g'`
376 eval "with_${ac_package}='$ac_optarg'" ;;
378 -without-* |
--without-*)
379 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
380 # Reject names that are not valid shell variable names.
381 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
382 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
384 ac_package
=`echo $ac_package| sed 's/-/_/g'`
385 eval "with_${ac_package}=no" ;;
388 # Obsolete; use --with-x.
391 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
392 |
--x-incl |
--x-inc |
--x-in |
--x-i)
393 ac_prev
=x_includes
;;
394 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
395 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
396 x_includes
="$ac_optarg" ;;
398 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
399 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
400 ac_prev
=x_libraries
;;
401 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
402 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
403 x_libraries
="$ac_optarg" ;;
405 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
409 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
410 echo "configure: warning: $ac_option: invalid host type" 1>&2
412 if test "x$nonopt" != xNONE
; then
413 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
421 if test -n "$ac_prev"; then
422 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
425 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
427 # File descriptor usage:
430 # 2 errors and warnings
431 # 3 some systems may open it to /dev/tty
432 # 4 used on the Kubota Titan
433 # 6 checking for... messages and results
434 # 5 compiler messages saved in config.log
435 if test "$silent" = yes; then
443 This file contains any messages produced by compilers while
444 running configure, to aid debugging if configure makes a mistake.
447 # Strip out --no-create and --no-recursion so they do not pile up.
448 # Also quote any args containing shell metacharacters.
453 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
454 |
--no-cr |
--no-c) ;;
455 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
456 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
457 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
458 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
459 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
464 # Only set these to C if already set. These must not be set unconditionally
465 # because not all systems understand e.g. LANG=C (notably SCO).
466 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
467 # Non-C LC_CTYPE values break the ctype check.
468 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
469 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
470 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
471 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
473 # confdefs.h avoids OS command line length limits that DEFS can exceed.
474 rm -rf conftest
* confdefs.h
475 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
478 # A filename unique to this package, relative to the directory that
479 # configure is in, which we can look for to find out if srcdir is correct.
480 ac_unique_file
=tree.c
482 # Find the source files, if location was not specified.
483 if test -z "$srcdir"; then
484 ac_srcdir_defaulted
=yes
485 # Try the directory containing this script, then its parent.
487 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
488 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
490 if test ! -r $srcdir/$ac_unique_file; then
494 ac_srcdir_defaulted
=no
496 if test ! -r $srcdir/$ac_unique_file; then
497 if test "$ac_srcdir_defaulted" = yes; then
498 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
500 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
503 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
505 # Prefer explicitly selected file to automatically selected ones.
506 if test -z "$CONFIG_SITE"; then
507 if test "x$prefix" != xNONE
; then
508 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
510 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
513 for ac_site_file
in $CONFIG_SITE; do
514 if test -r "$ac_site_file"; then
515 echo "loading site script $ac_site_file"
520 if test -r "$cache_file"; then
521 echo "loading cache $cache_file"
524 echo "creating cache $cache_file"
529 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
530 ac_cpp
='$CPP $CPPFLAGS'
531 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
532 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
533 cross_compiling
=$ac_cv_prog_cc_cross
535 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
536 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
537 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
544 ac_n
= ac_c
='\c' ac_t
=
552 symbolic_link
='ln -s'
555 # Check for additional parameters
558 # Check whether --with-gnu-ld or --without-gnu-ld was given.
559 if test "${with_gnu_ld+set}" = set; then
560 withval
="$with_gnu_ld"
561 gnu_ld_flag
="$with_gnu_ld"
568 # Check whether --with-gnu-as or --without-gnu-as was given.
569 if test "${with_gnu_as+set}" = set; then
570 withval
="$with_gnu_as"
571 gas_flag
="$with_gnu_as"
578 # Check whether --with-stabs or --without-stabs was given.
579 if test "${with_stabs+set}" = set; then
580 withval
="$with_stabs"
588 # Check whether --with-elf or --without-elf was given.
589 if test "${with_elf+set}" = set; then
597 # Specify the local prefix
598 # Check whether --with-local-prefix or --without-local-prefix was given.
599 if test "${with_local_prefix+set}" = set; then
600 withval
="$with_local_prefix"
601 local_prefix
=$with_local_prefix
603 local_prefix
=/usr
/local
607 # Default local prefix if it is empty
608 if [ x
$local_prefix = x
]; then
609 local_prefix
=/usr
/local
612 # Specify the g++ header file directory
613 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
614 if test "${with_gxx_include_dir+set}" = set; then
615 withval
="$with_gxx_include_dir"
616 gxx_include_dir
=$with_gxx_include_dir
618 if test x
${enable_version_specific_runtime_libs} = xyes
; then
619 gxx_include_dir
='${libsubdir}/include/g++'
620 else gxx_include_dir
='${prefix}/include/g++'; fi
624 # Enable expensive internal checks
625 # Check whether --enable-checking or --disable-checking was given.
626 if test "${enable_checking+set}" = set; then
627 enableval
="$enable_checking"
628 cat >> confdefs.h
<<\EOF
629 #define ENABLE_CHECKING 1
636 # Enable use of cpplib for C.
638 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
639 if test "${enable_c_cpplib+set}" = set; then
640 enableval
="$enable_c_cpplib"
641 if [ x
$enable_c_cpplib != xno
]; then
642 extra_c_objs
="${extra_c_objs} cpplib.o cppexp.o cpphash.o cpperror.o"
643 extra_c_objs
="${extra_c_objs} prefix.o"
644 extra_cxx_objs
="${extra_cxx_objs} ../cpplib.o ../cppexp.o ../cpphash.o ../cpperror.o ../prefix.o"
645 extra_c_flags
=-DUSE_CPPLIB=1
651 # Enable Haifa scheduler.
652 # Check whether --enable-haifa or --disable-haifa was given.
653 if test "${enable_haifa+set}" = set; then
654 enableval
="$enable_haifa"
660 # This is a work in progress...
661 # Check whether --with-fast-fixincludes or --without-fast-fixincludes was given.
662 if test "${with_fast_fixincludes+set}" = set; then
663 withval
="$with_fast_fixincludes"
664 fast_fixinc
="$with_fast_fixincludes"
671 # Pass with no value to take the default
672 # Pass with a value to specify a thread package
673 # Check whether --enable-threads or --disable-threads was given.
674 if test "${enable_threads+set}" = set; then
675 enableval
="$enable_threads"
676 if [ x
$enable_threads = xno
]; then
684 enable_threads_flag
=$enable_threads
685 # Check if a valid thread package
686 case x
${enable_threads_flag} in
689 target_thread_file
='single'
693 target_thread_file
=''
695 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
696 xsolaris | xwin32 | xdce | xvxworks
)
697 target_thread_file
=$enable_threads_flag
700 echo "$enable_threads is an unknown thread package" 1>&2
705 # Determine the host, build, and target systems
707 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
708 if test -f $ac_dir/install-sh
; then
710 ac_install_sh
="$ac_aux_dir/install-sh -c"
712 elif test -f $ac_dir/install.sh
; then
714 ac_install_sh
="$ac_aux_dir/install.sh -c"
718 if test -z "$ac_aux_dir"; then
719 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
721 ac_config_guess
=$ac_aux_dir/config.guess
722 ac_config_sub
=$ac_aux_dir/config.sub
723 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
726 # Do some error checking and defaulting for the host and target type.
728 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
731 # 1. You are not allowed to specify --host, --target, and nonopt at the
733 # 2. Host defaults to nonopt.
734 # 3. If nonopt is not specified, then host defaults to the current host,
735 # as determined by config.guess.
736 # 4. Target and build default to nonopt.
737 # 5. If nonopt is not specified, then target and build default to host.
739 # The aliases save the names the user supplied, while $host etc.
740 # will get canonicalized.
741 case $host---$target---$nonopt in
742 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
743 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
747 # Make sure we can run config.sub.
748 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
749 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
752 echo $ac_n "checking host system type""... $ac_c" 1>&6
753 echo "configure:754: checking host system type" >&5
756 case "$host_alias" in
760 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
761 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
763 *) host_alias
=$nonopt ;;
767 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
768 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
769 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
770 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
771 echo "$ac_t""$host" 1>&6
773 echo $ac_n "checking target system type""... $ac_c" 1>&6
774 echo "configure:775: checking target system type" >&5
777 case "$target_alias" in
780 NONE
) target_alias
=$host_alias ;;
781 *) target_alias
=$nonopt ;;
785 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
786 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
787 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
788 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
789 echo "$ac_t""$target" 1>&6
791 echo $ac_n "checking build system type""... $ac_c" 1>&6
792 echo "configure:793: checking build system type" >&5
795 case "$build_alias" in
798 NONE
) build_alias
=$host_alias ;;
799 *) build_alias
=$nonopt ;;
803 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
804 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
805 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
806 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
807 echo "$ac_t""$build" 1>&6
809 test "$host_alias" != "$target_alias" &&
810 test "$program_prefix$program_suffix$program_transform_name" = \
812 program_prefix
=${target_alias}-
815 # Find the native compiler
816 # Extract the first word of "gcc", so it can be a program name with args.
817 set dummy gcc
; ac_word
=$2
818 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
819 echo "configure:820: checking for $ac_word" >&5
820 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
821 echo $ac_n "(cached) $ac_c" 1>&6
823 if test -n "$CC"; then
824 ac_cv_prog_CC
="$CC" # Let the user override the test.
826 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
827 for ac_dir
in $PATH; do
828 test -z "$ac_dir" && ac_dir
=.
829 if test -f $ac_dir/$ac_word; then
838 if test -n "$CC"; then
839 echo "$ac_t""$CC" 1>&6
841 echo "$ac_t""no" 1>&6
844 if test -z "$CC"; then
845 # Extract the first word of "cc", so it can be a program name with args.
846 set dummy cc
; ac_word
=$2
847 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
848 echo "configure:849: checking for $ac_word" >&5
849 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
850 echo $ac_n "(cached) $ac_c" 1>&6
852 if test -n "$CC"; then
853 ac_cv_prog_CC
="$CC" # Let the user override the test.
855 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
857 for ac_dir
in $PATH; do
858 test -z "$ac_dir" && ac_dir
=.
859 if test -f $ac_dir/$ac_word; then
860 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
869 if test $ac_prog_rejected = yes; then
870 # We found a bogon in the path, so make sure we never use it.
871 set dummy
$ac_cv_prog_CC
873 if test $# -gt 0; then
874 # We chose a different compiler from the bogus one.
875 # However, it has the same basename, so the bogon will be chosen
876 # first if we set CC to just the basename; use the full file name.
878 set dummy
"$ac_dir/$ac_word" "$@"
886 if test -n "$CC"; then
887 echo "$ac_t""$CC" 1>&6
889 echo "$ac_t""no" 1>&6
892 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
895 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
896 echo "configure:897: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
899 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
900 ac_cpp
='$CPP $CPPFLAGS'
901 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
902 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
903 cross_compiling
=$ac_cv_prog_cc_cross
905 cat > conftest.
$ac_ext <<EOF
906 #line 907 "configure"
907 #include "confdefs.h"
910 if { (eval echo configure
:911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
911 ac_cv_prog_cc_works
=yes
912 # If we can't run a trivial program, we are probably using a cross compiler.
913 if (.
/conftest
; exit) 2>/dev
/null
; then
914 ac_cv_prog_cc_cross
=no
916 ac_cv_prog_cc_cross
=yes
919 echo "configure: failed program was:" >&5
920 cat conftest.
$ac_ext >&5
921 ac_cv_prog_cc_works
=no
925 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
926 if test $ac_cv_prog_cc_works = no
; then
927 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
929 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
930 echo "configure:931: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
931 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
932 cross_compiling
=$ac_cv_prog_cc_cross
934 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
935 echo "configure:936: checking whether we are using GNU C" >&5
936 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
937 echo $ac_n "(cached) $ac_c" 1>&6
939 cat > conftest.c
<<EOF
944 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
951 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
953 if test $ac_cv_prog_gcc = yes; then
955 ac_test_CFLAGS
="${CFLAGS+set}"
956 ac_save_CFLAGS
="$CFLAGS"
958 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
959 echo "configure:960: checking whether ${CC-cc} accepts -g" >&5
960 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
961 echo $ac_n "(cached) $ac_c" 1>&6
963 echo 'void f(){}' > conftest.c
964 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
973 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
974 if test "$ac_test_CFLAGS" = set; then
975 CFLAGS
="$ac_save_CFLAGS"
976 elif test $ac_cv_prog_cc_g = yes; then
983 test "${CFLAGS+set}" = set || CFLAGS
="-g"
986 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
987 echo "configure:988: checking whether ${MAKE-make} sets \${MAKE}" >&5
988 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
989 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
990 echo $ac_n "(cached) $ac_c" 1>&6
992 cat > conftestmake
<<\EOF
994 @
echo 'ac_maketemp="${MAKE}"'
996 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
997 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
998 if test -n "$ac_maketemp"; then
999 eval ac_cv_prog_make_
${ac_make}_set
=yes
1001 eval ac_cv_prog_make_
${ac_make}_set
=no
1005 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1006 echo "$ac_t""yes" 1>&6
1009 echo "$ac_t""no" 1>&6
1010 SET_MAKE
="MAKE=${MAKE-make}"
1014 # Find some useful tools
1015 for ac_prog
in mawk gawk nawk
awk
1017 # Extract the first word of "$ac_prog", so it can be a program name with args.
1018 set dummy
$ac_prog; ac_word
=$2
1019 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1020 echo "configure:1021: checking for $ac_word" >&5
1021 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1022 echo $ac_n "(cached) $ac_c" 1>&6
1024 if test -n "$AWK"; then
1025 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1027 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1028 for ac_dir
in $PATH; do
1029 test -z "$ac_dir" && ac_dir
=.
1030 if test -f $ac_dir/$ac_word; then
1031 ac_cv_prog_AWK
="$ac_prog"
1038 AWK
="$ac_cv_prog_AWK"
1039 if test -n "$AWK"; then
1040 echo "$ac_t""$AWK" 1>&6
1042 echo "$ac_t""no" 1>&6
1045 test -n "$AWK" && break
1048 # Extract the first word of "flex", so it can be a program name with args.
1049 set dummy flex
; ac_word
=$2
1050 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1051 echo "configure:1052: checking for $ac_word" >&5
1052 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1053 echo $ac_n "(cached) $ac_c" 1>&6
1055 if test -n "$LEX"; then
1056 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1058 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1059 for ac_dir
in $PATH; do
1060 test -z "$ac_dir" && ac_dir
=.
1061 if test -f $ac_dir/$ac_word; then
1062 ac_cv_prog_LEX
="flex"
1067 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1070 LEX
="$ac_cv_prog_LEX"
1071 if test -n "$LEX"; then
1072 echo "$ac_t""$LEX" 1>&6
1074 echo "$ac_t""no" 1>&6
1077 if test -z "$LEXLIB"
1083 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1084 echo "configure:1085: checking for yywrap in -l$ac_lib" >&5
1085 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1086 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1087 echo $ac_n "(cached) $ac_c" 1>&6
1089 ac_save_LIBS
="$LIBS"
1090 LIBS
="-l$ac_lib $LIBS"
1091 cat > conftest.
$ac_ext <<EOF
1092 #line 1093 "configure"
1093 #include "confdefs.h"
1094 /* Override any gcc2 internal prototype to avoid an error. */
1095 /* We use char because int might match the return type of a gcc2
1096 builtin and then its argument prototype would still apply. */
1103 if { (eval echo configure
:1104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1105 eval "ac_cv_lib_$ac_lib_var=yes"
1107 echo "configure: failed program was:" >&5
1108 cat conftest.
$ac_ext >&5
1110 eval "ac_cv_lib_$ac_lib_var=no"
1113 LIBS
="$ac_save_LIBS"
1116 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1117 echo "$ac_t""yes" 1>&6
1120 echo "$ac_t""no" 1>&6
1125 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1126 echo "configure:1127: checking whether ln works" >&5
1127 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1128 echo $ac_n "(cached) $ac_c" 1>&6
1130 rm -f conftestdata_t
1131 echo >conftestdata_f
1132 if ln conftestdata_f conftestdata_t
2>/dev
/null
1136 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1138 gcc_cv_prog_LN
="ln -s"
1143 rm -f conftestdata_f conftestdata_t
1146 LN
="$gcc_cv_prog_LN"
1147 if test "$gcc_cv_prog_LN" = "ln"; then
1148 echo "$ac_t""yes" 1>&6
1150 if test "$gcc_cv_prog_LN" = "ln -s"; then
1151 echo "$ac_t""no, using ln -s" 1>&6
1153 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1157 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1158 echo "configure:1159: checking whether ln -s works" >&5
1159 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1160 echo $ac_n "(cached) $ac_c" 1>&6
1162 rm -f conftestdata_t
1163 echo >conftestdata_f
1164 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1166 gcc_cv_prog_LN_S
="ln -s"
1168 if ln conftestdata_f conftestdata_t
2>/dev
/null
1175 rm -f conftestdata_f conftestdata_t
1178 LN_S
="$gcc_cv_prog_LN_S"
1179 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1180 echo "$ac_t""yes" 1>&6
1182 if test "$gcc_cv_prog_LN_S" = "ln"; then
1183 echo "$ac_t""no, using ln" 1>&6
1185 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1189 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1190 echo "configure:1191: checking for volatile" >&5
1191 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1192 echo $ac_n "(cached) $ac_c" 1>&6
1194 cat > conftest.
$ac_ext <<EOF
1195 #line 1196 "configure"
1196 #include "confdefs.h"
1202 if { (eval echo configure
:1203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1204 gcc_cv_c_volatile
=yes
1206 echo "configure: failed program was:" >&5
1207 cat conftest.
$ac_ext >&5
1209 gcc_cv_c_volatile
=no
1214 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1215 if test $gcc_cv_c_volatile = yes ; then
1216 cat >> confdefs.h
<<\EOF
1217 #define HAVE_VOLATILE 1
1222 # Extract the first word of "ranlib", so it can be a program name with args.
1223 set dummy ranlib
; ac_word
=$2
1224 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1225 echo "configure:1226: checking for $ac_word" >&5
1226 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1227 echo $ac_n "(cached) $ac_c" 1>&6
1229 if test -n "$RANLIB"; then
1230 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1232 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1233 for ac_dir
in $PATH; do
1234 test -z "$ac_dir" && ac_dir
=.
1235 if test -f $ac_dir/$ac_word; then
1236 ac_cv_prog_RANLIB
="ranlib"
1241 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1244 RANLIB
="$ac_cv_prog_RANLIB"
1245 if test -n "$RANLIB"; then
1246 echo "$ac_t""$RANLIB" 1>&6
1248 echo "$ac_t""no" 1>&6
1251 for ac_prog
in 'bison -y' byacc
1253 # Extract the first word of "$ac_prog", so it can be a program name with args.
1254 set dummy
$ac_prog; ac_word
=$2
1255 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1256 echo "configure:1257: checking for $ac_word" >&5
1257 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1258 echo $ac_n "(cached) $ac_c" 1>&6
1260 if test -n "$YACC"; then
1261 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1263 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1264 for ac_dir
in $PATH; do
1265 test -z "$ac_dir" && ac_dir
=.
1266 if test -f $ac_dir/$ac_word; then
1267 ac_cv_prog_YACC
="$ac_prog"
1274 YACC
="$ac_cv_prog_YACC"
1275 if test -n "$YACC"; then
1276 echo "$ac_t""$YACC" 1>&6
1278 echo "$ac_t""no" 1>&6
1281 test -n "$YACC" && break
1283 test -n "$YACC" || YACC
="yacc"
1285 # Find a good install program. We prefer a C program (faster),
1286 # so one script is as good as another. But avoid the broken or
1287 # incompatible versions:
1288 # SysV /etc/install, /usr/sbin/install
1289 # SunOS /usr/etc/install
1290 # IRIX /sbin/install
1292 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1293 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1294 # ./install, which can be erroneously created by make from ./install.sh.
1295 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1296 echo "configure:1297: checking for a BSD compatible install" >&5
1297 if test -z "$INSTALL"; then
1298 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1299 echo $ac_n "(cached) $ac_c" 1>&6
1301 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1302 for ac_dir
in $PATH; do
1303 # Account for people who put trailing slashes in PATH elements.
1305 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1307 # OSF1 and SCO ODT 3.0 have their own names for install.
1308 for ac_prog
in ginstall scoinst
install; do
1309 if test -f $ac_dir/$ac_prog; then
1310 if test $ac_prog = install &&
1311 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1312 # AIX install. It has an incompatible calling convention.
1313 # OSF/1 installbsd also uses dspmsg, but is usable.
1316 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1327 if test "${ac_cv_path_install+set}" = set; then
1328 INSTALL
="$ac_cv_path_install"
1330 # As a last resort, use the slow shell script. We don't cache a
1331 # path for INSTALL within a source directory, because that will
1332 # break other packages using the cache if that directory is
1333 # removed, or if the path is relative.
1334 INSTALL
="$ac_install_sh"
1337 echo "$ac_t""$INSTALL" 1>&6
1339 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1340 # It thinks the first close brace ends the variable substitution.
1341 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1343 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1346 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1347 echo "configure:1348: checking how to run the C preprocessor" >&5
1348 # On Suns, sometimes $CPP names a directory.
1349 if test -n "$CPP" && test -d "$CPP"; then
1352 if test -z "$CPP"; then
1353 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1354 echo $ac_n "(cached) $ac_c" 1>&6
1356 # This must be in double quotes, not single quotes, because CPP may get
1357 # substituted into the Makefile and "${CC-cc}" will confuse make.
1359 # On the NeXT, cc -E runs the code through the compiler's parser,
1360 # not just through cpp.
1361 cat > conftest.
$ac_ext <<EOF
1362 #line 1363 "configure"
1363 #include "confdefs.h"
1367 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1368 { (eval echo configure
:1369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1369 ac_err
=`grep -v '^ *+' conftest.out`
1370 if test -z "$ac_err"; then
1374 echo "configure: failed program was:" >&5
1375 cat conftest.
$ac_ext >&5
1377 CPP
="${CC-cc} -E -traditional-cpp"
1378 cat > conftest.
$ac_ext <<EOF
1379 #line 1380 "configure"
1380 #include "confdefs.h"
1384 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1385 { (eval echo configure
:1386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1386 ac_err
=`grep -v '^ *+' conftest.out`
1387 if test -z "$ac_err"; then
1391 echo "configure: failed program was:" >&5
1392 cat conftest.
$ac_ext >&5
1399 ac_cv_prog_CPP
="$CPP"
1401 CPP
="$ac_cv_prog_CPP"
1403 ac_cv_prog_CPP
="$CPP"
1405 echo "$ac_t""$CPP" 1>&6
1407 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1408 echo "configure:1409: checking for ANSI C header files" >&5
1409 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1410 echo $ac_n "(cached) $ac_c" 1>&6
1412 cat > conftest.
$ac_ext <<EOF
1413 #line 1414 "configure"
1414 #include "confdefs.h"
1420 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1421 { (eval echo configure
:1422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1422 ac_err
=`grep -v '^ *+' conftest.out`
1423 if test -z "$ac_err"; then
1425 ac_cv_header_stdc
=yes
1428 echo "configure: failed program was:" >&5
1429 cat conftest.
$ac_ext >&5
1431 ac_cv_header_stdc
=no
1435 if test $ac_cv_header_stdc = yes; then
1436 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1437 cat > conftest.
$ac_ext <<EOF
1438 #line 1439 "configure"
1439 #include "confdefs.h"
1442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1443 egrep "memchr" >/dev
/null
2>&1; then
1447 ac_cv_header_stdc
=no
1453 if test $ac_cv_header_stdc = yes; then
1454 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1455 cat > conftest.
$ac_ext <<EOF
1456 #line 1457 "configure"
1457 #include "confdefs.h"
1460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1461 egrep "free" >/dev
/null
2>&1; then
1465 ac_cv_header_stdc
=no
1471 if test $ac_cv_header_stdc = yes; then
1472 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1473 if test "$cross_compiling" = yes; then
1476 cat > conftest.
$ac_ext <<EOF
1477 #line 1478 "configure"
1478 #include "confdefs.h"
1480 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1481 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1482 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1483 int main () { int i; for (i = 0; i < 256; i++)
1484 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1488 if { (eval echo configure
:1489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1492 echo "configure: failed program was:" >&5
1493 cat conftest.
$ac_ext >&5
1495 ac_cv_header_stdc
=no
1503 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1504 if test $ac_cv_header_stdc = yes; then
1505 cat >> confdefs.h
<<\EOF
1506 #define STDC_HEADERS 1
1511 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1512 echo "configure:1513: checking whether time.h and sys/time.h may both be included" >&5
1513 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1514 echo $ac_n "(cached) $ac_c" 1>&6
1516 cat > conftest.
$ac_ext <<EOF
1517 #line 1518 "configure"
1518 #include "confdefs.h"
1519 #include <sys/types.h>
1520 #include <sys/time.h>
1526 if { (eval echo configure
:1527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1528 ac_cv_header_time
=yes
1530 echo "configure: failed program was:" >&5
1531 cat conftest.
$ac_ext >&5
1533 ac_cv_header_time
=no
1538 echo "$ac_t""$ac_cv_header_time" 1>&6
1539 if test $ac_cv_header_time = yes; then
1540 cat >> confdefs.h
<<\EOF
1541 #define TIME_WITH_SYS_TIME 1
1546 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h fcntl.h unistd.h stab.h sys
/file.h sys
/time.h sys
/resource.h sys
/param.h sys
/times.h
wait.h sys
/wait.h
1548 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1549 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1550 echo "configure:1551: checking for $ac_hdr" >&5
1551 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1552 echo $ac_n "(cached) $ac_c" 1>&6
1554 cat > conftest.
$ac_ext <<EOF
1555 #line 1556 "configure"
1556 #include "confdefs.h"
1559 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1560 { (eval echo configure
:1561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1561 ac_err
=`grep -v '^ *+' conftest.out`
1562 if test -z "$ac_err"; then
1564 eval "ac_cv_header_$ac_safe=yes"
1567 echo "configure: failed program was:" >&5
1568 cat conftest.
$ac_ext >&5
1570 eval "ac_cv_header_$ac_safe=no"
1574 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1575 echo "$ac_t""yes" 1>&6
1576 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1577 cat >> confdefs.h
<<EOF
1578 #define $ac_tr_hdr 1
1582 echo "$ac_t""no" 1>&6
1587 # Check for thread headers.
1588 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
1589 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
1590 echo "configure:1591: checking for thread.h" >&5
1591 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1592 echo $ac_n "(cached) $ac_c" 1>&6
1594 cat > conftest.
$ac_ext <<EOF
1595 #line 1596 "configure"
1596 #include "confdefs.h"
1599 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1600 { (eval echo configure
:1601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1601 ac_err
=`grep -v '^ *+' conftest.out`
1602 if test -z "$ac_err"; then
1604 eval "ac_cv_header_$ac_safe=yes"
1607 echo "configure: failed program was:" >&5
1608 cat conftest.
$ac_ext >&5
1610 eval "ac_cv_header_$ac_safe=no"
1614 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1615 echo "$ac_t""yes" 1>&6
1618 echo "$ac_t""no" 1>&6
1622 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
1623 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
1624 echo "configure:1625: checking for pthread.h" >&5
1625 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1626 echo $ac_n "(cached) $ac_c" 1>&6
1628 cat > conftest.
$ac_ext <<EOF
1629 #line 1630 "configure"
1630 #include "confdefs.h"
1631 #include <pthread.h>
1633 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1634 { (eval echo configure
:1635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1635 ac_err
=`grep -v '^ *+' conftest.out`
1636 if test -z "$ac_err"; then
1638 eval "ac_cv_header_$ac_safe=yes"
1641 echo "configure: failed program was:" >&5
1642 cat conftest.
$ac_ext >&5
1644 eval "ac_cv_header_$ac_safe=no"
1648 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1649 echo "$ac_t""yes" 1>&6
1652 echo "$ac_t""no" 1>&6
1657 # See if the system preprocessor understands the ANSI C preprocessor
1658 # stringification operator.
1659 echo $ac_n "checking whether cpp understands the stringify operator""... $ac_c" 1>&6
1660 echo "configure:1661: checking whether cpp understands the stringify operator" >&5
1661 if eval "test \"`echo '$''{'gcc_cv_c_have_stringify'+set}'`\" = set"; then
1662 echo $ac_n "(cached) $ac_c" 1>&6
1664 cat > conftest.
$ac_ext <<EOF
1665 #line 1666 "configure"
1666 #include "confdefs.h"
1670 char *test = S(foo);
1673 if { (eval echo configure
:1674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1675 gcc_cv_c_have_stringify
=yes
1677 echo "configure: failed program was:" >&5
1678 cat conftest.
$ac_ext >&5
1680 gcc_cv_c_have_stringify
=no
1685 echo "$ac_t""$gcc_cv_c_have_stringify" 1>&6
1686 if test $gcc_cv_c_have_stringify = yes; then
1687 cat >> confdefs.h
<<\EOF
1688 #define HAVE_CPP_STRINGIFY 1
1693 # Use <inttypes.h> only if it exists,
1694 # doesn't clash with <sys/types.h>, and declares intmax_t.
1695 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
1696 echo "configure:1697: checking for inttypes.h" >&5
1697 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
1698 echo $ac_n "(cached) $ac_c" 1>&6
1700 cat > conftest.
$ac_ext <<EOF
1701 #line 1702 "configure"
1702 #include "confdefs.h"
1703 #include <sys/types.h>
1704 #include <inttypes.h>
1709 if { (eval echo configure
:1710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1711 cat >> confdefs.h
<<EOF
1712 #define HAVE_INTTYPES_H 1
1715 gcc_cv_header_inttypes_h
=yes
1717 echo "configure: failed program was:" >&5
1718 cat conftest.
$ac_ext >&5
1720 gcc_cv_header_inttypes_h
=no
1725 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
1727 for ac_func
in strtoul bsearch strerror putenv popen bcopy bzero bcmp \
1728 index rindex strchr strrchr
kill getrlimit setrlimit atoll atoq \
1729 sysconf isascii gettimeofday
1731 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1732 echo "configure:1733: checking for $ac_func" >&5
1733 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1734 echo $ac_n "(cached) $ac_c" 1>&6
1736 cat > conftest.
$ac_ext <<EOF
1737 #line 1738 "configure"
1738 #include "confdefs.h"
1739 /* System header to define __stub macros and hopefully few prototypes,
1740 which can conflict with char $ac_func(); below. */
1742 /* Override any gcc2 internal prototype to avoid an error. */
1743 /* We use char because int might match the return type of a gcc2
1744 builtin and then its argument prototype would still apply. */
1749 /* The GNU C library defines this for functions which it implements
1750 to always fail with ENOSYS. Some functions are actually named
1751 something starting with __ and the normal name is an alias. */
1752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1760 if { (eval echo configure
:1761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1762 eval "ac_cv_func_$ac_func=yes"
1764 echo "configure: failed program was:" >&5
1765 cat conftest.
$ac_ext >&5
1767 eval "ac_cv_func_$ac_func=no"
1772 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1773 echo "$ac_t""yes" 1>&6
1774 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1775 cat >> confdefs.h
<<EOF
1776 #define $ac_tr_func 1
1780 echo "$ac_t""no" 1>&6
1785 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1786 echo "configure:1787: checking for vprintf" >&5
1787 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1788 echo $ac_n "(cached) $ac_c" 1>&6
1790 cat > conftest.
$ac_ext <<EOF
1791 #line 1792 "configure"
1792 #include "confdefs.h"
1793 /* System header to define __stub macros and hopefully few prototypes,
1794 which can conflict with char vprintf(); below. */
1796 /* Override any gcc2 internal prototype to avoid an error. */
1797 /* We use char because int might match the return type of a gcc2
1798 builtin and then its argument prototype would still apply. */
1803 /* The GNU C library defines this for functions which it implements
1804 to always fail with ENOSYS. Some functions are actually named
1805 something starting with __ and the normal name is an alias. */
1806 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1814 if { (eval echo configure
:1815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1816 eval "ac_cv_func_vprintf=yes"
1818 echo "configure: failed program was:" >&5
1819 cat conftest.
$ac_ext >&5
1821 eval "ac_cv_func_vprintf=no"
1826 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1827 echo "$ac_t""yes" 1>&6
1828 cat >> confdefs.h
<<\EOF
1829 #define HAVE_VPRINTF 1
1833 echo "$ac_t""no" 1>&6
1836 if test "$ac_cv_func_vprintf" != yes; then
1837 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1838 echo "configure:1839: checking for _doprnt" >&5
1839 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1840 echo $ac_n "(cached) $ac_c" 1>&6
1842 cat > conftest.
$ac_ext <<EOF
1843 #line 1844 "configure"
1844 #include "confdefs.h"
1845 /* System header to define __stub macros and hopefully few prototypes,
1846 which can conflict with char _doprnt(); below. */
1848 /* Override any gcc2 internal prototype to avoid an error. */
1849 /* We use char because int might match the return type of a gcc2
1850 builtin and then its argument prototype would still apply. */
1855 /* The GNU C library defines this for functions which it implements
1856 to always fail with ENOSYS. Some functions are actually named
1857 something starting with __ and the normal name is an alias. */
1858 #if defined (__stub__doprnt) || defined (__stub____doprnt)
1866 if { (eval echo configure
:1867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1868 eval "ac_cv_func__doprnt=yes"
1870 echo "configure: failed program was:" >&5
1871 cat conftest.
$ac_ext >&5
1873 eval "ac_cv_func__doprnt=no"
1878 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1879 echo "$ac_t""yes" 1>&6
1880 cat >> confdefs.h
<<\EOF
1881 #define HAVE_DOPRNT 1
1885 echo "$ac_t""no" 1>&6
1892 if test $ac_cv_func_vprintf != yes ; then
1894 if test $ac_cv_func__doprnt != yes ; then
1901 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
1902 echo "configure:1903: checking whether the printf functions support %p" >&5
1903 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
1904 echo $ac_n "(cached) $ac_c" 1>&6
1906 if test "$cross_compiling" = yes; then
1907 gcc_cv_func_printf_ptr
=no
1909 cat > conftest.
$ac_ext <<EOF
1910 #line 1911 "configure"
1911 #include "confdefs.h"
1917 char *p = buf, *q = NULL;
1918 sprintf(buf, "%p", p);
1919 sscanf(buf, "%p", &q);
1923 if { (eval echo configure
:1924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1925 gcc_cv_func_printf_ptr
=yes
1927 echo "configure: failed program was:" >&5
1928 cat conftest.
$ac_ext >&5
1930 gcc_cv_func_printf_ptr
=no
1935 rm -f core core.
* *.core
1938 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
1939 if test $gcc_cv_func_printf_ptr = yes ; then
1940 cat >> confdefs.h
<<\EOF
1941 #define HAVE_PRINTF_PTR 1
1947 for ac_func
in malloc realloc calloc free bcopy bzero bcmp \
1948 index rindex getenv atol sbrk abort atof strerror getcwd getwd
1950 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
1951 echo "configure:1952: checking whether $ac_func must be declared" >&5
1952 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
1953 echo $ac_n "(cached) $ac_c" 1>&6
1955 cat > conftest.
$ac_ext <<EOF
1956 #line 1957 "configure"
1957 #include "confdefs.h"
1960 #ifdef HAVE_STRING_H
1963 #ifdef HAVE_STRINGS_H
1964 #include <strings.h>
1967 #ifdef HAVE_STDLIB_H
1970 #ifdef HAVE_UNISTD_H
1974 #define rindex strrchr
1977 #define index strchr
1981 char *(*pfn) = (char *(*)) $ac_func
1984 if { (eval echo configure
:1985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1986 eval "gcc_cv_decl_needed_$ac_func=no"
1988 echo "configure: failed program was:" >&5
1989 cat conftest.
$ac_ext >&5
1991 eval "gcc_cv_decl_needed_$ac_func=yes"
1996 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
1997 echo "$ac_t""yes" 1>&6
1998 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1999 cat >> confdefs.h
<<EOF
2000 #define $gcc_tr_decl 1
2004 echo "$ac_t""no" 1>&6
2010 for ac_func
in getrlimit setrlimit
2012 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2013 echo "configure:2014: checking whether $ac_func must be declared" >&5
2014 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2015 echo $ac_n "(cached) $ac_c" 1>&6
2017 cat > conftest.
$ac_ext <<EOF
2018 #line 2019 "configure"
2019 #include "confdefs.h"
2022 #ifdef HAVE_STRING_H
2025 #ifdef HAVE_STRINGS_H
2026 #include <strings.h>
2029 #ifdef HAVE_STDLIB_H
2032 #ifdef HAVE_UNISTD_H
2036 #define rindex strrchr
2039 #define index strchr
2041 #include <sys/types.h>
2042 #ifdef HAVE_SYS_RESOURCE_H
2043 #include <sys/resource.h>
2047 char *(*pfn) = (char *(*)) $ac_func
2050 if { (eval echo configure
:2051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2052 eval "gcc_cv_decl_needed_$ac_func=no"
2054 echo "configure: failed program was:" >&5
2055 cat conftest.
$ac_ext >&5
2057 eval "gcc_cv_decl_needed_$ac_func=yes"
2062 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2063 echo "$ac_t""yes" 1>&6
2064 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2065 cat >> confdefs.h
<<EOF
2066 #define $gcc_tr_decl 1
2070 echo "$ac_t""no" 1>&6
2076 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2077 echo "configure:2078: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2078 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2079 echo $ac_n "(cached) $ac_c" 1>&6
2081 cat > conftest.
$ac_ext <<EOF
2082 #line 2083 "configure"
2083 #include "confdefs.h"
2084 #include <sys/types.h>
2086 /* NetBSD declares sys_siglist in unistd.h. */
2087 #ifdef HAVE_UNISTD_H
2091 char *msg = *(sys_siglist + 1);
2094 if { (eval echo configure
:2095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2096 ac_cv_decl_sys_siglist
=yes
2098 echo "configure: failed program was:" >&5
2099 cat conftest.
$ac_ext >&5
2101 ac_cv_decl_sys_siglist
=no
2106 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2107 if test $ac_cv_decl_sys_siglist = yes; then
2108 cat >> confdefs.h
<<\EOF
2109 #define SYS_SIGLIST_DECLARED 1
2123 build_install_headers_dir
=install-headers-tar
2128 host_truncate_target
=
2131 # Decode the host machine, then the target machine.
2132 # For the host machine, we save the xm_file variable as host_xm_file;
2133 # then we decode the target machine and forget everything else
2134 # that came from the host machine.
2135 for machine
in $build $host $target; do
2149 # Set this to force installation and use of collect2.
2151 # Set this to override the default target model.
2153 # Set this to control which fixincludes program to use.
2154 if [ x
$fast_fixinc != xyes
] ; then
2155 fixincludes
=fixincludes
2156 else fixincludes
=fixinc.sh
; fi
2157 # Set this to control how the header file directory is installed.
2158 install_headers_dir
=install-headers-tar
2159 # Set this to a non-empty list of args to pass to cpp if the target
2160 # wants its .md file passed through cpp.
2162 # Set this if directory names should be truncated to 14 characters.
2164 # Set this if gdb needs a dir command with `dirname $out_file`
2165 gdb_needs_out_file_path
=
2166 # Set this if the build machine requires executables to have a
2169 # Set this to control which thread package will be used.
2171 # Reinitialize these from the flag values every loop pass, since some
2172 # configure entries modify them.
2174 gnu_ld
="$gnu_ld_flag"
2175 enable_threads
=$enable_threads_flag
2177 # Set default cpu_type, tm_file and xm_file so it can be updated in
2178 # each machine entry.
2179 cpu_type
=`echo $machine | sed 's/-.*$//'`
2213 tm_file
=${cpu_type}/${cpu_type}.h
2214 xm_file
=${cpu_type}/xm-
${cpu_type}.h
2216 # Set the default macros to define for GNU/Linux systems.
2219 xm_defines
="HAVE_ATEXIT POSIX BSTRING"
2224 # Support site-specific machine types.
2226 cpu_type
=`echo $machine | sed -e 's/-.*//'`
2227 rest
=`echo $machine | sed -e "s/$cpu_type-//"`
2228 xm_file
=${cpu_type}/xm-
$rest.h
2229 tm_file
=${cpu_type}/$rest.h
2230 if [ -f $srcdir/config
/${cpu_type}/x-
$rest ] ; \
2231 then xmake_file
=${cpu_type}/x-
$rest; \
2234 if [ -f $srcdir/config
/${cpu_type}/t-
$rest ] ; \
2235 then tmake_file
=${cpu_type}/t-
$rest; \
2241 a29k-
*-bsd* | a29k-
*-sym1*)
2242 tm_file
="${tm_file} a29k/unix.h"
2244 xmake_file
=a29k
/x-unix
2247 a29k-
*-udi | a29k-
*-coff)
2248 tm_file
="${tm_file} dbxcoff.h a29k/udi.h"
2249 tmake_file
=a29k
/t-a29kbare
2252 tm_file
="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
2253 tmake_file
=a29k
/t-vx29k
2254 extra_parts
="crtbegin.o crtend.o"
2255 thread_file
='vxworks'
2257 a29k-
*-*) # Default a29k environment.
2260 alpha
*-*-linux-gnuecoff*)
2261 tm_file
="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
2262 target_cpu_default
="MASK_GAS"
2267 alpha
*-*-linux-gnulibc1*)
2268 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
2269 target_cpu_default
="MASK_GAS"
2270 tmake_file
="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
2271 extra_parts
="crtbegin.o crtend.o"
2272 fixincludes
=fixinc.wrap
2275 if [ x
$enable_threads = xyes
]; then
2279 alpha
*-*-linux-gnu*)
2280 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
2281 target_cpu_default
="MASK_GAS"
2282 tmake_file
="t-linux alpha/t-linux alpha/t-crtbe"
2283 extra_parts
="crtbegin.o crtend.o"
2285 fixincludes
=Makefile.
in
2287 if [ x
$enable_threads = xyes
]; then
2292 tm_file
="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsdl-elf.h"
2293 target_cpu_default
="MASK_GAS"
2294 tmake_file
="alpha/t-crtbe"
2295 extra_parts
="crtbegin.o crtend.o"
2297 fixincludes
=fixinc.wrap
2302 if [ x
$stabs = xyes
]
2304 tm_file
="${tm_file} dbx.h"
2306 if [ x
$gas != xyes
]
2308 extra_passes
="mips-tfile mips-tdump"
2313 tm_file
="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
2316 tm_file
="${tm_file} alpha/osf.h alpha/osf2or3.h"
2319 tm_file
="${tm_file} alpha/osf.h"
2320 # Some versions of OSF4 (specifically X4.0-9 296.7) have
2321 # a broken tar, so we use cpio instead.
2322 install_headers_dir
=install-headers-cpio
2326 *-*-osf4.0
[b-z
] |
*-*-osf4.
[1-9]*)
2327 target_cpu_default
=MASK_SUPPORT_ARCH
2332 tm_file
="${tm_file} dbx.h alpha/vxworks.h"
2335 extra_passes
="mips-tfile mips-tdump"
2340 tm_file
="${tm_file} alpha/win-nt.h"
2341 xm_file
="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
2342 tmake_file
=t-libc-ok
2343 xmake_file
=winnt
/x-winnt
2344 extra_host_objs
=oldnames.o
2345 extra_gcc_objs
="spawnv.o oldnames.o"
2346 fixincludes
=fixinc.winnt
2347 if [ x
$gnu_ld != xyes
]
2349 extra_programs
=ld.exe
2351 if [ x
$enable_threads = xyes
]; then
2357 xm_file
="${xm_file} alpha/xm-vms.h"
2358 tmake_file
=alpha
/t-vms
2359 fixincludes
=Makefile.
in
2362 extra_parts
="crtinit.o crtfini.o"
2364 arm-
*-coff* | armel-
*-coff*)
2366 tmake_file
=arm
/t-bare
2368 arm-
*-riscix1.
[01]*) # Acorn RISC machine (early versions)
2369 tm_file
=arm
/riscix1-1.h
2372 arm-
*-riscix*) # Acorn RISC machine
2375 tm_file
=arm
/rix-gas.h
2377 tm_file
=arm
/riscix.h
2379 xmake_file
=arm
/x-riscix
2380 tmake_file
=arm
/t-riscix
2383 arm-semi-aout | armel-semi-aout
)
2385 tmake_file
=arm
/t-semi
2386 fixincludes
=Makefile.
in # There is nothing to fix
2388 arm-semi-aof | armel-semi-aof
)
2389 tm_file
=arm
/semiaof.h
2390 tmake_file
=arm
/t-semiaof
2391 fixincludes
=Makefile.
in # There is nothing to fix
2394 tm_file
=arm
/netbsd.h
2395 xm_file
="xm-siglist.h ${xm_file}"
2396 tmake_file
="t-netbsd arm/t-netbsd"
2397 # On NetBSD, the headers are already okay, except for math.h.
2398 fixincludes
=fixinc.wrap
2400 arm-
*-linux-gnuaout*) # ARM GNU/Linux
2403 tm_file
=arm
/linux-gas.h
2404 tmake_file
=arm
/t-linux
2405 fixincludes
=Makefile.
in
2410 tmake_file
=arm
/t-bare
2412 c1-convex-
*) # Convex C1
2413 target_cpu_default
=1
2415 fixincludes
=Makefile.
in
2417 c2-convex-
*) # Convex C2
2418 target_cpu_default
=2
2420 fixincludes
=Makefile.
in
2423 target_cpu_default
=4
2425 fixincludes
=Makefile.
in
2428 target_cpu_default
=8
2430 fixincludes
=Makefile.
in
2433 target_cpu_default
=16
2435 fixincludes
=Makefile.
in
2437 clipper-intergraph-clix
*)
2438 tm_file
="${tm_file} svr3.h clipper/clix.h"
2439 xm_file
=clipper
/xm-clix.h
2440 xmake_file
=clipper
/x-clix
2441 extra_headers
=va-clipper.h
2442 extra_parts
="crtbegin.o crtend.o"
2443 install_headers_dir
=install-headers-cpio
2450 # This hasn't been upgraded to GCC 2.
2451 # fx80-alliant-*) # Alliant FX/80
2457 tm_file
="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
2458 xm_file
=pa
/xm-papro.h
2462 target_cpu_default
=1
2463 tm_file
="${tm_file} pa/pa-osf.h"
2465 fixincludes
=Makefile.
in
2468 tm_file
="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
2469 xm_file
=pa
/xm-papro.h
2473 tm_file
="${tm_file} pa/pa-osf.h"
2475 fixincludes
=Makefile.
in
2478 target_cpu_default
=1
2480 fixincludes
=Makefile.
in
2484 fixincludes
=Makefile.
in
2487 tm_file
="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
2488 xm_file
=pa
/xm-pahpux.h
2489 xmake_file
=pa
/x-pa-hpux
2492 tm_file
="${tm_file} pa/gas.h"
2494 install_headers_dir
=install-headers-cpio
2497 hppa1.0
-*-hpux8.0
[0-2]*)
2498 tm_file
="${tm_file} pa/pa-hpux.h"
2499 xm_file
=pa
/xm-pahpux.h
2500 xmake_file
=pa
/x-pa-hpux
2503 tm_file
="${tm_file} pa/pa-gas.h"
2505 tm_file
="pa/pa-oldas.h ${tm_file}"
2507 install_headers_dir
=install-headers-cpio
2510 hppa1.1
-*-hpux8.0
[0-2]*)
2511 target_cpu_default
=1
2512 tm_file
="${tm_file} pa/pa-hpux.h"
2513 xm_file
=pa
/xm-pahpux.h
2514 xmake_file
=pa
/x-pa-hpux
2517 tm_file
="${tm_file} pa/pa-gas.h"
2519 tm_file
="pa/pa-oldas.h ${tm_file}"
2521 install_headers_dir
=install-headers-cpio
2525 target_cpu_default
=1
2526 tm_file
="${tm_file} pa/pa-hpux.h"
2527 xm_file
=pa
/xm-pahpux.h
2528 xmake_file
=pa
/x-pa-hpux
2531 tm_file
="${tm_file} pa/pa-gas.h"
2533 install_headers_dir
=install-headers-cpio
2537 tm_file
="${tm_file} pa/pa-hpux.h"
2538 xm_file
=pa
/xm-pahpux.h
2539 xmake_file
=pa
/x-pa-hpux
2542 tm_file
="${tm_file} pa/pa-gas.h"
2544 install_headers_dir
=install-headers-cpio
2548 target_cpu_default
=1
2549 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
2550 xm_file
=pa
/xm-pahpux.h
2551 xmake_file
=pa
/x-pa-hpux
2555 tm_file
="${tm_file} pa/pa-gas.h"
2557 if [ x
$enable_threads = x
]; then
2558 enable_threads
=$have_pthread_h
2560 if [ x
$enable_threads = xyes
]; then
2562 tmake_file
="${tmake_file} pa/t-dce-thr"
2564 install_headers_dir
=install-headers-cpio
2568 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
2569 xm_file
=pa
/xm-pahpux.h
2570 xmake_file
=pa
/x-pa-hpux
2573 tm_file
="${tm_file} pa/pa-gas.h"
2575 if [ x
$enable_threads = x
]; then
2576 enable_threads
=$have_pthread_h
2578 if [ x
$enable_threads = xyes
]; then
2580 tmake_file
="${tmake_file} pa/t-dce-thr"
2582 install_headers_dir
=install-headers-cpio
2586 target_cpu_default
=1
2587 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
2588 xm_file
=pa
/xm-pahpux.h
2589 xmake_file
=pa
/x-pa-hpux
2592 tm_file
="${tm_file} pa/pa-gas.h"
2594 install_headers_dir
=install-headers-cpio
2598 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
2599 xm_file
=pa
/xm-pahpux.h
2600 xmake_file
=pa
/x-pa-hpux
2603 tm_file
="${tm_file} pa/pa-gas.h"
2605 install_headers_dir
=install-headers-cpio
2609 target_cpu_default
=1
2610 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
2611 xm_file
=pa
/xm-pahpux.h
2612 xmake_file
=pa
/x-pa-hpux
2615 tm_file
="${tm_file} pa/pa-gas.h"
2617 install_headers_dir
=install-headers-cpio
2621 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
2622 xm_file
=pa
/xm-pahpux.h
2623 xmake_file
=pa
/x-pa-hpux
2626 tm_file
="${tm_file} pa/pa-gas.h"
2628 install_headers_dir
=install-headers-cpio
2632 target_cpu_default
=1
2634 fixincludes
=Makefile.
in
2638 i
[34567]86-ibm-aix*) # IBM PS/2 running AIX
2641 tm_file
=i386
/aix386.h
2642 extra_parts
="crtbegin.o crtend.o"
2643 tmake_file
=i386
/t-crtstuff
2645 tm_file
=i386
/aix386ng.h
2648 xm_file
="xm-alloca.h i386/xm-aix.h ${xm_file}"
2650 xmake_file
=i386
/x-aix
2652 i
[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
2653 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
2654 xm_defines
="USG POSIX SMALL_ARG_MAX"
2655 xmake_file
=i386
/x-ncr3000
2656 if [ x
$stabs = xyes
-a x
$gas = xyes
]
2658 tm_file
=i386
/sysv4gdb.h
2660 tm_file
=i386
/sysv4.h
2662 extra_parts
="crtbegin.o crtend.o"
2663 tmake_file
=i386
/t-crtpic
2667 xm_file
=i386
/xm-next.h
2668 tmake_file
=i386
/t-next
2669 xmake_file
=i386
/x-next
2670 extra_objs
=nextstep.o
2671 if [ x
$enable_threads = xyes
]; then
2675 i
[34567]86-sequent-bsd*) # 80386 from Sequent
2679 tm_file
=i386
/seq-gas.h
2681 tm_file
=i386
/sequent.h
2684 i
[34567]86-sequent-ptx1*)
2685 xm_defines
="USG SVR3"
2686 xmake_file
=i386
/x-sysv3
2687 tm_file
=i386
/seq-sysv3.h
2688 tmake_file
=i386
/t-crtstuff
2689 fixincludes
=fixinc.
ptx
2690 extra_parts
="crtbegin.o crtend.o"
2691 install_headers_dir
=install-headers-cpio
2693 i
[34567]86-sequent-ptx2* | i
[34567]86-sequent-sysv3*)
2694 xm_defines
="USG SVR3"
2695 xmake_file
=i386
/x-sysv3
2696 tm_file
=i386
/seq2-sysv3.h
2697 tmake_file
=i386
/t-crtstuff
2698 extra_parts
="crtbegin.o crtend.o"
2699 fixincludes
=fixinc.
ptx
2700 install_headers_dir
=install-headers-cpio
2702 i
[34567]86-sequent-ptx4* | i
[34567]86-sequent-sysv4*)
2703 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
2704 xm_defines
="USG POSIX SMALL_ARG_MAX"
2706 tm_file
=i386
/ptx4-i.h
2708 extra_parts
="crtbegin.o crtend.o"
2709 fixincludes
=fixinc.
ptx
2710 install_headers_dir
=install-headers-cpio
2712 i386-sun-sunos
*) # Sun i386 roadrunner
2717 i
[34567]86-wrs-vxworks*)
2718 tm_file
=i386
/vxi386.h
2719 tmake_file
=i386
/t-i386bare
2722 tm_file
=i386
/i386-aout.h
2723 tmake_file
=i386
/t-i386bare
2725 i
[34567]86-*-bsdi* | i
[34567]86-*-bsd386*)
2726 tm_file
=i386
/bsd386.h
2727 # tmake_file=t-libc-ok
2730 tm_file
=i386
/386bsd.h
2731 # tmake_file=t-libc-ok
2732 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
2735 i
[34567]86-*-freebsdelf*)
2736 tm_file
="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
2737 # On FreeBSD, the headers are already ok, except for math.h.
2738 fixincludes
=fixinc.wrap
2739 tmake_file
=i386
/t-freebsd
2744 i
[34567]86-*-freebsd*)
2745 tm_file
=i386
/freebsd.h
2746 # On FreeBSD, the headers are already ok, except for math.h.
2747 fixincludes
=fixinc.wrap
2748 tmake_file
=i386
/t-freebsd
2750 i
[34567]86-*-netbsd*)
2751 tm_file
=i386
/netbsd.h
2752 # On NetBSD, the headers are already okay, except for math.h.
2753 fixincludes
=fixinc.wrap
2757 tm_file
=i386
/i386-coff.h
2758 tmake_file
=i386
/t-i386bare
2760 i
[34567]86-*-isc*) # 80386 running ISC system
2761 xm_file
="${xm_file} i386/xm-isc.h"
2762 xm_defines
="USG SVR3"
2764 i
[34567]86-*-isc[34]*)
2765 xmake_file
=i386
/x-isc3
2768 xmake_file
=i386
/x-isc
2771 if [ x
$gas = xyes
-a x
$stabs = xyes
]
2773 tm_file
=i386
/iscdbx.h
2774 tmake_file
=i386
/t-svr3dbx
2775 extra_parts
="svr3.ifile svr3z.ifile"
2777 tm_file
=i386
/isccoff.h
2778 tmake_file
=i386
/t-crtstuff
2779 extra_parts
="crtbegin.o crtend.o"
2781 install_headers_dir
=install-headers-cpio
2783 i
[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
2784 # with a.out format using
2786 xmake_file
=x-linux-aout
2787 tmake_file
="t-linux-aout i386/t-crtstuff"
2788 tm_file
=i386
/linux-oldld.h
2789 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
2793 i
[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
2795 xmake_file
=x-linux-aout
2796 tmake_file
="t-linux-aout i386/t-crtstuff"
2797 tm_file
=i386
/linux-aout.h
2798 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
2802 i
[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
2803 # with ELF format using the
2804 # GNU/Linux C library 5
2806 tm_file
=i386
/linux.h
2807 tmake_file
="t-linux t-linux-gnulibc1 i386/t-crtstuff"
2808 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2809 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
2812 if [ x
$enable_threads = xyes
]; then
2813 thread_file
='single'
2816 i
[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
2817 # with ELF format using glibc 2
2818 # aka GNU/Linux C library 6
2820 tm_file
=i386
/linux.h
2821 tmake_file
="t-linux i386/t-crtstuff"
2822 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2823 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
2826 if [ x
$enable_threads = xyes
]; then
2832 i
[34567]86-go32-msdos | i
[34567]86-*-go32*)
2833 xm_file
=i386
/xm-go32.h
2835 tmake_file
=i386
/t-go32
2837 i
[34567]86-pc-msdosdjgpp*)
2838 xm_file
=i386
/xm-go32.h
2840 tmake_file
=i386
/t-go32
2844 i
[34567]86-moss-msdos* | i
[34567]86-*-moss*)
2846 tmake_file
=t-libc-ok
2847 fixincludes
=Makefile.
in
2851 i
[34567]86-*-lynxos*)
2856 tm_file
=i386
/lynx-ng.h
2858 xm_file
=i386
/xm-lynx.h
2859 tmake_file
=i386
/t-i386bare
2864 # tmake_file=t-libc-ok
2867 i
[34567]86-*-osfrose*) # 386 using OSF/rose
2870 tm_file
=i386
/osfelf.h
2873 tm_file
=i386
/osfrose.h
2876 xm_file
="i386/xm-osf.h ${xm_file}"
2877 xmake_file
=i386
/x-osfrose
2878 tmake_file
=i386
/t-osf
2879 extra_objs
=halfpic.o
2881 i
[34567]86-go32-rtems*)
2883 xm_file
=i386
/xm-go32.h
2884 tm_file
=i386
/go32-rtems.h
2885 tmake_file
="i386/t-go32 t-rtems"
2887 i
[34567]86-*-rtemself*)
2889 tm_file
=i386
/rtemself.h
2890 tmake_file
="i386/t-i386bare t-rtems"
2892 i
[34567]86-*-rtems*)
2894 tm_file
=i386
/rtems.h
2895 tmake_file
="i386/t-i386bare t-rtems"
2897 i
[34567]86-*-sco3.2v5
*) # 80386 running SCO Open Server 5
2898 xm_file
="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
2899 xm_defines
="USG SVR3"
2900 xmake_file
=i386
/x-sco5
2901 fixincludes
=fixinc.sco
2902 install_headers_dir
=install-headers-cpio
2906 tm_file
="i386/sco5gas.h ${tm_file}"
2907 tmake_file
=i386
/t-sco5gas
2909 tmake_file
=i386
/t-sco5
2911 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2913 i
[34567]86-*-sco3.2v4
*) # 80386 running SCO 3.2v4 system
2914 xm_file
="${xm_file} i386/xm-sco.h"
2915 xm_defines
="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
2916 xmake_file
=i386
/x-sco4
2917 fixincludes
=fixinc.sco
2918 install_headers_dir
=install-headers-cpio
2919 if [ x
$stabs = xyes
]
2921 tm_file
=i386
/sco4dbx.h
2922 tmake_file
=i386
/t-svr3dbx
2923 extra_parts
="svr3.ifile svr3z.rfile"
2926 tmake_file
=i386
/t-crtstuff
2927 extra_parts
="crtbegin.o crtend.o"
2931 i
[34567]86-*-sco*) # 80386 running SCO system
2932 xm_file
=i386
/xm-sco.h
2933 xmake_file
=i386
/x-sco
2934 install_headers_dir
=install-headers-cpio
2935 if [ x
$stabs = xyes
]
2937 tm_file
=i386
/scodbx.h
2938 tmake_file
=i386
/t-svr3dbx
2939 extra_parts
="svr3.ifile svr3z.rfile"
2942 extra_parts
="crtbegin.o crtend.o"
2943 tmake_file
=i386
/t-crtstuff
2947 i
[34567]86-*-solaris2*)
2948 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
2949 xm_defines
="USG POSIX SMALL_ARG_MAX"
2950 if [ x
$stabs = xyes
]
2952 tm_file
=i386
/sol2dbg.h
2956 tmake_file
=i386
/t-sol2
2957 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2961 fixincludes
=fixinc.svr4
;;
2963 fixincludes
=fixinc.wrap
;;
2965 if [ x
$enable_threads = xyes
]; then
2966 thread_file
='solaris'
2969 i
[34567]86-*-sysv5*) # Intel x86 on System V Release 5
2970 xm_file
="xm-alloca.h xm-siglist.h ${xm_file}"
2971 xm_defines
="USG POSIX"
2972 tm_file
=i386
/sysv4.h
2973 if [ x
$stabs = xyes
]
2975 tm_file
="${tm_file} dbx.h"
2977 tmake_file
=i386
/t-crtpic
2979 extra_parts
="crtbegin.o crtend.o"
2980 fixincludes
=Makefile.
in # The headers are just fine, thank you.
2982 i
[34567]86-*-sysv4*) # Intel 80386's running system V.4
2983 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
2984 xm_defines
="USG POSIX SMALL_ARG_MAX"
2985 tm_file
=i386
/sysv4.h
2986 if [ x
$stabs = xyes
]
2988 tm_file
="${tm_file} dbx.h"
2990 tmake_file
=i386
/t-crtpic
2992 extra_parts
="crtbegin.o crtend.o"
2994 i
[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
2996 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
2997 xm_defines
="USE_C_ALLOCA SMALL_ARG_MAX"
2998 fixincludes
=Makefile.
in #Don't do it on OSF/1
2999 if [ x
$stabs = xyes
]
3001 tm_file
=i386
/osf1elfgdb.h
3003 tm_file
=i386
/osf1elf.h
3005 tmake_file
=i386
/t-osf1elf
3006 xmake_file
=i386
/x-osf1elf
3007 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
3009 i
[34567]86-*-sysv*) # Intel 80386's running system V
3010 xm_defines
="USG SVR3"
3011 xmake_file
=i386
/x-sysv3
3014 if [ x
$stabs = xyes
]
3016 tm_file
=i386
/svr3dbx.h
3017 tmake_file
=i386
/t-svr3dbx
3018 extra_parts
="svr3.ifile svr3z.rfile"
3020 tm_file
=i386
/svr3gas.h
3021 extra_parts
="crtbegin.o crtend.o"
3022 tmake_file
=i386
/t-crtstuff
3025 tm_file
=i386
/sysv3.h
3026 extra_parts
="crtbegin.o crtend.o"
3027 tmake_file
=i386
/t-crtstuff
3030 i386-
*-vsta) # Intel 80386's running VSTa kernel
3031 xm_file
="${xm_file} i386/xm-vsta.h"
3033 tmake_file
=i386
/t-vsta
3034 xmake_file
=i386
/x-vsta
3036 i
[34567]86-*-pe | i
[34567]86-*-cygwin32)
3037 xm_file
="${xm_file} i386/xm-cygwin32.h"
3038 tmake_file
=i386
/t-cygwin32
3039 tm_file
=i386
/cygwin32.h
3040 xmake_file
=i386
/x-cygwin32
3042 fixincludes
=Makefile.
in
3043 if [ x
$enable_threads = xyes
]; then
3048 i
[34567]86-*-mingw32*)
3049 tm_file
=i386
/mingw32.h
3050 xm_file
="${xm_file} i386/xm-mingw32.h"
3051 tmake_file
="i386/t-cygwin32 i386/t-mingw32"
3053 xmake_file
=i386
/x-cygwin32
3054 fixincludes
=Makefile.
in
3055 if [ x
$enable_threads = xyes
]; then
3062 *minwg32crt
* |
*mingw32
*)
3063 tm_file
="${tm_file} i386/crtdll.h"
3067 i
[34567]86-*-winnt3*)
3068 tm_file
=i386
/win-nt.h
3069 out_file
=i386
/i386.c
3070 xm_file
="xm-winnt.h ${xm_file}"
3071 xmake_file
=winnt
/x-winnt
3072 tmake_file
=i386
/t-winnt
3073 extra_host_objs
="winnt.o oldnames.o"
3074 extra_gcc_objs
="spawnv.o oldnames.o"
3075 fixincludes
=fixinc.winnt
3076 if [ x
$gnu_ld != xyes
]
3078 extra_programs
=ld.exe
3080 if [ x
$enable_threads = xyes
]; then
3084 i
[34567]86-dg-dgux*)
3085 xm_file
="xm-alloca.h xm-siglist.h ${xm_file}"
3086 xm_defines
="USG POSIX"
3087 out_file
=i386
/dgux.c
3089 tmake_file
=i386
/t-dgux
3090 xmake_file
=i386
/x-dgux
3091 fixincludes
=fixinc.dgux
3092 install_headers_dir
=install-headers-cpio
3094 i860-alliant-
*) # Alliant FX/2800
3095 tm_file
="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
3096 xm_file
="${xm_file}"
3097 xmake_file
=i860
/x-fx2800
3098 tmake_file
=i860
/t-fx2800
3099 extra_parts
="crtbegin.o crtend.o"
3102 tm_file
="${tm_file} i860/bsd.h"
3105 tm_file
="${tm_file} i860/bsd-gas.h"
3110 tm_file
="${tm_file} i860/mach.h"
3111 tmake_file
=t-libc-ok
3113 i860-
*-osf*) # Intel Paragon XP/S, OSF/1AD
3114 tm_file
="${tm_file} svr3.h i860/paragon.h"
3115 xm_defines
="USG SVR3"
3119 tm_file
="${tm_file} svr3.h i860/sysv3.h"
3120 xm_defines
="USG SVR3"
3121 xmake_file
=i860
/x-sysv3
3122 extra_parts
="crtbegin.o crtend.o"
3125 tm_file
="${tm_file} svr4.h i860/sysv4.h"
3126 xm_defines
="USG SVR3"
3127 xmake_file
=i860
/x-sysv4
3129 extra_parts
="crtbegin.o crtend.o"
3131 i960-wrs-vxworks5 | i960-wrs-vxworks5.0
*)
3132 tm_file
="${tm_file} i960/vx960.h"
3133 tmake_file
=i960
/t-vxworks960
3135 thread_file
='vxworks'
3137 i960-wrs-vxworks5
* | i960-wrs-vxworks
)
3138 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
3139 tmake_file
=i960
/t-vxworks960
3141 thread_file
='vxworks'
3144 tm_file
="${tm_file} i960/vx960.h"
3145 tmake_file
=i960
/t-vxworks960
3147 thread_file
='vxworks'
3150 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
3151 tmake_file
=i960
/t-960bare
3155 tmake_file
="i960/t-960bare t-rtems"
3156 tm_file
="${tm_file} dbxcoff.h i960/rtems.h"
3159 i960-
*-*) # Default i960 environment.
3163 extra_parts
="crtinit.o crtfini.o"
3165 m68000-convergent-sysv
*)
3167 xm_file
="m68k/xm-3b1.h ${xm_file}"
3170 extra_headers
=math-68881.h
3172 m68000-hp-bsd
*) # HP 9000/200 running BSD
3173 tm_file
=m68k
/hp2bsd.h
3174 xmake_file
=m68k
/x-hp2bsd
3176 extra_headers
=math-68881.h
3178 m68000-hp-hpux
*) # HP 9000 series 300
3179 xm_file
="xm_alloca.h ${xm_file}"
3180 xm_defines
="USG NO_SYS_SIGLIST"
3183 xmake_file
=m68k
/x-hp320g
3184 tm_file
=m68k
/hp310g.h
3186 xmake_file
=m68k
/x-hp320
3187 tm_file
=m68k
/hp310.h
3189 install_headers_dir
=install-headers-cpio
3191 extra_headers
=math-68881.h
3196 extra_headers
=math-68881.h
3199 tm_file
=m68k
/sun2o4.h
3201 extra_headers
=math-68881.h
3204 xm_file
="m68k/xm-3b1.h ${xm_file}"
3213 extra_headers
=math-68881.h
3215 m68k-apple-aux
*) # Apple Macintosh running A/UX
3216 xm_defines
="USG AUX"
3217 tmake_file
=m68k
/t-aux
3218 install_headers_dir
=install-headers-cpio
3219 extra_headers
=math-68881.h
3220 extra_parts
="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
3222 if [ "$gnu_ld" = yes ]
3224 tm_file
="${tm_file} m68k/auxgld.h"
3226 tm_file
="${tm_file} m68k/auxld.h"
3230 tm_file
="${tm_file} m68k/auxgas.h"
3232 tm_file
="${tm_file} m68k/auxas.h"
3234 tm_file
="${tm_file} m68k/a-ux.h"
3238 tm_file
=m68k
/apollo68.h
3239 xmake_file
=m68k
/x-apollo68
3241 extra_headers
=math-68881.h
3244 m68k-altos-sysv
*) # Altos 3068
3247 tm_file
=m68k
/altos3068.h
3250 echo "The Altos is supported only with the GNU assembler" 1>&2
3253 extra_headers
=math-68881.h
3255 m68k-bull-sysv
*) # Bull DPX/2
3258 if [ x
$stabs = xyes
]
3260 tm_file
=m68k
/dpx2cdbx.h
3262 tm_file
=m68k
/dpx2g.h
3267 xm_file
="xm-alloca.h ${xm_file}"
3269 xmake_file
=m68k
/x-dpx2
3271 extra_headers
=math-68881.h
3273 m68k-atari-sysv4
*) # Atari variant of V.4.
3274 tm_file
=m68k
/atari.h
3275 xm_file
="xm-alloca.h ${xm_file}"
3276 xm_defines
="USG FULL_PROTOTYPES"
3278 extra_parts
="crtbegin.o crtend.o"
3279 extra_headers
=math-68881.h
3282 m68k-motorola-sysv
*)
3283 tm_file
=m68k
/mot3300.h
3284 xm_file
="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
3285 xm_defines
=NO_SYS_SIGLIST
3288 xmake_file
=m68k
/x-mot3300-gas
3289 if [ x
$gnu_ld = xyes
]
3291 tmake_file
=m68k
/t-mot3300-gald
3293 tmake_file
=m68k
/t-mot3300-gas
3297 xmake_file
=m68k
/x-mot3300
3298 if [ x
$gnu_ld = xyes
]
3300 tmake_file
=m68k
/t-mot3300-gld
3302 tmake_file
=m68k
/t-mot3300
3306 gdb_needs_out_file_path
=yes
3307 extra_parts
="crt0.o mcrt0.o"
3308 extra_headers
=math-68881.h
3311 m68k-ncr-sysv
*) # NCR Tower 32 SVR3
3312 tm_file
=m68k
/tower-as.h
3313 xm_defines
="USG SVR3"
3314 xmake_file
=m68k
/x-tower
3315 extra_parts
="crtbegin.o crtend.o"
3316 extra_headers
=math-68881.h
3319 tm_file
=m68k
/plexus.h
3320 xm_file
="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
3323 extra_headers
=math-68881.h
3327 xm_file
="xm-alloca.h ${xm_file}"
3329 extra_headers
=math-68881.h
3332 xm_file
="xm-alloca.h m68k/xm-crds.h ${xm_file}"
3333 xm_defines
="USG unos"
3334 xmake_file
=m68k
/x-crds
3337 extra_headers
=math-68881.h
3339 m68k-cbm-sysv4
*) # Commodore variant of V.4.
3341 xm_file
="xm-alloca.h ${xm_file}"
3342 xm_defines
="USG FULL_PROTOTYPES"
3343 xmake_file
=m68k
/x-amix
3345 extra_parts
="crtbegin.o crtend.o"
3346 extra_headers
=math-68881.h
3350 tm_file
=m68k
/ccur-GAS.h
3351 xmake_file
=m68k
/x-ccur
3352 extra_headers
=math-68881.h
3356 m68k-hp-bsd4.4
*) # HP 9000/3xx running 4.4bsd
3357 tm_file
=m68k
/hp3bsd44.h
3358 xmake_file
=m68k
/x-hp3bsd44
3360 extra_headers
=math-68881.h
3363 m68k-hp-bsd
*) # HP 9000/3xx running Berkeley Unix
3364 tm_file
=m68k
/hp3bsd.h
3366 extra_headers
=math-68881.h
3370 if [ x
$with_fp = xno
]
3372 tm_file
=m68k
/isi-nfp.h
3378 extra_headers
=math-68881.h
3380 m68k-hp-hpux7
*) # HP 9000 series 300 running HPUX version 7.
3381 xm_file
="xm_alloca.h ${xm_file}"
3382 xm_defines
="USG NO_SYS_SIGLIST"
3385 xmake_file
=m68k
/x-hp320g
3386 tm_file
=m68k
/hp320g.h
3388 xmake_file
=m68k
/x-hp320
3389 tm_file
=m68k
/hpux7.h
3391 install_headers_dir
=install-headers-cpio
3393 extra_headers
=math-68881.h
3396 m68k-hp-hpux
*) # HP 9000 series 300
3397 xm_file
="xm_alloca.h ${xm_file}"
3398 xm_defines
="USG NO_SYS_SIGLIST"
3401 xmake_file
=m68k
/x-hp320g
3402 tm_file
=m68k
/hp320g.h
3404 xmake_file
=m68k
/x-hp320
3405 tm_file
=m68k
/hp320.h
3407 install_headers_dir
=install-headers-cpio
3409 extra_headers
=math-68881.h
3413 tm_file
=m68k
/sun3mach.h
3415 extra_headers
=math-68881.h
3421 tm_file
=m68k
/news3gas.h
3423 tm_file
=m68k
/news3.h
3426 extra_headers
=math-68881.h
3429 m68k-sony-bsd
* | m68k-sony-newsos
*)
3432 tm_file
=m68k
/newsgas.h
3437 extra_headers
=math-68881.h
3440 m68k-next-nextstep2
*)
3441 tm_file
=m68k
/next21.h
3442 xm_file
="m68k/xm-next.h ${xm_file}"
3443 tmake_file
=m68k
/t-next
3444 xmake_file
=m68k
/x-next
3445 extra_objs
=nextstep.o
3446 extra_headers
=math-68881.h
3450 m68k-next-nextstep3
*)
3452 xm_file
="m68k/xm-next.h ${xm_file}"
3453 tmake_file
=m68k
/t-next
3454 xmake_file
=m68k
/x-next
3455 extra_objs
=nextstep.o
3456 extra_headers
=math-68881.h
3458 if [ x
$enable_threads = xyes
]; then
3463 if [ x
$with_fp = xno
]
3465 tm_file
=m68k
/sun3n3.h
3467 tm_file
=m68k
/sun3o3.h
3471 extra_headers
=math-68881.h
3473 m68k-sun-sunos
*) # For SunOS 4 (the default).
3474 if [ x
$with_fp = xno
]
3476 tm_file
=m68k
/sun3n.h
3482 extra_headers
=math-68881.h
3485 tm_file
=m68k
/vxm68k.h
3486 tmake_file
=m68k
/t-vxworks68
3487 extra_headers
=math-68881.h
3488 thread_file
='vxworks'
3492 tmake_file
=m68k
/t-m68kbare
3493 tm_file
="m68k/m68k-aout.h libgloss.h"
3494 extra_headers
=math-68881.h
3498 tmake_file
=m68k
/t-m68kbare
3499 tm_file
="m68k/m68k-coff.h dbx.h libgloss.h"
3500 extra_headers
=math-68881.h
3508 tm_file
=m68k
/lynx-ng.h
3510 xm_file
=m68k
/xm-lynx.h
3512 tmake_file
=m68k
/t-lynx
3513 extra_headers
=math-68881.h
3517 tm_file
=m68k
/netbsd.h
3518 # On NetBSD, the headers are already okay, except for math.h.
3519 fixincludes
=fixinc.wrap
3523 m68k-
*-sysv3*) # Motorola m68k's running system V.3
3524 xm_file
="xm-alloca.h ${xm_file}"
3526 xmake_file
=m68k
/x-m68kv
3527 extra_parts
="crtbegin.o crtend.o"
3528 extra_headers
=math-68881.h
3531 m68k-
*-sysv4*) # Motorola m68k's running system V.4
3532 tm_file
=m68k
/m68kv4.h
3533 xm_file
="xm-alloca.h ${xm_file}"
3536 extra_parts
="crtbegin.o crtend.o"
3537 extra_headers
=math-68881.h
3540 m68k-
*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
3543 tm_file
=m68k
/linux-aout.h
3544 tmake_file
="t-linux-aout m68k/t-linux-aout"
3545 fixincludes
=Makefile.
in # The headers are ok already.
3546 extra_headers
=math-68881.h
3550 m68k-
*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
3551 # with ELF format using the
3552 # GNU/Linux C library 5
3554 tm_file
=m68k
/linux.h
3555 tmake_file
="t-linux t-linux-gnulibc1 m68k/t-linux"
3556 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3557 fixincludes
=Makefile.
in # The headers are ok already.
3558 extra_headers
=math-68881.h
3562 m68k-
*-linux-gnu*) # Motorola m68k's running GNU/Linux
3563 # with ELF format using glibc 2
3564 # aka the GNU/Linux C library 6.
3566 tm_file
=m68k
/linux.h
3567 tmake_file
="t-linux m68k/t-linux"
3568 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3569 fixincludes
=Makefile.
in # The headers are ok already.
3570 extra_headers
=math-68881.h
3573 if [ x
$enable_threads = xyes
]; then
3578 tmake_file
=m68k
/t-m68kbare
3579 tm_file
=m68k
/m68k-psos.h
3580 extra_headers
=math-68881.h
3584 tmake_file
="m68k/t-m68kbare t-rtems"
3585 tm_file
=m68k
/rtems.h
3586 extra_headers
=math-68881.h
3593 tm_file
=m88k
/dguxbcs.h
3594 tmake_file
=m88k
/t-dguxbcs
3598 tmake_file
=m88k
/t-dgux
3601 extra_parts
="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
3602 xmake_file
=m88k
/x-dgux
3605 tmake_file
=m88k
/t-dgux-gas
3607 fixincludes
=fixinc.dgux
3609 m88k-dolphin-sysv3
*)
3610 tm_file
=m88k
/dolph.h
3611 extra_parts
="crtbegin.o crtend.o"
3612 xm_file
="m88k/xm-sysv3.h ${xm_file}"
3613 xmake_file
=m88k
/x-dolph
3616 tmake_file
=m88k
/t-m88k-gas
3619 m88k-tektronix-sysv3
)
3620 tm_file
=m88k
/tekXD88.h
3621 extra_parts
="crtbegin.o crtend.o"
3622 xm_file
="m88k/xm-sysv3.h ${xm_file}"
3623 xmake_file
=m88k
/x-tekXD88
3626 tmake_file
=m88k
/t-m88k-gas
3630 tm_file
=m88k
/m88k-aout.h
3633 tm_file
=m88k
/m88k-coff.h
3634 tmake_file
=m88k
/t-bug
3638 extra_parts
="crtbegin.o crtend.o"
3641 tmake_file
=m88k
/t-luna-gas
3643 tmake_file
=m88k
/t-luna
3647 tm_file
=m88k
/sysv3.h
3648 extra_parts
="crtbegin.o crtend.o"
3649 xm_file
="m88k/xm-sysv3.h ${xm_file}"
3650 xmake_file
=m88k
/x-sysv3
3653 tmake_file
=m88k
/t-m88k-gas
3657 tm_file
=m88k
/sysv4.h
3658 extra_parts
="crtbegin.o crtend.o"
3659 xmake_file
=m88k
/x-sysv4
3660 tmake_file
=m88k
/t-sysv4
3662 mips-sgi-irix6
*) # SGI System V.4., IRIX 6
3663 tm_file
=mips
/iris6.h
3664 xm_file
=mips
/xm-iris6.h
3665 fixincludes
=fixinc.irix
3666 xmake_file
=mips
/x-iris6
3667 tmake_file
=mips
/t-iris6
3668 if [ x
$enable_threads = xyes
]; then
3673 tm_file
="mips/elf.h libgloss.h"
3674 tmake_file
=mips
/t-ecoff
3677 extra_parts
="crtbegin.o crtend.o"
3678 # thread_file='vxworks'
3680 mips-sgi-irix5cross64
) # Irix5 host, Irix 6 target, cross64
3681 tm_file
="mips/iris6.h mips/cross64.h"
3682 xm_defines
="USG HAVE_INTTYPES_H"
3683 fixincludes
=Makefile.
in
3684 xmake_file
=mips
/x-iris
3685 tmake_file
=mips
/t-cross64
3686 # See comment in mips/iris[56].h files.
3688 if [ x
$enable_threads = xyes
]; then
3695 if [ x
$stabs = xyes
]
3697 tm_file
=mips
/iris5gdb.h
3699 tm_file
="mips/sni-svr4.h mips/sni-gas.h"
3702 tm_file
=mips
/sni-svr4.h
3705 xmake_file
=mips
/x-sni-svr4
3706 tmake_file
=mips
/t-mips-gas
3707 if [ x
$gnu_ld != xyes
]
3712 mips-sgi-irix5
*) # SGI System V.4., IRIX 5
3715 tm_file
="mips/iris5.h mips/iris5gas.h"
3716 if [ x
$stabs = xyes
]
3718 tm_file
="${tm_file} dbx.h"
3721 tm_file
=mips
/iris5.h
3723 xm_defines
="USG HAVE_INTTYPES_H"
3724 fixincludes
=fixinc.irix
3725 xmake_file
=mips
/x-iris
3726 # mips-tfile doesn't work yet
3727 tmake_file
=mips
/t-mips-gas
3728 # See comment in mips/iris5.h file.
3730 if [ x
$enable_threads = xyes
]; then
3734 mips-sgi-irix4loser
*) # Mostly like a MIPS.
3735 tm_file
="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
3736 if [ x
$stabs = xyes
]; then
3737 tm_file
="${tm_file} dbx.h"
3740 xmake_file
=mips
/x-iris
3743 tmake_file
=mips
/t-mips-gas
3745 extra_passes
="mips-tfile mips-tdump"
3747 if [ x
$gnu_ld != xyes
]
3751 if [ x
$enable_threads = xyes
]; then
3755 mips-sgi-irix4
*) # Mostly like a MIPS.
3756 tm_file
="mips/iris3.h ${tm_file} mips/iris4.h"
3757 if [ x
$stabs = xyes
]; then
3758 tm_file
="${tm_file} dbx.h"
3761 xmake_file
=mips
/x-iris
3764 tmake_file
=mips
/t-mips-gas
3766 extra_passes
="mips-tfile mips-tdump"
3768 if [ x
$gnu_ld != xyes
]
3772 if [ x
$enable_threads = xyes
]; then
3776 mips-sgi-
*) # Mostly like a MIPS.
3777 tm_file
="mips/iris3.h ${tm_file}"
3778 if [ x
$stabs = xyes
]; then
3779 tm_file
="${tm_file} dbx.h"
3782 xmake_file
=mips
/x-iris3
3785 tmake_file
=mips
/t-mips-gas
3787 extra_passes
="mips-tfile mips-tdump"
3789 if [ x
$gnu_ld != xyes
]
3794 mips-dec-osfrose
*) # Decstation running OSF/1 reference port with OSF/rose.
3795 tm_file
="mips/osfrose.h ${tm_file}"
3796 xmake_file
=mips
/x-osfrose
3797 tmake_file
=mips
/t-osfrose
3798 extra_objs
=halfpic.o
3801 mips-dec-osf
*) # Decstation running OSF/1 as shipped by DIGITAL
3802 tm_file
=mips
/dec-osf1.h
3803 if [ x
$stabs = xyes
]; then
3804 tm_file
="${tm_file} dbx.h"
3806 xmake_file
=mips
/x-dec-osf1
3809 tmake_file
=mips
/t-mips-gas
3811 tmake_file
=mips
/t-ultrix
3812 extra_passes
="mips-tfile mips-tdump"
3814 if [ x
$gnu_ld != xyes
]
3819 mips-dec-bsd
*) # Decstation running 4.4 BSD
3820 tm_file
=mips
/dec-bsd.h
3824 tmake_file
=mips
/t-mips-gas
3826 tmake_file
=mips
/t-ultrix
3827 extra_passes
="mips-tfile mips-tdump"
3829 if [ x
$gnu_ld != xyes
]
3834 mips-dec-netbsd
*) # Decstation running NetBSD
3835 tm_file
=mips
/netbsd.h
3836 # On NetBSD, the headers are already okay, except for math.h.
3837 fixincludes
=fixinc.wrap
3840 mips-sony-bsd
* | mips-sony-newsos
*) # Sony NEWS 3600 or risc/news.
3841 tm_file
="mips/news4.h ${tm_file}"
3842 if [ x
$stabs = xyes
]; then
3843 tm_file
="${tm_file} dbx.h"
3847 tmake_file
=mips
/t-mips-gas
3849 extra_passes
="mips-tfile mips-tdump"
3851 if [ x
$gnu_ld != xyes
]
3855 xmake_file
=mips
/x-sony
3857 mips-sony-sysv
*) # Sony NEWS 3800 with NEWSOS5.0.
3858 # That is based on svr4.
3859 # t-svr4 is not right because this system doesn't use ELF.
3860 tm_file
="mips/news5.h ${tm_file}"
3861 if [ x
$stabs = xyes
]; then
3862 tm_file
="${tm_file} dbx.h"
3864 xm_file
="xm-siglist.h ${xm_file}"
3868 tmake_file
=mips
/t-mips-gas
3870 extra_passes
="mips-tfile mips-tdump"
3872 if [ x
$gnu_ld != xyes
]
3877 mips-tandem-sysv4
*) # Tandem S2 running NonStop UX
3878 tm_file
="mips/svr4-5.h mips/svr4-t.h"
3879 if [ x
$stabs = xyes
]; then
3880 tm_file
="${tm_file} dbx.h"
3882 xm_file
="xm-siglist.h ${xm_file}"
3884 xmake_file
=mips
/x-sysv
3887 tmake_file
=mips
/t-mips-gas
3888 extra_parts
="crtbegin.o crtend.o"
3890 tmake_file
=mips
/t-mips
3891 extra_passes
="mips-tfile mips-tdump"
3893 if [ x
$gnu_ld != xyes
]
3898 mips-
*-ultrix* | mips-dec-mach3
) # Decstation.
3899 tm_file
="mips/ultrix.h ${tm_file}"
3900 if [ x
$stabs = xyes
]; then
3901 tm_file
="${tm_file} dbx.h"
3903 xmake_file
=mips
/x-ultrix
3906 tmake_file
=mips
/t-mips-gas
3908 tmake_file
=mips
/t-ultrix
3909 extra_passes
="mips-tfile mips-tdump"
3911 if [ x
$gnu_ld != xyes
]
3916 mips-
*-riscos[56789]bsd
*)
3917 tm_file
=mips
/bsd-5.h
# MIPS BSD 4.3, RISC-OS 5.0
3918 if [ x
$stabs = xyes
]; then
3919 tm_file
="${tm_file} dbx.h"
3923 tmake_file
=mips
/t-bsd-gas
3925 tmake_file
=mips
/t-bsd
3926 extra_passes
="mips-tfile mips-tdump"
3928 if [ x
$gnu_ld != xyes
]
3933 mips-
*-bsd* | mips-
*-riscosbsd* | mips-
*-riscos[1234]bsd
*)
3934 tm_file
="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
3935 if [ x
$stabs = xyes
]; then
3936 tm_file
="${tm_file} dbx.h"
3940 tmake_file
=mips
/t-bsd-gas
3942 tmake_file
=mips
/t-bsd
3943 extra_passes
="mips-tfile mips-tdump"
3945 if [ x
$gnu_ld != xyes
]
3950 mips-
*-riscos[56789]sysv4
*)
3951 tm_file
=mips
/svr4-5.h
# MIPS System V.4., RISC-OS 5.0
3952 if [ x
$stabs = xyes
]; then
3953 tm_file
="${tm_file} dbx.h"
3955 xm_file
="xm-siglist.h ${xm_file}"
3956 xmake_file
=mips
/x-sysv
3959 tmake_file
=mips
/t-svr4-gas
3961 tmake_file
=mips
/t-svr4
3962 extra_passes
="mips-tfile mips-tdump"
3964 if [ x
$gnu_ld != xyes
]
3969 mips-
*-sysv4* | mips-
*-riscos[1234]sysv4
* | mips-
*-riscossysv4*)
3970 tm_file
="mips/svr4-4.h ${tm_file}"
3971 if [ x
$stabs = xyes
]; then
3972 tm_file
="${tm_file} dbx.h"
3975 xmake_file
=mips
/x-sysv
3978 tmake_file
=mips
/t-svr4-gas
3980 tmake_file
=mips
/t-svr4
3981 extra_passes
="mips-tfile mips-tdump"
3983 if [ x
$gnu_ld != xyes
]
3988 mips-
*-riscos[56789]sysv
*)
3989 tm_file
=mips
/svr3-5.h
# MIPS System V.3, RISC-OS 5.0
3990 if [ x
$stabs = xyes
]; then
3991 tm_file
="${tm_file} dbx.h"
3994 xmake_file
=mips
/x-sysv
3997 tmake_file
=mips
/t-svr3-gas
3999 tmake_file
=mips
/t-svr3
4000 extra_passes
="mips-tfile mips-tdump"
4002 if [ x
$gnu_ld != xyes
]
4007 mips-
*-sysv* | mips-
*-riscos*sysv
*)
4008 tm_file
="mips/svr3-4.h ${tm_file}"
4009 if [ x
$stabs = xyes
]; then
4010 tm_file
="${tm_file} dbx.h"
4013 xmake_file
=mips
/x-sysv
4016 tmake_file
=mips
/t-svr3-gas
4018 tmake_file
=mips
/t-svr3
4019 extra_passes
="mips-tfile mips-tdump"
4021 if [ x
$gnu_ld != xyes
]
4026 mips-
*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
4027 tm_file
=mips
/mips-5.h
4028 if [ x
$stabs = xyes
]; then
4029 tm_file
="${tm_file} dbx.h"
4033 tmake_file
=mips
/t-mips-gas
4035 extra_passes
="mips-tfile mips-tdump"
4037 if [ x
$gnu_ld != xyes
]
4045 tm_file
=mips
/ecoffl.h
4046 if [ x
$stabs = xyes
]; then
4047 tm_file
="${tm_file} dbx.h"
4049 tmake_file
=mips
/t-ecoff
4052 tm_file
="gofast.h mips/ecoff.h"
4053 if [ x
$stabs = xyes
]; then
4054 tm_file
="${tm_file} dbx.h"
4056 tmake_file
=mips
/t-ecoff
4059 tm_file
="mips/elfl.h libgloss.h"
4060 tmake_file
=mips
/t-ecoff
4063 tm_file
="mips/elf.h libgloss.h"
4064 tmake_file
=mips
/t-ecoff
4067 tm_file
="mips/elfl64.h libgloss.h"
4068 tmake_file
=mips
/t-ecoff
4070 mips64orionel-
*-elf*)
4071 tm_file
="mips/elforion.h mips/elfl64.h libgloss.h"
4072 tmake_file
=mips
/t-ecoff
4075 tm_file
="mips/elf64.h libgloss.h"
4076 tmake_file
=mips
/t-ecoff
4079 tm_file
="mips/elforion.h mips/elf64.h libgloss.h"
4080 tmake_file
=mips
/t-ecoff
4082 mips64orion-
*-rtems*)
4083 tm_file
="mips/elforion.h mips/elfl64.h mips/rtems64.h"
4084 tmake_file
="mips/t-ecoff t-rtems"
4087 tm_file
="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
4088 tmake_file
=mips
/t-r3900
4091 tm_file
="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
4092 tmake_file
=mips
/t-r3900
4094 mips-
*-*) # Default MIPS RISC-OS 4.0.
4095 if [ x
$stabs = xyes
]; then
4096 tm_file
="${tm_file} dbx.h"
4100 tmake_file
=mips
/t-mips-gas
4102 extra_passes
="mips-tfile mips-tdump"
4104 if [ x
$gnu_ld != xyes
]
4111 tm_file
="mn10200/mn10200.h"
4112 if [ x
$stabs = xyes
]
4114 tm_file
="${tm_file} dbx.h"
4120 tm_file
="mn10300/mn10300.h"
4121 if [ x
$stabs = xyes
]
4123 tm_file
="${tm_file} dbx.h"
4128 tm_file
=ns32k
/encore.h
4132 tm_file
=ns32k
/sequent.h
4136 tm_file
=ns32k
/tek6100.h
4140 tm_file
=ns32k
/tek6200.h
4143 # This has not been updated to GCC 2.
4146 # xmake_file=ns32k/x-genix
4147 # tm_file=ns32k/genix.h
4151 tm_file
=ns32k
/merlin.h
4155 tm_file
=ns32k
/pc532-mach.h
4159 tm_file
=ns32k
/pc532-min.h
4160 xm_file
="ns32k/xm-pc532-min.h ${xm-file}"
4164 ns32k-pc532-netbsd
*)
4165 tm_file
=ns32k
/netbsd.h
4166 # On NetBSD, the headers are already okay, except for math.h.
4167 fixincludes
=fixinc.wrap
4171 tm_file
="${tm_file} pdp11/2bsd.h"
4177 xmake_file
=pyr
/x-pyr
4184 xmake_file
=romp
/x-mach
4189 tm_file
=rs6000
/beos.h
4190 xm_file
=rs6000
/xm-beos.h
4191 tmake_file
=rs6000
/t-beos
4192 xmake_file
=rs6000
/x-beos
4194 powerpc-
*-sysv* | powerpc-
*-elf*)
4195 tm_file
=rs6000
/sysv4.h
4196 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4197 xm_defines
="USG POSIX"
4198 extra_headers
=ppc-asm.h
4201 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
4203 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4205 xmake_file
=rs6000
/x-sysv4
4208 tm_file
=rs6000
/eabiaix.h
4209 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4210 fixincludes
=Makefile.
in
4211 extra_headers
=ppc-asm.h
4214 tm_file
=rs6000
/eabisim.h
4215 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4216 fixincludes
=Makefile.
in
4217 extra_headers
=ppc-asm.h
4220 tm_file
=rs6000
/eabi.h
4223 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4225 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4227 fixincludes
=Makefile.
in
4228 extra_headers
=ppc-asm.h
4231 tm_file
=rs6000
/rtems.h
4234 tmake_file
="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
4236 tmake_file
="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
4238 fixincludes
=Makefile.
in
4239 extra_headers
=ppc-asm.h
4241 powerpc-
*-linux-gnulibc1)
4242 tm_file
=rs6000
/linux.h
4243 xm_file
=rs6000
/xm-sysv4.h
4244 out_file
=rs6000
/rs6000.c
4247 tmake_file
="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
4249 tmake_file
="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
4252 fixincludes
=Makefile.
in
4253 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4254 extra_headers
=ppc-asm.h
4255 if [ x
$enable_threads = xyes
]; then
4259 powerpc-
*-linux-gnu*)
4260 tm_file
=rs6000
/linux.h
4261 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4262 xm_defines
="USG ${xm_defines}"
4263 out_file
=rs6000
/rs6000.c
4266 tmake_file
="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
4268 tmake_file
="rs6000/t-ppc t-linux rs6000/t-ppccomm"
4271 fixincludes
=Makefile.
in
4272 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4273 extra_headers
=ppc-asm.h
4274 if [ x
$enable_threads = xyes
]; then
4278 powerpc-wrs-vxworks
*)
4280 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4281 xm_defines
="USG POSIX"
4282 tm_file
=rs6000
/vxppc.h
4283 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4284 extra_headers
=ppc-asm.h
4285 thread_file
='vxworks'
4287 powerpcle-
*-sysv* | powerpcle-
*-elf*)
4288 tm_file
=rs6000
/sysv4le.h
4289 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4290 xm_defines
="USG POSIX"
4293 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
4295 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4297 xmake_file
=rs6000
/x-sysv4
4298 extra_headers
=ppc-asm.h
4300 powerpcle-
*-eabisim*)
4301 tm_file
=rs6000
/eabilesim.h
4302 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4303 fixincludes
=Makefile.
in
4304 extra_headers
=ppc-asm.h
4307 tm_file
=rs6000
/eabile.h
4310 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4312 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4314 fixincludes
=Makefile.
in
4315 extra_headers
=ppc-asm.h
4317 powerpcle-
*-winnt* )
4318 tm_file
=rs6000
/win-nt.h
4319 tmake_file
=rs6000
/t-winnt
4321 fixincludes
=Makefile.
in
4322 if [ x
$enable_threads = xyes
]; then
4325 extra_headers
=ppc-asm.h
4327 powerpcle-
*-pe | powerpcle-
*-cygwin32)
4328 tm_file
=rs6000
/cygwin32.h
4329 xm_file
="rs6000/xm-cygwin32.h ${xm_file}"
4330 tmake_file
=rs6000
/t-winnt
4331 xmake_file
=rs6000
/x-cygwin32
4333 fixincludes
=Makefile.
in
4334 if [ x
$enable_threads = xyes
]; then
4338 extra_headers
=ppc-asm.h
4340 powerpcle-
*-solaris2*)
4341 tm_file
=rs6000
/sol2.h
4342 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4343 xm_defines
="USG POSIX"
4346 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
4348 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4350 xmake_file
=rs6000
/x-sysv4
4353 fixincludes
=fixinc.svr4
;;
4355 fixincludes
=fixinc.wrap
;;
4357 extra_headers
=ppc-asm.h
4359 rs6000-ibm-aix3.
[01]*)
4360 tm_file
=rs6000
/aix31.h
4361 xmake_file
=rs6000
/x-aix31
4364 rs6000-ibm-aix3.2.
[456789]* | powerpc-ibm-aix3.2.
[456789]*)
4365 tm_file
=rs6000
/aix3newas.h
4366 if [ x
$host != x
$target ]
4368 tmake_file
=rs6000
/t-xnewas
4370 tmake_file
=rs6000
/t-newas
4374 rs6000-ibm-aix4.
[12].
* | powerpc-ibm-aix4.
[12].
*)
4375 tm_file
=rs6000
/aix41.h
4376 if [ x
$host != x
$target ]
4378 tmake_file
=rs6000
/t-xnewas
4380 tmake_file
=rs6000
/t-newas
4382 xmake_file
=rs6000
/x-aix41
4385 rs6000-ibm-aix4.
[3456789].
* | powerpc-ibm-aix4.
[3456789].
*)
4386 tm_file
=rs6000
/aix43.h
4387 if [ x
$host != x
$target ]
4389 tmake_file
=rs6000
/t-xaix43
4391 tmake_file
=rs6000
/t-aix43
4393 xmake_file
=rs6000
/x-aix43
4396 rs6000-ibm-aix
[56789].
* | powerpc-ibm-aix
[56789].
*)
4397 tm_file
=rs6000
/aix43.h
4398 if [ x
$host != x
$target ]
4400 tmake_file
=rs6000
/t-xaix43
4402 tmake_file
=rs6000
/t-aix43
4404 xmake_file
=rs6000
/x-aix43
4414 tm_file
=rs6000
/mach.h
4415 xm_file
="${xm_file} rs6000/xm-mach.h"
4416 xmake_file
=rs6000
/x-mach
4420 tm_file
=rs6000
/lynx.h
4421 xm_file
=rs6000
/xm-lynx.h
4422 tmake_file
=rs6000
/t-rs6000
4423 xmake_file
=rs6000
/x-lynx
4431 tmake_file
="sh/t-sh t-rtems"
4440 xm_file
="xm-alloca.h ${xm_file}"
4443 sparc-wrs-vxworks
* | sparclite-wrs-vxworks
*)
4444 tm_file
=sparc
/vxsparc.h
4445 tmake_file
=sparc
/t-vxsparc
4447 thread_file
='vxworks'
4450 tmake_file
=sparc
/t-sparcbare
4451 tm_file
="sparc/aout.h libgloss.h"
4454 tm_file
=sparc
/netbsd.h
4455 # On NetBSD, the headers are already okay, except for math.h.
4456 fixincludes
=fixinc.wrap
4464 tmake_file
=sparc
/t-elf
4465 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4469 sparc-
*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
4470 xm_file
="${xm_file} sparc/xm-linux.h"
4471 tm_file
=sparc
/linux-aout.h
4473 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
4476 sparc-
*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
4477 xm_file
="${xm_file} sparc/xm-linux.h"
4479 tm_file
=sparc
/linux.h
4480 tmake_file
="t-linux t-linux-gnulibc1"
4481 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4482 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
4485 sparc-
*-linux-gnu*) # Sparc's running GNU/Linux, libc6
4486 xm_file
="${xm_file} sparc/xm-linux.h"
4488 tm_file
=sparc
/linux.h
4489 tmake_file
="t-linux"
4490 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4491 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
4493 if [ x
$enable_threads = xyes
]; then
4500 tm_file
=sparc
/lynx.h
4502 tm_file
=sparc
/lynx-ng.h
4504 xm_file
=sparc
/xm-lynx.h
4505 tmake_file
=sparc
/t-sunos41
4509 tmake_file
="sparc/t-sparcbare t-rtems"
4510 tm_file
=sparc
/rtems.h
4513 if [ x
$gnu_ld = xyes
]
4515 tm_file
=sparc
/sol2.h
4517 tm_file
=sparc
/sol2-sld.h
4519 xm_file
="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
4520 xm_defines
="USG POSIX"
4521 tmake_file
=sparc
/t-sol2
4522 xmake_file
=sparc
/x-sysv4
4523 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4526 fixincludes
=fixinc.svr4
;;
4528 fixincludes
=fixinc.wrap
;;
4531 if [ x
${enable_threads} = x
]; then
4532 enable_threads
=$have_pthread_h
4533 if [ x
${enable_threads} = x
]; then
4534 enable_threads
=$have_thread_h
4537 if [ x
${enable_threads} = xyes
]; then
4538 if [ x
${have_pthread_h} = xyes
]; then
4541 thread_file
='solaris'
4546 tm_file
=sparc
/sunos4.h
4547 tmake_file
=sparc
/t-sunos40
4551 tm_file
=sparc
/sunos4.h
4552 tmake_file
=sparc
/t-sunos41
4554 if [ x
$gas = xyes
]; then
4555 tm_file
="${tm_file} sparc/sun4gas.h"
4559 tm_file
=sparc
/sun4o3.h
4563 tm_file
=sparc
/sysv4.h
4564 xm_file
="xm-siglist.h sparc/xm-sysv4.h"
4565 xm_defines
="USG POSIX"
4567 xmake_file
=sparc
/x-sysv4
4568 extra_parts
="crtbegin.o crtend.o"
4571 xm_file
="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
4572 xm_defines
="USG POSIX"
4573 tm_file
=sparc
/vxsim.h
4574 tmake_file
=sparc
/t-vxsparc
4575 xmake_file
=sparc
/x-sysv4
4578 tm_file
="sparc/splet.h libgloss.h"
4579 tmake_file
=sparc
/t-splet
4582 tm_file
="sparc/litecoff.h libgloss.h"
4583 tmake_file
=sparc
/t-sparclite
4586 tm_file
="sparc/lite.h aoutos.h libgloss.h"
4587 tmake_file
=sparc
/t-sparclite
4590 tmake_file
=sparc
/t-sp64
4591 tm_file
=sparc
/sp64-aout.h
4594 tmake_file
=sparc
/t-sp64
4595 tm_file
=sparc
/sp64-elf.h
4596 extra_parts
="crtbegin.o crtend.o"
4598 sparc64-
*-linux*) # 64-bit Sparc's running GNU/Linux
4599 tmake_file
=sparc
/t-sp64
4600 xm_file
="sparc/xm-sp64.h sparc/xm-linux.h"
4601 tm_file
=sparc
/linux64.h
4603 fixincludes
=Makefile.
in # The headers are ok already.
4606 # This hasn't been upgraded to GCC 2.
4607 # tahoe-harris-*) # Harris tahoe, using COFF.
4608 # tm_file=tahoe/harris.h
4610 # tahoe-*-bsd*) # tahoe running BSD
4612 thumb-
*-coff* | thumbel-
*-coff*)
4614 out_file
=arm
/thumb.c
4615 xm_file
=arm
/xm-thumb.h
4616 md_file
=arm
/thumb.md
4617 tmake_file
=arm
/t-thumb
4619 # This hasn't been upgraded to GCC 2.
4626 tm_file
="v850/v850.h"
4627 xm_file
="v850/xm-v850.h"
4628 tmake_file
=v850
/t-v850
4629 if [ x
$stabs = xyes
]
4631 tm_file
="${tm_file} dbx.h"
4635 vax-
*-bsd*) # vaxen running BSD
4639 vax-
*-sysv*) # vaxen running system V
4640 tm_file
="${tm_file} vax/vaxv.h"
4645 tm_file
="${tm_file} netbsd.h vax/netbsd.h"
4646 # On NetBSD, the headers are already okay, except for math.h.
4647 fixincludes
=fixinc.wrap
4651 vax-
*-ultrix*) # vaxen running ultrix
4652 tm_file
="${tm_file} vax/ultrix.h"
4656 vax-
*-vms*) # vaxen running VMS
4657 xm_file
=vax
/xm-vms.h
4661 vax-
*-*) # vax default entry
4665 xm_file
="${xm_file} xm-svr3"
4669 echo "Configuration $machine not supported" 1>&2
4676 ;; # Existing GNU/Linux systems do not use the GNU setup.
4678 # On the GNU system, the setup is just about the same on
4679 # each different CPU. The specific machines that GNU
4680 # supports are matched above and just set $cpu_type.
4681 xm_file
="xm-gnu.h ${xm_file}"
4682 tm_file
=${cpu_type}/gnu.h
4683 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
4684 # GNU always uses ELF.
4686 # GNU tools are the only tools.
4689 # On GNU, the headers are already okay.
4690 fixincludes
=Makefile.
in
4691 xmake_file
=x-linux
# These details are the same as Linux.
4692 tmake_file
=t-gnu
# These are not.
4695 fixincludes
=fixinc.svr4
4696 xmake_try_sysv
=x-sysv
4697 install_headers_dir
=install-headers-cpio
4700 install_headers_dir
=install-headers-cpio
4704 # Distinguish i[34567]86
4705 # Also, do not run mips-tfile on MIPS if using gas.
4706 # Process --with-cpu= for PowerPC/rs6000
4707 target_cpu_default2
=
4710 target_cpu_default2
=1
4713 target_cpu_default2
=2
4715 i686-
*-* | i786-
*-*)
4716 target_cpu_default2
=3
4721 target_cpu_default2
="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
4724 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
4727 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX"
4730 target_cpu_default2
="MASK_CPU_EV5"
4736 if [ "$target_cpu_default2" = "" ]
4738 target_cpu_default2
="MASK_GAS"
4740 target_cpu_default2
="${target_cpu_default2}|MASK_GAS"
4745 case "x$with_cpu" in
4748 target_cpu_default2
="TARGET_CPU_generic"
4751 # Distinguish cores, and major variants
4752 # arm7m doesn't exist, but D & I don't affect code
4753 xarm23678 | xarm250 | xarm67010 \
4754 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
4755 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
4756 | xstrongarm | xstrongarm110
)
4757 target_cpu_default2
="TARGET_CPU_$with_cpu"
4761 echo "--with-cpu must be passed a value" 1>&2
4766 if [ x
$pass2done = xyes
]
4768 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4775 mips
*-*-ecoff* | mips
*-*-elf*)
4778 if [ x
$gnu_ld = xyes
]
4780 target_cpu_default2
=20
4782 target_cpu_default2
=16
4789 target_cpu_default2
=16
4792 powerpc
*-*-* | rs6000-
*-*)
4793 case "x$with_cpu" in
4797 xcommon | xpower | xpower2 | xpowerpc | xrios \
4798 | xrios1 | xrios2 | xrsc | xrsc1 \
4799 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
4800 | x403 | x505 | x801 | x821 | x823 | x860
)
4801 target_cpu_default2
="\"$with_cpu\""
4805 echo "--with-cpu must be passed a value" 1>&2
4810 if [ x
$pass2done = xyes
]
4812 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4819 case ".$with_cpu" in
4821 target_cpu_default2
=TARGET_CPU_
"`echo $machine | sed 's/-.*$//'`"
4823 .supersparc | .ultrasparc | .v7 | .v8 | .v9
)
4824 target_cpu_default2
="TARGET_CPU_$with_cpu"
4827 if [ x
$pass2done = xyes
]
4829 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4837 if [ "$target_cpu_default2" != "" ]
4839 if [ "$target_cpu_default" != "" ]
4841 target_cpu_default
="(${target_cpu_default}|${target_cpu_default2})"
4843 target_cpu_default
=$target_cpu_default2
4847 # No need for collect2 if we have the GNU linker.
4848 # Actually, there is now; GNU ld doesn't handle the EH info or
4849 # collecting for shared libraries.
4856 # Save data on machine being used to compile GCC in build_xm_file.
4857 # Save data on host machine in vars host_xm_file and host_xmake_file.
4858 if [ x
$pass1done = x
]
4860 if [ x
"$xm_file" = x
]
4861 then build_xm_file
=$cpu_type/xm-
$cpu_type.h
4862 else build_xm_file
=$xm_file
4864 build_xm_defines
=$xm_defines
4865 build_install_headers_dir
=$install_headers_dir
4866 build_exeext
=$exeext
4869 if [ x
$pass2done = x
]
4871 if [ x
"$xm_file" = x
]
4872 then host_xm_file
=$cpu_type/xm-
$cpu_type.h
4873 else host_xm_file
=$xm_file
4875 host_xm_defines
=$xm_defines
4876 if [ x
"$xmake_file" = x
]
4877 then xmake_file
=$cpu_type/x-
$cpu_type
4879 host_xmake_file
="$xmake_file"
4880 host_truncate_target
=$truncate_target
4881 host_extra_gcc_objs
=$extra_gcc_objs
4882 host_extra_objs
=$extra_host_objs
4889 extra_objs
="${host_extra_objs} ${extra_objs}"
4891 # Default the target-machine variables that were not explicitly set.
4892 if [ x
"$tm_file" = x
]
4893 then tm_file
=$cpu_type/$cpu_type.h
; fi
4895 if [ x
$extra_headers = x
]
4896 then extra_headers
=; fi
4898 if [ x
"$xm_file" = x
]
4899 then xm_file
=$cpu_type/xm-
$cpu_type.h
; fi
4901 if [ x
$md_file = x
]
4902 then md_file
=$cpu_type/$cpu_type.md
; fi
4904 if [ x
$out_file = x
]
4905 then out_file
=$cpu_type/$cpu_type.c
; fi
4907 if [ x
"$tmake_file" = x
]
4908 then tmake_file
=$cpu_type/t-
$cpu_type
4911 if [ x
$float_format = x
]
4912 then float_format
=i64
4915 if [ x
$enable_haifa = x
]
4918 alpha
*-* | hppa1.?
-* | powerpc
*-* | rs6000-
* |
*sparc-
* | m32r
*-*)
4923 # Say what files are being used for the output code and MD file.
4924 echo "Using \`$srcdir/config/$out_file' to output insns."
4925 echo "Using \`$srcdir/config/$md_file' as machine description file."
4928 for f
in $tm_file; do
4931 if [ $count = ax
]; then
4932 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
4934 echo "Using the following target machine macro files:"
4935 for f
in $tm_file; do
4936 echo " $srcdir/config/$f"
4941 for f
in $host_xm_file; do
4944 if [ $count = ax
]; then
4945 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
4947 echo "Using the following host machine macro files:"
4948 for f
in $host_xm_file; do
4949 echo " $srcdir/config/$f"
4953 if [ "$host_xm_file" != "$build_xm_file" ]; then
4955 for f
in $build_xm_file; do
4958 if [ $count = ax
]; then
4959 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
4961 echo "Using the following build machine macro files:"
4962 for f
in $build_xm_file; do
4963 echo " $srcdir/config/$f"
4968 if [ x
$thread_file = x
]; then
4969 if [ x
$target_thread_file != x
]; then
4970 thread_file
=$target_thread_file
4972 thread_file
='single'
4976 # Set up the header files.
4977 # $links is the list of header files to create.
4978 # $vars is the list of shell variables with file names to include.
4979 # auto-host.h is the file containing items generated by autoconf and is
4980 # the first file included by config.h.
4982 host_xm_file
="auto-host.h ${host_xm_file}"
4984 # If host=build, it is correct to have hconfig include auto-host.h
4985 # as well. If host!=build, we are in error and need to do more
4986 # work to find out the build config parameters.
4987 if [ x
$host = x
$build ]
4989 build_xm_file
="auto-host.h ${build_xm_file}"
4991 # We create a subdir, then run autoconf in the subdir.
4992 # To prevent recursion we set host and build for the new
4993 # invocation of configure to the build for this invocation
5000 /*) realsrcdir
=${srcdir};;
5001 *) realsrcdir
=..
/${srcdir};;
5003 CC
=${CC_FOR_BUILD} ${realsrcdir}/configure \
5004 --target=$target --host=$build --build=$build
5006 # We just finished tests for the build machine, so rename
5007 # the file auto-build.h in the gcc directory.
5008 mv auto-host.h ..
/auto-build.h
5011 build_xm_file
="auto-build.h ${build_xm_file}"
5014 vars
="host_xm_file tm_file xm_file build_xm_file"
5015 links
="config.h tm.h tconfig.h hconfig.h"
5016 defines
="host_xm_defines null_defines xm_defines build_xm_defines"
5019 if [ -f config.status
]; then mv -f config.status config.bak
; fi
5022 while [ -n "$vars" ]
5024 set $vars; var
=$1; shift; vars
=$
*
5025 set $links; link
=$1; shift; links
=$
*
5026 set $defines; define
=$1; shift; defines
=$
*
5030 # Define TARGET_CPU_DEFAULT if the system wants one.
5031 # This substitutes for lots of *.h files.
5032 if [ "$target_cpu_default" != "" -a $link = tm.h
]
5034 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
5037 for file in `eval echo '$'$var`; do
5038 echo "#include \"$file\"" >>$link
5041 for def
in `eval echo '$'$define`; do
5042 echo "#ifndef $def" >>$link
5043 echo "#define $def" >>$link
5044 echo "#endif" >>$link
5048 # Truncate the target if necessary
5049 if [ x
$host_truncate_target != x
]; then
5050 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
5053 # Get the version trigger filename from the toplevel
5054 if [ "${with_gcc_version_trigger+set}" = set ]; then
5055 gcc_version_trigger
=$with_gcc_version_trigger
5057 gcc_version_trigger
=${srcdir}/version.c
5059 gcc_version
=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
5061 # Get an absolute path to the GCC top-level source directory
5067 # Conditionalize the makefile for this host machine.
5068 # Make-host contains the concatenation of all host makefile fragments
5069 # [there can be more than one]. This file is built by configure.frag.
5070 host_overrides
=Make-host
5071 dep_host_xmake_file
=
5072 for f
in ..
${host_xmake_file}
5074 if [ -f ${srcdir}/config
/$f ]
5076 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
5080 # Conditionalize the makefile for this target machine.
5081 # Make-target contains the concatenation of all host makefile fragments
5082 # [there can be more than one]. This file is built by configure.frag.
5083 target_overrides
=Make-target
5085 for f
in ..
${tmake_file}
5087 if [ -f ${srcdir}/config
/$f ]
5089 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
5093 # If the host doesn't support symlinks, modify CC in
5094 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
5095 # Otherwise, we can use "CC=$(CC)".
5097 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
5099 cc_set_by_configure
="\$(CC)"
5100 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
5103 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
5105 symbolic_link
="cp -p"
5109 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
5110 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
5114 out_object_file
=`basename $out_file .c`.o
5117 for f
in $tm_file; do
5118 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
5122 for f
in $host_xm_file; do
5123 if test $f != "auto-host.h"; then
5124 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
5126 host_xm_file_list
="${host_xm_file_list} auto-host.h"
5131 for f
in $build_xm_file; do
5132 if test $f != "auto-build.h"; then
5133 if test $f != "auto-host.h"; then
5134 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
5136 build_xm_file_list
="${build_xm_file_list} auto-host.h"
5139 build_xm_file_list
="${build_xm_file_list} auto-build.h"
5143 # Define macro CROSS_COMPILE in compilation
5144 # if this is a cross-compiler.
5145 # Also use all.cross instead of all.internal
5146 # and add cross-make to Makefile.
5147 cross_overrides
="/dev/null"
5148 if [ x
$host != x
$target ]
5150 cross_defines
="CROSS=-DCROSS_COMPILE"
5151 cross_overrides
="${topdir}/cross-make"
5154 # When building gcc with a cross-compiler, we need to fix a few things.
5155 # This must come after cross-make as we want all.build to override
5157 build_overrides
="/dev/null"
5158 if [ x
$build != x
$host ]
5160 build_overrides
="${topdir}/build-make"
5163 # Expand extra_headers to include complete path.
5164 # This substitutes for lots of t-* files.
5166 if [ "x$extra_headers" = x
]
5169 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
5170 for file in $extra_headers;
5172 extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/${file}"
5176 # Add a definition of USE_COLLECT2 if system wants one.
5177 # Also tell toplev.c what to do.
5178 # This substitutes for lots of t-* files.
5179 if [ x
$use_collect2 = x
]
5184 will_use_collect2
="collect2"
5185 maybe_use_collect2
="-DUSE_COLLECT2"
5189 # Set MD_DEPS if the real md file is in md.pre-cpp.
5190 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
5191 # for line oriented comments, so we must always use a GNU cpp. If
5192 # building gcc with a cross compiler, use the cross compiler just
5193 # built. Otherwise, we can use the cpp just built.
5195 if [ "x$md_cppflags" = x
]
5197 md_file_sub
=$srcdir/config
/$md_file
5202 # If we have gas in the build tree, make a link to it.
5203 if [ -f ..
/gas
/Makefile
]; then
5204 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
5207 # If we have nm in the build tree, make a link to it.
5208 if [ -f ..
/binutils
/Makefile
]; then
5209 rm -f nm
; $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
5212 # If we have ld in the build tree, make a link to it.
5213 if [ -f ..
/ld
/Makefile
]; then
5214 # if [[ x$use_collect2 = x ]]; then
5215 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
5217 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
5221 # Figure out what assembler alignment features are present.
5222 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
5223 echo "configure:5224: checking assembler alignment features" >&5
5225 gcc_cv_as_alignment_features
=
5226 if [ -x as
$host_exeext ]; then
5227 # Build using assembler in the current directory.
5228 gcc_cv_as
=.
/as
$host_exeext
5229 elif [ -f $srcdir/..
/gas
/configure.
in ]; then
5230 # Single tree build which includes gas.
5231 for f
in $srcdir/..
/gas
/configure.
in $srcdir/..
/gas
/Makefile.
in
5233 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
5234 if [ x
$gcc_cv_gas_version != x
]; then
5238 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
5239 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
5240 # Gas version 2.8 and later support specifying the maximum
5241 # bytes to skip when using .p2align.
5242 if [ "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 8 -o "$gcc_cv_gas_major_version" -gt 2 ]; then
5243 gcc_cv_as_alignment_features
=".p2align including maximum skip"
5244 cat >> confdefs.h
<<\EOF
5245 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
5249 elif [ x
$host = x
$target ]; then
5251 gcc_cv_as
=as
$host_exeext
5253 if [ x
$gcc_cv_as != x
]; then
5254 # Check if specifying the maximum bytes to skip when
5255 # using .p2align is supported.
5256 echo ".p2align 4,,7" > conftest.s
5257 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
5258 gcc_cv_as_alignment_features
=".p2align including maximum skip"
5259 cat >> confdefs.h
<<\EOF
5260 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
5264 rm -f conftest.s conftest.o
5266 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
5268 # Figure out what language subdirectories are present.
5270 for lang
in ${srcdir}/*/config-lang.
in ..
5274 # The odd quoting in the next line works around
5275 # an apparent bug in bash 1.12 on linux.
5276 ${srcdir}/[*]/config-lang.
in) ;;
5277 *) subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
5281 # Make gthr-default.h if we have a thread file.
5283 if [ $thread_file != single
]; then
5284 rm -f gthr-default.h
5285 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
5286 gthread_flags
=-DHAVE_GTHR_DEFAULT
5290 # Make empty files to contain the specs and options for each language.
5291 # Then add #include lines to for a compiler that has specs and/or options.
5295 rm -f specs.h options.h
5296 touch specs.h options.h
5297 for subdir
in .
$subdirs
5299 if [ -f $srcdir/$subdir/lang-specs.h
]; then
5300 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
5301 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
5303 if [ -f $srcdir/$subdir/lang-options.h
]; then
5304 echo "#include \"$subdir/lang-options.h\"" >>options.h
5305 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
5309 # These (without "all_") are set in each config-lang.in.
5310 # `language' must be a single word so is spelled singularly.
5316 all_outputs
=Makefile
5317 # List of language makefile fragments.
5322 # Add the language fragments.
5323 # Languages are added via two mechanisms. Some information must be
5324 # recorded in makefile variables, these are defined in config-lang.in.
5325 # We accumulate them and plug them into the main Makefile.
5326 # The other mechanism is a set of hooks for each of the main targets
5327 # like `clean', `install', etc.
5329 language_fragments
="Make-lang"
5330 language_hooks
="Make-hooks"
5333 for s
in ..
$subdirs
5345 .
${srcdir}/$s/config-lang.
in
5346 if [ "x$language" = x
]
5348 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
5351 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
5352 all_languages
="$all_languages $language"
5353 if [ "x$boot_language" = xyes
]
5355 all_boot_languages
="$all_boot_languages $language"
5357 all_compilers
="$all_compilers $compilers"
5358 all_stagestuff
="$all_stagestuff $stagestuff"
5359 all_diff_excludes
="$all_diff_excludes $diff_excludes"
5360 all_headers
="$all_headers $headers"
5361 all_outputs
="$all_outputs $outputs"
5362 if [ x
$outputs = x
]
5364 oldstyle_subdirs
="$oldstyle_subdirs $s"
5366 all_lib2funcs
="$all_lib2funcs $lib2funcs"
5370 # Since we can't use `::' targets, we link each language in
5371 # with a set of hooks, reached indirectly via lang.${target}.
5375 target_list
="all.build all.cross start.encap rest.encap \
5377 install-normal install-common install-info install-man \
5379 mostlyclean clean distclean extraclean maintainer-clean \
5380 stage1 stage2 stage3 stage4"
5381 for t
in $target_list
5384 for l
in ..
$all_languages
5386 if [ $l != ".." ]; then
5390 echo "lang.$t: $x" >> Make-hooks
5393 # If we're not building in srcdir, create .gdbinit.
5395 if [ ! -f Makefile.
in ]; then
5396 echo "dir ." > .gdbinit
5397 echo "dir ${srcdir}" >> .gdbinit
5398 if [ x
$gdb_needs_out_file_path = xyes
]
5400 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
5402 if [ "x$subdirs" != x
]; then
5405 echo "dir ${srcdir}/$s" >> .gdbinit
5408 echo "source ${srcdir}/.gdbinit" >> .gdbinit
5411 # Define variables host_canonical and build_canonical
5412 # because some Cygnus local changes in the Makefile depend on them.
5413 build_canonical
=${build}
5414 host_canonical
=${host}
5416 if [ "${host}" != "${target}" ] ; then
5417 target_subdir
=${target}/
5423 # If this is using newlib, then define inhibit_libc in
5424 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
5425 # libgcc.a, but that's OK because newib should have its own version of
5428 if [ x
$with_newlib = xyes
]; then
5429 inhibit_libc
=-Dinhibit_libc
5433 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
5436 if [ x
$enable_haifa = xyes
]; then
5437 echo "Using the Haifa scheduler."
5439 sched_cflags
=-DHAIFA
5443 if [ x
$enable_haifa != x
]; then
5444 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
5445 for x
in genattrtab.o toplev.o loop.o unroll.o
*sched.o
; do
5453 # Nothing to do for FLOAT_H, float_format already handled.
5457 # Process the language and host/target makefile fragments.
5458 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
5460 # Substitute configuration variables
5515 # Echo that links are built
5516 if [ x
$host = x
$target ]
5524 if [ x
$host != x
$build ]
5526 str3
=" on a $build system"
5529 if [ "x$str2" != x
] ||
[ "x$str3" != x
]
5534 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
5536 if [ "x$str2" != x
] ||
[ "x$str3" != x
]
5538 echo " ${str2}${str3}." 1>&2
5541 # Truncate the target if necessary
5542 if [ x
$host_truncate_target != x
]; then
5543 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
5546 # Configure the subdirectories
5547 # AC_CONFIG_SUBDIRS($subdirs)
5549 # Create the Makefile
5550 # and configure language subdirectories
5552 cat > confcache
<<\EOF
5553 # This file is a shell script that caches the results of configure
5554 # tests run on this system so they can be shared between configure
5555 # scripts and configure runs. It is not useful on other systems.
5556 # If it contains results you don't want to keep, you may remove or edit it.
5558 # By default, configure uses ./config.cache as the cache file,
5559 # creating it if it does not exist already. You can give configure
5560 # the --cache-file=FILE option to use a different cache file; that is
5561 # what configure does when it calls configure scripts in
5562 # subdirectories, so they share the cache.
5563 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5564 # config.status only pays attention to the cache file if you give it the
5565 # --recheck option to rerun configure.
5568 # The following way of writing the cache mishandles newlines in values,
5569 # but we know of no workaround that is simple, portable, and efficient.
5570 # So, don't put newlines in cache variables' values.
5571 # Ultrix sh set writes to stderr and can't be redirected directly,
5572 # and sets the high bit in the cache file unless we assign to the vars.
5574 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
5576 # `set' does not quote correctly, so add quotes (double-quote substitution
5577 # turns \\\\ into \\, and sed turns \\ into \).
5579 -e "s/'/'\\\\''/g" \
5580 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5583 # `set' quotes correctly as required by POSIX, so do not add quotes.
5584 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5587 if cmp -s $cache_file confcache
; then
5590 if test -w $cache_file; then
5591 echo "updating cache $cache_file"
5592 cat confcache
> $cache_file
5594 echo "not updating unwritable cache $cache_file"
5599 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5601 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5602 # Let make expand exec_prefix.
5603 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5605 # Any assignment to VPATH causes Sun make to only execute
5606 # the first set of double-colon rules, so remove it if not needed.
5607 # If there is a colon in the path, we need to keep it.
5608 if test "x$srcdir" = x.
; then
5609 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5612 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5614 DEFS
=-DHAVE_CONFIG_H
5616 # Without the "./", some shells look in PATH for config.status.
5617 : ${CONFIG_STATUS=./config.status}
5619 echo creating
$CONFIG_STATUS
5620 rm -f $CONFIG_STATUS
5621 cat > $CONFIG_STATUS <<EOF
5623 # Generated automatically by configure.
5624 # Run this file to recreate the current configuration.
5625 # This directory was configured as follows,
5626 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5628 # $0 $ac_configure_args
5630 # Compiler output produced by configure, useful for debugging
5631 # configure, is in ./config.log if it exists.
5633 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5636 case "\$ac_option" in
5637 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5638 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5639 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5640 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5641 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
5643 -help | --help | --hel | --he | --h)
5644 echo "\$ac_cs_usage"; exit 0 ;;
5645 *) echo "\$ac_cs_usage"; exit 1 ;;
5649 ac_given_srcdir=$srcdir
5651 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5653 cat >> $CONFIG_STATUS <<EOF
5655 # Protect against being on the right side of a sed subst in config.status.
5656 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5657 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5661 s%@CFLAGS@%$CFLAGS%g
5662 s%@CPPFLAGS@%$CPPFLAGS%g
5663 s%@CXXFLAGS@%$CXXFLAGS%g
5665 s%@LDFLAGS@%$LDFLAGS%g
5667 s%@exec_prefix@%$exec_prefix%g
5668 s%@prefix@%$prefix%g
5669 s%@program_transform_name@%$program_transform_name%g
5670 s%@bindir@%$bindir%g
5671 s%@sbindir@%$sbindir%g
5672 s%@libexecdir@%$libexecdir%g
5673 s%@datadir@%$datadir%g
5674 s%@sysconfdir@%$sysconfdir%g
5675 s%@sharedstatedir@%$sharedstatedir%g
5676 s%@localstatedir@%$localstatedir%g
5677 s%@libdir@%$libdir%g
5678 s%@includedir@%$includedir%g
5679 s%@oldincludedir@%$oldincludedir%g
5680 s%@infodir@%$infodir%g
5681 s%@mandir@%$mandir%g
5683 s%@host_alias@%$host_alias%g
5684 s%@host_cpu@%$host_cpu%g
5685 s%@host_vendor@%$host_vendor%g
5686 s%@host_os@%$host_os%g
5687 s%@target@%$target%g
5688 s%@target_alias@%$target_alias%g
5689 s%@target_cpu@%$target_cpu%g
5690 s%@target_vendor@%$target_vendor%g
5691 s%@target_os@%$target_os%g
5693 s%@build_alias@%$build_alias%g
5694 s%@build_cpu@%$build_cpu%g
5695 s%@build_vendor@%$build_vendor%g
5696 s%@build_os@%$build_os%g
5698 s%@SET_MAKE@%$SET_MAKE%g
5701 s%@LEXLIB@%$LEXLIB%g
5704 s%@RANLIB@%$RANLIB%g
5706 s%@INSTALL@%$INSTALL%g
5707 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5708 s%@INSTALL_DATA@%$INSTALL_DATA%g
5710 s%@vfprintf@%$vfprintf%g
5711 s%@doprint@%$doprint%g
5712 s%@manext@%$manext%g
5713 s%@objext@%$objext%g
5714 s%@gthread_flags@%$gthread_flags%g
5715 s%@build_canonical@%$build_canonical%g
5716 s%@host_canonical@%$host_canonical%g
5717 s%@target_subdir@%$target_subdir%g
5718 s%@inhibit_libc@%$inhibit_libc%g
5719 s%@sched_prefix@%$sched_prefix%g
5720 s%@sched_cflags@%$sched_cflags%g
5721 s%@objdir@%$objdir%g
5722 s%@subdirs@%$subdirs%g
5723 s%@all_languages@%$all_languages%g
5724 s%@all_boot_languages@%$all_boot_languages%g
5725 s%@all_compilers@%$all_compilers%g
5726 s%@all_lang_makefiles@%$all_lang_makefiles%g
5727 s%@all_stagestuff@%$all_stagestuff%g
5728 s%@all_diff_excludes@%$all_diff_excludes%g
5729 s%@all_lib2funcs@%$all_lib2funcs%g
5730 s%@all_headers@%$all_headers%g
5731 s%@cpp_main@%$cpp_main%g
5732 s%@extra_passes@%$extra_passes%g
5733 s%@extra_programs@%$extra_programs%g
5734 s%@extra_parts@%$extra_parts%g
5735 s%@extra_c_objs@%$extra_c_objs%g
5736 s%@extra_cxx_objs@%$extra_cxx_objs%g
5737 s%@extra_c_flags@%$extra_c_flags%g
5738 s%@extra_objs@%$extra_objs%g
5739 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
5740 s%@extra_headers_list@%$extra_headers_list%g
5741 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
5742 s%@dep_tmake_file@%$dep_tmake_file%g
5743 s%@out_file@%$out_file%g
5744 s%@out_object_file@%$out_object_file%g
5745 s%@md_file@%$md_file%g
5746 s%@tm_file_list@%$tm_file_list%g
5747 s%@build_xm_file_list@%$build_xm_file_list%g
5748 s%@host_xm_file_list@%$host_xm_file_list%g
5749 s%@lang_specs_files@%$lang_specs_files%g
5750 s%@lang_options_files@%$lang_options_files%g
5751 s%@thread_file@%$thread_file%g
5752 s%@gcc_version@%$gcc_version%g
5753 s%@gcc_version_trigger@%$gcc_version_trigger%g
5754 s%@local_prefix@%$local_prefix%g
5755 s%@gxx_include_dir@%$gxx_include_dir%g
5756 s%@fixincludes@%$fixincludes%g
5757 s%@build_install_headers_dir@%$build_install_headers_dir%g
5758 s%@build_exeext@%$build_exeext%g
5759 s%@host_exeext@%$host_exeext%g
5760 s%@float_format@%$float_format%g
5761 s%@will_use_collect2@%$will_use_collect2%g
5762 s%@maybe_use_collect2@%$maybe_use_collect2%g
5763 s%@cc_set_by_configure@%$cc_set_by_configure%g
5764 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
5765 s%@install@%$install%g
5766 s%@symbolic_link@%$symbolic_link%g
5767 /@target_overrides@/r $target_overrides
5768 s%@target_overrides@%%g
5769 /@host_overrides@/r $host_overrides
5770 s%@host_overrides@%%g
5771 s%@cross_defines@%$cross_defines%g
5772 /@cross_overrides@/r $cross_overrides
5773 s%@cross_overrides@%%g
5774 /@build_overrides@/r $build_overrides
5775 s%@build_overrides@%%g
5776 /@language_fragments@/r $language_fragments
5777 s%@language_fragments@%%g
5778 /@language_hooks@/r $language_hooks
5779 s%@language_hooks@%%g
5784 cat >> $CONFIG_STATUS <<\EOF
5786 # Split the substitutions into bite-sized pieces for seds with
5787 # small command number limits, like on Digital OSF/1 and HP-UX.
5788 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5789 ac_file
=1 # Number of current file.
5790 ac_beg
=1 # First line for current file.
5791 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5794 while $ac_more_lines; do
5795 if test $ac_beg -gt 1; then
5796 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5798 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5800 if test ! -s conftest.s
$ac_file; then
5802 rm -f conftest.s
$ac_file
5804 if test -z "$ac_sed_cmds"; then
5805 ac_sed_cmds
="sed -f conftest.s$ac_file"
5807 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5809 ac_file
=`expr $ac_file + 1`
5811 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5814 if test -z "$ac_sed_cmds"; then
5819 cat >> $CONFIG_STATUS <<EOF
5821 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
5823 cat >> $CONFIG_STATUS <<\EOF
5824 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5825 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5827 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5828 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5829 *) ac_file_in
="${ac_file}.in" ;;
5832 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5834 # Remove last slash and all that follows it. Not all systems have dirname.
5835 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5836 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5837 # The file is in a subdirectory.
5838 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5839 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5840 # A "../" for each directory in $ac_dir_suffix.
5841 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5843 ac_dir_suffix
= ac_dots
=
5846 case "$ac_given_srcdir" in
5848 if test -z "$ac_dots"; then top_srcdir
=.
5849 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5850 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5852 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5853 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5857 echo creating
"$ac_file"
5859 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5861 *Makefile
*) ac_comsub
="1i\\
5862 # $configure_input" ;;
5866 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5868 s%@configure_input@%$configure_input%g
5869 s%@srcdir@%$srcdir%g
5870 s%@top_srcdir@%$top_srcdir%g
5871 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5875 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5876 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5878 # ac_d sets the value in "#define NAME VALUE" lines.
5879 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5880 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5883 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5884 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5885 ac_uB
='\([ ]\)%\1#\2define\3'
5888 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5889 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5890 ac_eB
='$%\1#\2define\3'
5894 if test "${CONFIG_HEADERS+set}" != set; then
5896 cat >> $CONFIG_STATUS <<EOF
5897 CONFIG_HEADERS="auto-host.h:config.in"
5899 cat >> $CONFIG_STATUS <<\EOF
5901 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5902 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5904 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5905 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5906 *) ac_file_in
="${ac_file}.in" ;;
5909 echo creating
$ac_file
5911 rm -f conftest.frag conftest.
in conftest.out
5912 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5913 cat $ac_file_inputs > conftest.
in
5917 # Transform confdefs.h into a sed script conftest.vals that substitutes
5918 # the proper values into config.h.in to produce config.h. And first:
5919 # Protect against being on the right side of a sed subst in config.status.
5920 # Protect against being in an unquoted here document in config.status.
5922 cat > conftest.hdr
<<\EOF
5925 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5929 sed -n -f conftest.hdr confdefs.h > conftest.vals
5932 # This sed command replaces #undef with comments. This is necessary, for
5933 # example, in the case of _POSIX_SOURCE, which is predefined and required
5934 # on some systems where configure will not decide to define it.
5935 cat >> conftest.vals <<\EOF
5936 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5939 # Break up conftest.vals because some shells have a limit on
5940 # the size of here documents, and old seds have small limits too.
5945 ac_lines=`grep -c . conftest.vals
`
5946 # grep -c gives empty output for an empty file on some AIX systems.
5947 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5948 # Write a limited-size here document to conftest.frag.
5949 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5950 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5952 sed -f conftest.frag conftest.in > conftest.out
5954 mv conftest.out conftest.in
5956 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5958 mv conftest.tail conftest.vals
5962 cat >> $CONFIG_STATUS <<\EOF
5963 rm -f conftest.frag conftest.h
5964 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5965 cat conftest.in >> conftest.h
5967 if cmp -s $ac_file conftest.h 2>/dev/null; then
5968 echo "$ac_file is unchanged"
5971 # Remove last slash and all that follows it. Not all systems have dirname.
5972 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5973 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5974 # The file is in a subdirectory.
5975 test ! -d "$ac_dir" && mkdir "$ac_dir"
5978 mv conftest.h $ac_file
5983 cat >> $CONFIG_STATUS <<EOF
5988 target_alias='${target_alias}'
5990 subdirs='${subdirs}'
5991 oldstyle_subdirs='${oldstyle_subdirs}'
5992 symbolic_link='${symbolic_link}'
5993 program_transform_set='${program_transform_set}'
5994 program_transform_name='${program_transform_name}'
5995 dep_host_xmake_file='${dep_host_xmake_file}'
5996 host_xmake_file='${host_xmake_file}'
5997 dep_tmake_file='${dep_tmake_file}'
5998 tmake_file='${tmake_file}'
5999 thread_file='${thread_file}'
6000 gcc_version='${gcc_version}'
6001 gcc_version_trigger='${gcc_version_trigger}'
6002 local_prefix='${local_prefix}'
6003 build_install_headers_dir='${build_install_headers_dir}'
6004 build_exeext='${build_exeext}'
6005 host_exeext='${host_exeext}'
6006 out_file='${out_file}'
6007 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
6008 SET_MAKE='${SET_MAKE}'
6009 target_list='${target_list}'
6010 target_overrides='${target_overrides}'
6011 host_overrides='${host_overrides}'
6012 cross_defines='${cross_defines}'
6013 cross_overrides='${cross_overrides}'
6014 build_overrides='${build_overrides}'
6017 cat >> $CONFIG_STATUS <<\EOF
6019 . $srcdir/configure.lang
6020 case x$CONFIG_HEADERS in
6021 xauto-host.h:config.in)
6024 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
6025 # bootstrapping and the installation procedure can still use
6026 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
6027 # FLAGS_TO_PASS has been modified to solve the problem there.
6028 # This is virtually a duplicate of what happens in configure.lang; we do
6029 # an extra check to make sure this only happens if ln -s can be used.
6030 if [ "$symbolic_link" = "ln -s" ]; then
6031 for d in .. ${subdirs} ; do
6032 if [ $d != .. ]; then
6035 for t in stage1 stage2 stage3 stage4 include
6038 $symbolic_link ../$t $t 2>/dev/null
6047 chmod +x $CONFIG_STATUS
6048 rm -fr confdefs* $ac_clean_files
6049 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1