3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
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-ld arrange to use the specified ld (full pathname)."
19 --with-gnu-as arrange to work with GNU as."
21 --with-as arrange to use the specified as (full pathname)."
23 --with-stabs arrange to use stabs instead of host debug format."
25 --with-elf arrange to use ELF instead of host debug format."
27 --with-local-prefix=DIR specifies directory to put local include."
29 --with-gxx-include-dir=DIR
30 specifies directory to put g++ header files."
32 --enable-checking[=LIST]
33 enable expensive run-time checks. With LIST,
34 enable only specific categories of checks.
35 Categories are: misc,tree,rtl,gc,gcac; default
38 --disable-cpp don't provide a user-visible C preprocessor."
40 --with-cpp-install-dir=DIR
41 install the user visible C preprocessor in DIR
42 (relative to PREFIX) as well as PREFIX/bin."
44 --enable-c-mbchar Enable multibyte characters for C and C++."
46 --enable-threads enable thread usage for target GCC.
47 --enable-threads=LIB use LIB thread package for target GCC."
49 --enable-objc-gc enable the use of Boehm's garbage collector with
50 the GNU Objective-C runtime."
52 --with-dwarf2 force the default debug format to be DWARF2."
54 --enable-nls use Native Language Support (default)"
56 --disable-nls do not use Native Language Support"
58 --with-included-gettext use the GNU gettext library included here"
60 --with-catgets use catgets functions if available"
62 --disable-win32-registry
63 Disable lookup of installation paths in the
64 Registry on Windows hosts.
65 --enable-win32-registry Enable registry lookup (default).
66 --enable-win32-registry=KEY
67 Use KEY instead of GCC version as the last portion
70 --with-gc={simple,page} Choose the garbage collection mechanism to use
74 select the new abi for g++. You must select an ABI
75 at configuration time, so that the correct runtime
76 support is built. You cannot mix ABIs."
79 enable libstdc++-v3 for building and installation"
81 --enable-maintainer-mode enable make rules and dependencies not useful
82 (and sometimes confusing) to the casual installer"
84 # Initialize some variables set by options.
85 # The variables have the same names as the options, with
86 # dashes changed to underlines.
88 cache_file
=.
/config.cache
97 program_transform_name
=s
,x
,x
,
105 bindir
='${exec_prefix}/bin'
106 sbindir
='${exec_prefix}/sbin'
107 libexecdir
='${exec_prefix}/libexec'
108 datadir
='${prefix}/share'
109 sysconfdir
='${prefix}/etc'
110 sharedstatedir
='${prefix}/com'
111 localstatedir
='${prefix}/var'
112 libdir
='${exec_prefix}/lib'
113 includedir
='${prefix}/include'
114 oldincludedir
='/usr/include'
115 infodir
='${prefix}/info'
116 mandir
='${prefix}/man'
118 # Initialize some other variables.
121 SHELL
=${CONFIG_SHELL-/bin/sh}
122 # Maximum number of lines to put in a shell here document.
129 # If the previous option needs an argument, assign it.
130 if test -n "$ac_prev"; then
131 eval "$ac_prev=\$ac_option"
137 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
141 # Accept the important Cygnus configure options, so we can diagnose typos.
145 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
147 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
148 bindir
="$ac_optarg" ;;
150 -build |
--build |
--buil |
--bui |
--bu)
152 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
153 build
="$ac_optarg" ;;
155 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
156 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
157 ac_prev
=cache_file
;;
158 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
159 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
160 cache_file
="$ac_optarg" ;;
162 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
164 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
166 datadir
="$ac_optarg" ;;
168 -disable-* |
--disable-*)
169 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
170 # Reject names that are not valid shell variable names.
171 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
172 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
174 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
175 eval "enable_${ac_feature}=no" ;;
177 -enable-* |
--enable-*)
178 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
179 # Reject names that are not valid shell variable names.
180 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
181 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
183 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
188 eval "enable_${ac_feature}='$ac_optarg'" ;;
190 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
191 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
192 |
--exec |
--exe |
--ex)
193 ac_prev
=exec_prefix
;;
194 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
195 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
196 |
--exec=* |
--exe=* |
--ex=*)
197 exec_prefix
="$ac_optarg" ;;
199 -gas |
--gas |
--ga |
--g)
200 # Obsolete; use --with-gas.
203 -help |
--help |
--hel |
--he)
204 # Omit some internal or obsolete options to make the list less imposing.
205 # This message is too long to be a string in the A/UX 3.1 sh.
207 Usage: configure [options] [host]
208 Options: [defaults in brackets after descriptions]
210 --cache-file=FILE cache test results in FILE
211 --help print this message
212 --no-create do not create output files
213 --quiet, --silent do not print \`checking...' messages
214 --version print the version of autoconf that created configure
215 Directory and file names:
216 --prefix=PREFIX install architecture-independent files in PREFIX
218 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
220 --bindir=DIR user executables in DIR [EPREFIX/bin]
221 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
222 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
223 --datadir=DIR read-only architecture-independent data in DIR
225 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
226 --sharedstatedir=DIR modifiable architecture-independent data in DIR
228 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
229 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
230 --includedir=DIR C header files in DIR [PREFIX/include]
231 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
232 --infodir=DIR info documentation in DIR [PREFIX/info]
233 --mandir=DIR man documentation in DIR [PREFIX/man]
234 --srcdir=DIR find the sources in DIR [configure dir or ..]
235 --program-prefix=PREFIX prepend PREFIX to installed program names
236 --program-suffix=SUFFIX append SUFFIX to installed program names
237 --program-transform-name=PROGRAM
238 run sed PROGRAM on installed program names
242 --build=BUILD configure for building on BUILD [BUILD=HOST]
243 --host=HOST configure for HOST [guessed]
244 --target=TARGET configure for TARGET [TARGET=HOST]
245 Features and packages:
246 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
247 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
248 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
249 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
250 --x-includes=DIR X include files are in DIR
251 --x-libraries=DIR X library files are in DIR
253 if test -n "$ac_help"; then
254 echo "--enable and --with options recognized:$ac_help"
258 -host |
--host |
--hos |
--ho)
260 -host=* |
--host=* |
--hos=* |
--ho=*)
263 -includedir |
--includedir |
--includedi |
--included |
--include \
264 |
--includ |
--inclu |
--incl |
--inc)
265 ac_prev
=includedir
;;
266 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
267 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
268 includedir
="$ac_optarg" ;;
270 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
272 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
273 infodir
="$ac_optarg" ;;
275 -libdir |
--libdir |
--libdi |
--libd)
277 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
278 libdir
="$ac_optarg" ;;
280 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
281 |
--libexe |
--libex |
--libe)
282 ac_prev
=libexecdir
;;
283 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
284 |
--libexe=* |
--libex=* |
--libe=*)
285 libexecdir
="$ac_optarg" ;;
287 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
288 |
--localstate |
--localstat |
--localsta |
--localst \
289 |
--locals |
--local |
--loca |
--loc |
--lo)
290 ac_prev
=localstatedir
;;
291 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
292 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
293 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
294 localstatedir
="$ac_optarg" ;;
296 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
298 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
299 mandir
="$ac_optarg" ;;
302 # Obsolete; use --without-fp.
305 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
309 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
310 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
313 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
314 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
315 |
--oldin |
--oldi |
--old |
--ol |
--o)
316 ac_prev
=oldincludedir
;;
317 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
318 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
319 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
320 oldincludedir
="$ac_optarg" ;;
322 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
324 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
325 prefix
="$ac_optarg" ;;
327 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
328 |
--program-pre |
--program-pr |
--program-p)
329 ac_prev
=program_prefix
;;
330 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
331 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
332 program_prefix
="$ac_optarg" ;;
334 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
335 |
--program-suf |
--program-su |
--program-s)
336 ac_prev
=program_suffix
;;
337 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
338 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
339 program_suffix
="$ac_optarg" ;;
341 -program-transform-name |
--program-transform-name \
342 |
--program-transform-nam |
--program-transform-na \
343 |
--program-transform-n |
--program-transform- \
344 |
--program-transform |
--program-transfor \
345 |
--program-transfo |
--program-transf \
346 |
--program-trans |
--program-tran \
347 |
--progr-tra |
--program-tr |
--program-t)
348 ac_prev
=program_transform_name
;;
349 -program-transform-name=* |
--program-transform-name=* \
350 |
--program-transform-nam=* |
--program-transform-na=* \
351 |
--program-transform-n=* |
--program-transform-=* \
352 |
--program-transform=* |
--program-transfor=* \
353 |
--program-transfo=* |
--program-transf=* \
354 |
--program-trans=* |
--program-tran=* \
355 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
356 program_transform_name
="$ac_optarg" ;;
358 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
359 |
-silent |
--silent |
--silen |
--sile |
--sil)
362 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
364 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
366 sbindir
="$ac_optarg" ;;
368 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
369 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
370 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
372 ac_prev
=sharedstatedir
;;
373 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
374 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
375 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
377 sharedstatedir
="$ac_optarg" ;;
379 -site |
--site |
--sit)
381 -site=* |
--site=* |
--sit=*)
384 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
386 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
387 srcdir
="$ac_optarg" ;;
389 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
390 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
391 ac_prev
=sysconfdir
;;
392 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
393 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
394 sysconfdir
="$ac_optarg" ;;
396 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
398 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
399 target
="$ac_optarg" ;;
401 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
404 -version |
--version |
--versio |
--versi |
--vers)
405 echo "configure generated by autoconf version 2.13"
409 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
410 # Reject names that are not valid shell variable names.
411 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
412 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
414 ac_package
=`echo $ac_package| sed 's/-/_/g'`
419 eval "with_${ac_package}='$ac_optarg'" ;;
421 -without-* |
--without-*)
422 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
423 # Reject names that are not valid shell variable names.
424 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
425 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
427 ac_package
=`echo $ac_package| sed 's/-/_/g'`
428 eval "with_${ac_package}=no" ;;
431 # Obsolete; use --with-x.
434 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
435 |
--x-incl |
--x-inc |
--x-in |
--x-i)
436 ac_prev
=x_includes
;;
437 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
438 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
439 x_includes
="$ac_optarg" ;;
441 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
442 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
443 ac_prev
=x_libraries
;;
444 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
445 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
446 x_libraries
="$ac_optarg" ;;
448 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
452 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
453 echo "configure: warning: $ac_option: invalid host type" 1>&2
455 if test "x$nonopt" != xNONE
; then
456 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
464 if test -n "$ac_prev"; then
465 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
468 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
470 # File descriptor usage:
473 # 2 errors and warnings
474 # 3 some systems may open it to /dev/tty
475 # 4 used on the Kubota Titan
476 # 6 checking for... messages and results
477 # 5 compiler messages saved in config.log
478 if test "$silent" = yes; then
486 This file contains any messages produced by compilers while
487 running configure, to aid debugging if configure makes a mistake.
490 # Strip out --no-create and --no-recursion so they do not pile up.
491 # Also quote any args containing shell metacharacters.
496 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
497 |
--no-cr |
--no-c) ;;
498 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
499 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
500 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
501 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
502 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
507 # Only set these to C if already set. These must not be set unconditionally
508 # because not all systems understand e.g. LANG=C (notably SCO).
509 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
510 # Non-C LC_CTYPE values break the ctype check.
511 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
512 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
513 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
514 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
516 # confdefs.h avoids OS command line length limits that DEFS can exceed.
517 rm -rf conftest
* confdefs.h
518 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
521 # A filename unique to this package, relative to the directory that
522 # configure is in, which we can look for to find out if srcdir is correct.
523 ac_unique_file
=tree.c
525 # Find the source files, if location was not specified.
526 if test -z "$srcdir"; then
527 ac_srcdir_defaulted
=yes
528 # Try the directory containing this script, then its parent.
530 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
531 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
533 if test ! -r $srcdir/$ac_unique_file; then
537 ac_srcdir_defaulted
=no
539 if test ! -r $srcdir/$ac_unique_file; then
540 if test "$ac_srcdir_defaulted" = yes; then
541 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
543 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
546 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
548 # Prefer explicitly selected file to automatically selected ones.
549 if test -z "$CONFIG_SITE"; then
550 if test "x$prefix" != xNONE
; then
551 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
553 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
556 for ac_site_file
in $CONFIG_SITE; do
557 if test -r "$ac_site_file"; then
558 echo "loading site script $ac_site_file"
563 if test -r "$cache_file"; then
564 echo "loading cache $cache_file"
567 echo "creating cache $cache_file"
572 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
573 ac_cpp
='$CPP $CPPFLAGS'
574 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
575 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
576 cross_compiling
=$ac_cv_prog_cc_cross
580 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
581 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
582 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
589 ac_n
= ac_c
='\c' ac_t
=
597 symbolic_link
='ln -s'
600 # Check for bogus environment variables.
601 # Test if LIBRARY_PATH contains the notation for the current directory
602 # since this would lead to problems installing/building glibc.
603 # LIBRARY_PATH contains the current directory if one of the following
605 # - one of the terminals (":" and ";") is the first or last sign
606 # - two terminals occur directly after each other
607 # - the path contains an element with a dot in it
608 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
609 echo "configure:610: checking LIBRARY_PATH variable" >&5
610 case ${LIBRARY_PATH} in
611 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
612 library_path_setting
="contains current directory"
615 library_path_setting
="ok"
618 echo "$ac_t""$library_path_setting" 1>&6
619 if test "$library_path_setting" != "ok"; then
620 { echo "configure: error:
621 *** LIBRARY_PATH shouldn't contain the current directory when
622 *** building gcc. Please change the environment variable
623 *** and run configure again." 1>&2; exit 1; }
626 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
627 # since this would lead to problems installing/building glibc.
628 # GCC_EXEC_PREFIX contains the current directory if one of the following
630 # - one of the terminals (":" and ";") is the first or last sign
631 # - two terminals occur directly after each other
632 # - the path contains an element with a dot in it
633 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
634 echo "configure:635: checking GCC_EXEC_PREFIX variable" >&5
635 case ${GCC_EXEC_PREFIX} in
636 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
637 gcc_exec_prefix_setting
="contains current directory"
640 gcc_exec_prefix_setting
="ok"
643 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
644 if test "$gcc_exec_prefix_setting" != "ok"; then
645 { echo "configure: error:
646 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
647 *** building gcc. Please change the environment variable
648 *** and run configure again." 1>&2; exit 1; }
651 # Check for additional parameters
654 # Check whether --with-gnu-ld or --without-gnu-ld was given.
655 if test "${with_gnu_ld+set}" = set; then
656 withval
="$with_gnu_ld"
657 gnu_ld_flag
="$with_gnu_ld"
663 # With pre-defined ld
664 # Check whether --with-ld or --without-ld was given.
665 if test "${with_ld+set}" = set; then
667 DEFAULT_LINKER
="$with_ld"
670 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
671 if test ! -x "$DEFAULT_LINKER"; then
672 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
673 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
676 cat >> confdefs.h
<<EOF
677 #define DEFAULT_LINKER "$DEFAULT_LINKER"
683 # Check whether --with-gnu-as or --without-gnu-as was given.
684 if test "${with_gnu_as+set}" = set; then
685 withval
="$with_gnu_as"
686 gas_flag
="$with_gnu_as"
692 # Check whether --with-as or --without-as was given.
693 if test "${with_as+set}" = set; then
695 DEFAULT_ASSEMBLER
="$with_as"
698 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
699 if test ! -x "$DEFAULT_ASSEMBLER"; then
700 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
701 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
704 cat >> confdefs.h
<<EOF
705 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
711 # Check whether --with-stabs or --without-stabs was given.
712 if test "${with_stabs+set}" = set; then
713 withval
="$with_stabs"
721 # Check whether --with-elf or --without-elf was given.
722 if test "${with_elf+set}" = set; then
730 # Specify the local prefix
732 # Check whether --with-local-prefix or --without-local-prefix was given.
733 if test "${with_local_prefix+set}" = set; then
734 withval
="$with_local_prefix"
736 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
738 *) local_prefix
=$with_local_prefix ;;
743 # Default local prefix if it is empty
744 if test x
$local_prefix = x
; then
745 local_prefix
=/usr
/local
748 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
749 # passed in by the toplevel make and thus we'd get different behavior
750 # depending on where we built the sources.
752 # Specify the g++ header file directory
753 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
754 if test "${with_gxx_include_dir+set}" = set; then
755 withval
="$with_gxx_include_dir"
757 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
759 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
764 if test x
${gcc_gxx_include_dir} = x
; then
765 if test x
${enable_version_specific_runtime_libs} = xyes
; then
766 gcc_gxx_include_dir
='${libsubdir}/include/g++'
768 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
769 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
773 # Enable expensive internal checks
774 # Check whether --enable-checking or --disable-checking was given.
775 if test "${enable_checking+set}" = set; then
776 enableval
="$enable_checking"
781 ac_gc_always_collect
=
782 case "${enableval}" in
783 yes) ac_checking
=1 ; ac_tree_checking
=1 ; ac_gc_checking
=1 ;;
785 *) IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
786 set fnord
$enableval; shift
791 misc
) ac_checking
=1 ;;
792 tree
) ac_tree_checking
=1 ;;
793 rtl
) ac_rtl_checking
=1 ;;
794 gc
) ac_gc_checking
=1 ;;
795 gcac
) ac_gc_always_collect
=1 ;;
796 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
803 # Enable some checks by default for development versions of GCC
804 ac_checking
=1; ac_tree_checking
=1; ac_gc_checking
=1;
807 if test x
$ac_checking != x
; then
808 cat >> confdefs.h
<<\EOF
809 #define ENABLE_CHECKING 1
813 if test x
$ac_tree_checking != x
; then
814 cat >> confdefs.h
<<\EOF
815 #define ENABLE_TREE_CHECKING 1
819 if test x
$ac_rtl_checking != x
; then
820 cat >> confdefs.h
<<\EOF
821 #define ENABLE_RTL_CHECKING 1
825 if test x
$ac_gc_checking != x
; then
826 cat >> confdefs.h
<<\EOF
827 #define ENABLE_GC_CHECKING 1
831 if test x
$ac_gc_always_collect != x
; then
832 cat >> confdefs.h
<<\EOF
833 #define ENABLE_GC_ALWAYS_COLLECT 1
839 # Check whether --enable-cpp or --disable-cpp was given.
840 if test "${enable_cpp+set}" = set; then
841 enableval
="$enable_cpp"
848 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
849 if test "${with_cpp_install_dir+set}" = set; then
850 withval
="$with_cpp_install_dir"
851 if test x
$withval = xyes
; then
852 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
853 elif test x
$withval != xno
; then
854 cpp_install_dir
=$withval
860 # Enable Multibyte Characters for C/C++
861 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
862 if test "${enable_c_mbchar+set}" = set; then
863 enableval
="$enable_c_mbchar"
864 if test x
$enable_c_mbchar != xno
; then
865 extra_c_flags
="${extra_c_flags} -DMULTIBYTE_CHARS=1"
871 # Pass with no value to take the default
872 # Pass with a value to specify a thread package
873 # Check whether --enable-threads or --disable-threads was given.
874 if test "${enable_threads+set}" = set; then
875 enableval
="$enable_threads"
876 if test x
$enable_threads = xno
; then
884 enable_threads_flag
=$enable_threads
885 # Check if a valid thread package
886 case x
${enable_threads_flag} in
889 target_thread_file
='single'
893 target_thread_file
=''
895 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
896 xsolaris | xwin32 | xdce | xvxworks
)
897 target_thread_file
=$enable_threads_flag
900 echo "$enable_threads is an unknown thread package" 1>&2
905 # Check whether --enable-objc-gc or --disable-objc-gc was given.
906 if test "${enable_objc_gc+set}" = set; then
907 enableval
="$enable_objc_gc"
908 if test x
$enable_objc_gc = xno
; then
918 # Check whether --with-dwarf2 or --without-dwarf2 was given.
919 if test "${with_dwarf2+set}" = set; then
920 withval
="$with_dwarf2"
921 dwarf2
="$with_dwarf2"
927 # Determine the host, build, and target systems
929 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
930 if test -f $ac_dir/install-sh
; then
932 ac_install_sh
="$ac_aux_dir/install-sh -c"
934 elif test -f $ac_dir/install.sh
; then
936 ac_install_sh
="$ac_aux_dir/install.sh -c"
940 if test -z "$ac_aux_dir"; then
941 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
943 ac_config_guess
=$ac_aux_dir/config.guess
944 ac_config_sub
=$ac_aux_dir/config.sub
945 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
948 # Do some error checking and defaulting for the host and target type.
950 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
953 # 1. You are not allowed to specify --host, --target, and nonopt at the
955 # 2. Host defaults to nonopt.
956 # 3. If nonopt is not specified, then host defaults to the current host,
957 # as determined by config.guess.
958 # 4. Target and build default to nonopt.
959 # 5. If nonopt is not specified, then target and build default to host.
961 # The aliases save the names the user supplied, while $host etc.
962 # will get canonicalized.
963 case $host---$target---$nonopt in
964 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
965 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
969 # Make sure we can run config.sub.
970 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
971 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
974 echo $ac_n "checking host system type""... $ac_c" 1>&6
975 echo "configure:976: checking host system type" >&5
978 case "$host_alias" in
982 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
983 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
985 *) host_alias
=$nonopt ;;
989 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
990 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
991 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
992 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
993 echo "$ac_t""$host" 1>&6
995 echo $ac_n "checking target system type""... $ac_c" 1>&6
996 echo "configure:997: checking target system type" >&5
999 case "$target_alias" in
1002 NONE
) target_alias
=$host_alias ;;
1003 *) target_alias
=$nonopt ;;
1007 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1008 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1009 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1010 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1011 echo "$ac_t""$target" 1>&6
1013 echo $ac_n "checking build system type""... $ac_c" 1>&6
1014 echo "configure:1015: checking build system type" >&5
1017 case "$build_alias" in
1020 NONE
) build_alias
=$host_alias ;;
1021 *) build_alias
=$nonopt ;;
1025 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1026 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1027 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1028 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1029 echo "$ac_t""$build" 1>&6
1031 test "$host_alias" != "$target_alias" &&
1032 test "$program_prefix$program_suffix$program_transform_name" = \
1034 program_prefix
=${target_alias}-
1037 # Find the native compiler
1038 # Extract the first word of "gcc", so it can be a program name with args.
1039 set dummy gcc
; ac_word
=$2
1040 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1041 echo "configure:1042: checking for $ac_word" >&5
1042 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1043 echo $ac_n "(cached) $ac_c" 1>&6
1045 if test -n "$CC"; then
1046 ac_cv_prog_CC
="$CC" # Let the user override the test.
1048 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1050 for ac_dir
in $ac_dummy; do
1051 test -z "$ac_dir" && ac_dir
=.
1052 if test -f $ac_dir/$ac_word; then
1061 if test -n "$CC"; then
1062 echo "$ac_t""$CC" 1>&6
1064 echo "$ac_t""no" 1>&6
1067 if test -z "$CC"; then
1068 # Extract the first word of "cc", so it can be a program name with args.
1069 set dummy cc
; ac_word
=$2
1070 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1071 echo "configure:1072: checking for $ac_word" >&5
1072 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1073 echo $ac_n "(cached) $ac_c" 1>&6
1075 if test -n "$CC"; then
1076 ac_cv_prog_CC
="$CC" # Let the user override the test.
1078 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1081 for ac_dir
in $ac_dummy; do
1082 test -z "$ac_dir" && ac_dir
=.
1083 if test -f $ac_dir/$ac_word; then
1084 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1085 ac_prog_rejected
=yes
1093 if test $ac_prog_rejected = yes; then
1094 # We found a bogon in the path, so make sure we never use it.
1095 set dummy
$ac_cv_prog_CC
1097 if test $# -gt 0; then
1098 # We chose a different compiler from the bogus one.
1099 # However, it has the same basename, so the bogon will be chosen
1100 # first if we set CC to just the basename; use the full file name.
1102 set dummy
"$ac_dir/$ac_word" "$@"
1110 if test -n "$CC"; then
1111 echo "$ac_t""$CC" 1>&6
1113 echo "$ac_t""no" 1>&6
1116 if test -z "$CC"; then
1117 case "`uname -s`" in
1119 # Extract the first word of "cl", so it can be a program name with args.
1120 set dummy cl
; ac_word
=$2
1121 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1122 echo "configure:1123: checking for $ac_word" >&5
1123 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1124 echo $ac_n "(cached) $ac_c" 1>&6
1126 if test -n "$CC"; then
1127 ac_cv_prog_CC
="$CC" # Let the user override the test.
1129 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1131 for ac_dir
in $ac_dummy; do
1132 test -z "$ac_dir" && ac_dir
=.
1133 if test -f $ac_dir/$ac_word; then
1142 if test -n "$CC"; then
1143 echo "$ac_t""$CC" 1>&6
1145 echo "$ac_t""no" 1>&6
1150 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1153 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1154 echo "configure:1155: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1157 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1158 ac_cpp
='$CPP $CPPFLAGS'
1159 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1160 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1161 cross_compiling
=$ac_cv_prog_cc_cross
1163 cat > conftest.
$ac_ext << EOF
1165 #line 1166 "configure"
1166 #include "confdefs.h"
1170 if { (eval echo configure
:1171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1171 ac_cv_prog_cc_works
=yes
1172 # If we can't run a trivial program, we are probably using a cross compiler.
1173 if (.
/conftest
; exit) 2>/dev
/null
; then
1174 ac_cv_prog_cc_cross
=no
1176 ac_cv_prog_cc_cross
=yes
1179 echo "configure: failed program was:" >&5
1180 cat conftest.
$ac_ext >&5
1181 ac_cv_prog_cc_works
=no
1185 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1186 ac_cpp
='$CPP $CPPFLAGS'
1187 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1188 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1189 cross_compiling
=$ac_cv_prog_cc_cross
1191 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1192 if test $ac_cv_prog_cc_works = no
; then
1193 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1195 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1196 echo "configure:1197: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1197 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1198 cross_compiling
=$ac_cv_prog_cc_cross
1200 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1201 echo "configure:1202: checking whether we are using GNU C" >&5
1202 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1203 echo $ac_n "(cached) $ac_c" 1>&6
1205 cat > conftest.c
<<EOF
1210 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1217 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1219 if test $ac_cv_prog_gcc = yes; then
1225 ac_test_CFLAGS
="${CFLAGS+set}"
1226 ac_save_CFLAGS
="$CFLAGS"
1228 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1229 echo "configure:1230: checking whether ${CC-cc} accepts -g" >&5
1230 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1231 echo $ac_n "(cached) $ac_c" 1>&6
1233 echo 'void f(){}' > conftest.c
1234 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1243 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1244 if test "$ac_test_CFLAGS" = set; then
1245 CFLAGS
="$ac_save_CFLAGS"
1246 elif test $ac_cv_prog_cc_g = yes; then
1247 if test "$GCC" = yes; then
1253 if test "$GCC" = yes; then
1260 if test "x$CC" != xcc
; then
1261 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1262 echo "configure:1263: checking whether $CC and cc understand -c and -o together" >&5
1264 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1265 echo "configure:1266: checking whether cc understands -c and -o together" >&5
1267 set dummy
$CC; ac_cc
="`echo $2 |
1268 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1269 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1270 echo $ac_n "(cached) $ac_c" 1>&6
1272 echo 'foo(){}' > conftest.c
1273 # Make sure it works both with $CC and with simple cc.
1274 # We do the test twice because some compilers refuse to overwrite an
1275 # existing .o file with -o, though they will create one.
1276 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1277 if { (eval echo configure
:1278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1278 test -f conftest.o
&& { (eval echo configure
:1279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1280 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1281 if test "x$CC" != xcc
; then
1282 # Test first that cc exists at all.
1283 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1284 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1285 if { (eval echo configure
:1286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1286 test -f conftest.o
&& { (eval echo configure
:1287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1291 # cc exists but doesn't like -o.
1292 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1297 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1302 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1303 echo "$ac_t""yes" 1>&6
1305 echo "$ac_t""no" 1>&6
1306 cat >> confdefs.h
<<\EOF
1307 #define NO_MINUS_C_MINUS_O 1
1312 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1313 NO_MINUS_C_MINUS_O
=yes
1317 echo $ac_n "checking for long double""... $ac_c" 1>&6
1318 echo "configure:1319: checking for long double" >&5
1319 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1320 echo $ac_n "(cached) $ac_c" 1>&6
1322 if test "$GCC" = yes; then
1323 gcc_cv_c_long_double
=yes
1325 cat > conftest.
$ac_ext <<EOF
1326 #line 1327 "configure"
1327 #include "confdefs.h"
1330 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1331 long double foo = 0.0;
1332 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1333 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1336 if { (eval echo configure
:1337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1338 gcc_cv_c_long_double
=yes
1340 echo "configure: failed program was:" >&5
1341 cat conftest.
$ac_ext >&5
1343 gcc_cv_c_long_double
=no
1349 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1350 if test $gcc_cv_c_long_double = yes; then
1351 cat >> confdefs.h
<<\EOF
1352 #define HAVE_LONG_DOUBLE 1
1358 echo $ac_n "checking whether ${CC-cc} accepts -Wno-long-long""... $ac_c" 1>&6
1359 echo "configure:1360: checking whether ${CC-cc} accepts -Wno-long-long" >&5
1360 echo 'void f(){}' > conftest.c
1361 if test -z "`${CC-cc} -Wno-long-long -c conftest.c 2>&1`"; then
1362 ac_cv_prog_cc_no_long_long
=yes
1364 ac_cv_prog_cc_no_long_long
=no
1367 echo "$ac_t"$ac_cv_prog_cc_no_long_long 1>&6
1369 # If the native compiler is GCC, we can enable warnings even in stage1.
1370 # That's useful for people building cross-compilers, or just running a
1372 stage1_warn_cflags
=" -W -Wall -Wtraditional -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes"
1373 stage2_warn_cflags
="$stage1_warn_cflags -pedantic -Wno-long-long"
1374 if test "x$GCC" = "xyes"; then
1375 if test $ac_cv_prog_cc_no_long_long = yes; then
1376 stage1_warn_cflags
="$stage1_warn_cflags -pedantic -Wno-long-long"
1379 stage1_warn_cflags
=""
1384 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1385 echo "configure:1386: checking whether ${MAKE-make} sets \${MAKE}" >&5
1386 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1387 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1388 echo $ac_n "(cached) $ac_c" 1>&6
1390 cat > conftestmake
<<\EOF
1392 @
echo 'ac_maketemp="${MAKE}"'
1394 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1395 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1396 if test -n "$ac_maketemp"; then
1397 eval ac_cv_prog_make_
${ac_make}_set
=yes
1399 eval ac_cv_prog_make_
${ac_make}_set
=no
1403 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1404 echo "$ac_t""yes" 1>&6
1407 echo "$ac_t""no" 1>&6
1408 SET_MAKE
="MAKE=${MAKE-make}"
1412 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1413 echo "configure:1414: checking whether a default assembler was specified" >&5
1414 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1415 if test x
"$gas_flag" = x
"no"; then
1416 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1418 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1421 echo "$ac_t""no" 1>&6
1424 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1425 echo "configure:1426: checking whether a default linker was specified" >&5
1426 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1427 if test x
"$gnu_ld_flag" = x
"no"; then
1428 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1430 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1433 echo "$ac_t""no" 1>&6
1436 echo $ac_n "checking for inline""... $ac_c" 1>&6
1437 echo "configure:1438: checking for inline" >&5
1438 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1439 echo $ac_n "(cached) $ac_c" 1>&6
1442 for ac_kw
in inline __inline__ __inline
; do
1443 cat > conftest.
$ac_ext <<EOF
1444 #line 1445 "configure"
1445 #include "confdefs.h"
1451 if { (eval echo configure
:1452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1453 ac_cv_c_inline
=$ac_kw; break
1455 echo "configure: failed program was:" >&5
1456 cat conftest.
$ac_ext >&5
1463 echo "$ac_t""$ac_cv_c_inline" 1>&6
1464 case "$ac_cv_c_inline" in
1466 no
) cat >> confdefs.h
<<\EOF
1470 *) cat >> confdefs.h
<<EOF
1471 #define inline $ac_cv_c_inline
1477 # Find some useful tools
1478 for ac_prog
in mawk gawk nawk
awk
1480 # Extract the first word of "$ac_prog", so it can be a program name with args.
1481 set dummy
$ac_prog; ac_word
=$2
1482 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1483 echo "configure:1484: checking for $ac_word" >&5
1484 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1485 echo $ac_n "(cached) $ac_c" 1>&6
1487 if test -n "$AWK"; then
1488 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1490 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1492 for ac_dir
in $ac_dummy; do
1493 test -z "$ac_dir" && ac_dir
=.
1494 if test -f $ac_dir/$ac_word; then
1495 ac_cv_prog_AWK
="$ac_prog"
1502 AWK
="$ac_cv_prog_AWK"
1503 if test -n "$AWK"; then
1504 echo "$ac_t""$AWK" 1>&6
1506 echo "$ac_t""no" 1>&6
1509 test -n "$AWK" && break
1512 # Extract the first word of "flex", so it can be a program name with args.
1513 set dummy flex
; ac_word
=$2
1514 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1515 echo "configure:1516: checking for $ac_word" >&5
1516 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1517 echo $ac_n "(cached) $ac_c" 1>&6
1519 if test -n "$LEX"; then
1520 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1522 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1524 for ac_dir
in $ac_dummy; do
1525 test -z "$ac_dir" && ac_dir
=.
1526 if test -f $ac_dir/$ac_word; then
1527 ac_cv_prog_LEX
="flex"
1532 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1535 LEX
="$ac_cv_prog_LEX"
1536 if test -n "$LEX"; then
1537 echo "$ac_t""$LEX" 1>&6
1539 echo "$ac_t""no" 1>&6
1542 if test -z "$LEXLIB"
1548 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1549 echo "configure:1550: checking for yywrap in -l$ac_lib" >&5
1550 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1551 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1552 echo $ac_n "(cached) $ac_c" 1>&6
1554 ac_save_LIBS
="$LIBS"
1555 LIBS
="-l$ac_lib $LIBS"
1556 cat > conftest.
$ac_ext <<EOF
1557 #line 1558 "configure"
1558 #include "confdefs.h"
1559 /* Override any gcc2 internal prototype to avoid an error. */
1560 /* We use char because int might match the return type of a gcc2
1561 builtin and then its argument prototype would still apply. */
1568 if { (eval echo configure
:1569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1570 eval "ac_cv_lib_$ac_lib_var=yes"
1572 echo "configure: failed program was:" >&5
1573 cat conftest.
$ac_ext >&5
1575 eval "ac_cv_lib_$ac_lib_var=no"
1578 LIBS
="$ac_save_LIBS"
1581 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1582 echo "$ac_t""yes" 1>&6
1585 echo "$ac_t""no" 1>&6
1590 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1591 echo "configure:1592: checking whether ln works" >&5
1592 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1593 echo $ac_n "(cached) $ac_c" 1>&6
1595 rm -f conftestdata_t
1596 echo >conftestdata_f
1597 if ln conftestdata_f conftestdata_t
2>/dev
/null
1601 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1603 gcc_cv_prog_LN
="ln -s"
1608 rm -f conftestdata_f conftestdata_t
1611 LN
="$gcc_cv_prog_LN"
1612 if test "$gcc_cv_prog_LN" = "ln"; then
1613 echo "$ac_t""yes" 1>&6
1615 if test "$gcc_cv_prog_LN" = "ln -s"; then
1616 echo "$ac_t""no, using ln -s" 1>&6
1618 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1622 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1623 echo "configure:1624: checking whether ln -s works" >&5
1624 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1625 echo $ac_n "(cached) $ac_c" 1>&6
1627 rm -f conftestdata_t
1628 echo >conftestdata_f
1629 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1631 gcc_cv_prog_LN_S
="ln -s"
1633 if ln conftestdata_f conftestdata_t
2>/dev
/null
1640 rm -f conftestdata_f conftestdata_t
1643 LN_S
="$gcc_cv_prog_LN_S"
1644 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1645 echo "$ac_t""yes" 1>&6
1647 if test "$gcc_cv_prog_LN_S" = "ln"; then
1648 echo "$ac_t""no, using ln" 1>&6
1650 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1654 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1655 echo "configure:1656: checking for volatile" >&5
1656 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1657 echo $ac_n "(cached) $ac_c" 1>&6
1659 cat > conftest.
$ac_ext <<EOF
1660 #line 1661 "configure"
1661 #include "confdefs.h"
1667 if { (eval echo configure
:1668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1669 gcc_cv_c_volatile
=yes
1671 echo "configure: failed program was:" >&5
1672 cat conftest.
$ac_ext >&5
1674 gcc_cv_c_volatile
=no
1679 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1680 if test $gcc_cv_c_volatile = yes ; then
1681 cat >> confdefs.h
<<\EOF
1682 #define HAVE_VOLATILE 1
1687 # Extract the first word of "ranlib", so it can be a program name with args.
1688 set dummy ranlib
; ac_word
=$2
1689 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1690 echo "configure:1691: checking for $ac_word" >&5
1691 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1692 echo $ac_n "(cached) $ac_c" 1>&6
1694 if test -n "$RANLIB"; then
1695 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1697 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1699 for ac_dir
in $ac_dummy; do
1700 test -z "$ac_dir" && ac_dir
=.
1701 if test -f $ac_dir/$ac_word; then
1702 ac_cv_prog_RANLIB
="ranlib"
1707 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1710 RANLIB
="$ac_cv_prog_RANLIB"
1711 if test -n "$RANLIB"; then
1712 echo "$ac_t""$RANLIB" 1>&6
1714 echo "$ac_t""no" 1>&6
1717 for ac_prog
in 'bison -y' byacc
1719 # Extract the first word of "$ac_prog", so it can be a program name with args.
1720 set dummy
$ac_prog; ac_word
=$2
1721 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1722 echo "configure:1723: checking for $ac_word" >&5
1723 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1724 echo $ac_n "(cached) $ac_c" 1>&6
1726 if test -n "$YACC"; then
1727 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1729 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1731 for ac_dir
in $ac_dummy; do
1732 test -z "$ac_dir" && ac_dir
=.
1733 if test -f $ac_dir/$ac_word; then
1734 ac_cv_prog_YACC
="$ac_prog"
1741 YACC
="$ac_cv_prog_YACC"
1742 if test -n "$YACC"; then
1743 echo "$ac_t""$YACC" 1>&6
1745 echo "$ac_t""no" 1>&6
1748 test -n "$YACC" && break
1750 test -n "$YACC" || YACC
="yacc"
1752 # Find a good install program. We prefer a C program (faster),
1753 # so one script is as good as another. But avoid the broken or
1754 # incompatible versions:
1755 # SysV /etc/install, /usr/sbin/install
1756 # SunOS /usr/etc/install
1757 # IRIX /sbin/install
1759 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1760 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1761 # ./install, which can be erroneously created by make from ./install.sh.
1762 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1763 echo "configure:1764: checking for a BSD compatible install" >&5
1764 if test -z "$INSTALL"; then
1765 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1766 echo $ac_n "(cached) $ac_c" 1>&6
1768 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1769 for ac_dir
in $PATH; do
1770 # Account for people who put trailing slashes in PATH elements.
1772 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1774 # OSF1 and SCO ODT 3.0 have their own names for install.
1775 for ac_prog
in ginstall scoinst
install; do
1776 if test -f $ac_dir/$ac_prog; then
1777 if test $ac_prog = install &&
1778 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1779 # AIX install. It has an incompatible calling convention.
1780 # OSF/1 installbsd also uses dspmsg, but is usable.
1783 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1794 if test "${ac_cv_path_install+set}" = set; then
1795 INSTALL
="$ac_cv_path_install"
1797 # As a last resort, use the slow shell script. We don't cache a
1798 # path for INSTALL within a source directory, because that will
1799 # break other packages using the cache if that directory is
1800 # removed, or if the path is relative.
1801 INSTALL
="$ac_install_sh"
1804 echo "$ac_t""$INSTALL" 1>&6
1806 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1807 # It thinks the first close brace ends the variable substitution.
1808 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1810 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1813 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1814 echo "configure:1815: checking how to run the C preprocessor" >&5
1815 # On Suns, sometimes $CPP names a directory.
1816 if test -n "$CPP" && test -d "$CPP"; then
1819 if test -z "$CPP"; then
1820 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1821 echo $ac_n "(cached) $ac_c" 1>&6
1823 # This must be in double quotes, not single quotes, because CPP may get
1824 # substituted into the Makefile and "${CC-cc}" will confuse make.
1826 # On the NeXT, cc -E runs the code through the compiler's parser,
1827 # not just through cpp.
1828 cat > conftest.
$ac_ext <<EOF
1829 #line 1830 "configure"
1830 #include "confdefs.h"
1834 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1835 { (eval echo configure
:1836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1836 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1837 if test -z "$ac_err"; then
1841 echo "configure: failed program was:" >&5
1842 cat conftest.
$ac_ext >&5
1844 CPP
="${CC-cc} -E -traditional-cpp"
1845 cat > conftest.
$ac_ext <<EOF
1846 #line 1847 "configure"
1847 #include "confdefs.h"
1851 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1852 { (eval echo configure
:1853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1853 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1854 if test -z "$ac_err"; then
1858 echo "configure: failed program was:" >&5
1859 cat conftest.
$ac_ext >&5
1861 CPP
="${CC-cc} -nologo -E"
1862 cat > conftest.
$ac_ext <<EOF
1863 #line 1864 "configure"
1864 #include "confdefs.h"
1868 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1869 { (eval echo configure
:1870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1870 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1871 if test -z "$ac_err"; then
1875 echo "configure: failed program was:" >&5
1876 cat conftest.
$ac_ext >&5
1885 ac_cv_prog_CPP
="$CPP"
1887 CPP
="$ac_cv_prog_CPP"
1889 ac_cv_prog_CPP
="$CPP"
1891 echo "$ac_t""$CPP" 1>&6
1893 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1894 echo "configure:1895: checking for ANSI C header files" >&5
1895 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1896 echo $ac_n "(cached) $ac_c" 1>&6
1898 cat > conftest.
$ac_ext <<EOF
1899 #line 1900 "configure"
1900 #include "confdefs.h"
1906 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1907 { (eval echo configure
:1908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1908 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1909 if test -z "$ac_err"; then
1911 ac_cv_header_stdc
=yes
1914 echo "configure: failed program was:" >&5
1915 cat conftest.
$ac_ext >&5
1917 ac_cv_header_stdc
=no
1921 if test $ac_cv_header_stdc = yes; then
1922 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1923 cat > conftest.
$ac_ext <<EOF
1924 #line 1925 "configure"
1925 #include "confdefs.h"
1928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1929 egrep "memchr" >/dev
/null
2>&1; then
1933 ac_cv_header_stdc
=no
1939 if test $ac_cv_header_stdc = yes; then
1940 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1941 cat > conftest.
$ac_ext <<EOF
1942 #line 1943 "configure"
1943 #include "confdefs.h"
1946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1947 egrep "free" >/dev
/null
2>&1; then
1951 ac_cv_header_stdc
=no
1957 if test $ac_cv_header_stdc = yes; then
1958 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1959 if test "$cross_compiling" = yes; then
1962 cat > conftest.
$ac_ext <<EOF
1963 #line 1964 "configure"
1964 #include "confdefs.h"
1966 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1967 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1968 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1969 int main () { int i; for (i = 0; i < 256; i++)
1970 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1974 if { (eval echo configure
:1975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1978 echo "configure: failed program was:" >&5
1979 cat conftest.
$ac_ext >&5
1981 ac_cv_header_stdc
=no
1989 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1990 if test $ac_cv_header_stdc = yes; then
1991 cat >> confdefs.h
<<\EOF
1992 #define STDC_HEADERS 1
1997 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1998 echo "configure:1999: checking whether time.h and sys/time.h may both be included" >&5
1999 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2000 echo $ac_n "(cached) $ac_c" 1>&6
2002 cat > conftest.
$ac_ext <<EOF
2003 #line 2004 "configure"
2004 #include "confdefs.h"
2005 #include <sys/types.h>
2006 #include <sys/time.h>
2012 if { (eval echo configure
:2013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2014 ac_cv_header_time
=yes
2016 echo "configure: failed program was:" >&5
2017 cat conftest.
$ac_ext >&5
2019 ac_cv_header_time
=no
2024 echo "$ac_t""$ac_cv_header_time" 1>&6
2025 if test $ac_cv_header_time = yes; then
2026 cat >> confdefs.h
<<\EOF
2027 #define TIME_WITH_SYS_TIME 1
2032 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
2033 echo "configure:2034: checking whether string.h and strings.h may both be included" >&5
2034 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
2035 echo $ac_n "(cached) $ac_c" 1>&6
2037 cat > conftest.
$ac_ext <<EOF
2038 #line 2039 "configure"
2039 #include "confdefs.h"
2041 #include <strings.h>
2046 if { (eval echo configure
:2047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2048 gcc_cv_header_string
=yes
2050 echo "configure: failed program was:" >&5
2051 cat conftest.
$ac_ext >&5
2053 gcc_cv_header_string
=no
2058 echo "$ac_t""$gcc_cv_header_string" 1>&6
2059 if test $gcc_cv_header_string = yes; then
2060 cat >> confdefs.h
<<\EOF
2061 #define STRING_WITH_STRINGS 1
2066 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2067 echo "configure:2068: checking for sys/wait.h that is POSIX.1 compatible" >&5
2068 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2069 echo $ac_n "(cached) $ac_c" 1>&6
2071 cat > conftest.
$ac_ext <<EOF
2072 #line 2073 "configure"
2073 #include "confdefs.h"
2074 #include <sys/types.h>
2075 #include <sys/wait.h>
2077 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2080 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2085 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2088 if { (eval echo configure
:2089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2090 ac_cv_header_sys_wait_h
=yes
2092 echo "configure: failed program was:" >&5
2093 cat conftest.
$ac_ext >&5
2095 ac_cv_header_sys_wait_h
=no
2100 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2101 if test $ac_cv_header_sys_wait_h = yes; then
2102 cat >> confdefs.h
<<\EOF
2103 #define HAVE_SYS_WAIT_H 1
2108 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
2109 fcntl.h unistd.h stab.h sys
/file.h sys
/time.h \
2110 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
2113 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2114 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2115 echo "configure:2116: checking for $ac_hdr" >&5
2116 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2117 echo $ac_n "(cached) $ac_c" 1>&6
2119 cat > conftest.
$ac_ext <<EOF
2120 #line 2121 "configure"
2121 #include "confdefs.h"
2124 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2125 { (eval echo configure
:2126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2126 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2127 if test -z "$ac_err"; then
2129 eval "ac_cv_header_$ac_safe=yes"
2132 echo "configure: failed program was:" >&5
2133 cat conftest.
$ac_ext >&5
2135 eval "ac_cv_header_$ac_safe=no"
2139 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2140 echo "$ac_t""yes" 1>&6
2141 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2142 cat >> confdefs.h
<<EOF
2143 #define $ac_tr_hdr 1
2147 echo "$ac_t""no" 1>&6
2152 # Check for thread headers.
2153 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
2154 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2155 echo "configure:2156: checking for thread.h" >&5
2156 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2157 echo $ac_n "(cached) $ac_c" 1>&6
2159 cat > conftest.
$ac_ext <<EOF
2160 #line 2161 "configure"
2161 #include "confdefs.h"
2164 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2165 { (eval echo configure
:2166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2166 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2167 if test -z "$ac_err"; then
2169 eval "ac_cv_header_$ac_safe=yes"
2172 echo "configure: failed program was:" >&5
2173 cat conftest.
$ac_ext >&5
2175 eval "ac_cv_header_$ac_safe=no"
2179 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2180 echo "$ac_t""yes" 1>&6
2183 echo "$ac_t""no" 1>&6
2187 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2188 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2189 echo "configure:2190: checking for pthread.h" >&5
2190 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2191 echo $ac_n "(cached) $ac_c" 1>&6
2193 cat > conftest.
$ac_ext <<EOF
2194 #line 2195 "configure"
2195 #include "confdefs.h"
2196 #include <pthread.h>
2198 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2199 { (eval echo configure
:2200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2200 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2201 if test -z "$ac_err"; then
2203 eval "ac_cv_header_$ac_safe=yes"
2206 echo "configure: failed program was:" >&5
2207 cat conftest.
$ac_ext >&5
2209 eval "ac_cv_header_$ac_safe=no"
2213 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2214 echo "$ac_t""yes" 1>&6
2217 echo "$ac_t""no" 1>&6
2222 # See if GNAT has been installed
2223 # Extract the first word of "gnatbind", so it can be a program name with args.
2224 set dummy gnatbind
; ac_word
=$2
2225 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2226 echo "configure:2227: checking for $ac_word" >&5
2227 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2228 echo $ac_n "(cached) $ac_c" 1>&6
2230 if test -n "$gnat"; then
2231 ac_cv_prog_gnat
="$gnat" # Let the user override the test.
2233 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2235 for ac_dir
in $ac_dummy; do
2236 test -z "$ac_dir" && ac_dir
=.
2237 if test -f $ac_dir/$ac_word; then
2238 ac_cv_prog_gnat
="yes"
2243 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat
="no"
2246 gnat
="$ac_cv_prog_gnat"
2247 if test -n "$gnat"; then
2248 echo "$ac_t""$gnat" 1>&6
2250 echo "$ac_t""no" 1>&6
2254 # Do we have a single-tree copy of texinfo?
2255 if test -f $srcdir/..
/texinfo
/Makefile.
in; then
2256 MAKEINFO
='$(objdir)/../texinfo/makeinfo/makeinfo'
2257 gcc_cv_prog_makeinfo_modern
=yes
2258 echo "$ac_t""Using makeinfo from the unified source tree." 1>&6
2260 # See if makeinfo has been installed and is modern enough
2261 # that we can use it.
2262 # Extract the first word of "makeinfo", so it can be a program name with args.
2263 set dummy makeinfo
; ac_word
=$2
2264 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2265 echo "configure:2266: checking for $ac_word" >&5
2266 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2267 echo $ac_n "(cached) $ac_c" 1>&6
2269 if test -n "$MAKEINFO"; then
2270 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
2272 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2274 for ac_dir
in $ac_dummy; do
2275 test -z "$ac_dir" && ac_dir
=.
2276 if test -f $ac_dir/$ac_word; then
2277 ac_cv_prog_MAKEINFO
="makeinfo"
2284 MAKEINFO
="$ac_cv_prog_MAKEINFO"
2285 if test -n "$MAKEINFO"; then
2286 echo "$ac_t""$MAKEINFO" 1>&6
2288 echo "$ac_t""no" 1>&6
2291 if test -n "$MAKEINFO"; then
2292 # Found it, now check the version.
2293 echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6
2294 echo "configure:2295: checking for modern makeinfo" >&5
2295 if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then
2296 echo $ac_n "(cached) $ac_c" 1>&6
2298 ac_prog_version
=`$MAKEINFO --version 2>&1 |
2299 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
2300 echo "configure:2301: version of makeinfo is $ac_prog_version" >&5
2301 case $ac_prog_version in
2302 '') gcc_cv_prog_makeinfo_modern
=no
;;
2303 3.1[2-9] |
3.
[2-9][0-9] |
4.
* |
1.6[89] |
1.7[0-9])
2304 gcc_cv_prog_makeinfo_modern
=yes;;
2305 *) gcc_cv_prog_makeinfo_modern
=no
;;
2310 echo "$ac_t""$gcc_cv_prog_makeinfo_modern" 1>&6
2312 gcc_cv_prog_makeinfo_modern
=no
2317 if test $gcc_cv_prog_makeinfo_modern = no
; then
2318 echo "configure: warning:
2319 *** Makeinfo is missing or too old.
2320 *** Info documentation will not be built or installed." 1>&2
2325 INSTALL_INFO
=install-info
2328 # See if the stage1 system preprocessor understands the ANSI C
2329 # preprocessor stringification operator.
2332 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
2333 echo "configure:2334: checking for preprocessor stringizing operator" >&5
2334 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
2335 echo $ac_n "(cached) $ac_c" 1>&6
2337 cat > conftest.
$ac_ext <<EOF
2338 #line 2339 "configure"
2339 #include "confdefs.h"
2343 char *s = x(teststring);
2346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2347 egrep "#teststring" >/dev
/null
2>&1; then
2349 ac_cv_c_stringize
=no
2352 ac_cv_c_stringize
=yes
2358 if test "${ac_cv_c_stringize}" = yes
2360 cat >> confdefs.h
<<\EOF
2361 #define HAVE_STRINGIZE 1
2365 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
2368 # Use <inttypes.h> only if it exists,
2369 # doesn't clash with <sys/types.h>, and declares intmax_t.
2370 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2371 echo "configure:2372: checking for inttypes.h" >&5
2372 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2373 echo $ac_n "(cached) $ac_c" 1>&6
2375 cat > conftest.
$ac_ext <<EOF
2376 #line 2377 "configure"
2377 #include "confdefs.h"
2378 #include <sys/types.h>
2379 #include <inttypes.h>
2384 if { (eval echo configure
:2385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2386 gcc_cv_header_inttypes_h
=yes
2388 echo "configure: failed program was:" >&5
2389 cat conftest.
$ac_ext >&5
2391 gcc_cv_header_inttypes_h
=no
2396 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2397 if test $gcc_cv_header_inttypes_h = yes; then
2398 cat >> confdefs.h
<<\EOF
2399 #define HAVE_INTTYPES_H 1
2405 # Determine if enumerated bitfields are unsigned. ISO C says they can
2406 # be either signed or unsigned.
2408 echo $ac_n "checking for unsigned enumerated bitfields""... $ac_c" 1>&6
2409 echo "configure:2410: checking for unsigned enumerated bitfields" >&5
2410 if eval "test \"`echo '$''{'gcc_cv_enum_bf_unsigned'+set}'`\" = set"; then
2411 echo $ac_n "(cached) $ac_c" 1>&6
2413 if test "$cross_compiling" = yes; then
2414 gcc_cv_enum_bf_unsigned
=yes
2416 cat > conftest.
$ac_ext <<EOF
2417 #line 2418 "configure"
2418 #include "confdefs.h"
2420 enum t { BLAH = 128 } ;
2421 struct s_t { enum t member : 8; } s ;
2425 if (s.member < 0) exit(1);
2430 if { (eval echo configure
:2431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2432 gcc_cv_enum_bf_unsigned
=yes
2434 echo "configure: failed program was:" >&5
2435 cat conftest.
$ac_ext >&5
2437 gcc_cv_enum_bf_unsigned
=no
2444 echo "$ac_t""$gcc_cv_enum_bf_unsigned" 1>&6
2445 if test $gcc_cv_enum_bf_unsigned = yes; then
2446 cat >> confdefs.h
<<\EOF
2447 #define ENUM_BITFIELDS_ARE_UNSIGNED 1
2452 for ac_func
in strtoul bsearch putenv popen bcopy bzero bcmp \
2453 index rindex strchr strrchr
kill getrlimit setrlimit atoll atoq \
2454 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2455 fputs_unlocked getrusage valloc
2457 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2458 echo "configure:2459: checking for $ac_func" >&5
2459 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2460 echo $ac_n "(cached) $ac_c" 1>&6
2462 cat > conftest.
$ac_ext <<EOF
2463 #line 2464 "configure"
2464 #include "confdefs.h"
2465 /* System header to define __stub macros and hopefully few prototypes,
2466 which can conflict with char $ac_func(); below. */
2468 /* Override any gcc2 internal prototype to avoid an error. */
2469 /* We use char because int might match the return type of a gcc2
2470 builtin and then its argument prototype would still apply. */
2475 /* The GNU C library defines this for functions which it implements
2476 to always fail with ENOSYS. Some functions are actually named
2477 something starting with __ and the normal name is an alias. */
2478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2486 if { (eval echo configure
:2487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2488 eval "ac_cv_func_$ac_func=yes"
2490 echo "configure: failed program was:" >&5
2491 cat conftest.
$ac_ext >&5
2493 eval "ac_cv_func_$ac_func=no"
2498 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2499 echo "$ac_t""yes" 1>&6
2500 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2501 cat >> confdefs.h
<<EOF
2502 #define $ac_tr_func 1
2506 echo "$ac_t""no" 1>&6
2511 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
2512 echo "configure:2513: checking for ssize_t" >&5
2513 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
2514 echo $ac_n "(cached) $ac_c" 1>&6
2516 cat > conftest.
$ac_ext <<EOF
2517 #line 2518 "configure"
2518 #include "confdefs.h"
2519 #include <sys/types.h>
2525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2526 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2528 ac_cv_type_ssize_t
=yes
2531 ac_cv_type_ssize_t
=no
2536 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2537 if test $ac_cv_type_ssize_t = no
; then
2538 cat >> confdefs.h
<<\EOF
2545 # Try to determine the array type of the second argument of getgroups
2546 # for the target system (int or gid_t).
2547 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2548 echo "configure:2549: checking for uid_t in sys/types.h" >&5
2549 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2550 echo $ac_n "(cached) $ac_c" 1>&6
2552 cat > conftest.
$ac_ext <<EOF
2553 #line 2554 "configure"
2554 #include "confdefs.h"
2555 #include <sys/types.h>
2557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2558 egrep "uid_t" >/dev
/null
2>&1; then
2560 ac_cv_type_uid_t
=yes
2569 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2570 if test $ac_cv_type_uid_t = no
; then
2571 cat >> confdefs.h
<<\EOF
2575 cat >> confdefs.h
<<\EOF
2581 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
2582 echo "configure:2583: checking type of array argument to getgroups" >&5
2583 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
2584 echo $ac_n "(cached) $ac_c" 1>&6
2586 if test "$cross_compiling" = yes; then
2587 ac_cv_type_getgroups
=cross
2589 cat > conftest.
$ac_ext <<EOF
2590 #line 2591 "configure"
2591 #include "confdefs.h"
2593 /* Thanks to Mike Rendell for this test. */
2594 #include <sys/types.h>
2597 #define MAX(x, y) ((x) > (y) ? (x) : (y))
2602 union { gid_t gval; long lval; } val;
2605 for (i = 0; i < NGID; i++)
2606 gidset[i] = val.gval;
2607 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
2609 /* Exit non-zero if getgroups seems to require an array of ints. This
2610 happens when gid_t is short but getgroups modifies an array of ints. */
2611 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
2615 if { (eval echo configure
:2616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2617 ac_cv_type_getgroups
=gid_t
2619 echo "configure: failed program was:" >&5
2620 cat conftest.
$ac_ext >&5
2622 ac_cv_type_getgroups
=int
2627 if test $ac_cv_type_getgroups = cross
; then
2628 cat > conftest.
$ac_ext <<EOF
2629 #line 2630 "configure"
2630 #include "confdefs.h"
2633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2634 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
2636 ac_cv_type_getgroups
=gid_t
2639 ac_cv_type_getgroups
=int
2646 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
2647 cat >> confdefs.h
<<EOF
2648 #define GETGROUPS_T $ac_cv_type_getgroups
2652 if test "${target}" = "${build}"; then
2653 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
2656 # This condition may need some tweaking. It should include all
2657 # targets where the array type of the second argument of getgroups
2658 # is int and the type of gid_t is not equivalent to int.
2659 *-*-sunos* |
*-*-ultrix*)
2660 TARGET_GETGROUPS_T
=int
2663 TARGET_GETGROUPS_T
=gid_t
2669 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2670 echo "configure:2671: checking for vprintf" >&5
2671 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2672 echo $ac_n "(cached) $ac_c" 1>&6
2674 cat > conftest.
$ac_ext <<EOF
2675 #line 2676 "configure"
2676 #include "confdefs.h"
2677 /* System header to define __stub macros and hopefully few prototypes,
2678 which can conflict with char vprintf(); below. */
2680 /* Override any gcc2 internal prototype to avoid an error. */
2681 /* We use char because int might match the return type of a gcc2
2682 builtin and then its argument prototype would still apply. */
2687 /* The GNU C library defines this for functions which it implements
2688 to always fail with ENOSYS. Some functions are actually named
2689 something starting with __ and the normal name is an alias. */
2690 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2698 if { (eval echo configure
:2699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2700 eval "ac_cv_func_vprintf=yes"
2702 echo "configure: failed program was:" >&5
2703 cat conftest.
$ac_ext >&5
2705 eval "ac_cv_func_vprintf=no"
2710 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2711 echo "$ac_t""yes" 1>&6
2712 cat >> confdefs.h
<<\EOF
2713 #define HAVE_VPRINTF 1
2717 echo "$ac_t""no" 1>&6
2720 if test "$ac_cv_func_vprintf" != yes; then
2721 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2722 echo "configure:2723: checking for _doprnt" >&5
2723 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2724 echo $ac_n "(cached) $ac_c" 1>&6
2726 cat > conftest.
$ac_ext <<EOF
2727 #line 2728 "configure"
2728 #include "confdefs.h"
2729 /* System header to define __stub macros and hopefully few prototypes,
2730 which can conflict with char _doprnt(); below. */
2732 /* Override any gcc2 internal prototype to avoid an error. */
2733 /* We use char because int might match the return type of a gcc2
2734 builtin and then its argument prototype would still apply. */
2739 /* The GNU C library defines this for functions which it implements
2740 to always fail with ENOSYS. Some functions are actually named
2741 something starting with __ and the normal name is an alias. */
2742 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2750 if { (eval echo configure
:2751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2752 eval "ac_cv_func__doprnt=yes"
2754 echo "configure: failed program was:" >&5
2755 cat conftest.
$ac_ext >&5
2757 eval "ac_cv_func__doprnt=no"
2762 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2763 echo "$ac_t""yes" 1>&6
2764 cat >> confdefs.h
<<\EOF
2765 #define HAVE_DOPRNT 1
2769 echo "$ac_t""no" 1>&6
2776 if test $ac_cv_func_vprintf != yes ; then
2778 if test $ac_cv_func__doprnt != yes ; then
2785 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2786 echo "configure:2787: checking whether the printf functions support %p" >&5
2787 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2788 echo $ac_n "(cached) $ac_c" 1>&6
2790 if test "$cross_compiling" = yes; then
2791 gcc_cv_func_printf_ptr
=no
2793 cat > conftest.
$ac_ext <<EOF
2794 #line 2795 "configure"
2795 #include "confdefs.h"
2801 char *p = buf, *q = NULL;
2802 sprintf(buf, "%p", p);
2803 sscanf(buf, "%p", &q);
2807 if { (eval echo configure
:2808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2809 gcc_cv_func_printf_ptr
=yes
2811 echo "configure: failed program was:" >&5
2812 cat conftest.
$ac_ext >&5
2814 gcc_cv_func_printf_ptr
=no
2819 rm -f core core.
* *.core
2822 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2823 if test $gcc_cv_func_printf_ptr = yes ; then
2824 cat >> confdefs.h
<<\EOF
2825 #define HAVE_PRINTF_PTR 1
2833 # Under some versions of uwin, vfork is notoriously buggy and the test
2834 # can hang configure; on other versions, vfork exists just as a stub.
2835 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2836 ac_cv_func_vfork_works
=no
2839 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2840 echo "configure:2841: checking for pid_t" >&5
2841 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2842 echo $ac_n "(cached) $ac_c" 1>&6
2844 cat > conftest.
$ac_ext <<EOF
2845 #line 2846 "configure"
2846 #include "confdefs.h"
2847 #include <sys/types.h>
2853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2854 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2856 ac_cv_type_pid_t
=yes
2864 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2865 if test $ac_cv_type_pid_t = no
; then
2866 cat >> confdefs.h
<<\EOF
2872 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2873 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2874 echo "configure:2875: checking for vfork.h" >&5
2875 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2876 echo $ac_n "(cached) $ac_c" 1>&6
2878 cat > conftest.
$ac_ext <<EOF
2879 #line 2880 "configure"
2880 #include "confdefs.h"
2883 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2884 { (eval echo configure
:2885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2885 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2886 if test -z "$ac_err"; then
2888 eval "ac_cv_header_$ac_safe=yes"
2891 echo "configure: failed program was:" >&5
2892 cat conftest.
$ac_ext >&5
2894 eval "ac_cv_header_$ac_safe=no"
2898 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2899 echo "$ac_t""yes" 1>&6
2900 cat >> confdefs.h
<<\EOF
2901 #define HAVE_VFORK_H 1
2905 echo "$ac_t""no" 1>&6
2908 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2909 echo "configure:2910: checking for working vfork" >&5
2910 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2911 echo $ac_n "(cached) $ac_c" 1>&6
2913 if test "$cross_compiling" = yes; then
2914 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2915 echo "configure:2916: checking for vfork" >&5
2916 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2917 echo $ac_n "(cached) $ac_c" 1>&6
2919 cat > conftest.
$ac_ext <<EOF
2920 #line 2921 "configure"
2921 #include "confdefs.h"
2922 /* System header to define __stub macros and hopefully few prototypes,
2923 which can conflict with char vfork(); below. */
2925 /* Override any gcc2 internal prototype to avoid an error. */
2926 /* We use char because int might match the return type of a gcc2
2927 builtin and then its argument prototype would still apply. */
2932 /* The GNU C library defines this for functions which it implements
2933 to always fail with ENOSYS. Some functions are actually named
2934 something starting with __ and the normal name is an alias. */
2935 #if defined (__stub_vfork) || defined (__stub___vfork)
2943 if { (eval echo configure
:2944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2945 eval "ac_cv_func_vfork=yes"
2947 echo "configure: failed program was:" >&5
2948 cat conftest.
$ac_ext >&5
2950 eval "ac_cv_func_vfork=no"
2955 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2956 echo "$ac_t""yes" 1>&6
2959 echo "$ac_t""no" 1>&6
2962 ac_cv_func_vfork_works
=$ac_cv_func_vfork
2964 cat > conftest.
$ac_ext <<EOF
2965 #line 2966 "configure"
2966 #include "confdefs.h"
2967 /* Thanks to Paul Eggert for this test. */
2969 #include <sys/types.h>
2970 #include <sys/stat.h>
2971 #ifdef HAVE_UNISTD_H
2977 /* On some sparc systems, changes by the child to local and incoming
2978 argument registers are propagated back to the parent.
2979 The compiler is told about this with #include <vfork.h>,
2980 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2981 Test for this by using a static variable whose address
2982 is put into a register that is clobbered by the vfork. */
2985 sparc_address_test (int arg)
2987 sparc_address_test (arg) int arg;
3005 pid_t parent = getpid ();
3008 sparc_address_test ();
3013 /* Here is another test for sparc vfork register problems.
3014 This test uses lots of local variables, at least
3015 as many local variables as main has allocated so far
3016 including compiler temporaries. 4 locals are enough for
3017 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
3018 A buggy compiler should reuse the register of parent
3019 for one of the local variables, since it will think that
3020 parent can't possibly be used any more in this routine.
3021 Assigning to the local variable will thus munge parent
3022 in the parent process. */
3024 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
3025 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
3026 /* Convince the compiler that p..p7 are live; otherwise, it might
3027 use the same hardware register for all 8 local variables. */
3028 if (p != p1 || p != p2 || p != p3 || p != p4
3029 || p != p5 || p != p6 || p != p7)
3032 /* On some systems (e.g. IRIX 3.3),
3033 vfork doesn't separate parent from child file descriptors.
3034 If the child closes a descriptor before it execs or exits,
3035 this munges the parent's descriptor as well.
3036 Test for this by closing stdout in the child. */
3037 _exit(close(fileno(stdout)) != 0);
3042 while (wait(&status) != child)
3045 /* Was there some problem with vforking? */
3048 /* Did the child fail? (This shouldn't happen.) */
3051 /* Did the vfork/compiler bug occur? */
3052 || parent != getpid()
3054 /* Did the file descriptor bug occur? */
3055 || fstat(fileno(stdout), &st) != 0
3060 if { (eval echo configure
:3061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3062 ac_cv_func_vfork_works
=yes
3064 echo "configure: failed program was:" >&5
3065 cat conftest.
$ac_ext >&5
3067 ac_cv_func_vfork_works
=no
3074 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
3075 if test $ac_cv_func_vfork_works = no
; then
3076 cat >> confdefs.h
<<\EOF
3082 for ac_hdr
in unistd.h
3084 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3085 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3086 echo "configure:3087: checking for $ac_hdr" >&5
3087 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3088 echo $ac_n "(cached) $ac_c" 1>&6
3090 cat > conftest.
$ac_ext <<EOF
3091 #line 3092 "configure"
3092 #include "confdefs.h"
3095 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3096 { (eval echo configure
:3097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3097 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3098 if test -z "$ac_err"; then
3100 eval "ac_cv_header_$ac_safe=yes"
3103 echo "configure: failed program was:" >&5
3104 cat conftest.
$ac_ext >&5
3106 eval "ac_cv_header_$ac_safe=no"
3110 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3111 echo "$ac_t""yes" 1>&6
3112 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3113 cat >> confdefs.h
<<EOF
3114 #define $ac_tr_hdr 1
3118 echo "$ac_t""no" 1>&6
3122 for ac_func
in getpagesize
3124 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3125 echo "configure:3126: checking for $ac_func" >&5
3126 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3127 echo $ac_n "(cached) $ac_c" 1>&6
3129 cat > conftest.
$ac_ext <<EOF
3130 #line 3131 "configure"
3131 #include "confdefs.h"
3132 /* System header to define __stub macros and hopefully few prototypes,
3133 which can conflict with char $ac_func(); below. */
3135 /* Override any gcc2 internal prototype to avoid an error. */
3136 /* We use char because int might match the return type of a gcc2
3137 builtin and then its argument prototype would still apply. */
3142 /* The GNU C library defines this for functions which it implements
3143 to always fail with ENOSYS. Some functions are actually named
3144 something starting with __ and the normal name is an alias. */
3145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3153 if { (eval echo configure
:3154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3155 eval "ac_cv_func_$ac_func=yes"
3157 echo "configure: failed program was:" >&5
3158 cat conftest.
$ac_ext >&5
3160 eval "ac_cv_func_$ac_func=no"
3165 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3166 echo "$ac_t""yes" 1>&6
3167 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3168 cat >> confdefs.h
<<EOF
3169 #define $ac_tr_func 1
3173 echo "$ac_t""no" 1>&6
3177 echo $ac_n "checking for working mmap which provides zeroed pages anywhere""... $ac_c" 1>&6
3178 echo "configure:3179: checking for working mmap which provides zeroed pages anywhere" >&5
3179 if eval "test \"`echo '$''{'ac_cv_func_mmap_anywhere'+set}'`\" = set"; then
3180 echo $ac_n "(cached) $ac_c" 1>&6
3182 if test "$cross_compiling" = yes; then
3183 ac_cv_func_mmap_anywhere
=no
3185 cat > conftest.
$ac_ext <<EOF
3186 #line 3187 "configure"
3187 #include "confdefs.h"
3189 /* Test by Richard Henderson and Alexandre Oliva.
3190 Check whether mmap MAP_ANONYMOUS or mmap from /dev/zero works. */
3191 #include <sys/types.h>
3193 #include <sys/mman.h>
3195 #if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
3196 # define MAP_ANONYMOUS MAP_ANON
3199 /* This mess was copied from the GNU getpagesize.h. */
3200 #ifndef HAVE_GETPAGESIZE
3201 # ifdef HAVE_UNISTD_H
3202 # include <unistd.h>
3205 /* Assume that all systems that can run configure have sys/param.h. */
3206 # ifndef HAVE_SYS_PARAM_H
3207 # define HAVE_SYS_PARAM_H 1
3210 # ifdef _SC_PAGESIZE
3211 # define getpagesize() sysconf(_SC_PAGESIZE)
3212 # else /* no _SC_PAGESIZE */
3213 # ifdef HAVE_SYS_PARAM_H
3214 # include <sys/param.h>
3215 # ifdef EXEC_PAGESIZE
3216 # define getpagesize() EXEC_PAGESIZE
3217 # else /* no EXEC_PAGESIZE */
3219 # define getpagesize() NBPG * CLSIZE
3222 # endif /* no CLSIZE */
3223 # else /* no NBPG */
3225 # define getpagesize() NBPC
3226 # else /* no NBPC */
3228 # define getpagesize() PAGESIZE
3229 # endif /* PAGESIZE */
3230 # endif /* no NBPC */
3231 # endif /* no NBPG */
3232 # endif /* no EXEC_PAGESIZE */
3233 # else /* no HAVE_SYS_PARAM_H */
3234 # define getpagesize() 8192 /* punt totally */
3235 # endif /* no HAVE_SYS_PARAM_H */
3236 # endif /* no _SC_PAGESIZE */
3238 #endif /* no HAVE_GETPAGESIZE */
3245 #ifndef MAP_ANONYMOUS
3246 fd = open("/dev/zero", O_RDWR);
3252 #ifdef MAP_ANONYMOUS
3253 x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE,
3254 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
3256 x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
3258 if (x == (char *) -1)
3263 if (munmap(x, pg) < 0)
3269 if { (eval echo configure
:3270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3271 ac_cv_func_mmap_anywhere
=yes
3273 echo "configure: failed program was:" >&5
3274 cat conftest.
$ac_ext >&5
3276 ac_cv_func_mmap_anywhere
=no
3283 echo "$ac_t""$ac_cv_func_mmap_anywhere" 1>&6
3284 if test $ac_cv_func_mmap_anywhere = yes; then
3285 cat >> confdefs.h
<<\EOF
3286 #define HAVE_MMAP_ANYWHERE 1
3291 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
3292 echo "configure:3293: checking for working mmap of a file" >&5
3293 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
3294 echo $ac_n "(cached) $ac_c" 1>&6
3296 # Create a file one thousand bytes long.
3297 for i
in 1 2 3 4 5 6 7 8 9 0
3298 do for j
in 1 2 3 4 5 6 7 8 9 0
3301 done > conftestdata$$
3303 if test "$cross_compiling" = yes; then
3304 ac_cv_func_mmap_file
=no
3306 cat > conftest.
$ac_ext <<EOF
3307 #line 3308 "configure"
3308 #include "confdefs.h"
3310 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
3311 Richard Henderson and Alexandre Oliva.
3312 Check whether read-only mmap of a plain file works. */
3313 #include <sys/types.h>
3314 #include <sys/stat.h>
3316 #include <sys/mman.h>
3324 fd = open("conftestdata$$", O_RDONLY);
3328 if (fstat (fd, &st))
3331 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
3332 if (x == (char *) -1)
3335 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
3338 if (munmap(x, st.st_size) < 0)
3344 if { (eval echo configure
:3345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3346 ac_cv_func_mmap_file
=yes
3348 echo "configure: failed program was:" >&5
3349 cat conftest.
$ac_ext >&5
3351 ac_cv_func_mmap_file
=no
3358 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
3359 if test $ac_cv_func_mmap_file = yes; then
3360 cat >> confdefs.h
<<\EOF
3361 #define HAVE_MMAP_FILE 1
3367 # We will need to find libiberty.h and ansidecl.h
3368 saved_CFLAGS
="$CFLAGS"
3369 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
3370 for ac_func
in bcopy bzero bcmp \
3371 index rindex getenv atol sbrk abort atof getcwd getwd \
3372 strsignal putc_unlocked fputs_unlocked strstr environ \
3373 malloc realloc calloc free
basename getopt
3375 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3376 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3377 echo "configure:3378: checking whether $ac_func is declared" >&5
3378 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3379 echo $ac_n "(cached) $ac_c" 1>&6
3381 cat > conftest.
$ac_ext <<EOF
3382 #line 3383 "configure"
3383 #include "confdefs.h"
3384 #include "gansidecl.h"
3389 char *(*pfn) = (char *(*)) $ac_func ;
3393 if { (eval echo configure
:3394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3395 eval "gcc_cv_have_decl_$ac_func=yes"
3397 echo "configure: failed program was:" >&5
3398 cat conftest.
$ac_ext >&5
3400 eval "gcc_cv_have_decl_$ac_func=no"
3405 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3406 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
3407 #define $ac_tr_decl 1
3411 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
3412 #define $ac_tr_decl 0
3418 if test x
= y
; then
3419 cat >> confdefs.h
<<EOF
3420 #define HAVE_DECL_BCOPY 1
3422 cat >> confdefs.h
<<EOF
3423 #define HAVE_DECL_BZERO 1
3425 cat >> confdefs.h
<<EOF
3426 #define HAVE_DECL_BCMP 1
3429 cat >> confdefs.h
<<EOF
3430 #define HAVE_DECL_INDEX 1
3432 cat >> confdefs.h
<<EOF
3433 #define HAVE_DECL_RINDEX 1
3435 cat >> confdefs.h
<<EOF
3436 #define HAVE_DECL_GETENV 1
3438 cat >> confdefs.h
<<EOF
3439 #define HAVE_DECL_ATOL 1
3441 cat >> confdefs.h
<<EOF
3442 #define HAVE_DECL_SBRK 1
3444 cat >> confdefs.h
<<EOF
3445 #define HAVE_DECL_ABORT 1
3447 cat >> confdefs.h
<<EOF
3448 #define HAVE_DECL_ATOF 1
3450 cat >> confdefs.h
<<EOF
3451 #define HAVE_DECL_GETCWD 1
3453 cat >> confdefs.h
<<EOF
3454 #define HAVE_DECL_GETWD 1
3457 cat >> confdefs.h
<<EOF
3458 #define HAVE_DECL_STRSIGNAL 1
3460 cat >> confdefs.h
<<EOF
3461 #define HAVE_DECL_PUTC_UNLOCKED 1
3463 cat >> confdefs.h
<<EOF
3464 #define HAVE_DECL_FPUTS_UNLOCKED 1
3466 cat >> confdefs.h
<<EOF
3467 #define HAVE_DECL_STRSTR 1
3469 cat >> confdefs.h
<<EOF
3470 #define HAVE_DECL_ENVIRON 1
3473 cat >> confdefs.h
<<EOF
3474 #define HAVE_DECL_MALLOC 1
3476 cat >> confdefs.h
<<EOF
3477 #define HAVE_DECL_REALLOC 1
3479 cat >> confdefs.h
<<EOF
3480 #define HAVE_DECL_CALLOC 1
3482 cat >> confdefs.h
<<EOF
3483 #define HAVE_DECL_FREE 1
3485 cat >> confdefs.h
<<EOF
3486 #define HAVE_DECL_BASENAME 1
3488 cat >> confdefs.h
<<EOF
3489 #define HAVE_DECL_GETOPT 1
3494 for ac_func
in getrlimit setrlimit getrusage
3496 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3497 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3498 echo "configure:3499: checking whether $ac_func is declared" >&5
3499 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3500 echo $ac_n "(cached) $ac_c" 1>&6
3502 cat > conftest.
$ac_ext <<EOF
3503 #line 3504 "configure"
3504 #include "confdefs.h"
3505 #include "gansidecl.h"
3507 #ifdef HAVE_SYS_RESOURCE_H
3508 #include <sys/resource.h>
3514 char *(*pfn) = (char *(*)) $ac_func ;
3518 if { (eval echo configure
:3519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3520 eval "gcc_cv_have_decl_$ac_func=yes"
3522 echo "configure: failed program was:" >&5
3523 cat conftest.
$ac_ext >&5
3525 eval "gcc_cv_have_decl_$ac_func=no"
3530 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3531 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
3532 #define $ac_tr_decl 1
3536 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
3537 #define $ac_tr_decl 0
3543 if test x
= y
; then
3544 cat >> confdefs.h
<<EOF
3545 #define HAVE_DECL_GETRLIMIT 1
3547 cat >> confdefs.h
<<EOF
3548 #define HAVE_DECL_SETRLIMIT 1
3550 cat >> confdefs.h
<<EOF
3551 #define HAVE_DECL_GETRUSAGE 1
3556 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
3557 CFLAGS
="$saved_CFLAGS"
3559 # mkdir takes a single argument on some systems.
3560 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
3561 echo "configure:3562: checking if mkdir takes one argument" >&5
3562 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
3563 echo $ac_n "(cached) $ac_c" 1>&6
3565 cat > conftest.
$ac_ext <<EOF
3566 #line 3567 "configure"
3567 #include "confdefs.h"
3569 #include <sys/types.h>
3570 #ifdef HAVE_SYS_STAT_H
3571 # include <sys/stat.h>
3573 #ifdef HAVE_UNISTD_H
3574 # include <unistd.h>
3576 #ifdef HAVE_DIRECT_H
3577 # include <direct.h>
3583 if { (eval echo configure
:3584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3585 gcc_cv_mkdir_takes_one_arg
=no
3587 echo "configure: failed program was:" >&5
3588 cat conftest.
$ac_ext >&5
3590 gcc_cv_mkdir_takes_one_arg
=yes
3595 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
3596 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
3597 cat >> confdefs.h
<<\EOF
3598 #define MKDIR_TAKES_ONE_ARG 1
3612 build_install_headers_dir
=install-headers-tar
3617 host_truncate_target
=
3620 # Decode the host machine, then the target machine.
3621 # For the host machine, we save the xm_file variable as host_xm_file;
3622 # then we decode the target machine and forget everything else
3623 # that came from the host machine.
3624 for machine
in $build $host $target; do
3638 # Set this to force installation and use of collect2.
3640 # Set this to override the default target model.
3642 # Set this to control how the header file directory is installed.
3643 install_headers_dir
=install-headers-tar
3644 # Set this to a non-empty list of args to pass to cpp if the target
3645 # wants its .md file passed through cpp.
3647 # Set this if directory names should be truncated to 14 characters.
3649 # Set this if gdb needs a dir command with `dirname $out_file`
3650 gdb_needs_out_file_path
=
3651 # Set this if the build machine requires executables to have a
3654 # Set this to control which thread package will be used.
3656 # Reinitialize these from the flag values every loop pass, since some
3657 # configure entries modify them.
3659 gnu_ld
="$gnu_ld_flag"
3660 enable_threads
=$enable_threads_flag
3662 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
3663 # updated in each machine entry.
3665 cpu_type
=`echo $machine | sed 's/-.*$//'`
3705 tm_file
=${cpu_type}/${cpu_type}.h
3706 xm_file
=${cpu_type}/xm-
${cpu_type}.h
3707 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
;
3709 tm_p_file
=${cpu_type}/${cpu_type}-protos.h
;
3711 # On a.out targets, we need to use collect2.
3718 # Common parts for linux-gnu and openbsd systems
3721 xm_defines
="HAVE_ATEXIT POSIX BSTRING"
3724 tm_file
=${cpu_type}/openbsd.h
3725 tmake_file
="t-libc-ok t-openbsd"
3726 # avoid surprises, always provide an xm-openbsd file
3727 xm_file
=${cpu_type}/xm-openbsd.h
3728 # don't depend on processor x-fragments as well
3730 if test x
$enable_threads = xyes
; then
3732 tmake_file
="${tmake_file} t-openbsd-thread"
3738 # Support site-specific machine types.
3740 cpu_type
=`echo $machine | sed -e 's/-.*//'`
3741 rest
=`echo $machine | sed -e "s/$cpu_type-//"`
3742 xm_file
=${cpu_type}/xm-
$rest.h
3743 tm_file
=${cpu_type}/$rest.h
3744 if test -f $srcdir/config
/${cpu_type}/x-
$rest; \
3745 then xmake_file
=${cpu_type}/x-
$rest; \
3748 if test -f $srcdir/config
/${cpu_type}/t-
$rest; \
3749 then tmake_file
=${cpu_type}/t-
$rest; \
3755 a29k-
*-bsd* | a29k-
*-sym1*)
3756 tm_file
="${tm_file} a29k/unix.h"
3758 xmake_file
=a29k
/x-unix
3761 a29k-
*-udi | a29k-
*-coff)
3762 tm_file
="${tm_file} dbxcoff.h a29k/udi.h"
3763 tmake_file
=a29k
/t-a29kbare
3766 tm_file
="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3767 tmake_file
=a29k
/t-vx29k
3768 extra_parts
="crtbegin.o crtend.o"
3769 thread_file
='vxworks'
3771 a29k-
*-*) # Default a29k environment.
3775 tm_file
="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
3777 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
3778 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
3780 # GAS + IEEE_CONFORMANT
3781 target_cpu_default
="MASK_GAS|MASK_IEEE_CONFORMANT"
3783 xm_file
="alpha/xm-alpha-interix.h xm-interix.h"
3784 xmake_file
="x-interix alpha/t-pe"
3785 tmake_file
="alpha/t-alpha alpha/t-interix alpha/t-ieee"
3786 if test x
$enable_threads = xyes
; then
3789 if test x
$stabs = xyes
; then
3790 tm_file
="${tm_file} dbxcoff.h"
3792 #prefix='$$INTERIX_ROOT'/usr/contrib
3793 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3795 alpha
*-*-linux-gnuecoff*)
3796 tm_file
="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3797 target_cpu_default
="MASK_GAS"
3798 tmake_file
="alpha/t-alpha alpha/t-ieee"
3803 alpha
*-*-linux-gnulibc1*)
3804 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3805 target_cpu_default
="MASK_GAS"
3806 tmake_file
="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
3807 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3810 if test x
$enable_threads = xyes
; then
3814 alpha
*-*-linux-gnu*)
3815 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3816 target_cpu_default
="MASK_GAS"
3817 tmake_file
="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3818 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3821 if test x
$enable_threads = xyes
; then
3826 tm_file
="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3827 target_cpu_default
="MASK_GAS"
3828 tmake_file
="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3829 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3835 # default x-alpha is only appropriate for dec-osf.
3836 target_cpu_default
="MASK_GAS"
3837 tmake_file
="alpha/t-alpha alpha/t-ieee"
3841 if test x
$stabs = xyes
3843 tm_file
="${tm_file} dbx.h"
3845 if test x
$gas != xyes
3847 extra_passes
="mips-tfile mips-tdump"
3850 tmake_file
="alpha/t-alpha alpha/t-ieee"
3853 tm_file
="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3856 tm_file
="${tm_file} alpha/osf.h alpha/osf2or3.h"
3859 tm_file
="${tm_file} alpha/osf.h"
3860 # Some versions of OSF4 (specifically X4.0-9 296.7) have
3861 # a broken tar, so we use cpio instead.
3862 install_headers_dir
=install-headers-cpio
3865 tm_file
="${tm_file} alpha/osf.h alpha/osf5.h"
3869 *-*-osf4.0
[b-z
] |
*-*-osf4.
[1-9]* |
*-*-osf5*)
3870 target_cpu_default
=MASK_SUPPORT_ARCH
3875 tm_file
="${tm_file} dbx.h alpha/vxworks.h"
3876 tmake_file
="alpha/t-alpha alpha/t-ieee"
3879 extra_passes
="mips-tfile mips-tdump"
3882 thread_file
='vxworks'
3885 tm_file
="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3886 xm_file
="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3887 tmake_file
="t-libc-ok alpha/t-alpha alpha/t-ieee"
3888 xmake_file
=winnt
/x-winnt
3889 extra_host_objs
=oldnames.o
3890 extra_gcc_objs
="spawnv.o oldnames.o"
3891 if test x
$gnu_ld != xyes
3893 extra_programs
=ld.exe
3895 if test x
$enable_threads = xyes
; then
3901 xm_file
="${xm_file} alpha/xm-vms.h"
3902 tmake_file
="alpha/t-alpha alpha/t-vms alpha/t-ieee"
3905 extra_parts
="crtinit.o crtfini.o"
3907 arm-
*-coff* | armel-
*-coff*)
3909 tmake_file
=arm
/t-arm-coff
3913 tmake_file
=arm
/t-arm-coff
3914 thread_file
='vxworks'
3916 arm-
*-riscix1.
[01]*) # Acorn RISC machine (early versions)
3917 tm_file
=arm
/riscix1-1.h
3920 arm-
*-riscix*) # Acorn RISC machine
3921 if test x
$gas = xyes
3923 tm_file
=arm
/rix-gas.h
3925 tm_file
=arm
/riscix.h
3927 xmake_file
=arm
/x-riscix
3928 tmake_file
=arm
/t-riscix
3931 arm-semi-aout | armel-semi-aout
)
3933 tmake_file
=arm
/t-semi
3935 arm-semi-aof | armel-semi-aof
)
3936 tm_file
=arm
/semiaof.h
3937 tmake_file
=arm
/t-semiaof
3940 tm_file
=arm
/netbsd.h
3941 tmake_file
="t-netbsd arm/t-netbsd"
3944 arm
*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
3947 tm_file
=arm
/linux-aout.h
3948 tmake_file
=arm
/t-linux
3951 arm
*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker
3952 xm_file
=arm
/xm-linux.h
3954 tm_file
="arm/linux-oldld.h arm/linux-elf.h"
3957 tm_file
="arm/linux-elf26.h $tm_file"
3960 tmake_file
="t-linux arm/t-linux"
3961 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3963 case x
${enable_threads} in
3964 x | xyes | xpthreads | xposix
)
3969 arm
*-*-linux-gnu*) # ARM GNU/Linux with ELF
3970 xm_file
=arm
/xm-linux.h
3972 tm_file
="arm/linux-elf.h"
3975 tm_file
="arm/linux-elf26.h $tm_file"
3978 tmake_file
="t-linux arm/t-linux"
3979 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3981 case x
${enable_threads} in
3982 x | xyes | xpthreads | xposix
)
3987 arm
*-*-uclinux*) # ARM ucLinux
3988 tm_file
=arm
/uclinux-elf.h
3989 tmake_file
=arm
/t-arm-elf
3993 tmake_file
=arm
/t-arm-aout
3996 tm_file
=arm
/ecos-elf.h
3997 tmake_file
=arm
/t-arm-elf
4000 tm_file
=arm
/unknown-elf.h
4001 tmake_file
=arm
/t-arm-elf
4004 tm_file
=arm
/conix-elf.h
4005 tmake_file
=arm
/t-arm-elf
4008 tm_file
=arm
/unknown-elf-oabi.h
4009 tmake_file
=arm
/t-arm-elf
4018 c1-convex-
*) # Convex C1
4019 target_cpu_default
=1
4022 c2-convex-
*) # Convex C2
4023 target_cpu_default
=2
4027 target_cpu_default
=4
4031 target_cpu_default
=8
4035 target_cpu_default
=16
4040 tmake_file
=c4x
/t-c4x
4042 clipper-intergraph-clix
*)
4043 tm_file
="${tm_file} svr3.h clipper/clix.h"
4044 xm_file
=clipper
/xm-clix.h
4045 xmake_file
=clipper
/x-clix
4046 extra_headers
=va-clipper.h
4047 extra_parts
="crtbegin.o crtend.o"
4048 install_headers_dir
=install-headers-cpio
4059 tm_file
="fr30/fr30.h"
4060 tmake_file
=fr30
/t-fr30
4061 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4063 # This hasn't been upgraded to GCC 2.
4064 # fx80-alliant-*) # Alliant FX/80
4070 target_cpu_default
="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
4071 tm_file
="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
4072 tmake_file
="t-linux pa/t-linux"
4073 extra_parts
="crtbegin.o crtend.o"
4076 if test x
$enable_threads = xyes
; then
4081 target_cpu_default
="MASK_PA_11"
4082 tmake_file
=pa
/t-openbsd
4085 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
4086 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
4087 xm_file
=pa
/xm-papro.h
4091 target_cpu_default
="MASK_PA_11"
4092 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
4096 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
4097 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
4098 xm_file
=pa
/xm-papro.h
4102 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
4106 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h"
4107 target_cpu_default
="MASK_PA_11"
4111 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h"
4115 tm_file
="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
4116 xm_file
=pa
/xm-pahpux.h
4117 xmake_file
=pa
/x-pa-hpux
4118 if test x
$gas = xyes
4120 tm_file
="${tm_file} pa/gas.h"
4122 install_headers_dir
=install-headers-cpio
4125 hppa1.0
-*-hpux8.0
[0-2]*)
4126 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4127 xm_file
=pa
/xm-pahpux.h
4128 xmake_file
=pa
/x-pa-hpux
4129 if test x
$gas = xyes
4131 tm_file
="${tm_file} pa/pa-gas.h"
4133 tm_file
="pa/pa-oldas.h ${tm_file}"
4135 install_headers_dir
=install-headers-cpio
4138 hppa1.1
-*-hpux8.0
[0-2]*)
4139 target_cpu_default
="MASK_PA_11"
4140 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4141 xm_file
=pa
/xm-pahpux.h
4142 xmake_file
=pa
/x-pa-hpux
4143 if test x
$gas = xyes
4145 tm_file
="${tm_file} pa/pa-gas.h"
4147 tm_file
="pa/pa-oldas.h ${tm_file}"
4149 install_headers_dir
=install-headers-cpio
4153 target_cpu_default
="MASK_PA_11"
4154 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4155 xm_file
=pa
/xm-pahpux.h
4156 xmake_file
=pa
/x-pa-hpux
4157 if test x
$gas = xyes
4159 tm_file
="${tm_file} pa/pa-gas.h"
4161 install_headers_dir
=install-headers-cpio
4165 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4166 xm_file
=pa
/xm-pahpux.h
4167 xmake_file
=pa
/x-pa-hpux
4168 if test x
$gas = xyes
4170 tm_file
="${tm_file} pa/pa-gas.h"
4172 install_headers_dir
=install-headers-cpio
4175 hppa1.1
-*-hpux10* | hppa2
*-*-hpux10*)
4176 target_cpu_default
="MASK_PA_11"
4177 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
4179 xm_file
=pa
/xm-pahpux.h
4180 xmake_file
=pa
/x-pa-hpux
4182 if test x
$gas = xyes
4184 tm_file
="${tm_file} pa/pa-gas.h"
4186 if test x
$enable_threads = x
; then
4187 enable_threads
=$have_pthread_h
4189 if test x
$enable_threads = xyes
; then
4191 tmake_file
="${tmake_file} pa/t-dce-thr"
4193 install_headers_dir
=install-headers-cpio
4197 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
4199 xm_file
=pa
/xm-pahpux.h
4200 xmake_file
=pa
/x-pa-hpux
4202 if test x
$gas = xyes
4204 tm_file
="${tm_file} pa/pa-gas.h"
4206 if test x
$enable_threads = x
; then
4207 enable_threads
=$have_pthread_h
4209 if test x
$enable_threads = xyes
; then
4211 tmake_file
="${tmake_file} pa/t-dce-thr"
4213 install_headers_dir
=install-headers-cpio
4217 target_cpu_default
="MASK_PA_11"
4218 xm_file
=pa
/xm-pa64hpux.h
4219 xmake_file
=pa
/x-pa-hpux
4221 tm_file
="pa/pa64-start.h ${tm_file} pa/pa64-regs.h pa/long_double.h pa/elf.h pa/pa-hpux.h pa/pa-hpux11.h pa/pa-64.h"
4223 tmake_file
=pa
/t-pa64
4224 target_cpu_default
="(MASK_PA_11|MASK_PA_20)"
4228 tm_file
="${tm_file} pa/pa-gas.h"
4230 # if [[ x$enable_threads = x ]]; then
4231 # enable_threads=$have_pthread_h
4233 # if [[ x$enable_threads = xyes ]]; then
4235 # tmake_file="${tmake_file} pa/t-dce-thr"
4237 install_headers_dir
=install-headers-cpio
4240 hppa1.1
-*-hpux11* | hppa2
*-*-hpux11*)
4241 target_cpu_default
="MASK_PA_11"
4242 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
4244 xm_file
=pa
/xm-pahpux.h
4245 xmake_file
=pa
/x-pa-hpux
4247 if test x
$gas = xyes
4249 tm_file
="${tm_file} pa/pa-gas.h"
4251 # if test x$enable_threads = x; then
4252 # enable_threads=$have_pthread_h
4254 # if test x$enable_threads = xyes; then
4256 # tmake_file="${tmake_file} pa/t-dce-thr"
4258 install_headers_dir
=install-headers-cpio
4262 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
4264 xm_file
=pa
/xm-pahpux.h
4265 xmake_file
=pa
/x-pa-hpux
4266 if test x
$gas = xyes
4268 tm_file
="${tm_file} pa/pa-gas.h"
4270 # if test x$enable_threads = x; then
4271 # enable_threads=$have_pthread_h
4273 # if test x$enable_threads = xyes; then
4275 # tmake_file="${tmake_file} pa/t-dce-thr"
4277 install_headers_dir
=install-headers-cpio
4280 hppa1.1
-*-hpux* | hppa2
*-*-hpux*)
4281 target_cpu_default
="MASK_PA_11"
4282 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
4283 xm_file
=pa
/xm-pahpux.h
4284 xmake_file
=pa
/x-pa-hpux
4285 if test x
$gas = xyes
4287 tm_file
="${tm_file} pa/pa-gas.h"
4289 install_headers_dir
=install-headers-cpio
4293 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
4294 xm_file
=pa
/xm-pahpux.h
4295 xmake_file
=pa
/x-pa-hpux
4296 if test x
$gas = xyes
4298 tm_file
="${tm_file} pa/pa-gas.h"
4300 install_headers_dir
=install-headers-cpio
4303 hppa1.1
-*-hiux* | hppa2
*-*-hiux*)
4304 target_cpu_default
="MASK_PA_11"
4305 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
4306 xm_file
=pa
/xm-pahpux.h
4307 xmake_file
=pa
/x-pa-hpux
4308 if test x
$gas = xyes
4310 tm_file
="${tm_file} pa/pa-gas.h"
4312 install_headers_dir
=install-headers-cpio
4316 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
4317 xm_file
=pa
/xm-pahpux.h
4318 xmake_file
=pa
/x-pa-hpux
4319 if test x
$gas = xyes
4321 tm_file
="${tm_file} pa/pa-gas.h"
4323 install_headers_dir
=install-headers-cpio
4327 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
4328 target_cpu_default
="MASK_PA_11"
4332 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
4333 xm_file
=pa
/xm-pampeix.h
4334 xmake_file
=pa
/x-pa-mpeix
4335 echo "You must use gas. Assuming it is already installed."
4336 install_headers_dir
=install-headers-tar
4339 i370-
*-opened*) # IBM 360/370/390 Architecture
4340 xm_file
=i370
/xm-oe.h
4342 xmake_file
=i370
/x-oe
4343 tmake_file
=i370
/t-oe
4346 xm_file
=i370
/xm-mvs.h
4348 tmake_file
=i370
/t-mvs
4351 xm_file
="xm-linux.h i370/xm-linux.h"
4353 tm_file
="i370/linux.h ${tm_file}"
4354 tmake_file
="t-linux i370/t-linux"
4355 # broken_install=yes
4356 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4357 # extra_parts="crtbegin.o crtend.o"
4361 if test x
$enable_threads = xyes
; then
4366 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h"
4367 tm_file
=i386
/i386elf.h
4368 tmake_file
=i386
/t-i386elf
4371 i
[34567]86-ibm-aix*) # IBM PS/2 running AIX
4372 if test x
$gas = xyes
4374 tm_file
=i386
/aix386.h
4375 extra_parts
="crtbegin.o crtend.o"
4376 tmake_file
=i386
/t-crtstuff
4378 tm_file
=i386
/aix386ng.h
4381 xm_file
="xm-alloca.h i386/xm-aix.h ${xm_file}"
4383 xmake_file
=i386
/x-aix
4385 i
[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
4386 xm_file
="xm-alloca.h ${xm_file}"
4387 xm_defines
="USG POSIX SMALL_ARG_MAX"
4388 xmake_file
=i386
/x-ncr3000
4389 if test x
$stabs = xyes
-a x
$gas = xyes
4391 tm_file
=i386
/sysv4gdb.h
4393 tm_file
=i386
/sysv4.h
4395 extra_parts
="crtbegin.o crtend.o"
4396 tmake_file
=i386
/t-crtpic
4400 xm_file
=i386
/xm-next.h
4401 tmake_file
=i386
/t-next
4402 xmake_file
=i386
/x-next
4403 extra_objs
=nextstep.o
4404 extra_parts
="crtbegin.o crtend.o"
4405 if test x
$enable_threads = xyes
; then
4409 i
[34567]86-sequent-bsd*) # 80386 from Sequent
4411 if test x
$gas = xyes
4413 tm_file
=i386
/seq-gas.h
4415 tm_file
=i386
/sequent.h
4418 i
[34567]86-sequent-ptx1*)
4419 xm_defines
="USG SVR3"
4420 xmake_file
=i386
/x-sysv3
4421 tm_file
=i386
/seq-sysv3.h
4422 tmake_file
=i386
/t-crtstuff
4423 extra_parts
="crtbegin.o crtend.o"
4424 install_headers_dir
=install-headers-cpio
4426 i
[34567]86-sequent-ptx2* | i
[34567]86-sequent-sysv3*)
4427 xm_defines
="USG SVR3"
4428 xmake_file
=i386
/x-sysv3
4429 tm_file
=i386
/seq2-sysv3.h
4430 tmake_file
=i386
/t-crtstuff
4431 extra_parts
="crtbegin.o crtend.o"
4432 install_headers_dir
=install-headers-cpio
4434 i
[34567]86-sequent-ptx4* | i
[34567]86-sequent-sysv4*)
4435 xm_file
="xm-alloca.h ${xm_file}"
4436 xm_defines
="USG POSIX SMALL_ARG_MAX"
4438 tm_file
=i386
/ptx4-i.h
4440 extra_parts
="crtbegin.o crtend.o"
4441 install_headers_dir
=install-headers-cpio
4443 i386-sun-sunos
*) # Sun i386 roadrunner
4448 i
[34567]86-wrs-vxworks*)
4449 tm_file
=i386
/vxi386.h
4450 tmake_file
=i386
/t-i386bare
4451 thread_file
='vxworks'
4454 tm_file
=i386
/i386-aout.h
4455 tmake_file
=i386
/t-i386bare
4457 i
[34567]86-*-beospe*)
4458 xm_file
=i386
/xm-beos.h
4459 xm_defines
="USE_C_ALLOCA"
4460 tmake_file
=i386
/t-beos
4461 tm_file
=i386
/beos-pe.h
4462 xmake_file
=i386
/x-beos
4465 i
[34567]86-*-beoself* | i
[34567]86-*-beos*)
4466 xm_file
=i386
/xm-beos.h
4467 tmake_file
='i386/t-beos i386/t-crtpic'
4468 tm_file
=i386
/beos-elf.h
4469 xmake_file
=i386
/x-beos
4471 extra_parts
='crtbegin.o crtend.o'
4473 i
[34567]86-*-bsdi* | i
[34567]86-*-bsd386*)
4474 tm_file
=i386
/bsd386.h
4475 # tmake_file=t-libc-ok
4478 tm_file
=i386
/386bsd.h
4479 # tmake_file=t-libc-ok
4480 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
4483 i
[34567]86-*-freebsd[12] | i
[34567]86-*-freebsd[12].
* | i
[34567]86-*-freebsd*aout
*)
4484 tm_file
="i386/freebsd.h i386/perform.h"
4485 tmake_file
=t-freebsd
4487 i
[34567]86-*-freebsd*)
4488 tm_file
="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
4489 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4490 tmake_file
=t-freebsd
4494 case x
${enable_threads} in
4495 xyes | xpthreads | xposix
)
4497 tmake_file
="${tmake_file} t-freebsd-thread"
4501 i
[34567]86-*-netbsd*)
4502 tm_file
=i386
/netbsd.h
4506 i
[34567]86-*-openbsd*)
4507 # we need collect2 until our bug is fixed...
4511 tm_file
=i386
/i386-coff.h
4512 tmake_file
=i386
/t-i386bare
4514 i
[34567]86-*-isc*) # 80386 running ISC system
4515 xm_file
="${xm_file} i386/xm-isc.h"
4516 xm_defines
="USG SVR3"
4518 i
[34567]86-*-isc[34]*)
4519 xmake_file
=i386
/x-isc3
4522 xmake_file
=i386
/x-isc
4525 if test x
$gas = xyes
-a x
$stabs = xyes
4527 tm_file
=i386
/iscdbx.h
4528 tmake_file
=i386
/t-svr3dbx
4529 extra_parts
="svr3.ifile svr3z.ifile"
4531 tm_file
=i386
/isccoff.h
4532 tmake_file
=i386
/t-crtstuff
4533 extra_parts
="crtbegin.o crtend.o"
4535 tmake_file
="$tmake_file i386/t-i386bare"
4536 install_headers_dir
=install-headers-cpio
4538 i
[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
4540 xmake_file
=x-linux-aout
4541 tmake_file
="t-linux-aout i386/t-crtstuff"
4542 tm_file
=i386
/linux-oldld.h
4546 i
[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
4547 xmake_file
=x-linux-aout
4548 tmake_file
="t-linux-aout i386/t-crtstuff"
4549 tm_file
=i386
/linux-aout.h
4553 i
[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
4554 # GNU/Linux C library 5
4556 tm_file
=i386
/linux.h
4557 tmake_file
="t-linux t-linux-gnulibc1 i386/t-crtstuff"
4558 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4561 if test x
$enable_threads = xyes
; then
4562 thread_file
='single'
4565 i
[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
4566 # aka GNU/Linux C library 6
4568 tm_file
=i386
/linux.h
4569 tmake_file
="t-linux i386/t-crtstuff"
4570 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4573 if test x
$enable_threads = xyes
; then
4580 i
[34567]86-go32-msdos | i
[34567]86-*-go32*)
4581 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
4584 i
[34567]86-pc-msdosdjgpp*)
4585 xm_file
=i386
/xm-djgpp.h
4586 tm_file
=i386
/djgpp.h
4587 tmake_file
=i386
/t-djgpp
4588 xmake_file
=i386
/x-djgpp
4593 case $host in *pc-msdosdjgpp
*)
4598 i
[34567]86-moss-msdos* | i
[34567]86-*-moss*)
4600 tmake_file
=t-libc-ok
4604 i
[34567]86-*-lynxos*)
4605 if test x
$gas = xyes
4609 tm_file
=i386
/lynx-ng.h
4611 xm_file
=i386
/xm-lynx.h
4612 tmake_file
=i386
/t-i386bare
4617 # tmake_file=t-libc-ok
4620 i
[34567]86-*-osfrose*) # 386 using OSF/rose
4621 if test x
$elf = xyes
4623 tm_file
=i386
/osfelf.h
4626 tm_file
=i386
/osfrose.h
4629 xm_file
="i386/xm-osf.h ${xm_file}"
4630 xmake_file
=i386
/x-osfrose
4631 tmake_file
=i386
/t-osf
4632 extra_objs
=halfpic.o
4634 i
[34567]86-go32-rtems*)
4636 xm_file
=i386
/xm-go32.h
4637 tm_file
=i386
/go32-rtems.h
4638 tmake_file
="i386/t-go32 t-rtems"
4640 i
[34567]86-*-rtemscoff*)
4642 tm_file
=i386
/rtems.h
4643 tmake_file
="i386/t-i386bare t-rtems"
4645 i
[34567]86-*-rtems*|i
[34567]86-*-rtemself*)
4647 tm_file
=i386
/rtemself.h
4648 extra_parts
="crtbegin.o crtend.o crti.o crtn.o"
4649 tmake_file
="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
4651 i
[34567]86-*-sco3.2v5
*) # 80386 running SCO Open Server 5
4652 xm_file
="xm-alloca.h ${xm_file} i386/xm-sco5.h"
4653 xm_defines
="USG SVR3"
4654 xmake_file
=i386
/x-sco5
4655 install_headers_dir
=install-headers-cpio
4657 if test x
$gas = xyes
4659 tm_file
="i386/sco5gas.h ${tm_file}"
4660 tmake_file
=i386
/t-sco5gas
4662 tmake_file
=i386
/t-sco5
4664 tmake_file
="$tmake_file i386/t-i386bare"
4665 extra_parts
="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
4667 i
[34567]86-*-sco3.2v4
*) # 80386 running SCO 3.2v4 system
4668 xm_file
="${xm_file} i386/xm-sco.h"
4669 xm_defines
="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
4670 xmake_file
=i386
/x-sco4
4671 install_headers_dir
=install-headers-cpio
4672 if test x
$stabs = xyes
4674 tm_file
=i386
/sco4dbx.h
4675 tmake_file
=i386
/t-svr3dbx
4676 extra_parts
="svr3.ifile svr3z.rfile"
4679 tmake_file
=i386
/t-crtstuff
4680 extra_parts
="crtbegin.o crtend.o"
4682 tmake_file
="$tmake_file i386/t-i386bare"
4683 # The default EAFS filesystem supports long file names.
4684 # Truncating the target makes $host != $target which
4685 # makes gcc think it is doing a cross-compile.
4686 # truncate_target=yes
4688 i
[34567]86-*-sco*) # 80386 running SCO system
4689 xm_file
=i386
/xm-sco.h
4690 xmake_file
=i386
/x-sco
4691 install_headers_dir
=install-headers-cpio
4692 if test x
$stabs = xyes
4694 tm_file
=i386
/scodbx.h
4695 tmake_file
=i386
/t-svr3dbx
4696 extra_parts
="svr3.ifile svr3z.rfile"
4699 extra_parts
="crtbegin.o crtend.o"
4700 tmake_file
=i386
/t-crtstuff
4702 tmake_file
="$tmake_file i386/t-i386bare"
4705 i
[34567]86-*-solaris2*)
4706 xm_file
="xm-alloca.h ${xm_file}"
4707 xm_defines
="USG POSIX SMALL_ARG_MAX"
4709 if test x
$gas = xyes
; then
4710 # Only needed if gas does not support -s
4711 tm_file
="i386/sol2gas.h ${tm_file}"
4713 tmake_file
="i386/t-i386bare i386/t-sol2"
4714 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4716 if test x
${enable_threads} = x
; then
4717 enable_threads
=$have_pthread_h
4718 if test x
${enable_threads} = x
; then
4719 enable_threads
=$have_thread_h
4722 if test x
${enable_threads} = xyes
; then
4723 if test x
${have_pthread_h} = xyes
; then
4726 thread_file
='solaris'
4730 i
[34567]86-*-sysv5*) # Intel x86 on System V Release 5
4731 xm_file
="xm-alloca.h ${xm_file}"
4732 xm_defines
="USG POSIX"
4733 tm_file
=i386
/sysv5.h
4734 if test x
$stabs = xyes
4736 tm_file
="${tm_file} dbx.h"
4738 tmake_file
="i386/t-i386bare i386/t-crtpic"
4740 extra_parts
="crtbegin.o crtend.o"
4741 if test x
$enable_threads = xyes
; then
4745 i
[34567]86-*-sysv4*) # Intel 80386's running system V.4
4746 xm_file
="xm-alloca.h ${xm_file}"
4747 xm_defines
="USG POSIX SMALL_ARG_MAX"
4748 tm_file
=i386
/sysv4.h
4749 if test x
$stabs = xyes
4751 tm_file
="${tm_file} dbx.h"
4753 tmake_file
="i386/t-i386bare i386/t-crtpic"
4755 extra_parts
="crtbegin.o crtend.o"
4757 i
[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
4758 xm_file
="xm-alloca.h ${xm_file}"
4759 xm_defines
="USG POSIX"
4761 tmake_file
="i386/t-i386bare i386/t-crtpic i386/t-udk"
4763 extra_parts
="crtbegin.o crtend.o"
4764 install_headers_dir
=install-headers-cpio
4766 i
[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
4768 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
4769 xm_defines
="USE_C_ALLOCA SMALL_ARG_MAX"
4770 if test x
$stabs = xyes
4772 tm_file
=i386
/osf1elfgdb.h
4774 tm_file
=i386
/osf1elf.h
4776 tmake_file
=i386
/t-osf1elf
4777 xmake_file
=i386
/x-osf1elf
4778 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4780 i
[34567]86-*-sysv*) # Intel 80386's running system V
4781 xm_defines
="USG SVR3"
4782 xmake_file
=i386
/x-sysv3
4783 if test x
$gas = xyes
4785 if test x
$stabs = xyes
4787 tm_file
=i386
/svr3dbx.h
4788 tmake_file
=i386
/t-svr3dbx
4789 extra_parts
="svr3.ifile svr3z.rfile"
4791 tm_file
=i386
/svr3gas.h
4792 extra_parts
="crtbegin.o crtend.o"
4793 tmake_file
=i386
/t-crtstuff
4796 tm_file
=i386
/sysv3.h
4797 extra_parts
="crtbegin.o crtend.o"
4798 tmake_file
=i386
/t-crtstuff
4800 tmake_file
="$tmake_file i386/t-crtpic"
4802 i386-
*-vsta) # Intel 80386's running VSTa kernel
4803 xm_file
="${xm_file} i386/xm-vsta.h"
4805 tmake_file
=i386
/t-vsta
4806 xmake_file
=i386
/x-vsta
4809 xm_file
="${xm_file} i386/xm-cygwin.h"
4810 tmake_file
=i386
/t-cygwin
4811 tm_file
=i386
/win32.h
4812 xmake_file
=i386
/x-cygwin
4814 if test x
$enable_threads = xyes
; then
4819 i
[34567]86-*-pe | i
[34567]86-*-cygwin*)
4820 xm_file
="${xm_file} i386/xm-cygwin.h"
4821 tmake_file
=i386
/t-cygwin
4822 tm_file
=i386
/cygwin.h
4823 xmake_file
=i386
/x-cygwin
4825 if test x
$enable_threads = xyes
; then
4830 i
[34567]86-*-mingw32*)
4831 tm_file
=i386
/mingw32.h
4832 xm_file
="${xm_file} i386/xm-mingw32.h"
4833 tmake_file
="i386/t-cygwin i386/t-mingw32"
4835 xmake_file
=i386
/x-cygwin
4836 if test x
$enable_threads = xyes
; then
4843 *minwg32crt
* |
*mingw32
*)
4844 tm_file
="${tm_file} i386/crtdll.h"
4850 xm_file
="${xm_file} i386/xm-uwin.h"
4851 xm_defines
="USG NO_STAB_H"
4852 tmake_file
="i386/t-cygwin i386/t-uwin"
4854 xmake_file
=i386
/x-cygwin
4855 if test x
$enable_threads = xyes
; then
4860 i
[34567]86-*-interix*)
4861 tm_file
="i386/i386-interix.h interix.h"
4862 xm_file
="i386/xm-i386-interix.h xm-interix.h"
4864 tmake_file
="i386/t-interix"
4865 extra_objs
=interix.o
4866 xmake_file
=x-interix
4867 if test x
$enable_threads = xyes
; then
4870 if test x
$stabs = xyes
; then
4871 tm_file
="${tm_file} dbxcoff.h"
4874 i
[34567]86-*-winnt3*)
4875 tm_file
=i386
/win-nt.h
4876 out_file
=i386
/i386.c
4877 xm_file
="xm-winnt.h ${xm_file}"
4878 xmake_file
=winnt
/x-winnt
4879 tmake_file
=i386
/t-winnt
4880 extra_host_objs
="winnt.o oldnames.o"
4881 extra_gcc_objs
="spawnv.o oldnames.o"
4882 if test x
$gnu_ld != xyes
4884 extra_programs
=ld.exe
4886 if test x
$enable_threads = xyes
; then
4890 i
[34567]86-dg-dgux*)
4891 xm_file
="xm-alloca.h ${xm_file}"
4892 xm_defines
="USG POSIX"
4893 out_file
=i386
/dgux.c
4895 tmake_file
=i386
/t-dgux
4896 xmake_file
=i386
/x-dgux
4897 install_headers_dir
=install-headers-cpio
4899 i860-alliant-
*) # Alliant FX/2800
4900 tm_file
="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
4901 xm_file
="${xm_file}"
4902 xmake_file
=i860
/x-fx2800
4903 tmake_file
=i860
/t-fx2800
4904 extra_parts
="crtbegin.o crtend.o"
4907 tm_file
="${tm_file} i860/bsd.h"
4908 if test x
$gas = xyes
4910 tm_file
="${tm_file} i860/bsd-gas.h"
4915 tm_file
="${tm_file} i860/mach.h"
4916 tmake_file
=t-libc-ok
4918 i860-
*-osf*) # Intel Paragon XP/S, OSF/1AD
4919 tm_file
="${tm_file} svr3.h i860/paragon.h"
4920 xm_defines
="USG SVR3"
4924 tm_file
="${tm_file} svr3.h i860/sysv3.h"
4925 xm_defines
="USG SVR3"
4926 xmake_file
=i860
/x-sysv3
4927 extra_parts
="crtbegin.o crtend.o"
4930 tm_file
="${tm_file} svr4.h i860/sysv4.h"
4931 xm_defines
="USG SVR3"
4932 xmake_file
=i860
/x-sysv4
4934 extra_parts
="crtbegin.o crtend.o"
4936 i960-wrs-vxworks5 | i960-wrs-vxworks5.0
*)
4937 tm_file
="${tm_file} i960/vx960.h"
4938 tmake_file
=i960
/t-vxworks960
4940 thread_file
='vxworks'
4942 i960-wrs-vxworks5
* | i960-wrs-vxworks
)
4943 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
4944 tmake_file
=i960
/t-vxworks960
4946 thread_file
='vxworks'
4949 tm_file
="${tm_file} i960/vx960.h"
4950 tmake_file
=i960
/t-vxworks960
4952 thread_file
='vxworks'
4955 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
4956 tmake_file
=i960
/t-960bare
4960 tmake_file
="i960/t-960bare t-rtems"
4961 tm_file
="${tm_file} dbxcoff.h i960/rtems.h"
4964 i960-
*-*) # Default i960 environment.
4969 tmake_file
="ia64/t-ia64"
4970 target_cpu_default
="0"
4971 if test x
$gas = xyes
4973 target_cpu_default
="${target_cpu_default}|MASK_GNU_AS"
4975 if test x
$gnu_ld = xyes
4977 target_cpu_default
="${target_cpu_default}|MASK_GNU_LD"
4981 tm_file
=ia64
/linux.h
4982 tmake_file
="t-linux ia64/t-ia64"
4983 target_cpu_default
="MASK_GNU_AS|MASK_GNU_LD"
4984 if test x
$enable_threads = xyes
; then
4989 extra_parts
="crtinit.o crtfini.o"
4991 m68000-convergent-sysv
*)
4993 xm_file
="m68k/xm-3b1.h ${xm_file}"
4996 extra_headers
=math-68881.h
4998 m68000-hp-bsd
*) # HP 9000/200 running BSD
4999 tm_file
=m68k
/hp2bsd.h
5000 xmake_file
=m68k
/x-hp2bsd
5002 extra_headers
=math-68881.h
5004 m68000-hp-hpux
*) # HP 9000 series 300
5005 xm_file
="xm-alloca.h ${xm_file}"
5007 if test x
$gas = xyes
5009 xmake_file
=m68k
/x-hp320g
5010 tm_file
=m68k
/hp310g.h
5012 xmake_file
=m68k
/x-hp320
5013 tm_file
=m68k
/hp310.h
5015 install_headers_dir
=install-headers-cpio
5017 extra_headers
=math-68881.h
5022 extra_headers
=math-68881.h
5025 tm_file
=m68k
/sun2o4.h
5027 extra_headers
=math-68881.h
5030 xm_file
="m68k/xm-3b1.h ${xm_file}"
5032 if test x
$gas = xyes
5039 extra_headers
=math-68881.h
5041 m68k-apple-aux
*) # Apple Macintosh running A/UX
5042 xm_defines
="USG AUX"
5043 tmake_file
=m68k
/t-aux
5044 install_headers_dir
=install-headers-cpio
5045 extra_headers
=math-68881.h
5046 extra_parts
="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
5048 if test "$gnu_ld" = yes
5050 tm_file
="${tm_file} m68k/auxgld.h"
5052 tm_file
="${tm_file} m68k/auxld.h"
5054 if test "$gas" = yes
5056 tm_file
="${tm_file} m68k/auxgas.h"
5058 tm_file
="${tm_file} m68k/auxas.h"
5060 tm_file
="${tm_file} m68k/a-ux.h"
5064 tm_file
=m68k
/apollo68.h
5065 xmake_file
=m68k
/x-apollo68
5067 extra_headers
=math-68881.h
5070 m68k-altos-sysv
*) # Altos 3068
5071 if test x
$gas = xyes
5073 tm_file
=m68k
/altos3068.h
5076 echo "The Altos is supported only with the GNU assembler" 1>&2
5079 extra_headers
=math-68881.h
5081 m68k-bull-sysv
*) # Bull DPX/2
5082 if test x
$gas = xyes
5084 if test x
$stabs = xyes
5086 tm_file
=m68k
/dpx2cdbx.h
5088 tm_file
=m68k
/dpx2g.h
5093 xm_file
="xm-alloca.h ${xm_file}"
5095 xmake_file
=m68k
/x-dpx2
5097 extra_headers
=math-68881.h
5099 m68k-atari-sysv4
*) # Atari variant of V.4.
5100 tm_file
=m68k
/atari.h
5101 xm_file
="xm-alloca.h ${xm_file}"
5102 xm_defines
="USG FULL_PROTOTYPES"
5104 extra_parts
="crtbegin.o crtend.o"
5105 extra_headers
=math-68881.h
5108 m68k-motorola-sysv
*)
5109 tm_file
=m68k
/mot3300.h
5110 xm_file
="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
5111 if test x
$gas = xyes
5113 xmake_file
=m68k
/x-mot3300-gas
5114 if test x
$gnu_ld = xyes
5116 tmake_file
=m68k
/t-mot3300-gald
5118 tmake_file
=m68k
/t-mot3300-gas
5122 xmake_file
=m68k
/x-mot3300
5123 if test x
$gnu_ld = xyes
5125 tmake_file
=m68k
/t-mot3300-gld
5127 tmake_file
=m68k
/t-mot3300
5131 gdb_needs_out_file_path
=yes
5132 extra_parts
="crt0.o mcrt0.o"
5133 extra_headers
=math-68881.h
5136 m68k-ncr-sysv
*) # NCR Tower 32 SVR3
5137 tm_file
=m68k
/tower-as.h
5138 xm_defines
="USG SVR3"
5139 xmake_file
=m68k
/x-tower
5140 extra_parts
="crtbegin.o crtend.o"
5141 extra_headers
=math-68881.h
5144 tm_file
=m68k
/plexus.h
5145 xm_file
="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
5148 extra_headers
=math-68881.h
5152 xm_file
="xm-alloca.h ${xm_file}"
5154 extra_headers
=math-68881.h
5157 xm_file
="xm-alloca.h m68k/xm-crds.h ${xm_file}"
5158 xm_defines
="USG unos"
5159 xmake_file
=m68k
/x-crds
5162 extra_headers
=math-68881.h
5164 m68k-cbm-sysv4
*) # Commodore variant of V.4.
5166 xm_file
="xm-alloca.h ${xm_file}"
5167 xm_defines
="USG FULL_PROTOTYPES"
5168 xmake_file
=m68k
/x-amix
5170 extra_parts
="crtbegin.o crtend.o"
5171 extra_headers
=math-68881.h
5175 tm_file
=m68k
/ccur-GAS.h
5176 xmake_file
=m68k
/x-ccur
5177 extra_headers
=math-68881.h
5181 m68k-hp-bsd4.4
*) # HP 9000/3xx running 4.4bsd
5182 tm_file
=m68k
/hp3bsd44.h
5183 xmake_file
=m68k
/x-hp3bsd44
5185 extra_headers
=math-68881.h
5188 m68k-hp-bsd
*) # HP 9000/3xx running Berkeley Unix
5189 tm_file
=m68k
/hp3bsd.h
5191 extra_headers
=math-68881.h
5195 if test x
$with_fp = xno
5197 tm_file
=m68k
/isi-nfp.h
5203 extra_headers
=math-68881.h
5205 m68k-hp-hpux7
*) # HP 9000 series 300 running HPUX version 7.
5206 xm_file
="xm-alloca.h ${xm_file}"
5208 if test x
$gas = xyes
5210 xmake_file
=m68k
/x-hp320g
5211 tm_file
=m68k
/hp320g.h
5213 xmake_file
=m68k
/x-hp320
5214 tm_file
=m68k
/hpux7.h
5216 install_headers_dir
=install-headers-cpio
5218 extra_headers
=math-68881.h
5221 m68k-hp-hpux
*) # HP 9000 series 300
5222 xm_file
="xm-alloca.h ${xm_file}"
5224 if test x
$gas = xyes
5226 xmake_file
=m68k
/x-hp320g
5227 tm_file
=m68k
/hp320g.h
5229 xmake_file
=m68k
/x-hp320
5230 tm_file
=m68k
/hp320.h
5232 install_headers_dir
=install-headers-cpio
5234 extra_headers
=math-68881.h
5238 tm_file
=m68k
/sun3mach.h
5240 extra_headers
=math-68881.h
5244 if test x
$gas = xyes
5246 tm_file
=m68k
/news3gas.h
5248 tm_file
=m68k
/news3.h
5251 extra_headers
=math-68881.h
5254 m68k-sony-bsd
* | m68k-sony-newsos
*)
5255 if test x
$gas = xyes
5257 tm_file
=m68k
/newsgas.h
5262 extra_headers
=math-68881.h
5265 m68k-next-nextstep2
*)
5266 tm_file
=m68k
/next21.h
5267 xm_file
="m68k/xm-next.h ${xm_file}"
5268 tmake_file
=m68k
/t-next
5269 xmake_file
=m68k
/x-next
5270 extra_objs
=nextstep.o
5271 extra_headers
=math-68881.h
5275 m68k-next-nextstep
[34]*)
5277 xm_file
="m68k/xm-next.h ${xm_file}"
5278 tmake_file
=m68k
/t-next
5279 xmake_file
=m68k
/x-next
5280 extra_objs
=nextstep.o
5281 extra_parts
="crtbegin.o crtend.o"
5282 extra_headers
=math-68881.h
5284 if test x
$enable_threads = xyes
; then
5289 if test x
$with_fp = xno
5291 tm_file
=m68k
/sun3n3.h
5293 tm_file
=m68k
/sun3o3.h
5297 extra_headers
=math-68881.h
5299 m68k-sun-sunos
*) # For SunOS 4 (the default).
5300 if test x
$with_fp = xno
5302 tm_file
=m68k
/sun3n.h
5308 extra_headers
=math-68881.h
5311 tm_file
=m68k
/vxm68k.h
5312 tmake_file
=m68k
/t-vxworks68
5313 extra_headers
=math-68881.h
5314 thread_file
='vxworks'
5318 tmake_file
=m68k
/t-m68kbare
5319 tm_file
="m68k/m68k-aout.h libgloss.h"
5320 extra_headers
=math-68881.h
5324 tmake_file
=m68k
/t-m68kbare
5325 tm_file
="m68k/m68k-coff.h dbx.h libgloss.h"
5326 extra_headers
=math-68881.h
5329 m68020-
*-elf* | m68k-
*-elf*)
5330 tm_file
="m68k/m68020-elf.h"
5331 xm_file
=m68k
/xm-m68kv.h
5332 tmake_file
=m68k
/t-m68kelf
5333 header_files
=math-68881.h
5336 if test x
$gas = xyes
5340 tm_file
=m68k
/lynx-ng.h
5342 xm_file
=m68k
/xm-lynx.h
5344 tmake_file
=m68k
/t-lynx
5345 extra_headers
=math-68881.h
5349 tm_file
=m68k
/netbsd.h
5356 # we need collect2 until our bug is fixed...
5359 m68k-
*-sysv3*) # Motorola m68k's running system V.3
5360 xm_file
="xm-alloca.h ${xm_file}"
5362 xmake_file
=m68k
/x-m68kv
5363 extra_parts
="crtbegin.o crtend.o"
5364 extra_headers
=math-68881.h
5367 m68k-
*-sysv4*) # Motorola m68k's running system V.4
5368 tm_file
=m68k
/m68kv4.h
5369 xm_file
="xm-alloca.h ${xm_file}"
5372 extra_parts
="crtbegin.o crtend.o"
5373 extra_headers
=math-68881.h
5376 m68k-
*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
5379 tm_file
=m68k
/linux-aout.h
5380 tmake_file
="t-linux-aout m68k/t-linux-aout"
5381 extra_headers
=math-68881.h
5385 m68k-
*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
5386 # with ELF format using the
5387 # GNU/Linux C library 5
5389 tm_file
=m68k
/linux.h
5390 tmake_file
="t-linux t-linux-gnulibc1 m68k/t-linux"
5391 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5392 extra_headers
=math-68881.h
5396 m68k-
*-linux-gnu*) # Motorola m68k's running GNU/Linux
5397 # with ELF format using glibc 2
5398 # aka the GNU/Linux C library 6.
5400 tm_file
=m68k
/linux.h
5401 tmake_file
="t-linux m68k/t-linux"
5402 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5403 extra_headers
=math-68881.h
5406 if test x
$enable_threads = xyes
; then
5411 tmake_file
=m68k
/t-m68kbare
5412 tm_file
=m68k
/m68k-psos.h
5413 extra_headers
=math-68881.h
5417 tmake_file
="m68k/t-m68kbare t-rtems"
5418 tm_file
=m68k
/rtems.h
5419 extra_headers
=math-68881.h
5422 m68k-
*-rtemself*|m68k-
*-rtems*)
5423 tmake_file
="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
5424 tm_file
=m68k
/rtemself.h
5425 extra_headers
=math-68881.h
5431 tm_file
=m88k
/dguxbcs.h
5432 tmake_file
=m88k
/t-dguxbcs
5436 tmake_file
=m88k
/t-dgux
5439 extra_parts
="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
5440 xmake_file
=m88k
/x-dgux
5441 if test x
$gas = xyes
5443 tmake_file
=m88k
/t-dgux-gas
5446 m88k-dolphin-sysv3
*)
5447 tm_file
=m88k
/dolph.h
5448 extra_parts
="crtbegin.o crtend.o"
5449 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5450 xmake_file
=m88k
/x-dolph
5451 if test x
$gas = xyes
5453 tmake_file
=m88k
/t-m88k-gas
5456 m88k-tektronix-sysv3
)
5457 tm_file
=m88k
/tekXD88.h
5458 extra_parts
="crtbegin.o crtend.o"
5459 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5460 xmake_file
=m88k
/x-tekXD88
5461 if test x
$gas = xyes
5463 tmake_file
=m88k
/t-m88k-gas
5467 tm_file
=m88k
/m88k-aout.h
5470 tm_file
=m88k
/m88k-coff.h
5471 tmake_file
=m88k
/t-bug
5475 extra_parts
="crtbegin.o crtend.o"
5476 if test x
$gas = xyes
5478 tmake_file
=m88k
/t-luna-gas
5480 tmake_file
=m88k
/t-luna
5484 tmake_file
="${tmake_file} m88k/t-luna-gas"
5485 tm_file
="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
5486 xm_file
="xm-openbsd.h m88k/xm-m88k.h ${xm_file}"
5489 tm_file
=m88k
/sysv3.h
5490 extra_parts
="crtbegin.o crtend.o"
5491 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5492 xmake_file
=m88k
/x-sysv3
5493 if test x
$gas = xyes
5495 tmake_file
=m88k
/t-m88k-gas
5499 tm_file
=m88k
/sysv4.h
5500 extra_parts
="crtbegin.o crtend.o"
5501 xmake_file
=m88k
/x-sysv4
5502 tmake_file
=m88k
/t-sysv4
5505 tm_file
=mcore
/mcore-elf.h
5506 tmake_file
=mcore
/t-mcore
5509 tm_file
=mcore
/mcore-pe.h
5510 tmake_file
=mcore
/t-mcore-pe
5512 mips-sgi-irix6
*) # SGI System V.4., IRIX 6
5513 if test "x$gnu_ld" = xyes
5515 tm_file
="mips/iris6.h mips/iris6gld.h"
5517 tm_file
=mips
/iris6.h
5519 tmake_file
=mips
/t-iris6
5520 xm_file
=mips
/xm-iris6.h
5521 xmake_file
=mips
/x-iris6
5522 # if test x$enable_threads = xyes; then
5523 # thread_file='irix'
5527 tm_file
="mips/elf.h mips/vxworks.h"
5528 tmake_file
=mips
/t-ecoff
5531 extra_parts
="crtbegin.o crtend.o"
5532 thread_file
='vxworks'
5534 mips-sgi-irix5cross64
) # Irix5 host, Irix 6 target, cross64
5535 tm_file
="mips/iris6.h mips/cross64.h"
5537 xm_file
="mips/xm-iris5.h"
5538 xmake_file
=mips
/x-iris
5539 tmake_file
=mips
/t-cross64
5540 # See comment in mips/iris[56].h files.
5542 # if test x$enable_threads = xyes; then
5543 # thread_file='irix'
5547 if test x
$gas = xyes
5549 if test x
$stabs = xyes
5551 tm_file
=mips
/iris5gdb.h
5553 tm_file
="mips/sni-svr4.h mips/sni-gas.h"
5556 tm_file
=mips
/sni-svr4.h
5559 xmake_file
=mips
/x-sni-svr4
5560 tmake_file
=mips
/t-mips-gas
5561 if test x
$gnu_ld != xyes
5566 mips-sgi-irix5
*) # SGI System V.4., IRIX 5
5567 if test x
$gas = xyes
5569 tm_file
="mips/iris5.h mips/iris5gas.h"
5570 if test x
$stabs = xyes
5572 tm_file
="${tm_file} dbx.h"
5575 tm_file
=mips
/iris5.h
5578 xm_file
="mips/xm-iris5.h"
5579 xmake_file
=mips
/x-iris
5580 # mips-tfile doesn't work yet
5581 tmake_file
=mips
/t-mips-gas
5582 # See comment in mips/iris5.h file.
5584 # if test x$enable_threads = xyes; then
5585 # thread_file='irix'
5588 mips-sgi-irix4loser
*) # Mostly like a MIPS.
5589 tm_file
="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
5590 if test x
$stabs = xyes
; then
5591 tm_file
="${tm_file} dbx.h"
5594 xmake_file
=mips
/x-iris
5595 if test x
$gas = xyes
5597 tmake_file
=mips
/t-mips-gas
5599 extra_passes
="mips-tfile mips-tdump"
5601 if test x
$gnu_ld != xyes
5605 # if test x$enable_threads = xyes; then
5606 # thread_file='irix'
5609 mips-sgi-irix4
*) # Mostly like a MIPS.
5610 tm_file
="mips/iris3.h ${tm_file} mips/iris4.h"
5611 if test x
$stabs = xyes
; then
5612 tm_file
="${tm_file} dbx.h"
5615 xmake_file
=mips
/x-iris
5616 if test x
$gas = xyes
5618 tmake_file
=mips
/t-mips-gas
5620 extra_passes
="mips-tfile mips-tdump"
5622 if test x
$gnu_ld != xyes
5626 # if test x$enable_threads = xyes; then
5627 # thread_file='irix'
5630 mips-sgi-
*) # Mostly like a MIPS.
5631 tm_file
="mips/iris3.h ${tm_file}"
5632 if test x
$stabs = xyes
; then
5633 tm_file
="${tm_file} dbx.h"
5636 xmake_file
=mips
/x-iris3
5637 if test x
$gas = xyes
5639 tmake_file
=mips
/t-mips-gas
5641 extra_passes
="mips-tfile mips-tdump"
5643 if test x
$gnu_ld != xyes
5648 mips-dec-osfrose
*) # Decstation running OSF/1 reference port with OSF/rose.
5649 tm_file
="mips/osfrose.h ${tm_file}"
5650 xmake_file
=mips
/x-osfrose
5651 tmake_file
=mips
/t-osfrose
5652 extra_objs
=halfpic.o
5655 mips-dec-osf
*) # Decstation running OSF/1 as shipped by DIGITAL
5656 tm_file
=mips
/dec-osf1.h
5657 if test x
$stabs = xyes
; then
5658 tm_file
="${tm_file} dbx.h"
5660 xmake_file
=mips
/x-dec-osf1
5661 if test x
$gas = xyes
5663 tmake_file
=mips
/t-mips-gas
5665 tmake_file
=mips
/t-ultrix
5666 extra_passes
="mips-tfile mips-tdump"
5668 if test x
$gnu_ld != xyes
5673 mips-dec-bsd
*) # Decstation running 4.4 BSD
5674 tm_file
=mips
/dec-bsd.h
5675 if test x
$gas = xyes
5677 tmake_file
=mips
/t-mips-gas
5679 tmake_file
=mips
/t-ultrix
5680 extra_passes
="mips-tfile mips-tdump"
5682 if test x
$gnu_ld != xyes
5687 mipsel-
*-netbsd* | mips-dec-netbsd
*) # Decstation running NetBSD
5688 tm_file
=mips
/netbsd.h
5689 # On NetBSD, the headers are already okay, except for math.h.
5692 mips
*-*-linux*) # Linux MIPS, either endian.
5695 mipsel-
*) tm_file
="mips/elfl.h mips/linux.h" ;;
5696 *) tm_file
="mips/elf.h mips/linux.h" ;;
5698 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5701 if test x
$enable_threads = xyes
; then
5705 mips
*el-
*-openbsd*) # mips little endian
5706 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5708 mips
*-*-openbsd*) # mips big endian
5709 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5710 tm_file
="mips/openbsd-be.h ${tm_file}"
5712 mips-sony-bsd
* | mips-sony-newsos
*) # Sony NEWS 3600 or risc/news.
5713 tm_file
="mips/news4.h ${tm_file}"
5714 if test x
$stabs = xyes
; then
5715 tm_file
="${tm_file} dbx.h"
5717 if test x
$gas = xyes
5719 tmake_file
=mips
/t-mips-gas
5721 extra_passes
="mips-tfile mips-tdump"
5723 if test x
$gnu_ld != xyes
5727 xmake_file
=mips
/x-sony
5729 mips-sony-sysv
*) # Sony NEWS 3800 with NEWSOS5.0.
5730 # That is based on svr4.
5731 # t-svr4 is not right because this system doesn't use ELF.
5732 tm_file
="mips/news5.h ${tm_file}"
5733 if test x
$stabs = xyes
; then
5734 tm_file
="${tm_file} dbx.h"
5737 if test x
$gas = xyes
5739 tmake_file
=mips
/t-mips-gas
5741 extra_passes
="mips-tfile mips-tdump"
5743 if test x
$gnu_ld != xyes
5748 mips-tandem-sysv4
*) # Tandem S2 running NonStop UX
5749 tm_file
="mips/svr4-5.h mips/svr4-t.h"
5750 if test x
$stabs = xyes
; then
5751 tm_file
="${tm_file} dbx.h"
5754 xmake_file
=mips
/x-sysv
5755 if test x
$gas = xyes
5757 tmake_file
=mips
/t-mips-gas
5758 extra_parts
="crtbegin.o crtend.o"
5760 tmake_file
=mips
/t-mips
5761 extra_passes
="mips-tfile mips-tdump"
5763 if test x
$gnu_ld != xyes
5768 mips-
*-ultrix* | mips-dec-mach3
) # Decstation.
5769 tm_file
="mips/ultrix.h ${tm_file}"
5770 if test x
$stabs = xyes
; then
5771 tm_file
="${tm_file} dbx.h"
5773 xmake_file
=mips
/x-ultrix
5774 if test x
$gas = xyes
5776 tmake_file
=mips
/t-mips-gas
5778 tmake_file
=mips
/t-ultrix
5779 extra_passes
="mips-tfile mips-tdump"
5781 if test x
$gnu_ld != xyes
5786 mips-
*-riscos[56789]bsd
*)
5787 tm_file
=mips
/bsd-5.h
# MIPS BSD 4.3, RISC-OS 5.0
5788 if test x
$stabs = xyes
; then
5789 tm_file
="${tm_file} dbx.h"
5791 if test x
$gas = xyes
5793 tmake_file
=mips
/t-bsd-gas
5795 tmake_file
=mips
/t-bsd
5796 extra_passes
="mips-tfile mips-tdump"
5798 if test x
$gnu_ld != xyes
5803 mips-
*-bsd* | mips-
*-riscosbsd* | mips-
*-riscos[1234]bsd
*)
5804 tm_file
="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
5805 if test x
$stabs = xyes
; then
5806 tm_file
="${tm_file} dbx.h"
5808 if test x
$gas = xyes
5810 tmake_file
=mips
/t-bsd-gas
5812 tmake_file
=mips
/t-bsd
5813 extra_passes
="mips-tfile mips-tdump"
5815 if test x
$gnu_ld != xyes
5820 mips-
*-riscos[56789]sysv4
*)
5821 tm_file
=mips
/svr4-5.h
# MIPS System V.4., RISC-OS 5.0
5822 if test x
$stabs = xyes
; then
5823 tm_file
="${tm_file} dbx.h"
5825 xmake_file
=mips
/x-sysv
5826 if test x
$gas = xyes
5828 tmake_file
=mips
/t-svr4-gas
5830 tmake_file
=mips
/t-svr4
5831 extra_passes
="mips-tfile mips-tdump"
5833 if test x
$gnu_ld != xyes
5838 mips-
*-sysv4* | mips-
*-riscos[1234]sysv4
* | mips-
*-riscossysv4*)
5839 tm_file
="mips/svr4-4.h ${tm_file}"
5840 if test x
$stabs = xyes
; then
5841 tm_file
="${tm_file} dbx.h"
5844 xmake_file
=mips
/x-sysv
5845 if test x
$gas = xyes
5847 tmake_file
=mips
/t-svr4-gas
5849 tmake_file
=mips
/t-svr4
5850 extra_passes
="mips-tfile mips-tdump"
5852 if test x
$gnu_ld != xyes
5857 mips-
*-riscos[56789]sysv
*)
5858 tm_file
=mips
/svr3-5.h
# MIPS System V.3, RISC-OS 5.0
5859 if test x
$stabs = xyes
; then
5860 tm_file
="${tm_file} dbx.h"
5863 xmake_file
=mips
/x-sysv
5864 if test x
$gas = xyes
5866 tmake_file
=mips
/t-svr3-gas
5868 tmake_file
=mips
/t-svr3
5869 extra_passes
="mips-tfile mips-tdump"
5871 if test x
$gnu_ld != xyes
5876 mips-
*-sysv* | mips-
*-riscos*sysv
*)
5877 tm_file
="mips/svr3-4.h ${tm_file}"
5878 if test x
$stabs = xyes
; then
5879 tm_file
="${tm_file} dbx.h"
5882 xmake_file
=mips
/x-sysv
5883 if test x
$gas = xyes
5885 tmake_file
=mips
/t-svr3-gas
5887 tmake_file
=mips
/t-svr3
5888 extra_passes
="mips-tfile mips-tdump"
5890 if test x
$gnu_ld != xyes
5895 mips-
*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
5896 tm_file
=mips
/mips-5.h
5897 if test x
$stabs = xyes
; then
5898 tm_file
="${tm_file} dbx.h"
5900 if test x
$gas = xyes
5902 tmake_file
=mips
/t-mips-gas
5904 extra_passes
="mips-tfile mips-tdump"
5906 if test x
$gnu_ld != xyes
5914 tm_file
=mips
/ecoffl.h
5915 if test x
$stabs = xyes
; then
5916 tm_file
="${tm_file} dbx.h"
5918 tmake_file
=mips
/t-ecoff
5921 tm_file
="gofast.h mips/ecoff.h"
5922 if test x
$stabs = xyes
; then
5923 tm_file
="${tm_file} dbx.h"
5925 tmake_file
=mips
/t-ecoff
5928 tm_file
="mips/elfl.h"
5929 tmake_file
=mips
/t-elf
5932 tm_file
="mips/elf.h"
5933 tmake_file
=mips
/t-elf
5936 tm_file
="mips/elfl64.h"
5937 tmake_file
=mips
/t-elf
5939 mips64orionel-
*-elf*)
5940 tm_file
="mips/elforion.h mips/elfl64.h"
5941 tmake_file
=mips
/t-elf
5944 tm_file
="mips/elf64.h"
5945 tmake_file
=mips
/t-elf
5948 tm_file
="mips/elforion.h mips/elf64.h"
5949 tmake_file
=mips
/t-elf
5951 mips64orion-
*-rtems*)
5952 tm_file
="mips/elforion.h mips/elf64.h mips/rtems64.h"
5953 tmake_file
="mips/t-elf t-rtems"
5956 tm_file
="mips/r3900.h mips/elfl.h mips/abi64.h"
5957 tmake_file
=mips
/t-r3900
5960 tm_file
="mips/r3900.h mips/elf.h mips/abi64.h"
5961 tmake_file
=mips
/t-r3900
5963 mips-
*-*) # Default MIPS RISC-OS 4.0.
5964 if test x
$stabs = xyes
; then
5965 tm_file
="${tm_file} dbx.h"
5967 if test x
$gas = xyes
5969 tmake_file
=mips
/t-mips-gas
5971 extra_passes
="mips-tfile mips-tdump"
5973 if test x
$gnu_ld != xyes
5981 tm_file
="mn10200/mn10200.h"
5982 if test x
$stabs = xyes
5984 tm_file
="${tm_file} dbx.h"
5990 tm_file
="mn10300/mn10300.h"
5991 if test x
$stabs = xyes
5993 tm_file
="${tm_file} dbx.h"
5998 tm_file
=ns32k
/encore.h
6002 tm_file
=ns32k
/sequent.h
6006 tm_file
=ns32k
/tek6100.h
6010 tm_file
=ns32k
/tek6200.h
6013 # This has not been updated to GCC 2.
6016 # xmake_file=ns32k/x-genix
6017 # tm_file=ns32k/genix.h
6021 tm_file
=ns32k
/merlin.h
6025 tm_file
=ns32k
/pc532-mach.h
6029 tm_file
=ns32k
/pc532-min.h
6030 xm_file
="ns32k/xm-pc532-min.h ${xm-file}"
6035 tm_file
=ns32k
/netbsd.h
6036 xm_file
="ns32k/xm-netbsd.h ${xm_file}"
6037 # On NetBSD, the headers are already okay, except for math.h.
6042 tm_file
="${tm_file} pdp11/2bsd.h"
6051 # This has not been updated to GCC 2.
6054 # xmake_file=pyr/x-pyr
6059 tm_file
="svr4.h pj/linux.h ${tm_file}"
6064 tm_file
="svr4.h pj/pjl.h ${tm_file}"
6071 xmake_file
=romp
/x-mach
6078 tmake_file
="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
6082 tm_file
=rs6000
/beos.h
6083 xm_file
=rs6000
/xm-beos.h
6084 tmake_file
=rs6000
/t-beos
6085 xmake_file
=rs6000
/x-beos
6088 tm_file
=rs6000
/sysv4.h
6089 xm_file
="rs6000/xm-sysv4.h"
6090 xm_defines
="USG POSIX"
6091 extra_headers
=ppc-asm.h
6092 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
6093 xmake_file
=rs6000
/x-sysv4
6096 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
6097 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6098 extra_headers
=ppc-asm.h
6101 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
6102 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6103 extra_headers
=ppc-asm.h
6106 tm_file
="rs6000/sysv4.h"
6107 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6108 extra_headers
=ppc-asm.h
6111 tm_file
="rs6000/sysv4.h rs6000/eabi.h"
6112 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6113 extra_headers
=ppc-asm.h
6116 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
6117 tmake_file
="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
6118 extra_headers
=ppc-asm.h
6120 powerpc-
*-linux-gnulibc1)
6121 tm_file
="rs6000/sysv4.h rs6000/linux.h"
6122 xm_file
=rs6000
/xm-sysv4.h
6123 out_file
=rs6000
/rs6000.c
6124 tmake_file
="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
6126 extra_headers
=ppc-asm.h
6127 if test x
$enable_threads = xyes
; then
6131 powerpc-
*-linux-gnu*)
6132 tm_file
="rs6000/sysv4.h rs6000/linux.h"
6133 xm_file
="rs6000/xm-sysv4.h"
6134 xm_defines
="USG ${xm_defines}"
6135 out_file
=rs6000
/rs6000.c
6136 tmake_file
="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
6138 extra_headers
=ppc-asm.h
6139 if test x
$enable_threads = xyes
; then
6143 powerpc-wrs-vxworks
*)
6145 xm_file
="rs6000/xm-sysv4.h"
6146 xm_defines
="USG POSIX"
6147 tm_file
="rs6000/sysv4.h rs6000/vxppc.h"
6148 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6149 extra_headers
=ppc-asm.h
6150 thread_file
='vxworks'
6152 powerpcle-wrs-vxworks
*)
6154 xm_file
="rs6000/xm-sysv4.h"
6155 xm_defines
="USG POSIX"
6156 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
6157 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6158 extra_headers
=ppc-asm.h
6159 thread_file
='vxworks'
6162 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h"
6163 xm_file
="rs6000/xm-sysv4.h"
6164 xm_defines
="USG POSIX"
6165 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
6166 xmake_file
=rs6000
/x-sysv4
6167 extra_headers
=ppc-asm.h
6170 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h"
6171 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6172 extra_headers
=ppc-asm.h
6174 powerpcle-
*-eabisim*)
6175 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
6176 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6177 extra_headers
=ppc-asm.h
6180 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
6181 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6182 extra_headers
=ppc-asm.h
6184 powerpcle-
*-solaris2*)
6185 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
6186 xm_file
="rs6000/xm-sysv4.h"
6187 xm_defines
="USG POSIX"
6188 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
6189 xmake_file
=rs6000
/x-sysv4
6190 extra_headers
=ppc-asm.h
6192 rs6000-ibm-aix3.
[01]*)
6193 tm_file
=rs6000
/aix31.h
6194 xmake_file
=rs6000
/x-aix31
6198 rs6000-ibm-aix3.2.
[456789]* | powerpc-ibm-aix3.2.
[456789]*)
6199 tm_file
=rs6000
/aix3newas.h
6200 if test x
$host != x
$target
6202 tmake_file
=rs6000
/t-xnewas
6204 tmake_file
=rs6000
/t-newas
6209 rs6000-ibm-aix4.
[12]* | powerpc-ibm-aix4.
[12]*)
6210 tm_file
=rs6000
/aix41.h
6211 if test x
$host != x
$target
6213 tmake_file
=rs6000
/t-xnewas
6215 tmake_file
=rs6000
/t-newas
6217 if test "$gnu_ld" = yes
6219 xmake_file
=rs6000
/x-aix41-gld
6221 tmake_file
="rs6000/t-newas rs6000/t-aix41"
6223 xmake_file
=rs6000
/x-aix41
6227 rs6000-ibm-aix4.
[3456789]* | powerpc-ibm-aix4.
[3456789]*)
6228 tm_file
=rs6000
/aix43.h
6229 tmake_file
=rs6000
/t-aix43
6230 xmake_file
=rs6000
/x-aix41
6234 rs6000-ibm-aix
[56789].
* | powerpc-ibm-aix
[56789].
*)
6235 tm_file
=rs6000
/aix43.h
6236 tmake_file
=rs6000
/t-aix43
6237 xmake_file
=rs6000
/x-aix41
6250 tm_file
=rs6000
/mach.h
6251 xm_file
="${xm_file} rs6000/xm-mach.h"
6252 xmake_file
=rs6000
/x-mach
6256 tm_file
=rs6000
/lynx.h
6257 xm_file
=rs6000
/xm-lynx.h
6258 tmake_file
=rs6000
/t-rs6000
6259 xmake_file
=rs6000
/x-lynx
6267 tmake_file
="sh/t-sh t-rtems"
6268 tm_file
=sh
/rtemself.h
6272 tmake_file
="sh/t-sh t-rtems"
6281 xm_file
="xm-alloca.h ${xm_file}"
6284 sparc-wrs-vxworks
* | sparclite-wrs-vxworks
*)
6285 tm_file
=sparc
/vxsparc.h
6286 tmake_file
=sparc
/t-vxsparc
6288 thread_file
='vxworks'
6291 tmake_file
=sparc
/t-sparcbare
6292 tm_file
="sparc/aout.h libgloss.h"
6295 tm_file
=sparc
/netbsd.h
6300 # we need collect2 until our bug is fixed...
6308 tmake_file
=sparc
/t-elf
6309 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
6313 sparc-
*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
6314 xm_file
="${xm_file} sparc/xm-linux.h"
6315 tm_file
=sparc
/linux-aout.h
6319 sparc-
*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
6320 xm_file
="${xm_file} sparc/xm-linux.h"
6322 tm_file
=sparc
/linux.h
6323 tmake_file
="t-linux t-linux-gnulibc1"
6324 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6328 sparc-
*-linux-gnu*) # Sparc's running GNU/Linux, libc6
6329 xm_file
="${xm_file} sparc/xm-linux.h"
6331 tm_file
=sparc
/linux.h
6332 tmake_file
="t-linux"
6333 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6335 if test x
$enable_threads = xyes
; then
6341 if test x
$gas = xyes
6343 tm_file
=sparc
/lynx.h
6345 tm_file
=sparc
/lynx-ng.h
6347 xm_file
=sparc
/xm-lynx.h
6348 tmake_file
=sparc
/t-sunos41
6352 tmake_file
="sparc/t-sparcbare t-rtems"
6353 tm_file
=sparc
/rtems.h
6355 sparc-
*-rtems*|sparc-
*-rtemself*)
6356 tm_file
="sparc/rtemself.h"
6357 tmake_file
="sparc/t-elf t-rtems"
6358 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
6362 sparcv9-
*-solaris2*)
6363 if test x
$gnu_ld = xyes
6365 tm_file
=sparc
/sol2-64.h
6367 tm_file
=sparc
/sol2-sld-64.h
6369 xm_file
="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
6370 xm_defines
="USG POSIX"
6371 tmake_file
="sparc/t-sol2 sparc/t-sol2-64"
6372 xmake_file
=sparc
/x-sysv4
6373 extra_parts
="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
6375 if test x
${enable_threads} = x
; then
6376 enable_threads
=$have_pthread_h
6377 if test x
${enable_threads} = x
; then
6378 enable_threads
=$have_thread_h
6381 if test x
${enable_threads} = xyes
; then
6382 if test x
${have_pthread_h} = xyes
; then
6385 thread_file
='solaris'
6389 sparc-hal-solaris2
*)
6390 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6391 xm_defines
="USG POSIX"
6392 tm_file
="sparc/sol2.h sparc/hal.h"
6393 tmake_file
="sparc/t-halos sparc/t-sol2"
6394 xmake_file
=sparc
/x-sysv4
6395 extra_parts
="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
6404 thread_file
='solaris'
6407 if test x
$gnu_ld = xyes
6409 tm_file
=sparc
/sol2.h
6411 tm_file
=sparc
/sol2-sld.h
6413 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6414 xm_defines
="USG POSIX"
6415 tmake_file
=sparc
/t-sol2
6416 xmake_file
=sparc
/x-sysv4
6417 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
6419 *-*-solaris2.
[0-6] |
*-*-solaris2.
[0-6].
*) ;;
6421 if test x
$gnu_ld = xyes
6423 tm_file
=sparc
/sol2-64.h
6425 tm_file
=sparc
/sol2-sld-64.h
6427 tmake_file
="$tmake_file sparc/t-sol2-64"
6438 if test x
${enable_threads} = x
; then
6439 enable_threads
=$have_pthread_h
6440 if test x
${enable_threads} = x
; then
6441 enable_threads
=$have_thread_h
6444 if test x
${enable_threads} = xyes
; then
6445 if test x
${have_pthread_h} = xyes
; then
6448 thread_file
='solaris'
6453 tm_file
=sparc
/sunos4.h
6454 tmake_file
=sparc
/t-sunos40
6458 tm_file
=sparc
/sunos4.h
6459 tmake_file
=sparc
/t-sunos41
6461 if test x
$gas = xyes
; then
6462 tm_file
="${tm_file} sparc/sun4gas.h"
6466 tm_file
=sparc
/sun4o3.h
6470 tm_file
=sparc
/sysv4.h
6471 xm_file
="sparc/xm-sysv4.h"
6472 xm_defines
="USG POSIX"
6474 xmake_file
=sparc
/x-sysv4
6475 extra_parts
="crtbegin.o crtend.o"
6478 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6479 xm_defines
="USG POSIX"
6480 tm_file
=sparc
/vxsim.h
6481 tmake_file
=sparc
/t-vxsparc
6482 xmake_file
=sparc
/x-sysv4
6485 tm_file
="sparc/splet.h libgloss.h"
6486 tmake_file
=sparc
/t-splet
6489 tm_file
="sparc/litecoff.h libgloss.h"
6490 tmake_file
=sparc
/t-sparclite
6493 tm_file
="sparc/lite.h aoutos.h libgloss.h"
6494 tmake_file
=sparc
/t-sparclite
6497 tm_file
="sparc/liteelf.h"
6498 tmake_file
=sparc
/t-sparclite
6499 extra_parts
="crtbegin.o crtend.o"
6502 tm_file
="sparc/sp86x-aout.h aoutos.h libgloss.h"
6503 tmake_file
=sparc
/t-sp86x
6506 tm_file
="sparc/sp86x-elf.h"
6507 tmake_file
=sparc
/t-sp86x
6508 extra_parts
="crtbegin.o crtend.o"
6511 tmake_file
=sparc
/t-sp64
6512 tm_file
=sparc
/sp64-aout.h
6515 tmake_file
=sparc
/t-sp64
6516 tm_file
=sparc
/sp64-elf.h
6517 extra_parts
="crtbegin.o crtend.o"
6519 sparc64-
*-linux*) # 64-bit Sparc's running GNU/Linux
6520 tmake_file
="t-linux sparc/t-linux64"
6521 xm_file
="sparc/xm-sp64.h sparc/xm-linux.h"
6522 tm_file
=sparc
/linux64.h
6524 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6526 if test x
$enable_threads = xyes
; then
6531 # This hasn't been upgraded to GCC 2.
6532 # tahoe-harris-*) # Harris tahoe, using COFF.
6533 # tm_file=tahoe/harris.h
6535 # tahoe-*-bsd*) # tahoe running BSD
6539 { echo "configure: error:
6540 *** The Thumb targets have been depreciated. The equivalent
6541 *** ARM based toolchain can now generated Thumb instructions
6542 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
6544 # This hasn't been upgraded to GCC 2.
6551 tm_file
="v850/rtems.h"
6552 xm_file
="v850/xm-v850.h"
6553 tmake_file
="v850/t-v850 t-rtems"
6554 if test x
$stabs = xyes
6556 tm_file
="${tm_file} dbx.h"
6561 target_cpu_default
="TARGET_CPU_generic"
6563 tm_file
="v850/v850.h"
6564 xm_file
="v850/xm-v850.h"
6565 tmake_file
=v850
/t-v850
6566 if test x
$stabs = xyes
6568 tm_file
="${tm_file} dbx.h"
6572 vax-
*-bsd*) # vaxen running BSD
6576 vax-
*-sysv*) # vaxen running system V
6577 tm_file
="${tm_file} vax/vaxv.h"
6582 tm_file
="${tm_file} netbsd.h vax/netbsd.h"
6588 tmake_file
="${tmake_file} vax/t-openbsd"
6589 tm_file
="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
6590 xm_file
="xm-openbsd.h vax/xm-vax.h"
6594 vax-
*-ultrix*) # vaxen running ultrix
6595 tm_file
="${tm_file} vax/ultrix.h"
6599 vax-
*-vms*) # vaxen running VMS
6600 xm_file
=vax
/xm-vms.h
6604 vax-
*-*) # vax default entry
6608 xm_file
="${xm_file} xm-svr3"
6612 echo "Configuration $machine not supported" 1>&2
6619 ;; # Existing GNU/Linux systems do not use the GNU setup.
6621 # On the GNU system, the setup is just about the same on
6622 # each different CPU. The specific machines that GNU
6623 # supports are matched above and just set $cpu_type.
6624 xm_file
="xm-gnu.h ${xm_file}"
6625 tm_file
=${cpu_type}/gnu.h
6626 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
6627 # GNU always uses ELF.
6629 # GNU tools are the only tools.
6632 xmake_file
=x-linux
# These details are the same as Linux.
6633 tmake_file
=t-gnu
# These are not.
6636 xmake_try_sysv
=x-sysv
6637 install_headers_dir
=install-headers-cpio
6640 install_headers_dir
=install-headers-cpio
6644 # Distinguish i[34567]86
6645 # Also, do not run mips-tfile on MIPS if using gas.
6646 # Process --with-cpu= for PowerPC/rs6000
6647 target_cpu_default2
=
6650 target_cpu_default2
=1
6653 case $target_alias in
6655 target_cpu_default2
=4
6658 target_cpu_default2
=2
6662 i686-
*-* | i786-
*-*)
6663 target_cpu_default2
=3
6668 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
6671 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
6674 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
6677 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX"
6680 target_cpu_default2
="MASK_CPU_EV5"
6684 if test x
$gas = xyes
6686 if test "$target_cpu_default2" = ""
6688 target_cpu_default2
="MASK_GAS"
6690 target_cpu_default2
="${target_cpu_default2}|MASK_GAS"
6695 case "x$with_cpu" in
6698 target_cpu_default2
="TARGET_CPU_generic"
6701 # Distinguish cores, and major variants
6702 # arm7m doesn't exist, but D & I don't affect code
6703 xarm
[23678] | xarm250 | xarm
[67][01]0 \
6704 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
6705 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
6706 | xstrongarm | xstrongarm110 | xstrongarm1100
)
6707 target_cpu_default2
="TARGET_CPU_$with_cpu"
6711 echo "--with-cpu must be passed a value" 1>&2
6716 if test x
$pass2done = xyes
6718 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6725 mips
*-*-ecoff* | mips
*-*-elf*)
6726 if test x
$gas = xyes
6728 if test x
$gnu_ld = xyes
6730 target_cpu_default2
="MASK_GAS|MASK_SPLIT_ADDR"
6732 target_cpu_default2
="MASK_GAS"
6737 if test x
$gas = xyes
6739 target_cpu_default2
="MASK_GAS"
6742 powerpc
*-*-* | rs6000-
*-*)
6743 case "x$with_cpu" in
6747 xcommon | xpower | xpower2 | xpowerpc | xrios \
6748 | xrios1 | xrios2 | xrsc | xrsc1 \
6749 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
6750 | xec603e | x740 | x750 | x401 \
6751 | x403 | x505 | x801 | x821 | x823 | x860
)
6752 target_cpu_default2
="\"$with_cpu\""
6756 echo "--with-cpu must be passed a value" 1>&2
6761 if test x
$pass2done = xyes
6763 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6770 case ".$with_cpu" in
6772 target_cpu_default2
=TARGET_CPU_
"`echo $machine | sed 's/-.*$//'`"
6774 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9
)
6775 target_cpu_default2
="TARGET_CPU_$with_cpu"
6778 if test x
$pass2done = xyes
6780 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6788 if test "$target_cpu_default2" != ""
6790 if test "$target_cpu_default" != ""
6792 target_cpu_default
="(${target_cpu_default}|${target_cpu_default2})"
6794 target_cpu_default
=$target_cpu_default2
6798 # No need for collect2 if we have the GNU linker.
6799 # Actually, there is now; GNU ld doesn't handle the EH info or
6800 # collecting for shared libraries.
6807 # Save data on machine being used to compile GCC in build_xm_file.
6808 # Save data on host machine in vars host_xm_file and host_xmake_file.
6809 if test x
$pass1done = x
6811 if test x
"$xm_file" = x
6812 then build_xm_file
=$cpu_type/xm-
$cpu_type.h
6813 else build_xm_file
=$xm_file
6815 build_xm_defines
=$xm_defines
6816 build_install_headers_dir
=$install_headers_dir
6817 build_exeext
=$exeext
6820 if test x
$pass2done = x
6822 if test x
"$xm_file" = x
6823 then host_xm_file
=$cpu_type/xm-
$cpu_type.h
6824 else host_xm_file
=$xm_file
6826 host_xm_defines
=$xm_defines
6827 if test x
"$xmake_file" = x
6828 then xmake_file
=$cpu_type/x-
$cpu_type
6830 host_xmake_file
="$xmake_file"
6831 host_truncate_target
=$truncate_target
6832 host_extra_gcc_objs
=$extra_gcc_objs
6833 host_extra_objs
=$extra_host_objs
6840 extra_objs
="${host_extra_objs} ${extra_objs}"
6842 # Default the target-machine variables that were not explicitly set.
6843 if test x
"$tm_file" = x
6844 then tm_file
=$cpu_type/$cpu_type.h
; fi
6846 if test x
$extra_headers = x
6847 then extra_headers
=; fi
6849 if test x
"$xm_file" = x
6850 then xm_file
=$cpu_type/xm-
$cpu_type.h
; fi
6852 if test x
$md_file = x
6853 then md_file
=$cpu_type/$cpu_type.md
; fi
6855 if test x
$out_file = x
6856 then out_file
=$cpu_type/$cpu_type.c
; fi
6858 if test x
"$tmake_file" = x
6859 then tmake_file
=$cpu_type/t-
$cpu_type
6862 if test x
"$dwarf2" = xyes
6863 then tm_file
="$tm_file tm-dwarf2.h"
6866 if test x
$float_format = x
6867 then float_format
=i64
6870 if test $float_format = none
6871 then float_h_file
=Makefile.
in
6872 else float_h_file
=float-
$float_format.h
6875 # Handle cpp installation.
6876 if test x
$enable_cpp != xno
6878 tmake_file
="$tmake_file t-install-cpp"
6881 # Say what files are being used for the output code and MD file.
6882 echo "Using \`$srcdir/config/$out_file' to output insns."
6883 echo "Using \`$srcdir/config/$md_file' as machine description file."
6886 for f
in $tm_file; do
6889 if test $count = ax
; then
6890 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
6892 echo "Using the following target machine macro files:"
6893 for f
in $tm_file; do
6894 echo " $srcdir/config/$f"
6899 for f
in $host_xm_file; do
6902 if test $count = ax
; then
6903 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
6905 echo "Using the following host machine macro files:"
6906 for f
in $host_xm_file; do
6907 echo " $srcdir/config/$f"
6911 if test "$host_xm_file" != "$build_xm_file"; then
6913 for f
in $build_xm_file; do
6916 if test $count = ax
; then
6917 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
6919 echo "Using the following build machine macro files:"
6920 for f
in $build_xm_file; do
6921 echo " $srcdir/config/$f"
6926 if test x
$thread_file = x
; then
6927 if test x
$target_thread_file != x
; then
6928 thread_file
=$target_thread_file
6930 thread_file
='single'
6934 # Set up the header files.
6935 # $links is the list of header files to create.
6936 # $vars is the list of shell variables with file names to include.
6937 # auto-host.h is the file containing items generated by autoconf and is
6938 # the first file included by config.h.
6940 host_xm_file
="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
6942 # If host=build, it is correct to have hconfig include auto-host.h
6943 # as well. If host!=build, we are in error and need to do more
6944 # work to find out the build config parameters.
6945 if test x
$host = x
$build
6947 build_xm_file
="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
6949 # We create a subdir, then run autoconf in the subdir.
6950 # To prevent recursion we set host and build for the new
6951 # invocation of configure to the build for this invocation
6958 /*) realsrcdir
=${srcdir};;
6959 *) realsrcdir
=..
/${srcdir};;
6961 CC
=${CC_FOR_BUILD} ${realsrcdir}/configure \
6962 --target=$target --host=$build --build=$build
6964 # We just finished tests for the build machine, so rename
6965 # the file auto-build.h in the gcc directory.
6966 mv auto-host.h ..
/auto-build.h
6969 build_xm_file
="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
6972 xm_file
="gansidecl.h ${xm_file}"
6973 tm_file
="gansidecl.h ${tm_file}"
6975 vars
="host_xm_file tm_file tm_p_file xm_file build_xm_file"
6976 links
="config.h tm.h tm_p.h tconfig.h hconfig.h"
6977 defines
="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
6980 if test -f config.status
; then mv -f config.status config.bak
; fi
6983 while test -n "$vars"
6985 set $vars; var
=$1; shift; vars
=$
*
6986 set $links; link
=$1; shift; links
=$
*
6987 set $defines; define
=$1; shift; defines
=$
*
6990 # Make sure the file is created, even if it is empty.
6993 # Define TARGET_CPU_DEFAULT if the system wants one.
6994 # This substitutes for lots of *.h files.
6995 if test "$target_cpu_default" != "" -a $link = tm.h
6997 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
7000 for file in `eval echo '$'$var`; do
7002 auto-host.h | auto-build.h
)
7005 echo '#ifdef IN_GCC' >>$link
7008 echo "#include \"$file\"" >>$link
7010 auto-host.h | auto-build.h
)
7013 echo '#endif' >>$link
7018 for def
in `eval echo '$'$define`; do
7019 echo "#ifndef $def" >>$link
7020 echo "#define $def" >>$link
7021 echo "#endif" >>$link
7025 # Truncate the target if necessary
7026 if test x
$host_truncate_target != x
; then
7027 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
7030 # Get the version trigger filename from the toplevel
7031 if test "${with_gcc_version_trigger+set}" = set; then
7032 gcc_version_trigger
=$with_gcc_version_trigger
7034 gcc_version_trigger
=${srcdir}/version.c
7036 gcc_version
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
7038 # Internationalization
7040 VERSION
="$gcc_version"
7041 cat >> confdefs.h
<<EOF
7042 #define PACKAGE "$PACKAGE"
7045 cat >> confdefs.h
<<EOF
7046 #define VERSION "$VERSION"
7054 # Enable NLS support by default
7055 # Check whether --enable-nls or --disable-nls was given.
7056 if test "${enable_nls+set}" = set; then
7057 enableval
="$enable_nls"
7064 # if cross compiling, disable NLS support.
7065 # It's not worth the trouble, at least for now.
7067 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
7068 echo "configure: warning: Disabling NLS support for canadian cross compiler." 1>&2
7073 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
7074 echo "configure:7075: checking for strerror in -lcposix" >&5
7075 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
7076 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7077 echo $ac_n "(cached) $ac_c" 1>&6
7079 ac_save_LIBS
="$LIBS"
7080 LIBS
="-lcposix $LIBS"
7081 cat > conftest.
$ac_ext <<EOF
7082 #line 7083 "configure"
7083 #include "confdefs.h"
7084 /* Override any gcc2 internal prototype to avoid an error. */
7085 /* We use char because int might match the return type of a gcc2
7086 builtin and then its argument prototype would still apply. */
7093 if { (eval echo configure
:7094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7095 eval "ac_cv_lib_$ac_lib_var=yes"
7097 echo "configure: failed program was:" >&5
7098 cat conftest.
$ac_ext >&5
7100 eval "ac_cv_lib_$ac_lib_var=no"
7103 LIBS
="$ac_save_LIBS"
7106 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7107 echo "$ac_t""yes" 1>&6
7108 LIBS
="$LIBS -lcposix"
7110 echo "$ac_t""no" 1>&6
7115 echo $ac_n "checking for working const""... $ac_c" 1>&6
7116 echo "configure:7117: checking for working const" >&5
7117 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
7118 echo $ac_n "(cached) $ac_c" 1>&6
7120 cat > conftest.
$ac_ext <<EOF
7121 #line 7122 "configure"
7122 #include "confdefs.h"
7126 /* Ultrix mips cc rejects this. */
7127 typedef int charset[2]; const charset x;
7128 /* SunOS 4.1.1 cc rejects this. */
7129 char const *const *ccp;
7131 /* NEC SVR4.0.2 mips cc rejects this. */
7132 struct point {int x, y;};
7133 static struct point const zero = {0,0};
7134 /* AIX XL C 1.02.0.0 rejects this.
7135 It does not let you subtract one const X* pointer from another in an arm
7136 of an if-expression whose if-part is not a constant expression */
7137 const char *g = "string";
7138 ccp = &g + (g ? g-g : 0);
7139 /* HPUX 7.0 cc rejects these. */
7142 ccp = (char const *const *) p;
7143 { /* SCO 3.2v4 cc rejects this. */
7145 char const *s = 0 ? (char *) 0 : (char const *) 0;
7149 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7151 const int *foo = &x[0];
7154 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7155 typedef const int *iptr;
7159 { /* AIX XL C 1.02.0.0 rejects this saying
7160 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7161 struct s { int j; const int *ap[3]; };
7162 struct s *b; b->j = 5;
7164 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7170 if { (eval echo configure
:7171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7174 echo "configure: failed program was:" >&5
7175 cat conftest.
$ac_ext >&5
7182 echo "$ac_t""$ac_cv_c_const" 1>&6
7183 if test $ac_cv_c_const = no
; then
7184 cat >> confdefs.h
<<\EOF
7190 echo $ac_n "checking for off_t""... $ac_c" 1>&6
7191 echo "configure:7192: checking for off_t" >&5
7192 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
7193 echo $ac_n "(cached) $ac_c" 1>&6
7195 cat > conftest.
$ac_ext <<EOF
7196 #line 7197 "configure"
7197 #include "confdefs.h"
7198 #include <sys/types.h>
7204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7205 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
7207 ac_cv_type_off_t
=yes
7215 echo "$ac_t""$ac_cv_type_off_t" 1>&6
7216 if test $ac_cv_type_off_t = no
; then
7217 cat >> confdefs.h
<<\EOF
7223 echo $ac_n "checking for size_t""... $ac_c" 1>&6
7224 echo "configure:7225: checking for size_t" >&5
7225 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
7226 echo $ac_n "(cached) $ac_c" 1>&6
7228 cat > conftest.
$ac_ext <<EOF
7229 #line 7230 "configure"
7230 #include "confdefs.h"
7231 #include <sys/types.h>
7237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7238 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
7240 ac_cv_type_size_t
=yes
7243 ac_cv_type_size_t
=no
7248 echo "$ac_t""$ac_cv_type_size_t" 1>&6
7249 if test $ac_cv_type_size_t = no
; then
7250 cat >> confdefs.h
<<\EOF
7251 #define size_t unsigned
7256 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7257 # for constant arguments. Useless!
7258 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
7259 echo "configure:7260: checking for working alloca.h" >&5
7260 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
7261 echo $ac_n "(cached) $ac_c" 1>&6
7263 cat > conftest.
$ac_ext <<EOF
7264 #line 7265 "configure"
7265 #include "confdefs.h"
7268 char *p = alloca(2 * sizeof(int));
7271 if { (eval echo configure
:7272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7273 ac_cv_header_alloca_h
=yes
7275 echo "configure: failed program was:" >&5
7276 cat conftest.
$ac_ext >&5
7278 ac_cv_header_alloca_h
=no
7283 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
7284 if test $ac_cv_header_alloca_h = yes; then
7285 cat >> confdefs.h
<<\EOF
7286 #define HAVE_ALLOCA_H 1
7291 echo $ac_n "checking for alloca""... $ac_c" 1>&6
7292 echo "configure:7293: checking for alloca" >&5
7293 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
7294 echo $ac_n "(cached) $ac_c" 1>&6
7296 cat > conftest.
$ac_ext <<EOF
7297 #line 7298 "configure"
7298 #include "confdefs.h"
7301 # define alloca __builtin_alloca
7304 # include <malloc.h>
7305 # define alloca _alloca
7308 # include <alloca.h>
7313 # ifndef alloca /* predefined by HP cc +Olibcalls */
7322 char *p = (char *) alloca(1);
7325 if { (eval echo configure
:7326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7327 ac_cv_func_alloca_works
=yes
7329 echo "configure: failed program was:" >&5
7330 cat conftest.
$ac_ext >&5
7332 ac_cv_func_alloca_works
=no
7337 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
7338 if test $ac_cv_func_alloca_works = yes; then
7339 cat >> confdefs.h
<<\EOF
7340 #define HAVE_ALLOCA 1
7345 if test $ac_cv_func_alloca_works = no
; then
7346 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7347 # that cause trouble. Some versions do not even contain alloca or
7348 # contain a buggy version. If you still want to use their alloca,
7349 # use ar to extract alloca.o from them instead of compiling alloca.c.
7350 ALLOCA
=alloca.
${ac_objext}
7351 cat >> confdefs.h
<<\EOF
7356 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
7357 echo "configure:7358: checking whether alloca needs Cray hooks" >&5
7358 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
7359 echo $ac_n "(cached) $ac_c" 1>&6
7361 cat > conftest.
$ac_ext <<EOF
7362 #line 7363 "configure"
7363 #include "confdefs.h"
7364 #if defined(CRAY) && ! defined(CRAY2)
7371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7372 egrep "webecray" >/dev
/null
2>&1; then
7383 echo "$ac_t""$ac_cv_os_cray" 1>&6
7384 if test $ac_cv_os_cray = yes; then
7385 for ac_func
in _getb67 GETB67 getb67
; do
7386 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7387 echo "configure:7388: checking for $ac_func" >&5
7388 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7389 echo $ac_n "(cached) $ac_c" 1>&6
7391 cat > conftest.
$ac_ext <<EOF
7392 #line 7393 "configure"
7393 #include "confdefs.h"
7394 /* System header to define __stub macros and hopefully few prototypes,
7395 which can conflict with char $ac_func(); below. */
7397 /* Override any gcc2 internal prototype to avoid an error. */
7398 /* We use char because int might match the return type of a gcc2
7399 builtin and then its argument prototype would still apply. */
7404 /* The GNU C library defines this for functions which it implements
7405 to always fail with ENOSYS. Some functions are actually named
7406 something starting with __ and the normal name is an alias. */
7407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7415 if { (eval echo configure
:7416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7417 eval "ac_cv_func_$ac_func=yes"
7419 echo "configure: failed program was:" >&5
7420 cat conftest.
$ac_ext >&5
7422 eval "ac_cv_func_$ac_func=no"
7427 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7428 echo "$ac_t""yes" 1>&6
7429 cat >> confdefs.h
<<EOF
7430 #define CRAY_STACKSEG_END $ac_func
7435 echo "$ac_t""no" 1>&6
7441 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7442 echo "configure:7443: checking stack direction for C alloca" >&5
7443 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
7444 echo $ac_n "(cached) $ac_c" 1>&6
7446 if test "$cross_compiling" = yes; then
7447 ac_cv_c_stack_direction
=0
7449 cat > conftest.
$ac_ext <<EOF
7450 #line 7451 "configure"
7451 #include "confdefs.h"
7452 find_stack_direction ()
7454 static char *addr = 0;
7459 return find_stack_direction ();
7462 return (&dummy > addr) ? 1 : -1;
7466 exit (find_stack_direction() < 0);
7469 if { (eval echo configure
:7470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7471 ac_cv_c_stack_direction
=1
7473 echo "configure: failed program was:" >&5
7474 cat conftest.
$ac_ext >&5
7476 ac_cv_c_stack_direction
=-1
7483 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
7484 cat >> confdefs.h
<<EOF
7485 #define STACK_DIRECTION $ac_cv_c_stack_direction
7491 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7492 unistd.h sys
/param.h
7494 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7495 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7496 echo "configure:7497: checking for $ac_hdr" >&5
7497 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7498 echo $ac_n "(cached) $ac_c" 1>&6
7500 cat > conftest.
$ac_ext <<EOF
7501 #line 7502 "configure"
7502 #include "confdefs.h"
7505 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7506 { (eval echo configure
:7507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7507 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7508 if test -z "$ac_err"; then
7510 eval "ac_cv_header_$ac_safe=yes"
7513 echo "configure: failed program was:" >&5
7514 cat conftest.
$ac_ext >&5
7516 eval "ac_cv_header_$ac_safe=no"
7520 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7521 echo "$ac_t""yes" 1>&6
7522 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7523 cat >> confdefs.h
<<EOF
7524 #define $ac_tr_hdr 1
7528 echo "$ac_t""no" 1>&6
7532 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7533 strdup __argz_count __argz_stringify __argz_next
7535 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7536 echo "configure:7537: checking for $ac_func" >&5
7537 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7538 echo $ac_n "(cached) $ac_c" 1>&6
7540 cat > conftest.
$ac_ext <<EOF
7541 #line 7542 "configure"
7542 #include "confdefs.h"
7543 /* System header to define __stub macros and hopefully few prototypes,
7544 which can conflict with char $ac_func(); below. */
7546 /* Override any gcc2 internal prototype to avoid an error. */
7547 /* We use char because int might match the return type of a gcc2
7548 builtin and then its argument prototype would still apply. */
7553 /* The GNU C library defines this for functions which it implements
7554 to always fail with ENOSYS. Some functions are actually named
7555 something starting with __ and the normal name is an alias. */
7556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7564 if { (eval echo configure
:7565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7566 eval "ac_cv_func_$ac_func=yes"
7568 echo "configure: failed program was:" >&5
7569 cat conftest.
$ac_ext >&5
7571 eval "ac_cv_func_$ac_func=no"
7576 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7577 echo "$ac_t""yes" 1>&6
7578 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7579 cat >> confdefs.h
<<EOF
7580 #define $ac_tr_func 1
7584 echo "$ac_t""no" 1>&6
7589 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7590 for ac_func
in stpcpy
7592 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7593 echo "configure:7594: checking for $ac_func" >&5
7594 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7595 echo $ac_n "(cached) $ac_c" 1>&6
7597 cat > conftest.
$ac_ext <<EOF
7598 #line 7599 "configure"
7599 #include "confdefs.h"
7600 /* System header to define __stub macros and hopefully few prototypes,
7601 which can conflict with char $ac_func(); below. */
7603 /* Override any gcc2 internal prototype to avoid an error. */
7604 /* We use char because int might match the return type of a gcc2
7605 builtin and then its argument prototype would still apply. */
7610 /* The GNU C library defines this for functions which it implements
7611 to always fail with ENOSYS. Some functions are actually named
7612 something starting with __ and the normal name is an alias. */
7613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7621 if { (eval echo configure
:7622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7623 eval "ac_cv_func_$ac_func=yes"
7625 echo "configure: failed program was:" >&5
7626 cat conftest.
$ac_ext >&5
7628 eval "ac_cv_func_$ac_func=no"
7633 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7634 echo "$ac_t""yes" 1>&6
7635 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7636 cat >> confdefs.h
<<EOF
7637 #define $ac_tr_func 1
7641 echo "$ac_t""no" 1>&6
7646 if test "${ac_cv_func_stpcpy}" = "yes"; then
7647 cat >> confdefs.h
<<\EOF
7648 #define HAVE_STPCPY 1
7653 if test $ac_cv_header_locale_h = yes; then
7654 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
7655 echo "configure:7656: checking for LC_MESSAGES" >&5
7656 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
7657 echo $ac_n "(cached) $ac_c" 1>&6
7659 cat > conftest.
$ac_ext <<EOF
7660 #line 7661 "configure"
7661 #include "confdefs.h"
7667 if { (eval echo configure
:7668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7669 am_cv_val_LC_MESSAGES
=yes
7671 echo "configure: failed program was:" >&5
7672 cat conftest.
$ac_ext >&5
7674 am_cv_val_LC_MESSAGES
=no
7679 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7680 if test $am_cv_val_LC_MESSAGES = yes; then
7681 cat >> confdefs.h
<<\EOF
7682 #define HAVE_LC_MESSAGES 1
7687 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7688 echo "configure:7689: checking whether NLS is requested" >&5
7689 # Check whether --enable-nls or --disable-nls was given.
7690 if test "${enable_nls+set}" = set; then
7691 enableval
="$enable_nls"
7697 echo "$ac_t""$USE_NLS" 1>&6
7700 USE_INCLUDED_LIBINTL
=no
7702 if test "$USE_NLS" = "yes"; then
7703 cat >> confdefs.h
<<\EOF
7704 #define ENABLE_NLS 1
7707 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7708 echo "configure:7709: checking whether included gettext is requested" >&5
7709 # Check whether --with-included-gettext or --without-included-gettext was given.
7710 if test "${with_included_gettext+set}" = set; then
7711 withval
="$with_included_gettext"
7712 nls_cv_force_use_gnu_gettext
=$withval
7714 nls_cv_force_use_gnu_gettext
=yes
7717 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7719 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
7720 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7722 nls_cv_header_libgt
=
7725 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7726 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7727 echo "configure:7728: checking for libintl.h" >&5
7728 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7729 echo $ac_n "(cached) $ac_c" 1>&6
7731 cat > conftest.
$ac_ext <<EOF
7732 #line 7733 "configure"
7733 #include "confdefs.h"
7734 #include <libintl.h>
7736 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7737 { (eval echo configure
:7738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7738 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7739 if test -z "$ac_err"; then
7741 eval "ac_cv_header_$ac_safe=yes"
7744 echo "configure: failed program was:" >&5
7745 cat conftest.
$ac_ext >&5
7747 eval "ac_cv_header_$ac_safe=no"
7751 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7752 echo "$ac_t""yes" 1>&6
7753 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7754 echo "configure:7755: checking for gettext in libc" >&5
7755 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7756 echo $ac_n "(cached) $ac_c" 1>&6
7758 cat > conftest.
$ac_ext <<EOF
7759 #line 7760 "configure"
7760 #include "confdefs.h"
7761 #include <libintl.h>
7763 return (int) gettext ("")
7766 if { (eval echo configure
:7767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7768 gt_cv_func_gettext_libc
=yes
7770 echo "configure: failed program was:" >&5
7771 cat conftest.
$ac_ext >&5
7773 gt_cv_func_gettext_libc
=no
7778 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7780 if test "$gt_cv_func_gettext_libc" != "yes"; then
7781 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7782 echo "configure:7783: checking for bindtextdomain in -lintl" >&5
7783 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7784 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7785 echo $ac_n "(cached) $ac_c" 1>&6
7787 ac_save_LIBS
="$LIBS"
7789 cat > conftest.
$ac_ext <<EOF
7790 #line 7791 "configure"
7791 #include "confdefs.h"
7792 /* Override any gcc2 internal prototype to avoid an error. */
7793 /* We use char because int might match the return type of a gcc2
7794 builtin and then its argument prototype would still apply. */
7795 char bindtextdomain();
7801 if { (eval echo configure
:7802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7803 eval "ac_cv_lib_$ac_lib_var=yes"
7805 echo "configure: failed program was:" >&5
7806 cat conftest.
$ac_ext >&5
7808 eval "ac_cv_lib_$ac_lib_var=no"
7811 LIBS
="$ac_save_LIBS"
7814 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7815 echo "$ac_t""yes" 1>&6
7816 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7817 echo "configure:7818: checking for gettext in libintl" >&5
7818 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7819 echo $ac_n "(cached) $ac_c" 1>&6
7821 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7822 echo "configure:7823: checking for gettext in -lintl" >&5
7823 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7824 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7825 echo $ac_n "(cached) $ac_c" 1>&6
7827 ac_save_LIBS
="$LIBS"
7829 cat > conftest.
$ac_ext <<EOF
7830 #line 7831 "configure"
7831 #include "confdefs.h"
7832 /* Override any gcc2 internal prototype to avoid an error. */
7833 /* We use char because int might match the return type of a gcc2
7834 builtin and then its argument prototype would still apply. */
7841 if { (eval echo configure
:7842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7843 eval "ac_cv_lib_$ac_lib_var=yes"
7845 echo "configure: failed program was:" >&5
7846 cat conftest.
$ac_ext >&5
7848 eval "ac_cv_lib_$ac_lib_var=no"
7851 LIBS
="$ac_save_LIBS"
7854 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7855 echo "$ac_t""yes" 1>&6
7856 gt_cv_func_gettext_libintl
=yes
7858 echo "$ac_t""no" 1>&6
7859 gt_cv_func_gettext_libintl
=no
7864 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7866 echo "$ac_t""no" 1>&6
7871 if test "$gt_cv_func_gettext_libc" = "yes" \
7872 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
7873 cat >> confdefs.h
<<\EOF
7874 #define HAVE_GETTEXT 1
7877 # Extract the first word of "msgfmt", so it can be a program name with args.
7878 set dummy msgfmt
; ac_word
=$2
7879 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7880 echo "configure:7881: checking for $ac_word" >&5
7881 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7882 echo $ac_n "(cached) $ac_c" 1>&6
7886 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
7889 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7890 for ac_dir
in $PATH; do
7891 test -z "$ac_dir" && ac_dir
=.
7892 if test -f $ac_dir/$ac_word; then
7893 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7894 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
7900 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
7904 MSGFMT
="$ac_cv_path_MSGFMT"
7905 if test -n "$MSGFMT"; then
7906 echo "$ac_t""$MSGFMT" 1>&6
7908 echo "$ac_t""no" 1>&6
7910 if test "$MSGFMT" != "no"; then
7911 for ac_func
in dcgettext
7913 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7914 echo "configure:7915: checking for $ac_func" >&5
7915 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7916 echo $ac_n "(cached) $ac_c" 1>&6
7918 cat > conftest.
$ac_ext <<EOF
7919 #line 7920 "configure"
7920 #include "confdefs.h"
7921 /* System header to define __stub macros and hopefully few prototypes,
7922 which can conflict with char $ac_func(); below. */
7924 /* Override any gcc2 internal prototype to avoid an error. */
7925 /* We use char because int might match the return type of a gcc2
7926 builtin and then its argument prototype would still apply. */
7931 /* The GNU C library defines this for functions which it implements
7932 to always fail with ENOSYS. Some functions are actually named
7933 something starting with __ and the normal name is an alias. */
7934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7942 if { (eval echo configure
:7943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7944 eval "ac_cv_func_$ac_func=yes"
7946 echo "configure: failed program was:" >&5
7947 cat conftest.
$ac_ext >&5
7949 eval "ac_cv_func_$ac_func=no"
7954 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7955 echo "$ac_t""yes" 1>&6
7956 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7957 cat >> confdefs.h
<<EOF
7958 #define $ac_tr_func 1
7962 echo "$ac_t""no" 1>&6
7966 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7967 set dummy gmsgfmt
; ac_word
=$2
7968 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7969 echo "configure:7970: checking for $ac_word" >&5
7970 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7971 echo $ac_n "(cached) $ac_c" 1>&6
7975 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7978 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
7981 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7983 for ac_dir
in $ac_dummy; do
7984 test -z "$ac_dir" && ac_dir
=.
7985 if test -f $ac_dir/$ac_word; then
7986 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
7991 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
7995 GMSGFMT
="$ac_cv_path_GMSGFMT"
7996 if test -n "$GMSGFMT"; then
7997 echo "$ac_t""$GMSGFMT" 1>&6
7999 echo "$ac_t""no" 1>&6
8002 # Extract the first word of "xgettext", so it can be a program name with args.
8003 set dummy xgettext
; ac_word
=$2
8004 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8005 echo "configure:8006: checking for $ac_word" >&5
8006 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8007 echo $ac_n "(cached) $ac_c" 1>&6
8011 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8014 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8015 for ac_dir
in $PATH; do
8016 test -z "$ac_dir" && ac_dir
=.
8017 if test -f $ac_dir/$ac_word; then
8018 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8019 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8025 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8029 XGETTEXT
="$ac_cv_path_XGETTEXT"
8030 if test -n "$XGETTEXT"; then
8031 echo "$ac_t""$XGETTEXT" 1>&6
8033 echo "$ac_t""no" 1>&6
8036 cat > conftest.
$ac_ext <<EOF
8037 #line 8038 "configure"
8038 #include "confdefs.h"
8041 extern int _nl_msg_cat_cntr;
8042 return _nl_msg_cat_cntr
8045 if { (eval echo configure
:8046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8050 echo "configure: failed program was:" >&5
8051 cat conftest.
$ac_ext >&5
8062 echo "$ac_t""no" 1>&6
8066 if test "$CATOBJEXT" = "NONE"; then
8067 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
8068 echo "configure:8069: checking whether catgets can be used" >&5
8069 # Check whether --with-catgets or --without-catgets was given.
8070 if test "${with_catgets+set}" = set; then
8071 withval
="$with_catgets"
8072 nls_cv_use_catgets
=$withval
8074 nls_cv_use_catgets
=no
8077 echo "$ac_t""$nls_cv_use_catgets" 1>&6
8079 if test "$nls_cv_use_catgets" = "yes"; then
8080 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
8081 echo "configure:8082: checking for main in -li" >&5
8082 ac_lib_var
=`echo i'_'main | sed 'y%./+-%__p_%'`
8083 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8084 echo $ac_n "(cached) $ac_c" 1>&6
8086 ac_save_LIBS
="$LIBS"
8088 cat > conftest.
$ac_ext <<EOF
8089 #line 8090 "configure"
8090 #include "confdefs.h"
8096 if { (eval echo configure
:8097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8098 eval "ac_cv_lib_$ac_lib_var=yes"
8100 echo "configure: failed program was:" >&5
8101 cat conftest.
$ac_ext >&5
8103 eval "ac_cv_lib_$ac_lib_var=no"
8106 LIBS
="$ac_save_LIBS"
8109 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8110 echo "$ac_t""yes" 1>&6
8111 ac_tr_lib
=HAVE_LIB
`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8112 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8113 cat >> confdefs.h
<<EOF
8114 #define $ac_tr_lib 1
8120 echo "$ac_t""no" 1>&6
8123 echo $ac_n "checking for catgets""... $ac_c" 1>&6
8124 echo "configure:8125: checking for catgets" >&5
8125 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
8126 echo $ac_n "(cached) $ac_c" 1>&6
8128 cat > conftest.
$ac_ext <<EOF
8129 #line 8130 "configure"
8130 #include "confdefs.h"
8131 /* System header to define __stub macros and hopefully few prototypes,
8132 which can conflict with char catgets(); below. */
8134 /* Override any gcc2 internal prototype to avoid an error. */
8135 /* We use char because int might match the return type of a gcc2
8136 builtin and then its argument prototype would still apply. */
8141 /* The GNU C library defines this for functions which it implements
8142 to always fail with ENOSYS. Some functions are actually named
8143 something starting with __ and the normal name is an alias. */
8144 #if defined (__stub_catgets) || defined (__stub___catgets)
8152 if { (eval echo configure
:8153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8154 eval "ac_cv_func_catgets=yes"
8156 echo "configure: failed program was:" >&5
8157 cat conftest.
$ac_ext >&5
8159 eval "ac_cv_func_catgets=no"
8164 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
8165 echo "$ac_t""yes" 1>&6
8166 cat >> confdefs.h
<<\EOF
8167 #define HAVE_CATGETS 1
8170 INTLOBJS
="\$(CATOBJS)"
8171 # Extract the first word of "gencat", so it can be a program name with args.
8172 set dummy gencat
; ac_word
=$2
8173 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8174 echo "configure:8175: checking for $ac_word" >&5
8175 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
8176 echo $ac_n "(cached) $ac_c" 1>&6
8180 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a path.
8183 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a dos path.
8186 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8188 for ac_dir
in $ac_dummy; do
8189 test -z "$ac_dir" && ac_dir
=.
8190 if test -f $ac_dir/$ac_word; then
8191 ac_cv_path_GENCAT
="$ac_dir/$ac_word"
8196 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT
="no"
8200 GENCAT
="$ac_cv_path_GENCAT"
8201 if test -n "$GENCAT"; then
8202 echo "$ac_t""$GENCAT" 1>&6
8204 echo "$ac_t""no" 1>&6
8206 if test "$GENCAT" != "no"; then
8207 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8208 set dummy gmsgfmt
; ac_word
=$2
8209 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8210 echo "configure:8211: checking for $ac_word" >&5
8211 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8212 echo $ac_n "(cached) $ac_c" 1>&6
8216 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8219 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8222 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8224 for ac_dir
in $ac_dummy; do
8225 test -z "$ac_dir" && ac_dir
=.
8226 if test -f $ac_dir/$ac_word; then
8227 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8232 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
8236 GMSGFMT
="$ac_cv_path_GMSGFMT"
8237 if test -n "$GMSGFMT"; then
8238 echo "$ac_t""$GMSGFMT" 1>&6
8240 echo "$ac_t""no" 1>&6
8243 if test "$GMSGFMT" = "no"; then
8244 # Extract the first word of "msgfmt", so it can be a program name with args.
8245 set dummy msgfmt
; ac_word
=$2
8246 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8247 echo "configure:8248: checking for $ac_word" >&5
8248 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8249 echo $ac_n "(cached) $ac_c" 1>&6
8253 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8256 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8257 for ac_dir
in $PATH; do
8258 test -z "$ac_dir" && ac_dir
=.
8259 if test -f $ac_dir/$ac_word; then
8260 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8261 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8267 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="msgfmt"
8271 GMSGFMT
="$ac_cv_path_GMSGFMT"
8272 if test -n "$GMSGFMT"; then
8273 echo "$ac_t""$GMSGFMT" 1>&6
8275 echo "$ac_t""no" 1>&6
8278 if test "$GMSGFMT" = "msgfmt"; then
8279 echo "configure: warning: No program for catalog building found" 1>&2
8280 create_catalogs
="no"
8283 # Extract the first word of "xgettext", so it can be a program name with args.
8284 set dummy xgettext
; ac_word
=$2
8285 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8286 echo "configure:8287: checking for $ac_word" >&5
8287 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8288 echo $ac_n "(cached) $ac_c" 1>&6
8292 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8295 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8296 for ac_dir
in $PATH; do
8297 test -z "$ac_dir" && ac_dir
=.
8298 if test -f $ac_dir/$ac_word; then
8299 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8300 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8306 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8310 XGETTEXT
="$ac_cv_path_XGETTEXT"
8311 if test -n "$XGETTEXT"; then
8312 echo "$ac_t""$XGETTEXT" 1>&6
8314 echo "$ac_t""no" 1>&6
8317 USE_INCLUDED_LIBINTL
=yes
8321 INTLDEPS
='$(top_builddir)/intl/libintl.a'
8323 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
8324 nls_cv_header_intl
=intl
/libintl.h
8325 nls_cv_header_libgt
=intl
/libgettext.h
8328 echo "$ac_t""no" 1>&6
8334 if test "$CATOBJEXT" = "NONE"; then
8335 nls_cv_use_gnu_gettext
=yes
8339 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8340 INTLOBJS
="\$(GETTOBJS)"
8341 # Extract the first word of "msgfmt", so it can be a program name with args.
8342 set dummy msgfmt
; ac_word
=$2
8343 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8344 echo "configure:8345: checking for $ac_word" >&5
8345 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
8346 echo $ac_n "(cached) $ac_c" 1>&6
8350 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8353 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8354 for ac_dir
in $PATH; do
8355 test -z "$ac_dir" && ac_dir
=.
8356 if test -f $ac_dir/$ac_word; then
8357 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8358 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8364 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
8368 MSGFMT
="$ac_cv_path_MSGFMT"
8369 if test -n "$MSGFMT"; then
8370 echo "$ac_t""$MSGFMT" 1>&6
8372 echo "$ac_t""no" 1>&6
8375 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8376 set dummy gmsgfmt
; ac_word
=$2
8377 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8378 echo "configure:8379: checking for $ac_word" >&5
8379 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8380 echo $ac_n "(cached) $ac_c" 1>&6
8384 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8387 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8390 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8392 for ac_dir
in $ac_dummy; do
8393 test -z "$ac_dir" && ac_dir
=.
8394 if test -f $ac_dir/$ac_word; then
8395 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8400 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8404 GMSGFMT
="$ac_cv_path_GMSGFMT"
8405 if test -n "$GMSGFMT"; then
8406 echo "$ac_t""$GMSGFMT" 1>&6
8408 echo "$ac_t""no" 1>&6
8411 if test "$MSGFMT" = "msgfmt" && test "$GMSGFMT" = "msgfmt"; then
8412 echo "configure: warning: Neither msgfmt nor gmsgfmt found. No catalogs will be built" 1>&2
8413 create_catalogs
="no"
8415 # Extract the first word of "xgettext", so it can be a program name with args.
8416 set dummy xgettext
; ac_word
=$2
8417 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8418 echo "configure:8419: checking for $ac_word" >&5
8419 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8420 echo $ac_n "(cached) $ac_c" 1>&6
8424 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8427 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8428 for ac_dir
in $PATH; do
8429 test -z "$ac_dir" && ac_dir
=.
8430 if test -f $ac_dir/$ac_word; then
8431 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8432 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8438 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8442 XGETTEXT
="$ac_cv_path_XGETTEXT"
8443 if test -n "$XGETTEXT"; then
8444 echo "$ac_t""$XGETTEXT" 1>&6
8446 echo "$ac_t""no" 1>&6
8450 USE_INCLUDED_LIBINTL
=yes
8454 INTLDEPS
='$(top_builddir)/intl/libintl.a'
8456 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
8457 nls_cv_header_intl
=intl
/libintl.h
8458 nls_cv_header_libgt
=intl
/libgettext.h
8461 if test "$XGETTEXT" != ":"; then
8462 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
8465 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
8472 # We need to process the po/ directory.
8476 nls_cv_header_intl
=intl
/libintl.h
8477 nls_cv_header_libgt
=intl
/libgettext.h
8483 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8484 # because some of the sources are only built for this goal.
8485 if test "$PACKAGE" = gettext; then
8487 USE_INCLUDED_LIBINTL
=yes
8490 for lang
in $ALL_LINGUAS; do
8491 GMOFILES
="$GMOFILES $lang.gmo"
8492 POFILES
="$POFILES $lang.po"
8508 if test "x$CATOBJEXT" != "x" && test "x$create_catalogs" != "xno" ; then
8509 if test "x$ALL_LINGUAS" = "x"; then
8512 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
8513 echo "configure:8514: checking for catalogs to be installed" >&5
8514 if test "x$LINGUAS" = "x"; then
8515 LINGUAS
=$ALL_LINGUAS
8518 for lang
in $ALL_LINGUAS; do
8519 case " $LINGUAS " in
8520 *" $lang "*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
8523 LINGUAS
=$NEW_LINGUAS
8525 echo "$ac_t""$LINGUAS" 1>&6
8528 if test -n "$LINGUAS"; then
8529 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
8533 if test $ac_cv_header_locale_h = yes; then
8534 INCLUDE_LOCALE_H
="#include <locale.h>"
8537 /* The system does not provide the header <locale.h>. Take care yourself. */"
8541 test -d intl || mkdir intl
8542 if test "$CATOBJEXT" = ".cat"; then
8543 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
8544 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
8545 echo "configure:8546: checking for linux/version.h" >&5
8546 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8547 echo $ac_n "(cached) $ac_c" 1>&6
8549 cat > conftest.
$ac_ext <<EOF
8550 #line 8551 "configure"
8551 #include "confdefs.h"
8552 #include <linux/version.h>
8554 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8555 { (eval echo configure
:8556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8556 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8557 if test -z "$ac_err"; then
8559 eval "ac_cv_header_$ac_safe=yes"
8562 echo "configure: failed program was:" >&5
8563 cat conftest.
$ac_ext >&5
8565 eval "ac_cv_header_$ac_safe=no"
8569 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8570 echo "$ac_t""yes" 1>&6
8573 echo "$ac_t""no" 1>&6
8578 sed -e '/^#/d' $srcdir/intl
/$msgformat-msg.
sed > intl
/po2msg.
sed
8580 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8581 $srcdir/intl
/po2tbl.
sed.
in > intl
/po2tbl.
sed
8583 if test "$PACKAGE" = "gettext"; then
8594 if test -n "$ac_aux_dir"; then
8595 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
8597 if test -z "$MKINSTALLDIRS"; then
8598 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
8605 test -d po || mkdir po
8606 if test "x$srcdir" != "x."; then
8607 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8608 posrcprefix
="$srcdir/"
8610 posrcprefix
="../$srcdir/"
8616 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8617 < $srcdir/po
/POTFILES.
in > po
/POTFILES
8619 XGETTEXT
="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
8621 # Windows32 Registry support for specifying GCC installation paths.
8622 # Check whether --enable-win32-registry or --disable-win32-registry was given.
8623 if test "${enable_win32_registry+set}" = set; then
8624 enableval
="$enable_win32_registry"
8629 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
8630 echo "configure:8631: checking whether windows registry support is requested" >&5
8631 if test x
$enable_win32_registry != xno
; then
8632 cat >> confdefs.h
<<\EOF
8633 #define ENABLE_WIN32_REGISTRY 1
8636 echo "$ac_t""yes" 1>&6
8638 echo "$ac_t""no" 1>&6
8641 # Check if user specified a different registry key.
8642 case x
${enable_win32_registry} in
8645 gcc_cv_win32_registry_key
="$VERSION"
8648 # no registry lookup.
8649 gcc_cv_win32_registry_key
=''
8652 # user-specified key.
8653 gcc_cv_win32_registry_key
="$enable_win32_registry"
8657 if test x
$enable_win32_registry != xno
; then
8658 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
8659 echo "configure:8660: checking registry key on windows hosts" >&5
8660 cat >> confdefs.h
<<EOF
8661 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
8664 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
8667 # Get an absolute path to the GCC top-level source directory
8673 # Conditionalize the makefile for this host machine.
8674 # Make-host contains the concatenation of all host makefile fragments
8675 # [there can be more than one]. This file is built by configure.frag.
8676 host_overrides
=Make-host
8677 dep_host_xmake_file
=
8678 for f
in ..
${host_xmake_file}
8680 if test -f ${srcdir}/config
/$f
8682 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
8686 # Conditionalize the makefile for this target machine.
8687 # Make-target contains the concatenation of all host makefile fragments
8688 # [there can be more than one]. This file is built by configure.frag.
8689 target_overrides
=Make-target
8691 for f
in ..
${tmake_file}
8693 if test -f ${srcdir}/config
/$f
8695 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
8699 # If the host doesn't support symlinks, modify CC in
8700 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
8701 # Otherwise, we can use "CC=$(CC)".
8703 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
8705 cc_set_by_configure
="\$(CC)"
8706 quoted_cc_set_by_configure
="\$(CC)"
8707 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
8710 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
8712 symbolic_link
="cp -p"
8716 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
8717 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
8718 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
8722 out_object_file
=`basename $out_file .c`.o
8725 for f
in $tm_file; do
8728 tm_file_list
="${tm_file_list} $f" ;;
8729 *) tm_file_list
="${tm_file_list} \$(srcdir)/config/$f" ;;
8734 for f
in $host_xm_file; do
8736 auto-host.h | gansidecl.h | hwint.h
)
8737 host_xm_file_list
="${host_xm_file_list} $f" ;;
8738 *) host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f" ;;
8743 for f
in $build_xm_file; do
8745 auto-build.h | auto-host.h | gansidecl.h | hwint.h
)
8746 build_xm_file_list
="${build_xm_file_list} $f" ;;
8747 *) build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8751 # Define macro CROSS_COMPILE in compilation
8752 # if this is a cross-compiler.
8753 # Also use all.cross instead of all.internal
8754 # and add cross-make to Makefile.
8755 cross_overrides
="/dev/null"
8756 if test x
$host != x
$target
8758 cross_defines
="CROSS=-DCROSS_COMPILE"
8759 cross_overrides
="${topdir}/cross-make"
8762 # If this is a cross-compiler that does not
8763 # have its own set of headers then define
8766 # If this is using newlib, then define inhibit_libc in
8767 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
8768 # libgcc.a, but that's OK because newlib should have its own version of
8771 if test x
$host != x
$target && test x
$with_headers = x
; then
8772 inhibit_libc
=-Dinhibit_libc
8774 if test x
$with_newlib = xyes
; then
8775 inhibit_libc
=-Dinhibit_libc
8780 # When building gcc with a cross-compiler, we need to fix a few things.
8781 # This must come after cross-make as we want all.build to override
8783 build_overrides
="/dev/null"
8784 if test x
$build != x
$host
8786 build_overrides
="${topdir}/build-make"
8789 # Expand extra_headers to include complete path.
8790 # This substitutes for lots of t-* files.
8792 if test "x$extra_headers" = x
8795 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8796 for file in $extra_headers;
8798 extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8802 if test x
$use_collect2 = xno
; then
8806 # Add a definition of USE_COLLECT2 if system wants one.
8807 # Also tell toplev.c what to do.
8808 # This substitutes for lots of t-* files.
8809 if test x
$use_collect2 = x
8814 will_use_collect2
="collect2"
8815 maybe_use_collect2
="-DUSE_COLLECT2"
8819 # Set MD_DEPS if the real md file is in md.pre-cpp.
8820 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
8821 # for line oriented comments, so we must always use a GNU cpp. If
8822 # building gcc with a cross compiler, use the cross compiler just
8823 # built. Otherwise, we can use the cpp just built.
8825 if test "x$md_cppflags" = x
8827 md_file_sub
=$srcdir/config
/$md_file
8832 # If we have gas in the build tree, make a link to it.
8833 if test -f ..
/gas
/Makefile
; then
8834 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
8837 # If we have nm in the build tree, make a link to it.
8838 if test -f ..
/binutils
/Makefile
; then
8839 rm -f nm
; $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
8842 # If we have ld in the build tree, make a link to it.
8843 if test -f ..
/ld
/Makefile
; then
8844 # if test x$use_collect2 = x; then
8845 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8847 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
8851 # Figure out what assembler alignment features are present.
8852 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
8853 echo "configure:8854: checking assembler alignment features" >&5
8855 gcc_cv_as_alignment_features
=
8856 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8857 if test -x "$DEFAULT_ASSEMBLER"; then
8858 gcc_cv_as
="$DEFAULT_ASSEMBLER"
8859 elif test -x "$AS"; then
8861 elif test -x as
$host_exeext; then
8862 # Build using assembler in the current directory.
8863 gcc_cv_as
=.
/as
$host_exeext
8864 elif test -f $gcc_cv_as_gas_srcdir/configure.
in -a -f ..
/gas
/Makefile
; then
8865 # Single tree build which includes gas.
8866 for f
in $gcc_cv_as_gas_srcdir/configure
$gcc_cv_as_gas_srcdir/configure.
in $gcc_cv_as_gas_srcdir/Makefile.
in
8868 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
8869 if test x
$gcc_cv_gas_version != x
; then
8873 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
8874 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
8875 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
8876 # Gas version 2.6 and later support for .balign and .p2align.
8877 # bytes to skip when using .p2align.
8878 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
8879 gcc_cv_as_alignment_features
=".balign and .p2align"
8880 cat >> confdefs.h
<<\EOF
8881 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8885 # Gas version 2.8 and later support specifying the maximum
8886 # bytes to skip when using .p2align.
8887 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
8888 gcc_cv_as_alignment_features
=".p2align including maximum skip"
8889 cat >> confdefs.h
<<\EOF
8890 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8895 elif test x
$host = x
$target; then
8897 # Search the same directories that the installed compiler will
8898 # search. Else we may find the wrong assembler and lose. If we
8899 # do not find a suitable assembler binary, then try the user's
8902 # Also note we have to check MD_EXEC_PREFIX before checking the
8903 # user's path. Unfortunately, there is no good way to get at the
8904 # value of MD_EXEC_PREFIX here. So we do a brute force search
8905 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
8906 # to be fixed as part of the make/configure rewrite too.
8908 if test "x$exec_prefix" = xNONE
; then
8909 if test "x$prefix" = xNONE
; then
8910 test_prefix
=/usr
/local
8915 test_prefix
=$exec_prefix
8918 # If the loop below does not find an assembler, then use whatever
8919 # one we can find in the users's path.
8923 test_dirs
="$test_prefix/lib/gcc-lib/$target/$gcc_version \
8924 $test_prefix/lib/gcc-lib/$target \
8925 /usr/lib/gcc/$target/$gcc_version \
8926 /usr/lib/gcc/$target \
8927 $test_prefix/$target/bin/$target/$gcc_version \
8928 $test_prefix/$target/bin \
8933 /bsd43/usr/lib/cmplrs/cc \
8934 /usr/cross64/usr/bin \
8935 /usr/lib/cmplrs/cc \
8936 /sysv/usr/lib/cmplrs/cc \
8937 /svr4/usr/lib/cmplrs/cc \
8940 for dir
in $test_dirs; do
8941 if test -f $dir/as
$host_exeext; then
8942 gcc_cv_as
=$dir/as
$host_exeext
8947 if test x
$gcc_cv_as != x
; then
8948 # Check if we have .balign and .p2align
8949 echo ".balign 4" > conftest.s
8950 echo ".p2align 2" >> conftest.s
8951 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8952 gcc_cv_as_alignment_features
=".balign and .p2align"
8953 cat >> confdefs.h
<<\EOF
8954 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8958 rm -f conftest.s conftest.o
8959 # Check if specifying the maximum bytes to skip when
8960 # using .p2align is supported.
8961 echo ".p2align 4,,7" > conftest.s
8962 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8963 gcc_cv_as_alignment_features
=".p2align including maximum skip"
8964 cat >> confdefs.h
<<\EOF
8965 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8969 rm -f conftest.s conftest.o
8971 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
8973 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
8974 echo "configure:8975: checking assembler subsection support" >&5
8975 gcc_cv_as_subsections
=
8976 if test x
$gcc_cv_as != x
; then
8977 # Check if we have .subsection
8978 echo ".subsection 1" > conftest.s
8979 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8980 gcc_cv_as_subsections
=".subsection"
8981 if test -x nm
$host_exeext; then
8982 gcc_cv_nm
=.
/nm
$host_exeext
8983 elif test x
$host = x
$target; then
8985 gcc_cv_nm
=nm
$host_exeext
8987 if test x
$gcc_cv_nm != x
; then
8988 cat > conftest.s
<<EOF
8989 conftest_label1: .word 0
8991 conftest_label2: .word 0
8994 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8995 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
8996 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
8997 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1; then
9000 gcc_cv_as_subsections
="working .subsection -1"
9001 cat >> confdefs.h
<<\EOF
9002 #define HAVE_GAS_SUBSECTION_ORDERING 1
9009 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
9011 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
9013 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
9014 echo "configure:9015: checking assembler weak support" >&5
9016 if test x
$gcc_cv_as != x
; then
9017 # Check if we have .weak
9018 echo " .weak foobar" > conftest.s
9019 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9020 cat >> confdefs.h
<<\EOF
9021 #define HAVE_GAS_WEAK 1
9024 gcc_cv_as_weak
="yes"
9026 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
9028 echo "$ac_t""$gcc_cv_as_weak" 1>&6
9030 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
9031 echo "configure:9032: checking assembler hidden support" >&5
9033 if test x
$gcc_cv_as != x
; then
9034 # Check if we have .hidden
9035 echo " .hidden foobar" > conftest.s
9036 echo "foobar:" >> conftest.s
9037 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9038 cat >> confdefs.h
<<\EOF
9039 #define HAVE_GAS_HIDDEN 1
9042 gcc_cv_as_hidden
="yes"
9044 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
9046 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
9050 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
9051 echo "configure:9052: checking assembler .register pseudo-op support" >&5
9052 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
9053 echo $ac_n "(cached) $ac_c" 1>&6
9056 gcc_cv_as_register_pseudo_op
=unknown
9057 if test x
$gcc_cv_as != x
; then
9058 # Check if we have .register
9059 echo ".register %g2, #scratch" > conftest.s
9060 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9061 gcc_cv_as_register_pseudo_op
=yes
9063 gcc_cv_as_register_pseudo_op
=no
9065 rm -f conftest.s conftest.o
9070 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
9071 if test "x$gcc_cv_as_register_pseudo_op" = xyes
; then
9072 cat >> confdefs.h
<<\EOF
9073 #define HAVE_AS_REGISTER_PSEUDO_OP 1
9078 echo $ac_n "checking assembler supports -relax""... $ac_c" 1>&6
9079 echo "configure:9080: checking assembler supports -relax" >&5
9080 if eval "test \"`echo '$''{'gcc_cv_as_relax_opt'+set}'`\" = set"; then
9081 echo $ac_n "(cached) $ac_c" 1>&6
9084 gcc_cv_as_relax_opt
=unknown
9085 if test x
$gcc_cv_as != x
; then
9086 # Check if gas supports -relax
9087 echo ".text" > conftest.s
9088 if $gcc_cv_as -relax -o conftest.o conftest.s
> /dev
/null
2>&1; then
9089 gcc_cv_as_relax_opt
=yes
9091 gcc_cv_as_relax_opt
=no
9093 rm -f conftest.s conftest.o
9098 echo "$ac_t""$gcc_cv_as_relax_opt" 1>&6
9099 if test "x$gcc_cv_as_relax_opt" = xyes
; then
9100 cat >> confdefs.h
<<\EOF
9101 #define HAVE_AS_RELAX_OPTION 1
9108 echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
9109 echo "configure:9110: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
9110 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
9111 echo $ac_n "(cached) $ac_c" 1>&6
9114 if test -n "$gcc_cv_as"; then
9115 echo ".xword foo" > conftest.s
9116 gcc_cv_as_flags64
=no
9117 for flag
in "-xarch=v9" "-64 -Av9"; do
9118 if $gcc_cv_as $flag -o conftest.o conftest.s \
9119 > /dev
/null
2>&1; then
9120 gcc_cv_as_flags64
=$flag
9124 rm -f conftest.s conftest.o
9126 if test "$gas" = yes; then
9127 gcc_cv_as_flags64
="-64 -Av9"
9129 gcc_cv_as_flags64
="-xarch=v9"
9135 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
9136 if test "x$gcc_cv_as_flags64" = xno
; then
9138 tmake_file
=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
9139 dep_tmake_file
=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
9142 cat >> confdefs.h
<<EOF
9143 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
9148 *) gcc_cv_as_flags64
=${gcc_cv_as_flags64-no}
9152 if test "x$gcc_cv_as_flags64" != xno
; then
9153 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
9154 echo "configure:9155: checking for assembler offsetable %lo() support" >&5
9155 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
9156 echo $ac_n "(cached) $ac_c" 1>&6
9159 gcc_cv_as_offsetable_lo10
=unknown
9160 if test "x$gcc_cv_as" != x
; then
9161 # Check if assembler has offsetable %lo()
9162 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
9163 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
9164 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
9166 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
9167 > /dev
/null
2>&1; then
9168 if cmp conftest.o conftest1.o
> /dev
/null
2>&1; then
9169 gcc_cv_as_offsetable_lo10
=no
9171 gcc_cv_as_offsetable_lo10
=yes
9174 gcc_cv_as_offsetable_lo10
=no
9176 rm -f conftest.s conftest.o conftest1.s conftest1.o
9181 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
9182 if test "x$gcc_cv_as_offsetable_lo10" = xyes
; then
9183 cat >> confdefs.h
<<\EOF
9184 #define HAVE_AS_OFFSETABLE_LO10 1
9192 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
9193 echo "configure:9194: checking assembler instructions" >&5
9194 gcc_cv_as_instructions
=
9195 if test x
$gcc_cv_as != x
; then
9196 set "filds fists" "filds mem; fists mem"
9199 echo "$2" > conftest.s
9200 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9201 gcc_cv_as_instructions
=${gcc_cv_as_instructions}$1" "
9202 cat >> confdefs.h
<<EOF
9203 #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1
9209 rm -f conftest.s conftest.o
9211 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
9215 # Figure out what language subdirectories are present.
9216 # Look if the user specified --enable-languages="..."; if not, use
9217 # the environment variable $LANGUAGES if defined. $LANGUAGES might
9219 if test x
"${enable_languages+set}" != xset
; then
9220 if test x
"${LANGUAGES+set}" = xset
; then
9221 enable_languages
="`echo ${LANGUAGES} | tr ' ' ','`"
9223 enable_languages
=all
9226 if test x
"${enable_languages}" = x
; then
9227 { echo "configure: error: --enable-languages needs at least one argument" 1>&2; exit 1; }
9231 for lang
in ${srcdir}/*/config-lang.
in ..
9235 # The odd quoting in the next line works around
9236 # an apparent bug in bash 1.12 on linux.
9237 ${srcdir}/[*]/config-lang.
in) ;;
9239 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
9240 if test "x$lang_alias" = x
9242 echo "$lang doesn't set \$language." 1>&2
9245 if test x
"${enable_languages}" = xall
; then
9248 case "${enable_languages}" in
9249 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
9257 if test x"${add_this_lang}" = xyes; then
9259 ${srcdir}/ada/config-lang.in)
9260 if test x$gnat = xyes ; then
9261 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9265 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9273 # Make gthr-default.h if we have a thread file.
9275 if test $thread_file != single; then
9276 rm -f gthr-default.h
9277 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9278 gthread_flags
=-DHAVE_GTHR_DEFAULT
9282 # Find out what GC implementation we want, or may, use.
9283 # Check whether --with-gc or --without-gc was given.
9284 if test "${with_gc+set}" = set; then
9291 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
9295 if test $ac_cv_func_mmap_anywhere = yes \
9296 ||
test $ac_cv_func_valloc = yes; then
9304 echo "Using $GGC for garbage collection."
9306 # Build a new-abi (c++) system
9307 # Check whether --enable-new-gxx-abi or --disable-new-gxx-abi was given.
9308 if test "${enable_new_gxx_abi+set}" = set; then
9309 enableval
="$enable_new_gxx_abi"
9310 cat >> confdefs.h
<<\EOF
9311 #define ENABLE_NEW_GXX_ABI 1
9314 GXX_ABI_FLAG
='-fnew-abi'
9315 echo "Building a new-abi g++ compiler."
9321 # Build a new-libstdc++ system (ie libstdc++-v3)
9322 echo $ac_n "checking for libstdc++ to install""... $ac_c" 1>&6
9323 echo "configure:9324: checking for libstdc++ to install" >&5
9324 # Check whether --enable-libstdcxx-v3 or --disable-libstdcxx-v3 was given.
9325 if test "${enable_libstdcxx_v3+set}" = set; then
9326 enableval
="$enable_libstdcxx_v3"
9327 enable_libstdcxx_v3
=yes
9329 enable_libstdcxx_v3
=no
9333 if test x
$enable_libstdcxx_v3 = xyes
; then
9334 echo "$ac_t""v3" 1>&6
9337 echo "$ac_t""v2" 1>&6
9340 cat >> confdefs.h
<<EOF
9341 #define ENABLE_STD_NAMESPACE $ac_esn
9346 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
9347 echo "configure:9348: checking whether to enable maintainer-specific portions of Makefiles" >&5
9348 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9349 if test "${enable_maintainer_mode+set}" = set; then
9350 enableval
="$enable_maintainer_mode"
9351 maintainer_mode
=$enableval
9357 echo "$ac_t""$maintainer_mode" 1>&6
9359 if test "$maintainer_mode" = "yes"; then
9365 # Make empty files to contain the specs and options for each language.
9366 # Then add #include lines to for a compiler that has specs and/or options.
9371 rm -f specs.h options.h gencheck.h
9372 touch specs.h options.h gencheck.h
9373 for subdir
in .
$subdirs
9375 if test -f $srcdir/$subdir/lang-specs.h
; then
9376 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
9377 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
9379 if test -f $srcdir/$subdir/lang-options.h
; then
9380 echo "#include \"$subdir/lang-options.h\"" >>options.h
9381 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
9383 if test -f $srcdir/$subdir/$subdir-tree.def
; then
9384 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
9385 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
9389 # These (without "all_") are set in each config-lang.in.
9390 # `language' must be a single word so is spelled singularly.
9396 all_outputs
='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
9397 # List of language makefile fragments.
9402 # Add the language fragments.
9403 # Languages are added via two mechanisms. Some information must be
9404 # recorded in makefile variables, these are defined in config-lang.in.
9405 # We accumulate them and plug them into the main Makefile.
9406 # The other mechanism is a set of hooks for each of the main targets
9407 # like `clean', `install', etc.
9409 language_fragments
="Make-lang"
9410 language_hooks
="Make-hooks"
9413 for s
in ..
$subdirs
9425 .
${srcdir}/$s/config-lang.
in
9426 if test "x$language" = x
9428 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
9431 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
9432 all_languages
="$all_languages $language"
9433 if test "x$boot_language" = xyes
9435 all_boot_languages
="$all_boot_languages $language"
9437 all_compilers
="$all_compilers $compilers"
9438 all_stagestuff
="$all_stagestuff $stagestuff"
9439 all_diff_excludes
="$all_diff_excludes $diff_excludes"
9440 all_headers
="$all_headers $headers"
9441 all_outputs
="$all_outputs $outputs"
9442 if test x
$outputs = x
9444 oldstyle_subdirs
="$oldstyle_subdirs $s"
9446 all_lib2funcs
="$all_lib2funcs $lib2funcs"
9450 # Since we can't use `::' targets, we link each language in
9451 # with a set of hooks, reached indirectly via lang.${target}.
9455 target_list
="all.build all.cross start.encap rest.encap \
9457 install-normal install-common install-info install-man \
9459 mostlyclean clean distclean extraclean maintainer-clean \
9460 stage1 stage2 stage3 stage4"
9461 for t
in $target_list
9464 for lang
in ..
$all_languages
9466 if test $lang != ".."; then
9470 echo "lang.$t: $x" >> Make-hooks
9473 # If we're not building in srcdir, create .gdbinit.
9475 if test ! -f Makefile.
in; then
9476 echo "dir ." > .gdbinit
9477 echo "dir ${srcdir}" >> .gdbinit
9478 if test x
$gdb_needs_out_file_path = xyes
9480 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
9482 if test "x$subdirs" != x
; then
9485 echo "dir ${srcdir}/$s" >> .gdbinit
9488 echo "source ${srcdir}/.gdbinit" >> .gdbinit
9491 # Define variables host_canonical and build_canonical
9492 # because some Cygnus local changes in the Makefile depend on them.
9493 build_canonical
=${build}
9494 host_canonical
=${host}
9496 if test "${host}" != "${target}" ; then
9497 target_subdir
=${target}/
9503 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
9504 # absolute path for gcc_tooldir based on inserting the number of up-directory
9505 # movements required to get from $(exec_prefix) to $(prefix) into the basic
9506 # $(libsubdir)/@(unlibsubdir) based path.
9507 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
9508 # make and thus we'd get different behavior depending on where we built the
9510 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
9511 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
9513 # An explanation of the sed strings:
9514 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
9515 # -e 's|/$||' match a trailing forward slash and eliminates it
9516 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
9517 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
9519 # (*) Note this pattern overwrites the first character of the string
9520 # with a forward slash if one is not already present. This is not a
9521 # problem because the exact names of the sub-directories concerned is
9522 # unimportant, just the number of them matters.
9524 # The practical upshot of these patterns is like this:
9526 # prefix exec_prefix result
9527 # ------ ----------- ------
9529 # /foo/ /foo/bar ../
9530 # /foo /foo/bar/ ../
9531 # /foo/ /foo/bar/ ../
9532 # /foo /foo/bar/ugg ../../
9535 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
9540 # Nothing to do for FLOAT_H, float_format already handled.
9544 # Process the language and host/target makefile fragments.
9545 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
9547 # Substitute configuration variables
9606 # Echo that links are built
9607 if test x
$host = x
$target
9615 if test x
$host != x
$build
9617 str3
=" on a $build system"
9620 if test "x$str2" != x ||
test "x$str3" != x
9625 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
9627 if test "x$str2" != x ||
test "x$str3" != x
9629 echo " ${str2}${str3}." 1>&2
9632 # Truncate the target if necessary
9633 if test x
$host_truncate_target != x
; then
9634 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
9637 # Configure the subdirectories
9638 # AC_CONFIG_SUBDIRS($subdirs)
9640 # Create the Makefile
9641 # and configure language subdirectories
9643 cat > confcache
<<\EOF
9644 # This file is a shell script that caches the results of configure
9645 # tests run on this system so they can be shared between configure
9646 # scripts and configure runs. It is not useful on other systems.
9647 # If it contains results you don't want to keep, you may remove or edit it.
9649 # By default, configure uses ./config.cache as the cache file,
9650 # creating it if it does not exist already. You can give configure
9651 # the --cache-file=FILE option to use a different cache file; that is
9652 # what configure does when it calls configure scripts in
9653 # subdirectories, so they share the cache.
9654 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9655 # config.status only pays attention to the cache file if you give it the
9656 # --recheck option to rerun configure.
9659 # The following way of writing the cache mishandles newlines in values,
9660 # but we know of no workaround that is simple, portable, and efficient.
9661 # So, don't put newlines in cache variables' values.
9662 # Ultrix sh set writes to stderr and can't be redirected directly,
9663 # and sets the high bit in the cache file unless we assign to the vars.
9665 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9667 # `set' does not quote correctly, so add quotes (double-quote substitution
9668 # turns \\\\ into \\, and sed turns \\ into \).
9670 -e "s/'/'\\\\''/g" \
9671 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9674 # `set' quotes correctly as required by POSIX, so do not add quotes.
9675 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9678 if cmp -s $cache_file confcache
; then
9681 if test -w $cache_file; then
9682 echo "updating cache $cache_file"
9683 cat confcache
> $cache_file
9685 echo "not updating unwritable cache $cache_file"
9690 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9692 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9693 # Let make expand exec_prefix.
9694 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9696 # Any assignment to VPATH causes Sun make to only execute
9697 # the first set of double-colon rules, so remove it if not needed.
9698 # If there is a colon in the path, we need to keep it.
9699 if test "x$srcdir" = x.
; then
9700 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
9703 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9705 DEFS
=-DHAVE_CONFIG_H
9707 # Without the "./", some shells look in PATH for config.status.
9708 : ${CONFIG_STATUS=./config.status}
9710 echo creating
$CONFIG_STATUS
9711 rm -f $CONFIG_STATUS
9712 cat > $CONFIG_STATUS <<EOF
9714 # Generated automatically by configure.
9715 # Run this file to recreate the current configuration.
9716 # This directory was configured as follows,
9717 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9719 # $0 $ac_configure_args
9721 # Compiler output produced by configure, useful for debugging
9722 # configure, is in ./config.log if it exists.
9724 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9727 case "\$ac_option" in
9728 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9729 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9730 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9731 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9732 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9734 -help | --help | --hel | --he | --h)
9735 echo "\$ac_cs_usage"; exit 0 ;;
9736 *) echo "\$ac_cs_usage"; exit 1 ;;
9740 ac_given_srcdir=$srcdir
9742 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9744 cat >> $CONFIG_STATUS <<EOF
9746 # Protect against being on the right side of a sed subst in config.status.
9747 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9748 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9752 s%@CFLAGS@%$CFLAGS%g
9753 s%@CPPFLAGS@%$CPPFLAGS%g
9754 s%@CXXFLAGS@%$CXXFLAGS%g
9755 s%@FFLAGS@%$FFLAGS%g
9757 s%@LDFLAGS@%$LDFLAGS%g
9759 s%@exec_prefix@%$exec_prefix%g
9760 s%@prefix@%$prefix%g
9761 s%@program_transform_name@%$program_transform_name%g
9762 s%@bindir@%$bindir%g
9763 s%@sbindir@%$sbindir%g
9764 s%@libexecdir@%$libexecdir%g
9765 s%@datadir@%$datadir%g
9766 s%@sysconfdir@%$sysconfdir%g
9767 s%@sharedstatedir@%$sharedstatedir%g
9768 s%@localstatedir@%$localstatedir%g
9769 s%@libdir@%$libdir%g
9770 s%@includedir@%$includedir%g
9771 s%@oldincludedir@%$oldincludedir%g
9772 s%@infodir@%$infodir%g
9773 s%@mandir@%$mandir%g
9775 s%@host_alias@%$host_alias%g
9776 s%@host_cpu@%$host_cpu%g
9777 s%@host_vendor@%$host_vendor%g
9778 s%@host_os@%$host_os%g
9779 s%@target@%$target%g
9780 s%@target_alias@%$target_alias%g
9781 s%@target_cpu@%$target_cpu%g
9782 s%@target_vendor@%$target_vendor%g
9783 s%@target_os@%$target_os%g
9785 s%@build_alias@%$build_alias%g
9786 s%@build_cpu@%$build_cpu%g
9787 s%@build_vendor@%$build_vendor%g
9788 s%@build_os@%$build_os%g
9790 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
9791 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
9792 s%@stage2_warn_cflags@%$stage2_warn_cflags%g
9793 s%@SET_MAKE@%$SET_MAKE%g
9796 s%@LEXLIB@%$LEXLIB%g
9799 s%@RANLIB@%$RANLIB%g
9801 s%@INSTALL@%$INSTALL%g
9802 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9803 s%@INSTALL_DATA@%$INSTALL_DATA%g
9806 s%@MAKEINFO@%$MAKEINFO%g
9807 s%@BUILD_INFO@%$BUILD_INFO%g
9808 s%@INSTALL_INFO@%$INSTALL_INFO%g
9809 s%@TARGET_GETGROUPS_T@%$TARGET_GETGROUPS_T%g
9810 s%@vfprintf@%$vfprintf%g
9811 s%@doprint@%$doprint%g
9812 s%@manext@%$manext%g
9813 s%@objext@%$objext%g
9814 s%@PACKAGE@%$PACKAGE%g
9815 s%@VERSION@%$VERSION%g
9816 s%@ALLOCA@%$ALLOCA%g
9817 s%@USE_NLS@%$USE_NLS%g
9818 s%@MSGFMT@%$MSGFMT%g
9819 s%@GMSGFMT@%$GMSGFMT%g
9820 s%@XGETTEXT@%$XGETTEXT%g
9821 s%@GENCAT@%$GENCAT%g
9822 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9823 s%@CATALOGS@%$CATALOGS%g
9824 s%@CATOBJEXT@%$CATOBJEXT%g
9825 s%@DATADIRNAME@%$DATADIRNAME%g
9826 s%@GMOFILES@%$GMOFILES%g
9827 s%@INSTOBJEXT@%$INSTOBJEXT%g
9828 s%@INTLDEPS@%$INTLDEPS%g
9829 s%@INTLLIBS@%$INTLLIBS%g
9830 s%@INTLOBJS@%$INTLOBJS%g
9831 s%@POFILES@%$POFILES%g
9833 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
9835 s%@GT_YES@%$GT_YES%g
9836 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9838 s%@inhibit_libc@%$inhibit_libc%g
9839 s%@gthread_flags@%$gthread_flags%g
9841 s%@GXX_ABI_FLAG@%$GXX_ABI_FLAG%g
9843 s%@build_canonical@%$build_canonical%g
9844 s%@host_canonical@%$host_canonical%g
9845 s%@target_subdir@%$target_subdir%g
9846 s%@gcc_tooldir@%$gcc_tooldir%g
9847 s%@dollar@%$dollar%g
9848 s%@objdir@%$objdir%g
9849 s%@subdirs@%$subdirs%g
9850 s%@all_boot_languages@%$all_boot_languages%g
9851 s%@all_compilers@%$all_compilers%g
9852 s%@all_diff_excludes@%$all_diff_excludes%g
9853 s%@all_headers@%$all_headers%g
9854 s%@all_lang_makefiles@%$all_lang_makefiles%g
9855 s%@all_languages@%$all_languages%g
9856 s%@all_lib2funcs@%$all_lib2funcs%g
9857 s%@all_stagestuff@%$all_stagestuff%g
9858 s%@build_exeext@%$build_exeext%g
9859 s%@build_install_headers_dir@%$build_install_headers_dir%g
9860 s%@build_xm_file_list@%$build_xm_file_list%g
9861 s%@cc_set_by_configure@%$cc_set_by_configure%g
9862 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
9863 s%@cpp_install_dir@%$cpp_install_dir%g
9864 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
9865 s%@dep_tmake_file@%$dep_tmake_file%g
9866 s%@extra_c_flags@%$extra_c_flags%g
9867 s%@extra_c_objs@%$extra_c_objs%g
9868 s%@extra_cpp_objs@%$extra_cpp_objs%g
9869 s%@extra_cxx_objs@%$extra_cxx_objs%g
9870 s%@extra_headers_list@%$extra_headers_list%g
9871 s%@extra_objs@%$extra_objs%g
9872 s%@extra_parts@%$extra_parts%g
9873 s%@extra_passes@%$extra_passes%g
9874 s%@extra_programs@%$extra_programs%g
9875 s%@float_h_file@%$float_h_file%g
9876 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
9877 s%@gcc_version@%$gcc_version%g
9878 s%@gcc_version_trigger@%$gcc_version_trigger%g
9879 s%@host_exeext@%$host_exeext%g
9880 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
9881 s%@host_xm_file_list@%$host_xm_file_list%g
9882 s%@install@%$install%g
9883 s%@lang_options_files@%$lang_options_files%g
9884 s%@lang_specs_files@%$lang_specs_files%g
9885 s%@lang_tree_files@%$lang_tree_files%g
9886 s%@local_prefix@%$local_prefix%g
9887 s%@maybe_use_collect2@%$maybe_use_collect2%g
9888 s%@md_file@%$md_file%g
9889 s%@objc_boehm_gc@%$objc_boehm_gc%g
9890 s%@out_file@%$out_file%g
9891 s%@out_object_file@%$out_object_file%g
9892 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
9893 s%@symbolic_link@%$symbolic_link%g
9894 s%@thread_file@%$thread_file%g
9895 s%@tm_file_list@%$tm_file_list%g
9896 s%@will_use_collect2@%$will_use_collect2%g
9897 /@target_overrides@/r $target_overrides
9898 s%@target_overrides@%%g
9899 /@host_overrides@/r $host_overrides
9900 s%@host_overrides@%%g
9901 s%@cross_defines@%$cross_defines%g
9902 /@cross_overrides@/r $cross_overrides
9903 s%@cross_overrides@%%g
9904 /@build_overrides@/r $build_overrides
9905 s%@build_overrides@%%g
9906 /@language_fragments@/r $language_fragments
9907 s%@language_fragments@%%g
9908 /@language_hooks@/r $language_hooks
9909 s%@language_hooks@%%g
9914 cat >> $CONFIG_STATUS <<\EOF
9916 # Split the substitutions into bite-sized pieces for seds with
9917 # small command number limits, like on Digital OSF/1 and HP-UX.
9918 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
9919 ac_file
=1 # Number of current file.
9920 ac_beg
=1 # First line for current file.
9921 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
9924 while $ac_more_lines; do
9925 if test $ac_beg -gt 1; then
9926 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
9928 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
9930 if test ! -s conftest.s
$ac_file; then
9932 rm -f conftest.s
$ac_file
9934 if test -z "$ac_sed_cmds"; then
9935 ac_sed_cmds
="sed -f conftest.s$ac_file"
9937 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
9939 ac_file
=`expr $ac_file + 1`
9941 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
9944 if test -z "$ac_sed_cmds"; then
9949 cat >> $CONFIG_STATUS <<EOF
9951 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
9953 cat >> $CONFIG_STATUS <<\EOF
9954 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
9955 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9957 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9958 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9959 *) ac_file_in
="${ac_file}.in" ;;
9962 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9964 # Remove last slash and all that follows it. Not all systems have dirname.
9965 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9966 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
9967 # The file is in a subdirectory.
9968 test ! -d "$ac_dir" && mkdir
"$ac_dir"
9969 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
9970 # A "../" for each directory in $ac_dir_suffix.
9971 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9973 ac_dir_suffix
= ac_dots
=
9976 case "$ac_given_srcdir" in
9978 if test -z "$ac_dots"; then top_srcdir
=.
9979 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9980 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
9982 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9983 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9987 echo creating
"$ac_file"
9989 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9991 *Makefile
*) ac_comsub
="1i\\
9992 # $configure_input" ;;
9996 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9998 s%@configure_input@%$configure_input%g
9999 s%@srcdir@%$srcdir%g
10000 s%@top_srcdir@%$top_srcdir%g
10001 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
10005 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10006 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10008 # ac_d sets the value in "#define NAME VALUE" lines.
10009 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10010 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
10013 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10014 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10015 ac_uB
='\([ ]\)%\1#\2define\3'
10018 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10019 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10020 ac_eB
='$%\1#\2define\3'
10024 if test "${CONFIG_HEADERS+set}" != set; then
10026 cat >> $CONFIG_STATUS <<EOF
10027 CONFIG_HEADERS="auto-host.h:config.in"
10029 cat >> $CONFIG_STATUS <<\EOF
10031 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
10032 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10034 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
10035 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
10036 *) ac_file_in
="${ac_file}.in" ;;
10039 echo creating
$ac_file
10041 rm -f conftest.frag conftest.
in conftest.out
10042 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10043 cat $ac_file_inputs > conftest.
in
10047 # Transform confdefs.h into a sed script conftest.vals that substitutes
10048 # the proper values into config.h.in to produce config.h. And first:
10049 # Protect against being on the right side of a sed subst in config.status.
10050 # Protect against being in an unquoted here document in config.status.
10051 rm -f conftest.vals
10052 cat > conftest.hdr
<<\EOF
10055 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10059 sed -n -f conftest.hdr confdefs.h > conftest.vals
10062 # This sed command replaces #undef with comments. This is necessary, for
10063 # example, in the case of _POSIX_SOURCE, which is predefined and required
10064 # on some systems where configure will not decide to define it.
10065 cat >> conftest.vals <<\EOF
10066 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10069 # Break up conftest.vals because some shells have a limit on
10070 # the size of here documents, and old seds have small limits too.
10072 rm -f conftest.tail
10075 ac_lines=`grep -c . conftest.vals
`
10076 # grep -c gives empty output for an empty file on some AIX systems.
10077 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10078 # Write a limited-size here document to conftest.frag.
10079 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10080 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10082 sed -f conftest.frag conftest.in > conftest.out
10084 mv conftest.out conftest.in
10085 ' >> $CONFIG_STATUS
10086 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10087 rm -f conftest.vals
10088 mv conftest.tail conftest.vals
10090 rm -f conftest.vals
10092 cat >> $CONFIG_STATUS <<\EOF
10093 rm -f conftest.frag conftest.h
10094 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10095 cat conftest.in >> conftest.h
10097 if cmp -s $ac_file conftest.h 2>/dev/null; then
10098 echo "$ac_file is unchanged"
10101 # Remove last slash and all that follows it. Not all systems have dirname.
10102 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
10103 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10104 # The file is in a subdirectory.
10105 test ! -d "$ac_dir" && mkdir "$ac_dir"
10108 mv conftest.h $ac_file
10114 cat >> $CONFIG_STATUS <<EOF
10115 ac_sources="$nls_cv_header_libgt"
10116 ac_dests="$nls_cv_header_intl"
10119 cat >> $CONFIG_STATUS <<\EOF
10120 srcdir=$ac_given_srcdir
10121 while test -n "$ac_sources"; do
10122 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
10123 set $ac_sources; ac_source=$1; shift; ac_sources=$*
10125 echo "linking $srcdir/$ac_source to $ac_dest"
10127 if test ! -r $srcdir/$ac_source; then
10128 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
10132 # Make relative symlinks.
10133 # Remove last slash and all that follows it. Not all systems have dirname.
10134 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
10135 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
10136 # The dest file is in a subdirectory.
10137 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
10138 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
10139 # A "../" for each directory in $ac_dest_dir_suffix.
10140 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
10142 ac_dest_dir_suffix= ac_dots=
10146 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
10147 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
10150 # Make a symlink if possible; otherwise try a hard link.
10151 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
10152 ln $srcdir/$ac_source $ac_dest; then :
10154 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
10158 cat >> $CONFIG_STATUS <<EOF
10164 target_alias='${target_alias}'
10166 subdirs='${subdirs}'
10167 oldstyle_subdirs='${oldstyle_subdirs}'
10168 symbolic_link='${symbolic_link}'
10169 program_transform_set='${program_transform_set}'
10170 program_transform_name='${program_transform_name}'
10171 dep_host_xmake_file='${dep_host_xmake_file}'
10172 host_xmake_file='${host_xmake_file}'
10173 dep_tmake_file='${dep_tmake_file}'
10174 tmake_file='${tmake_file}'
10175 thread_file='${thread_file}'
10176 gcc_version='${gcc_version}'
10177 gcc_version_trigger='${gcc_version_trigger}'
10178 local_prefix='${local_prefix}'
10179 build_install_headers_dir='${build_install_headers_dir}'
10180 build_exeext='${build_exeext}'
10181 host_exeext='${host_exeext}'
10182 out_file='${out_file}'
10183 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
10184 SET_MAKE='${SET_MAKE}'
10185 target_list='${target_list}'
10186 target_overrides='${target_overrides}'
10187 host_overrides='${host_overrides}'
10188 cross_defines='${cross_defines}'
10189 cross_overrides='${cross_overrides}'
10190 build_overrides='${build_overrides}'
10191 cpp_install_dir='${cpp_install_dir}'
10194 cat >> $CONFIG_STATUS <<\EOF
10195 case "$CONFIG_FILES" in *po/Makefile.in*)
10196 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
10199 . $srcdir/configure.lang
10200 case x$CONFIG_HEADERS in
10201 xauto-host.h:config.in)
10204 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
10205 # bootstrapping and the installation procedure can still use
10206 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
10207 # FLAGS_TO_PASS has been modified to solve the problem there.
10208 # This is virtually a duplicate of what happens in configure.lang; we do
10209 # an extra check to make sure this only happens if ln -s can be used.
10210 if test "$symbolic_link" = "ln -s"; then
10211 for d in .. ${subdirs} ; do
10212 if test $d != ..; then
10215 for t in stage1 stage2 stage3 stage4 include
10218 $symbolic_link ../$t $t 2>/dev/null
10224 # Avoid having to add intl to our include paths.
10225 if test -f intl/libintl.h; then
10226 echo creating libintl.h
10227 echo '#include "intl/libintl.h"' >libintl.h
10232 chmod +x $CONFIG_STATUS
10233 rm -fr confdefs* $ac_clean_files
10234 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1