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 and C++."
32 --enable-c-mbchar Enable multibyte characters for C and C++."
34 --enable-haifa Use the experimental scheduler.
35 --disable-haifa Don't use the experimental scheduler for the
36 targets which normally enable it."
38 --with-fast-fixincludes Use a faster fixinclude program. Experimental"
40 --enable-init-priority Use attributes to assign initialization order
42 --disable-init-priority Conform to ISO C++ rules for ordering static objects
43 (i.e. initialized in order of declaration). "
45 --enable-threads enable thread usage for target GCC.
46 --enable-threads=LIB use LIB thread package for target GCC."
48 # Initialize some variables set by options.
49 # The variables have the same names as the options, with
50 # dashes changed to underlines.
52 cache_file
=.
/config.cache
61 program_transform_name
=s
,x
,x
,
69 bindir
='${exec_prefix}/bin'
70 sbindir
='${exec_prefix}/sbin'
71 libexecdir
='${exec_prefix}/libexec'
72 datadir
='${prefix}/share'
73 sysconfdir
='${prefix}/etc'
74 sharedstatedir
='${prefix}/com'
75 localstatedir
='${prefix}/var'
76 libdir
='${exec_prefix}/lib'
77 includedir
='${prefix}/include'
78 oldincludedir
='/usr/include'
79 infodir
='${prefix}/info'
80 mandir
='${prefix}/man'
82 # Initialize some other variables.
85 SHELL
=${CONFIG_SHELL-/bin/sh}
86 # Maximum number of lines to put in a shell here document.
93 # If the previous option needs an argument, assign it.
94 if test -n "$ac_prev"; then
95 eval "$ac_prev=\$ac_option"
101 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
105 # Accept the important Cygnus configure options, so we can diagnose typos.
109 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
111 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
112 bindir
="$ac_optarg" ;;
114 -build |
--build |
--buil |
--bui |
--bu)
116 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
117 build
="$ac_optarg" ;;
119 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
120 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
121 ac_prev
=cache_file
;;
122 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
123 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
124 cache_file
="$ac_optarg" ;;
126 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
128 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
130 datadir
="$ac_optarg" ;;
132 -disable-* |
--disable-*)
133 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
134 # Reject names that are not valid shell variable names.
135 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
136 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
138 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
139 eval "enable_${ac_feature}=no" ;;
141 -enable-* |
--enable-*)
142 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
143 # Reject names that are not valid shell variable names.
144 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
145 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
147 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
152 eval "enable_${ac_feature}='$ac_optarg'" ;;
154 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
155 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
156 |
--exec |
--exe |
--ex)
157 ac_prev
=exec_prefix
;;
158 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
159 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
160 |
--exec=* |
--exe=* |
--ex=*)
161 exec_prefix
="$ac_optarg" ;;
163 -gas |
--gas |
--ga |
--g)
164 # Obsolete; use --with-gas.
167 -help |
--help |
--hel |
--he)
168 # Omit some internal or obsolete options to make the list less imposing.
169 # This message is too long to be a string in the A/UX 3.1 sh.
171 Usage: configure [options] [host]
172 Options: [defaults in brackets after descriptions]
174 --cache-file=FILE cache test results in FILE
175 --help print this message
176 --no-create do not create output files
177 --quiet, --silent do not print \`checking...' messages
178 --version print the version of autoconf that created configure
179 Directory and file names:
180 --prefix=PREFIX install architecture-independent files in PREFIX
182 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
184 --bindir=DIR user executables in DIR [EPREFIX/bin]
185 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
186 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
187 --datadir=DIR read-only architecture-independent data in DIR
189 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
190 --sharedstatedir=DIR modifiable architecture-independent data in DIR
192 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
193 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
194 --includedir=DIR C header files in DIR [PREFIX/include]
195 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
196 --infodir=DIR info documentation in DIR [PREFIX/info]
197 --mandir=DIR man documentation in DIR [PREFIX/man]
198 --srcdir=DIR find the sources in DIR [configure dir or ..]
199 --program-prefix=PREFIX prepend PREFIX to installed program names
200 --program-suffix=SUFFIX append SUFFIX to installed program names
201 --program-transform-name=PROGRAM
202 run sed PROGRAM on installed program names
206 --build=BUILD configure for building on BUILD [BUILD=HOST]
207 --host=HOST configure for HOST [guessed]
208 --target=TARGET configure for TARGET [TARGET=HOST]
209 Features and packages:
210 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
211 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
212 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
213 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
214 --x-includes=DIR X include files are in DIR
215 --x-libraries=DIR X library files are in DIR
217 if test -n "$ac_help"; then
218 echo "--enable and --with options recognized:$ac_help"
222 -host |
--host |
--hos |
--ho)
224 -host=* |
--host=* |
--hos=* |
--ho=*)
227 -includedir |
--includedir |
--includedi |
--included |
--include \
228 |
--includ |
--inclu |
--incl |
--inc)
229 ac_prev
=includedir
;;
230 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
231 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
232 includedir
="$ac_optarg" ;;
234 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
236 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
237 infodir
="$ac_optarg" ;;
239 -libdir |
--libdir |
--libdi |
--libd)
241 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
242 libdir
="$ac_optarg" ;;
244 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
245 |
--libexe |
--libex |
--libe)
246 ac_prev
=libexecdir
;;
247 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
248 |
--libexe=* |
--libex=* |
--libe=*)
249 libexecdir
="$ac_optarg" ;;
251 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
252 |
--localstate |
--localstat |
--localsta |
--localst \
253 |
--locals |
--local |
--loca |
--loc |
--lo)
254 ac_prev
=localstatedir
;;
255 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
256 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
257 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
258 localstatedir
="$ac_optarg" ;;
260 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
262 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
263 mandir
="$ac_optarg" ;;
266 # Obsolete; use --without-fp.
269 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
273 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
274 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
277 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
278 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
279 |
--oldin |
--oldi |
--old |
--ol |
--o)
280 ac_prev
=oldincludedir
;;
281 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
282 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
283 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
284 oldincludedir
="$ac_optarg" ;;
286 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
288 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
289 prefix
="$ac_optarg" ;;
291 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
292 |
--program-pre |
--program-pr |
--program-p)
293 ac_prev
=program_prefix
;;
294 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
295 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
296 program_prefix
="$ac_optarg" ;;
298 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
299 |
--program-suf |
--program-su |
--program-s)
300 ac_prev
=program_suffix
;;
301 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
302 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
303 program_suffix
="$ac_optarg" ;;
305 -program-transform-name |
--program-transform-name \
306 |
--program-transform-nam |
--program-transform-na \
307 |
--program-transform-n |
--program-transform- \
308 |
--program-transform |
--program-transfor \
309 |
--program-transfo |
--program-transf \
310 |
--program-trans |
--program-tran \
311 |
--progr-tra |
--program-tr |
--program-t)
312 ac_prev
=program_transform_name
;;
313 -program-transform-name=* |
--program-transform-name=* \
314 |
--program-transform-nam=* |
--program-transform-na=* \
315 |
--program-transform-n=* |
--program-transform-=* \
316 |
--program-transform=* |
--program-transfor=* \
317 |
--program-transfo=* |
--program-transf=* \
318 |
--program-trans=* |
--program-tran=* \
319 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
320 program_transform_name
="$ac_optarg" ;;
322 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
323 |
-silent |
--silent |
--silen |
--sile |
--sil)
326 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
328 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
330 sbindir
="$ac_optarg" ;;
332 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
333 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
334 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
336 ac_prev
=sharedstatedir
;;
337 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
338 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
339 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
341 sharedstatedir
="$ac_optarg" ;;
343 -site |
--site |
--sit)
345 -site=* |
--site=* |
--sit=*)
348 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
350 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
351 srcdir
="$ac_optarg" ;;
353 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
354 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
355 ac_prev
=sysconfdir
;;
356 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
357 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
358 sysconfdir
="$ac_optarg" ;;
360 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
362 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
363 target
="$ac_optarg" ;;
365 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
368 -version |
--version |
--versio |
--versi |
--vers)
369 echo "configure generated by autoconf version 2.12.1"
373 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
374 # Reject names that are not valid shell variable names.
375 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
376 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
378 ac_package
=`echo $ac_package| sed 's/-/_/g'`
383 eval "with_${ac_package}='$ac_optarg'" ;;
385 -without-* |
--without-*)
386 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
387 # Reject names that are not valid shell variable names.
388 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
389 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
391 ac_package
=`echo $ac_package| sed 's/-/_/g'`
392 eval "with_${ac_package}=no" ;;
395 # Obsolete; use --with-x.
398 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
399 |
--x-incl |
--x-inc |
--x-in |
--x-i)
400 ac_prev
=x_includes
;;
401 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
402 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
403 x_includes
="$ac_optarg" ;;
405 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
406 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
407 ac_prev
=x_libraries
;;
408 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
409 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
410 x_libraries
="$ac_optarg" ;;
412 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
416 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
417 echo "configure: warning: $ac_option: invalid host type" 1>&2
419 if test "x$nonopt" != xNONE
; then
420 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
428 if test -n "$ac_prev"; then
429 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
432 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
434 # File descriptor usage:
437 # 2 errors and warnings
438 # 3 some systems may open it to /dev/tty
439 # 4 used on the Kubota Titan
440 # 6 checking for... messages and results
441 # 5 compiler messages saved in config.log
442 if test "$silent" = yes; then
450 This file contains any messages produced by compilers while
451 running configure, to aid debugging if configure makes a mistake.
454 # Strip out --no-create and --no-recursion so they do not pile up.
455 # Also quote any args containing shell metacharacters.
460 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
461 |
--no-cr |
--no-c) ;;
462 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
463 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
464 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
465 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
466 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
471 # Only set these to C if already set. These must not be set unconditionally
472 # because not all systems understand e.g. LANG=C (notably SCO).
473 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
474 # Non-C LC_CTYPE values break the ctype check.
475 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
476 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
477 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
478 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
480 # confdefs.h avoids OS command line length limits that DEFS can exceed.
481 rm -rf conftest
* confdefs.h
482 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
485 # A filename unique to this package, relative to the directory that
486 # configure is in, which we can look for to find out if srcdir is correct.
487 ac_unique_file
=tree.c
489 # Find the source files, if location was not specified.
490 if test -z "$srcdir"; then
491 ac_srcdir_defaulted
=yes
492 # Try the directory containing this script, then its parent.
494 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
495 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
497 if test ! -r $srcdir/$ac_unique_file; then
501 ac_srcdir_defaulted
=no
503 if test ! -r $srcdir/$ac_unique_file; then
504 if test "$ac_srcdir_defaulted" = yes; then
505 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
507 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
510 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
512 # Prefer explicitly selected file to automatically selected ones.
513 if test -z "$CONFIG_SITE"; then
514 if test "x$prefix" != xNONE
; then
515 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
517 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
520 for ac_site_file
in $CONFIG_SITE; do
521 if test -r "$ac_site_file"; then
522 echo "loading site script $ac_site_file"
527 if test -r "$cache_file"; then
528 echo "loading cache $cache_file"
531 echo "creating cache $cache_file"
536 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
537 ac_cpp
='$CPP $CPPFLAGS'
538 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
539 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
540 cross_compiling
=$ac_cv_prog_cc_cross
542 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
543 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
544 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
551 ac_n
= ac_c
='\c' ac_t
=
559 symbolic_link
='ln -s'
562 # Check for additional parameters
565 # Check whether --with-gnu-ld or --without-gnu-ld was given.
566 if test "${with_gnu_ld+set}" = set; then
567 withval
="$with_gnu_ld"
568 gnu_ld_flag
="$with_gnu_ld"
575 # Check whether --with-gnu-as or --without-gnu-as was given.
576 if test "${with_gnu_as+set}" = set; then
577 withval
="$with_gnu_as"
578 gas_flag
="$with_gnu_as"
585 # Check whether --with-stabs or --without-stabs was given.
586 if test "${with_stabs+set}" = set; then
587 withval
="$with_stabs"
595 # Check whether --with-elf or --without-elf was given.
596 if test "${with_elf+set}" = set; then
604 # Specify the local prefix
606 # Check whether --with-local-prefix or --without-local-prefix was given.
607 if test "${with_local_prefix+set}" = set; then
608 withval
="$with_local_prefix"
610 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
612 *) local_prefix
=$with_local_prefix ;;
617 # Default local prefix if it is empty
618 if test x
$local_prefix = x
; then
619 local_prefix
=/usr
/local
623 # Specify the g++ header file directory
624 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
625 if test "${with_gxx_include_dir+set}" = set; then
626 withval
="$with_gxx_include_dir"
628 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
630 *) gxx_include_dir
=$with_gxx_include_dir ;;
635 if test x
${gxx_include_dir} = x
; then
636 if test x
${enable_version_specific_runtime_libs} = xyes
; then
637 gxx_include_dir
='${libsubdir}/include/g++'
639 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
640 gxx_include_dir
='${prefix}/include/g++'-${libstdcxx_interface}
644 # Enable expensive internal checks
645 # Check whether --enable-checking or --disable-checking was given.
646 if test "${enable_checking+set}" = set; then
647 enableval
="$enable_checking"
648 case "${enableval}" in
649 yes) cat >> confdefs.h
<<\EOF
650 #define ENABLE_CHECKING 1
654 *) { echo "configure: error: bad value ${enableval} given for checking option" 1>&2; exit 1; } ;;
659 # Enable use of cpplib for C.
661 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
662 if test "${enable_c_cpplib+set}" = set; then
663 enableval
="$enable_c_cpplib"
664 if test x
$enable_c_cpplib != xno
; then
665 extra_c_objs
="${extra_c_objs} cpplib.o cppexp.o cpphash.o cpperror.o"
666 extra_c_objs
="${extra_c_objs} prefix.o"
667 extra_cxx_objs
="${extra_cxx_objs} ../cpplib.o ../cppexp.o ../cpphash.o ../cpperror.o ../prefix.o"
668 extra_c_flags
=-DUSE_CPPLIB=1
674 # Enable Multibyte Characters for C/C++
675 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
676 if test "${enable_c_mbchar+set}" = set; then
677 enableval
="$enable_c_mbchar"
678 if test x
$enable_c_mbchar != xno
; then
679 extra_c_flags
=-DMULTIBYTE_CHARS=1
684 # Enable Haifa scheduler.
685 # Check whether --enable-haifa or --disable-haifa was given.
686 if test "${enable_haifa+set}" = set; then
687 enableval
="$enable_haifa"
693 # This is a work in progress...
694 # Check whether --with-fast-fixincludes or --without-fast-fixincludes was given.
695 if test "${with_fast_fixincludes+set}" = set; then
696 withval
="$with_fast_fixincludes"
697 fast_fixinc
="$with_fast_fixincludes"
703 # Enable init_priority.
704 # Check whether --enable-init-priority or --disable-init-priority was given.
705 if test "${enable_init_priority+set}" = set; then
706 enableval
="$enable_init_priority"
707 if test x
$enable_init_priority != xno
; then
708 extra_c_flags
=-DUSE_INIT_PRIORITY
714 # Pass with no value to take the default
715 # Pass with a value to specify a thread package
716 # Check whether --enable-threads or --disable-threads was given.
717 if test "${enable_threads+set}" = set; then
718 enableval
="$enable_threads"
719 if test x
$enable_threads = xno
; then
727 enable_threads_flag
=$enable_threads
728 # Check if a valid thread package
729 case x
${enable_threads_flag} in
732 target_thread_file
='single'
736 target_thread_file
=''
738 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
739 xsolaris | xwin32 | xdce | xvxworks
)
740 target_thread_file
=$enable_threads_flag
743 echo "$enable_threads is an unknown thread package" 1>&2
748 # Determine the host, build, and target systems
750 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
751 if test -f $ac_dir/install-sh
; then
753 ac_install_sh
="$ac_aux_dir/install-sh -c"
755 elif test -f $ac_dir/install.sh
; then
757 ac_install_sh
="$ac_aux_dir/install.sh -c"
761 if test -z "$ac_aux_dir"; then
762 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
764 ac_config_guess
=$ac_aux_dir/config.guess
765 ac_config_sub
=$ac_aux_dir/config.sub
766 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
769 # Do some error checking and defaulting for the host and target type.
771 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
774 # 1. You are not allowed to specify --host, --target, and nonopt at the
776 # 2. Host defaults to nonopt.
777 # 3. If nonopt is not specified, then host defaults to the current host,
778 # as determined by config.guess.
779 # 4. Target and build default to nonopt.
780 # 5. If nonopt is not specified, then target and build default to host.
782 # The aliases save the names the user supplied, while $host etc.
783 # will get canonicalized.
784 case $host---$target---$nonopt in
785 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
786 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
790 # Make sure we can run config.sub.
791 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
792 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
795 echo $ac_n "checking host system type""... $ac_c" 1>&6
796 echo "configure:797: checking host system type" >&5
799 case "$host_alias" in
803 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
804 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
806 *) host_alias
=$nonopt ;;
810 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
811 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
812 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
813 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
814 echo "$ac_t""$host" 1>&6
816 echo $ac_n "checking target system type""... $ac_c" 1>&6
817 echo "configure:818: checking target system type" >&5
820 case "$target_alias" in
823 NONE
) target_alias
=$host_alias ;;
824 *) target_alias
=$nonopt ;;
828 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
829 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
830 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
831 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
832 echo "$ac_t""$target" 1>&6
834 echo $ac_n "checking build system type""... $ac_c" 1>&6
835 echo "configure:836: checking build system type" >&5
838 case "$build_alias" in
841 NONE
) build_alias
=$host_alias ;;
842 *) build_alias
=$nonopt ;;
846 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
847 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
848 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
849 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
850 echo "$ac_t""$build" 1>&6
852 test "$host_alias" != "$target_alias" &&
853 test "$program_prefix$program_suffix$program_transform_name" = \
855 program_prefix
=${target_alias}-
858 # Find the native compiler
859 # Extract the first word of "gcc", so it can be a program name with args.
860 set dummy gcc
; ac_word
=$2
861 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
862 echo "configure:863: checking for $ac_word" >&5
863 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
864 echo $ac_n "(cached) $ac_c" 1>&6
866 if test -n "$CC"; then
867 ac_cv_prog_CC
="$CC" # Let the user override the test.
869 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
870 for ac_dir
in $PATH; do
871 test -z "$ac_dir" && ac_dir
=.
872 if test -f $ac_dir/$ac_word; then
881 if test -n "$CC"; then
882 echo "$ac_t""$CC" 1>&6
884 echo "$ac_t""no" 1>&6
887 if test -z "$CC"; then
888 # Extract the first word of "cc", so it can be a program name with args.
889 set dummy cc
; ac_word
=$2
890 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
891 echo "configure:892: checking for $ac_word" >&5
892 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
893 echo $ac_n "(cached) $ac_c" 1>&6
895 if test -n "$CC"; then
896 ac_cv_prog_CC
="$CC" # Let the user override the test.
898 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
900 for ac_dir
in $PATH; do
901 test -z "$ac_dir" && ac_dir
=.
902 if test -f $ac_dir/$ac_word; then
903 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
912 if test $ac_prog_rejected = yes; then
913 # We found a bogon in the path, so make sure we never use it.
914 set dummy
$ac_cv_prog_CC
916 if test $# -gt 0; then
917 # We chose a different compiler from the bogus one.
918 # However, it has the same basename, so the bogon will be chosen
919 # first if we set CC to just the basename; use the full file name.
921 set dummy
"$ac_dir/$ac_word" "$@"
929 if test -n "$CC"; then
930 echo "$ac_t""$CC" 1>&6
932 echo "$ac_t""no" 1>&6
935 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
938 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
939 echo "configure:940: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
942 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
943 ac_cpp
='$CPP $CPPFLAGS'
944 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
945 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
946 cross_compiling
=$ac_cv_prog_cc_cross
948 cat > conftest.
$ac_ext <<EOF
949 #line 950 "configure"
950 #include "confdefs.h"
953 if { (eval echo configure
:954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
954 ac_cv_prog_cc_works
=yes
955 # If we can't run a trivial program, we are probably using a cross compiler.
956 if (.
/conftest
; exit) 2>/dev
/null
; then
957 ac_cv_prog_cc_cross
=no
959 ac_cv_prog_cc_cross
=yes
962 echo "configure: failed program was:" >&5
963 cat conftest.
$ac_ext >&5
964 ac_cv_prog_cc_works
=no
968 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
969 if test $ac_cv_prog_cc_works = no
; then
970 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
972 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
973 echo "configure:974: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
974 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
975 cross_compiling
=$ac_cv_prog_cc_cross
977 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
978 echo "configure:979: checking whether we are using GNU C" >&5
979 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
980 echo $ac_n "(cached) $ac_c" 1>&6
982 cat > conftest.c
<<EOF
987 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
994 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
996 if test $ac_cv_prog_gcc = yes; then
998 ac_test_CFLAGS
="${CFLAGS+set}"
999 ac_save_CFLAGS
="$CFLAGS"
1001 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1002 echo "configure:1003: checking whether ${CC-cc} accepts -g" >&5
1003 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1004 echo $ac_n "(cached) $ac_c" 1>&6
1006 echo 'void f(){}' > conftest.c
1007 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1016 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1017 if test "$ac_test_CFLAGS" = set; then
1018 CFLAGS
="$ac_save_CFLAGS"
1019 elif test $ac_cv_prog_cc_g = yes; then
1026 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1030 # If the native compiler is GCC, we can enable warnings even in stage1.
1031 # That's useful for people building cross-compilers, or just running a
1033 if test "x$GCC" = "xyes"; then
1034 stage1_warn_cflags
='$(WARN_CFLAGS)'
1036 stage1_warn_cflags
=""
1040 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1041 echo "configure:1042: checking whether ${MAKE-make} sets \${MAKE}" >&5
1042 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1043 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1044 echo $ac_n "(cached) $ac_c" 1>&6
1046 cat > conftestmake
<<\EOF
1048 @
echo 'ac_maketemp="${MAKE}"'
1050 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1051 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1052 if test -n "$ac_maketemp"; then
1053 eval ac_cv_prog_make_
${ac_make}_set
=yes
1055 eval ac_cv_prog_make_
${ac_make}_set
=no
1059 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1060 echo "$ac_t""yes" 1>&6
1063 echo "$ac_t""no" 1>&6
1064 SET_MAKE
="MAKE=${MAKE-make}"
1068 # Find some useful tools
1069 for ac_prog
in mawk gawk nawk
awk
1071 # Extract the first word of "$ac_prog", so it can be a program name with args.
1072 set dummy
$ac_prog; ac_word
=$2
1073 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1074 echo "configure:1075: checking for $ac_word" >&5
1075 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1076 echo $ac_n "(cached) $ac_c" 1>&6
1078 if test -n "$AWK"; then
1079 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1081 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1082 for ac_dir
in $PATH; do
1083 test -z "$ac_dir" && ac_dir
=.
1084 if test -f $ac_dir/$ac_word; then
1085 ac_cv_prog_AWK
="$ac_prog"
1092 AWK
="$ac_cv_prog_AWK"
1093 if test -n "$AWK"; then
1094 echo "$ac_t""$AWK" 1>&6
1096 echo "$ac_t""no" 1>&6
1099 test -n "$AWK" && break
1102 # Extract the first word of "flex", so it can be a program name with args.
1103 set dummy flex
; ac_word
=$2
1104 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1105 echo "configure:1106: checking for $ac_word" >&5
1106 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1107 echo $ac_n "(cached) $ac_c" 1>&6
1109 if test -n "$LEX"; then
1110 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1112 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1113 for ac_dir
in $PATH; do
1114 test -z "$ac_dir" && ac_dir
=.
1115 if test -f $ac_dir/$ac_word; then
1116 ac_cv_prog_LEX
="flex"
1121 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1124 LEX
="$ac_cv_prog_LEX"
1125 if test -n "$LEX"; then
1126 echo "$ac_t""$LEX" 1>&6
1128 echo "$ac_t""no" 1>&6
1131 if test -z "$LEXLIB"
1137 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1138 echo "configure:1139: checking for yywrap in -l$ac_lib" >&5
1139 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1140 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1141 echo $ac_n "(cached) $ac_c" 1>&6
1143 ac_save_LIBS
="$LIBS"
1144 LIBS
="-l$ac_lib $LIBS"
1145 cat > conftest.
$ac_ext <<EOF
1146 #line 1147 "configure"
1147 #include "confdefs.h"
1148 /* Override any gcc2 internal prototype to avoid an error. */
1149 /* We use char because int might match the return type of a gcc2
1150 builtin and then its argument prototype would still apply. */
1157 if { (eval echo configure
:1158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1159 eval "ac_cv_lib_$ac_lib_var=yes"
1161 echo "configure: failed program was:" >&5
1162 cat conftest.
$ac_ext >&5
1164 eval "ac_cv_lib_$ac_lib_var=no"
1167 LIBS
="$ac_save_LIBS"
1170 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1171 echo "$ac_t""yes" 1>&6
1174 echo "$ac_t""no" 1>&6
1179 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1180 echo "configure:1181: checking whether ln works" >&5
1181 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1182 echo $ac_n "(cached) $ac_c" 1>&6
1184 rm -f conftestdata_t
1185 echo >conftestdata_f
1186 if ln conftestdata_f conftestdata_t
2>/dev
/null
1190 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1192 gcc_cv_prog_LN
="ln -s"
1197 rm -f conftestdata_f conftestdata_t
1200 LN
="$gcc_cv_prog_LN"
1201 if test "$gcc_cv_prog_LN" = "ln"; then
1202 echo "$ac_t""yes" 1>&6
1204 if test "$gcc_cv_prog_LN" = "ln -s"; then
1205 echo "$ac_t""no, using ln -s" 1>&6
1207 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1211 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1212 echo "configure:1213: checking whether ln -s works" >&5
1213 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1214 echo $ac_n "(cached) $ac_c" 1>&6
1216 rm -f conftestdata_t
1217 echo >conftestdata_f
1218 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1220 gcc_cv_prog_LN_S
="ln -s"
1222 if ln conftestdata_f conftestdata_t
2>/dev
/null
1229 rm -f conftestdata_f conftestdata_t
1232 LN_S
="$gcc_cv_prog_LN_S"
1233 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1234 echo "$ac_t""yes" 1>&6
1236 if test "$gcc_cv_prog_LN_S" = "ln"; then
1237 echo "$ac_t""no, using ln" 1>&6
1239 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1243 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1244 echo "configure:1245: checking for volatile" >&5
1245 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1246 echo $ac_n "(cached) $ac_c" 1>&6
1248 cat > conftest.
$ac_ext <<EOF
1249 #line 1250 "configure"
1250 #include "confdefs.h"
1256 if { (eval echo configure
:1257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1258 gcc_cv_c_volatile
=yes
1260 echo "configure: failed program was:" >&5
1261 cat conftest.
$ac_ext >&5
1263 gcc_cv_c_volatile
=no
1268 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1269 if test $gcc_cv_c_volatile = yes ; then
1270 cat >> confdefs.h
<<\EOF
1271 #define HAVE_VOLATILE 1
1276 # Extract the first word of "ranlib", so it can be a program name with args.
1277 set dummy ranlib
; ac_word
=$2
1278 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1279 echo "configure:1280: checking for $ac_word" >&5
1280 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1281 echo $ac_n "(cached) $ac_c" 1>&6
1283 if test -n "$RANLIB"; then
1284 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1286 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1287 for ac_dir
in $PATH; do
1288 test -z "$ac_dir" && ac_dir
=.
1289 if test -f $ac_dir/$ac_word; then
1290 ac_cv_prog_RANLIB
="ranlib"
1295 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1298 RANLIB
="$ac_cv_prog_RANLIB"
1299 if test -n "$RANLIB"; then
1300 echo "$ac_t""$RANLIB" 1>&6
1302 echo "$ac_t""no" 1>&6
1305 for ac_prog
in 'bison -y' byacc
1307 # Extract the first word of "$ac_prog", so it can be a program name with args.
1308 set dummy
$ac_prog; ac_word
=$2
1309 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1310 echo "configure:1311: checking for $ac_word" >&5
1311 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1312 echo $ac_n "(cached) $ac_c" 1>&6
1314 if test -n "$YACC"; then
1315 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1317 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1318 for ac_dir
in $PATH; do
1319 test -z "$ac_dir" && ac_dir
=.
1320 if test -f $ac_dir/$ac_word; then
1321 ac_cv_prog_YACC
="$ac_prog"
1328 YACC
="$ac_cv_prog_YACC"
1329 if test -n "$YACC"; then
1330 echo "$ac_t""$YACC" 1>&6
1332 echo "$ac_t""no" 1>&6
1335 test -n "$YACC" && break
1337 test -n "$YACC" || YACC
="yacc"
1339 # Find a good install program. We prefer a C program (faster),
1340 # so one script is as good as another. But avoid the broken or
1341 # incompatible versions:
1342 # SysV /etc/install, /usr/sbin/install
1343 # SunOS /usr/etc/install
1344 # IRIX /sbin/install
1346 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1347 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1348 # ./install, which can be erroneously created by make from ./install.sh.
1349 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1350 echo "configure:1351: checking for a BSD compatible install" >&5
1351 if test -z "$INSTALL"; then
1352 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1353 echo $ac_n "(cached) $ac_c" 1>&6
1355 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1356 for ac_dir
in $PATH; do
1357 # Account for people who put trailing slashes in PATH elements.
1359 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1361 # OSF1 and SCO ODT 3.0 have their own names for install.
1362 for ac_prog
in ginstall scoinst
install; do
1363 if test -f $ac_dir/$ac_prog; then
1364 if test $ac_prog = install &&
1365 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1366 # AIX install. It has an incompatible calling convention.
1367 # OSF/1 installbsd also uses dspmsg, but is usable.
1370 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1381 if test "${ac_cv_path_install+set}" = set; then
1382 INSTALL
="$ac_cv_path_install"
1384 # As a last resort, use the slow shell script. We don't cache a
1385 # path for INSTALL within a source directory, because that will
1386 # break other packages using the cache if that directory is
1387 # removed, or if the path is relative.
1388 INSTALL
="$ac_install_sh"
1391 echo "$ac_t""$INSTALL" 1>&6
1393 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1394 # It thinks the first close brace ends the variable substitution.
1395 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1397 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1400 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1401 echo "configure:1402: checking how to run the C preprocessor" >&5
1402 # On Suns, sometimes $CPP names a directory.
1403 if test -n "$CPP" && test -d "$CPP"; then
1406 if test -z "$CPP"; then
1407 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1408 echo $ac_n "(cached) $ac_c" 1>&6
1410 # This must be in double quotes, not single quotes, because CPP may get
1411 # substituted into the Makefile and "${CC-cc}" will confuse make.
1413 # On the NeXT, cc -E runs the code through the compiler's parser,
1414 # not just through cpp.
1415 cat > conftest.
$ac_ext <<EOF
1416 #line 1417 "configure"
1417 #include "confdefs.h"
1421 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1422 { (eval echo configure
:1423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1423 ac_err
=`grep -v '^ *+' conftest.out`
1424 if test -z "$ac_err"; then
1428 echo "configure: failed program was:" >&5
1429 cat conftest.
$ac_ext >&5
1431 CPP
="${CC-cc} -E -traditional-cpp"
1432 cat > conftest.
$ac_ext <<EOF
1433 #line 1434 "configure"
1434 #include "confdefs.h"
1438 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1439 { (eval echo configure
:1440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1440 ac_err
=`grep -v '^ *+' conftest.out`
1441 if test -z "$ac_err"; then
1445 echo "configure: failed program was:" >&5
1446 cat conftest.
$ac_ext >&5
1453 ac_cv_prog_CPP
="$CPP"
1455 CPP
="$ac_cv_prog_CPP"
1457 ac_cv_prog_CPP
="$CPP"
1459 echo "$ac_t""$CPP" 1>&6
1461 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1462 echo "configure:1463: checking for ANSI C header files" >&5
1463 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1464 echo $ac_n "(cached) $ac_c" 1>&6
1466 cat > conftest.
$ac_ext <<EOF
1467 #line 1468 "configure"
1468 #include "confdefs.h"
1474 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1475 { (eval echo configure
:1476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1476 ac_err
=`grep -v '^ *+' conftest.out`
1477 if test -z "$ac_err"; then
1479 ac_cv_header_stdc
=yes
1482 echo "configure: failed program was:" >&5
1483 cat conftest.
$ac_ext >&5
1485 ac_cv_header_stdc
=no
1489 if test $ac_cv_header_stdc = yes; then
1490 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1491 cat > conftest.
$ac_ext <<EOF
1492 #line 1493 "configure"
1493 #include "confdefs.h"
1496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1497 egrep "memchr" >/dev
/null
2>&1; then
1501 ac_cv_header_stdc
=no
1507 if test $ac_cv_header_stdc = yes; then
1508 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1509 cat > conftest.
$ac_ext <<EOF
1510 #line 1511 "configure"
1511 #include "confdefs.h"
1514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1515 egrep "free" >/dev
/null
2>&1; then
1519 ac_cv_header_stdc
=no
1525 if test $ac_cv_header_stdc = yes; then
1526 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1527 if test "$cross_compiling" = yes; then
1530 cat > conftest.
$ac_ext <<EOF
1531 #line 1532 "configure"
1532 #include "confdefs.h"
1534 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1535 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1536 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1537 int main () { int i; for (i = 0; i < 256; i++)
1538 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1542 if { (eval echo configure
:1543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1546 echo "configure: failed program was:" >&5
1547 cat conftest.
$ac_ext >&5
1549 ac_cv_header_stdc
=no
1557 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1558 if test $ac_cv_header_stdc = yes; then
1559 cat >> confdefs.h
<<\EOF
1560 #define STDC_HEADERS 1
1565 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1566 echo "configure:1567: checking whether time.h and sys/time.h may both be included" >&5
1567 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1568 echo $ac_n "(cached) $ac_c" 1>&6
1570 cat > conftest.
$ac_ext <<EOF
1571 #line 1572 "configure"
1572 #include "confdefs.h"
1573 #include <sys/types.h>
1574 #include <sys/time.h>
1580 if { (eval echo configure
:1581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1582 ac_cv_header_time
=yes
1584 echo "configure: failed program was:" >&5
1585 cat conftest.
$ac_ext >&5
1587 ac_cv_header_time
=no
1592 echo "$ac_t""$ac_cv_header_time" 1>&6
1593 if test $ac_cv_header_time = yes; then
1594 cat >> confdefs.h
<<\EOF
1595 #define TIME_WITH_SYS_TIME 1
1600 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
1602 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1603 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1604 echo "configure:1605: checking for $ac_hdr" >&5
1605 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1606 echo $ac_n "(cached) $ac_c" 1>&6
1608 cat > conftest.
$ac_ext <<EOF
1609 #line 1610 "configure"
1610 #include "confdefs.h"
1613 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1614 { (eval echo configure
:1615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1615 ac_err
=`grep -v '^ *+' conftest.out`
1616 if test -z "$ac_err"; then
1618 eval "ac_cv_header_$ac_safe=yes"
1621 echo "configure: failed program was:" >&5
1622 cat conftest.
$ac_ext >&5
1624 eval "ac_cv_header_$ac_safe=no"
1628 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1629 echo "$ac_t""yes" 1>&6
1630 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1631 cat >> confdefs.h
<<EOF
1632 #define $ac_tr_hdr 1
1636 echo "$ac_t""no" 1>&6
1641 # Check for thread headers.
1642 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
1643 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
1644 echo "configure:1645: checking for thread.h" >&5
1645 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1646 echo $ac_n "(cached) $ac_c" 1>&6
1648 cat > conftest.
$ac_ext <<EOF
1649 #line 1650 "configure"
1650 #include "confdefs.h"
1653 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1654 { (eval echo configure
:1655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1655 ac_err
=`grep -v '^ *+' conftest.out`
1656 if test -z "$ac_err"; then
1658 eval "ac_cv_header_$ac_safe=yes"
1661 echo "configure: failed program was:" >&5
1662 cat conftest.
$ac_ext >&5
1664 eval "ac_cv_header_$ac_safe=no"
1668 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1669 echo "$ac_t""yes" 1>&6
1672 echo "$ac_t""no" 1>&6
1676 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
1677 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
1678 echo "configure:1679: checking for pthread.h" >&5
1679 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1680 echo $ac_n "(cached) $ac_c" 1>&6
1682 cat > conftest.
$ac_ext <<EOF
1683 #line 1684 "configure"
1684 #include "confdefs.h"
1685 #include <pthread.h>
1687 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1688 { (eval echo configure
:1689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1689 ac_err
=`grep -v '^ *+' conftest.out`
1690 if test -z "$ac_err"; then
1692 eval "ac_cv_header_$ac_safe=yes"
1695 echo "configure: failed program was:" >&5
1696 cat conftest.
$ac_ext >&5
1698 eval "ac_cv_header_$ac_safe=no"
1702 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1703 echo "$ac_t""yes" 1>&6
1706 echo "$ac_t""no" 1>&6
1711 # See if the system preprocessor understands the ANSI C preprocessor
1712 # stringification operator.
1713 echo $ac_n "checking whether cpp understands the stringify operator""... $ac_c" 1>&6
1714 echo "configure:1715: checking whether cpp understands the stringify operator" >&5
1715 if eval "test \"`echo '$''{'gcc_cv_c_have_stringify'+set}'`\" = set"; then
1716 echo $ac_n "(cached) $ac_c" 1>&6
1718 cat > conftest.
$ac_ext <<EOF
1719 #line 1720 "configure"
1720 #include "confdefs.h"
1724 char *test = S(foo);
1727 if { (eval echo configure
:1728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1729 gcc_cv_c_have_stringify
=yes
1731 echo "configure: failed program was:" >&5
1732 cat conftest.
$ac_ext >&5
1734 gcc_cv_c_have_stringify
=no
1739 echo "$ac_t""$gcc_cv_c_have_stringify" 1>&6
1740 if test $gcc_cv_c_have_stringify = yes; then
1741 cat >> confdefs.h
<<\EOF
1742 #define HAVE_CPP_STRINGIFY 1
1747 # Use <inttypes.h> only if it exists,
1748 # doesn't clash with <sys/types.h>, and declares intmax_t.
1749 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
1750 echo "configure:1751: checking for inttypes.h" >&5
1751 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
1752 echo $ac_n "(cached) $ac_c" 1>&6
1754 cat > conftest.
$ac_ext <<EOF
1755 #line 1756 "configure"
1756 #include "confdefs.h"
1757 #include <sys/types.h>
1758 #include <inttypes.h>
1763 if { (eval echo configure
:1764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1765 cat >> confdefs.h
<<EOF
1766 #define HAVE_INTTYPES_H 1
1769 gcc_cv_header_inttypes_h
=yes
1771 echo "configure: failed program was:" >&5
1772 cat conftest.
$ac_ext >&5
1774 gcc_cv_header_inttypes_h
=no
1779 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
1781 for ac_func
in strtoul bsearch strerror putenv popen bcopy bzero bcmp \
1782 index rindex strchr strrchr
kill getrlimit setrlimit atoll atoq \
1783 sysconf isascii gettimeofday
1785 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1786 echo "configure:1787: checking for $ac_func" >&5
1787 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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 $ac_func(); 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_$ac_func) || defined (__stub___$ac_func)
1814 if { (eval echo configure
:1815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1816 eval "ac_cv_func_$ac_func=yes"
1818 echo "configure: failed program was:" >&5
1819 cat conftest.
$ac_ext >&5
1821 eval "ac_cv_func_$ac_func=no"
1826 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1827 echo "$ac_t""yes" 1>&6
1828 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1829 cat >> confdefs.h
<<EOF
1830 #define $ac_tr_func 1
1834 echo "$ac_t""no" 1>&6
1839 # Make sure wchar_t is available
1840 #AC_CHECK_TYPE(wchar_t, unsigned int)
1842 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1843 echo "configure:1844: checking for vprintf" >&5
1844 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1845 echo $ac_n "(cached) $ac_c" 1>&6
1847 cat > conftest.
$ac_ext <<EOF
1848 #line 1849 "configure"
1849 #include "confdefs.h"
1850 /* System header to define __stub macros and hopefully few prototypes,
1851 which can conflict with char vprintf(); below. */
1853 /* Override any gcc2 internal prototype to avoid an error. */
1854 /* We use char because int might match the return type of a gcc2
1855 builtin and then its argument prototype would still apply. */
1860 /* The GNU C library defines this for functions which it implements
1861 to always fail with ENOSYS. Some functions are actually named
1862 something starting with __ and the normal name is an alias. */
1863 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1871 if { (eval echo configure
:1872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1873 eval "ac_cv_func_vprintf=yes"
1875 echo "configure: failed program was:" >&5
1876 cat conftest.
$ac_ext >&5
1878 eval "ac_cv_func_vprintf=no"
1883 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1884 echo "$ac_t""yes" 1>&6
1885 cat >> confdefs.h
<<\EOF
1886 #define HAVE_VPRINTF 1
1890 echo "$ac_t""no" 1>&6
1893 if test "$ac_cv_func_vprintf" != yes; then
1894 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1895 echo "configure:1896: checking for _doprnt" >&5
1896 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1897 echo $ac_n "(cached) $ac_c" 1>&6
1899 cat > conftest.
$ac_ext <<EOF
1900 #line 1901 "configure"
1901 #include "confdefs.h"
1902 /* System header to define __stub macros and hopefully few prototypes,
1903 which can conflict with char _doprnt(); below. */
1905 /* Override any gcc2 internal prototype to avoid an error. */
1906 /* We use char because int might match the return type of a gcc2
1907 builtin and then its argument prototype would still apply. */
1912 /* The GNU C library defines this for functions which it implements
1913 to always fail with ENOSYS. Some functions are actually named
1914 something starting with __ and the normal name is an alias. */
1915 #if defined (__stub__doprnt) || defined (__stub____doprnt)
1923 if { (eval echo configure
:1924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1925 eval "ac_cv_func__doprnt=yes"
1927 echo "configure: failed program was:" >&5
1928 cat conftest.
$ac_ext >&5
1930 eval "ac_cv_func__doprnt=no"
1935 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1936 echo "$ac_t""yes" 1>&6
1937 cat >> confdefs.h
<<\EOF
1938 #define HAVE_DOPRNT 1
1942 echo "$ac_t""no" 1>&6
1949 if test $ac_cv_func_vprintf != yes ; then
1951 if test $ac_cv_func__doprnt != yes ; then
1958 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
1959 echo "configure:1960: checking whether the printf functions support %p" >&5
1960 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
1961 echo $ac_n "(cached) $ac_c" 1>&6
1963 if test "$cross_compiling" = yes; then
1964 gcc_cv_func_printf_ptr
=no
1966 cat > conftest.
$ac_ext <<EOF
1967 #line 1968 "configure"
1968 #include "confdefs.h"
1974 char *p = buf, *q = NULL;
1975 sprintf(buf, "%p", p);
1976 sscanf(buf, "%p", &q);
1980 if { (eval echo configure
:1981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1982 gcc_cv_func_printf_ptr
=yes
1984 echo "configure: failed program was:" >&5
1985 cat conftest.
$ac_ext >&5
1987 gcc_cv_func_printf_ptr
=no
1992 rm -f core core.
* *.core
1995 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
1996 if test $gcc_cv_func_printf_ptr = yes ; then
1997 cat >> confdefs.h
<<\EOF
1998 #define HAVE_PRINTF_PTR 1
2004 for ac_func
in malloc realloc calloc free bcopy bzero bcmp \
2005 index rindex getenv atol sbrk abort atof strerror getcwd getwd
2007 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2008 echo "configure:2009: checking whether $ac_func must be declared" >&5
2009 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2010 echo $ac_n "(cached) $ac_c" 1>&6
2012 cat > conftest.
$ac_ext <<EOF
2013 #line 2014 "configure"
2014 #include "confdefs.h"
2017 #ifdef HAVE_STRING_H
2020 #ifdef HAVE_STRINGS_H
2021 #include <strings.h>
2024 #ifdef HAVE_STDLIB_H
2027 #ifdef HAVE_UNISTD_H
2031 #define rindex strrchr
2034 #define index strchr
2038 char *(*pfn) = (char *(*)) $ac_func
2041 if { (eval echo configure
:2042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2043 eval "gcc_cv_decl_needed_$ac_func=no"
2045 echo "configure: failed program was:" >&5
2046 cat conftest.
$ac_ext >&5
2048 eval "gcc_cv_decl_needed_$ac_func=yes"
2053 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2054 echo "$ac_t""yes" 1>&6
2055 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2056 cat >> confdefs.h
<<EOF
2057 #define $gcc_tr_decl 1
2061 echo "$ac_t""no" 1>&6
2067 for ac_func
in getrlimit setrlimit
2069 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2070 echo "configure:2071: checking whether $ac_func must be declared" >&5
2071 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2072 echo $ac_n "(cached) $ac_c" 1>&6
2074 cat > conftest.
$ac_ext <<EOF
2075 #line 2076 "configure"
2076 #include "confdefs.h"
2079 #ifdef HAVE_STRING_H
2082 #ifdef HAVE_STRINGS_H
2083 #include <strings.h>
2086 #ifdef HAVE_STDLIB_H
2089 #ifdef HAVE_UNISTD_H
2093 #define rindex strrchr
2096 #define index strchr
2098 #include <sys/types.h>
2099 #ifdef HAVE_SYS_RESOURCE_H
2100 #include <sys/resource.h>
2104 char *(*pfn) = (char *(*)) $ac_func
2107 if { (eval echo configure
:2108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2109 eval "gcc_cv_decl_needed_$ac_func=no"
2111 echo "configure: failed program was:" >&5
2112 cat conftest.
$ac_ext >&5
2114 eval "gcc_cv_decl_needed_$ac_func=yes"
2119 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2120 echo "$ac_t""yes" 1>&6
2121 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2122 cat >> confdefs.h
<<EOF
2123 #define $gcc_tr_decl 1
2127 echo "$ac_t""no" 1>&6
2133 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2134 echo "configure:2135: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2135 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2136 echo $ac_n "(cached) $ac_c" 1>&6
2138 cat > conftest.
$ac_ext <<EOF
2139 #line 2140 "configure"
2140 #include "confdefs.h"
2141 #include <sys/types.h>
2143 /* NetBSD declares sys_siglist in unistd.h. */
2144 #ifdef HAVE_UNISTD_H
2148 char *msg = *(sys_siglist + 1);
2151 if { (eval echo configure
:2152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2153 ac_cv_decl_sys_siglist
=yes
2155 echo "configure: failed program was:" >&5
2156 cat conftest.
$ac_ext >&5
2158 ac_cv_decl_sys_siglist
=no
2163 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2164 if test $ac_cv_decl_sys_siglist = yes; then
2165 cat >> confdefs.h
<<\EOF
2166 #define SYS_SIGLIST_DECLARED 1
2180 build_install_headers_dir
=install-headers-tar
2185 host_truncate_target
=
2188 # Decode the host machine, then the target machine.
2189 # For the host machine, we save the xm_file variable as host_xm_file;
2190 # then we decode the target machine and forget everything else
2191 # that came from the host machine.
2192 for machine
in $build $host $target; do
2206 # Set this to force installation and use of collect2.
2208 # Set this to override the default target model.
2210 # Set this to control which fixincludes program to use.
2211 if test x
$fast_fixinc != xyes
; then
2212 fixincludes
=fixincludes
2213 else fixincludes
=fixinc.sh
; fi
2214 # Set this to control how the header file directory is installed.
2215 install_headers_dir
=install-headers-tar
2216 # Set this to a non-empty list of args to pass to cpp if the target
2217 # wants its .md file passed through cpp.
2219 # Set this if directory names should be truncated to 14 characters.
2221 # Set this if gdb needs a dir command with `dirname $out_file`
2222 gdb_needs_out_file_path
=
2223 # Set this if the build machine requires executables to have a
2226 # Set this to control which thread package will be used.
2228 # Reinitialize these from the flag values every loop pass, since some
2229 # configure entries modify them.
2231 gnu_ld
="$gnu_ld_flag"
2232 enable_threads
=$enable_threads_flag
2234 # Set default cpu_type, tm_file and xm_file so it can be updated in
2235 # each machine entry.
2236 cpu_type
=`echo $machine | sed 's/-.*$//'`
2270 tm_file
=${cpu_type}/${cpu_type}.h
2271 xm_file
=${cpu_type}/xm-
${cpu_type}.h
2273 # Set the default macros to define for GNU/Linux systems.
2276 xm_defines
="HAVE_ATEXIT POSIX BSTRING"
2281 # Support site-specific machine types.
2283 cpu_type
=`echo $machine | sed -e 's/-.*//'`
2284 rest
=`echo $machine | sed -e "s/$cpu_type-//"`
2285 xm_file
=${cpu_type}/xm-
$rest.h
2286 tm_file
=${cpu_type}/$rest.h
2287 if test -f $srcdir/config
/${cpu_type}/x-
$rest; \
2288 then xmake_file
=${cpu_type}/x-
$rest; \
2291 if test -f $srcdir/config
/${cpu_type}/t-
$rest; \
2292 then tmake_file
=${cpu_type}/t-
$rest; \
2298 a29k-
*-bsd* | a29k-
*-sym1*)
2299 tm_file
="${tm_file} a29k/unix.h"
2301 xmake_file
=a29k
/x-unix
2304 a29k-
*-udi | a29k-
*-coff)
2305 tm_file
="${tm_file} dbxcoff.h a29k/udi.h"
2306 tmake_file
=a29k
/t-a29kbare
2309 tm_file
="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
2310 tmake_file
=a29k
/t-vx29k
2311 extra_parts
="crtbegin.o crtend.o"
2312 thread_file
='vxworks'
2314 a29k-
*-*) # Default a29k environment.
2317 alpha
*-*-linux-gnuecoff*)
2318 tm_file
="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
2319 target_cpu_default
="MASK_GAS"
2324 alpha
*-*-linux-gnulibc1*)
2325 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
2326 target_cpu_default
="MASK_GAS"
2327 tmake_file
="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
2328 extra_parts
="crtbegin.o crtend.o"
2329 fixincludes
=fixinc.wrap
2332 if test x
$enable_threads = xyes
; then
2336 alpha
*-*-linux-gnu*)
2337 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
2338 target_cpu_default
="MASK_GAS"
2339 tmake_file
="t-linux alpha/t-linux alpha/t-crtbe"
2340 extra_parts
="crtbegin.o crtend.o"
2342 fixincludes
=Makefile.
in
2344 if test x
$enable_threads = xyes
; then
2349 tm_file
="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsdl-elf.h"
2350 xm_file
="xm-netbsd.h ${xm_file}"
2351 target_cpu_default
="MASK_GAS"
2352 tmake_file
="alpha/t-crtbe"
2353 extra_parts
="crtbegin.o crtend.o"
2355 fixincludes
=fixinc.wrap
2360 if test x
$stabs = xyes
2362 tm_file
="${tm_file} dbx.h"
2364 if test x
$gas != xyes
2366 extra_passes
="mips-tfile mips-tdump"
2371 tm_file
="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
2374 tm_file
="${tm_file} alpha/osf.h alpha/osf2or3.h"
2377 tm_file
="${tm_file} alpha/osf.h"
2378 # Some versions of OSF4 (specifically X4.0-9 296.7) have
2379 # a broken tar, so we use cpio instead.
2380 install_headers_dir
=install-headers-cpio
2384 *-*-osf4.0
[b-z
] |
*-*-osf4.
[1-9]*)
2385 target_cpu_default
=MASK_SUPPORT_ARCH
2390 tm_file
="${tm_file} dbx.h alpha/vxworks.h"
2393 extra_passes
="mips-tfile mips-tdump"
2398 tm_file
="${tm_file} alpha/win-nt.h"
2399 xm_file
="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
2400 tmake_file
=t-libc-ok
2401 xmake_file
=winnt
/x-winnt
2402 extra_host_objs
=oldnames.o
2403 extra_gcc_objs
="spawnv.o oldnames.o"
2404 fixincludes
=fixinc.winnt
2405 if test x
$gnu_ld != xyes
2407 extra_programs
=ld.exe
2409 if test x
$enable_threads = xyes
; then
2415 xm_file
="${xm_file} alpha/xm-vms.h"
2416 tmake_file
=alpha
/t-vms
2417 fixincludes
=Makefile.
in
2420 extra_parts
="crtinit.o crtfini.o"
2422 arm-
*-coff* | armel-
*-coff*)
2424 tmake_file
=arm
/t-bare
2426 arm-
*-riscix1.
[01]*) # Acorn RISC machine (early versions)
2427 tm_file
=arm
/riscix1-1.h
2430 arm-
*-riscix*) # Acorn RISC machine
2431 if test x
$gas = xyes
2433 tm_file
=arm
/rix-gas.h
2435 tm_file
=arm
/riscix.h
2437 xmake_file
=arm
/x-riscix
2438 tmake_file
=arm
/t-riscix
2441 arm-semi-aout | armel-semi-aout
)
2443 tmake_file
=arm
/t-semi
2444 fixincludes
=Makefile.
in # There is nothing to fix
2446 arm-semi-aof | armel-semi-aof
)
2447 tm_file
=arm
/semiaof.h
2448 tmake_file
=arm
/t-semiaof
2449 fixincludes
=Makefile.
in # There is nothing to fix
2452 tm_file
=arm
/netbsd.h
2453 xm_file
="xm-netbsd.h ${xm_file}"
2454 tmake_file
="t-netbsd arm/t-netbsd"
2455 # On NetBSD, the headers are already okay, except for math.h.
2456 fixincludes
=fixinc.wrap
2458 arm-
*-linux-gnuaout*) # ARM GNU/Linux
2461 tm_file
=arm
/linux-gas.h
2462 tmake_file
=arm
/t-linux
2463 fixincludes
=Makefile.
in
2468 tmake_file
=arm
/t-bare
2470 c1-convex-
*) # Convex C1
2471 target_cpu_default
=1
2473 fixincludes
=Makefile.
in
2475 c2-convex-
*) # Convex C2
2476 target_cpu_default
=2
2478 fixincludes
=Makefile.
in
2481 target_cpu_default
=4
2483 fixincludes
=Makefile.
in
2486 target_cpu_default
=8
2488 fixincludes
=Makefile.
in
2491 target_cpu_default
=16
2493 fixincludes
=Makefile.
in
2495 clipper-intergraph-clix
*)
2496 tm_file
="${tm_file} svr3.h clipper/clix.h"
2497 xm_file
=clipper
/xm-clix.h
2498 xmake_file
=clipper
/x-clix
2499 extra_headers
=va-clipper.h
2500 extra_parts
="crtbegin.o crtend.o"
2501 install_headers_dir
=install-headers-cpio
2508 # This hasn't been upgraded to GCC 2.
2509 # fx80-alliant-*) # Alliant FX/80
2515 tm_file
="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
2516 xm_file
=pa
/xm-papro.h
2520 target_cpu_default
=1
2521 tm_file
="${tm_file} pa/pa-osf.h"
2523 fixincludes
=Makefile.
in
2526 tm_file
="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
2527 xm_file
=pa
/xm-papro.h
2531 tm_file
="${tm_file} pa/pa-osf.h"
2533 fixincludes
=Makefile.
in
2536 target_cpu_default
=1
2538 fixincludes
=Makefile.
in
2542 fixincludes
=Makefile.
in
2545 tm_file
="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
2546 xm_file
=pa
/xm-pahpux.h
2547 xmake_file
=pa
/x-pa-hpux
2548 if test x
$gas = xyes
2550 tm_file
="${tm_file} pa/gas.h"
2552 install_headers_dir
=install-headers-cpio
2555 hppa1.0
-*-hpux8.0
[0-2]*)
2556 tm_file
="${tm_file} pa/pa-hpux.h"
2557 xm_file
=pa
/xm-pahpux.h
2558 xmake_file
=pa
/x-pa-hpux
2559 if test x
$gas = xyes
2561 tm_file
="${tm_file} pa/pa-gas.h"
2563 tm_file
="pa/pa-oldas.h ${tm_file}"
2565 install_headers_dir
=install-headers-cpio
2568 hppa1.1
-*-hpux8.0
[0-2]*)
2569 target_cpu_default
=1
2570 tm_file
="${tm_file} pa/pa-hpux.h"
2571 xm_file
=pa
/xm-pahpux.h
2572 xmake_file
=pa
/x-pa-hpux
2573 if test x
$gas = xyes
2575 tm_file
="${tm_file} pa/pa-gas.h"
2577 tm_file
="pa/pa-oldas.h ${tm_file}"
2579 install_headers_dir
=install-headers-cpio
2583 target_cpu_default
=1
2584 tm_file
="${tm_file} pa/pa-hpux.h"
2585 xm_file
=pa
/xm-pahpux.h
2586 xmake_file
=pa
/x-pa-hpux
2587 if test x
$gas = xyes
2589 tm_file
="${tm_file} pa/pa-gas.h"
2591 install_headers_dir
=install-headers-cpio
2595 tm_file
="${tm_file} pa/pa-hpux.h"
2596 xm_file
=pa
/xm-pahpux.h
2597 xmake_file
=pa
/x-pa-hpux
2598 if test x
$gas = xyes
2600 tm_file
="${tm_file} pa/pa-gas.h"
2602 install_headers_dir
=install-headers-cpio
2606 target_cpu_default
=1
2607 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
2608 xm_file
=pa
/xm-pahpux.h
2609 xmake_file
=pa
/x-pa-hpux
2611 if test x
$gas = xyes
2613 tm_file
="${tm_file} pa/pa-gas.h"
2615 if test x
$enable_threads = x
; then
2616 enable_threads
=$have_pthread_h
2618 if test x
$enable_threads = xyes
; then
2620 tmake_file
="${tmake_file} pa/t-dce-thr"
2622 install_headers_dir
=install-headers-cpio
2626 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
2627 xm_file
=pa
/xm-pahpux.h
2628 xmake_file
=pa
/x-pa-hpux
2629 if test x
$gas = xyes
2631 tm_file
="${tm_file} pa/pa-gas.h"
2633 if test x
$enable_threads = x
; then
2634 enable_threads
=$have_pthread_h
2636 if test x
$enable_threads = xyes
; then
2638 tmake_file
="${tmake_file} pa/t-dce-thr"
2640 install_headers_dir
=install-headers-cpio
2644 target_cpu_default
=1
2645 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
2646 xm_file
=pa
/xm-pahpux.h
2647 xmake_file
=pa
/x-pa-hpux
2648 if test x
$gas = xyes
2650 tm_file
="${tm_file} pa/pa-gas.h"
2652 install_headers_dir
=install-headers-cpio
2656 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
2657 xm_file
=pa
/xm-pahpux.h
2658 xmake_file
=pa
/x-pa-hpux
2659 if test x
$gas = xyes
2661 tm_file
="${tm_file} pa/pa-gas.h"
2663 install_headers_dir
=install-headers-cpio
2667 target_cpu_default
=1
2668 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
2669 xm_file
=pa
/xm-pahpux.h
2670 xmake_file
=pa
/x-pa-hpux
2671 if test x
$gas = xyes
2673 tm_file
="${tm_file} pa/pa-gas.h"
2675 install_headers_dir
=install-headers-cpio
2679 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
2680 xm_file
=pa
/xm-pahpux.h
2681 xmake_file
=pa
/x-pa-hpux
2682 if test x
$gas = xyes
2684 tm_file
="${tm_file} pa/pa-gas.h"
2686 install_headers_dir
=install-headers-cpio
2690 target_cpu_default
=1
2692 fixincludes
=Makefile.
in
2696 i
[34567]86-ibm-aix*) # IBM PS/2 running AIX
2697 if test x
$gas = xyes
2699 tm_file
=i386
/aix386.h
2700 extra_parts
="crtbegin.o crtend.o"
2701 tmake_file
=i386
/t-crtstuff
2703 tm_file
=i386
/aix386ng.h
2706 xm_file
="xm-alloca.h i386/xm-aix.h ${xm_file}"
2708 xmake_file
=i386
/x-aix
2710 i
[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
2711 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
2712 xm_defines
="USG POSIX SMALL_ARG_MAX"
2713 xmake_file
=i386
/x-ncr3000
2714 if test x
$stabs = xyes
-a x
$gas = xyes
2716 tm_file
=i386
/sysv4gdb.h
2718 tm_file
=i386
/sysv4.h
2720 extra_parts
="crtbegin.o crtend.o"
2721 tmake_file
=i386
/t-crtpic
2725 xm_file
=i386
/xm-next.h
2726 tmake_file
=i386
/t-next
2727 xmake_file
=i386
/x-next
2728 extra_objs
=nextstep.o
2729 if test x
$enable_threads = xyes
; then
2733 i
[34567]86-sequent-bsd*) # 80386 from Sequent
2735 if test x
$gas = xyes
2737 tm_file
=i386
/seq-gas.h
2739 tm_file
=i386
/sequent.h
2742 i
[34567]86-sequent-ptx1*)
2743 xm_defines
="USG SVR3"
2744 xmake_file
=i386
/x-sysv3
2745 tm_file
=i386
/seq-sysv3.h
2746 tmake_file
=i386
/t-crtstuff
2747 fixincludes
=fixinc.
ptx
2748 extra_parts
="crtbegin.o crtend.o"
2749 install_headers_dir
=install-headers-cpio
2751 i
[34567]86-sequent-ptx2* | i
[34567]86-sequent-sysv3*)
2752 xm_defines
="USG SVR3"
2753 xmake_file
=i386
/x-sysv3
2754 tm_file
=i386
/seq2-sysv3.h
2755 tmake_file
=i386
/t-crtstuff
2756 extra_parts
="crtbegin.o crtend.o"
2757 fixincludes
=fixinc.
ptx
2758 install_headers_dir
=install-headers-cpio
2760 i
[34567]86-sequent-ptx4* | i
[34567]86-sequent-sysv4*)
2761 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
2762 xm_defines
="USG POSIX SMALL_ARG_MAX"
2764 tm_file
=i386
/ptx4-i.h
2766 extra_parts
="crtbegin.o crtend.o"
2767 fixincludes
=fixinc.
ptx
2768 install_headers_dir
=install-headers-cpio
2770 i386-sun-sunos
*) # Sun i386 roadrunner
2775 i
[34567]86-wrs-vxworks*)
2776 tm_file
=i386
/vxi386.h
2777 tmake_file
=i386
/t-i386bare
2780 tm_file
=i386
/i386-aout.h
2781 tmake_file
=i386
/t-i386bare
2783 i
[34567]86-*-bsdi* | i
[34567]86-*-bsd386*)
2784 tm_file
=i386
/bsd386.h
2785 # tmake_file=t-libc-ok
2788 tm_file
=i386
/386bsd.h
2789 # tmake_file=t-libc-ok
2790 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
2793 i
[34567]86-*-freebsdelf*)
2794 tm_file
="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
2795 # On FreeBSD, the headers are already ok, except for math.h.
2796 fixincludes
=fixinc.wrap
2797 tmake_file
=i386
/t-freebsd
2802 i
[34567]86-*-freebsd*)
2803 tm_file
=i386
/freebsd.h
2804 # On FreeBSD, the headers are already ok, except for math.h.
2805 fixincludes
=fixinc.wrap
2806 tmake_file
=i386
/t-freebsd
2808 i
[34567]86-*-netbsd*)
2809 tm_file
=i386
/netbsd.h
2810 xm_file
="xm-netbsd.h ${xm_file}"
2811 # On NetBSD, the headers are already okay, except for math.h.
2812 fixincludes
=fixinc.wrap
2816 tm_file
=i386
/i386-coff.h
2817 tmake_file
=i386
/t-i386bare
2819 i
[34567]86-*-isc*) # 80386 running ISC system
2820 xm_file
="${xm_file} i386/xm-isc.h"
2821 xm_defines
="USG SVR3"
2823 i
[34567]86-*-isc[34]*)
2824 xmake_file
=i386
/x-isc3
2827 xmake_file
=i386
/x-isc
2830 if test x
$gas = xyes
-a x
$stabs = xyes
2832 tm_file
=i386
/iscdbx.h
2833 tmake_file
=i386
/t-svr3dbx
2834 extra_parts
="svr3.ifile svr3z.ifile"
2836 tm_file
=i386
/isccoff.h
2837 tmake_file
=i386
/t-crtstuff
2838 extra_parts
="crtbegin.o crtend.o"
2840 install_headers_dir
=install-headers-cpio
2842 i
[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
2844 xmake_file
=x-linux-aout
2845 tmake_file
="t-linux-aout i386/t-crtstuff"
2846 tm_file
=i386
/linux-oldld.h
2847 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
2851 i
[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
2852 xmake_file
=x-linux-aout
2853 tmake_file
="t-linux-aout i386/t-crtstuff"
2854 tm_file
=i386
/linux-aout.h
2855 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
2859 i
[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
2860 # GNU/Linux C library 5
2862 tm_file
=i386
/linux.h
2863 tmake_file
="t-linux t-linux-gnulibc1 i386/t-crtstuff"
2864 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2865 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
2868 if test x
$enable_threads = xyes
; then
2869 thread_file
='single'
2872 i
[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
2873 # aka GNU/Linux C library 6
2875 tm_file
=i386
/linux.h
2876 tmake_file
="t-linux i386/t-crtstuff"
2877 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2878 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
2881 if test x
$enable_threads = xyes
; then
2887 i
[34567]86-go32-msdos | i
[34567]86-*-go32*)
2888 xm_file
=i386
/xm-go32.h
2890 tmake_file
=i386
/t-go32
2892 i
[34567]86-pc-msdosdjgpp*)
2893 xm_file
=i386
/xm-go32.h
2895 tmake_file
=i386
/t-go32
2899 i
[34567]86-moss-msdos* | i
[34567]86-*-moss*)
2901 tmake_file
=t-libc-ok
2902 fixincludes
=Makefile.
in
2906 i
[34567]86-*-lynxos*)
2907 if test x
$gas = xyes
2911 tm_file
=i386
/lynx-ng.h
2913 xm_file
=i386
/xm-lynx.h
2914 tmake_file
=i386
/t-i386bare
2919 # tmake_file=t-libc-ok
2922 i
[34567]86-*-osfrose*) # 386 using OSF/rose
2923 if test x
$elf = xyes
2925 tm_file
=i386
/osfelf.h
2928 tm_file
=i386
/osfrose.h
2931 xm_file
="i386/xm-osf.h ${xm_file}"
2932 xmake_file
=i386
/x-osfrose
2933 tmake_file
=i386
/t-osf
2934 extra_objs
=halfpic.o
2936 i
[34567]86-go32-rtems*)
2938 xm_file
=i386
/xm-go32.h
2939 tm_file
=i386
/go32-rtems.h
2940 tmake_file
="i386/t-go32 t-rtems"
2942 i
[34567]86-*-rtemself*)
2944 tm_file
=i386
/rtemself.h
2945 tmake_file
="i386/t-i386bare t-rtems"
2947 i
[34567]86-*-rtems*)
2949 tm_file
=i386
/rtems.h
2950 tmake_file
="i386/t-i386bare t-rtems"
2952 i
[34567]86-*-sco3.2v5
*) # 80386 running SCO Open Server 5
2953 xm_file
="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
2954 xm_defines
="USG SVR3"
2955 xmake_file
=i386
/x-sco5
2956 fixincludes
=fixinc.sco
2957 install_headers_dir
=install-headers-cpio
2959 if test x
$gas = xyes
2961 tm_file
="i386/sco5gas.h ${tm_file}"
2962 tmake_file
=i386
/t-sco5gas
2964 tmake_file
=i386
/t-sco5
2966 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2968 i
[34567]86-*-sco3.2v4
*) # 80386 running SCO 3.2v4 system
2969 xm_file
="${xm_file} i386/xm-sco.h"
2970 xm_defines
="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
2971 xmake_file
=i386
/x-sco4
2972 fixincludes
=fixinc.sco
2973 install_headers_dir
=install-headers-cpio
2974 if test x
$stabs = xyes
2976 tm_file
=i386
/sco4dbx.h
2977 tmake_file
=i386
/t-svr3dbx
2978 extra_parts
="svr3.ifile svr3z.rfile"
2981 tmake_file
=i386
/t-crtstuff
2982 extra_parts
="crtbegin.o crtend.o"
2986 i
[34567]86-*-sco*) # 80386 running SCO system
2987 xm_file
=i386
/xm-sco.h
2988 xmake_file
=i386
/x-sco
2989 install_headers_dir
=install-headers-cpio
2990 if test x
$stabs = xyes
2992 tm_file
=i386
/scodbx.h
2993 tmake_file
=i386
/t-svr3dbx
2994 extra_parts
="svr3.ifile svr3z.rfile"
2997 extra_parts
="crtbegin.o crtend.o"
2998 tmake_file
=i386
/t-crtstuff
3002 i
[34567]86-*-solaris2*)
3003 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
3004 xm_defines
="USG POSIX SMALL_ARG_MAX"
3005 if test x
$stabs = xyes
3007 tm_file
=i386
/sol2dbg.h
3011 tmake_file
=i386
/t-sol2
3012 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3016 fixincludes
=fixinc.svr4
;;
3018 fixincludes
=fixinc.wrap
;;
3020 if test x
$enable_threads = xyes
; then
3021 thread_file
='solaris'
3024 i
[34567]86-*-sysv5*) # Intel x86 on System V Release 5
3025 xm_file
="xm-alloca.h xm-siglist.h ${xm_file}"
3026 xm_defines
="USG POSIX"
3027 tm_file
=i386
/sysv4.h
3028 if test x
$stabs = xyes
3030 tm_file
="${tm_file} dbx.h"
3032 tmake_file
=i386
/t-crtpic
3034 extra_parts
="crtbegin.o crtend.o"
3035 fixincludes
=Makefile.
in # The headers are just fine, thank you.
3037 i
[34567]86-*-sysv4*) # Intel 80386's running system V.4
3038 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
3039 xm_defines
="USG POSIX SMALL_ARG_MAX"
3040 tm_file
=i386
/sysv4.h
3041 if test x
$stabs = xyes
3043 tm_file
="${tm_file} dbx.h"
3045 tmake_file
=i386
/t-crtpic
3047 extra_parts
="crtbegin.o crtend.o"
3049 i
[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
3051 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
3052 xm_defines
="USE_C_ALLOCA SMALL_ARG_MAX"
3053 fixincludes
=Makefile.
in #Don't do it on OSF/1
3054 if test x
$stabs = xyes
3056 tm_file
=i386
/osf1elfgdb.h
3058 tm_file
=i386
/osf1elf.h
3060 tmake_file
=i386
/t-osf1elf
3061 xmake_file
=i386
/x-osf1elf
3062 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
3064 i
[34567]86-*-sysv*) # Intel 80386's running system V
3065 xm_defines
="USG SVR3"
3066 xmake_file
=i386
/x-sysv3
3067 if test x
$gas = xyes
3069 if test x
$stabs = xyes
3071 tm_file
=i386
/svr3dbx.h
3072 tmake_file
=i386
/t-svr3dbx
3073 extra_parts
="svr3.ifile svr3z.rfile"
3075 tm_file
=i386
/svr3gas.h
3076 extra_parts
="crtbegin.o crtend.o"
3077 tmake_file
=i386
/t-crtstuff
3080 tm_file
=i386
/sysv3.h
3081 extra_parts
="crtbegin.o crtend.o"
3082 tmake_file
=i386
/t-crtstuff
3085 i386-
*-vsta) # Intel 80386's running VSTa kernel
3086 xm_file
="${xm_file} i386/xm-vsta.h"
3088 tmake_file
=i386
/t-vsta
3089 xmake_file
=i386
/x-vsta
3092 xm_file
="${xm_file} i386/xm-cygwin32.h"
3093 tmake_file
=i386
/t-cygwin32
3094 tm_file
=i386
/win32.h
3095 xmake_file
=i386
/x-cygwin32
3097 fixincludes
=Makefile.
in
3098 if test x
$enable_threads = xyes
; then
3103 i
[34567]86-*-pe | i
[34567]86-*-cygwin32)
3104 xm_file
="${xm_file} i386/xm-cygwin32.h"
3105 tmake_file
=i386
/t-cygwin32
3106 tm_file
=i386
/cygwin32.h
3107 xmake_file
=i386
/x-cygwin32
3109 fixincludes
=Makefile.
in
3110 if test x
$enable_threads = xyes
; then
3115 i
[34567]86-*-mingw32*)
3116 tm_file
=i386
/mingw32.h
3117 xm_file
="${xm_file} i386/xm-mingw32.h"
3118 tmake_file
="i386/t-cygwin32 i386/t-mingw32"
3120 xmake_file
=i386
/x-cygwin32
3121 fixincludes
=Makefile.
in
3122 if test x
$enable_threads = xyes
; then
3129 *minwg32crt
* |
*mingw32
*)
3130 tm_file
="${tm_file} i386/crtdll.h"
3134 i
[34567]86-*-winnt3*)
3135 tm_file
=i386
/win-nt.h
3136 out_file
=i386
/i386.c
3137 xm_file
="xm-winnt.h ${xm_file}"
3138 xmake_file
=winnt
/x-winnt
3139 tmake_file
=i386
/t-winnt
3140 extra_host_objs
="winnt.o oldnames.o"
3141 extra_gcc_objs
="spawnv.o oldnames.o"
3142 fixincludes
=fixinc.winnt
3143 if test x
$gnu_ld != xyes
3145 extra_programs
=ld.exe
3147 if test x
$enable_threads = xyes
; then
3151 i
[34567]86-dg-dgux*)
3152 xm_file
="xm-alloca.h xm-siglist.h ${xm_file}"
3153 xm_defines
="USG POSIX"
3154 out_file
=i386
/dgux.c
3156 tmake_file
=i386
/t-dgux
3157 xmake_file
=i386
/x-dgux
3158 fixincludes
=fixinc.dgux
3159 install_headers_dir
=install-headers-cpio
3161 i860-alliant-
*) # Alliant FX/2800
3162 tm_file
="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
3163 xm_file
="${xm_file}"
3164 xmake_file
=i860
/x-fx2800
3165 tmake_file
=i860
/t-fx2800
3166 extra_parts
="crtbegin.o crtend.o"
3169 tm_file
="${tm_file} i860/bsd.h"
3170 if test x
$gas = xyes
3172 tm_file
="${tm_file} i860/bsd-gas.h"
3177 tm_file
="${tm_file} i860/mach.h"
3178 tmake_file
=t-libc-ok
3180 i860-
*-osf*) # Intel Paragon XP/S, OSF/1AD
3181 tm_file
="${tm_file} svr3.h i860/paragon.h"
3182 xm_defines
="USG SVR3"
3186 tm_file
="${tm_file} svr3.h i860/sysv3.h"
3187 xm_defines
="USG SVR3"
3188 xmake_file
=i860
/x-sysv3
3189 extra_parts
="crtbegin.o crtend.o"
3192 tm_file
="${tm_file} svr4.h i860/sysv4.h"
3193 xm_defines
="USG SVR3"
3194 xmake_file
=i860
/x-sysv4
3196 extra_parts
="crtbegin.o crtend.o"
3198 i960-wrs-vxworks5 | i960-wrs-vxworks5.0
*)
3199 tm_file
="${tm_file} i960/vx960.h"
3200 tmake_file
=i960
/t-vxworks960
3202 thread_file
='vxworks'
3204 i960-wrs-vxworks5
* | i960-wrs-vxworks
)
3205 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
3206 tmake_file
=i960
/t-vxworks960
3208 thread_file
='vxworks'
3211 tm_file
="${tm_file} i960/vx960.h"
3212 tmake_file
=i960
/t-vxworks960
3214 thread_file
='vxworks'
3217 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
3218 tmake_file
=i960
/t-960bare
3222 tmake_file
="i960/t-960bare t-rtems"
3223 tm_file
="${tm_file} dbxcoff.h i960/rtems.h"
3226 i960-
*-*) # Default i960 environment.
3230 extra_parts
="crtinit.o crtfini.o"
3232 m68000-convergent-sysv
*)
3234 xm_file
="m68k/xm-3b1.h ${xm_file}"
3237 extra_headers
=math-68881.h
3239 m68000-hp-bsd
*) # HP 9000/200 running BSD
3240 tm_file
=m68k
/hp2bsd.h
3241 xmake_file
=m68k
/x-hp2bsd
3243 extra_headers
=math-68881.h
3245 m68000-hp-hpux
*) # HP 9000 series 300
3246 xm_file
="xm_alloca.h ${xm_file}"
3247 xm_defines
="USG NO_SYS_SIGLIST"
3248 if test x
$gas = xyes
3250 xmake_file
=m68k
/x-hp320g
3251 tm_file
=m68k
/hp310g.h
3253 xmake_file
=m68k
/x-hp320
3254 tm_file
=m68k
/hp310.h
3256 install_headers_dir
=install-headers-cpio
3258 extra_headers
=math-68881.h
3263 extra_headers
=math-68881.h
3266 tm_file
=m68k
/sun2o4.h
3268 extra_headers
=math-68881.h
3271 xm_file
="m68k/xm-3b1.h ${xm_file}"
3273 if test x
$gas = xyes
3280 extra_headers
=math-68881.h
3282 m68k-apple-aux
*) # Apple Macintosh running A/UX
3283 xm_defines
="USG AUX"
3284 tmake_file
=m68k
/t-aux
3285 install_headers_dir
=install-headers-cpio
3286 extra_headers
=math-68881.h
3287 extra_parts
="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
3289 if test "$gnu_ld" = yes
3291 tm_file
="${tm_file} m68k/auxgld.h"
3293 tm_file
="${tm_file} m68k/auxld.h"
3295 if test "$gas" = yes
3297 tm_file
="${tm_file} m68k/auxgas.h"
3299 tm_file
="${tm_file} m68k/auxas.h"
3301 tm_file
="${tm_file} m68k/a-ux.h"
3305 tm_file
=m68k
/apollo68.h
3306 xmake_file
=m68k
/x-apollo68
3308 extra_headers
=math-68881.h
3311 m68k-altos-sysv
*) # Altos 3068
3312 if test x
$gas = xyes
3314 tm_file
=m68k
/altos3068.h
3317 echo "The Altos is supported only with the GNU assembler" 1>&2
3320 extra_headers
=math-68881.h
3322 m68k-bull-sysv
*) # Bull DPX/2
3323 if test x
$gas = xyes
3325 if test x
$stabs = xyes
3327 tm_file
=m68k
/dpx2cdbx.h
3329 tm_file
=m68k
/dpx2g.h
3334 xm_file
="xm-alloca.h ${xm_file}"
3336 xmake_file
=m68k
/x-dpx2
3338 extra_headers
=math-68881.h
3340 m68k-atari-sysv4
*) # Atari variant of V.4.
3341 tm_file
=m68k
/atari.h
3342 xm_file
="xm-alloca.h ${xm_file}"
3343 xm_defines
="USG FULL_PROTOTYPES"
3345 extra_parts
="crtbegin.o crtend.o"
3346 extra_headers
=math-68881.h
3349 m68k-motorola-sysv
*)
3350 tm_file
=m68k
/mot3300.h
3351 xm_file
="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
3352 xm_defines
=NO_SYS_SIGLIST
3353 if test x
$gas = xyes
3355 xmake_file
=m68k
/x-mot3300-gas
3356 if test x
$gnu_ld = xyes
3358 tmake_file
=m68k
/t-mot3300-gald
3360 tmake_file
=m68k
/t-mot3300-gas
3364 xmake_file
=m68k
/x-mot3300
3365 if test x
$gnu_ld = xyes
3367 tmake_file
=m68k
/t-mot3300-gld
3369 tmake_file
=m68k
/t-mot3300
3373 gdb_needs_out_file_path
=yes
3374 extra_parts
="crt0.o mcrt0.o"
3375 extra_headers
=math-68881.h
3378 m68k-ncr-sysv
*) # NCR Tower 32 SVR3
3379 tm_file
=m68k
/tower-as.h
3380 xm_defines
="USG SVR3"
3381 xmake_file
=m68k
/x-tower
3382 extra_parts
="crtbegin.o crtend.o"
3383 extra_headers
=math-68881.h
3386 tm_file
=m68k
/plexus.h
3387 xm_file
="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
3390 extra_headers
=math-68881.h
3394 xm_file
="xm-alloca.h ${xm_file}"
3396 extra_headers
=math-68881.h
3399 xm_file
="xm-alloca.h m68k/xm-crds.h ${xm_file}"
3400 xm_defines
="USG unos"
3401 xmake_file
=m68k
/x-crds
3404 extra_headers
=math-68881.h
3406 m68k-cbm-sysv4
*) # Commodore variant of V.4.
3408 xm_file
="xm-alloca.h ${xm_file}"
3409 xm_defines
="USG FULL_PROTOTYPES"
3410 xmake_file
=m68k
/x-amix
3412 extra_parts
="crtbegin.o crtend.o"
3413 extra_headers
=math-68881.h
3417 tm_file
=m68k
/ccur-GAS.h
3418 xmake_file
=m68k
/x-ccur
3419 extra_headers
=math-68881.h
3423 m68k-hp-bsd4.4
*) # HP 9000/3xx running 4.4bsd
3424 tm_file
=m68k
/hp3bsd44.h
3425 xmake_file
=m68k
/x-hp3bsd44
3427 extra_headers
=math-68881.h
3430 m68k-hp-bsd
*) # HP 9000/3xx running Berkeley Unix
3431 tm_file
=m68k
/hp3bsd.h
3433 extra_headers
=math-68881.h
3437 if test x
$with_fp = xno
3439 tm_file
=m68k
/isi-nfp.h
3445 extra_headers
=math-68881.h
3447 m68k-hp-hpux7
*) # HP 9000 series 300 running HPUX version 7.
3448 xm_file
="xm_alloca.h ${xm_file}"
3449 xm_defines
="USG NO_SYS_SIGLIST"
3450 if test x
$gas = xyes
3452 xmake_file
=m68k
/x-hp320g
3453 tm_file
=m68k
/hp320g.h
3455 xmake_file
=m68k
/x-hp320
3456 tm_file
=m68k
/hpux7.h
3458 install_headers_dir
=install-headers-cpio
3460 extra_headers
=math-68881.h
3463 m68k-hp-hpux
*) # HP 9000 series 300
3464 xm_file
="xm_alloca.h ${xm_file}"
3465 xm_defines
="USG NO_SYS_SIGLIST"
3466 if test x
$gas = xyes
3468 xmake_file
=m68k
/x-hp320g
3469 tm_file
=m68k
/hp320g.h
3471 xmake_file
=m68k
/x-hp320
3472 tm_file
=m68k
/hp320.h
3474 install_headers_dir
=install-headers-cpio
3476 extra_headers
=math-68881.h
3480 tm_file
=m68k
/sun3mach.h
3482 extra_headers
=math-68881.h
3486 if test x
$gas = xyes
3488 tm_file
=m68k
/news3gas.h
3490 tm_file
=m68k
/news3.h
3493 extra_headers
=math-68881.h
3496 m68k-sony-bsd
* | m68k-sony-newsos
*)
3497 if test x
$gas = xyes
3499 tm_file
=m68k
/newsgas.h
3504 extra_headers
=math-68881.h
3507 m68k-next-nextstep2
*)
3508 tm_file
=m68k
/next21.h
3509 xm_file
="m68k/xm-next.h ${xm_file}"
3510 tmake_file
=m68k
/t-next
3511 xmake_file
=m68k
/x-next
3512 extra_objs
=nextstep.o
3513 extra_headers
=math-68881.h
3517 m68k-next-nextstep3
*)
3519 xm_file
="m68k/xm-next.h ${xm_file}"
3520 tmake_file
=m68k
/t-next
3521 xmake_file
=m68k
/x-next
3522 extra_objs
=nextstep.o
3523 extra_headers
=math-68881.h
3525 if test x
$enable_threads = xyes
; then
3530 if test x
$with_fp = xno
3532 tm_file
=m68k
/sun3n3.h
3534 tm_file
=m68k
/sun3o3.h
3538 extra_headers
=math-68881.h
3540 m68k-sun-sunos
*) # For SunOS 4 (the default).
3541 if test x
$with_fp = xno
3543 tm_file
=m68k
/sun3n.h
3549 extra_headers
=math-68881.h
3552 tm_file
=m68k
/vxm68k.h
3553 tmake_file
=m68k
/t-vxworks68
3554 extra_headers
=math-68881.h
3555 thread_file
='vxworks'
3559 tmake_file
=m68k
/t-m68kbare
3560 tm_file
="m68k/m68k-aout.h libgloss.h"
3561 extra_headers
=math-68881.h
3565 tmake_file
=m68k
/t-m68kbare
3566 tm_file
="m68k/m68k-coff.h dbx.h libgloss.h"
3567 extra_headers
=math-68881.h
3571 if test x
$gas = xyes
3575 tm_file
=m68k
/lynx-ng.h
3577 xm_file
=m68k
/xm-lynx.h
3579 tmake_file
=m68k
/t-lynx
3580 extra_headers
=math-68881.h
3584 tm_file
=m68k
/netbsd.h
3585 xm_file
="xm-netbsd.h ${xm_file}"
3586 # On NetBSD, the headers are already okay, except for math.h.
3587 fixincludes
=fixinc.wrap
3591 m68k-
*-sysv3*) # Motorola m68k's running system V.3
3592 xm_file
="xm-alloca.h ${xm_file}"
3594 xmake_file
=m68k
/x-m68kv
3595 extra_parts
="crtbegin.o crtend.o"
3596 extra_headers
=math-68881.h
3599 m68k-
*-sysv4*) # Motorola m68k's running system V.4
3600 tm_file
=m68k
/m68kv4.h
3601 xm_file
="xm-alloca.h ${xm_file}"
3604 extra_parts
="crtbegin.o crtend.o"
3605 extra_headers
=math-68881.h
3608 m68k-
*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
3611 tm_file
=m68k
/linux-aout.h
3612 tmake_file
="t-linux-aout m68k/t-linux-aout"
3613 fixincludes
=Makefile.
in # The headers are ok already.
3614 extra_headers
=math-68881.h
3618 m68k-
*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
3619 # with ELF format using the
3620 # GNU/Linux C library 5
3622 tm_file
=m68k
/linux.h
3623 tmake_file
="t-linux t-linux-gnulibc1 m68k/t-linux"
3624 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3625 fixincludes
=Makefile.
in # The headers are ok already.
3626 extra_headers
=math-68881.h
3630 m68k-
*-linux-gnu*) # Motorola m68k's running GNU/Linux
3631 # with ELF format using glibc 2
3632 # aka the GNU/Linux C library 6.
3634 tm_file
=m68k
/linux.h
3635 tmake_file
="t-linux m68k/t-linux"
3636 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3637 fixincludes
=Makefile.
in # The headers are ok already.
3638 extra_headers
=math-68881.h
3641 if test x
$enable_threads = xyes
; then
3646 tmake_file
=m68k
/t-m68kbare
3647 tm_file
=m68k
/m68k-psos.h
3648 extra_headers
=math-68881.h
3652 tmake_file
="m68k/t-m68kbare t-rtems"
3653 tm_file
=m68k
/rtems.h
3654 extra_headers
=math-68881.h
3661 tm_file
=m88k
/dguxbcs.h
3662 tmake_file
=m88k
/t-dguxbcs
3666 tmake_file
=m88k
/t-dgux
3669 extra_parts
="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
3670 xmake_file
=m88k
/x-dgux
3671 if test x
$gas = xyes
3673 tmake_file
=m88k
/t-dgux-gas
3675 fixincludes
=fixinc.dgux
3677 m88k-dolphin-sysv3
*)
3678 tm_file
=m88k
/dolph.h
3679 extra_parts
="crtbegin.o crtend.o"
3680 xm_file
="m88k/xm-sysv3.h ${xm_file}"
3681 xmake_file
=m88k
/x-dolph
3682 if test x
$gas = xyes
3684 tmake_file
=m88k
/t-m88k-gas
3687 m88k-tektronix-sysv3
)
3688 tm_file
=m88k
/tekXD88.h
3689 extra_parts
="crtbegin.o crtend.o"
3690 xm_file
="m88k/xm-sysv3.h ${xm_file}"
3691 xmake_file
=m88k
/x-tekXD88
3692 if test x
$gas = xyes
3694 tmake_file
=m88k
/t-m88k-gas
3698 tm_file
=m88k
/m88k-aout.h
3701 tm_file
=m88k
/m88k-coff.h
3702 tmake_file
=m88k
/t-bug
3706 extra_parts
="crtbegin.o crtend.o"
3707 if test x
$gas = xyes
3709 tmake_file
=m88k
/t-luna-gas
3711 tmake_file
=m88k
/t-luna
3715 tm_file
=m88k
/sysv3.h
3716 extra_parts
="crtbegin.o crtend.o"
3717 xm_file
="m88k/xm-sysv3.h ${xm_file}"
3718 xmake_file
=m88k
/x-sysv3
3719 if test x
$gas = xyes
3721 tmake_file
=m88k
/t-m88k-gas
3725 tm_file
=m88k
/sysv4.h
3726 extra_parts
="crtbegin.o crtend.o"
3727 xmake_file
=m88k
/x-sysv4
3728 tmake_file
=m88k
/t-sysv4
3730 mips-sgi-irix6
*) # SGI System V.4., IRIX 6
3731 tm_file
=mips
/iris6.h
3732 xm_file
=mips
/xm-iris6.h
3733 fixincludes
=fixinc.irix
3734 xmake_file
=mips
/x-iris6
3735 tmake_file
=mips
/t-iris6
3736 # if test x$enable_threads = xyes; then
3737 # thread_file='irix'
3741 tm_file
="mips/elf.h libgloss.h"
3742 tmake_file
=mips
/t-ecoff
3745 extra_parts
="crtbegin.o crtend.o"
3746 # thread_file='vxworks'
3748 mips-sgi-irix5cross64
) # Irix5 host, Irix 6 target, cross64
3749 tm_file
="mips/iris6.h mips/cross64.h"
3751 xm_file
="mips/xm-iris5.h"
3752 fixincludes
=Makefile.
in
3753 xmake_file
=mips
/x-iris
3754 tmake_file
=mips
/t-cross64
3755 # See comment in mips/iris[56].h files.
3757 # if test x$enable_threads = xyes; then
3758 # thread_file='irix'
3762 if test x
$gas = xyes
3764 if test x
$stabs = xyes
3766 tm_file
=mips
/iris5gdb.h
3768 tm_file
="mips/sni-svr4.h mips/sni-gas.h"
3771 tm_file
=mips
/sni-svr4.h
3774 xmake_file
=mips
/x-sni-svr4
3775 tmake_file
=mips
/t-mips-gas
3776 if test x
$gnu_ld != xyes
3781 mips-sgi-irix5
*) # SGI System V.4., IRIX 5
3782 if test x
$gas = xyes
3784 tm_file
="mips/iris5.h mips/iris5gas.h"
3785 if test x
$stabs = xyes
3787 tm_file
="${tm_file} dbx.h"
3790 tm_file
=mips
/iris5.h
3793 xm_file
="mips/xm-iris5.h"
3794 fixincludes
=fixinc.irix
3795 xmake_file
=mips
/x-iris
3796 # mips-tfile doesn't work yet
3797 tmake_file
=mips
/t-mips-gas
3798 # See comment in mips/iris5.h file.
3800 # if test x$enable_threads = xyes; then
3801 # thread_file='irix'
3804 mips-sgi-irix4loser
*) # Mostly like a MIPS.
3805 tm_file
="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
3806 if test x
$stabs = xyes
; then
3807 tm_file
="${tm_file} dbx.h"
3810 xmake_file
=mips
/x-iris
3811 if test x
$gas = xyes
3813 tmake_file
=mips
/t-mips-gas
3815 extra_passes
="mips-tfile mips-tdump"
3817 if test x
$gnu_ld != xyes
3821 # if test x$enable_threads = xyes; then
3822 # thread_file='irix'
3825 mips-sgi-irix4
*) # Mostly like a MIPS.
3826 tm_file
="mips/iris3.h ${tm_file} mips/iris4.h"
3827 if test x
$stabs = xyes
; then
3828 tm_file
="${tm_file} dbx.h"
3831 xmake_file
=mips
/x-iris
3832 if test x
$gas = xyes
3834 tmake_file
=mips
/t-mips-gas
3836 extra_passes
="mips-tfile mips-tdump"
3838 if test x
$gnu_ld != xyes
3842 # if test x$enable_threads = xyes; then
3843 # thread_file='irix'
3846 mips-sgi-
*) # Mostly like a MIPS.
3847 tm_file
="mips/iris3.h ${tm_file}"
3848 if test x
$stabs = xyes
; then
3849 tm_file
="${tm_file} dbx.h"
3852 xmake_file
=mips
/x-iris3
3853 if test x
$gas = xyes
3855 tmake_file
=mips
/t-mips-gas
3857 extra_passes
="mips-tfile mips-tdump"
3859 if test x
$gnu_ld != xyes
3864 mips-dec-osfrose
*) # Decstation running OSF/1 reference port with OSF/rose.
3865 tm_file
="mips/osfrose.h ${tm_file}"
3866 xmake_file
=mips
/x-osfrose
3867 tmake_file
=mips
/t-osfrose
3868 extra_objs
=halfpic.o
3871 mips-dec-osf
*) # Decstation running OSF/1 as shipped by DIGITAL
3872 tm_file
=mips
/dec-osf1.h
3873 if test x
$stabs = xyes
; then
3874 tm_file
="${tm_file} dbx.h"
3876 xmake_file
=mips
/x-dec-osf1
3877 if test x
$gas = xyes
3879 tmake_file
=mips
/t-mips-gas
3881 tmake_file
=mips
/t-ultrix
3882 extra_passes
="mips-tfile mips-tdump"
3884 if test x
$gnu_ld != xyes
3889 mips-dec-bsd
*) # Decstation running 4.4 BSD
3890 tm_file
=mips
/dec-bsd.h
3892 if test x
$gas = xyes
3894 tmake_file
=mips
/t-mips-gas
3896 tmake_file
=mips
/t-ultrix
3897 extra_passes
="mips-tfile mips-tdump"
3899 if test x
$gnu_ld != xyes
3904 mipsel-
*-netbsd* | mips-dec-netbsd
*) # Decstation running NetBSD
3905 tm_file
=mips
/netbsd.h
3906 xm_file
="xm-netbsd.h ${xm_file}"
3907 # On NetBSD, the headers are already okay, except for math.h.
3908 fixincludes
=fixinc.wrap
3911 mips-sony-bsd
* | mips-sony-newsos
*) # Sony NEWS 3600 or risc/news.
3912 tm_file
="mips/news4.h ${tm_file}"
3913 if test x
$stabs = xyes
; then
3914 tm_file
="${tm_file} dbx.h"
3916 if test x
$gas = xyes
3918 tmake_file
=mips
/t-mips-gas
3920 extra_passes
="mips-tfile mips-tdump"
3922 if test x
$gnu_ld != xyes
3926 xmake_file
=mips
/x-sony
3928 mips-sony-sysv
*) # Sony NEWS 3800 with NEWSOS5.0.
3929 # That is based on svr4.
3930 # t-svr4 is not right because this system doesn't use ELF.
3931 tm_file
="mips/news5.h ${tm_file}"
3932 if test x
$stabs = xyes
; then
3933 tm_file
="${tm_file} dbx.h"
3935 xm_file
="xm-siglist.h ${xm_file}"
3937 if test x
$gas = xyes
3939 tmake_file
=mips
/t-mips-gas
3941 extra_passes
="mips-tfile mips-tdump"
3943 if test x
$gnu_ld != xyes
3948 mips-tandem-sysv4
*) # Tandem S2 running NonStop UX
3949 tm_file
="mips/svr4-5.h mips/svr4-t.h"
3950 if test x
$stabs = xyes
; then
3951 tm_file
="${tm_file} dbx.h"
3953 xm_file
="xm-siglist.h ${xm_file}"
3955 xmake_file
=mips
/x-sysv
3956 if test x
$gas = xyes
3958 tmake_file
=mips
/t-mips-gas
3959 extra_parts
="crtbegin.o crtend.o"
3961 tmake_file
=mips
/t-mips
3962 extra_passes
="mips-tfile mips-tdump"
3964 if test x
$gnu_ld != xyes
3969 mips-
*-ultrix* | mips-dec-mach3
) # Decstation.
3970 tm_file
="mips/ultrix.h ${tm_file}"
3971 if test x
$stabs = xyes
; then
3972 tm_file
="${tm_file} dbx.h"
3974 xmake_file
=mips
/x-ultrix
3975 if test x
$gas = xyes
3977 tmake_file
=mips
/t-mips-gas
3979 tmake_file
=mips
/t-ultrix
3980 extra_passes
="mips-tfile mips-tdump"
3982 if test x
$gnu_ld != xyes
3987 mips-
*-riscos[56789]bsd
*)
3988 tm_file
=mips
/bsd-5.h
# MIPS BSD 4.3, RISC-OS 5.0
3989 if test x
$stabs = xyes
; then
3990 tm_file
="${tm_file} dbx.h"
3992 if test x
$gas = xyes
3994 tmake_file
=mips
/t-bsd-gas
3996 tmake_file
=mips
/t-bsd
3997 extra_passes
="mips-tfile mips-tdump"
3999 if test x
$gnu_ld != xyes
4004 mips-
*-bsd* | mips-
*-riscosbsd* | mips-
*-riscos[1234]bsd
*)
4005 tm_file
="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
4006 if test x
$stabs = xyes
; then
4007 tm_file
="${tm_file} dbx.h"
4009 if test x
$gas = xyes
4011 tmake_file
=mips
/t-bsd-gas
4013 tmake_file
=mips
/t-bsd
4014 extra_passes
="mips-tfile mips-tdump"
4016 if test x
$gnu_ld != xyes
4021 mips-
*-riscos[56789]sysv4
*)
4022 tm_file
=mips
/svr4-5.h
# MIPS System V.4., RISC-OS 5.0
4023 if test x
$stabs = xyes
; then
4024 tm_file
="${tm_file} dbx.h"
4026 xm_file
="xm-siglist.h ${xm_file}"
4027 xmake_file
=mips
/x-sysv
4028 if test x
$gas = xyes
4030 tmake_file
=mips
/t-svr4-gas
4032 tmake_file
=mips
/t-svr4
4033 extra_passes
="mips-tfile mips-tdump"
4035 if test x
$gnu_ld != xyes
4040 mips-
*-sysv4* | mips-
*-riscos[1234]sysv4
* | mips-
*-riscossysv4*)
4041 tm_file
="mips/svr4-4.h ${tm_file}"
4042 if test x
$stabs = xyes
; then
4043 tm_file
="${tm_file} dbx.h"
4046 xmake_file
=mips
/x-sysv
4047 if test x
$gas = xyes
4049 tmake_file
=mips
/t-svr4-gas
4051 tmake_file
=mips
/t-svr4
4052 extra_passes
="mips-tfile mips-tdump"
4054 if test x
$gnu_ld != xyes
4059 mips-
*-riscos[56789]sysv
*)
4060 tm_file
=mips
/svr3-5.h
# MIPS System V.3, RISC-OS 5.0
4061 if test x
$stabs = xyes
; then
4062 tm_file
="${tm_file} dbx.h"
4065 xmake_file
=mips
/x-sysv
4066 if test x
$gas = xyes
4068 tmake_file
=mips
/t-svr3-gas
4070 tmake_file
=mips
/t-svr3
4071 extra_passes
="mips-tfile mips-tdump"
4073 if test x
$gnu_ld != xyes
4078 mips-
*-sysv* | mips-
*-riscos*sysv
*)
4079 tm_file
="mips/svr3-4.h ${tm_file}"
4080 if test x
$stabs = xyes
; then
4081 tm_file
="${tm_file} dbx.h"
4084 xmake_file
=mips
/x-sysv
4085 if test x
$gas = xyes
4087 tmake_file
=mips
/t-svr3-gas
4089 tmake_file
=mips
/t-svr3
4090 extra_passes
="mips-tfile mips-tdump"
4092 if test x
$gnu_ld != xyes
4097 mips-
*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
4098 tm_file
=mips
/mips-5.h
4099 if test x
$stabs = xyes
; then
4100 tm_file
="${tm_file} dbx.h"
4102 if test x
$gas = xyes
4104 tmake_file
=mips
/t-mips-gas
4106 extra_passes
="mips-tfile mips-tdump"
4108 if test x
$gnu_ld != xyes
4116 tm_file
=mips
/ecoffl.h
4117 if test x
$stabs = xyes
; then
4118 tm_file
="${tm_file} dbx.h"
4120 tmake_file
=mips
/t-ecoff
4123 tm_file
="gofast.h mips/ecoff.h"
4124 if test x
$stabs = xyes
; then
4125 tm_file
="${tm_file} dbx.h"
4127 tmake_file
=mips
/t-ecoff
4130 tm_file
="mips/elfl.h libgloss.h"
4131 tmake_file
=mips
/t-ecoff
4134 tm_file
="mips/elf.h libgloss.h"
4135 tmake_file
=mips
/t-ecoff
4138 tm_file
="mips/elfl64.h libgloss.h"
4139 tmake_file
=mips
/t-ecoff
4141 mips64orionel-
*-elf*)
4142 tm_file
="mips/elforion.h mips/elfl64.h libgloss.h"
4143 tmake_file
=mips
/t-ecoff
4146 tm_file
="mips/elf64.h libgloss.h"
4147 tmake_file
=mips
/t-ecoff
4150 tm_file
="mips/elforion.h mips/elf64.h libgloss.h"
4151 tmake_file
=mips
/t-ecoff
4153 mips64orion-
*-rtems*)
4154 tm_file
="mips/elforion.h mips/elf64.h mips/rtems64.h"
4155 tmake_file
="mips/t-ecoff t-rtems"
4158 tm_file
="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
4159 tmake_file
=mips
/t-r3900
4162 tm_file
="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
4163 tmake_file
=mips
/t-r3900
4164 # FIXME mips-elf should be fixed to use crtstuff.
4167 mips-
*-*) # Default MIPS RISC-OS 4.0.
4168 if test x
$stabs = xyes
; then
4169 tm_file
="${tm_file} dbx.h"
4171 if test x
$gas = xyes
4173 tmake_file
=mips
/t-mips-gas
4175 extra_passes
="mips-tfile mips-tdump"
4177 if test x
$gnu_ld != xyes
4184 tm_file
="mn10200/mn10200.h"
4185 if test x
$stabs = xyes
4187 tm_file
="${tm_file} dbx.h"
4193 tm_file
="mn10300/mn10300.h"
4194 if test x
$stabs = xyes
4196 tm_file
="${tm_file} dbx.h"
4201 tm_file
=ns32k
/encore.h
4205 tm_file
=ns32k
/sequent.h
4209 tm_file
=ns32k
/tek6100.h
4213 tm_file
=ns32k
/tek6200.h
4216 # This has not been updated to GCC 2.
4219 # xmake_file=ns32k/x-genix
4220 # tm_file=ns32k/genix.h
4224 tm_file
=ns32k
/merlin.h
4228 tm_file
=ns32k
/pc532-mach.h
4232 tm_file
=ns32k
/pc532-min.h
4233 xm_file
="ns32k/xm-pc532-min.h ${xm-file}"
4238 tm_file
=ns32k
/netbsd.h
4239 xm_file
="xm-netbsd.h ${xm_file}"
4240 # On NetBSD, the headers are already okay, except for math.h.
4241 fixincludes
=fixinc.wrap
4245 tm_file
="${tm_file} pdp11/2bsd.h"
4251 xmake_file
=pyr
/x-pyr
4258 xmake_file
=romp
/x-mach
4263 tm_file
=rs6000
/beos.h
4264 xm_file
=rs6000
/xm-beos.h
4265 tmake_file
=rs6000
/t-beos
4266 xmake_file
=rs6000
/x-beos
4268 powerpc-
*-sysv* | powerpc-
*-elf*)
4269 tm_file
=rs6000
/sysv4.h
4270 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4271 xm_defines
="USG POSIX"
4272 extra_headers
=ppc-asm.h
4273 if test x
$gas = xyes
4275 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
4277 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4279 xmake_file
=rs6000
/x-sysv4
4282 tm_file
=rs6000
/eabiaix.h
4283 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4284 fixincludes
=Makefile.
in
4285 extra_headers
=ppc-asm.h
4288 tm_file
=rs6000
/eabisim.h
4289 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4290 fixincludes
=Makefile.
in
4291 extra_headers
=ppc-asm.h
4294 tm_file
=rs6000
/eabi.h
4295 if test x
$gas = xyes
4297 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4299 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4301 fixincludes
=Makefile.
in
4302 extra_headers
=ppc-asm.h
4305 tm_file
=rs6000
/rtems.h
4306 if test x
$gas = xyes
4308 tmake_file
="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
4310 tmake_file
="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
4312 fixincludes
=Makefile.
in
4313 extra_headers
=ppc-asm.h
4315 powerpc-
*-linux-gnulibc1)
4316 tm_file
=rs6000
/linux.h
4317 xm_file
=rs6000
/xm-sysv4.h
4318 out_file
=rs6000
/rs6000.c
4319 if test x
$gas = xyes
4321 tmake_file
="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
4323 tmake_file
="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
4326 fixincludes
=Makefile.
in
4327 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4328 extra_headers
=ppc-asm.h
4329 if test x
$enable_threads = xyes
; then
4333 powerpc-
*-linux-gnu*)
4334 tm_file
=rs6000
/linux.h
4335 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4336 xm_defines
="USG ${xm_defines}"
4337 out_file
=rs6000
/rs6000.c
4338 if test x
$gas = xyes
4340 tmake_file
="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
4342 tmake_file
="rs6000/t-ppc t-linux rs6000/t-ppccomm"
4345 fixincludes
=Makefile.
in
4346 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4347 extra_headers
=ppc-asm.h
4348 if test x
$enable_threads = xyes
; then
4352 powerpc-wrs-vxworks
*)
4354 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4355 xm_defines
="USG POSIX"
4356 tm_file
=rs6000
/vxppc.h
4357 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4358 extra_headers
=ppc-asm.h
4359 thread_file
='vxworks'
4361 powerpcle-
*-sysv* | powerpcle-
*-elf*)
4362 tm_file
=rs6000
/sysv4le.h
4363 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4364 xm_defines
="USG POSIX"
4365 if test x
$gas = xyes
4367 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
4369 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4371 xmake_file
=rs6000
/x-sysv4
4372 extra_headers
=ppc-asm.h
4374 powerpcle-
*-eabisim*)
4375 tm_file
=rs6000
/eabilesim.h
4376 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4377 fixincludes
=Makefile.
in
4378 extra_headers
=ppc-asm.h
4381 tm_file
=rs6000
/eabile.h
4382 if test x
$gas = xyes
4384 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4386 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4388 fixincludes
=Makefile.
in
4389 extra_headers
=ppc-asm.h
4391 powerpcle-
*-winnt* )
4392 tm_file
=rs6000
/win-nt.h
4393 tmake_file
=rs6000
/t-winnt
4395 fixincludes
=Makefile.
in
4396 if test x
$enable_threads = xyes
; then
4399 extra_headers
=ppc-asm.h
4401 powerpcle-
*-pe | powerpcle-
*-cygwin32)
4402 tm_file
=rs6000
/cygwin32.h
4403 xm_file
="rs6000/xm-cygwin32.h ${xm_file}"
4404 tmake_file
=rs6000
/t-winnt
4405 xmake_file
=rs6000
/x-cygwin32
4407 fixincludes
=Makefile.
in
4408 if test x
$enable_threads = xyes
; then
4412 extra_headers
=ppc-asm.h
4414 powerpcle-
*-solaris2*)
4415 tm_file
=rs6000
/sol2.h
4416 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4417 xm_defines
="USG POSIX"
4418 if test x
$gas = xyes
4420 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
4422 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4424 xmake_file
=rs6000
/x-sysv4
4427 fixincludes
=fixinc.svr4
;;
4429 fixincludes
=fixinc.wrap
;;
4431 extra_headers
=ppc-asm.h
4433 rs6000-ibm-aix3.
[01]*)
4434 tm_file
=rs6000
/aix31.h
4435 xmake_file
=rs6000
/x-aix31
4438 rs6000-ibm-aix3.2.
[456789]* | powerpc-ibm-aix3.2.
[456789]*)
4439 tm_file
=rs6000
/aix3newas.h
4440 if test x
$host != x
$target
4442 tmake_file
=rs6000
/t-xnewas
4444 tmake_file
=rs6000
/t-newas
4448 rs6000-ibm-aix4.
[12]* | powerpc-ibm-aix4.
[12]*)
4449 tm_file
=rs6000
/aix41.h
4450 if test x
$host != x
$target
4452 tmake_file
=rs6000
/t-xnewas
4454 tmake_file
=rs6000
/t-newas
4456 xmake_file
=rs6000
/x-aix41
4459 rs6000-ibm-aix4.
[3456789].
* | powerpc-ibm-aix4.
[3456789].
*)
4460 tm_file
=rs6000
/aix43.h
4461 if test x
$host != x
$target
4463 tmake_file
=rs6000
/t-xaix43
4465 tmake_file
=rs6000
/t-aix43
4467 xmake_file
=rs6000
/x-aix43
4470 rs6000-ibm-aix
[56789].
* | powerpc-ibm-aix
[56789].
*)
4471 tm_file
=rs6000
/aix43.h
4472 if test x
$host != x
$target
4474 tmake_file
=rs6000
/t-xaix43
4476 tmake_file
=rs6000
/t-aix43
4478 xmake_file
=rs6000
/x-aix43
4488 tm_file
=rs6000
/mach.h
4489 xm_file
="${xm_file} rs6000/xm-mach.h"
4490 xmake_file
=rs6000
/x-mach
4494 tm_file
=rs6000
/lynx.h
4495 xm_file
=rs6000
/xm-lynx.h
4496 tmake_file
=rs6000
/t-rs6000
4497 xmake_file
=rs6000
/x-lynx
4505 tmake_file
="sh/t-sh t-rtems"
4506 tm_file
=sh
/rtemself.h
4510 tmake_file
="sh/t-sh t-rtems"
4519 xm_file
="xm-alloca.h ${xm_file}"
4522 sparc-wrs-vxworks
* | sparclite-wrs-vxworks
*)
4523 tm_file
=sparc
/vxsparc.h
4524 tmake_file
=sparc
/t-vxsparc
4526 thread_file
='vxworks'
4529 tmake_file
=sparc
/t-sparcbare
4530 tm_file
="sparc/aout.h libgloss.h"
4533 tm_file
=sparc
/netbsd.h
4534 xm_file
="xm-netbsd.h ${xm_file}"
4535 # On NetBSD, the headers are already okay, except for math.h.
4536 fixincludes
=fixinc.wrap
4544 tmake_file
=sparc
/t-elf
4545 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4549 sparc-
*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
4550 xm_file
="${xm_file} sparc/xm-linux.h"
4551 tm_file
=sparc
/linux-aout.h
4553 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
4556 sparc-
*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
4557 xm_file
="${xm_file} sparc/xm-linux.h"
4559 tm_file
=sparc
/linux.h
4560 tmake_file
="t-linux t-linux-gnulibc1"
4561 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4562 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
4565 sparc-
*-linux-gnu*) # Sparc's running GNU/Linux, libc6
4566 xm_file
="${xm_file} sparc/xm-linux.h"
4568 tm_file
=sparc
/linux.h
4569 tmake_file
="t-linux"
4570 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4571 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
4573 if test x
$enable_threads = xyes
; then
4578 if test x
$gas = xyes
4580 tm_file
=sparc
/lynx.h
4582 tm_file
=sparc
/lynx-ng.h
4584 xm_file
=sparc
/xm-lynx.h
4585 tmake_file
=sparc
/t-sunos41
4589 tmake_file
="sparc/t-sparcbare t-rtems"
4590 tm_file
=sparc
/rtems.h
4593 if test x
$gnu_ld = xyes
4595 tm_file
=sparc
/sol2.h
4597 tm_file
=sparc
/sol2-sld.h
4599 xm_file
="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
4600 xm_defines
="USG POSIX"
4601 tmake_file
=sparc
/t-sol2
4602 xmake_file
=sparc
/x-sysv4
4603 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4606 fixincludes
=fixinc.svr4
;;
4608 fixincludes
=fixinc.wrap
;;
4611 if test x
${enable_threads} = x
; then
4612 enable_threads
=$have_pthread_h
4613 if test x
${enable_threads} = x
; then
4614 enable_threads
=$have_thread_h
4617 if test x
${enable_threads} = xyes
; then
4618 if test x
${have_pthread_h} = xyes
; then
4621 thread_file
='solaris'
4626 tm_file
=sparc
/sunos4.h
4627 tmake_file
=sparc
/t-sunos40
4631 tm_file
=sparc
/sunos4.h
4632 tmake_file
=sparc
/t-sunos41
4634 if test x
$gas = xyes
; then
4635 tm_file
="${tm_file} sparc/sun4gas.h"
4639 tm_file
=sparc
/sun4o3.h
4643 tm_file
=sparc
/sysv4.h
4644 xm_file
="xm-siglist.h sparc/xm-sysv4.h"
4645 xm_defines
="USG POSIX"
4647 xmake_file
=sparc
/x-sysv4
4648 extra_parts
="crtbegin.o crtend.o"
4651 xm_file
="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
4652 xm_defines
="USG POSIX"
4653 tm_file
=sparc
/vxsim.h
4654 tmake_file
=sparc
/t-vxsparc
4655 xmake_file
=sparc
/x-sysv4
4658 tm_file
="sparc/splet.h libgloss.h"
4659 tmake_file
=sparc
/t-splet
4662 tm_file
="sparc/litecoff.h libgloss.h"
4663 tmake_file
=sparc
/t-sparclite
4666 tm_file
="sparc/lite.h aoutos.h libgloss.h"
4667 tmake_file
=sparc
/t-sparclite
4670 tmake_file
=sparc
/t-sp64
4671 tm_file
=sparc
/sp64-aout.h
4674 tmake_file
=sparc
/t-sp64
4675 tm_file
=sparc
/sp64-elf.h
4676 extra_parts
="crtbegin.o crtend.o"
4678 sparc64-
*-linux*) # 64-bit Sparc's running GNU/Linux
4679 tmake_file
=sparc
/t-sp64
4680 xm_file
="sparc/xm-sp64.h sparc/xm-linux.h"
4681 tm_file
=sparc
/linux64.h
4683 fixincludes
=Makefile.
in # The headers are ok already.
4686 # This hasn't been upgraded to GCC 2.
4687 # tahoe-harris-*) # Harris tahoe, using COFF.
4688 # tm_file=tahoe/harris.h
4690 # tahoe-*-bsd*) # tahoe running BSD
4692 thumb-
*-coff* | thumbel-
*-coff*)
4694 out_file
=arm
/thumb.c
4695 xm_file
=arm
/xm-thumb.h
4696 md_file
=arm
/thumb.md
4697 tmake_file
=arm
/t-thumb
4698 fixincludes
=Makefile.
in # There is nothing to fix
4700 # This hasn't been upgraded to GCC 2.
4707 tm_file
="v850/v850.h"
4708 xm_file
="v850/xm-v850.h"
4709 tmake_file
=v850
/t-v850
4710 if test x
$stabs = xyes
4712 tm_file
="${tm_file} dbx.h"
4716 vax-
*-bsd*) # vaxen running BSD
4720 vax-
*-sysv*) # vaxen running system V
4721 tm_file
="${tm_file} vax/vaxv.h"
4726 tm_file
="${tm_file} netbsd.h vax/netbsd.h"
4727 xm_file
="xm-netbsd.h ${xm_file}"
4728 # On NetBSD, the headers are already okay, except for math.h.
4729 fixincludes
=fixinc.wrap
4733 vax-
*-ultrix*) # vaxen running ultrix
4734 tm_file
="${tm_file} vax/ultrix.h"
4738 vax-
*-vms*) # vaxen running VMS
4739 xm_file
=vax
/xm-vms.h
4743 vax-
*-*) # vax default entry
4747 xm_file
="${xm_file} xm-svr3"
4751 echo "Configuration $machine not supported" 1>&2
4758 ;; # Existing GNU/Linux systems do not use the GNU setup.
4760 # On the GNU system, the setup is just about the same on
4761 # each different CPU. The specific machines that GNU
4762 # supports are matched above and just set $cpu_type.
4763 xm_file
="xm-gnu.h ${xm_file}"
4764 tm_file
=${cpu_type}/gnu.h
4765 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
4766 # GNU always uses ELF.
4768 # GNU tools are the only tools.
4771 # On GNU, the headers are already okay.
4772 fixincludes
=Makefile.
in
4773 xmake_file
=x-linux
# These details are the same as Linux.
4774 tmake_file
=t-gnu
# These are not.
4777 fixincludes
=fixinc.svr4
4778 xmake_try_sysv
=x-sysv
4779 install_headers_dir
=install-headers-cpio
4782 install_headers_dir
=install-headers-cpio
4786 # Distinguish i[34567]86
4787 # Also, do not run mips-tfile on MIPS if using gas.
4788 # Process --with-cpu= for PowerPC/rs6000
4789 target_cpu_default2
=
4792 target_cpu_default2
=1
4795 target_cpu_default2
=2
4797 i686-
*-* | i786-
*-*)
4798 target_cpu_default2
=3
4803 target_cpu_default2
="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
4806 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
4809 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX"
4812 target_cpu_default2
="MASK_CPU_EV5"
4816 if test x
$gas = xyes
4818 if test "$target_cpu_default2" = ""
4820 target_cpu_default2
="MASK_GAS"
4822 target_cpu_default2
="${target_cpu_default2}|MASK_GAS"
4827 case "x$with_cpu" in
4830 target_cpu_default2
="TARGET_CPU_generic"
4833 # Distinguish cores, and major variants
4834 # arm7m doesn't exist, but D & I don't affect code
4835 xarm23678 | xarm250 | xarm67010 \
4836 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
4837 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
4838 | xstrongarm | xstrongarm110
)
4839 target_cpu_default2
="TARGET_CPU_$with_cpu"
4843 echo "--with-cpu must be passed a value" 1>&2
4848 if test x
$pass2done = xyes
4850 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4857 mips
*-*-ecoff* | mips
*-*-elf*)
4858 if test x
$gas = xyes
4860 if test x
$gnu_ld = xyes
4862 target_cpu_default2
=20
4864 target_cpu_default2
=16
4869 if test x
$gas = xyes
4871 target_cpu_default2
=16
4874 powerpc
*-*-* | rs6000-
*-*)
4875 case "x$with_cpu" in
4879 xcommon | xpower | xpower2 | xpowerpc | xrios \
4880 | xrios1 | xrios2 | xrsc | xrsc1 \
4881 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
4882 | x403 | x505 | x801 | x821 | x823 | x860
)
4883 target_cpu_default2
="\"$with_cpu\""
4887 echo "--with-cpu must be passed a value" 1>&2
4892 if test x
$pass2done = xyes
4894 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4901 case ".$with_cpu" in
4903 target_cpu_default2
=TARGET_CPU_
"`echo $machine | sed 's/-.*$//'`"
4905 .supersparc | .ultrasparc | .v7 | .v8 | .v9
)
4906 target_cpu_default2
="TARGET_CPU_$with_cpu"
4909 if test x
$pass2done = xyes
4911 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4919 if test "$target_cpu_default2" != ""
4921 if test "$target_cpu_default" != ""
4923 target_cpu_default
="(${target_cpu_default}|${target_cpu_default2})"
4925 target_cpu_default
=$target_cpu_default2
4929 # No need for collect2 if we have the GNU linker.
4930 # Actually, there is now; GNU ld doesn't handle the EH info or
4931 # collecting for shared libraries.
4938 # Save data on machine being used to compile GCC in build_xm_file.
4939 # Save data on host machine in vars host_xm_file and host_xmake_file.
4940 if test x
$pass1done = x
4942 if test x
"$xm_file" = x
4943 then build_xm_file
=$cpu_type/xm-
$cpu_type.h
4944 else build_xm_file
=$xm_file
4946 build_xm_defines
=$xm_defines
4947 build_install_headers_dir
=$install_headers_dir
4948 build_exeext
=$exeext
4951 if test x
$pass2done = x
4953 if test x
"$xm_file" = x
4954 then host_xm_file
=$cpu_type/xm-
$cpu_type.h
4955 else host_xm_file
=$xm_file
4957 host_xm_defines
=$xm_defines
4958 if test x
"$xmake_file" = x
4959 then xmake_file
=$cpu_type/x-
$cpu_type
4961 host_xmake_file
="$xmake_file"
4962 host_truncate_target
=$truncate_target
4963 host_extra_gcc_objs
=$extra_gcc_objs
4964 host_extra_objs
=$extra_host_objs
4971 extra_objs
="${host_extra_objs} ${extra_objs}"
4973 # Default the target-machine variables that were not explicitly set.
4974 if test x
"$tm_file" = x
4975 then tm_file
=$cpu_type/$cpu_type.h
; fi
4977 if test x
$extra_headers = x
4978 then extra_headers
=; fi
4980 if test x
"$xm_file" = x
4981 then xm_file
=$cpu_type/xm-
$cpu_type.h
; fi
4983 if test x
$md_file = x
4984 then md_file
=$cpu_type/$cpu_type.md
; fi
4986 if test x
$out_file = x
4987 then out_file
=$cpu_type/$cpu_type.c
; fi
4989 if test x
"$tmake_file" = x
4990 then tmake_file
=$cpu_type/t-
$cpu_type
4993 if test x
$float_format = x
4994 then float_format
=i64
4997 if test x
$enable_haifa = x
5000 alpha
*-* | hppa1.?
-* | powerpc
*-* | rs6000-
* |
*sparc
*-* | m32r
*-*)
5005 # Say what files are being used for the output code and MD file.
5006 echo "Using \`$srcdir/config/$out_file' to output insns."
5007 echo "Using \`$srcdir/config/$md_file' as machine description file."
5010 for f
in $tm_file; do
5013 if test $count = ax
; then
5014 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
5016 echo "Using the following target machine macro files:"
5017 for f
in $tm_file; do
5018 echo " $srcdir/config/$f"
5023 for f
in $host_xm_file; do
5026 if test $count = ax
; then
5027 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
5029 echo "Using the following host machine macro files:"
5030 for f
in $host_xm_file; do
5031 echo " $srcdir/config/$f"
5035 if test "$host_xm_file" != "$build_xm_file"; then
5037 for f
in $build_xm_file; do
5040 if test $count = ax
; then
5041 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
5043 echo "Using the following build machine macro files:"
5044 for f
in $build_xm_file; do
5045 echo " $srcdir/config/$f"
5050 if test x
$thread_file = x
; then
5051 if test x
$target_thread_file != x
; then
5052 thread_file
=$target_thread_file
5054 thread_file
='single'
5058 # Set up the header files.
5059 # $links is the list of header files to create.
5060 # $vars is the list of shell variables with file names to include.
5061 # auto-host.h is the file containing items generated by autoconf and is
5062 # the first file included by config.h.
5064 host_xm_file
="auto-host.h ${host_xm_file}"
5066 # If host=build, it is correct to have hconfig include auto-host.h
5067 # as well. If host!=build, we are in error and need to do more
5068 # work to find out the build config parameters.
5069 if test x
$host = x
$build
5071 build_xm_file
="auto-host.h ${build_xm_file}"
5073 # We create a subdir, then run autoconf in the subdir.
5074 # To prevent recursion we set host and build for the new
5075 # invocation of configure to the build for this invocation
5082 /*) realsrcdir
=${srcdir};;
5083 *) realsrcdir
=..
/${srcdir};;
5085 CC
=${CC_FOR_BUILD} ${realsrcdir}/configure \
5086 --target=$target --host=$build --build=$build
5088 # We just finished tests for the build machine, so rename
5089 # the file auto-build.h in the gcc directory.
5090 mv auto-host.h ..
/auto-build.h
5093 build_xm_file
="auto-build.h ${build_xm_file}"
5096 vars
="host_xm_file tm_file xm_file build_xm_file"
5097 links
="config.h tm.h tconfig.h hconfig.h"
5098 defines
="host_xm_defines null_defines xm_defines build_xm_defines"
5101 if test -f config.status
; then mv -f config.status config.bak
; fi
5104 while test -n "$vars"
5106 set $vars; var
=$1; shift; vars
=$
*
5107 set $links; link
=$1; shift; links
=$
*
5108 set $defines; define
=$1; shift; defines
=$
*
5112 # Define TARGET_CPU_DEFAULT if the system wants one.
5113 # This substitutes for lots of *.h files.
5114 if test "$target_cpu_default" != "" -a $link = tm.h
5116 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
5119 for file in `eval echo '$'$var`; do
5120 echo "#include \"$file\"" >>$link
5123 for def
in `eval echo '$'$define`; do
5124 echo "#ifndef $def" >>$link
5125 echo "#define $def" >>$link
5126 echo "#endif" >>$link
5130 # Truncate the target if necessary
5131 if test x
$host_truncate_target != x
; then
5132 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
5135 # Get the version trigger filename from the toplevel
5136 if test "${with_gcc_version_trigger+set}" = set; then
5137 gcc_version_trigger
=$with_gcc_version_trigger
5139 gcc_version_trigger
=${srcdir}/version.c
5141 gcc_version
=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
5143 # Get an absolute path to the GCC top-level source directory
5149 # Conditionalize the makefile for this host machine.
5150 # Make-host contains the concatenation of all host makefile fragments
5151 # [there can be more than one]. This file is built by configure.frag.
5152 host_overrides
=Make-host
5153 dep_host_xmake_file
=
5154 for f
in ..
${host_xmake_file}
5156 if test -f ${srcdir}/config
/$f
5158 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
5162 # Conditionalize the makefile for this target machine.
5163 # Make-target contains the concatenation of all host makefile fragments
5164 # [there can be more than one]. This file is built by configure.frag.
5165 target_overrides
=Make-target
5167 for f
in ..
${tmake_file}
5169 if test -f ${srcdir}/config
/$f
5171 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
5175 # If the host doesn't support symlinks, modify CC in
5176 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
5177 # Otherwise, we can use "CC=$(CC)".
5179 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
5181 cc_set_by_configure
="\$(CC)"
5182 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
5185 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
5187 symbolic_link
="cp -p"
5191 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
5192 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
5196 out_object_file
=`basename $out_file .c`.o
5199 for f
in $tm_file; do
5200 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
5204 for f
in $host_xm_file; do
5205 if test $f != "auto-host.h"; then
5206 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
5208 host_xm_file_list
="${host_xm_file_list} auto-host.h"
5213 for f
in $build_xm_file; do
5214 if test $f != "auto-build.h"; then
5215 if test $f != "auto-host.h"; then
5216 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
5218 build_xm_file_list
="${build_xm_file_list} auto-host.h"
5221 build_xm_file_list
="${build_xm_file_list} auto-build.h"
5225 # Define macro CROSS_COMPILE in compilation
5226 # if this is a cross-compiler.
5227 # Also use all.cross instead of all.internal
5228 # and add cross-make to Makefile.
5229 cross_overrides
="/dev/null"
5230 if test x
$host != x
$target
5232 cross_defines
="CROSS=-DCROSS_COMPILE"
5233 cross_overrides
="${topdir}/cross-make"
5236 # When building gcc with a cross-compiler, we need to fix a few things.
5237 # This must come after cross-make as we want all.build to override
5239 build_overrides
="/dev/null"
5240 if test x
$build != x
$host
5242 build_overrides
="${topdir}/build-make"
5245 # Expand extra_headers to include complete path.
5246 # This substitutes for lots of t-* files.
5248 if test "x$extra_headers" = x
5251 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
5252 for file in $extra_headers;
5254 extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/${file}"
5258 if test x
$use_collect2 = xno
; then
5262 # Add a definition of USE_COLLECT2 if system wants one.
5263 # Also tell toplev.c what to do.
5264 # This substitutes for lots of t-* files.
5265 if test x
$use_collect2 = x
5270 will_use_collect2
="collect2"
5271 maybe_use_collect2
="-DUSE_COLLECT2"
5275 # Set MD_DEPS if the real md file is in md.pre-cpp.
5276 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
5277 # for line oriented comments, so we must always use a GNU cpp. If
5278 # building gcc with a cross compiler, use the cross compiler just
5279 # built. Otherwise, we can use the cpp just built.
5281 if test "x$md_cppflags" = x
5283 md_file_sub
=$srcdir/config
/$md_file
5288 # If we have gas in the build tree, make a link to it.
5289 if test -f ..
/gas
/Makefile
; then
5290 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
5293 # If we have nm in the build tree, make a link to it.
5294 if test -f ..
/binutils
/Makefile
; then
5295 rm -f nm
; $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
5298 # If we have ld in the build tree, make a link to it.
5299 if test -f ..
/ld
/Makefile
; then
5300 # if test x$use_collect2 = x; then
5301 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
5303 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
5307 # Figure out what assembler alignment features are present.
5308 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
5309 echo "configure:5310: checking assembler alignment features" >&5
5311 gcc_cv_as_alignment_features
=
5312 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,gcc$,gas,'`
5313 if test -x as
$host_exeext; then
5314 # Build using assembler in the current directory.
5315 gcc_cv_as
=.
/as
$host_exeext
5316 elif test -f $gcc_cv_as_gas_srcdir/configure.
in; then
5317 # Single tree build which includes gas.
5318 for f
in $gcc_cv_as_gas_srcdir/configure
$gcc_cv_as_gas_srcdir/configure.
in $gcc_cv_as_gas_srcdir/Makefile.
in
5320 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
5321 if test x
$gcc_cv_gas_version != x
; then
5325 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
5326 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
5327 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
5328 # Gas version 2.6 and later support for .balign and .p2align.
5329 # bytes to skip when using .p2align.
5330 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 6 -o "$gcc_cv_gas_major_version" -gt 2; then
5331 gcc_cv_as_alignment_features
=".balign and .p2align"
5332 cat >> confdefs.h
<<\EOF
5333 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
5337 # Gas version 2.8 and later support specifying the maximum
5338 # bytes to skip when using .p2align.
5339 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 8 -o "$gcc_cv_gas_major_version" -gt 2; then
5340 gcc_cv_as_alignment_features
=".p2align including maximum skip"
5341 cat >> confdefs.h
<<\EOF
5342 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
5347 elif test x
$host = x
$target; then
5349 gcc_cv_as
=as
$host_exeext
5351 if test x
$gcc_cv_as != x
; then
5352 # Check if we have .balign and .p2align
5353 echo ".balign 4" > conftest.s
5354 echo ".p2align 2" >> conftest.s
5355 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
5356 gcc_cv_as_alignment_features
=".balign and .p2align"
5357 cat >> confdefs.h
<<\EOF
5358 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
5362 rm -f conftest.s conftest.o
5363 # Check if specifying the maximum bytes to skip when
5364 # using .p2align is supported.
5365 echo ".p2align 4,,7" > conftest.s
5366 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
5367 gcc_cv_as_alignment_features
=".p2align including maximum skip"
5368 cat >> confdefs.h
<<\EOF
5369 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
5373 rm -f conftest.s conftest.o
5375 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
5377 # Figure out what language subdirectories are present.
5379 for lang
in ${srcdir}/*/config-lang.
in ..
5383 # The odd quoting in the next line works around
5384 # an apparent bug in bash 1.12 on linux.
5385 ${srcdir}/[*]/config-lang.
in) ;;
5386 *) subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
5390 # Make gthr-default.h if we have a thread file.
5392 if test $thread_file != single
; then
5393 rm -f gthr-default.h
5394 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
5395 gthread_flags
=-DHAVE_GTHR_DEFAULT
5399 # Make empty files to contain the specs and options for each language.
5400 # Then add #include lines to for a compiler that has specs and/or options.
5405 rm -f specs.h options.h gencheck.h
5406 touch specs.h options.h gencheck.h
5407 for subdir
in .
$subdirs
5409 if test -f $srcdir/$subdir/lang-specs.h
; then
5410 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
5411 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
5413 if test -f $srcdir/$subdir/lang-options.h
; then
5414 echo "#include \"$subdir/lang-options.h\"" >>options.h
5415 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
5417 if test -f $srcdir/$subdir/$subdir-tree.def
; then
5418 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
5419 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
5423 # These (without "all_") are set in each config-lang.in.
5424 # `language' must be a single word so is spelled singularly.
5430 all_outputs
=Makefile
5431 # List of language makefile fragments.
5436 # Add the language fragments.
5437 # Languages are added via two mechanisms. Some information must be
5438 # recorded in makefile variables, these are defined in config-lang.in.
5439 # We accumulate them and plug them into the main Makefile.
5440 # The other mechanism is a set of hooks for each of the main targets
5441 # like `clean', `install', etc.
5443 language_fragments
="Make-lang"
5444 language_hooks
="Make-hooks"
5447 for s
in ..
$subdirs
5459 .
${srcdir}/$s/config-lang.
in
5460 if test "x$language" = x
5462 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
5465 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
5466 all_languages
="$all_languages $language"
5467 if test "x$boot_language" = xyes
5469 all_boot_languages
="$all_boot_languages $language"
5471 all_compilers
="$all_compilers $compilers"
5472 all_stagestuff
="$all_stagestuff $stagestuff"
5473 all_diff_excludes
="$all_diff_excludes $diff_excludes"
5474 all_headers
="$all_headers $headers"
5475 all_outputs
="$all_outputs $outputs"
5476 if test x
$outputs = x
5478 oldstyle_subdirs
="$oldstyle_subdirs $s"
5480 all_lib2funcs
="$all_lib2funcs $lib2funcs"
5484 # Since we can't use `::' targets, we link each language in
5485 # with a set of hooks, reached indirectly via lang.${target}.
5489 target_list
="all.build all.cross start.encap rest.encap \
5491 install-normal install-common install-info install-man \
5493 mostlyclean clean distclean extraclean maintainer-clean \
5494 stage1 stage2 stage3 stage4"
5495 for t
in $target_list
5498 for l
in ..
$all_languages
5500 if test $l != ".."; then
5504 echo "lang.$t: $x" >> Make-hooks
5507 # If we're not building in srcdir, create .gdbinit.
5509 if test ! -f Makefile.
in; then
5510 echo "dir ." > .gdbinit
5511 echo "dir ${srcdir}" >> .gdbinit
5512 if test x
$gdb_needs_out_file_path = xyes
5514 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
5516 if test "x$subdirs" != x
; then
5519 echo "dir ${srcdir}/$s" >> .gdbinit
5522 echo "source ${srcdir}/.gdbinit" >> .gdbinit
5525 # Define variables host_canonical and build_canonical
5526 # because some Cygnus local changes in the Makefile depend on them.
5527 build_canonical
=${build}
5528 host_canonical
=${host}
5530 if test "${host}" != "${target}" ; then
5531 target_subdir
=${target}/
5537 # If this is using newlib, then define inhibit_libc in
5538 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
5539 # libgcc.a, but that's OK because newib should have its own version of
5542 if test x
$with_newlib = xyes
; then
5543 inhibit_libc
=-Dinhibit_libc
5547 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
5550 if test x
$enable_haifa = xyes
; then
5551 echo "Using the Haifa scheduler."
5553 sched_cflags
=-DHAIFA
5557 if test x
$enable_haifa != x
; then
5558 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
5559 for x
in genattrtab.o toplev.o loop.o unroll.o
*sched.o
; do
5567 # Warn if using init_priority.
5568 echo $ac_n "checking whether to enable init_priority by default""... $ac_c" 1>&6
5569 echo "configure:5570: checking whether to enable init_priority by default" >&5
5570 if test x
$enable_init_priority != xyes
; then
5571 enable_init_priority
=no
5573 echo "$ac_t""$enable_init_priority" 1>&6
5575 # Nothing to do for FLOAT_H, float_format already handled.
5579 # Process the language and host/target makefile fragments.
5580 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
5582 # Substitute configuration variables
5639 # Echo that links are built
5640 if test x
$host = x
$target
5648 if test x
$host != x
$build
5650 str3
=" on a $build system"
5653 if test "x$str2" != x ||
test "x$str3" != x
5658 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
5660 if test "x$str2" != x ||
test "x$str3" != x
5662 echo " ${str2}${str3}." 1>&2
5665 # Truncate the target if necessary
5666 if test x
$host_truncate_target != x
; then
5667 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
5670 # Configure the subdirectories
5671 # AC_CONFIG_SUBDIRS($subdirs)
5673 # Create the Makefile
5674 # and configure language subdirectories
5676 cat > confcache
<<\EOF
5677 # This file is a shell script that caches the results of configure
5678 # tests run on this system so they can be shared between configure
5679 # scripts and configure runs. It is not useful on other systems.
5680 # If it contains results you don't want to keep, you may remove or edit it.
5682 # By default, configure uses ./config.cache as the cache file,
5683 # creating it if it does not exist already. You can give configure
5684 # the --cache-file=FILE option to use a different cache file; that is
5685 # what configure does when it calls configure scripts in
5686 # subdirectories, so they share the cache.
5687 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5688 # config.status only pays attention to the cache file if you give it the
5689 # --recheck option to rerun configure.
5692 # The following way of writing the cache mishandles newlines in values,
5693 # but we know of no workaround that is simple, portable, and efficient.
5694 # So, don't put newlines in cache variables' values.
5695 # Ultrix sh set writes to stderr and can't be redirected directly,
5696 # and sets the high bit in the cache file unless we assign to the vars.
5698 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
5700 # `set' does not quote correctly, so add quotes (double-quote substitution
5701 # turns \\\\ into \\, and sed turns \\ into \).
5703 -e "s/'/'\\\\''/g" \
5704 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5707 # `set' quotes correctly as required by POSIX, so do not add quotes.
5708 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5711 if cmp -s $cache_file confcache
; then
5714 if test -w $cache_file; then
5715 echo "updating cache $cache_file"
5716 cat confcache
> $cache_file
5718 echo "not updating unwritable cache $cache_file"
5723 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5725 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5726 # Let make expand exec_prefix.
5727 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5729 # Any assignment to VPATH causes Sun make to only execute
5730 # the first set of double-colon rules, so remove it if not needed.
5731 # If there is a colon in the path, we need to keep it.
5732 if test "x$srcdir" = x.
; then
5733 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5736 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5738 DEFS
=-DHAVE_CONFIG_H
5740 # Without the "./", some shells look in PATH for config.status.
5741 : ${CONFIG_STATUS=./config.status}
5743 echo creating
$CONFIG_STATUS
5744 rm -f $CONFIG_STATUS
5745 cat > $CONFIG_STATUS <<EOF
5747 # Generated automatically by configure.
5748 # Run this file to recreate the current configuration.
5749 # This directory was configured as follows,
5750 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5752 # $0 $ac_configure_args
5754 # Compiler output produced by configure, useful for debugging
5755 # configure, is in ./config.log if it exists.
5757 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5760 case "\$ac_option" in
5761 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5762 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5763 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5764 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5765 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
5767 -help | --help | --hel | --he | --h)
5768 echo "\$ac_cs_usage"; exit 0 ;;
5769 *) echo "\$ac_cs_usage"; exit 1 ;;
5773 ac_given_srcdir=$srcdir
5775 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5777 cat >> $CONFIG_STATUS <<EOF
5779 # Protect against being on the right side of a sed subst in config.status.
5780 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5781 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5785 s%@CFLAGS@%$CFLAGS%g
5786 s%@CPPFLAGS@%$CPPFLAGS%g
5787 s%@CXXFLAGS@%$CXXFLAGS%g
5789 s%@LDFLAGS@%$LDFLAGS%g
5791 s%@exec_prefix@%$exec_prefix%g
5792 s%@prefix@%$prefix%g
5793 s%@program_transform_name@%$program_transform_name%g
5794 s%@bindir@%$bindir%g
5795 s%@sbindir@%$sbindir%g
5796 s%@libexecdir@%$libexecdir%g
5797 s%@datadir@%$datadir%g
5798 s%@sysconfdir@%$sysconfdir%g
5799 s%@sharedstatedir@%$sharedstatedir%g
5800 s%@localstatedir@%$localstatedir%g
5801 s%@libdir@%$libdir%g
5802 s%@includedir@%$includedir%g
5803 s%@oldincludedir@%$oldincludedir%g
5804 s%@infodir@%$infodir%g
5805 s%@mandir@%$mandir%g
5807 s%@host_alias@%$host_alias%g
5808 s%@host_cpu@%$host_cpu%g
5809 s%@host_vendor@%$host_vendor%g
5810 s%@host_os@%$host_os%g
5811 s%@target@%$target%g
5812 s%@target_alias@%$target_alias%g
5813 s%@target_cpu@%$target_cpu%g
5814 s%@target_vendor@%$target_vendor%g
5815 s%@target_os@%$target_os%g
5817 s%@build_alias@%$build_alias%g
5818 s%@build_cpu@%$build_cpu%g
5819 s%@build_vendor@%$build_vendor%g
5820 s%@build_os@%$build_os%g
5822 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
5823 s%@SET_MAKE@%$SET_MAKE%g
5826 s%@LEXLIB@%$LEXLIB%g
5829 s%@RANLIB@%$RANLIB%g
5831 s%@INSTALL@%$INSTALL%g
5832 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5833 s%@INSTALL_DATA@%$INSTALL_DATA%g
5835 s%@vfprintf@%$vfprintf%g
5836 s%@doprint@%$doprint%g
5837 s%@manext@%$manext%g
5838 s%@objext@%$objext%g
5839 s%@gthread_flags@%$gthread_flags%g
5840 s%@build_canonical@%$build_canonical%g
5841 s%@host_canonical@%$host_canonical%g
5842 s%@target_subdir@%$target_subdir%g
5843 s%@inhibit_libc@%$inhibit_libc%g
5844 s%@sched_prefix@%$sched_prefix%g
5845 s%@sched_cflags@%$sched_cflags%g
5846 s%@objdir@%$objdir%g
5847 s%@subdirs@%$subdirs%g
5848 s%@all_languages@%$all_languages%g
5849 s%@all_boot_languages@%$all_boot_languages%g
5850 s%@all_compilers@%$all_compilers%g
5851 s%@all_lang_makefiles@%$all_lang_makefiles%g
5852 s%@all_stagestuff@%$all_stagestuff%g
5853 s%@all_diff_excludes@%$all_diff_excludes%g
5854 s%@all_lib2funcs@%$all_lib2funcs%g
5855 s%@all_headers@%$all_headers%g
5856 s%@cpp_main@%$cpp_main%g
5857 s%@extra_passes@%$extra_passes%g
5858 s%@extra_programs@%$extra_programs%g
5859 s%@extra_parts@%$extra_parts%g
5860 s%@extra_c_objs@%$extra_c_objs%g
5861 s%@extra_cxx_objs@%$extra_cxx_objs%g
5862 s%@extra_cpp_objs@%$extra_cpp_objs%g
5863 s%@extra_c_flags@%$extra_c_flags%g
5864 s%@extra_objs@%$extra_objs%g
5865 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
5866 s%@extra_headers_list@%$extra_headers_list%g
5867 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
5868 s%@dep_tmake_file@%$dep_tmake_file%g
5869 s%@out_file@%$out_file%g
5870 s%@out_object_file@%$out_object_file%g
5871 s%@md_file@%$md_file%g
5872 s%@tm_file_list@%$tm_file_list%g
5873 s%@build_xm_file_list@%$build_xm_file_list%g
5874 s%@host_xm_file_list@%$host_xm_file_list%g
5875 s%@lang_specs_files@%$lang_specs_files%g
5876 s%@lang_options_files@%$lang_options_files%g
5877 s%@lang_tree_files@%$lang_tree_files%g
5878 s%@thread_file@%$thread_file%g
5879 s%@gcc_version@%$gcc_version%g
5880 s%@gcc_version_trigger@%$gcc_version_trigger%g
5881 s%@local_prefix@%$local_prefix%g
5882 s%@gxx_include_dir@%$gxx_include_dir%g
5883 s%@fixincludes@%$fixincludes%g
5884 s%@build_install_headers_dir@%$build_install_headers_dir%g
5885 s%@build_exeext@%$build_exeext%g
5886 s%@host_exeext@%$host_exeext%g
5887 s%@float_format@%$float_format%g
5888 s%@will_use_collect2@%$will_use_collect2%g
5889 s%@maybe_use_collect2@%$maybe_use_collect2%g
5890 s%@cc_set_by_configure@%$cc_set_by_configure%g
5891 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
5892 s%@install@%$install%g
5893 s%@symbolic_link@%$symbolic_link%g
5894 /@target_overrides@/r $target_overrides
5895 s%@target_overrides@%%g
5896 /@host_overrides@/r $host_overrides
5897 s%@host_overrides@%%g
5898 s%@cross_defines@%$cross_defines%g
5899 /@cross_overrides@/r $cross_overrides
5900 s%@cross_overrides@%%g
5901 /@build_overrides@/r $build_overrides
5902 s%@build_overrides@%%g
5903 /@language_fragments@/r $language_fragments
5904 s%@language_fragments@%%g
5905 /@language_hooks@/r $language_hooks
5906 s%@language_hooks@%%g
5911 cat >> $CONFIG_STATUS <<\EOF
5913 # Split the substitutions into bite-sized pieces for seds with
5914 # small command number limits, like on Digital OSF/1 and HP-UX.
5915 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5916 ac_file
=1 # Number of current file.
5917 ac_beg
=1 # First line for current file.
5918 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5921 while $ac_more_lines; do
5922 if test $ac_beg -gt 1; then
5923 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5925 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5927 if test ! -s conftest.s
$ac_file; then
5929 rm -f conftest.s
$ac_file
5931 if test -z "$ac_sed_cmds"; then
5932 ac_sed_cmds
="sed -f conftest.s$ac_file"
5934 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5936 ac_file
=`expr $ac_file + 1`
5938 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5941 if test -z "$ac_sed_cmds"; then
5946 cat >> $CONFIG_STATUS <<EOF
5948 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
5950 cat >> $CONFIG_STATUS <<\EOF
5951 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5952 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5954 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5955 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5956 *) ac_file_in
="${ac_file}.in" ;;
5959 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5961 # Remove last slash and all that follows it. Not all systems have dirname.
5962 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5963 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5964 # The file is in a subdirectory.
5965 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5966 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5967 # A "../" for each directory in $ac_dir_suffix.
5968 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5970 ac_dir_suffix
= ac_dots
=
5973 case "$ac_given_srcdir" in
5975 if test -z "$ac_dots"; then top_srcdir
=.
5976 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5977 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5979 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5980 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5984 echo creating
"$ac_file"
5986 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5988 *Makefile
*) ac_comsub
="1i\\
5989 # $configure_input" ;;
5993 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5995 s%@configure_input@%$configure_input%g
5996 s%@srcdir@%$srcdir%g
5997 s%@top_srcdir@%$top_srcdir%g
5998 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
6002 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6003 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6005 # ac_d sets the value in "#define NAME VALUE" lines.
6006 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6007 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
6010 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6011 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6012 ac_uB
='\([ ]\)%\1#\2define\3'
6015 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6016 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6017 ac_eB
='$%\1#\2define\3'
6021 if test "${CONFIG_HEADERS+set}" != set; then
6023 cat >> $CONFIG_STATUS <<EOF
6024 CONFIG_HEADERS="auto-host.h:config.in"
6026 cat >> $CONFIG_STATUS <<\EOF
6028 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
6029 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6031 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6032 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6033 *) ac_file_in
="${ac_file}.in" ;;
6036 echo creating
$ac_file
6038 rm -f conftest.frag conftest.
in conftest.out
6039 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6040 cat $ac_file_inputs > conftest.
in
6044 # Transform confdefs.h into a sed script conftest.vals that substitutes
6045 # the proper values into config.h.in to produce config.h. And first:
6046 # Protect against being on the right side of a sed subst in config.status.
6047 # Protect against being in an unquoted here document in config.status.
6049 cat > conftest.hdr
<<\EOF
6052 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6056 sed -n -f conftest.hdr confdefs.h > conftest.vals
6059 # This sed command replaces #undef with comments. This is necessary, for
6060 # example, in the case of _POSIX_SOURCE, which is predefined and required
6061 # on some systems where configure will not decide to define it.
6062 cat >> conftest.vals <<\EOF
6063 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6066 # Break up conftest.vals because some shells have a limit on
6067 # the size of here documents, and old seds have small limits too.
6072 ac_lines=`grep -c . conftest.vals
`
6073 # grep -c gives empty output for an empty file on some AIX systems.
6074 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6075 # Write a limited-size here document to conftest.frag.
6076 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6077 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6079 sed -f conftest.frag conftest.in > conftest.out
6081 mv conftest.out conftest.in
6083 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6085 mv conftest.tail conftest.vals
6089 cat >> $CONFIG_STATUS <<\EOF
6090 rm -f conftest.frag conftest.h
6091 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6092 cat conftest.in >> conftest.h
6094 if cmp -s $ac_file conftest.h 2>/dev/null; then
6095 echo "$ac_file is unchanged"
6098 # Remove last slash and all that follows it. Not all systems have dirname.
6099 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
6100 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6101 # The file is in a subdirectory.
6102 test ! -d "$ac_dir" && mkdir "$ac_dir"
6105 mv conftest.h $ac_file
6110 cat >> $CONFIG_STATUS <<EOF
6115 target_alias='${target_alias}'
6117 subdirs='${subdirs}'
6118 oldstyle_subdirs='${oldstyle_subdirs}'
6119 symbolic_link='${symbolic_link}'
6120 program_transform_set='${program_transform_set}'
6121 program_transform_name='${program_transform_name}'
6122 dep_host_xmake_file='${dep_host_xmake_file}'
6123 host_xmake_file='${host_xmake_file}'
6124 dep_tmake_file='${dep_tmake_file}'
6125 tmake_file='${tmake_file}'
6126 thread_file='${thread_file}'
6127 gcc_version='${gcc_version}'
6128 gcc_version_trigger='${gcc_version_trigger}'
6129 local_prefix='${local_prefix}'
6130 build_install_headers_dir='${build_install_headers_dir}'
6131 build_exeext='${build_exeext}'
6132 host_exeext='${host_exeext}'
6133 out_file='${out_file}'
6134 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
6135 SET_MAKE='${SET_MAKE}'
6136 target_list='${target_list}'
6137 target_overrides='${target_overrides}'
6138 host_overrides='${host_overrides}'
6139 cross_defines='${cross_defines}'
6140 cross_overrides='${cross_overrides}'
6141 build_overrides='${build_overrides}'
6144 cat >> $CONFIG_STATUS <<\EOF
6146 . $srcdir/configure.lang
6147 case x$CONFIG_HEADERS in
6148 xauto-host.h:config.in)
6151 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
6152 # bootstrapping and the installation procedure can still use
6153 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
6154 # FLAGS_TO_PASS has been modified to solve the problem there.
6155 # This is virtually a duplicate of what happens in configure.lang; we do
6156 # an extra check to make sure this only happens if ln -s can be used.
6157 if test "$symbolic_link" = "ln -s"; then
6158 for d in .. ${subdirs} ; do
6159 if test $d != ..; then
6162 for t in stage1 stage2 stage3 stage4 include
6165 $symbolic_link ../$t $t 2>/dev/null
6174 chmod +x $CONFIG_STATUS
6175 rm -fr confdefs* $ac_clean_files
6176 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1