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 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2546 echo "configure:2547: checking for vprintf" >&5
2547 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2548 echo $ac_n "(cached) $ac_c" 1>&6
2550 cat > conftest.
$ac_ext <<EOF
2551 #line 2552 "configure"
2552 #include "confdefs.h"
2553 /* System header to define __stub macros and hopefully few prototypes,
2554 which can conflict with char vprintf(); below. */
2556 /* Override any gcc2 internal prototype to avoid an error. */
2557 /* We use char because int might match the return type of a gcc2
2558 builtin and then its argument prototype would still apply. */
2563 /* The GNU C library defines this for functions which it implements
2564 to always fail with ENOSYS. Some functions are actually named
2565 something starting with __ and the normal name is an alias. */
2566 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2574 if { (eval echo configure
:2575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2576 eval "ac_cv_func_vprintf=yes"
2578 echo "configure: failed program was:" >&5
2579 cat conftest.
$ac_ext >&5
2581 eval "ac_cv_func_vprintf=no"
2586 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2587 echo "$ac_t""yes" 1>&6
2588 cat >> confdefs.h
<<\EOF
2589 #define HAVE_VPRINTF 1
2593 echo "$ac_t""no" 1>&6
2596 if test "$ac_cv_func_vprintf" != yes; then
2597 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2598 echo "configure:2599: checking for _doprnt" >&5
2599 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2600 echo $ac_n "(cached) $ac_c" 1>&6
2602 cat > conftest.
$ac_ext <<EOF
2603 #line 2604 "configure"
2604 #include "confdefs.h"
2605 /* System header to define __stub macros and hopefully few prototypes,
2606 which can conflict with char _doprnt(); below. */
2608 /* Override any gcc2 internal prototype to avoid an error. */
2609 /* We use char because int might match the return type of a gcc2
2610 builtin and then its argument prototype would still apply. */
2615 /* The GNU C library defines this for functions which it implements
2616 to always fail with ENOSYS. Some functions are actually named
2617 something starting with __ and the normal name is an alias. */
2618 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2626 if { (eval echo configure
:2627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2628 eval "ac_cv_func__doprnt=yes"
2630 echo "configure: failed program was:" >&5
2631 cat conftest.
$ac_ext >&5
2633 eval "ac_cv_func__doprnt=no"
2638 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2639 echo "$ac_t""yes" 1>&6
2640 cat >> confdefs.h
<<\EOF
2641 #define HAVE_DOPRNT 1
2645 echo "$ac_t""no" 1>&6
2652 if test $ac_cv_func_vprintf != yes ; then
2654 if test $ac_cv_func__doprnt != yes ; then
2661 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2662 echo "configure:2663: checking whether the printf functions support %p" >&5
2663 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2664 echo $ac_n "(cached) $ac_c" 1>&6
2666 if test "$cross_compiling" = yes; then
2667 gcc_cv_func_printf_ptr
=no
2669 cat > conftest.
$ac_ext <<EOF
2670 #line 2671 "configure"
2671 #include "confdefs.h"
2677 char *p = buf, *q = NULL;
2678 sprintf(buf, "%p", p);
2679 sscanf(buf, "%p", &q);
2683 if { (eval echo configure
:2684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2685 gcc_cv_func_printf_ptr
=yes
2687 echo "configure: failed program was:" >&5
2688 cat conftest.
$ac_ext >&5
2690 gcc_cv_func_printf_ptr
=no
2695 rm -f core core.
* *.core
2698 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2699 if test $gcc_cv_func_printf_ptr = yes ; then
2700 cat >> confdefs.h
<<\EOF
2701 #define HAVE_PRINTF_PTR 1
2709 # Under some versions of uwin, vfork is notoriously buggy and the test
2710 # can hang configure; on other versions, vfork exists just as a stub.
2711 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2712 ac_cv_func_vfork_works
=no
2715 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2716 echo "configure:2717: checking for pid_t" >&5
2717 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2718 echo $ac_n "(cached) $ac_c" 1>&6
2720 cat > conftest.
$ac_ext <<EOF
2721 #line 2722 "configure"
2722 #include "confdefs.h"
2723 #include <sys/types.h>
2729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2730 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2732 ac_cv_type_pid_t
=yes
2740 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2741 if test $ac_cv_type_pid_t = no
; then
2742 cat >> confdefs.h
<<\EOF
2748 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2749 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2750 echo "configure:2751: checking for vfork.h" >&5
2751 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2752 echo $ac_n "(cached) $ac_c" 1>&6
2754 cat > conftest.
$ac_ext <<EOF
2755 #line 2756 "configure"
2756 #include "confdefs.h"
2759 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2760 { (eval echo configure
:2761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2761 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2762 if test -z "$ac_err"; then
2764 eval "ac_cv_header_$ac_safe=yes"
2767 echo "configure: failed program was:" >&5
2768 cat conftest.
$ac_ext >&5
2770 eval "ac_cv_header_$ac_safe=no"
2774 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2775 echo "$ac_t""yes" 1>&6
2776 cat >> confdefs.h
<<\EOF
2777 #define HAVE_VFORK_H 1
2781 echo "$ac_t""no" 1>&6
2784 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2785 echo "configure:2786: checking for working vfork" >&5
2786 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2787 echo $ac_n "(cached) $ac_c" 1>&6
2789 if test "$cross_compiling" = yes; then
2790 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2791 echo "configure:2792: checking for vfork" >&5
2792 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2793 echo $ac_n "(cached) $ac_c" 1>&6
2795 cat > conftest.
$ac_ext <<EOF
2796 #line 2797 "configure"
2797 #include "confdefs.h"
2798 /* System header to define __stub macros and hopefully few prototypes,
2799 which can conflict with char vfork(); below. */
2801 /* Override any gcc2 internal prototype to avoid an error. */
2802 /* We use char because int might match the return type of a gcc2
2803 builtin and then its argument prototype would still apply. */
2808 /* The GNU C library defines this for functions which it implements
2809 to always fail with ENOSYS. Some functions are actually named
2810 something starting with __ and the normal name is an alias. */
2811 #if defined (__stub_vfork) || defined (__stub___vfork)
2819 if { (eval echo configure
:2820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2821 eval "ac_cv_func_vfork=yes"
2823 echo "configure: failed program was:" >&5
2824 cat conftest.
$ac_ext >&5
2826 eval "ac_cv_func_vfork=no"
2831 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2832 echo "$ac_t""yes" 1>&6
2835 echo "$ac_t""no" 1>&6
2838 ac_cv_func_vfork_works
=$ac_cv_func_vfork
2840 cat > conftest.
$ac_ext <<EOF
2841 #line 2842 "configure"
2842 #include "confdefs.h"
2843 /* Thanks to Paul Eggert for this test. */
2845 #include <sys/types.h>
2846 #include <sys/stat.h>
2847 #ifdef HAVE_UNISTD_H
2853 /* On some sparc systems, changes by the child to local and incoming
2854 argument registers are propagated back to the parent.
2855 The compiler is told about this with #include <vfork.h>,
2856 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2857 Test for this by using a static variable whose address
2858 is put into a register that is clobbered by the vfork. */
2861 sparc_address_test (int arg)
2863 sparc_address_test (arg) int arg;
2881 pid_t parent = getpid ();
2884 sparc_address_test ();
2889 /* Here is another test for sparc vfork register problems.
2890 This test uses lots of local variables, at least
2891 as many local variables as main has allocated so far
2892 including compiler temporaries. 4 locals are enough for
2893 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2894 A buggy compiler should reuse the register of parent
2895 for one of the local variables, since it will think that
2896 parent can't possibly be used any more in this routine.
2897 Assigning to the local variable will thus munge parent
2898 in the parent process. */
2900 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2901 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2902 /* Convince the compiler that p..p7 are live; otherwise, it might
2903 use the same hardware register for all 8 local variables. */
2904 if (p != p1 || p != p2 || p != p3 || p != p4
2905 || p != p5 || p != p6 || p != p7)
2908 /* On some systems (e.g. IRIX 3.3),
2909 vfork doesn't separate parent from child file descriptors.
2910 If the child closes a descriptor before it execs or exits,
2911 this munges the parent's descriptor as well.
2912 Test for this by closing stdout in the child. */
2913 _exit(close(fileno(stdout)) != 0);
2918 while (wait(&status) != child)
2921 /* Was there some problem with vforking? */
2924 /* Did the child fail? (This shouldn't happen.) */
2927 /* Did the vfork/compiler bug occur? */
2928 || parent != getpid()
2930 /* Did the file descriptor bug occur? */
2931 || fstat(fileno(stdout), &st) != 0
2936 if { (eval echo configure
:2937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2938 ac_cv_func_vfork_works
=yes
2940 echo "configure: failed program was:" >&5
2941 cat conftest.
$ac_ext >&5
2943 ac_cv_func_vfork_works
=no
2950 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2951 if test $ac_cv_func_vfork_works = no
; then
2952 cat >> confdefs.h
<<\EOF
2958 for ac_hdr
in unistd.h
2960 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2961 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2962 echo "configure:2963: checking for $ac_hdr" >&5
2963 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2964 echo $ac_n "(cached) $ac_c" 1>&6
2966 cat > conftest.
$ac_ext <<EOF
2967 #line 2968 "configure"
2968 #include "confdefs.h"
2971 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2972 { (eval echo configure
:2973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2973 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2974 if test -z "$ac_err"; then
2976 eval "ac_cv_header_$ac_safe=yes"
2979 echo "configure: failed program was:" >&5
2980 cat conftest.
$ac_ext >&5
2982 eval "ac_cv_header_$ac_safe=no"
2986 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2987 echo "$ac_t""yes" 1>&6
2988 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2989 cat >> confdefs.h
<<EOF
2990 #define $ac_tr_hdr 1
2994 echo "$ac_t""no" 1>&6
2998 for ac_func
in getpagesize
3000 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3001 echo "configure:3002: checking for $ac_func" >&5
3002 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3003 echo $ac_n "(cached) $ac_c" 1>&6
3005 cat > conftest.
$ac_ext <<EOF
3006 #line 3007 "configure"
3007 #include "confdefs.h"
3008 /* System header to define __stub macros and hopefully few prototypes,
3009 which can conflict with char $ac_func(); below. */
3011 /* Override any gcc2 internal prototype to avoid an error. */
3012 /* We use char because int might match the return type of a gcc2
3013 builtin and then its argument prototype would still apply. */
3018 /* The GNU C library defines this for functions which it implements
3019 to always fail with ENOSYS. Some functions are actually named
3020 something starting with __ and the normal name is an alias. */
3021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3029 if { (eval echo configure
:3030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3031 eval "ac_cv_func_$ac_func=yes"
3033 echo "configure: failed program was:" >&5
3034 cat conftest.
$ac_ext >&5
3036 eval "ac_cv_func_$ac_func=no"
3041 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3042 echo "$ac_t""yes" 1>&6
3043 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3044 cat >> confdefs.h
<<EOF
3045 #define $ac_tr_func 1
3049 echo "$ac_t""no" 1>&6
3053 echo $ac_n "checking for working mmap which provides zeroed pages anywhere""... $ac_c" 1>&6
3054 echo "configure:3055: checking for working mmap which provides zeroed pages anywhere" >&5
3055 if eval "test \"`echo '$''{'ac_cv_func_mmap_anywhere'+set}'`\" = set"; then
3056 echo $ac_n "(cached) $ac_c" 1>&6
3058 if test "$cross_compiling" = yes; then
3059 ac_cv_func_mmap_anywhere
=no
3061 cat > conftest.
$ac_ext <<EOF
3062 #line 3063 "configure"
3063 #include "confdefs.h"
3065 /* Test by Richard Henderson and Alexandre Oliva.
3066 Check whether mmap MAP_ANONYMOUS or mmap from /dev/zero works. */
3067 #include <sys/types.h>
3069 #include <sys/mman.h>
3071 #if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
3072 # define MAP_ANONYMOUS MAP_ANON
3075 /* This mess was copied from the GNU getpagesize.h. */
3076 #ifndef HAVE_GETPAGESIZE
3077 # ifdef HAVE_UNISTD_H
3078 # include <unistd.h>
3081 /* Assume that all systems that can run configure have sys/param.h. */
3082 # ifndef HAVE_SYS_PARAM_H
3083 # define HAVE_SYS_PARAM_H 1
3086 # ifdef _SC_PAGESIZE
3087 # define getpagesize() sysconf(_SC_PAGESIZE)
3088 # else /* no _SC_PAGESIZE */
3089 # ifdef HAVE_SYS_PARAM_H
3090 # include <sys/param.h>
3091 # ifdef EXEC_PAGESIZE
3092 # define getpagesize() EXEC_PAGESIZE
3093 # else /* no EXEC_PAGESIZE */
3095 # define getpagesize() NBPG * CLSIZE
3098 # endif /* no CLSIZE */
3099 # else /* no NBPG */
3101 # define getpagesize() NBPC
3102 # else /* no NBPC */
3104 # define getpagesize() PAGESIZE
3105 # endif /* PAGESIZE */
3106 # endif /* no NBPC */
3107 # endif /* no NBPG */
3108 # endif /* no EXEC_PAGESIZE */
3109 # else /* no HAVE_SYS_PARAM_H */
3110 # define getpagesize() 8192 /* punt totally */
3111 # endif /* no HAVE_SYS_PARAM_H */
3112 # endif /* no _SC_PAGESIZE */
3114 #endif /* no HAVE_GETPAGESIZE */
3121 #ifndef MAP_ANONYMOUS
3122 fd = open("/dev/zero", O_RDWR);
3128 #ifdef MAP_ANONYMOUS
3129 x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE,
3130 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
3132 x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
3134 if (x == (char *) -1)
3139 if (munmap(x, pg) < 0)
3145 if { (eval echo configure
:3146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3147 ac_cv_func_mmap_anywhere
=yes
3149 echo "configure: failed program was:" >&5
3150 cat conftest.
$ac_ext >&5
3152 ac_cv_func_mmap_anywhere
=no
3159 echo "$ac_t""$ac_cv_func_mmap_anywhere" 1>&6
3160 if test $ac_cv_func_mmap_anywhere = yes; then
3161 cat >> confdefs.h
<<\EOF
3162 #define HAVE_MMAP_ANYWHERE 1
3167 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
3168 echo "configure:3169: checking for working mmap of a file" >&5
3169 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
3170 echo $ac_n "(cached) $ac_c" 1>&6
3172 # Create a file one thousand bytes long.
3173 for i
in 1 2 3 4 5 6 7 8 9 0
3174 do for j
in 1 2 3 4 5 6 7 8 9 0
3177 done > conftestdata$$
3179 if test "$cross_compiling" = yes; then
3180 ac_cv_func_mmap_file
=no
3182 cat > conftest.
$ac_ext <<EOF
3183 #line 3184 "configure"
3184 #include "confdefs.h"
3186 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
3187 Richard Henderson and Alexandre Oliva.
3188 Check whether read-only mmap of a plain file works. */
3189 #include <sys/types.h>
3190 #include <sys/stat.h>
3192 #include <sys/mman.h>
3200 fd = open("conftestdata$$", O_RDONLY);
3204 if (fstat (fd, &st))
3207 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
3208 if (x == (char *) -1)
3211 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
3214 if (munmap(x, st.st_size) < 0)
3220 if { (eval echo configure
:3221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3222 ac_cv_func_mmap_file
=yes
3224 echo "configure: failed program was:" >&5
3225 cat conftest.
$ac_ext >&5
3227 ac_cv_func_mmap_file
=no
3234 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
3235 if test $ac_cv_func_mmap_file = yes; then
3236 cat >> confdefs.h
<<\EOF
3237 #define HAVE_MMAP_FILE 1
3243 # We will need to find libiberty.h and ansidecl.h
3244 saved_CFLAGS
="$CFLAGS"
3245 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
3246 for ac_func
in bcopy bzero bcmp \
3247 index rindex getenv atol sbrk abort atof getcwd getwd \
3248 strsignal putc_unlocked fputs_unlocked strstr environ \
3249 malloc realloc calloc free
basename getopt
3251 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3252 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3253 echo "configure:3254: checking whether $ac_func is declared" >&5
3254 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3255 echo $ac_n "(cached) $ac_c" 1>&6
3257 cat > conftest.
$ac_ext <<EOF
3258 #line 3259 "configure"
3259 #include "confdefs.h"
3260 #include "gansidecl.h"
3265 char *(*pfn) = (char *(*)) $ac_func ;
3269 if { (eval echo configure
:3270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3271 eval "gcc_cv_have_decl_$ac_func=yes"
3273 echo "configure: failed program was:" >&5
3274 cat conftest.
$ac_ext >&5
3276 eval "gcc_cv_have_decl_$ac_func=no"
3281 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3282 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
3283 #define $ac_tr_decl 1
3287 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
3288 #define $ac_tr_decl 0
3294 if test x
= y
; then
3295 cat >> confdefs.h
<<EOF
3296 #define HAVE_DECL_BCOPY 1
3298 cat >> confdefs.h
<<EOF
3299 #define HAVE_DECL_BZERO 1
3301 cat >> confdefs.h
<<EOF
3302 #define HAVE_DECL_BCMP 1
3305 cat >> confdefs.h
<<EOF
3306 #define HAVE_DECL_INDEX 1
3308 cat >> confdefs.h
<<EOF
3309 #define HAVE_DECL_RINDEX 1
3311 cat >> confdefs.h
<<EOF
3312 #define HAVE_DECL_GETENV 1
3314 cat >> confdefs.h
<<EOF
3315 #define HAVE_DECL_ATOL 1
3317 cat >> confdefs.h
<<EOF
3318 #define HAVE_DECL_SBRK 1
3320 cat >> confdefs.h
<<EOF
3321 #define HAVE_DECL_ABORT 1
3323 cat >> confdefs.h
<<EOF
3324 #define HAVE_DECL_ATOF 1
3326 cat >> confdefs.h
<<EOF
3327 #define HAVE_DECL_GETCWD 1
3329 cat >> confdefs.h
<<EOF
3330 #define HAVE_DECL_GETWD 1
3333 cat >> confdefs.h
<<EOF
3334 #define HAVE_DECL_STRSIGNAL 1
3336 cat >> confdefs.h
<<EOF
3337 #define HAVE_DECL_PUTC_UNLOCKED 1
3339 cat >> confdefs.h
<<EOF
3340 #define HAVE_DECL_FPUTS_UNLOCKED 1
3342 cat >> confdefs.h
<<EOF
3343 #define HAVE_DECL_STRSTR 1
3345 cat >> confdefs.h
<<EOF
3346 #define HAVE_DECL_ENVIRON 1
3349 cat >> confdefs.h
<<EOF
3350 #define HAVE_DECL_MALLOC 1
3352 cat >> confdefs.h
<<EOF
3353 #define HAVE_DECL_REALLOC 1
3355 cat >> confdefs.h
<<EOF
3356 #define HAVE_DECL_CALLOC 1
3358 cat >> confdefs.h
<<EOF
3359 #define HAVE_DECL_FREE 1
3361 cat >> confdefs.h
<<EOF
3362 #define HAVE_DECL_BASENAME 1
3364 cat >> confdefs.h
<<EOF
3365 #define HAVE_DECL_GETOPT 1
3370 for ac_func
in getrlimit setrlimit getrusage
3372 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3373 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3374 echo "configure:3375: checking whether $ac_func is declared" >&5
3375 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3376 echo $ac_n "(cached) $ac_c" 1>&6
3378 cat > conftest.
$ac_ext <<EOF
3379 #line 3380 "configure"
3380 #include "confdefs.h"
3381 #include "gansidecl.h"
3383 #ifdef HAVE_SYS_RESOURCE_H
3384 #include <sys/resource.h>
3390 char *(*pfn) = (char *(*)) $ac_func ;
3394 if { (eval echo configure
:3395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3396 eval "gcc_cv_have_decl_$ac_func=yes"
3398 echo "configure: failed program was:" >&5
3399 cat conftest.
$ac_ext >&5
3401 eval "gcc_cv_have_decl_$ac_func=no"
3406 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3407 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
3408 #define $ac_tr_decl 1
3412 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
3413 #define $ac_tr_decl 0
3419 if test x
= y
; then
3420 cat >> confdefs.h
<<EOF
3421 #define HAVE_DECL_GETRLIMIT 1
3423 cat >> confdefs.h
<<EOF
3424 #define HAVE_DECL_SETRLIMIT 1
3426 cat >> confdefs.h
<<EOF
3427 #define HAVE_DECL_GETRUSAGE 1
3432 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
3433 CFLAGS
="$saved_CFLAGS"
3435 # mkdir takes a single argument on some systems.
3436 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
3437 echo "configure:3438: checking if mkdir takes one argument" >&5
3438 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
3439 echo $ac_n "(cached) $ac_c" 1>&6
3441 cat > conftest.
$ac_ext <<EOF
3442 #line 3443 "configure"
3443 #include "confdefs.h"
3445 #include <sys/types.h>
3446 #ifdef HAVE_SYS_STAT_H
3447 # include <sys/stat.h>
3449 #ifdef HAVE_UNISTD_H
3450 # include <unistd.h>
3452 #ifdef HAVE_DIRECT_H
3453 # include <direct.h>
3459 if { (eval echo configure
:3460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3461 gcc_cv_mkdir_takes_one_arg
=no
3463 echo "configure: failed program was:" >&5
3464 cat conftest.
$ac_ext >&5
3466 gcc_cv_mkdir_takes_one_arg
=yes
3471 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
3472 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
3473 cat >> confdefs.h
<<\EOF
3474 #define MKDIR_TAKES_ONE_ARG 1
3488 build_install_headers_dir
=install-headers-tar
3493 host_truncate_target
=
3496 # Decode the host machine, then the target machine.
3497 # For the host machine, we save the xm_file variable as host_xm_file;
3498 # then we decode the target machine and forget everything else
3499 # that came from the host machine.
3500 for machine
in $build $host $target; do
3514 # Set this to force installation and use of collect2.
3516 # Set this to override the default target model.
3518 # Set this to control how the header file directory is installed.
3519 install_headers_dir
=install-headers-tar
3520 # Set this to a non-empty list of args to pass to cpp if the target
3521 # wants its .md file passed through cpp.
3523 # Set this if directory names should be truncated to 14 characters.
3525 # Set this if gdb needs a dir command with `dirname $out_file`
3526 gdb_needs_out_file_path
=
3527 # Set this if the build machine requires executables to have a
3530 # Set this to control which thread package will be used.
3532 # Reinitialize these from the flag values every loop pass, since some
3533 # configure entries modify them.
3535 gnu_ld
="$gnu_ld_flag"
3536 enable_threads
=$enable_threads_flag
3538 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
3539 # updated in each machine entry.
3541 cpu_type
=`echo $machine | sed 's/-.*$//'`
3581 tm_file
=${cpu_type}/${cpu_type}.h
3582 xm_file
=${cpu_type}/xm-
${cpu_type}.h
3583 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
;
3585 tm_p_file
=${cpu_type}/${cpu_type}-protos.h
;
3587 # On a.out targets, we need to use collect2.
3594 # Common parts for linux-gnu and openbsd systems
3597 xm_defines
="HAVE_ATEXIT POSIX BSTRING"
3600 tm_file
=${cpu_type}/openbsd.h
3601 tmake_file
="t-libc-ok t-openbsd"
3602 # avoid surprises, always provide an xm-openbsd file
3603 xm_file
=${cpu_type}/xm-openbsd.h
3604 # don't depend on processor x-fragments as well
3606 if test x
$enable_threads = xyes
; then
3608 tmake_file
="${tmake_file} t-openbsd-thread"
3614 # Support site-specific machine types.
3616 cpu_type
=`echo $machine | sed -e 's/-.*//'`
3617 rest
=`echo $machine | sed -e "s/$cpu_type-//"`
3618 xm_file
=${cpu_type}/xm-
$rest.h
3619 tm_file
=${cpu_type}/$rest.h
3620 if test -f $srcdir/config
/${cpu_type}/x-
$rest; \
3621 then xmake_file
=${cpu_type}/x-
$rest; \
3624 if test -f $srcdir/config
/${cpu_type}/t-
$rest; \
3625 then tmake_file
=${cpu_type}/t-
$rest; \
3631 a29k-
*-bsd* | a29k-
*-sym1*)
3632 tm_file
="${tm_file} a29k/unix.h"
3634 xmake_file
=a29k
/x-unix
3637 a29k-
*-udi | a29k-
*-coff)
3638 tm_file
="${tm_file} dbxcoff.h a29k/udi.h"
3639 tmake_file
=a29k
/t-a29kbare
3642 tm_file
="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3643 tmake_file
=a29k
/t-vx29k
3644 extra_parts
="crtbegin.o crtend.o"
3645 thread_file
='vxworks'
3647 a29k-
*-*) # Default a29k environment.
3651 tm_file
="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
3653 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
3654 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
3656 # GAS + IEEE_CONFORMANT
3657 target_cpu_default
="MASK_GAS|MASK_IEEE_CONFORMANT"
3659 xm_file
="alpha/xm-alpha-interix.h xm-interix.h"
3660 xmake_file
="x-interix alpha/t-pe"
3661 tmake_file
="alpha/t-alpha alpha/t-interix alpha/t-ieee"
3662 if test x
$enable_threads = xyes
; then
3665 if test x
$stabs = xyes
; then
3666 tm_file
="${tm_file} dbxcoff.h"
3668 #prefix='$$INTERIX_ROOT'/usr/contrib
3669 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3671 alpha
*-*-linux-gnuecoff*)
3672 tm_file
="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3673 target_cpu_default
="MASK_GAS"
3674 tmake_file
="alpha/t-alpha alpha/t-ieee"
3679 alpha
*-*-linux-gnulibc1*)
3680 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3681 target_cpu_default
="MASK_GAS"
3682 tmake_file
="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
3683 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3686 if test x
$enable_threads = xyes
; then
3690 alpha
*-*-linux-gnu*)
3691 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3692 target_cpu_default
="MASK_GAS"
3693 tmake_file
="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3694 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3697 if test x
$enable_threads = xyes
; then
3702 tm_file
="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3703 target_cpu_default
="MASK_GAS"
3704 tmake_file
="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3705 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3711 # default x-alpha is only appropriate for dec-osf.
3712 target_cpu_default
="MASK_GAS"
3713 tmake_file
="alpha/t-alpha alpha/t-ieee"
3717 if test x
$stabs = xyes
3719 tm_file
="${tm_file} dbx.h"
3721 if test x
$gas != xyes
3723 extra_passes
="mips-tfile mips-tdump"
3726 tmake_file
="alpha/t-alpha alpha/t-ieee"
3729 tm_file
="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3732 tm_file
="${tm_file} alpha/osf.h alpha/osf2or3.h"
3735 tm_file
="${tm_file} alpha/osf.h"
3736 # Some versions of OSF4 (specifically X4.0-9 296.7) have
3737 # a broken tar, so we use cpio instead.
3738 install_headers_dir
=install-headers-cpio
3741 tm_file
="${tm_file} alpha/osf.h alpha/osf5.h"
3745 *-*-osf4.0
[b-z
] |
*-*-osf4.
[1-9]* |
*-*-osf5*)
3746 target_cpu_default
=MASK_SUPPORT_ARCH
3751 tm_file
="${tm_file} dbx.h alpha/vxworks.h"
3752 tmake_file
="alpha/t-alpha alpha/t-ieee"
3755 extra_passes
="mips-tfile mips-tdump"
3758 thread_file
='vxworks'
3761 tm_file
="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3762 xm_file
="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3763 tmake_file
="t-libc-ok alpha/t-alpha alpha/t-ieee"
3764 xmake_file
=winnt
/x-winnt
3765 extra_host_objs
=oldnames.o
3766 extra_gcc_objs
="spawnv.o oldnames.o"
3767 if test x
$gnu_ld != xyes
3769 extra_programs
=ld.exe
3771 if test x
$enable_threads = xyes
; then
3777 xm_file
="${xm_file} alpha/xm-vms.h"
3778 tmake_file
="alpha/t-alpha alpha/t-vms alpha/t-ieee"
3781 extra_parts
="crtinit.o crtfini.o"
3783 arm-
*-coff* | armel-
*-coff*)
3785 tmake_file
=arm
/t-arm-coff
3789 tmake_file
=arm
/t-arm-coff
3790 thread_file
='vxworks'
3792 arm-
*-riscix1.
[01]*) # Acorn RISC machine (early versions)
3793 tm_file
=arm
/riscix1-1.h
3796 arm-
*-riscix*) # Acorn RISC machine
3797 if test x
$gas = xyes
3799 tm_file
=arm
/rix-gas.h
3801 tm_file
=arm
/riscix.h
3803 xmake_file
=arm
/x-riscix
3804 tmake_file
=arm
/t-riscix
3807 arm-semi-aout | armel-semi-aout
)
3809 tmake_file
=arm
/t-semi
3811 arm-semi-aof | armel-semi-aof
)
3812 tm_file
=arm
/semiaof.h
3813 tmake_file
=arm
/t-semiaof
3816 tm_file
=arm
/netbsd.h
3817 tmake_file
="t-netbsd arm/t-netbsd"
3820 arm
*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
3823 tm_file
=arm
/linux-aout.h
3824 tmake_file
=arm
/t-linux
3827 arm
*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker
3828 xm_file
=arm
/xm-linux.h
3830 tm_file
="arm/linux-oldld.h arm/linux-elf.h"
3833 tm_file
="arm/linux-elf26.h $tm_file"
3836 tmake_file
="t-linux arm/t-linux"
3837 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3839 case x
${enable_threads} in
3840 x | xyes | xpthreads | xposix
)
3845 arm
*-*-linux-gnu*) # ARM GNU/Linux with ELF
3846 xm_file
=arm
/xm-linux.h
3848 tm_file
="arm/linux-elf.h"
3851 tm_file
="arm/linux-elf26.h $tm_file"
3854 tmake_file
="t-linux arm/t-linux"
3855 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3857 case x
${enable_threads} in
3858 x | xyes | xpthreads | xposix
)
3863 arm
*-*-uclinux*) # ARM ucLinux
3864 tm_file
=arm
/uclinux-elf.h
3865 tmake_file
=arm
/t-arm-elf
3869 tmake_file
=arm
/t-arm-aout
3872 tm_file
=arm
/ecos-elf.h
3873 tmake_file
=arm
/t-arm-elf
3876 tm_file
=arm
/unknown-elf.h
3877 tmake_file
=arm
/t-arm-elf
3880 tm_file
=arm
/conix-elf.h
3881 tmake_file
=arm
/t-arm-elf
3884 tm_file
=arm
/unknown-elf-oabi.h
3885 tmake_file
=arm
/t-arm-elf
3894 c1-convex-
*) # Convex C1
3895 target_cpu_default
=1
3898 c2-convex-
*) # Convex C2
3899 target_cpu_default
=2
3903 target_cpu_default
=4
3907 target_cpu_default
=8
3911 target_cpu_default
=16
3916 tmake_file
=c4x
/t-c4x
3918 clipper-intergraph-clix
*)
3919 tm_file
="${tm_file} svr3.h clipper/clix.h"
3920 xm_file
=clipper
/xm-clix.h
3921 xmake_file
=clipper
/x-clix
3922 extra_headers
=va-clipper.h
3923 extra_parts
="crtbegin.o crtend.o"
3924 install_headers_dir
=install-headers-cpio
3935 tm_file
="fr30/fr30.h"
3936 tmake_file
=fr30
/t-fr30
3937 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
3939 # This hasn't been upgraded to GCC 2.
3940 # fx80-alliant-*) # Alliant FX/80
3946 target_cpu_default
="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
3947 tm_file
="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
3948 tmake_file
="t-linux pa/t-linux"
3949 extra_parts
="crtbegin.o crtend.o"
3952 if test x
$enable_threads = xyes
; then
3957 target_cpu_default
="MASK_PA_11"
3958 tmake_file
=pa
/t-openbsd
3961 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3962 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
3963 xm_file
=pa
/xm-papro.h
3967 target_cpu_default
="MASK_PA_11"
3968 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
3972 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3973 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
3974 xm_file
=pa
/xm-papro.h
3978 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
3982 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h"
3983 target_cpu_default
="MASK_PA_11"
3987 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h"
3991 tm_file
="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
3992 xm_file
=pa
/xm-pahpux.h
3993 xmake_file
=pa
/x-pa-hpux
3994 if test x
$gas = xyes
3996 tm_file
="${tm_file} pa/gas.h"
3998 install_headers_dir
=install-headers-cpio
4001 hppa1.0
-*-hpux8.0
[0-2]*)
4002 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4003 xm_file
=pa
/xm-pahpux.h
4004 xmake_file
=pa
/x-pa-hpux
4005 if test x
$gas = xyes
4007 tm_file
="${tm_file} pa/pa-gas.h"
4009 tm_file
="pa/pa-oldas.h ${tm_file}"
4011 install_headers_dir
=install-headers-cpio
4014 hppa1.1
-*-hpux8.0
[0-2]*)
4015 target_cpu_default
="MASK_PA_11"
4016 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4017 xm_file
=pa
/xm-pahpux.h
4018 xmake_file
=pa
/x-pa-hpux
4019 if test x
$gas = xyes
4021 tm_file
="${tm_file} pa/pa-gas.h"
4023 tm_file
="pa/pa-oldas.h ${tm_file}"
4025 install_headers_dir
=install-headers-cpio
4029 target_cpu_default
="MASK_PA_11"
4030 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4031 xm_file
=pa
/xm-pahpux.h
4032 xmake_file
=pa
/x-pa-hpux
4033 if test x
$gas = xyes
4035 tm_file
="${tm_file} pa/pa-gas.h"
4037 install_headers_dir
=install-headers-cpio
4041 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4042 xm_file
=pa
/xm-pahpux.h
4043 xmake_file
=pa
/x-pa-hpux
4044 if test x
$gas = xyes
4046 tm_file
="${tm_file} pa/pa-gas.h"
4048 install_headers_dir
=install-headers-cpio
4051 hppa1.1
-*-hpux10* | hppa2
*-*-hpux10*)
4052 target_cpu_default
="MASK_PA_11"
4053 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
4055 xm_file
=pa
/xm-pahpux.h
4056 xmake_file
=pa
/x-pa-hpux
4058 if test x
$gas = xyes
4060 tm_file
="${tm_file} pa/pa-gas.h"
4062 if test x
$enable_threads = x
; then
4063 enable_threads
=$have_pthread_h
4065 if test x
$enable_threads = xyes
; then
4067 tmake_file
="${tmake_file} pa/t-dce-thr"
4069 install_headers_dir
=install-headers-cpio
4073 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
4075 xm_file
=pa
/xm-pahpux.h
4076 xmake_file
=pa
/x-pa-hpux
4078 if test x
$gas = xyes
4080 tm_file
="${tm_file} pa/pa-gas.h"
4082 if test x
$enable_threads = x
; then
4083 enable_threads
=$have_pthread_h
4085 if test x
$enable_threads = xyes
; then
4087 tmake_file
="${tmake_file} pa/t-dce-thr"
4089 install_headers_dir
=install-headers-cpio
4093 target_cpu_default
="MASK_PA_11"
4094 xm_file
=pa
/xm-pa64hpux.h
4095 xmake_file
=pa
/x-pa-hpux
4097 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"
4099 tmake_file
=pa
/t-pa64
4100 target_cpu_default
="(MASK_PA_11|MASK_PA_20)"
4104 tm_file
="${tm_file} pa/pa-gas.h"
4106 # if [[ x$enable_threads = x ]]; then
4107 # enable_threads=$have_pthread_h
4109 # if [[ x$enable_threads = xyes ]]; then
4111 # tmake_file="${tmake_file} pa/t-dce-thr"
4113 install_headers_dir
=install-headers-cpio
4116 hppa1.1
-*-hpux11* | hppa2
*-*-hpux11*)
4117 target_cpu_default
="MASK_PA_11"
4118 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
4120 xm_file
=pa
/xm-pahpux.h
4121 xmake_file
=pa
/x-pa-hpux
4123 if test x
$gas = xyes
4125 tm_file
="${tm_file} pa/pa-gas.h"
4127 # if test x$enable_threads = x; then
4128 # enable_threads=$have_pthread_h
4130 # if test x$enable_threads = xyes; then
4132 # tmake_file="${tmake_file} pa/t-dce-thr"
4134 install_headers_dir
=install-headers-cpio
4138 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
4140 xm_file
=pa
/xm-pahpux.h
4141 xmake_file
=pa
/x-pa-hpux
4142 if test x
$gas = xyes
4144 tm_file
="${tm_file} pa/pa-gas.h"
4146 # if test x$enable_threads = x; then
4147 # enable_threads=$have_pthread_h
4149 # if test x$enable_threads = xyes; then
4151 # tmake_file="${tmake_file} pa/t-dce-thr"
4153 install_headers_dir
=install-headers-cpio
4156 hppa1.1
-*-hpux* | hppa2
*-*-hpux*)
4157 target_cpu_default
="MASK_PA_11"
4158 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
4159 xm_file
=pa
/xm-pahpux.h
4160 xmake_file
=pa
/x-pa-hpux
4161 if test x
$gas = xyes
4163 tm_file
="${tm_file} pa/pa-gas.h"
4165 install_headers_dir
=install-headers-cpio
4169 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
4170 xm_file
=pa
/xm-pahpux.h
4171 xmake_file
=pa
/x-pa-hpux
4172 if test x
$gas = xyes
4174 tm_file
="${tm_file} pa/pa-gas.h"
4176 install_headers_dir
=install-headers-cpio
4179 hppa1.1
-*-hiux* | hppa2
*-*-hiux*)
4180 target_cpu_default
="MASK_PA_11"
4181 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
4182 xm_file
=pa
/xm-pahpux.h
4183 xmake_file
=pa
/x-pa-hpux
4184 if test x
$gas = xyes
4186 tm_file
="${tm_file} pa/pa-gas.h"
4188 install_headers_dir
=install-headers-cpio
4192 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
4193 xm_file
=pa
/xm-pahpux.h
4194 xmake_file
=pa
/x-pa-hpux
4195 if test x
$gas = xyes
4197 tm_file
="${tm_file} pa/pa-gas.h"
4199 install_headers_dir
=install-headers-cpio
4203 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
4204 target_cpu_default
="MASK_PA_11"
4208 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
4209 xm_file
=pa
/xm-pampeix.h
4210 xmake_file
=pa
/x-pa-mpeix
4211 echo "You must use gas. Assuming it is already installed."
4212 install_headers_dir
=install-headers-tar
4215 i370-
*-opened*) # IBM 360/370/390 Architecture
4216 xm_file
=i370
/xm-oe.h
4218 xmake_file
=i370
/x-oe
4219 tmake_file
=i370
/t-oe
4222 xm_file
=i370
/xm-mvs.h
4224 tmake_file
=i370
/t-mvs
4227 xm_file
="xm-linux.h i370/xm-linux.h"
4229 tm_file
="i370/linux.h ${tm_file}"
4230 tmake_file
="t-linux i370/t-linux"
4231 # broken_install=yes
4232 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4233 # extra_parts="crtbegin.o crtend.o"
4237 if test x
$enable_threads = xyes
; then
4242 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h"
4243 tm_file
=i386
/i386elf.h
4244 tmake_file
=i386
/t-i386elf
4247 i
[34567]86-ibm-aix*) # IBM PS/2 running AIX
4248 if test x
$gas = xyes
4250 tm_file
=i386
/aix386.h
4251 extra_parts
="crtbegin.o crtend.o"
4252 tmake_file
=i386
/t-crtstuff
4254 tm_file
=i386
/aix386ng.h
4257 xm_file
="xm-alloca.h i386/xm-aix.h ${xm_file}"
4259 xmake_file
=i386
/x-aix
4261 i
[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
4262 xm_file
="xm-alloca.h ${xm_file}"
4263 xm_defines
="USG POSIX SMALL_ARG_MAX"
4264 xmake_file
=i386
/x-ncr3000
4265 if test x
$stabs = xyes
-a x
$gas = xyes
4267 tm_file
=i386
/sysv4gdb.h
4269 tm_file
=i386
/sysv4.h
4271 extra_parts
="crtbegin.o crtend.o"
4272 tmake_file
=i386
/t-crtpic
4276 xm_file
=i386
/xm-next.h
4277 tmake_file
=i386
/t-next
4278 xmake_file
=i386
/x-next
4279 extra_objs
=nextstep.o
4280 extra_parts
="crtbegin.o crtend.o"
4281 if test x
$enable_threads = xyes
; then
4285 i
[34567]86-sequent-bsd*) # 80386 from Sequent
4287 if test x
$gas = xyes
4289 tm_file
=i386
/seq-gas.h
4291 tm_file
=i386
/sequent.h
4294 i
[34567]86-sequent-ptx1*)
4295 xm_defines
="USG SVR3"
4296 xmake_file
=i386
/x-sysv3
4297 tm_file
=i386
/seq-sysv3.h
4298 tmake_file
=i386
/t-crtstuff
4299 extra_parts
="crtbegin.o crtend.o"
4300 install_headers_dir
=install-headers-cpio
4302 i
[34567]86-sequent-ptx2* | i
[34567]86-sequent-sysv3*)
4303 xm_defines
="USG SVR3"
4304 xmake_file
=i386
/x-sysv3
4305 tm_file
=i386
/seq2-sysv3.h
4306 tmake_file
=i386
/t-crtstuff
4307 extra_parts
="crtbegin.o crtend.o"
4308 install_headers_dir
=install-headers-cpio
4310 i
[34567]86-sequent-ptx4* | i
[34567]86-sequent-sysv4*)
4311 xm_file
="xm-alloca.h ${xm_file}"
4312 xm_defines
="USG POSIX SMALL_ARG_MAX"
4314 tm_file
=i386
/ptx4-i.h
4316 extra_parts
="crtbegin.o crtend.o"
4317 install_headers_dir
=install-headers-cpio
4319 i386-sun-sunos
*) # Sun i386 roadrunner
4324 i
[34567]86-wrs-vxworks*)
4325 tm_file
=i386
/vxi386.h
4326 tmake_file
=i386
/t-i386bare
4327 thread_file
='vxworks'
4330 tm_file
=i386
/i386-aout.h
4331 tmake_file
=i386
/t-i386bare
4333 i
[34567]86-*-beospe*)
4334 xm_file
=i386
/xm-beos.h
4335 xm_defines
="USE_C_ALLOCA"
4336 tmake_file
=i386
/t-beos
4337 tm_file
=i386
/beos-pe.h
4338 xmake_file
=i386
/x-beos
4341 i
[34567]86-*-beoself* | i
[34567]86-*-beos*)
4342 xm_file
=i386
/xm-beos.h
4343 tmake_file
='i386/t-beos i386/t-crtpic'
4344 tm_file
=i386
/beos-elf.h
4345 xmake_file
=i386
/x-beos
4347 extra_parts
='crtbegin.o crtend.o'
4349 i
[34567]86-*-bsdi* | i
[34567]86-*-bsd386*)
4350 tm_file
=i386
/bsd386.h
4351 # tmake_file=t-libc-ok
4354 tm_file
=i386
/386bsd.h
4355 # tmake_file=t-libc-ok
4356 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
4359 i
[34567]86-*-freebsd[12] | i
[34567]86-*-freebsd[12].
* | i
[34567]86-*-freebsd*aout
*)
4360 tm_file
="i386/freebsd.h i386/perform.h"
4361 tmake_file
=t-freebsd
4363 i
[34567]86-*-freebsd*)
4364 tm_file
="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
4365 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4366 tmake_file
=t-freebsd
4370 case x
${enable_threads} in
4371 xyes | xpthreads | xposix
)
4373 tmake_file
="${tmake_file} t-freebsd-thread"
4377 i
[34567]86-*-netbsd*)
4378 tm_file
=i386
/netbsd.h
4382 i
[34567]86-*-openbsd*)
4383 # we need collect2 until our bug is fixed...
4387 tm_file
=i386
/i386-coff.h
4388 tmake_file
=i386
/t-i386bare
4390 i
[34567]86-*-isc*) # 80386 running ISC system
4391 xm_file
="${xm_file} i386/xm-isc.h"
4392 xm_defines
="USG SVR3"
4394 i
[34567]86-*-isc[34]*)
4395 xmake_file
=i386
/x-isc3
4398 xmake_file
=i386
/x-isc
4401 if test x
$gas = xyes
-a x
$stabs = xyes
4403 tm_file
=i386
/iscdbx.h
4404 tmake_file
=i386
/t-svr3dbx
4405 extra_parts
="svr3.ifile svr3z.ifile"
4407 tm_file
=i386
/isccoff.h
4408 tmake_file
=i386
/t-crtstuff
4409 extra_parts
="crtbegin.o crtend.o"
4411 tmake_file
="$tmake_file i386/t-i386bare"
4412 install_headers_dir
=install-headers-cpio
4414 i
[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
4416 xmake_file
=x-linux-aout
4417 tmake_file
="t-linux-aout i386/t-crtstuff"
4418 tm_file
=i386
/linux-oldld.h
4422 i
[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
4423 xmake_file
=x-linux-aout
4424 tmake_file
="t-linux-aout i386/t-crtstuff"
4425 tm_file
=i386
/linux-aout.h
4429 i
[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
4430 # GNU/Linux C library 5
4432 tm_file
=i386
/linux.h
4433 tmake_file
="t-linux t-linux-gnulibc1 i386/t-crtstuff"
4434 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4437 if test x
$enable_threads = xyes
; then
4438 thread_file
='single'
4441 i
[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
4442 # aka GNU/Linux C library 6
4444 tm_file
=i386
/linux.h
4445 tmake_file
="t-linux i386/t-crtstuff"
4446 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4449 if test x
$enable_threads = xyes
; then
4456 i
[34567]86-go32-msdos | i
[34567]86-*-go32*)
4457 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
4460 i
[34567]86-pc-msdosdjgpp*)
4461 xm_file
=i386
/xm-djgpp.h
4462 tm_file
=i386
/djgpp.h
4463 tmake_file
=i386
/t-djgpp
4464 xmake_file
=i386
/x-djgpp
4469 case $host in *pc-msdosdjgpp
*)
4474 i
[34567]86-moss-msdos* | i
[34567]86-*-moss*)
4476 tmake_file
=t-libc-ok
4480 i
[34567]86-*-lynxos*)
4481 if test x
$gas = xyes
4485 tm_file
=i386
/lynx-ng.h
4487 xm_file
=i386
/xm-lynx.h
4488 tmake_file
=i386
/t-i386bare
4493 # tmake_file=t-libc-ok
4496 i
[34567]86-*-osfrose*) # 386 using OSF/rose
4497 if test x
$elf = xyes
4499 tm_file
=i386
/osfelf.h
4502 tm_file
=i386
/osfrose.h
4505 xm_file
="i386/xm-osf.h ${xm_file}"
4506 xmake_file
=i386
/x-osfrose
4507 tmake_file
=i386
/t-osf
4508 extra_objs
=halfpic.o
4510 i
[34567]86-go32-rtems*)
4512 xm_file
=i386
/xm-go32.h
4513 tm_file
=i386
/go32-rtems.h
4514 tmake_file
="i386/t-go32 t-rtems"
4516 i
[34567]86-*-rtemscoff*)
4518 tm_file
=i386
/rtems.h
4519 tmake_file
="i386/t-i386bare t-rtems"
4521 i
[34567]86-*-rtems*|i
[34567]86-*-rtemself*)
4523 tm_file
=i386
/rtemself.h
4524 extra_parts
="crtbegin.o crtend.o crti.o crtn.o"
4525 tmake_file
="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
4527 i
[34567]86-*-sco3.2v5
*) # 80386 running SCO Open Server 5
4528 xm_file
="xm-alloca.h ${xm_file} i386/xm-sco5.h"
4529 xm_defines
="USG SVR3"
4530 xmake_file
=i386
/x-sco5
4531 install_headers_dir
=install-headers-cpio
4533 if test x
$gas = xyes
4535 tm_file
="i386/sco5gas.h ${tm_file}"
4536 tmake_file
=i386
/t-sco5gas
4538 tmake_file
=i386
/t-sco5
4540 tmake_file
="$tmake_file i386/t-i386bare"
4541 extra_parts
="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
4543 i
[34567]86-*-sco3.2v4
*) # 80386 running SCO 3.2v4 system
4544 xm_file
="${xm_file} i386/xm-sco.h"
4545 xm_defines
="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
4546 xmake_file
=i386
/x-sco4
4547 install_headers_dir
=install-headers-cpio
4548 if test x
$stabs = xyes
4550 tm_file
=i386
/sco4dbx.h
4551 tmake_file
=i386
/t-svr3dbx
4552 extra_parts
="svr3.ifile svr3z.rfile"
4555 tmake_file
=i386
/t-crtstuff
4556 extra_parts
="crtbegin.o crtend.o"
4558 tmake_file
="$tmake_file i386/t-i386bare"
4559 # The default EAFS filesystem supports long file names.
4560 # Truncating the target makes $host != $target which
4561 # makes gcc think it is doing a cross-compile.
4562 # truncate_target=yes
4564 i
[34567]86-*-sco*) # 80386 running SCO system
4565 xm_file
=i386
/xm-sco.h
4566 xmake_file
=i386
/x-sco
4567 install_headers_dir
=install-headers-cpio
4568 if test x
$stabs = xyes
4570 tm_file
=i386
/scodbx.h
4571 tmake_file
=i386
/t-svr3dbx
4572 extra_parts
="svr3.ifile svr3z.rfile"
4575 extra_parts
="crtbegin.o crtend.o"
4576 tmake_file
=i386
/t-crtstuff
4578 tmake_file
="$tmake_file i386/t-i386bare"
4581 i
[34567]86-*-solaris2*)
4582 xm_file
="xm-alloca.h ${xm_file}"
4583 xm_defines
="USG POSIX SMALL_ARG_MAX"
4585 if test x
$gas = xyes
; then
4586 # Only needed if gas does not support -s
4587 tm_file
="i386/sol2gas.h ${tm_file}"
4589 tmake_file
="i386/t-i386bare i386/t-sol2"
4590 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4592 if test x
${enable_threads} = x
; then
4593 enable_threads
=$have_pthread_h
4594 if test x
${enable_threads} = x
; then
4595 enable_threads
=$have_thread_h
4598 if test x
${enable_threads} = xyes
; then
4599 if test x
${have_pthread_h} = xyes
; then
4602 thread_file
='solaris'
4606 i
[34567]86-*-sysv5*) # Intel x86 on System V Release 5
4607 xm_file
="xm-alloca.h ${xm_file}"
4608 xm_defines
="USG POSIX"
4609 tm_file
=i386
/sysv5.h
4610 if test x
$stabs = xyes
4612 tm_file
="${tm_file} dbx.h"
4614 tmake_file
="i386/t-i386bare i386/t-crtpic"
4616 extra_parts
="crtbegin.o crtend.o"
4617 if test x
$enable_threads = xyes
; then
4621 i
[34567]86-*-sysv4*) # Intel 80386's running system V.4
4622 xm_file
="xm-alloca.h ${xm_file}"
4623 xm_defines
="USG POSIX SMALL_ARG_MAX"
4624 tm_file
=i386
/sysv4.h
4625 if test x
$stabs = xyes
4627 tm_file
="${tm_file} dbx.h"
4629 tmake_file
="i386/t-i386bare i386/t-crtpic"
4631 extra_parts
="crtbegin.o crtend.o"
4633 i
[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
4634 xm_file
="xm-alloca.h ${xm_file}"
4635 xm_defines
="USG POSIX"
4637 tmake_file
="i386/t-i386bare i386/t-crtpic i386/t-udk"
4639 extra_parts
="crtbegin.o crtend.o"
4640 install_headers_dir
=install-headers-cpio
4642 i
[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
4644 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
4645 xm_defines
="USE_C_ALLOCA SMALL_ARG_MAX"
4646 if test x
$stabs = xyes
4648 tm_file
=i386
/osf1elfgdb.h
4650 tm_file
=i386
/osf1elf.h
4652 tmake_file
=i386
/t-osf1elf
4653 xmake_file
=i386
/x-osf1elf
4654 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4656 i
[34567]86-*-sysv*) # Intel 80386's running system V
4657 xm_defines
="USG SVR3"
4658 xmake_file
=i386
/x-sysv3
4659 if test x
$gas = xyes
4661 if test x
$stabs = xyes
4663 tm_file
=i386
/svr3dbx.h
4664 tmake_file
=i386
/t-svr3dbx
4665 extra_parts
="svr3.ifile svr3z.rfile"
4667 tm_file
=i386
/svr3gas.h
4668 extra_parts
="crtbegin.o crtend.o"
4669 tmake_file
=i386
/t-crtstuff
4672 tm_file
=i386
/sysv3.h
4673 extra_parts
="crtbegin.o crtend.o"
4674 tmake_file
=i386
/t-crtstuff
4676 tmake_file
="$tmake_file i386/t-crtpic"
4678 i386-
*-vsta) # Intel 80386's running VSTa kernel
4679 xm_file
="${xm_file} i386/xm-vsta.h"
4681 tmake_file
=i386
/t-vsta
4682 xmake_file
=i386
/x-vsta
4685 xm_file
="${xm_file} i386/xm-cygwin.h"
4686 tmake_file
=i386
/t-cygwin
4687 tm_file
=i386
/win32.h
4688 xmake_file
=i386
/x-cygwin
4690 if test x
$enable_threads = xyes
; then
4695 i
[34567]86-*-pe | i
[34567]86-*-cygwin*)
4696 xm_file
="${xm_file} i386/xm-cygwin.h"
4697 tmake_file
=i386
/t-cygwin
4698 tm_file
=i386
/cygwin.h
4699 xmake_file
=i386
/x-cygwin
4701 if test x
$enable_threads = xyes
; then
4706 i
[34567]86-*-mingw32*)
4707 tm_file
=i386
/mingw32.h
4708 xm_file
="${xm_file} i386/xm-mingw32.h"
4709 tmake_file
="i386/t-cygwin i386/t-mingw32"
4711 xmake_file
=i386
/x-cygwin
4712 if test x
$enable_threads = xyes
; then
4719 *minwg32crt
* |
*mingw32
*)
4720 tm_file
="${tm_file} i386/crtdll.h"
4726 xm_file
="${xm_file} i386/xm-uwin.h"
4727 xm_defines
="USG NO_STAB_H"
4728 tmake_file
="i386/t-cygwin i386/t-uwin"
4730 xmake_file
=i386
/x-cygwin
4731 if test x
$enable_threads = xyes
; then
4736 i
[34567]86-*-interix*)
4737 tm_file
="i386/i386-interix.h interix.h"
4738 xm_file
="i386/xm-i386-interix.h xm-interix.h"
4740 tmake_file
="i386/t-interix"
4741 extra_objs
=interix.o
4742 xmake_file
=x-interix
4743 if test x
$enable_threads = xyes
; then
4746 if test x
$stabs = xyes
; then
4747 tm_file
="${tm_file} dbxcoff.h"
4750 i
[34567]86-*-winnt3*)
4751 tm_file
=i386
/win-nt.h
4752 out_file
=i386
/i386.c
4753 xm_file
="xm-winnt.h ${xm_file}"
4754 xmake_file
=winnt
/x-winnt
4755 tmake_file
=i386
/t-winnt
4756 extra_host_objs
="winnt.o oldnames.o"
4757 extra_gcc_objs
="spawnv.o oldnames.o"
4758 if test x
$gnu_ld != xyes
4760 extra_programs
=ld.exe
4762 if test x
$enable_threads = xyes
; then
4766 i
[34567]86-dg-dgux*)
4767 xm_file
="xm-alloca.h ${xm_file}"
4768 xm_defines
="USG POSIX"
4769 out_file
=i386
/dgux.c
4771 tmake_file
=i386
/t-dgux
4772 xmake_file
=i386
/x-dgux
4773 install_headers_dir
=install-headers-cpio
4775 i860-alliant-
*) # Alliant FX/2800
4776 tm_file
="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
4777 xm_file
="${xm_file}"
4778 xmake_file
=i860
/x-fx2800
4779 tmake_file
=i860
/t-fx2800
4780 extra_parts
="crtbegin.o crtend.o"
4783 tm_file
="${tm_file} i860/bsd.h"
4784 if test x
$gas = xyes
4786 tm_file
="${tm_file} i860/bsd-gas.h"
4791 tm_file
="${tm_file} i860/mach.h"
4792 tmake_file
=t-libc-ok
4794 i860-
*-osf*) # Intel Paragon XP/S, OSF/1AD
4795 tm_file
="${tm_file} svr3.h i860/paragon.h"
4796 xm_defines
="USG SVR3"
4800 tm_file
="${tm_file} svr3.h i860/sysv3.h"
4801 xm_defines
="USG SVR3"
4802 xmake_file
=i860
/x-sysv3
4803 extra_parts
="crtbegin.o crtend.o"
4806 tm_file
="${tm_file} svr4.h i860/sysv4.h"
4807 xm_defines
="USG SVR3"
4808 xmake_file
=i860
/x-sysv4
4810 extra_parts
="crtbegin.o crtend.o"
4812 i960-wrs-vxworks5 | i960-wrs-vxworks5.0
*)
4813 tm_file
="${tm_file} i960/vx960.h"
4814 tmake_file
=i960
/t-vxworks960
4816 thread_file
='vxworks'
4818 i960-wrs-vxworks5
* | i960-wrs-vxworks
)
4819 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
4820 tmake_file
=i960
/t-vxworks960
4822 thread_file
='vxworks'
4825 tm_file
="${tm_file} i960/vx960.h"
4826 tmake_file
=i960
/t-vxworks960
4828 thread_file
='vxworks'
4831 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
4832 tmake_file
=i960
/t-960bare
4836 tmake_file
="i960/t-960bare t-rtems"
4837 tm_file
="${tm_file} dbxcoff.h i960/rtems.h"
4840 i960-
*-*) # Default i960 environment.
4845 tmake_file
="ia64/t-ia64"
4846 target_cpu_default
="0"
4847 if test x
$gas = xyes
4849 target_cpu_default
="${target_cpu_default}|MASK_GNU_AS"
4851 if test x
$gnu_ld = xyes
4853 target_cpu_default
="${target_cpu_default}|MASK_GNU_LD"
4857 tm_file
=ia64
/linux.h
4858 tmake_file
="t-linux ia64/t-ia64"
4859 target_cpu_default
="MASK_GNU_AS|MASK_GNU_LD"
4860 if test x
$enable_threads = xyes
; then
4865 extra_parts
="crtinit.o crtfini.o"
4867 m68000-convergent-sysv
*)
4869 xm_file
="m68k/xm-3b1.h ${xm_file}"
4872 extra_headers
=math-68881.h
4874 m68000-hp-bsd
*) # HP 9000/200 running BSD
4875 tm_file
=m68k
/hp2bsd.h
4876 xmake_file
=m68k
/x-hp2bsd
4878 extra_headers
=math-68881.h
4880 m68000-hp-hpux
*) # HP 9000 series 300
4881 xm_file
="xm-alloca.h ${xm_file}"
4883 if test x
$gas = xyes
4885 xmake_file
=m68k
/x-hp320g
4886 tm_file
=m68k
/hp310g.h
4888 xmake_file
=m68k
/x-hp320
4889 tm_file
=m68k
/hp310.h
4891 install_headers_dir
=install-headers-cpio
4893 extra_headers
=math-68881.h
4898 extra_headers
=math-68881.h
4901 tm_file
=m68k
/sun2o4.h
4903 extra_headers
=math-68881.h
4906 xm_file
="m68k/xm-3b1.h ${xm_file}"
4908 if test x
$gas = xyes
4915 extra_headers
=math-68881.h
4917 m68k-apple-aux
*) # Apple Macintosh running A/UX
4918 xm_defines
="USG AUX"
4919 tmake_file
=m68k
/t-aux
4920 install_headers_dir
=install-headers-cpio
4921 extra_headers
=math-68881.h
4922 extra_parts
="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
4924 if test "$gnu_ld" = yes
4926 tm_file
="${tm_file} m68k/auxgld.h"
4928 tm_file
="${tm_file} m68k/auxld.h"
4930 if test "$gas" = yes
4932 tm_file
="${tm_file} m68k/auxgas.h"
4934 tm_file
="${tm_file} m68k/auxas.h"
4936 tm_file
="${tm_file} m68k/a-ux.h"
4940 tm_file
=m68k
/apollo68.h
4941 xmake_file
=m68k
/x-apollo68
4943 extra_headers
=math-68881.h
4946 m68k-altos-sysv
*) # Altos 3068
4947 if test x
$gas = xyes
4949 tm_file
=m68k
/altos3068.h
4952 echo "The Altos is supported only with the GNU assembler" 1>&2
4955 extra_headers
=math-68881.h
4957 m68k-bull-sysv
*) # Bull DPX/2
4958 if test x
$gas = xyes
4960 if test x
$stabs = xyes
4962 tm_file
=m68k
/dpx2cdbx.h
4964 tm_file
=m68k
/dpx2g.h
4969 xm_file
="xm-alloca.h ${xm_file}"
4971 xmake_file
=m68k
/x-dpx2
4973 extra_headers
=math-68881.h
4975 m68k-atari-sysv4
*) # Atari variant of V.4.
4976 tm_file
=m68k
/atari.h
4977 xm_file
="xm-alloca.h ${xm_file}"
4978 xm_defines
="USG FULL_PROTOTYPES"
4980 extra_parts
="crtbegin.o crtend.o"
4981 extra_headers
=math-68881.h
4984 m68k-motorola-sysv
*)
4985 tm_file
=m68k
/mot3300.h
4986 xm_file
="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
4987 if test x
$gas = xyes
4989 xmake_file
=m68k
/x-mot3300-gas
4990 if test x
$gnu_ld = xyes
4992 tmake_file
=m68k
/t-mot3300-gald
4994 tmake_file
=m68k
/t-mot3300-gas
4998 xmake_file
=m68k
/x-mot3300
4999 if test x
$gnu_ld = xyes
5001 tmake_file
=m68k
/t-mot3300-gld
5003 tmake_file
=m68k
/t-mot3300
5007 gdb_needs_out_file_path
=yes
5008 extra_parts
="crt0.o mcrt0.o"
5009 extra_headers
=math-68881.h
5012 m68k-ncr-sysv
*) # NCR Tower 32 SVR3
5013 tm_file
=m68k
/tower-as.h
5014 xm_defines
="USG SVR3"
5015 xmake_file
=m68k
/x-tower
5016 extra_parts
="crtbegin.o crtend.o"
5017 extra_headers
=math-68881.h
5020 tm_file
=m68k
/plexus.h
5021 xm_file
="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
5024 extra_headers
=math-68881.h
5028 xm_file
="xm-alloca.h ${xm_file}"
5030 extra_headers
=math-68881.h
5033 xm_file
="xm-alloca.h m68k/xm-crds.h ${xm_file}"
5034 xm_defines
="USG unos"
5035 xmake_file
=m68k
/x-crds
5038 extra_headers
=math-68881.h
5040 m68k-cbm-sysv4
*) # Commodore variant of V.4.
5042 xm_file
="xm-alloca.h ${xm_file}"
5043 xm_defines
="USG FULL_PROTOTYPES"
5044 xmake_file
=m68k
/x-amix
5046 extra_parts
="crtbegin.o crtend.o"
5047 extra_headers
=math-68881.h
5051 tm_file
=m68k
/ccur-GAS.h
5052 xmake_file
=m68k
/x-ccur
5053 extra_headers
=math-68881.h
5057 m68k-hp-bsd4.4
*) # HP 9000/3xx running 4.4bsd
5058 tm_file
=m68k
/hp3bsd44.h
5059 xmake_file
=m68k
/x-hp3bsd44
5061 extra_headers
=math-68881.h
5064 m68k-hp-bsd
*) # HP 9000/3xx running Berkeley Unix
5065 tm_file
=m68k
/hp3bsd.h
5067 extra_headers
=math-68881.h
5071 if test x
$with_fp = xno
5073 tm_file
=m68k
/isi-nfp.h
5079 extra_headers
=math-68881.h
5081 m68k-hp-hpux7
*) # HP 9000 series 300 running HPUX version 7.
5082 xm_file
="xm-alloca.h ${xm_file}"
5084 if test x
$gas = xyes
5086 xmake_file
=m68k
/x-hp320g
5087 tm_file
=m68k
/hp320g.h
5089 xmake_file
=m68k
/x-hp320
5090 tm_file
=m68k
/hpux7.h
5092 install_headers_dir
=install-headers-cpio
5094 extra_headers
=math-68881.h
5097 m68k-hp-hpux
*) # HP 9000 series 300
5098 xm_file
="xm-alloca.h ${xm_file}"
5100 if test x
$gas = xyes
5102 xmake_file
=m68k
/x-hp320g
5103 tm_file
=m68k
/hp320g.h
5105 xmake_file
=m68k
/x-hp320
5106 tm_file
=m68k
/hp320.h
5108 install_headers_dir
=install-headers-cpio
5110 extra_headers
=math-68881.h
5114 tm_file
=m68k
/sun3mach.h
5116 extra_headers
=math-68881.h
5120 if test x
$gas = xyes
5122 tm_file
=m68k
/news3gas.h
5124 tm_file
=m68k
/news3.h
5127 extra_headers
=math-68881.h
5130 m68k-sony-bsd
* | m68k-sony-newsos
*)
5131 if test x
$gas = xyes
5133 tm_file
=m68k
/newsgas.h
5138 extra_headers
=math-68881.h
5141 m68k-next-nextstep2
*)
5142 tm_file
=m68k
/next21.h
5143 xm_file
="m68k/xm-next.h ${xm_file}"
5144 tmake_file
=m68k
/t-next
5145 xmake_file
=m68k
/x-next
5146 extra_objs
=nextstep.o
5147 extra_headers
=math-68881.h
5151 m68k-next-nextstep
[34]*)
5153 xm_file
="m68k/xm-next.h ${xm_file}"
5154 tmake_file
=m68k
/t-next
5155 xmake_file
=m68k
/x-next
5156 extra_objs
=nextstep.o
5157 extra_parts
="crtbegin.o crtend.o"
5158 extra_headers
=math-68881.h
5160 if test x
$enable_threads = xyes
; then
5165 if test x
$with_fp = xno
5167 tm_file
=m68k
/sun3n3.h
5169 tm_file
=m68k
/sun3o3.h
5173 extra_headers
=math-68881.h
5175 m68k-sun-sunos
*) # For SunOS 4 (the default).
5176 if test x
$with_fp = xno
5178 tm_file
=m68k
/sun3n.h
5184 extra_headers
=math-68881.h
5187 tm_file
=m68k
/vxm68k.h
5188 tmake_file
=m68k
/t-vxworks68
5189 extra_headers
=math-68881.h
5190 thread_file
='vxworks'
5194 tmake_file
=m68k
/t-m68kbare
5195 tm_file
="m68k/m68k-aout.h libgloss.h"
5196 extra_headers
=math-68881.h
5200 tmake_file
=m68k
/t-m68kbare
5201 tm_file
="m68k/m68k-coff.h dbx.h libgloss.h"
5202 extra_headers
=math-68881.h
5205 m68020-
*-elf* | m68k-
*-elf*)
5206 tm_file
="m68k/m68020-elf.h"
5207 xm_file
=m68k
/xm-m68kv.h
5208 tmake_file
=m68k
/t-m68kelf
5209 header_files
=math-68881.h
5212 if test x
$gas = xyes
5216 tm_file
=m68k
/lynx-ng.h
5218 xm_file
=m68k
/xm-lynx.h
5220 tmake_file
=m68k
/t-lynx
5221 extra_headers
=math-68881.h
5225 tm_file
=m68k
/netbsd.h
5232 # we need collect2 until our bug is fixed...
5235 m68k-
*-sysv3*) # Motorola m68k's running system V.3
5236 xm_file
="xm-alloca.h ${xm_file}"
5238 xmake_file
=m68k
/x-m68kv
5239 extra_parts
="crtbegin.o crtend.o"
5240 extra_headers
=math-68881.h
5243 m68k-
*-sysv4*) # Motorola m68k's running system V.4
5244 tm_file
=m68k
/m68kv4.h
5245 xm_file
="xm-alloca.h ${xm_file}"
5248 extra_parts
="crtbegin.o crtend.o"
5249 extra_headers
=math-68881.h
5252 m68k-
*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
5255 tm_file
=m68k
/linux-aout.h
5256 tmake_file
="t-linux-aout m68k/t-linux-aout"
5257 extra_headers
=math-68881.h
5261 m68k-
*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
5262 # with ELF format using the
5263 # GNU/Linux C library 5
5265 tm_file
=m68k
/linux.h
5266 tmake_file
="t-linux t-linux-gnulibc1 m68k/t-linux"
5267 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5268 extra_headers
=math-68881.h
5272 m68k-
*-linux-gnu*) # Motorola m68k's running GNU/Linux
5273 # with ELF format using glibc 2
5274 # aka the GNU/Linux C library 6.
5276 tm_file
=m68k
/linux.h
5277 tmake_file
="t-linux m68k/t-linux"
5278 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5279 extra_headers
=math-68881.h
5282 if test x
$enable_threads = xyes
; then
5287 tmake_file
=m68k
/t-m68kbare
5288 tm_file
=m68k
/m68k-psos.h
5289 extra_headers
=math-68881.h
5293 tmake_file
="m68k/t-m68kbare t-rtems"
5294 tm_file
=m68k
/rtems.h
5295 extra_headers
=math-68881.h
5298 m68k-
*-rtemself*|m68k-
*-rtems*)
5299 tmake_file
="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
5300 tm_file
=m68k
/rtemself.h
5301 extra_headers
=math-68881.h
5307 tm_file
=m88k
/dguxbcs.h
5308 tmake_file
=m88k
/t-dguxbcs
5312 tmake_file
=m88k
/t-dgux
5315 extra_parts
="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
5316 xmake_file
=m88k
/x-dgux
5317 if test x
$gas = xyes
5319 tmake_file
=m88k
/t-dgux-gas
5322 m88k-dolphin-sysv3
*)
5323 tm_file
=m88k
/dolph.h
5324 extra_parts
="crtbegin.o crtend.o"
5325 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5326 xmake_file
=m88k
/x-dolph
5327 if test x
$gas = xyes
5329 tmake_file
=m88k
/t-m88k-gas
5332 m88k-tektronix-sysv3
)
5333 tm_file
=m88k
/tekXD88.h
5334 extra_parts
="crtbegin.o crtend.o"
5335 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5336 xmake_file
=m88k
/x-tekXD88
5337 if test x
$gas = xyes
5339 tmake_file
=m88k
/t-m88k-gas
5343 tm_file
=m88k
/m88k-aout.h
5346 tm_file
=m88k
/m88k-coff.h
5347 tmake_file
=m88k
/t-bug
5351 extra_parts
="crtbegin.o crtend.o"
5352 if test x
$gas = xyes
5354 tmake_file
=m88k
/t-luna-gas
5356 tmake_file
=m88k
/t-luna
5360 tmake_file
="${tmake_file} m88k/t-luna-gas"
5361 tm_file
="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
5362 xm_file
="xm-openbsd.h m88k/xm-m88k.h ${xm_file}"
5365 tm_file
=m88k
/sysv3.h
5366 extra_parts
="crtbegin.o crtend.o"
5367 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5368 xmake_file
=m88k
/x-sysv3
5369 if test x
$gas = xyes
5371 tmake_file
=m88k
/t-m88k-gas
5375 tm_file
=m88k
/sysv4.h
5376 extra_parts
="crtbegin.o crtend.o"
5377 xmake_file
=m88k
/x-sysv4
5378 tmake_file
=m88k
/t-sysv4
5381 tm_file
=mcore
/mcore-elf.h
5382 tmake_file
=mcore
/t-mcore
5385 tm_file
=mcore
/mcore-pe.h
5386 tmake_file
=mcore
/t-mcore-pe
5388 mips-sgi-irix6
*) # SGI System V.4., IRIX 6
5389 if test "x$gnu_ld" = xyes
5391 tm_file
="mips/iris6.h mips/iris6gld.h"
5393 tm_file
=mips
/iris6.h
5395 tmake_file
=mips
/t-iris6
5396 xm_file
=mips
/xm-iris6.h
5397 xmake_file
=mips
/x-iris6
5398 # if test x$enable_threads = xyes; then
5399 # thread_file='irix'
5403 tm_file
="mips/elf.h mips/vxworks.h"
5404 tmake_file
=mips
/t-ecoff
5407 extra_parts
="crtbegin.o crtend.o"
5408 thread_file
='vxworks'
5410 mips-sgi-irix5cross64
) # Irix5 host, Irix 6 target, cross64
5411 tm_file
="mips/iris6.h mips/cross64.h"
5413 xm_file
="mips/xm-iris5.h"
5414 xmake_file
=mips
/x-iris
5415 tmake_file
=mips
/t-cross64
5416 # See comment in mips/iris[56].h files.
5418 # if test x$enable_threads = xyes; then
5419 # thread_file='irix'
5423 if test x
$gas = xyes
5425 if test x
$stabs = xyes
5427 tm_file
=mips
/iris5gdb.h
5429 tm_file
="mips/sni-svr4.h mips/sni-gas.h"
5432 tm_file
=mips
/sni-svr4.h
5435 xmake_file
=mips
/x-sni-svr4
5436 tmake_file
=mips
/t-mips-gas
5437 if test x
$gnu_ld != xyes
5442 mips-sgi-irix5
*) # SGI System V.4., IRIX 5
5443 if test x
$gas = xyes
5445 tm_file
="mips/iris5.h mips/iris5gas.h"
5446 if test x
$stabs = xyes
5448 tm_file
="${tm_file} dbx.h"
5451 tm_file
=mips
/iris5.h
5454 xm_file
="mips/xm-iris5.h"
5455 xmake_file
=mips
/x-iris
5456 # mips-tfile doesn't work yet
5457 tmake_file
=mips
/t-mips-gas
5458 # See comment in mips/iris5.h file.
5460 # if test x$enable_threads = xyes; then
5461 # thread_file='irix'
5464 mips-sgi-irix4loser
*) # Mostly like a MIPS.
5465 tm_file
="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
5466 if test x
$stabs = xyes
; then
5467 tm_file
="${tm_file} dbx.h"
5470 xmake_file
=mips
/x-iris
5471 if test x
$gas = xyes
5473 tmake_file
=mips
/t-mips-gas
5475 extra_passes
="mips-tfile mips-tdump"
5477 if test x
$gnu_ld != xyes
5481 # if test x$enable_threads = xyes; then
5482 # thread_file='irix'
5485 mips-sgi-irix4
*) # Mostly like a MIPS.
5486 tm_file
="mips/iris3.h ${tm_file} mips/iris4.h"
5487 if test x
$stabs = xyes
; then
5488 tm_file
="${tm_file} dbx.h"
5491 xmake_file
=mips
/x-iris
5492 if test x
$gas = xyes
5494 tmake_file
=mips
/t-mips-gas
5496 extra_passes
="mips-tfile mips-tdump"
5498 if test x
$gnu_ld != xyes
5502 # if test x$enable_threads = xyes; then
5503 # thread_file='irix'
5506 mips-sgi-
*) # Mostly like a MIPS.
5507 tm_file
="mips/iris3.h ${tm_file}"
5508 if test x
$stabs = xyes
; then
5509 tm_file
="${tm_file} dbx.h"
5512 xmake_file
=mips
/x-iris3
5513 if test x
$gas = xyes
5515 tmake_file
=mips
/t-mips-gas
5517 extra_passes
="mips-tfile mips-tdump"
5519 if test x
$gnu_ld != xyes
5524 mips-dec-osfrose
*) # Decstation running OSF/1 reference port with OSF/rose.
5525 tm_file
="mips/osfrose.h ${tm_file}"
5526 xmake_file
=mips
/x-osfrose
5527 tmake_file
=mips
/t-osfrose
5528 extra_objs
=halfpic.o
5531 mips-dec-osf
*) # Decstation running OSF/1 as shipped by DIGITAL
5532 tm_file
=mips
/dec-osf1.h
5533 if test x
$stabs = xyes
; then
5534 tm_file
="${tm_file} dbx.h"
5536 xmake_file
=mips
/x-dec-osf1
5537 if test x
$gas = xyes
5539 tmake_file
=mips
/t-mips-gas
5541 tmake_file
=mips
/t-ultrix
5542 extra_passes
="mips-tfile mips-tdump"
5544 if test x
$gnu_ld != xyes
5549 mips-dec-bsd
*) # Decstation running 4.4 BSD
5550 tm_file
=mips
/dec-bsd.h
5551 if test x
$gas = xyes
5553 tmake_file
=mips
/t-mips-gas
5555 tmake_file
=mips
/t-ultrix
5556 extra_passes
="mips-tfile mips-tdump"
5558 if test x
$gnu_ld != xyes
5563 mipsel-
*-netbsd* | mips-dec-netbsd
*) # Decstation running NetBSD
5564 tm_file
=mips
/netbsd.h
5565 # On NetBSD, the headers are already okay, except for math.h.
5568 mips
*-*-linux*) # Linux MIPS, either endian.
5571 mipsel-
*) tm_file
="mips/elfl.h mips/linux.h" ;;
5572 *) tm_file
="mips/elf.h mips/linux.h" ;;
5574 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5577 if test x
$enable_threads = xyes
; then
5581 mips
*el-
*-openbsd*) # mips little endian
5582 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5584 mips
*-*-openbsd*) # mips big endian
5585 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5586 tm_file
="mips/openbsd-be.h ${tm_file}"
5588 mips-sony-bsd
* | mips-sony-newsos
*) # Sony NEWS 3600 or risc/news.
5589 tm_file
="mips/news4.h ${tm_file}"
5590 if test x
$stabs = xyes
; then
5591 tm_file
="${tm_file} dbx.h"
5593 if test x
$gas = xyes
5595 tmake_file
=mips
/t-mips-gas
5597 extra_passes
="mips-tfile mips-tdump"
5599 if test x
$gnu_ld != xyes
5603 xmake_file
=mips
/x-sony
5605 mips-sony-sysv
*) # Sony NEWS 3800 with NEWSOS5.0.
5606 # That is based on svr4.
5607 # t-svr4 is not right because this system doesn't use ELF.
5608 tm_file
="mips/news5.h ${tm_file}"
5609 if test x
$stabs = xyes
; then
5610 tm_file
="${tm_file} dbx.h"
5613 if test x
$gas = xyes
5615 tmake_file
=mips
/t-mips-gas
5617 extra_passes
="mips-tfile mips-tdump"
5619 if test x
$gnu_ld != xyes
5624 mips-tandem-sysv4
*) # Tandem S2 running NonStop UX
5625 tm_file
="mips/svr4-5.h mips/svr4-t.h"
5626 if test x
$stabs = xyes
; then
5627 tm_file
="${tm_file} dbx.h"
5630 xmake_file
=mips
/x-sysv
5631 if test x
$gas = xyes
5633 tmake_file
=mips
/t-mips-gas
5634 extra_parts
="crtbegin.o crtend.o"
5636 tmake_file
=mips
/t-mips
5637 extra_passes
="mips-tfile mips-tdump"
5639 if test x
$gnu_ld != xyes
5644 mips-
*-ultrix* | mips-dec-mach3
) # Decstation.
5645 tm_file
="mips/ultrix.h ${tm_file}"
5646 if test x
$stabs = xyes
; then
5647 tm_file
="${tm_file} dbx.h"
5649 xmake_file
=mips
/x-ultrix
5650 if test x
$gas = xyes
5652 tmake_file
=mips
/t-mips-gas
5654 tmake_file
=mips
/t-ultrix
5655 extra_passes
="mips-tfile mips-tdump"
5657 if test x
$gnu_ld != xyes
5662 mips-
*-riscos[56789]bsd
*)
5663 tm_file
=mips
/bsd-5.h
# MIPS BSD 4.3, RISC-OS 5.0
5664 if test x
$stabs = xyes
; then
5665 tm_file
="${tm_file} dbx.h"
5667 if test x
$gas = xyes
5669 tmake_file
=mips
/t-bsd-gas
5671 tmake_file
=mips
/t-bsd
5672 extra_passes
="mips-tfile mips-tdump"
5674 if test x
$gnu_ld != xyes
5679 mips-
*-bsd* | mips-
*-riscosbsd* | mips-
*-riscos[1234]bsd
*)
5680 tm_file
="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
5681 if test x
$stabs = xyes
; then
5682 tm_file
="${tm_file} dbx.h"
5684 if test x
$gas = xyes
5686 tmake_file
=mips
/t-bsd-gas
5688 tmake_file
=mips
/t-bsd
5689 extra_passes
="mips-tfile mips-tdump"
5691 if test x
$gnu_ld != xyes
5696 mips-
*-riscos[56789]sysv4
*)
5697 tm_file
=mips
/svr4-5.h
# MIPS System V.4., RISC-OS 5.0
5698 if test x
$stabs = xyes
; then
5699 tm_file
="${tm_file} dbx.h"
5701 xmake_file
=mips
/x-sysv
5702 if test x
$gas = xyes
5704 tmake_file
=mips
/t-svr4-gas
5706 tmake_file
=mips
/t-svr4
5707 extra_passes
="mips-tfile mips-tdump"
5709 if test x
$gnu_ld != xyes
5714 mips-
*-sysv4* | mips-
*-riscos[1234]sysv4
* | mips-
*-riscossysv4*)
5715 tm_file
="mips/svr4-4.h ${tm_file}"
5716 if test x
$stabs = xyes
; then
5717 tm_file
="${tm_file} dbx.h"
5720 xmake_file
=mips
/x-sysv
5721 if test x
$gas = xyes
5723 tmake_file
=mips
/t-svr4-gas
5725 tmake_file
=mips
/t-svr4
5726 extra_passes
="mips-tfile mips-tdump"
5728 if test x
$gnu_ld != xyes
5733 mips-
*-riscos[56789]sysv
*)
5734 tm_file
=mips
/svr3-5.h
# MIPS System V.3, RISC-OS 5.0
5735 if test x
$stabs = xyes
; then
5736 tm_file
="${tm_file} dbx.h"
5739 xmake_file
=mips
/x-sysv
5740 if test x
$gas = xyes
5742 tmake_file
=mips
/t-svr3-gas
5744 tmake_file
=mips
/t-svr3
5745 extra_passes
="mips-tfile mips-tdump"
5747 if test x
$gnu_ld != xyes
5752 mips-
*-sysv* | mips-
*-riscos*sysv
*)
5753 tm_file
="mips/svr3-4.h ${tm_file}"
5754 if test x
$stabs = xyes
; then
5755 tm_file
="${tm_file} dbx.h"
5758 xmake_file
=mips
/x-sysv
5759 if test x
$gas = xyes
5761 tmake_file
=mips
/t-svr3-gas
5763 tmake_file
=mips
/t-svr3
5764 extra_passes
="mips-tfile mips-tdump"
5766 if test x
$gnu_ld != xyes
5771 mips-
*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
5772 tm_file
=mips
/mips-5.h
5773 if test x
$stabs = xyes
; then
5774 tm_file
="${tm_file} dbx.h"
5776 if test x
$gas = xyes
5778 tmake_file
=mips
/t-mips-gas
5780 extra_passes
="mips-tfile mips-tdump"
5782 if test x
$gnu_ld != xyes
5790 tm_file
=mips
/ecoffl.h
5791 if test x
$stabs = xyes
; then
5792 tm_file
="${tm_file} dbx.h"
5794 tmake_file
=mips
/t-ecoff
5797 tm_file
="gofast.h mips/ecoff.h"
5798 if test x
$stabs = xyes
; then
5799 tm_file
="${tm_file} dbx.h"
5801 tmake_file
=mips
/t-ecoff
5804 tm_file
="mips/elfl.h"
5805 tmake_file
=mips
/t-elf
5808 tm_file
="mips/elf.h"
5809 tmake_file
=mips
/t-elf
5812 tm_file
="mips/elfl64.h"
5813 tmake_file
=mips
/t-elf
5815 mips64orionel-
*-elf*)
5816 tm_file
="mips/elforion.h mips/elfl64.h"
5817 tmake_file
=mips
/t-elf
5820 tm_file
="mips/elf64.h"
5821 tmake_file
=mips
/t-elf
5824 tm_file
="mips/elforion.h mips/elf64.h"
5825 tmake_file
=mips
/t-elf
5827 mips64orion-
*-rtems*)
5828 tm_file
="mips/elforion.h mips/elf64.h mips/rtems64.h"
5829 tmake_file
="mips/t-elf t-rtems"
5832 tm_file
="mips/r3900.h mips/elfl.h mips/abi64.h"
5833 tmake_file
=mips
/t-r3900
5836 tm_file
="mips/r3900.h mips/elf.h mips/abi64.h"
5837 tmake_file
=mips
/t-r3900
5839 mips-
*-*) # Default MIPS RISC-OS 4.0.
5840 if test x
$stabs = xyes
; then
5841 tm_file
="${tm_file} dbx.h"
5843 if test x
$gas = xyes
5845 tmake_file
=mips
/t-mips-gas
5847 extra_passes
="mips-tfile mips-tdump"
5849 if test x
$gnu_ld != xyes
5857 tm_file
="mn10200/mn10200.h"
5858 if test x
$stabs = xyes
5860 tm_file
="${tm_file} dbx.h"
5866 tm_file
="mn10300/mn10300.h"
5867 if test x
$stabs = xyes
5869 tm_file
="${tm_file} dbx.h"
5874 tm_file
=ns32k
/encore.h
5878 tm_file
=ns32k
/sequent.h
5882 tm_file
=ns32k
/tek6100.h
5886 tm_file
=ns32k
/tek6200.h
5889 # This has not been updated to GCC 2.
5892 # xmake_file=ns32k/x-genix
5893 # tm_file=ns32k/genix.h
5897 tm_file
=ns32k
/merlin.h
5901 tm_file
=ns32k
/pc532-mach.h
5905 tm_file
=ns32k
/pc532-min.h
5906 xm_file
="ns32k/xm-pc532-min.h ${xm-file}"
5911 tm_file
=ns32k
/netbsd.h
5912 xm_file
="ns32k/xm-netbsd.h ${xm_file}"
5913 # On NetBSD, the headers are already okay, except for math.h.
5918 tm_file
="${tm_file} pdp11/2bsd.h"
5927 # This has not been updated to GCC 2.
5930 # xmake_file=pyr/x-pyr
5935 tm_file
="svr4.h pj/linux.h ${tm_file}"
5940 tm_file
="svr4.h pj/pjl.h ${tm_file}"
5947 xmake_file
=romp
/x-mach
5954 tmake_file
="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
5958 tm_file
=rs6000
/beos.h
5959 xm_file
=rs6000
/xm-beos.h
5960 tmake_file
=rs6000
/t-beos
5961 xmake_file
=rs6000
/x-beos
5964 tm_file
=rs6000
/sysv4.h
5965 xm_file
="rs6000/xm-sysv4.h"
5966 xm_defines
="USG POSIX"
5967 extra_headers
=ppc-asm.h
5968 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
5969 xmake_file
=rs6000
/x-sysv4
5972 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
5973 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5974 extra_headers
=ppc-asm.h
5977 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
5978 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5979 extra_headers
=ppc-asm.h
5982 tm_file
="rs6000/sysv4.h"
5983 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5984 extra_headers
=ppc-asm.h
5987 tm_file
="rs6000/sysv4.h rs6000/eabi.h"
5988 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5989 extra_headers
=ppc-asm.h
5992 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
5993 tmake_file
="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
5994 extra_headers
=ppc-asm.h
5996 powerpc-
*-linux-gnulibc1)
5997 tm_file
="rs6000/sysv4.h rs6000/linux.h"
5998 xm_file
=rs6000
/xm-sysv4.h
5999 out_file
=rs6000
/rs6000.c
6000 tmake_file
="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
6002 extra_headers
=ppc-asm.h
6003 if test x
$enable_threads = xyes
; then
6007 powerpc-
*-linux-gnu*)
6008 tm_file
="rs6000/sysv4.h rs6000/linux.h"
6009 xm_file
="rs6000/xm-sysv4.h"
6010 xm_defines
="USG ${xm_defines}"
6011 out_file
=rs6000
/rs6000.c
6012 tmake_file
="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
6014 extra_headers
=ppc-asm.h
6015 if test x
$enable_threads = xyes
; then
6019 powerpc-wrs-vxworks
*)
6021 xm_file
="rs6000/xm-sysv4.h"
6022 xm_defines
="USG POSIX"
6023 tm_file
="rs6000/sysv4.h rs6000/vxppc.h"
6024 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6025 extra_headers
=ppc-asm.h
6026 thread_file
='vxworks'
6028 powerpcle-wrs-vxworks
*)
6030 xm_file
="rs6000/xm-sysv4.h"
6031 xm_defines
="USG POSIX"
6032 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
6033 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6034 extra_headers
=ppc-asm.h
6035 thread_file
='vxworks'
6038 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h"
6039 xm_file
="rs6000/xm-sysv4.h"
6040 xm_defines
="USG POSIX"
6041 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
6042 xmake_file
=rs6000
/x-sysv4
6043 extra_headers
=ppc-asm.h
6046 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h"
6047 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6048 extra_headers
=ppc-asm.h
6050 powerpcle-
*-eabisim*)
6051 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
6052 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6053 extra_headers
=ppc-asm.h
6056 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
6057 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6058 extra_headers
=ppc-asm.h
6060 powerpcle-
*-solaris2*)
6061 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
6062 xm_file
="rs6000/xm-sysv4.h"
6063 xm_defines
="USG POSIX"
6064 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
6065 xmake_file
=rs6000
/x-sysv4
6066 extra_headers
=ppc-asm.h
6068 rs6000-ibm-aix3.
[01]*)
6069 tm_file
=rs6000
/aix31.h
6070 xmake_file
=rs6000
/x-aix31
6074 rs6000-ibm-aix3.2.
[456789]* | powerpc-ibm-aix3.2.
[456789]*)
6075 tm_file
=rs6000
/aix3newas.h
6076 if test x
$host != x
$target
6078 tmake_file
=rs6000
/t-xnewas
6080 tmake_file
=rs6000
/t-newas
6085 rs6000-ibm-aix4.
[12]* | powerpc-ibm-aix4.
[12]*)
6086 tm_file
=rs6000
/aix41.h
6087 if test x
$host != x
$target
6089 tmake_file
=rs6000
/t-xnewas
6091 tmake_file
=rs6000
/t-newas
6093 if test "$gnu_ld" = yes
6095 xmake_file
=rs6000
/x-aix41-gld
6097 tmake_file
="rs6000/t-newas rs6000/t-aix41"
6099 xmake_file
=rs6000
/x-aix41
6103 rs6000-ibm-aix4.
[3456789]* | powerpc-ibm-aix4.
[3456789]*)
6104 tm_file
=rs6000
/aix43.h
6105 tmake_file
=rs6000
/t-aix43
6106 xmake_file
=rs6000
/x-aix41
6110 rs6000-ibm-aix
[56789].
* | powerpc-ibm-aix
[56789].
*)
6111 tm_file
=rs6000
/aix43.h
6112 tmake_file
=rs6000
/t-aix43
6113 xmake_file
=rs6000
/x-aix41
6126 tm_file
=rs6000
/mach.h
6127 xm_file
="${xm_file} rs6000/xm-mach.h"
6128 xmake_file
=rs6000
/x-mach
6132 tm_file
=rs6000
/lynx.h
6133 xm_file
=rs6000
/xm-lynx.h
6134 tmake_file
=rs6000
/t-rs6000
6135 xmake_file
=rs6000
/x-lynx
6143 tmake_file
="sh/t-sh t-rtems"
6144 tm_file
=sh
/rtemself.h
6148 tmake_file
="sh/t-sh t-rtems"
6157 xm_file
="xm-alloca.h ${xm_file}"
6160 sparc-wrs-vxworks
* | sparclite-wrs-vxworks
*)
6161 tm_file
=sparc
/vxsparc.h
6162 tmake_file
=sparc
/t-vxsparc
6164 thread_file
='vxworks'
6167 tmake_file
=sparc
/t-sparcbare
6168 tm_file
="sparc/aout.h libgloss.h"
6171 tm_file
=sparc
/netbsd.h
6176 # we need collect2 until our bug is fixed...
6184 tmake_file
=sparc
/t-elf
6185 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
6189 sparc-
*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
6190 xm_file
="${xm_file} sparc/xm-linux.h"
6191 tm_file
=sparc
/linux-aout.h
6195 sparc-
*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
6196 xm_file
="${xm_file} sparc/xm-linux.h"
6198 tm_file
=sparc
/linux.h
6199 tmake_file
="t-linux t-linux-gnulibc1"
6200 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6204 sparc-
*-linux-gnu*) # Sparc's running GNU/Linux, libc6
6205 xm_file
="${xm_file} sparc/xm-linux.h"
6207 tm_file
=sparc
/linux.h
6208 tmake_file
="t-linux"
6209 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6211 if test x
$enable_threads = xyes
; then
6217 if test x
$gas = xyes
6219 tm_file
=sparc
/lynx.h
6221 tm_file
=sparc
/lynx-ng.h
6223 xm_file
=sparc
/xm-lynx.h
6224 tmake_file
=sparc
/t-sunos41
6228 tmake_file
="sparc/t-sparcbare t-rtems"
6229 tm_file
=sparc
/rtems.h
6231 sparc-
*-rtems*|sparc-
*-rtemself*)
6232 tm_file
="sparc/rtemself.h"
6233 tmake_file
="sparc/t-elf t-rtems"
6234 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
6238 sparcv9-
*-solaris2*)
6239 if test x
$gnu_ld = xyes
6241 tm_file
=sparc
/sol2-64.h
6243 tm_file
=sparc
/sol2-sld-64.h
6245 xm_file
="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
6246 xm_defines
="USG POSIX"
6247 tmake_file
="sparc/t-sol2 sparc/t-sol2-64"
6248 xmake_file
=sparc
/x-sysv4
6249 extra_parts
="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
6251 if test x
${enable_threads} = x
; then
6252 enable_threads
=$have_pthread_h
6253 if test x
${enable_threads} = x
; then
6254 enable_threads
=$have_thread_h
6257 if test x
${enable_threads} = xyes
; then
6258 if test x
${have_pthread_h} = xyes
; then
6261 thread_file
='solaris'
6265 sparc-hal-solaris2
*)
6266 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6267 xm_defines
="USG POSIX"
6268 tm_file
="sparc/sol2.h sparc/hal.h"
6269 tmake_file
="sparc/t-halos sparc/t-sol2"
6270 xmake_file
=sparc
/x-sysv4
6271 extra_parts
="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
6280 thread_file
='solaris'
6283 if test x
$gnu_ld = xyes
6285 tm_file
=sparc
/sol2.h
6287 tm_file
=sparc
/sol2-sld.h
6289 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6290 xm_defines
="USG POSIX"
6291 tmake_file
=sparc
/t-sol2
6292 xmake_file
=sparc
/x-sysv4
6293 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
6295 *-*-solaris2.
[0-6] |
*-*-solaris2.
[0-6].
*) ;;
6297 if test x
$gnu_ld = xyes
6299 tm_file
=sparc
/sol2-64.h
6301 tm_file
=sparc
/sol2-sld-64.h
6303 tmake_file
="$tmake_file sparc/t-sol2-64"
6314 if test x
${enable_threads} = x
; then
6315 enable_threads
=$have_pthread_h
6316 if test x
${enable_threads} = x
; then
6317 enable_threads
=$have_thread_h
6320 if test x
${enable_threads} = xyes
; then
6321 if test x
${have_pthread_h} = xyes
; then
6324 thread_file
='solaris'
6329 tm_file
=sparc
/sunos4.h
6330 tmake_file
=sparc
/t-sunos40
6334 tm_file
=sparc
/sunos4.h
6335 tmake_file
=sparc
/t-sunos41
6337 if test x
$gas = xyes
; then
6338 tm_file
="${tm_file} sparc/sun4gas.h"
6342 tm_file
=sparc
/sun4o3.h
6346 tm_file
=sparc
/sysv4.h
6347 xm_file
="sparc/xm-sysv4.h"
6348 xm_defines
="USG POSIX"
6350 xmake_file
=sparc
/x-sysv4
6351 extra_parts
="crtbegin.o crtend.o"
6354 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6355 xm_defines
="USG POSIX"
6356 tm_file
=sparc
/vxsim.h
6357 tmake_file
=sparc
/t-vxsparc
6358 xmake_file
=sparc
/x-sysv4
6361 tm_file
="sparc/splet.h libgloss.h"
6362 tmake_file
=sparc
/t-splet
6365 tm_file
="sparc/litecoff.h libgloss.h"
6366 tmake_file
=sparc
/t-sparclite
6369 tm_file
="sparc/lite.h aoutos.h libgloss.h"
6370 tmake_file
=sparc
/t-sparclite
6373 tm_file
="sparc/liteelf.h"
6374 tmake_file
=sparc
/t-sparclite
6375 extra_parts
="crtbegin.o crtend.o"
6378 tm_file
="sparc/sp86x-aout.h aoutos.h libgloss.h"
6379 tmake_file
=sparc
/t-sp86x
6382 tm_file
="sparc/sp86x-elf.h"
6383 tmake_file
=sparc
/t-sp86x
6384 extra_parts
="crtbegin.o crtend.o"
6387 tmake_file
=sparc
/t-sp64
6388 tm_file
=sparc
/sp64-aout.h
6391 tmake_file
=sparc
/t-sp64
6392 tm_file
=sparc
/sp64-elf.h
6393 extra_parts
="crtbegin.o crtend.o"
6395 sparc64-
*-linux*) # 64-bit Sparc's running GNU/Linux
6396 tmake_file
="t-linux sparc/t-linux64"
6397 xm_file
="sparc/xm-sp64.h sparc/xm-linux.h"
6398 tm_file
=sparc
/linux64.h
6400 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6402 if test x
$enable_threads = xyes
; then
6407 # This hasn't been upgraded to GCC 2.
6408 # tahoe-harris-*) # Harris tahoe, using COFF.
6409 # tm_file=tahoe/harris.h
6411 # tahoe-*-bsd*) # tahoe running BSD
6415 { echo "configure: error:
6416 *** The Thumb targets have been depreciated. The equivalent
6417 *** ARM based toolchain can now generated Thumb instructions
6418 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
6420 # This hasn't been upgraded to GCC 2.
6427 tm_file
="v850/rtems.h"
6428 xm_file
="v850/xm-v850.h"
6429 tmake_file
="v850/t-v850 t-rtems"
6430 if test x
$stabs = xyes
6432 tm_file
="${tm_file} dbx.h"
6437 target_cpu_default
="TARGET_CPU_generic"
6439 tm_file
="v850/v850.h"
6440 xm_file
="v850/xm-v850.h"
6441 tmake_file
=v850
/t-v850
6442 if test x
$stabs = xyes
6444 tm_file
="${tm_file} dbx.h"
6448 vax-
*-bsd*) # vaxen running BSD
6452 vax-
*-sysv*) # vaxen running system V
6453 tm_file
="${tm_file} vax/vaxv.h"
6458 tm_file
="${tm_file} netbsd.h vax/netbsd.h"
6464 tmake_file
="${tmake_file} vax/t-openbsd"
6465 tm_file
="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
6466 xm_file
="xm-openbsd.h vax/xm-vax.h"
6470 vax-
*-ultrix*) # vaxen running ultrix
6471 tm_file
="${tm_file} vax/ultrix.h"
6475 vax-
*-vms*) # vaxen running VMS
6476 xm_file
=vax
/xm-vms.h
6480 vax-
*-*) # vax default entry
6484 xm_file
="${xm_file} xm-svr3"
6488 echo "Configuration $machine not supported" 1>&2
6495 ;; # Existing GNU/Linux systems do not use the GNU setup.
6497 # On the GNU system, the setup is just about the same on
6498 # each different CPU. The specific machines that GNU
6499 # supports are matched above and just set $cpu_type.
6500 xm_file
="xm-gnu.h ${xm_file}"
6501 tm_file
=${cpu_type}/gnu.h
6502 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
6503 # GNU always uses ELF.
6505 # GNU tools are the only tools.
6508 xmake_file
=x-linux
# These details are the same as Linux.
6509 tmake_file
=t-gnu
# These are not.
6512 xmake_try_sysv
=x-sysv
6513 install_headers_dir
=install-headers-cpio
6516 install_headers_dir
=install-headers-cpio
6520 # Distinguish i[34567]86
6521 # Also, do not run mips-tfile on MIPS if using gas.
6522 # Process --with-cpu= for PowerPC/rs6000
6523 target_cpu_default2
=
6526 target_cpu_default2
=1
6529 case $target_alias in
6531 target_cpu_default2
=4
6534 target_cpu_default2
=2
6538 i686-
*-* | i786-
*-*)
6539 target_cpu_default2
=3
6544 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
6547 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
6550 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
6553 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX"
6556 target_cpu_default2
="MASK_CPU_EV5"
6560 if test x
$gas = xyes
6562 if test "$target_cpu_default2" = ""
6564 target_cpu_default2
="MASK_GAS"
6566 target_cpu_default2
="${target_cpu_default2}|MASK_GAS"
6571 case "x$with_cpu" in
6574 target_cpu_default2
="TARGET_CPU_generic"
6577 # Distinguish cores, and major variants
6578 # arm7m doesn't exist, but D & I don't affect code
6579 xarm
[23678] | xarm250 | xarm
[67][01]0 \
6580 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
6581 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
6582 | xstrongarm | xstrongarm110 | xstrongarm1100
)
6583 target_cpu_default2
="TARGET_CPU_$with_cpu"
6587 echo "--with-cpu must be passed a value" 1>&2
6592 if test x
$pass2done = xyes
6594 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6601 mips
*-*-ecoff* | mips
*-*-elf*)
6602 if test x
$gas = xyes
6604 if test x
$gnu_ld = xyes
6606 target_cpu_default2
="MASK_GAS|MASK_SPLIT_ADDR"
6608 target_cpu_default2
="MASK_GAS"
6613 if test x
$gas = xyes
6615 target_cpu_default2
="MASK_GAS"
6618 powerpc
*-*-* | rs6000-
*-*)
6619 case "x$with_cpu" in
6623 xcommon | xpower | xpower2 | xpowerpc | xrios \
6624 | xrios1 | xrios2 | xrsc | xrsc1 \
6625 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
6626 | xec603e | x740 | x750 | x401 \
6627 | x403 | x505 | x801 | x821 | x823 | x860
)
6628 target_cpu_default2
="\"$with_cpu\""
6632 echo "--with-cpu must be passed a value" 1>&2
6637 if test x
$pass2done = xyes
6639 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6646 case ".$with_cpu" in
6648 target_cpu_default2
=TARGET_CPU_
"`echo $machine | sed 's/-.*$//'`"
6650 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9
)
6651 target_cpu_default2
="TARGET_CPU_$with_cpu"
6654 if test x
$pass2done = xyes
6656 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6664 if test "$target_cpu_default2" != ""
6666 if test "$target_cpu_default" != ""
6668 target_cpu_default
="(${target_cpu_default}|${target_cpu_default2})"
6670 target_cpu_default
=$target_cpu_default2
6674 # No need for collect2 if we have the GNU linker.
6675 # Actually, there is now; GNU ld doesn't handle the EH info or
6676 # collecting for shared libraries.
6683 # Save data on machine being used to compile GCC in build_xm_file.
6684 # Save data on host machine in vars host_xm_file and host_xmake_file.
6685 if test x
$pass1done = x
6687 if test x
"$xm_file" = x
6688 then build_xm_file
=$cpu_type/xm-
$cpu_type.h
6689 else build_xm_file
=$xm_file
6691 build_xm_defines
=$xm_defines
6692 build_install_headers_dir
=$install_headers_dir
6693 build_exeext
=$exeext
6696 if test x
$pass2done = x
6698 if test x
"$xm_file" = x
6699 then host_xm_file
=$cpu_type/xm-
$cpu_type.h
6700 else host_xm_file
=$xm_file
6702 host_xm_defines
=$xm_defines
6703 if test x
"$xmake_file" = x
6704 then xmake_file
=$cpu_type/x-
$cpu_type
6706 host_xmake_file
="$xmake_file"
6707 host_truncate_target
=$truncate_target
6708 host_extra_gcc_objs
=$extra_gcc_objs
6709 host_extra_objs
=$extra_host_objs
6716 extra_objs
="${host_extra_objs} ${extra_objs}"
6718 # Default the target-machine variables that were not explicitly set.
6719 if test x
"$tm_file" = x
6720 then tm_file
=$cpu_type/$cpu_type.h
; fi
6722 if test x
$extra_headers = x
6723 then extra_headers
=; fi
6725 if test x
"$xm_file" = x
6726 then xm_file
=$cpu_type/xm-
$cpu_type.h
; fi
6728 if test x
$md_file = x
6729 then md_file
=$cpu_type/$cpu_type.md
; fi
6731 if test x
$out_file = x
6732 then out_file
=$cpu_type/$cpu_type.c
; fi
6734 if test x
"$tmake_file" = x
6735 then tmake_file
=$cpu_type/t-
$cpu_type
6738 if test x
"$dwarf2" = xyes
6739 then tm_file
="$tm_file tm-dwarf2.h"
6742 if test x
$float_format = x
6743 then float_format
=i64
6746 if test $float_format = none
6747 then float_h_file
=Makefile.
in
6748 else float_h_file
=float-
$float_format.h
6751 # Handle cpp installation.
6752 if test x
$enable_cpp != xno
6754 tmake_file
="$tmake_file t-install-cpp"
6757 # Say what files are being used for the output code and MD file.
6758 echo "Using \`$srcdir/config/$out_file' to output insns."
6759 echo "Using \`$srcdir/config/$md_file' as machine description file."
6762 for f
in $tm_file; do
6765 if test $count = ax
; then
6766 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
6768 echo "Using the following target machine macro files:"
6769 for f
in $tm_file; do
6770 echo " $srcdir/config/$f"
6775 for f
in $host_xm_file; do
6778 if test $count = ax
; then
6779 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
6781 echo "Using the following host machine macro files:"
6782 for f
in $host_xm_file; do
6783 echo " $srcdir/config/$f"
6787 if test "$host_xm_file" != "$build_xm_file"; then
6789 for f
in $build_xm_file; do
6792 if test $count = ax
; then
6793 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
6795 echo "Using the following build machine macro files:"
6796 for f
in $build_xm_file; do
6797 echo " $srcdir/config/$f"
6802 if test x
$thread_file = x
; then
6803 if test x
$target_thread_file != x
; then
6804 thread_file
=$target_thread_file
6806 thread_file
='single'
6810 # Set up the header files.
6811 # $links is the list of header files to create.
6812 # $vars is the list of shell variables with file names to include.
6813 # auto-host.h is the file containing items generated by autoconf and is
6814 # the first file included by config.h.
6816 host_xm_file
="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
6818 # If host=build, it is correct to have hconfig include auto-host.h
6819 # as well. If host!=build, we are in error and need to do more
6820 # work to find out the build config parameters.
6821 if test x
$host = x
$build
6823 build_xm_file
="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
6825 # We create a subdir, then run autoconf in the subdir.
6826 # To prevent recursion we set host and build for the new
6827 # invocation of configure to the build for this invocation
6834 /*) realsrcdir
=${srcdir};;
6835 *) realsrcdir
=..
/${srcdir};;
6837 CC
=${CC_FOR_BUILD} ${realsrcdir}/configure \
6838 --target=$target --host=$build --build=$build
6840 # We just finished tests for the build machine, so rename
6841 # the file auto-build.h in the gcc directory.
6842 mv auto-host.h ..
/auto-build.h
6845 build_xm_file
="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
6848 xm_file
="gansidecl.h ${xm_file}"
6849 tm_file
="gansidecl.h ${tm_file}"
6851 vars
="host_xm_file tm_file tm_p_file xm_file build_xm_file"
6852 links
="config.h tm.h tm_p.h tconfig.h hconfig.h"
6853 defines
="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
6856 if test -f config.status
; then mv -f config.status config.bak
; fi
6859 while test -n "$vars"
6861 set $vars; var
=$1; shift; vars
=$
*
6862 set $links; link
=$1; shift; links
=$
*
6863 set $defines; define
=$1; shift; defines
=$
*
6866 # Make sure the file is created, even if it is empty.
6869 # Define TARGET_CPU_DEFAULT if the system wants one.
6870 # This substitutes for lots of *.h files.
6871 if test "$target_cpu_default" != "" -a $link = tm.h
6873 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
6876 for file in `eval echo '$'$var`; do
6878 auto-host.h | auto-build.h
)
6881 echo '#ifdef IN_GCC' >>$link
6884 echo "#include \"$file\"" >>$link
6886 auto-host.h | auto-build.h
)
6889 echo '#endif' >>$link
6894 for def
in `eval echo '$'$define`; do
6895 echo "#ifndef $def" >>$link
6896 echo "#define $def" >>$link
6897 echo "#endif" >>$link
6901 # Truncate the target if necessary
6902 if test x
$host_truncate_target != x
; then
6903 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
6906 # Get the version trigger filename from the toplevel
6907 if test "${with_gcc_version_trigger+set}" = set; then
6908 gcc_version_trigger
=$with_gcc_version_trigger
6910 gcc_version_trigger
=${srcdir}/version.c
6912 gcc_version
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
6914 # Internationalization
6916 VERSION
="$gcc_version"
6917 cat >> confdefs.h
<<EOF
6918 #define PACKAGE "$PACKAGE"
6921 cat >> confdefs.h
<<EOF
6922 #define VERSION "$VERSION"
6930 # Enable NLS support by default
6931 # Check whether --enable-nls or --disable-nls was given.
6932 if test "${enable_nls+set}" = set; then
6933 enableval
="$enable_nls"
6940 # if cross compiling, disable NLS support.
6941 # It's not worth the trouble, at least for now.
6943 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
6944 echo "configure: warning: Disabling NLS support for canadian cross compiler." 1>&2
6949 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
6950 echo "configure:6951: checking for strerror in -lcposix" >&5
6951 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
6952 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6953 echo $ac_n "(cached) $ac_c" 1>&6
6955 ac_save_LIBS
="$LIBS"
6956 LIBS
="-lcposix $LIBS"
6957 cat > conftest.
$ac_ext <<EOF
6958 #line 6959 "configure"
6959 #include "confdefs.h"
6960 /* Override any gcc2 internal prototype to avoid an error. */
6961 /* We use char because int might match the return type of a gcc2
6962 builtin and then its argument prototype would still apply. */
6969 if { (eval echo configure
:6970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6971 eval "ac_cv_lib_$ac_lib_var=yes"
6973 echo "configure: failed program was:" >&5
6974 cat conftest.
$ac_ext >&5
6976 eval "ac_cv_lib_$ac_lib_var=no"
6979 LIBS
="$ac_save_LIBS"
6982 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6983 echo "$ac_t""yes" 1>&6
6984 LIBS
="$LIBS -lcposix"
6986 echo "$ac_t""no" 1>&6
6991 echo $ac_n "checking for working const""... $ac_c" 1>&6
6992 echo "configure:6993: checking for working const" >&5
6993 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6994 echo $ac_n "(cached) $ac_c" 1>&6
6996 cat > conftest.
$ac_ext <<EOF
6997 #line 6998 "configure"
6998 #include "confdefs.h"
7002 /* Ultrix mips cc rejects this. */
7003 typedef int charset[2]; const charset x;
7004 /* SunOS 4.1.1 cc rejects this. */
7005 char const *const *ccp;
7007 /* NEC SVR4.0.2 mips cc rejects this. */
7008 struct point {int x, y;};
7009 static struct point const zero = {0,0};
7010 /* AIX XL C 1.02.0.0 rejects this.
7011 It does not let you subtract one const X* pointer from another in an arm
7012 of an if-expression whose if-part is not a constant expression */
7013 const char *g = "string";
7014 ccp = &g + (g ? g-g : 0);
7015 /* HPUX 7.0 cc rejects these. */
7018 ccp = (char const *const *) p;
7019 { /* SCO 3.2v4 cc rejects this. */
7021 char const *s = 0 ? (char *) 0 : (char const *) 0;
7025 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7027 const int *foo = &x[0];
7030 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7031 typedef const int *iptr;
7035 { /* AIX XL C 1.02.0.0 rejects this saying
7036 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7037 struct s { int j; const int *ap[3]; };
7038 struct s *b; b->j = 5;
7040 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7046 if { (eval echo configure
:7047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7050 echo "configure: failed program was:" >&5
7051 cat conftest.
$ac_ext >&5
7058 echo "$ac_t""$ac_cv_c_const" 1>&6
7059 if test $ac_cv_c_const = no
; then
7060 cat >> confdefs.h
<<\EOF
7066 echo $ac_n "checking for off_t""... $ac_c" 1>&6
7067 echo "configure:7068: checking for off_t" >&5
7068 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
7069 echo $ac_n "(cached) $ac_c" 1>&6
7071 cat > conftest.
$ac_ext <<EOF
7072 #line 7073 "configure"
7073 #include "confdefs.h"
7074 #include <sys/types.h>
7080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7081 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
7083 ac_cv_type_off_t
=yes
7091 echo "$ac_t""$ac_cv_type_off_t" 1>&6
7092 if test $ac_cv_type_off_t = no
; then
7093 cat >> confdefs.h
<<\EOF
7099 echo $ac_n "checking for size_t""... $ac_c" 1>&6
7100 echo "configure:7101: checking for size_t" >&5
7101 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
7102 echo $ac_n "(cached) $ac_c" 1>&6
7104 cat > conftest.
$ac_ext <<EOF
7105 #line 7106 "configure"
7106 #include "confdefs.h"
7107 #include <sys/types.h>
7113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7114 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
7116 ac_cv_type_size_t
=yes
7119 ac_cv_type_size_t
=no
7124 echo "$ac_t""$ac_cv_type_size_t" 1>&6
7125 if test $ac_cv_type_size_t = no
; then
7126 cat >> confdefs.h
<<\EOF
7127 #define size_t unsigned
7132 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7133 # for constant arguments. Useless!
7134 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
7135 echo "configure:7136: checking for working alloca.h" >&5
7136 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
7137 echo $ac_n "(cached) $ac_c" 1>&6
7139 cat > conftest.
$ac_ext <<EOF
7140 #line 7141 "configure"
7141 #include "confdefs.h"
7144 char *p = alloca(2 * sizeof(int));
7147 if { (eval echo configure
:7148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7149 ac_cv_header_alloca_h
=yes
7151 echo "configure: failed program was:" >&5
7152 cat conftest.
$ac_ext >&5
7154 ac_cv_header_alloca_h
=no
7159 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
7160 if test $ac_cv_header_alloca_h = yes; then
7161 cat >> confdefs.h
<<\EOF
7162 #define HAVE_ALLOCA_H 1
7167 echo $ac_n "checking for alloca""... $ac_c" 1>&6
7168 echo "configure:7169: checking for alloca" >&5
7169 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
7170 echo $ac_n "(cached) $ac_c" 1>&6
7172 cat > conftest.
$ac_ext <<EOF
7173 #line 7174 "configure"
7174 #include "confdefs.h"
7177 # define alloca __builtin_alloca
7180 # include <malloc.h>
7181 # define alloca _alloca
7184 # include <alloca.h>
7189 # ifndef alloca /* predefined by HP cc +Olibcalls */
7198 char *p = (char *) alloca(1);
7201 if { (eval echo configure
:7202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7203 ac_cv_func_alloca_works
=yes
7205 echo "configure: failed program was:" >&5
7206 cat conftest.
$ac_ext >&5
7208 ac_cv_func_alloca_works
=no
7213 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
7214 if test $ac_cv_func_alloca_works = yes; then
7215 cat >> confdefs.h
<<\EOF
7216 #define HAVE_ALLOCA 1
7221 if test $ac_cv_func_alloca_works = no
; then
7222 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7223 # that cause trouble. Some versions do not even contain alloca or
7224 # contain a buggy version. If you still want to use their alloca,
7225 # use ar to extract alloca.o from them instead of compiling alloca.c.
7226 ALLOCA
=alloca.
${ac_objext}
7227 cat >> confdefs.h
<<\EOF
7232 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
7233 echo "configure:7234: checking whether alloca needs Cray hooks" >&5
7234 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
7235 echo $ac_n "(cached) $ac_c" 1>&6
7237 cat > conftest.
$ac_ext <<EOF
7238 #line 7239 "configure"
7239 #include "confdefs.h"
7240 #if defined(CRAY) && ! defined(CRAY2)
7247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7248 egrep "webecray" >/dev
/null
2>&1; then
7259 echo "$ac_t""$ac_cv_os_cray" 1>&6
7260 if test $ac_cv_os_cray = yes; then
7261 for ac_func
in _getb67 GETB67 getb67
; do
7262 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7263 echo "configure:7264: checking for $ac_func" >&5
7264 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7265 echo $ac_n "(cached) $ac_c" 1>&6
7267 cat > conftest.
$ac_ext <<EOF
7268 #line 7269 "configure"
7269 #include "confdefs.h"
7270 /* System header to define __stub macros and hopefully few prototypes,
7271 which can conflict with char $ac_func(); below. */
7273 /* Override any gcc2 internal prototype to avoid an error. */
7274 /* We use char because int might match the return type of a gcc2
7275 builtin and then its argument prototype would still apply. */
7280 /* The GNU C library defines this for functions which it implements
7281 to always fail with ENOSYS. Some functions are actually named
7282 something starting with __ and the normal name is an alias. */
7283 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7291 if { (eval echo configure
:7292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7293 eval "ac_cv_func_$ac_func=yes"
7295 echo "configure: failed program was:" >&5
7296 cat conftest.
$ac_ext >&5
7298 eval "ac_cv_func_$ac_func=no"
7303 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7304 echo "$ac_t""yes" 1>&6
7305 cat >> confdefs.h
<<EOF
7306 #define CRAY_STACKSEG_END $ac_func
7311 echo "$ac_t""no" 1>&6
7317 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7318 echo "configure:7319: checking stack direction for C alloca" >&5
7319 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
7320 echo $ac_n "(cached) $ac_c" 1>&6
7322 if test "$cross_compiling" = yes; then
7323 ac_cv_c_stack_direction
=0
7325 cat > conftest.
$ac_ext <<EOF
7326 #line 7327 "configure"
7327 #include "confdefs.h"
7328 find_stack_direction ()
7330 static char *addr = 0;
7335 return find_stack_direction ();
7338 return (&dummy > addr) ? 1 : -1;
7342 exit (find_stack_direction() < 0);
7345 if { (eval echo configure
:7346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7347 ac_cv_c_stack_direction
=1
7349 echo "configure: failed program was:" >&5
7350 cat conftest.
$ac_ext >&5
7352 ac_cv_c_stack_direction
=-1
7359 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
7360 cat >> confdefs.h
<<EOF
7361 #define STACK_DIRECTION $ac_cv_c_stack_direction
7367 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7368 unistd.h sys
/param.h
7370 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7371 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7372 echo "configure:7373: checking for $ac_hdr" >&5
7373 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7374 echo $ac_n "(cached) $ac_c" 1>&6
7376 cat > conftest.
$ac_ext <<EOF
7377 #line 7378 "configure"
7378 #include "confdefs.h"
7381 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7382 { (eval echo configure
:7383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7383 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7384 if test -z "$ac_err"; then
7386 eval "ac_cv_header_$ac_safe=yes"
7389 echo "configure: failed program was:" >&5
7390 cat conftest.
$ac_ext >&5
7392 eval "ac_cv_header_$ac_safe=no"
7396 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7397 echo "$ac_t""yes" 1>&6
7398 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7399 cat >> confdefs.h
<<EOF
7400 #define $ac_tr_hdr 1
7404 echo "$ac_t""no" 1>&6
7408 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7409 strdup __argz_count __argz_stringify __argz_next
7411 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7412 echo "configure:7413: checking for $ac_func" >&5
7413 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7414 echo $ac_n "(cached) $ac_c" 1>&6
7416 cat > conftest.
$ac_ext <<EOF
7417 #line 7418 "configure"
7418 #include "confdefs.h"
7419 /* System header to define __stub macros and hopefully few prototypes,
7420 which can conflict with char $ac_func(); below. */
7422 /* Override any gcc2 internal prototype to avoid an error. */
7423 /* We use char because int might match the return type of a gcc2
7424 builtin and then its argument prototype would still apply. */
7429 /* The GNU C library defines this for functions which it implements
7430 to always fail with ENOSYS. Some functions are actually named
7431 something starting with __ and the normal name is an alias. */
7432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7440 if { (eval echo configure
:7441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7442 eval "ac_cv_func_$ac_func=yes"
7444 echo "configure: failed program was:" >&5
7445 cat conftest.
$ac_ext >&5
7447 eval "ac_cv_func_$ac_func=no"
7452 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7453 echo "$ac_t""yes" 1>&6
7454 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7455 cat >> confdefs.h
<<EOF
7456 #define $ac_tr_func 1
7460 echo "$ac_t""no" 1>&6
7465 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7466 for ac_func
in stpcpy
7468 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7469 echo "configure:7470: checking for $ac_func" >&5
7470 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7471 echo $ac_n "(cached) $ac_c" 1>&6
7473 cat > conftest.
$ac_ext <<EOF
7474 #line 7475 "configure"
7475 #include "confdefs.h"
7476 /* System header to define __stub macros and hopefully few prototypes,
7477 which can conflict with char $ac_func(); below. */
7479 /* Override any gcc2 internal prototype to avoid an error. */
7480 /* We use char because int might match the return type of a gcc2
7481 builtin and then its argument prototype would still apply. */
7486 /* The GNU C library defines this for functions which it implements
7487 to always fail with ENOSYS. Some functions are actually named
7488 something starting with __ and the normal name is an alias. */
7489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7497 if { (eval echo configure
:7498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7499 eval "ac_cv_func_$ac_func=yes"
7501 echo "configure: failed program was:" >&5
7502 cat conftest.
$ac_ext >&5
7504 eval "ac_cv_func_$ac_func=no"
7509 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7510 echo "$ac_t""yes" 1>&6
7511 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7512 cat >> confdefs.h
<<EOF
7513 #define $ac_tr_func 1
7517 echo "$ac_t""no" 1>&6
7522 if test "${ac_cv_func_stpcpy}" = "yes"; then
7523 cat >> confdefs.h
<<\EOF
7524 #define HAVE_STPCPY 1
7529 if test $ac_cv_header_locale_h = yes; then
7530 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
7531 echo "configure:7532: checking for LC_MESSAGES" >&5
7532 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
7533 echo $ac_n "(cached) $ac_c" 1>&6
7535 cat > conftest.
$ac_ext <<EOF
7536 #line 7537 "configure"
7537 #include "confdefs.h"
7543 if { (eval echo configure
:7544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7545 am_cv_val_LC_MESSAGES
=yes
7547 echo "configure: failed program was:" >&5
7548 cat conftest.
$ac_ext >&5
7550 am_cv_val_LC_MESSAGES
=no
7555 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7556 if test $am_cv_val_LC_MESSAGES = yes; then
7557 cat >> confdefs.h
<<\EOF
7558 #define HAVE_LC_MESSAGES 1
7563 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7564 echo "configure:7565: checking whether NLS is requested" >&5
7565 # Check whether --enable-nls or --disable-nls was given.
7566 if test "${enable_nls+set}" = set; then
7567 enableval
="$enable_nls"
7573 echo "$ac_t""$USE_NLS" 1>&6
7576 USE_INCLUDED_LIBINTL
=no
7578 if test "$USE_NLS" = "yes"; then
7579 cat >> confdefs.h
<<\EOF
7580 #define ENABLE_NLS 1
7583 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7584 echo "configure:7585: checking whether included gettext is requested" >&5
7585 # Check whether --with-included-gettext or --without-included-gettext was given.
7586 if test "${with_included_gettext+set}" = set; then
7587 withval
="$with_included_gettext"
7588 nls_cv_force_use_gnu_gettext
=$withval
7590 nls_cv_force_use_gnu_gettext
=yes
7593 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7595 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
7596 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7598 nls_cv_header_libgt
=
7601 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7602 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7603 echo "configure:7604: checking for libintl.h" >&5
7604 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7605 echo $ac_n "(cached) $ac_c" 1>&6
7607 cat > conftest.
$ac_ext <<EOF
7608 #line 7609 "configure"
7609 #include "confdefs.h"
7610 #include <libintl.h>
7612 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7613 { (eval echo configure
:7614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7614 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7615 if test -z "$ac_err"; then
7617 eval "ac_cv_header_$ac_safe=yes"
7620 echo "configure: failed program was:" >&5
7621 cat conftest.
$ac_ext >&5
7623 eval "ac_cv_header_$ac_safe=no"
7627 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7628 echo "$ac_t""yes" 1>&6
7629 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7630 echo "configure:7631: checking for gettext in libc" >&5
7631 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7632 echo $ac_n "(cached) $ac_c" 1>&6
7634 cat > conftest.
$ac_ext <<EOF
7635 #line 7636 "configure"
7636 #include "confdefs.h"
7637 #include <libintl.h>
7639 return (int) gettext ("")
7642 if { (eval echo configure
:7643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7644 gt_cv_func_gettext_libc
=yes
7646 echo "configure: failed program was:" >&5
7647 cat conftest.
$ac_ext >&5
7649 gt_cv_func_gettext_libc
=no
7654 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7656 if test "$gt_cv_func_gettext_libc" != "yes"; then
7657 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7658 echo "configure:7659: checking for bindtextdomain in -lintl" >&5
7659 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7660 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7661 echo $ac_n "(cached) $ac_c" 1>&6
7663 ac_save_LIBS
="$LIBS"
7665 cat > conftest.
$ac_ext <<EOF
7666 #line 7667 "configure"
7667 #include "confdefs.h"
7668 /* Override any gcc2 internal prototype to avoid an error. */
7669 /* We use char because int might match the return type of a gcc2
7670 builtin and then its argument prototype would still apply. */
7671 char bindtextdomain();
7677 if { (eval echo configure
:7678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7679 eval "ac_cv_lib_$ac_lib_var=yes"
7681 echo "configure: failed program was:" >&5
7682 cat conftest.
$ac_ext >&5
7684 eval "ac_cv_lib_$ac_lib_var=no"
7687 LIBS
="$ac_save_LIBS"
7690 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7691 echo "$ac_t""yes" 1>&6
7692 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7693 echo "configure:7694: checking for gettext in libintl" >&5
7694 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7695 echo $ac_n "(cached) $ac_c" 1>&6
7697 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7698 echo "configure:7699: checking for gettext in -lintl" >&5
7699 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7700 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7701 echo $ac_n "(cached) $ac_c" 1>&6
7703 ac_save_LIBS
="$LIBS"
7705 cat > conftest.
$ac_ext <<EOF
7706 #line 7707 "configure"
7707 #include "confdefs.h"
7708 /* Override any gcc2 internal prototype to avoid an error. */
7709 /* We use char because int might match the return type of a gcc2
7710 builtin and then its argument prototype would still apply. */
7717 if { (eval echo configure
:7718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7719 eval "ac_cv_lib_$ac_lib_var=yes"
7721 echo "configure: failed program was:" >&5
7722 cat conftest.
$ac_ext >&5
7724 eval "ac_cv_lib_$ac_lib_var=no"
7727 LIBS
="$ac_save_LIBS"
7730 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7731 echo "$ac_t""yes" 1>&6
7732 gt_cv_func_gettext_libintl
=yes
7734 echo "$ac_t""no" 1>&6
7735 gt_cv_func_gettext_libintl
=no
7740 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7742 echo "$ac_t""no" 1>&6
7747 if test "$gt_cv_func_gettext_libc" = "yes" \
7748 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
7749 cat >> confdefs.h
<<\EOF
7750 #define HAVE_GETTEXT 1
7753 # Extract the first word of "msgfmt", so it can be a program name with args.
7754 set dummy msgfmt
; ac_word
=$2
7755 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7756 echo "configure:7757: checking for $ac_word" >&5
7757 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7758 echo $ac_n "(cached) $ac_c" 1>&6
7762 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
7765 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7766 for ac_dir
in $PATH; do
7767 test -z "$ac_dir" && ac_dir
=.
7768 if test -f $ac_dir/$ac_word; then
7769 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7770 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
7776 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
7780 MSGFMT
="$ac_cv_path_MSGFMT"
7781 if test -n "$MSGFMT"; then
7782 echo "$ac_t""$MSGFMT" 1>&6
7784 echo "$ac_t""no" 1>&6
7786 if test "$MSGFMT" != "no"; then
7787 for ac_func
in dcgettext
7789 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7790 echo "configure:7791: checking for $ac_func" >&5
7791 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7792 echo $ac_n "(cached) $ac_c" 1>&6
7794 cat > conftest.
$ac_ext <<EOF
7795 #line 7796 "configure"
7796 #include "confdefs.h"
7797 /* System header to define __stub macros and hopefully few prototypes,
7798 which can conflict with char $ac_func(); below. */
7800 /* Override any gcc2 internal prototype to avoid an error. */
7801 /* We use char because int might match the return type of a gcc2
7802 builtin and then its argument prototype would still apply. */
7807 /* The GNU C library defines this for functions which it implements
7808 to always fail with ENOSYS. Some functions are actually named
7809 something starting with __ and the normal name is an alias. */
7810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7818 if { (eval echo configure
:7819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7820 eval "ac_cv_func_$ac_func=yes"
7822 echo "configure: failed program was:" >&5
7823 cat conftest.
$ac_ext >&5
7825 eval "ac_cv_func_$ac_func=no"
7830 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7831 echo "$ac_t""yes" 1>&6
7832 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7833 cat >> confdefs.h
<<EOF
7834 #define $ac_tr_func 1
7838 echo "$ac_t""no" 1>&6
7842 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7843 set dummy gmsgfmt
; ac_word
=$2
7844 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7845 echo "configure:7846: checking for $ac_word" >&5
7846 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7847 echo $ac_n "(cached) $ac_c" 1>&6
7851 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7854 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
7857 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7859 for ac_dir
in $ac_dummy; do
7860 test -z "$ac_dir" && ac_dir
=.
7861 if test -f $ac_dir/$ac_word; then
7862 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
7867 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
7871 GMSGFMT
="$ac_cv_path_GMSGFMT"
7872 if test -n "$GMSGFMT"; then
7873 echo "$ac_t""$GMSGFMT" 1>&6
7875 echo "$ac_t""no" 1>&6
7878 # Extract the first word of "xgettext", so it can be a program name with args.
7879 set dummy xgettext
; ac_word
=$2
7880 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7881 echo "configure:7882: checking for $ac_word" >&5
7882 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7883 echo $ac_n "(cached) $ac_c" 1>&6
7887 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
7890 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7891 for ac_dir
in $PATH; do
7892 test -z "$ac_dir" && ac_dir
=.
7893 if test -f $ac_dir/$ac_word; then
7894 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7895 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
7901 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
7905 XGETTEXT
="$ac_cv_path_XGETTEXT"
7906 if test -n "$XGETTEXT"; then
7907 echo "$ac_t""$XGETTEXT" 1>&6
7909 echo "$ac_t""no" 1>&6
7912 cat > conftest.
$ac_ext <<EOF
7913 #line 7914 "configure"
7914 #include "confdefs.h"
7917 extern int _nl_msg_cat_cntr;
7918 return _nl_msg_cat_cntr
7921 if { (eval echo configure
:7922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7926 echo "configure: failed program was:" >&5
7927 cat conftest.
$ac_ext >&5
7938 echo "$ac_t""no" 1>&6
7942 if test "$CATOBJEXT" = "NONE"; then
7943 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
7944 echo "configure:7945: checking whether catgets can be used" >&5
7945 # Check whether --with-catgets or --without-catgets was given.
7946 if test "${with_catgets+set}" = set; then
7947 withval
="$with_catgets"
7948 nls_cv_use_catgets
=$withval
7950 nls_cv_use_catgets
=no
7953 echo "$ac_t""$nls_cv_use_catgets" 1>&6
7955 if test "$nls_cv_use_catgets" = "yes"; then
7956 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
7957 echo "configure:7958: checking for main in -li" >&5
7958 ac_lib_var
=`echo i'_'main | sed 'y%./+-%__p_%'`
7959 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7960 echo $ac_n "(cached) $ac_c" 1>&6
7962 ac_save_LIBS
="$LIBS"
7964 cat > conftest.
$ac_ext <<EOF
7965 #line 7966 "configure"
7966 #include "confdefs.h"
7972 if { (eval echo configure
:7973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7974 eval "ac_cv_lib_$ac_lib_var=yes"
7976 echo "configure: failed program was:" >&5
7977 cat conftest.
$ac_ext >&5
7979 eval "ac_cv_lib_$ac_lib_var=no"
7982 LIBS
="$ac_save_LIBS"
7985 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7986 echo "$ac_t""yes" 1>&6
7987 ac_tr_lib
=HAVE_LIB
`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7988 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7989 cat >> confdefs.h
<<EOF
7990 #define $ac_tr_lib 1
7996 echo "$ac_t""no" 1>&6
7999 echo $ac_n "checking for catgets""... $ac_c" 1>&6
8000 echo "configure:8001: checking for catgets" >&5
8001 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
8002 echo $ac_n "(cached) $ac_c" 1>&6
8004 cat > conftest.
$ac_ext <<EOF
8005 #line 8006 "configure"
8006 #include "confdefs.h"
8007 /* System header to define __stub macros and hopefully few prototypes,
8008 which can conflict with char catgets(); below. */
8010 /* Override any gcc2 internal prototype to avoid an error. */
8011 /* We use char because int might match the return type of a gcc2
8012 builtin and then its argument prototype would still apply. */
8017 /* The GNU C library defines this for functions which it implements
8018 to always fail with ENOSYS. Some functions are actually named
8019 something starting with __ and the normal name is an alias. */
8020 #if defined (__stub_catgets) || defined (__stub___catgets)
8028 if { (eval echo configure
:8029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8030 eval "ac_cv_func_catgets=yes"
8032 echo "configure: failed program was:" >&5
8033 cat conftest.
$ac_ext >&5
8035 eval "ac_cv_func_catgets=no"
8040 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
8041 echo "$ac_t""yes" 1>&6
8042 cat >> confdefs.h
<<\EOF
8043 #define HAVE_CATGETS 1
8046 INTLOBJS
="\$(CATOBJS)"
8047 # Extract the first word of "gencat", so it can be a program name with args.
8048 set dummy gencat
; ac_word
=$2
8049 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8050 echo "configure:8051: checking for $ac_word" >&5
8051 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
8052 echo $ac_n "(cached) $ac_c" 1>&6
8056 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a path.
8059 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a dos path.
8062 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8064 for ac_dir
in $ac_dummy; do
8065 test -z "$ac_dir" && ac_dir
=.
8066 if test -f $ac_dir/$ac_word; then
8067 ac_cv_path_GENCAT
="$ac_dir/$ac_word"
8072 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT
="no"
8076 GENCAT
="$ac_cv_path_GENCAT"
8077 if test -n "$GENCAT"; then
8078 echo "$ac_t""$GENCAT" 1>&6
8080 echo "$ac_t""no" 1>&6
8082 if test "$GENCAT" != "no"; then
8083 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8084 set dummy gmsgfmt
; ac_word
=$2
8085 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8086 echo "configure:8087: checking for $ac_word" >&5
8087 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8088 echo $ac_n "(cached) $ac_c" 1>&6
8092 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8095 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8098 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8100 for ac_dir
in $ac_dummy; do
8101 test -z "$ac_dir" && ac_dir
=.
8102 if test -f $ac_dir/$ac_word; then
8103 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8108 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
8112 GMSGFMT
="$ac_cv_path_GMSGFMT"
8113 if test -n "$GMSGFMT"; then
8114 echo "$ac_t""$GMSGFMT" 1>&6
8116 echo "$ac_t""no" 1>&6
8119 if test "$GMSGFMT" = "no"; then
8120 # Extract the first word of "msgfmt", so it can be a program name with args.
8121 set dummy msgfmt
; ac_word
=$2
8122 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8123 echo "configure:8124: checking for $ac_word" >&5
8124 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8125 echo $ac_n "(cached) $ac_c" 1>&6
8129 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8132 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8133 for ac_dir
in $PATH; do
8134 test -z "$ac_dir" && ac_dir
=.
8135 if test -f $ac_dir/$ac_word; then
8136 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8137 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8143 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="msgfmt"
8147 GMSGFMT
="$ac_cv_path_GMSGFMT"
8148 if test -n "$GMSGFMT"; then
8149 echo "$ac_t""$GMSGFMT" 1>&6
8151 echo "$ac_t""no" 1>&6
8154 if test "$GMSGFMT" = "msgfmt"; then
8155 echo "configure: warning: No program for catalog building found" 1>&2
8156 create_catalogs
="no"
8159 # Extract the first word of "xgettext", so it can be a program name with args.
8160 set dummy xgettext
; ac_word
=$2
8161 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8162 echo "configure:8163: checking for $ac_word" >&5
8163 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8164 echo $ac_n "(cached) $ac_c" 1>&6
8168 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8171 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8172 for ac_dir
in $PATH; do
8173 test -z "$ac_dir" && ac_dir
=.
8174 if test -f $ac_dir/$ac_word; then
8175 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8176 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8182 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8186 XGETTEXT
="$ac_cv_path_XGETTEXT"
8187 if test -n "$XGETTEXT"; then
8188 echo "$ac_t""$XGETTEXT" 1>&6
8190 echo "$ac_t""no" 1>&6
8193 USE_INCLUDED_LIBINTL
=yes
8197 INTLDEPS
='$(top_builddir)/intl/libintl.a'
8199 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
8200 nls_cv_header_intl
=intl
/libintl.h
8201 nls_cv_header_libgt
=intl
/libgettext.h
8204 echo "$ac_t""no" 1>&6
8210 if test "$CATOBJEXT" = "NONE"; then
8211 nls_cv_use_gnu_gettext
=yes
8215 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8216 INTLOBJS
="\$(GETTOBJS)"
8217 # Extract the first word of "msgfmt", so it can be a program name with args.
8218 set dummy msgfmt
; ac_word
=$2
8219 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8220 echo "configure:8221: checking for $ac_word" >&5
8221 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
8222 echo $ac_n "(cached) $ac_c" 1>&6
8226 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8229 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8230 for ac_dir
in $PATH; do
8231 test -z "$ac_dir" && ac_dir
=.
8232 if test -f $ac_dir/$ac_word; then
8233 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8234 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8240 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
8244 MSGFMT
="$ac_cv_path_MSGFMT"
8245 if test -n "$MSGFMT"; then
8246 echo "$ac_t""$MSGFMT" 1>&6
8248 echo "$ac_t""no" 1>&6
8251 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8252 set dummy gmsgfmt
; ac_word
=$2
8253 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8254 echo "configure:8255: checking for $ac_word" >&5
8255 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8256 echo $ac_n "(cached) $ac_c" 1>&6
8260 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8263 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8266 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8268 for ac_dir
in $ac_dummy; do
8269 test -z "$ac_dir" && ac_dir
=.
8270 if test -f $ac_dir/$ac_word; then
8271 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8276 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8280 GMSGFMT
="$ac_cv_path_GMSGFMT"
8281 if test -n "$GMSGFMT"; then
8282 echo "$ac_t""$GMSGFMT" 1>&6
8284 echo "$ac_t""no" 1>&6
8287 if test "$MSGFMT" = "msgfmt" && test "$GMSGFMT" = "msgfmt"; then
8288 echo "configure: warning: Neither msgfmt nor gmsgfmt found. No catalogs will be built" 1>&2
8289 create_catalogs
="no"
8291 # Extract the first word of "xgettext", so it can be a program name with args.
8292 set dummy xgettext
; ac_word
=$2
8293 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8294 echo "configure:8295: checking for $ac_word" >&5
8295 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8296 echo $ac_n "(cached) $ac_c" 1>&6
8300 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8303 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8304 for ac_dir
in $PATH; do
8305 test -z "$ac_dir" && ac_dir
=.
8306 if test -f $ac_dir/$ac_word; then
8307 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8308 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8314 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8318 XGETTEXT
="$ac_cv_path_XGETTEXT"
8319 if test -n "$XGETTEXT"; then
8320 echo "$ac_t""$XGETTEXT" 1>&6
8322 echo "$ac_t""no" 1>&6
8326 USE_INCLUDED_LIBINTL
=yes
8330 INTLDEPS
='$(top_builddir)/intl/libintl.a'
8332 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
8333 nls_cv_header_intl
=intl
/libintl.h
8334 nls_cv_header_libgt
=intl
/libgettext.h
8337 if test "$XGETTEXT" != ":"; then
8338 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
8341 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
8348 # We need to process the po/ directory.
8352 nls_cv_header_intl
=intl
/libintl.h
8353 nls_cv_header_libgt
=intl
/libgettext.h
8359 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8360 # because some of the sources are only built for this goal.
8361 if test "$PACKAGE" = gettext; then
8363 USE_INCLUDED_LIBINTL
=yes
8366 for lang
in $ALL_LINGUAS; do
8367 GMOFILES
="$GMOFILES $lang.gmo"
8368 POFILES
="$POFILES $lang.po"
8384 if test "x$CATOBJEXT" != "x" && test "x$create_catalogs" != "xno" ; then
8385 if test "x$ALL_LINGUAS" = "x"; then
8388 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
8389 echo "configure:8390: checking for catalogs to be installed" >&5
8390 if test "x$LINGUAS" = "x"; then
8391 LINGUAS
=$ALL_LINGUAS
8394 for lang
in $ALL_LINGUAS; do
8395 case " $LINGUAS " in
8396 *" $lang "*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
8399 LINGUAS
=$NEW_LINGUAS
8401 echo "$ac_t""$LINGUAS" 1>&6
8404 if test -n "$LINGUAS"; then
8405 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
8409 if test $ac_cv_header_locale_h = yes; then
8410 INCLUDE_LOCALE_H
="#include <locale.h>"
8413 /* The system does not provide the header <locale.h>. Take care yourself. */"
8417 test -d intl || mkdir intl
8418 if test "$CATOBJEXT" = ".cat"; then
8419 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
8420 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
8421 echo "configure:8422: checking for linux/version.h" >&5
8422 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8423 echo $ac_n "(cached) $ac_c" 1>&6
8425 cat > conftest.
$ac_ext <<EOF
8426 #line 8427 "configure"
8427 #include "confdefs.h"
8428 #include <linux/version.h>
8430 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8431 { (eval echo configure
:8432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8432 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8433 if test -z "$ac_err"; then
8435 eval "ac_cv_header_$ac_safe=yes"
8438 echo "configure: failed program was:" >&5
8439 cat conftest.
$ac_ext >&5
8441 eval "ac_cv_header_$ac_safe=no"
8445 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8446 echo "$ac_t""yes" 1>&6
8449 echo "$ac_t""no" 1>&6
8454 sed -e '/^#/d' $srcdir/intl
/$msgformat-msg.
sed > intl
/po2msg.
sed
8456 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8457 $srcdir/intl
/po2tbl.
sed.
in > intl
/po2tbl.
sed
8459 if test "$PACKAGE" = "gettext"; then
8470 if test -n "$ac_aux_dir"; then
8471 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
8473 if test -z "$MKINSTALLDIRS"; then
8474 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
8481 test -d po || mkdir po
8482 if test "x$srcdir" != "x."; then
8483 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8484 posrcprefix
="$srcdir/"
8486 posrcprefix
="../$srcdir/"
8492 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8493 < $srcdir/po
/POTFILES.
in > po
/POTFILES
8495 XGETTEXT
="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
8497 # Windows32 Registry support for specifying GCC installation paths.
8498 # Check whether --enable-win32-registry or --disable-win32-registry was given.
8499 if test "${enable_win32_registry+set}" = set; then
8500 enableval
="$enable_win32_registry"
8505 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
8506 echo "configure:8507: checking whether windows registry support is requested" >&5
8507 if test x
$enable_win32_registry != xno
; then
8508 cat >> confdefs.h
<<\EOF
8509 #define ENABLE_WIN32_REGISTRY 1
8512 echo "$ac_t""yes" 1>&6
8514 echo "$ac_t""no" 1>&6
8517 # Check if user specified a different registry key.
8518 case x
${enable_win32_registry} in
8521 gcc_cv_win32_registry_key
="$VERSION"
8524 # no registry lookup.
8525 gcc_cv_win32_registry_key
=''
8528 # user-specified key.
8529 gcc_cv_win32_registry_key
="$enable_win32_registry"
8533 if test x
$enable_win32_registry != xno
; then
8534 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
8535 echo "configure:8536: checking registry key on windows hosts" >&5
8536 cat >> confdefs.h
<<EOF
8537 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
8540 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
8543 # Get an absolute path to the GCC top-level source directory
8549 # Conditionalize the makefile for this host machine.
8550 # Make-host contains the concatenation of all host makefile fragments
8551 # [there can be more than one]. This file is built by configure.frag.
8552 host_overrides
=Make-host
8553 dep_host_xmake_file
=
8554 for f
in ..
${host_xmake_file}
8556 if test -f ${srcdir}/config
/$f
8558 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
8562 # Conditionalize the makefile for this target machine.
8563 # Make-target contains the concatenation of all host makefile fragments
8564 # [there can be more than one]. This file is built by configure.frag.
8565 target_overrides
=Make-target
8567 for f
in ..
${tmake_file}
8569 if test -f ${srcdir}/config
/$f
8571 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
8575 # If the host doesn't support symlinks, modify CC in
8576 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
8577 # Otherwise, we can use "CC=$(CC)".
8579 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
8581 cc_set_by_configure
="\$(CC)"
8582 quoted_cc_set_by_configure
="\$(CC)"
8583 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
8586 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
8588 symbolic_link
="cp -p"
8592 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
8593 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
8594 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
8598 out_object_file
=`basename $out_file .c`.o
8601 for f
in $tm_file; do
8604 tm_file_list
="${tm_file_list} $f" ;;
8605 *) tm_file_list
="${tm_file_list} \$(srcdir)/config/$f" ;;
8610 for f
in $host_xm_file; do
8612 auto-host.h | gansidecl.h | hwint.h
)
8613 host_xm_file_list
="${host_xm_file_list} $f" ;;
8614 *) host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f" ;;
8619 for f
in $build_xm_file; do
8621 auto-build.h | auto-host.h | gansidecl.h | hwint.h
)
8622 build_xm_file_list
="${build_xm_file_list} $f" ;;
8623 *) build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8627 # Define macro CROSS_COMPILE in compilation
8628 # if this is a cross-compiler.
8629 # Also use all.cross instead of all.internal
8630 # and add cross-make to Makefile.
8631 cross_overrides
="/dev/null"
8632 if test x
$host != x
$target
8634 cross_defines
="CROSS=-DCROSS_COMPILE"
8635 cross_overrides
="${topdir}/cross-make"
8638 # If this is a cross-compiler that does not
8639 # have its own set of headers then define
8642 # If this is using newlib, then define inhibit_libc in
8643 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
8644 # libgcc.a, but that's OK because newlib should have its own version of
8647 if test x
$host != x
$target && test x
$with_headers = x
; then
8648 inhibit_libc
=-Dinhibit_libc
8650 if test x
$with_newlib = xyes
; then
8651 inhibit_libc
=-Dinhibit_libc
8656 # When building gcc with a cross-compiler, we need to fix a few things.
8657 # This must come after cross-make as we want all.build to override
8659 build_overrides
="/dev/null"
8660 if test x
$build != x
$host
8662 build_overrides
="${topdir}/build-make"
8665 # Expand extra_headers to include complete path.
8666 # This substitutes for lots of t-* files.
8668 if test "x$extra_headers" = x
8671 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8672 for file in $extra_headers;
8674 extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8678 if test x
$use_collect2 = xno
; then
8682 # Add a definition of USE_COLLECT2 if system wants one.
8683 # Also tell toplev.c what to do.
8684 # This substitutes for lots of t-* files.
8685 if test x
$use_collect2 = x
8690 will_use_collect2
="collect2"
8691 maybe_use_collect2
="-DUSE_COLLECT2"
8695 # Set MD_DEPS if the real md file is in md.pre-cpp.
8696 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
8697 # for line oriented comments, so we must always use a GNU cpp. If
8698 # building gcc with a cross compiler, use the cross compiler just
8699 # built. Otherwise, we can use the cpp just built.
8701 if test "x$md_cppflags" = x
8703 md_file_sub
=$srcdir/config
/$md_file
8708 # If we have gas in the build tree, make a link to it.
8709 if test -f ..
/gas
/Makefile
; then
8710 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
8713 # If we have nm in the build tree, make a link to it.
8714 if test -f ..
/binutils
/Makefile
; then
8715 rm -f nm
; $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
8718 # If we have ld in the build tree, make a link to it.
8719 if test -f ..
/ld
/Makefile
; then
8720 # if test x$use_collect2 = x; then
8721 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8723 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
8727 # Figure out what assembler alignment features are present.
8728 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
8729 echo "configure:8730: checking assembler alignment features" >&5
8731 gcc_cv_as_alignment_features
=
8732 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8733 if test -x "$DEFAULT_ASSEMBLER"; then
8734 gcc_cv_as
="$DEFAULT_ASSEMBLER"
8735 elif test -x "$AS"; then
8737 elif test -x as
$host_exeext; then
8738 # Build using assembler in the current directory.
8739 gcc_cv_as
=.
/as
$host_exeext
8740 elif test -f $gcc_cv_as_gas_srcdir/configure.
in -a -f ..
/gas
/Makefile
; then
8741 # Single tree build which includes gas.
8742 for f
in $gcc_cv_as_gas_srcdir/configure
$gcc_cv_as_gas_srcdir/configure.
in $gcc_cv_as_gas_srcdir/Makefile.
in
8744 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
8745 if test x
$gcc_cv_gas_version != x
; then
8749 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
8750 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
8751 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
8752 # Gas version 2.6 and later support for .balign and .p2align.
8753 # bytes to skip when using .p2align.
8754 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
8755 gcc_cv_as_alignment_features
=".balign and .p2align"
8756 cat >> confdefs.h
<<\EOF
8757 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8761 # Gas version 2.8 and later support specifying the maximum
8762 # bytes to skip when using .p2align.
8763 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
8764 gcc_cv_as_alignment_features
=".p2align including maximum skip"
8765 cat >> confdefs.h
<<\EOF
8766 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8771 elif test x
$host = x
$target; then
8773 # Search the same directories that the installed compiler will
8774 # search. Else we may find the wrong assembler and lose. If we
8775 # do not find a suitable assembler binary, then try the user's
8778 # Also note we have to check MD_EXEC_PREFIX before checking the
8779 # user's path. Unfortunately, there is no good way to get at the
8780 # value of MD_EXEC_PREFIX here. So we do a brute force search
8781 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
8782 # to be fixed as part of the make/configure rewrite too.
8784 if test "x$exec_prefix" = xNONE
; then
8785 if test "x$prefix" = xNONE
; then
8786 test_prefix
=/usr
/local
8791 test_prefix
=$exec_prefix
8794 # If the loop below does not find an assembler, then use whatever
8795 # one we can find in the users's path.
8799 test_dirs
="$test_prefix/lib/gcc-lib/$target/$gcc_version \
8800 $test_prefix/lib/gcc-lib/$target \
8801 /usr/lib/gcc/$target/$gcc_version \
8802 /usr/lib/gcc/$target \
8803 $test_prefix/$target/bin/$target/$gcc_version \
8804 $test_prefix/$target/bin \
8809 /bsd43/usr/lib/cmplrs/cc \
8810 /usr/cross64/usr/bin \
8811 /usr/lib/cmplrs/cc \
8812 /sysv/usr/lib/cmplrs/cc \
8813 /svr4/usr/lib/cmplrs/cc \
8816 for dir
in $test_dirs; do
8817 if test -f $dir/as
$host_exeext; then
8818 gcc_cv_as
=$dir/as
$host_exeext
8823 if test x
$gcc_cv_as != x
; then
8824 # Check if we have .balign and .p2align
8825 echo ".balign 4" > conftest.s
8826 echo ".p2align 2" >> conftest.s
8827 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8828 gcc_cv_as_alignment_features
=".balign and .p2align"
8829 cat >> confdefs.h
<<\EOF
8830 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8834 rm -f conftest.s conftest.o
8835 # Check if specifying the maximum bytes to skip when
8836 # using .p2align is supported.
8837 echo ".p2align 4,,7" > conftest.s
8838 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8839 gcc_cv_as_alignment_features
=".p2align including maximum skip"
8840 cat >> confdefs.h
<<\EOF
8841 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8845 rm -f conftest.s conftest.o
8847 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
8849 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
8850 echo "configure:8851: checking assembler subsection support" >&5
8851 gcc_cv_as_subsections
=
8852 if test x
$gcc_cv_as != x
; then
8853 # Check if we have .subsection
8854 echo ".subsection 1" > conftest.s
8855 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8856 gcc_cv_as_subsections
=".subsection"
8857 if test -x nm
$host_exeext; then
8858 gcc_cv_nm
=.
/nm
$host_exeext
8859 elif test x
$host = x
$target; then
8861 gcc_cv_nm
=nm
$host_exeext
8863 if test x
$gcc_cv_nm != x
; then
8864 cat > conftest.s
<<EOF
8865 conftest_label1: .word 0
8867 conftest_label2: .word 0
8870 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8871 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
8872 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
8873 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1; then
8876 gcc_cv_as_subsections
="working .subsection -1"
8877 cat >> confdefs.h
<<\EOF
8878 #define HAVE_GAS_SUBSECTION_ORDERING 1
8885 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8887 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
8889 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
8890 echo "configure:8891: checking assembler weak support" >&5
8892 if test x
$gcc_cv_as != x
; then
8893 # Check if we have .weak
8894 echo " .weak foobar" > conftest.s
8895 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8896 cat >> confdefs.h
<<\EOF
8897 #define HAVE_GAS_WEAK 1
8900 gcc_cv_as_weak
="yes"
8902 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8904 echo "$ac_t""$gcc_cv_as_weak" 1>&6
8906 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
8907 echo "configure:8908: checking assembler hidden support" >&5
8909 if test x
$gcc_cv_as != x
; then
8910 # Check if we have .hidden
8911 echo " .hidden foobar" > conftest.s
8912 echo "foobar:" >> conftest.s
8913 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8914 cat >> confdefs.h
<<\EOF
8915 #define HAVE_GAS_HIDDEN 1
8918 gcc_cv_as_hidden
="yes"
8920 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8922 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
8926 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
8927 echo "configure:8928: checking assembler .register pseudo-op support" >&5
8928 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
8929 echo $ac_n "(cached) $ac_c" 1>&6
8932 gcc_cv_as_register_pseudo_op
=unknown
8933 if test x
$gcc_cv_as != x
; then
8934 # Check if we have .register
8935 echo ".register %g2, #scratch" > conftest.s
8936 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8937 gcc_cv_as_register_pseudo_op
=yes
8939 gcc_cv_as_register_pseudo_op
=no
8941 rm -f conftest.s conftest.o
8946 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
8947 if test "x$gcc_cv_as_register_pseudo_op" = xyes
; then
8948 cat >> confdefs.h
<<\EOF
8949 #define HAVE_AS_REGISTER_PSEUDO_OP 1
8954 echo $ac_n "checking assembler supports -relax""... $ac_c" 1>&6
8955 echo "configure:8956: checking assembler supports -relax" >&5
8956 if eval "test \"`echo '$''{'gcc_cv_as_relax_opt'+set}'`\" = set"; then
8957 echo $ac_n "(cached) $ac_c" 1>&6
8960 gcc_cv_as_relax_opt
=unknown
8961 if test x
$gcc_cv_as != x
; then
8962 # Check if gas supports -relax
8963 echo ".text" > conftest.s
8964 if $gcc_cv_as -relax -o conftest.o conftest.s
> /dev
/null
2>&1; then
8965 gcc_cv_as_relax_opt
=yes
8967 gcc_cv_as_relax_opt
=no
8969 rm -f conftest.s conftest.o
8974 echo "$ac_t""$gcc_cv_as_relax_opt" 1>&6
8975 if test "x$gcc_cv_as_relax_opt" = xyes
; then
8976 cat >> confdefs.h
<<\EOF
8977 #define HAVE_AS_RELAX_OPTION 1
8984 echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
8985 echo "configure:8986: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
8986 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
8987 echo $ac_n "(cached) $ac_c" 1>&6
8990 if test -n "$gcc_cv_as"; then
8991 echo ".xword foo" > conftest.s
8992 gcc_cv_as_flags64
=no
8993 for flag
in "-xarch=v9" "-64 -Av9"; do
8994 if $gcc_cv_as $flag -o conftest.o conftest.s \
8995 > /dev
/null
2>&1; then
8996 gcc_cv_as_flags64
=$flag
9000 rm -f conftest.s conftest.o
9002 if test "$gas" = yes; then
9003 gcc_cv_as_flags64
="-64 -Av9"
9005 gcc_cv_as_flags64
="-xarch=v9"
9011 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
9012 if test "x$gcc_cv_as_flags64" = xno
; then
9014 tmake_file
=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
9015 dep_tmake_file
=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
9018 cat >> confdefs.h
<<EOF
9019 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
9024 *) gcc_cv_as_flags64
=${gcc_cv_as_flags64-no}
9028 if test "x$gcc_cv_as_flags64" != xno
; then
9029 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
9030 echo "configure:9031: checking for assembler offsetable %lo() support" >&5
9031 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
9032 echo $ac_n "(cached) $ac_c" 1>&6
9035 gcc_cv_as_offsetable_lo10
=unknown
9036 if test "x$gcc_cv_as" != x
; then
9037 # Check if assembler has offsetable %lo()
9038 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
9039 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
9040 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
9042 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
9043 > /dev
/null
2>&1; then
9044 if cmp conftest.o conftest1.o
> /dev
/null
2>&1; then
9045 gcc_cv_as_offsetable_lo10
=no
9047 gcc_cv_as_offsetable_lo10
=yes
9050 gcc_cv_as_offsetable_lo10
=no
9052 rm -f conftest.s conftest.o conftest1.s conftest1.o
9057 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
9058 if test "x$gcc_cv_as_offsetable_lo10" = xyes
; then
9059 cat >> confdefs.h
<<\EOF
9060 #define HAVE_AS_OFFSETABLE_LO10 1
9068 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
9069 echo "configure:9070: checking assembler instructions" >&5
9070 gcc_cv_as_instructions
=
9071 if test x
$gcc_cv_as != x
; then
9072 set "filds fists" "filds mem; fists mem"
9075 echo "$2" > conftest.s
9076 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9077 gcc_cv_as_instructions
=${gcc_cv_as_instructions}$1" "
9078 cat >> confdefs.h
<<EOF
9079 #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1
9085 rm -f conftest.s conftest.o
9087 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
9091 # Figure out what language subdirectories are present.
9092 # Look if the user specified --enable-languages="..."; if not, use
9093 # the environment variable $LANGUAGES if defined. $LANGUAGES might
9095 if test x
"${enable_languages+set}" != xset
; then
9096 if test x
"${LANGUAGES+set}" = xset
; then
9097 enable_languages
="`echo ${LANGUAGES} | tr ' ' ','`"
9099 enable_languages
=all
9102 if test x
"${enable_languages}" = x
; then
9103 { echo "configure: error: --enable-languages needs at least one argument" 1>&2; exit 1; }
9107 for lang
in ${srcdir}/*/config-lang.
in ..
9111 # The odd quoting in the next line works around
9112 # an apparent bug in bash 1.12 on linux.
9113 ${srcdir}/[*]/config-lang.
in) ;;
9115 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
9116 if test "x$lang_alias" = x
9118 echo "$lang doesn't set \$language." 1>&2
9121 if test x
"${enable_languages}" = xall
; then
9124 case "${enable_languages}" in
9125 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
9133 if test x"${add_this_lang}" = xyes; then
9135 ${srcdir}/ada/config-lang.in)
9136 if test x$gnat = xyes ; then
9137 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9141 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9149 # Make gthr-default.h if we have a thread file.
9151 if test $thread_file != single; then
9152 rm -f gthr-default.h
9153 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9154 gthread_flags
=-DHAVE_GTHR_DEFAULT
9158 # Find out what GC implementation we want, or may, use.
9159 # Check whether --with-gc or --without-gc was given.
9160 if test "${with_gc+set}" = set; then
9167 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
9171 if test $ac_cv_func_mmap_anywhere = yes \
9172 ||
test $ac_cv_func_valloc = yes; then
9180 echo "Using $GGC for garbage collection."
9182 # Build a new-abi (c++) system
9183 # Check whether --enable-new-gxx-abi or --disable-new-gxx-abi was given.
9184 if test "${enable_new_gxx_abi+set}" = set; then
9185 enableval
="$enable_new_gxx_abi"
9186 cat >> confdefs.h
<<\EOF
9187 #define ENABLE_NEW_GXX_ABI 1
9190 GXX_ABI_FLAG
='-fnew-abi'
9191 echo "Building a new-abi g++ compiler."
9197 # Build a new-libstdc++ system (ie libstdc++-v3)
9198 echo $ac_n "checking for libstdc++ to install""... $ac_c" 1>&6
9199 echo "configure:9200: checking for libstdc++ to install" >&5
9200 # Check whether --enable-libstdcxx-v3 or --disable-libstdcxx-v3 was given.
9201 if test "${enable_libstdcxx_v3+set}" = set; then
9202 enableval
="$enable_libstdcxx_v3"
9203 enable_libstdcxx_v3
=yes
9205 enable_libstdcxx_v3
=no
9209 if test x
$enable_libstdcxx_v3 = xyes
; then
9210 echo "$ac_t""v3" 1>&6
9213 echo "$ac_t""v2" 1>&6
9216 cat >> confdefs.h
<<EOF
9217 #define ENABLE_STD_NAMESPACE $ac_esn
9222 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
9223 echo "configure:9224: checking whether to enable maintainer-specific portions of Makefiles" >&5
9224 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9225 if test "${enable_maintainer_mode+set}" = set; then
9226 enableval
="$enable_maintainer_mode"
9227 maintainer_mode
=$enableval
9233 echo "$ac_t""$maintainer_mode" 1>&6
9235 if test "$maintainer_mode" = "yes"; then
9241 # Make empty files to contain the specs and options for each language.
9242 # Then add #include lines to for a compiler that has specs and/or options.
9247 rm -f specs.h options.h gencheck.h
9248 touch specs.h options.h gencheck.h
9249 for subdir
in .
$subdirs
9251 if test -f $srcdir/$subdir/lang-specs.h
; then
9252 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
9253 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
9255 if test -f $srcdir/$subdir/lang-options.h
; then
9256 echo "#include \"$subdir/lang-options.h\"" >>options.h
9257 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
9259 if test -f $srcdir/$subdir/$subdir-tree.def
; then
9260 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
9261 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
9265 # These (without "all_") are set in each config-lang.in.
9266 # `language' must be a single word so is spelled singularly.
9272 all_outputs
='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
9273 # List of language makefile fragments.
9278 # Add the language fragments.
9279 # Languages are added via two mechanisms. Some information must be
9280 # recorded in makefile variables, these are defined in config-lang.in.
9281 # We accumulate them and plug them into the main Makefile.
9282 # The other mechanism is a set of hooks for each of the main targets
9283 # like `clean', `install', etc.
9285 language_fragments
="Make-lang"
9286 language_hooks
="Make-hooks"
9289 for s
in ..
$subdirs
9301 .
${srcdir}/$s/config-lang.
in
9302 if test "x$language" = x
9304 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
9307 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
9308 all_languages
="$all_languages $language"
9309 if test "x$boot_language" = xyes
9311 all_boot_languages
="$all_boot_languages $language"
9313 all_compilers
="$all_compilers $compilers"
9314 all_stagestuff
="$all_stagestuff $stagestuff"
9315 all_diff_excludes
="$all_diff_excludes $diff_excludes"
9316 all_headers
="$all_headers $headers"
9317 all_outputs
="$all_outputs $outputs"
9318 if test x
$outputs = x
9320 oldstyle_subdirs
="$oldstyle_subdirs $s"
9322 all_lib2funcs
="$all_lib2funcs $lib2funcs"
9326 # Since we can't use `::' targets, we link each language in
9327 # with a set of hooks, reached indirectly via lang.${target}.
9331 target_list
="all.build all.cross start.encap rest.encap \
9333 install-normal install-common install-info install-man \
9335 mostlyclean clean distclean extraclean maintainer-clean \
9336 stage1 stage2 stage3 stage4"
9337 for t
in $target_list
9340 for lang
in ..
$all_languages
9342 if test $lang != ".."; then
9346 echo "lang.$t: $x" >> Make-hooks
9349 # If we're not building in srcdir, create .gdbinit.
9351 if test ! -f Makefile.
in; then
9352 echo "dir ." > .gdbinit
9353 echo "dir ${srcdir}" >> .gdbinit
9354 if test x
$gdb_needs_out_file_path = xyes
9356 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
9358 if test "x$subdirs" != x
; then
9361 echo "dir ${srcdir}/$s" >> .gdbinit
9364 echo "source ${srcdir}/.gdbinit" >> .gdbinit
9367 # Define variables host_canonical and build_canonical
9368 # because some Cygnus local changes in the Makefile depend on them.
9369 build_canonical
=${build}
9370 host_canonical
=${host}
9372 if test "${host}" != "${target}" ; then
9373 target_subdir
=${target}/
9379 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
9380 # absolute path for gcc_tooldir based on inserting the number of up-directory
9381 # movements required to get from $(exec_prefix) to $(prefix) into the basic
9382 # $(libsubdir)/@(unlibsubdir) based path.
9383 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
9384 # make and thus we'd get different behavior depending on where we built the
9386 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
9387 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
9389 # An explanation of the sed strings:
9390 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
9391 # -e 's|/$||' match a trailing forward slash and eliminates it
9392 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
9393 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
9395 # (*) Note this pattern overwrites the first character of the string
9396 # with a forward slash if one is not already present. This is not a
9397 # problem because the exact names of the sub-directories concerned is
9398 # unimportant, just the number of them matters.
9400 # The practical upshot of these patterns is like this:
9402 # prefix exec_prefix result
9403 # ------ ----------- ------
9405 # /foo/ /foo/bar ../
9406 # /foo /foo/bar/ ../
9407 # /foo/ /foo/bar/ ../
9408 # /foo /foo/bar/ugg ../../
9411 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
9416 # Nothing to do for FLOAT_H, float_format already handled.
9420 # Process the language and host/target makefile fragments.
9421 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
9423 # Substitute configuration variables
9482 # Echo that links are built
9483 if test x
$host = x
$target
9491 if test x
$host != x
$build
9493 str3
=" on a $build system"
9496 if test "x$str2" != x ||
test "x$str3" != x
9501 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
9503 if test "x$str2" != x ||
test "x$str3" != x
9505 echo " ${str2}${str3}." 1>&2
9508 # Truncate the target if necessary
9509 if test x
$host_truncate_target != x
; then
9510 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
9513 # Configure the subdirectories
9514 # AC_CONFIG_SUBDIRS($subdirs)
9516 # Create the Makefile
9517 # and configure language subdirectories
9519 cat > confcache
<<\EOF
9520 # This file is a shell script that caches the results of configure
9521 # tests run on this system so they can be shared between configure
9522 # scripts and configure runs. It is not useful on other systems.
9523 # If it contains results you don't want to keep, you may remove or edit it.
9525 # By default, configure uses ./config.cache as the cache file,
9526 # creating it if it does not exist already. You can give configure
9527 # the --cache-file=FILE option to use a different cache file; that is
9528 # what configure does when it calls configure scripts in
9529 # subdirectories, so they share the cache.
9530 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9531 # config.status only pays attention to the cache file if you give it the
9532 # --recheck option to rerun configure.
9535 # The following way of writing the cache mishandles newlines in values,
9536 # but we know of no workaround that is simple, portable, and efficient.
9537 # So, don't put newlines in cache variables' values.
9538 # Ultrix sh set writes to stderr and can't be redirected directly,
9539 # and sets the high bit in the cache file unless we assign to the vars.
9541 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9543 # `set' does not quote correctly, so add quotes (double-quote substitution
9544 # turns \\\\ into \\, and sed turns \\ into \).
9546 -e "s/'/'\\\\''/g" \
9547 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9550 # `set' quotes correctly as required by POSIX, so do not add quotes.
9551 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9554 if cmp -s $cache_file confcache
; then
9557 if test -w $cache_file; then
9558 echo "updating cache $cache_file"
9559 cat confcache
> $cache_file
9561 echo "not updating unwritable cache $cache_file"
9566 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9568 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9569 # Let make expand exec_prefix.
9570 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9572 # Any assignment to VPATH causes Sun make to only execute
9573 # the first set of double-colon rules, so remove it if not needed.
9574 # If there is a colon in the path, we need to keep it.
9575 if test "x$srcdir" = x.
; then
9576 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
9579 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9581 DEFS
=-DHAVE_CONFIG_H
9583 # Without the "./", some shells look in PATH for config.status.
9584 : ${CONFIG_STATUS=./config.status}
9586 echo creating
$CONFIG_STATUS
9587 rm -f $CONFIG_STATUS
9588 cat > $CONFIG_STATUS <<EOF
9590 # Generated automatically by configure.
9591 # Run this file to recreate the current configuration.
9592 # This directory was configured as follows,
9593 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9595 # $0 $ac_configure_args
9597 # Compiler output produced by configure, useful for debugging
9598 # configure, is in ./config.log if it exists.
9600 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9603 case "\$ac_option" in
9604 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9605 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9606 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9607 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9608 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9610 -help | --help | --hel | --he | --h)
9611 echo "\$ac_cs_usage"; exit 0 ;;
9612 *) echo "\$ac_cs_usage"; exit 1 ;;
9616 ac_given_srcdir=$srcdir
9618 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9620 cat >> $CONFIG_STATUS <<EOF
9622 # Protect against being on the right side of a sed subst in config.status.
9623 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9624 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9628 s%@CFLAGS@%$CFLAGS%g
9629 s%@CPPFLAGS@%$CPPFLAGS%g
9630 s%@CXXFLAGS@%$CXXFLAGS%g
9631 s%@FFLAGS@%$FFLAGS%g
9633 s%@LDFLAGS@%$LDFLAGS%g
9635 s%@exec_prefix@%$exec_prefix%g
9636 s%@prefix@%$prefix%g
9637 s%@program_transform_name@%$program_transform_name%g
9638 s%@bindir@%$bindir%g
9639 s%@sbindir@%$sbindir%g
9640 s%@libexecdir@%$libexecdir%g
9641 s%@datadir@%$datadir%g
9642 s%@sysconfdir@%$sysconfdir%g
9643 s%@sharedstatedir@%$sharedstatedir%g
9644 s%@localstatedir@%$localstatedir%g
9645 s%@libdir@%$libdir%g
9646 s%@includedir@%$includedir%g
9647 s%@oldincludedir@%$oldincludedir%g
9648 s%@infodir@%$infodir%g
9649 s%@mandir@%$mandir%g
9651 s%@host_alias@%$host_alias%g
9652 s%@host_cpu@%$host_cpu%g
9653 s%@host_vendor@%$host_vendor%g
9654 s%@host_os@%$host_os%g
9655 s%@target@%$target%g
9656 s%@target_alias@%$target_alias%g
9657 s%@target_cpu@%$target_cpu%g
9658 s%@target_vendor@%$target_vendor%g
9659 s%@target_os@%$target_os%g
9661 s%@build_alias@%$build_alias%g
9662 s%@build_cpu@%$build_cpu%g
9663 s%@build_vendor@%$build_vendor%g
9664 s%@build_os@%$build_os%g
9666 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
9667 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
9668 s%@stage2_warn_cflags@%$stage2_warn_cflags%g
9669 s%@SET_MAKE@%$SET_MAKE%g
9672 s%@LEXLIB@%$LEXLIB%g
9675 s%@RANLIB@%$RANLIB%g
9677 s%@INSTALL@%$INSTALL%g
9678 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9679 s%@INSTALL_DATA@%$INSTALL_DATA%g
9682 s%@MAKEINFO@%$MAKEINFO%g
9683 s%@BUILD_INFO@%$BUILD_INFO%g
9684 s%@INSTALL_INFO@%$INSTALL_INFO%g
9685 s%@vfprintf@%$vfprintf%g
9686 s%@doprint@%$doprint%g
9687 s%@manext@%$manext%g
9688 s%@objext@%$objext%g
9689 s%@PACKAGE@%$PACKAGE%g
9690 s%@VERSION@%$VERSION%g
9691 s%@ALLOCA@%$ALLOCA%g
9692 s%@USE_NLS@%$USE_NLS%g
9693 s%@MSGFMT@%$MSGFMT%g
9694 s%@GMSGFMT@%$GMSGFMT%g
9695 s%@XGETTEXT@%$XGETTEXT%g
9696 s%@GENCAT@%$GENCAT%g
9697 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9698 s%@CATALOGS@%$CATALOGS%g
9699 s%@CATOBJEXT@%$CATOBJEXT%g
9700 s%@DATADIRNAME@%$DATADIRNAME%g
9701 s%@GMOFILES@%$GMOFILES%g
9702 s%@INSTOBJEXT@%$INSTOBJEXT%g
9703 s%@INTLDEPS@%$INTLDEPS%g
9704 s%@INTLLIBS@%$INTLLIBS%g
9705 s%@INTLOBJS@%$INTLOBJS%g
9706 s%@POFILES@%$POFILES%g
9708 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
9710 s%@GT_YES@%$GT_YES%g
9711 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9713 s%@inhibit_libc@%$inhibit_libc%g
9714 s%@gthread_flags@%$gthread_flags%g
9716 s%@GXX_ABI_FLAG@%$GXX_ABI_FLAG%g
9718 s%@build_canonical@%$build_canonical%g
9719 s%@host_canonical@%$host_canonical%g
9720 s%@target_subdir@%$target_subdir%g
9721 s%@gcc_tooldir@%$gcc_tooldir%g
9722 s%@dollar@%$dollar%g
9723 s%@objdir@%$objdir%g
9724 s%@subdirs@%$subdirs%g
9725 s%@all_boot_languages@%$all_boot_languages%g
9726 s%@all_compilers@%$all_compilers%g
9727 s%@all_diff_excludes@%$all_diff_excludes%g
9728 s%@all_headers@%$all_headers%g
9729 s%@all_lang_makefiles@%$all_lang_makefiles%g
9730 s%@all_languages@%$all_languages%g
9731 s%@all_lib2funcs@%$all_lib2funcs%g
9732 s%@all_stagestuff@%$all_stagestuff%g
9733 s%@build_exeext@%$build_exeext%g
9734 s%@build_install_headers_dir@%$build_install_headers_dir%g
9735 s%@build_xm_file_list@%$build_xm_file_list%g
9736 s%@cc_set_by_configure@%$cc_set_by_configure%g
9737 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
9738 s%@cpp_install_dir@%$cpp_install_dir%g
9739 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
9740 s%@dep_tmake_file@%$dep_tmake_file%g
9741 s%@extra_c_flags@%$extra_c_flags%g
9742 s%@extra_c_objs@%$extra_c_objs%g
9743 s%@extra_cpp_objs@%$extra_cpp_objs%g
9744 s%@extra_cxx_objs@%$extra_cxx_objs%g
9745 s%@extra_headers_list@%$extra_headers_list%g
9746 s%@extra_objs@%$extra_objs%g
9747 s%@extra_parts@%$extra_parts%g
9748 s%@extra_passes@%$extra_passes%g
9749 s%@extra_programs@%$extra_programs%g
9750 s%@float_h_file@%$float_h_file%g
9751 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
9752 s%@gcc_version@%$gcc_version%g
9753 s%@gcc_version_trigger@%$gcc_version_trigger%g
9754 s%@host_exeext@%$host_exeext%g
9755 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
9756 s%@host_xm_file_list@%$host_xm_file_list%g
9757 s%@install@%$install%g
9758 s%@lang_options_files@%$lang_options_files%g
9759 s%@lang_specs_files@%$lang_specs_files%g
9760 s%@lang_tree_files@%$lang_tree_files%g
9761 s%@local_prefix@%$local_prefix%g
9762 s%@maybe_use_collect2@%$maybe_use_collect2%g
9763 s%@md_file@%$md_file%g
9764 s%@objc_boehm_gc@%$objc_boehm_gc%g
9765 s%@out_file@%$out_file%g
9766 s%@out_object_file@%$out_object_file%g
9767 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
9768 s%@symbolic_link@%$symbolic_link%g
9769 s%@thread_file@%$thread_file%g
9770 s%@tm_file_list@%$tm_file_list%g
9771 s%@will_use_collect2@%$will_use_collect2%g
9772 /@target_overrides@/r $target_overrides
9773 s%@target_overrides@%%g
9774 /@host_overrides@/r $host_overrides
9775 s%@host_overrides@%%g
9776 s%@cross_defines@%$cross_defines%g
9777 /@cross_overrides@/r $cross_overrides
9778 s%@cross_overrides@%%g
9779 /@build_overrides@/r $build_overrides
9780 s%@build_overrides@%%g
9781 /@language_fragments@/r $language_fragments
9782 s%@language_fragments@%%g
9783 /@language_hooks@/r $language_hooks
9784 s%@language_hooks@%%g
9789 cat >> $CONFIG_STATUS <<\EOF
9791 # Split the substitutions into bite-sized pieces for seds with
9792 # small command number limits, like on Digital OSF/1 and HP-UX.
9793 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
9794 ac_file
=1 # Number of current file.
9795 ac_beg
=1 # First line for current file.
9796 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
9799 while $ac_more_lines; do
9800 if test $ac_beg -gt 1; then
9801 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
9803 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
9805 if test ! -s conftest.s
$ac_file; then
9807 rm -f conftest.s
$ac_file
9809 if test -z "$ac_sed_cmds"; then
9810 ac_sed_cmds
="sed -f conftest.s$ac_file"
9812 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
9814 ac_file
=`expr $ac_file + 1`
9816 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
9819 if test -z "$ac_sed_cmds"; then
9824 cat >> $CONFIG_STATUS <<EOF
9826 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
9828 cat >> $CONFIG_STATUS <<\EOF
9829 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
9830 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9832 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9833 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9834 *) ac_file_in
="${ac_file}.in" ;;
9837 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9839 # Remove last slash and all that follows it. Not all systems have dirname.
9840 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9841 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
9842 # The file is in a subdirectory.
9843 test ! -d "$ac_dir" && mkdir
"$ac_dir"
9844 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
9845 # A "../" for each directory in $ac_dir_suffix.
9846 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9848 ac_dir_suffix
= ac_dots
=
9851 case "$ac_given_srcdir" in
9853 if test -z "$ac_dots"; then top_srcdir
=.
9854 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9855 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
9857 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9858 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9862 echo creating
"$ac_file"
9864 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9866 *Makefile
*) ac_comsub
="1i\\
9867 # $configure_input" ;;
9871 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9873 s%@configure_input@%$configure_input%g
9874 s%@srcdir@%$srcdir%g
9875 s%@top_srcdir@%$top_srcdir%g
9876 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
9880 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9881 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9883 # ac_d sets the value in "#define NAME VALUE" lines.
9884 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9885 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
9888 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9889 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9890 ac_uB
='\([ ]\)%\1#\2define\3'
9893 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9894 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9895 ac_eB
='$%\1#\2define\3'
9899 if test "${CONFIG_HEADERS+set}" != set; then
9901 cat >> $CONFIG_STATUS <<EOF
9902 CONFIG_HEADERS="auto-host.h:config.in"
9904 cat >> $CONFIG_STATUS <<\EOF
9906 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
9907 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9909 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9910 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9911 *) ac_file_in
="${ac_file}.in" ;;
9914 echo creating
$ac_file
9916 rm -f conftest.frag conftest.
in conftest.out
9917 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9918 cat $ac_file_inputs > conftest.
in
9922 # Transform confdefs.h into a sed script conftest.vals that substitutes
9923 # the proper values into config.h.in to produce config.h. And first:
9924 # Protect against being on the right side of a sed subst in config.status.
9925 # Protect against being in an unquoted here document in config.status.
9927 cat > conftest.hdr
<<\EOF
9930 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9934 sed -n -f conftest.hdr confdefs.h > conftest.vals
9937 # This sed command replaces #undef with comments. This is necessary, for
9938 # example, in the case of _POSIX_SOURCE, which is predefined and required
9939 # on some systems where configure will not decide to define it.
9940 cat >> conftest.vals <<\EOF
9941 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9944 # Break up conftest.vals because some shells have a limit on
9945 # the size of here documents, and old seds have small limits too.
9950 ac_lines=`grep -c . conftest.vals
`
9951 # grep -c gives empty output for an empty file on some AIX systems.
9952 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9953 # Write a limited-size here document to conftest.frag.
9954 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9955 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9957 sed -f conftest.frag conftest.in > conftest.out
9959 mv conftest.out conftest.in
9961 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9963 mv conftest.tail conftest.vals
9967 cat >> $CONFIG_STATUS <<\EOF
9968 rm -f conftest.frag conftest.h
9969 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9970 cat conftest.in >> conftest.h
9972 if cmp -s $ac_file conftest.h 2>/dev/null; then
9973 echo "$ac_file is unchanged"
9976 # Remove last slash and all that follows it. Not all systems have dirname.
9977 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
9978 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9979 # The file is in a subdirectory.
9980 test ! -d "$ac_dir" && mkdir "$ac_dir"
9983 mv conftest.h $ac_file
9989 cat >> $CONFIG_STATUS <<EOF
9990 ac_sources="$nls_cv_header_libgt"
9991 ac_dests="$nls_cv_header_intl"
9994 cat >> $CONFIG_STATUS <<\EOF
9995 srcdir=$ac_given_srcdir
9996 while test -n "$ac_sources"; do
9997 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9998 set $ac_sources; ac_source=$1; shift; ac_sources=$*
10000 echo "linking $srcdir/$ac_source to $ac_dest"
10002 if test ! -r $srcdir/$ac_source; then
10003 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
10007 # Make relative symlinks.
10008 # Remove last slash and all that follows it. Not all systems have dirname.
10009 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
10010 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
10011 # The dest file is in a subdirectory.
10012 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
10013 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
10014 # A "../" for each directory in $ac_dest_dir_suffix.
10015 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
10017 ac_dest_dir_suffix= ac_dots=
10021 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
10022 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
10025 # Make a symlink if possible; otherwise try a hard link.
10026 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
10027 ln $srcdir/$ac_source $ac_dest; then :
10029 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
10033 cat >> $CONFIG_STATUS <<EOF
10039 target_alias='${target_alias}'
10041 subdirs='${subdirs}'
10042 oldstyle_subdirs='${oldstyle_subdirs}'
10043 symbolic_link='${symbolic_link}'
10044 program_transform_set='${program_transform_set}'
10045 program_transform_name='${program_transform_name}'
10046 dep_host_xmake_file='${dep_host_xmake_file}'
10047 host_xmake_file='${host_xmake_file}'
10048 dep_tmake_file='${dep_tmake_file}'
10049 tmake_file='${tmake_file}'
10050 thread_file='${thread_file}'
10051 gcc_version='${gcc_version}'
10052 gcc_version_trigger='${gcc_version_trigger}'
10053 local_prefix='${local_prefix}'
10054 build_install_headers_dir='${build_install_headers_dir}'
10055 build_exeext='${build_exeext}'
10056 host_exeext='${host_exeext}'
10057 out_file='${out_file}'
10058 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
10059 SET_MAKE='${SET_MAKE}'
10060 target_list='${target_list}'
10061 target_overrides='${target_overrides}'
10062 host_overrides='${host_overrides}'
10063 cross_defines='${cross_defines}'
10064 cross_overrides='${cross_overrides}'
10065 build_overrides='${build_overrides}'
10066 cpp_install_dir='${cpp_install_dir}'
10069 cat >> $CONFIG_STATUS <<\EOF
10070 case "$CONFIG_FILES" in *po/Makefile.in*)
10071 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
10074 . $srcdir/configure.lang
10075 case x$CONFIG_HEADERS in
10076 xauto-host.h:config.in)
10079 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
10080 # bootstrapping and the installation procedure can still use
10081 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
10082 # FLAGS_TO_PASS has been modified to solve the problem there.
10083 # This is virtually a duplicate of what happens in configure.lang; we do
10084 # an extra check to make sure this only happens if ln -s can be used.
10085 if test "$symbolic_link" = "ln -s"; then
10086 for d in .. ${subdirs} ; do
10087 if test $d != ..; then
10090 for t in stage1 stage2 stage3 stage4 include
10093 $symbolic_link ../$t $t 2>/dev/null
10099 # Avoid having to add intl to our include paths.
10100 if test -f intl/libintl.h; then
10101 echo creating libintl.h
10102 echo '#include "intl/libintl.h"' >libintl.h
10107 chmod +x $CONFIG_STATUS
10108 rm -fr confdefs* $ac_clean_files
10109 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1