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-cpplib link cpplib directly into C and C++ compilers
45 (HIGHLY EXPERIMENTAL)."
47 --enable-c-mbchar Enable multibyte characters for C and C++."
49 --enable-threads enable thread usage for target GCC.
50 --enable-threads=LIB use LIB thread package for target GCC."
52 --enable-objc-gc enable the use of Boehm's garbage collector with
53 the GNU Objective-C runtime."
55 --with-dwarf2 force the default debug format to be DWARF2."
57 --enable-nls use Native Language Support (default)"
59 --disable-nls do not use Native Language Support"
61 --with-included-gettext use the GNU gettext library included here"
63 --with-catgets use catgets functions if available"
65 --disable-win32-registry
66 Disable lookup of installation paths in the
67 Registry on Windows hosts.
68 --enable-win32-registry Enable registry lookup (default).
69 --enable-win32-registry=KEY
70 Use KEY instead of GCC version as the last portion
73 --with-gc={simple,page} Choose the garbage collection mechanism to use
77 select the new abi for g++. You must select an ABI
78 at configuration time, so that the correct runtime
79 support is built. You cannot mix ABIs."
82 enable libstdc++-v3 for building and installation"
84 --enable-maintainer-mode enable make rules and dependencies not useful
85 (and sometimes confusing) to the casual installer"
87 # Initialize some variables set by options.
88 # The variables have the same names as the options, with
89 # dashes changed to underlines.
91 cache_file
=.
/config.cache
100 program_transform_name
=s
,x
,x
,
108 bindir
='${exec_prefix}/bin'
109 sbindir
='${exec_prefix}/sbin'
110 libexecdir
='${exec_prefix}/libexec'
111 datadir
='${prefix}/share'
112 sysconfdir
='${prefix}/etc'
113 sharedstatedir
='${prefix}/com'
114 localstatedir
='${prefix}/var'
115 libdir
='${exec_prefix}/lib'
116 includedir
='${prefix}/include'
117 oldincludedir
='/usr/include'
118 infodir
='${prefix}/info'
119 mandir
='${prefix}/man'
121 # Initialize some other variables.
124 SHELL
=${CONFIG_SHELL-/bin/sh}
125 # Maximum number of lines to put in a shell here document.
132 # If the previous option needs an argument, assign it.
133 if test -n "$ac_prev"; then
134 eval "$ac_prev=\$ac_option"
140 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
144 # Accept the important Cygnus configure options, so we can diagnose typos.
148 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
150 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
151 bindir
="$ac_optarg" ;;
153 -build |
--build |
--buil |
--bui |
--bu)
155 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
156 build
="$ac_optarg" ;;
158 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
159 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
160 ac_prev
=cache_file
;;
161 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
162 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
163 cache_file
="$ac_optarg" ;;
165 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
167 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
169 datadir
="$ac_optarg" ;;
171 -disable-* |
--disable-*)
172 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
173 # Reject names that are not valid shell variable names.
174 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
175 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
177 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
178 eval "enable_${ac_feature}=no" ;;
180 -enable-* |
--enable-*)
181 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
182 # Reject names that are not valid shell variable names.
183 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
184 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
186 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
191 eval "enable_${ac_feature}='$ac_optarg'" ;;
193 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
194 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
195 |
--exec |
--exe |
--ex)
196 ac_prev
=exec_prefix
;;
197 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
198 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
199 |
--exec=* |
--exe=* |
--ex=*)
200 exec_prefix
="$ac_optarg" ;;
202 -gas |
--gas |
--ga |
--g)
203 # Obsolete; use --with-gas.
206 -help |
--help |
--hel |
--he)
207 # Omit some internal or obsolete options to make the list less imposing.
208 # This message is too long to be a string in the A/UX 3.1 sh.
210 Usage: configure [options] [host]
211 Options: [defaults in brackets after descriptions]
213 --cache-file=FILE cache test results in FILE
214 --help print this message
215 --no-create do not create output files
216 --quiet, --silent do not print \`checking...' messages
217 --version print the version of autoconf that created configure
218 Directory and file names:
219 --prefix=PREFIX install architecture-independent files in PREFIX
221 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
223 --bindir=DIR user executables in DIR [EPREFIX/bin]
224 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
225 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
226 --datadir=DIR read-only architecture-independent data in DIR
228 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
229 --sharedstatedir=DIR modifiable architecture-independent data in DIR
231 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
232 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
233 --includedir=DIR C header files in DIR [PREFIX/include]
234 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
235 --infodir=DIR info documentation in DIR [PREFIX/info]
236 --mandir=DIR man documentation in DIR [PREFIX/man]
237 --srcdir=DIR find the sources in DIR [configure dir or ..]
238 --program-prefix=PREFIX prepend PREFIX to installed program names
239 --program-suffix=SUFFIX append SUFFIX to installed program names
240 --program-transform-name=PROGRAM
241 run sed PROGRAM on installed program names
245 --build=BUILD configure for building on BUILD [BUILD=HOST]
246 --host=HOST configure for HOST [guessed]
247 --target=TARGET configure for TARGET [TARGET=HOST]
248 Features and packages:
249 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
250 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
251 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
252 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
253 --x-includes=DIR X include files are in DIR
254 --x-libraries=DIR X library files are in DIR
256 if test -n "$ac_help"; then
257 echo "--enable and --with options recognized:$ac_help"
261 -host |
--host |
--hos |
--ho)
263 -host=* |
--host=* |
--hos=* |
--ho=*)
266 -includedir |
--includedir |
--includedi |
--included |
--include \
267 |
--includ |
--inclu |
--incl |
--inc)
268 ac_prev
=includedir
;;
269 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
270 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
271 includedir
="$ac_optarg" ;;
273 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
275 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
276 infodir
="$ac_optarg" ;;
278 -libdir |
--libdir |
--libdi |
--libd)
280 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
281 libdir
="$ac_optarg" ;;
283 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
284 |
--libexe |
--libex |
--libe)
285 ac_prev
=libexecdir
;;
286 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
287 |
--libexe=* |
--libex=* |
--libe=*)
288 libexecdir
="$ac_optarg" ;;
290 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
291 |
--localstate |
--localstat |
--localsta |
--localst \
292 |
--locals |
--local |
--loca |
--loc |
--lo)
293 ac_prev
=localstatedir
;;
294 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
295 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
296 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
297 localstatedir
="$ac_optarg" ;;
299 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
301 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
302 mandir
="$ac_optarg" ;;
305 # Obsolete; use --without-fp.
308 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
312 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
313 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
316 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
317 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
318 |
--oldin |
--oldi |
--old |
--ol |
--o)
319 ac_prev
=oldincludedir
;;
320 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
321 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
322 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
323 oldincludedir
="$ac_optarg" ;;
325 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
327 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
328 prefix
="$ac_optarg" ;;
330 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
331 |
--program-pre |
--program-pr |
--program-p)
332 ac_prev
=program_prefix
;;
333 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
334 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
335 program_prefix
="$ac_optarg" ;;
337 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
338 |
--program-suf |
--program-su |
--program-s)
339 ac_prev
=program_suffix
;;
340 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
341 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
342 program_suffix
="$ac_optarg" ;;
344 -program-transform-name |
--program-transform-name \
345 |
--program-transform-nam |
--program-transform-na \
346 |
--program-transform-n |
--program-transform- \
347 |
--program-transform |
--program-transfor \
348 |
--program-transfo |
--program-transf \
349 |
--program-trans |
--program-tran \
350 |
--progr-tra |
--program-tr |
--program-t)
351 ac_prev
=program_transform_name
;;
352 -program-transform-name=* |
--program-transform-name=* \
353 |
--program-transform-nam=* |
--program-transform-na=* \
354 |
--program-transform-n=* |
--program-transform-=* \
355 |
--program-transform=* |
--program-transfor=* \
356 |
--program-transfo=* |
--program-transf=* \
357 |
--program-trans=* |
--program-tran=* \
358 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
359 program_transform_name
="$ac_optarg" ;;
361 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
362 |
-silent |
--silent |
--silen |
--sile |
--sil)
365 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
367 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
369 sbindir
="$ac_optarg" ;;
371 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
372 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
373 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
375 ac_prev
=sharedstatedir
;;
376 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
377 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
378 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
380 sharedstatedir
="$ac_optarg" ;;
382 -site |
--site |
--sit)
384 -site=* |
--site=* |
--sit=*)
387 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
389 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
390 srcdir
="$ac_optarg" ;;
392 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
393 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
394 ac_prev
=sysconfdir
;;
395 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
396 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
397 sysconfdir
="$ac_optarg" ;;
399 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
401 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
402 target
="$ac_optarg" ;;
404 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
407 -version |
--version |
--versio |
--versi |
--vers)
408 echo "configure generated by autoconf version 2.13"
412 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
413 # Reject names that are not valid shell variable names.
414 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
415 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
417 ac_package
=`echo $ac_package| sed 's/-/_/g'`
422 eval "with_${ac_package}='$ac_optarg'" ;;
424 -without-* |
--without-*)
425 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
426 # Reject names that are not valid shell variable names.
427 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
428 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
430 ac_package
=`echo $ac_package| sed 's/-/_/g'`
431 eval "with_${ac_package}=no" ;;
434 # Obsolete; use --with-x.
437 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
438 |
--x-incl |
--x-inc |
--x-in |
--x-i)
439 ac_prev
=x_includes
;;
440 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
441 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
442 x_includes
="$ac_optarg" ;;
444 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
445 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
446 ac_prev
=x_libraries
;;
447 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
448 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
449 x_libraries
="$ac_optarg" ;;
451 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
455 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
456 echo "configure: warning: $ac_option: invalid host type" 1>&2
458 if test "x$nonopt" != xNONE
; then
459 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
467 if test -n "$ac_prev"; then
468 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
471 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
473 # File descriptor usage:
476 # 2 errors and warnings
477 # 3 some systems may open it to /dev/tty
478 # 4 used on the Kubota Titan
479 # 6 checking for... messages and results
480 # 5 compiler messages saved in config.log
481 if test "$silent" = yes; then
489 This file contains any messages produced by compilers while
490 running configure, to aid debugging if configure makes a mistake.
493 # Strip out --no-create and --no-recursion so they do not pile up.
494 # Also quote any args containing shell metacharacters.
499 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
500 |
--no-cr |
--no-c) ;;
501 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
502 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
503 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
504 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
505 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
510 # Only set these to C if already set. These must not be set unconditionally
511 # because not all systems understand e.g. LANG=C (notably SCO).
512 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
513 # Non-C LC_CTYPE values break the ctype check.
514 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
515 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
516 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
517 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
519 # confdefs.h avoids OS command line length limits that DEFS can exceed.
520 rm -rf conftest
* confdefs.h
521 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
524 # A filename unique to this package, relative to the directory that
525 # configure is in, which we can look for to find out if srcdir is correct.
526 ac_unique_file
=tree.c
528 # Find the source files, if location was not specified.
529 if test -z "$srcdir"; then
530 ac_srcdir_defaulted
=yes
531 # Try the directory containing this script, then its parent.
533 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
534 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
536 if test ! -r $srcdir/$ac_unique_file; then
540 ac_srcdir_defaulted
=no
542 if test ! -r $srcdir/$ac_unique_file; then
543 if test "$ac_srcdir_defaulted" = yes; then
544 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
546 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
549 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
551 # Prefer explicitly selected file to automatically selected ones.
552 if test -z "$CONFIG_SITE"; then
553 if test "x$prefix" != xNONE
; then
554 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
556 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
559 for ac_site_file
in $CONFIG_SITE; do
560 if test -r "$ac_site_file"; then
561 echo "loading site script $ac_site_file"
566 if test -r "$cache_file"; then
567 echo "loading cache $cache_file"
570 echo "creating cache $cache_file"
575 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
576 ac_cpp
='$CPP $CPPFLAGS'
577 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
578 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
579 cross_compiling
=$ac_cv_prog_cc_cross
583 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
584 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
585 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
592 ac_n
= ac_c
='\c' ac_t
=
600 symbolic_link
='ln -s'
603 # Check for bogus environment variables.
604 # Test if LIBRARY_PATH contains the notation for the current directory
605 # since this would lead to problems installing/building glibc.
606 # LIBRARY_PATH contains the current directory if one of the following
608 # - one of the terminals (":" and ";") is the first or last sign
609 # - two terminals occur directly after each other
610 # - the path contains an element with a dot in it
611 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
612 echo "configure:613: checking LIBRARY_PATH variable" >&5
613 case ${LIBRARY_PATH} in
614 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
615 library_path_setting
="contains current directory"
618 library_path_setting
="ok"
621 echo "$ac_t""$library_path_setting" 1>&6
622 if test "$library_path_setting" != "ok"; then
623 { echo "configure: error:
624 *** LIBRARY_PATH shouldn't contain the current directory when
625 *** building gcc. Please change the environment variable
626 *** and run configure again." 1>&2; exit 1; }
629 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
630 # since this would lead to problems installing/building glibc.
631 # GCC_EXEC_PREFIX contains the current directory if one of the following
633 # - one of the terminals (":" and ";") is the first or last sign
634 # - two terminals occur directly after each other
635 # - the path contains an element with a dot in it
636 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
637 echo "configure:638: checking GCC_EXEC_PREFIX variable" >&5
638 case ${GCC_EXEC_PREFIX} in
639 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
640 gcc_exec_prefix_setting
="contains current directory"
643 gcc_exec_prefix_setting
="ok"
646 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
647 if test "$gcc_exec_prefix_setting" != "ok"; then
648 { echo "configure: error:
649 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
650 *** building gcc. Please change the environment variable
651 *** and run configure again." 1>&2; exit 1; }
654 # Check for additional parameters
657 # Check whether --with-gnu-ld or --without-gnu-ld was given.
658 if test "${with_gnu_ld+set}" = set; then
659 withval
="$with_gnu_ld"
660 gnu_ld_flag
="$with_gnu_ld"
666 # With pre-defined ld
667 # Check whether --with-ld or --without-ld was given.
668 if test "${with_ld+set}" = set; then
670 DEFAULT_LINKER
="$with_ld"
673 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
674 if test ! -x "$DEFAULT_LINKER"; then
675 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
676 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
679 cat >> confdefs.h
<<EOF
680 #define DEFAULT_LINKER "$DEFAULT_LINKER"
686 # Check whether --with-gnu-as or --without-gnu-as was given.
687 if test "${with_gnu_as+set}" = set; then
688 withval
="$with_gnu_as"
689 gas_flag
="$with_gnu_as"
695 # Check whether --with-as or --without-as was given.
696 if test "${with_as+set}" = set; then
698 DEFAULT_ASSEMBLER
="$with_as"
701 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
702 if test ! -x "$DEFAULT_ASSEMBLER"; then
703 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
704 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
707 cat >> confdefs.h
<<EOF
708 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
714 # Check whether --with-stabs or --without-stabs was given.
715 if test "${with_stabs+set}" = set; then
716 withval
="$with_stabs"
724 # Check whether --with-elf or --without-elf was given.
725 if test "${with_elf+set}" = set; then
733 # Specify the local prefix
735 # Check whether --with-local-prefix or --without-local-prefix was given.
736 if test "${with_local_prefix+set}" = set; then
737 withval
="$with_local_prefix"
739 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
741 *) local_prefix
=$with_local_prefix ;;
746 # Default local prefix if it is empty
747 if test x
$local_prefix = x
; then
748 local_prefix
=/usr
/local
751 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
752 # passed in by the toplevel make and thus we'd get different behavior
753 # depending on where we built the sources.
755 # Specify the g++ header file directory
756 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
757 if test "${with_gxx_include_dir+set}" = set; then
758 withval
="$with_gxx_include_dir"
760 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
762 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
767 if test x
${gcc_gxx_include_dir} = x
; then
768 if test x
${enable_version_specific_runtime_libs} = xyes
; then
769 gcc_gxx_include_dir
='${libsubdir}/include/g++'
771 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
772 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
776 # Enable expensive internal checks
777 # Check whether --enable-checking or --disable-checking was given.
778 if test "${enable_checking+set}" = set; then
779 enableval
="$enable_checking"
784 ac_gc_always_collect
=
785 case "${enableval}" in
786 yes) ac_checking
=1 ; ac_tree_checking
=1 ; ac_gc_checking
=1 ;;
788 *) IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
789 set fnord
$enableval; shift
794 misc
) ac_checking
=1 ;;
795 tree
) ac_tree_checking
=1 ;;
796 rtl
) ac_rtl_checking
=1 ;;
797 gc
) ac_gc_checking
=1 ;;
798 gcac
) ac_gc_always_collect
=1 ;;
799 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
806 # Enable some checks by default for development versions of GCC
807 ac_checking
=1; ac_tree_checking
=1; ac_gc_checking
=1;
810 if test x
$ac_checking != x
; then
811 cat >> confdefs.h
<<\EOF
812 #define ENABLE_CHECKING 1
816 if test x
$ac_tree_checking != x
; then
817 cat >> confdefs.h
<<\EOF
818 #define ENABLE_TREE_CHECKING 1
822 if test x
$ac_rtl_checking != x
; then
823 cat >> confdefs.h
<<\EOF
824 #define ENABLE_RTL_CHECKING 1
828 if test x
$ac_gc_checking != x
; then
829 cat >> confdefs.h
<<\EOF
830 #define ENABLE_GC_CHECKING 1
834 if test x
$ac_gc_always_collect != x
; then
835 cat >> confdefs.h
<<\EOF
836 #define ENABLE_GC_ALWAYS_COLLECT 1
842 # Check whether --enable-cpp or --disable-cpp was given.
843 if test "${enable_cpp+set}" = set; then
844 enableval
="$enable_cpp"
851 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
852 if test "${with_cpp_install_dir+set}" = set; then
853 withval
="$with_cpp_install_dir"
854 if test x
$withval = xyes
; then
855 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
856 elif test x
$withval != xno
; then
857 cpp_install_dir
=$withval
862 # Link cpplib into the compiler proper, for C/C++/ObjC.
863 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
864 if test "${enable_c_cpplib+set}" = set; then
865 enableval
="$enable_c_cpplib"
866 if test x
$enable_c_cpplib != xno
; then
867 extra_c_objs
="${extra_c_objs} libcpp.a"
868 extra_cxx_objs
="${extra_cxx_objs} ../libcpp.a"
869 cat >> confdefs.h
<<\EOF
877 # Enable Multibyte Characters for C/C++
878 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
879 if test "${enable_c_mbchar+set}" = set; then
880 enableval
="$enable_c_mbchar"
881 if test x
$enable_c_mbchar != xno
; then
882 cat >> confdefs.h
<<\EOF
883 #define MULTIBYTE_CHARS 1
891 # Pass with no value to take the default
892 # Pass with a value to specify a thread package
893 # Check whether --enable-threads or --disable-threads was given.
894 if test "${enable_threads+set}" = set; then
895 enableval
="$enable_threads"
896 if test x
$enable_threads = xno
; then
904 enable_threads_flag
=$enable_threads
905 # Check if a valid thread package
906 case x
${enable_threads_flag} in
909 target_thread_file
='single'
913 target_thread_file
=''
915 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
916 xsolaris | xwin32 | xdce | xvxworks
)
917 target_thread_file
=$enable_threads_flag
920 echo "$enable_threads is an unknown thread package" 1>&2
925 # Check whether --enable-objc-gc or --disable-objc-gc was given.
926 if test "${enable_objc_gc+set}" = set; then
927 enableval
="$enable_objc_gc"
928 if test x
$enable_objc_gc = xno
; then
938 # Check whether --with-dwarf2 or --without-dwarf2 was given.
939 if test "${with_dwarf2+set}" = set; then
940 withval
="$with_dwarf2"
941 dwarf2
="$with_dwarf2"
947 # Determine the host, build, and target systems
949 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
950 if test -f $ac_dir/install-sh
; then
952 ac_install_sh
="$ac_aux_dir/install-sh -c"
954 elif test -f $ac_dir/install.sh
; then
956 ac_install_sh
="$ac_aux_dir/install.sh -c"
960 if test -z "$ac_aux_dir"; then
961 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
963 ac_config_guess
=$ac_aux_dir/config.guess
964 ac_config_sub
=$ac_aux_dir/config.sub
965 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
968 # Do some error checking and defaulting for the host and target type.
970 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
973 # 1. You are not allowed to specify --host, --target, and nonopt at the
975 # 2. Host defaults to nonopt.
976 # 3. If nonopt is not specified, then host defaults to the current host,
977 # as determined by config.guess.
978 # 4. Target and build default to nonopt.
979 # 5. If nonopt is not specified, then target and build default to host.
981 # The aliases save the names the user supplied, while $host etc.
982 # will get canonicalized.
983 case $host---$target---$nonopt in
984 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
985 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
989 # Make sure we can run config.sub.
990 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
991 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
994 echo $ac_n "checking host system type""... $ac_c" 1>&6
995 echo "configure:996: checking host system type" >&5
998 case "$host_alias" in
1002 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1003 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1005 *) host_alias
=$nonopt ;;
1009 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1010 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1011 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1012 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1013 echo "$ac_t""$host" 1>&6
1015 echo $ac_n "checking target system type""... $ac_c" 1>&6
1016 echo "configure:1017: checking target system type" >&5
1018 target_alias
=$target
1019 case "$target_alias" in
1022 NONE
) target_alias
=$host_alias ;;
1023 *) target_alias
=$nonopt ;;
1027 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1028 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1029 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1030 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1031 echo "$ac_t""$target" 1>&6
1033 echo $ac_n "checking build system type""... $ac_c" 1>&6
1034 echo "configure:1035: checking build system type" >&5
1037 case "$build_alias" in
1040 NONE
) build_alias
=$host_alias ;;
1041 *) build_alias
=$nonopt ;;
1045 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1046 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1047 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1048 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1049 echo "$ac_t""$build" 1>&6
1051 test "$host_alias" != "$target_alias" &&
1052 test "$program_prefix$program_suffix$program_transform_name" = \
1054 program_prefix
=${target_alias}-
1057 # Find the native compiler
1058 # Extract the first word of "gcc", so it can be a program name with args.
1059 set dummy gcc
; ac_word
=$2
1060 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1061 echo "configure:1062: checking for $ac_word" >&5
1062 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1063 echo $ac_n "(cached) $ac_c" 1>&6
1065 if test -n "$CC"; then
1066 ac_cv_prog_CC
="$CC" # Let the user override the test.
1068 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1070 for ac_dir
in $ac_dummy; do
1071 test -z "$ac_dir" && ac_dir
=.
1072 if test -f $ac_dir/$ac_word; then
1081 if test -n "$CC"; then
1082 echo "$ac_t""$CC" 1>&6
1084 echo "$ac_t""no" 1>&6
1087 if test -z "$CC"; then
1088 # Extract the first word of "cc", so it can be a program name with args.
1089 set dummy cc
; ac_word
=$2
1090 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1091 echo "configure:1092: checking for $ac_word" >&5
1092 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1093 echo $ac_n "(cached) $ac_c" 1>&6
1095 if test -n "$CC"; then
1096 ac_cv_prog_CC
="$CC" # Let the user override the test.
1098 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1101 for ac_dir
in $ac_dummy; do
1102 test -z "$ac_dir" && ac_dir
=.
1103 if test -f $ac_dir/$ac_word; then
1104 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1105 ac_prog_rejected
=yes
1113 if test $ac_prog_rejected = yes; then
1114 # We found a bogon in the path, so make sure we never use it.
1115 set dummy
$ac_cv_prog_CC
1117 if test $# -gt 0; then
1118 # We chose a different compiler from the bogus one.
1119 # However, it has the same basename, so the bogon will be chosen
1120 # first if we set CC to just the basename; use the full file name.
1122 set dummy
"$ac_dir/$ac_word" "$@"
1130 if test -n "$CC"; then
1131 echo "$ac_t""$CC" 1>&6
1133 echo "$ac_t""no" 1>&6
1136 if test -z "$CC"; then
1137 case "`uname -s`" in
1139 # Extract the first word of "cl", so it can be a program name with args.
1140 set dummy cl
; ac_word
=$2
1141 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1142 echo "configure:1143: checking for $ac_word" >&5
1143 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1144 echo $ac_n "(cached) $ac_c" 1>&6
1146 if test -n "$CC"; then
1147 ac_cv_prog_CC
="$CC" # Let the user override the test.
1149 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1151 for ac_dir
in $ac_dummy; do
1152 test -z "$ac_dir" && ac_dir
=.
1153 if test -f $ac_dir/$ac_word; then
1162 if test -n "$CC"; then
1163 echo "$ac_t""$CC" 1>&6
1165 echo "$ac_t""no" 1>&6
1170 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1173 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1174 echo "configure:1175: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1177 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1178 ac_cpp
='$CPP $CPPFLAGS'
1179 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1180 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1181 cross_compiling
=$ac_cv_prog_cc_cross
1183 cat > conftest.
$ac_ext << EOF
1185 #line 1186 "configure"
1186 #include "confdefs.h"
1190 if { (eval echo configure
:1191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1191 ac_cv_prog_cc_works
=yes
1192 # If we can't run a trivial program, we are probably using a cross compiler.
1193 if (.
/conftest
; exit) 2>/dev
/null
; then
1194 ac_cv_prog_cc_cross
=no
1196 ac_cv_prog_cc_cross
=yes
1199 echo "configure: failed program was:" >&5
1200 cat conftest.
$ac_ext >&5
1201 ac_cv_prog_cc_works
=no
1205 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1206 ac_cpp
='$CPP $CPPFLAGS'
1207 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1208 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1209 cross_compiling
=$ac_cv_prog_cc_cross
1211 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1212 if test $ac_cv_prog_cc_works = no
; then
1213 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1215 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1216 echo "configure:1217: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1217 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1218 cross_compiling
=$ac_cv_prog_cc_cross
1220 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1221 echo "configure:1222: checking whether we are using GNU C" >&5
1222 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1223 echo $ac_n "(cached) $ac_c" 1>&6
1225 cat > conftest.c
<<EOF
1230 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1237 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1239 if test $ac_cv_prog_gcc = yes; then
1245 ac_test_CFLAGS
="${CFLAGS+set}"
1246 ac_save_CFLAGS
="$CFLAGS"
1248 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1249 echo "configure:1250: checking whether ${CC-cc} accepts -g" >&5
1250 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1251 echo $ac_n "(cached) $ac_c" 1>&6
1253 echo 'void f(){}' > conftest.c
1254 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1263 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1264 if test "$ac_test_CFLAGS" = set; then
1265 CFLAGS
="$ac_save_CFLAGS"
1266 elif test $ac_cv_prog_cc_g = yes; then
1267 if test "$GCC" = yes; then
1273 if test "$GCC" = yes; then
1280 if test "x$CC" != xcc
; then
1281 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1282 echo "configure:1283: checking whether $CC and cc understand -c and -o together" >&5
1284 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1285 echo "configure:1286: checking whether cc understands -c and -o together" >&5
1287 set dummy
$CC; ac_cc
="`echo $2 |
1288 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1289 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1290 echo $ac_n "(cached) $ac_c" 1>&6
1292 echo 'foo(){}' > conftest.c
1293 # Make sure it works both with $CC and with simple cc.
1294 # We do the test twice because some compilers refuse to overwrite an
1295 # existing .o file with -o, though they will create one.
1296 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1297 if { (eval echo configure
:1298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1298 test -f conftest.o
&& { (eval echo configure
:1299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1300 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1301 if test "x$CC" != xcc
; then
1302 # Test first that cc exists at all.
1303 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1304 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1305 if { (eval echo configure
:1306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1306 test -f conftest.o
&& { (eval echo configure
:1307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1311 # cc exists but doesn't like -o.
1312 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1317 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1322 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1323 echo "$ac_t""yes" 1>&6
1325 echo "$ac_t""no" 1>&6
1326 cat >> confdefs.h
<<\EOF
1327 #define NO_MINUS_C_MINUS_O 1
1332 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1333 NO_MINUS_C_MINUS_O
=yes
1337 echo $ac_n "checking for long double""... $ac_c" 1>&6
1338 echo "configure:1339: checking for long double" >&5
1339 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1340 echo $ac_n "(cached) $ac_c" 1>&6
1342 if test "$GCC" = yes; then
1343 gcc_cv_c_long_double
=yes
1345 cat > conftest.
$ac_ext <<EOF
1346 #line 1347 "configure"
1347 #include "confdefs.h"
1350 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1351 long double foo = 0.0;
1352 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1353 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1356 if { (eval echo configure
:1357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1358 gcc_cv_c_long_double
=yes
1360 echo "configure: failed program was:" >&5
1361 cat conftest.
$ac_ext >&5
1363 gcc_cv_c_long_double
=no
1369 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1370 if test $gcc_cv_c_long_double = yes; then
1371 cat >> confdefs.h
<<\EOF
1372 #define HAVE_LONG_DOUBLE 1
1378 echo $ac_n "checking whether ${CC-cc} accepts -Wno-long-long""... $ac_c" 1>&6
1379 echo "configure:1380: checking whether ${CC-cc} accepts -Wno-long-long" >&5
1380 if eval "test \"`echo '$''{'ac_cv_prog_cc_no_long_long'+set}'`\" = set"; then
1381 echo $ac_n "(cached) $ac_c" 1>&6
1383 save_CFLAGS
="$CFLAGS"
1384 CFLAGS
="-Wno-long-long"
1385 cat > conftest.
$ac_ext <<EOF
1386 #line 1387 "configure"
1387 #include "confdefs.h"
1393 if { (eval echo configure
:1394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1395 ac_cv_prog_cc_no_long_long
=yes
1397 echo "configure: failed program was:" >&5
1398 cat conftest.
$ac_ext >&5
1400 ac_cv_prog_cc_no_long_long
=no
1403 CFLAGS
="$save_CFLAGS"
1406 echo "$ac_t""$ac_cv_prog_cc_no_long_long" 1>&6
1408 # If the native compiler is GCC, we can enable warnings even in stage1.
1409 # That's useful for people building cross-compilers, or just running a
1411 stage1_warn_cflags
=" -W -Wall -Wtraditional -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes"
1412 stage2_warn_cflags
="$stage1_warn_cflags -pedantic -Wno-long-long"
1413 if test "x$GCC" = "xyes"; then
1414 if test $ac_cv_prog_cc_no_long_long = yes; then
1415 stage1_warn_cflags
="$stage1_warn_cflags -pedantic -Wno-long-long"
1418 stage1_warn_cflags
=""
1423 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1424 echo "configure:1425: checking whether ${MAKE-make} sets \${MAKE}" >&5
1425 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1426 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1427 echo $ac_n "(cached) $ac_c" 1>&6
1429 cat > conftestmake
<<\EOF
1431 @
echo 'ac_maketemp="${MAKE}"'
1433 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1434 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1435 if test -n "$ac_maketemp"; then
1436 eval ac_cv_prog_make_
${ac_make}_set
=yes
1438 eval ac_cv_prog_make_
${ac_make}_set
=no
1442 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1443 echo "$ac_t""yes" 1>&6
1446 echo "$ac_t""no" 1>&6
1447 SET_MAKE
="MAKE=${MAKE-make}"
1451 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1452 echo "configure:1453: checking whether a default assembler was specified" >&5
1453 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1454 if test x
"$gas_flag" = x
"no"; then
1455 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1457 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1460 echo "$ac_t""no" 1>&6
1463 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1464 echo "configure:1465: checking whether a default linker was specified" >&5
1465 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1466 if test x
"$gnu_ld_flag" = x
"no"; then
1467 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1469 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1472 echo "$ac_t""no" 1>&6
1475 echo $ac_n "checking for inline""... $ac_c" 1>&6
1476 echo "configure:1477: checking for inline" >&5
1477 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1478 echo $ac_n "(cached) $ac_c" 1>&6
1481 for ac_kw
in inline __inline__ __inline
; do
1482 cat > conftest.
$ac_ext <<EOF
1483 #line 1484 "configure"
1484 #include "confdefs.h"
1490 if { (eval echo configure
:1491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1492 ac_cv_c_inline
=$ac_kw; break
1494 echo "configure: failed program was:" >&5
1495 cat conftest.
$ac_ext >&5
1502 echo "$ac_t""$ac_cv_c_inline" 1>&6
1503 case "$ac_cv_c_inline" in
1505 no
) cat >> confdefs.h
<<\EOF
1509 *) cat >> confdefs.h
<<EOF
1510 #define inline $ac_cv_c_inline
1516 # Find some useful tools
1517 for ac_prog
in gawk mawk nawk
awk
1519 # Extract the first word of "$ac_prog", so it can be a program name with args.
1520 set dummy
$ac_prog; ac_word
=$2
1521 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1522 echo "configure:1523: checking for $ac_word" >&5
1523 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1524 echo $ac_n "(cached) $ac_c" 1>&6
1526 if test -n "$AWK"; then
1527 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1529 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1531 for ac_dir
in $ac_dummy; do
1532 test -z "$ac_dir" && ac_dir
=.
1533 if test -f $ac_dir/$ac_word; then
1534 ac_cv_prog_AWK
="$ac_prog"
1541 AWK
="$ac_cv_prog_AWK"
1542 if test -n "$AWK"; then
1543 echo "$ac_t""$AWK" 1>&6
1545 echo "$ac_t""no" 1>&6
1548 test -n "$AWK" && break
1551 # Extract the first word of "flex", so it can be a program name with args.
1552 set dummy flex
; ac_word
=$2
1553 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1554 echo "configure:1555: checking for $ac_word" >&5
1555 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1556 echo $ac_n "(cached) $ac_c" 1>&6
1558 if test -n "$LEX"; then
1559 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1561 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1563 for ac_dir
in $ac_dummy; do
1564 test -z "$ac_dir" && ac_dir
=.
1565 if test -f $ac_dir/$ac_word; then
1566 ac_cv_prog_LEX
="flex"
1571 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1574 LEX
="$ac_cv_prog_LEX"
1575 if test -n "$LEX"; then
1576 echo "$ac_t""$LEX" 1>&6
1578 echo "$ac_t""no" 1>&6
1581 if test -z "$LEXLIB"
1587 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1588 echo "configure:1589: checking for yywrap in -l$ac_lib" >&5
1589 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1590 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1591 echo $ac_n "(cached) $ac_c" 1>&6
1593 ac_save_LIBS
="$LIBS"
1594 LIBS
="-l$ac_lib $LIBS"
1595 cat > conftest.
$ac_ext <<EOF
1596 #line 1597 "configure"
1597 #include "confdefs.h"
1598 /* Override any gcc2 internal prototype to avoid an error. */
1599 /* We use char because int might match the return type of a gcc2
1600 builtin and then its argument prototype would still apply. */
1607 if { (eval echo configure
:1608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1609 eval "ac_cv_lib_$ac_lib_var=yes"
1611 echo "configure: failed program was:" >&5
1612 cat conftest.
$ac_ext >&5
1614 eval "ac_cv_lib_$ac_lib_var=no"
1617 LIBS
="$ac_save_LIBS"
1620 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1621 echo "$ac_t""yes" 1>&6
1624 echo "$ac_t""no" 1>&6
1629 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1630 echo "configure:1631: checking whether ln works" >&5
1631 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1632 echo $ac_n "(cached) $ac_c" 1>&6
1634 rm -f conftestdata_t
1635 echo >conftestdata_f
1636 if ln conftestdata_f conftestdata_t
2>/dev
/null
1640 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1642 gcc_cv_prog_LN
="ln -s"
1647 rm -f conftestdata_f conftestdata_t
1650 LN
="$gcc_cv_prog_LN"
1651 if test "$gcc_cv_prog_LN" = "ln"; then
1652 echo "$ac_t""yes" 1>&6
1654 if test "$gcc_cv_prog_LN" = "ln -s"; then
1655 echo "$ac_t""no, using ln -s" 1>&6
1657 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1661 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1662 echo "configure:1663: checking whether ln -s works" >&5
1663 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1664 echo $ac_n "(cached) $ac_c" 1>&6
1666 rm -f conftestdata_t
1667 echo >conftestdata_f
1668 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1670 gcc_cv_prog_LN_S
="ln -s"
1672 if ln conftestdata_f conftestdata_t
2>/dev
/null
1679 rm -f conftestdata_f conftestdata_t
1682 LN_S
="$gcc_cv_prog_LN_S"
1683 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1684 echo "$ac_t""yes" 1>&6
1686 if test "$gcc_cv_prog_LN_S" = "ln"; then
1687 echo "$ac_t""no, using ln" 1>&6
1689 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1693 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1694 echo "configure:1695: checking for volatile" >&5
1695 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1696 echo $ac_n "(cached) $ac_c" 1>&6
1698 cat > conftest.
$ac_ext <<EOF
1699 #line 1700 "configure"
1700 #include "confdefs.h"
1706 if { (eval echo configure
:1707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1708 gcc_cv_c_volatile
=yes
1710 echo "configure: failed program was:" >&5
1711 cat conftest.
$ac_ext >&5
1713 gcc_cv_c_volatile
=no
1718 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1719 if test $gcc_cv_c_volatile = yes ; then
1720 cat >> confdefs.h
<<\EOF
1721 #define HAVE_VOLATILE 1
1726 # Extract the first word of "ranlib", so it can be a program name with args.
1727 set dummy ranlib
; ac_word
=$2
1728 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1729 echo "configure:1730: checking for $ac_word" >&5
1730 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1731 echo $ac_n "(cached) $ac_c" 1>&6
1733 if test -n "$RANLIB"; then
1734 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1736 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1738 for ac_dir
in $ac_dummy; do
1739 test -z "$ac_dir" && ac_dir
=.
1740 if test -f $ac_dir/$ac_word; then
1741 ac_cv_prog_RANLIB
="ranlib"
1746 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1749 RANLIB
="$ac_cv_prog_RANLIB"
1750 if test -n "$RANLIB"; then
1751 echo "$ac_t""$RANLIB" 1>&6
1753 echo "$ac_t""no" 1>&6
1756 for ac_prog
in 'bison -y' byacc
1758 # Extract the first word of "$ac_prog", so it can be a program name with args.
1759 set dummy
$ac_prog; ac_word
=$2
1760 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1761 echo "configure:1762: checking for $ac_word" >&5
1762 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1763 echo $ac_n "(cached) $ac_c" 1>&6
1765 if test -n "$YACC"; then
1766 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1768 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1770 for ac_dir
in $ac_dummy; do
1771 test -z "$ac_dir" && ac_dir
=.
1772 if test -f $ac_dir/$ac_word; then
1773 ac_cv_prog_YACC
="$ac_prog"
1780 YACC
="$ac_cv_prog_YACC"
1781 if test -n "$YACC"; then
1782 echo "$ac_t""$YACC" 1>&6
1784 echo "$ac_t""no" 1>&6
1787 test -n "$YACC" && break
1789 test -n "$YACC" || YACC
="yacc"
1791 # Find a good install program. We prefer a C program (faster),
1792 # so one script is as good as another. But avoid the broken or
1793 # incompatible versions:
1794 # SysV /etc/install, /usr/sbin/install
1795 # SunOS /usr/etc/install
1796 # IRIX /sbin/install
1798 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1799 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1800 # ./install, which can be erroneously created by make from ./install.sh.
1801 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1802 echo "configure:1803: checking for a BSD compatible install" >&5
1803 if test -z "$INSTALL"; then
1804 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1805 echo $ac_n "(cached) $ac_c" 1>&6
1807 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1808 for ac_dir
in $PATH; do
1809 # Account for people who put trailing slashes in PATH elements.
1811 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1813 # OSF1 and SCO ODT 3.0 have their own names for install.
1814 for ac_prog
in ginstall scoinst
install; do
1815 if test -f $ac_dir/$ac_prog; then
1816 if test $ac_prog = install &&
1817 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1818 # AIX install. It has an incompatible calling convention.
1819 # OSF/1 installbsd also uses dspmsg, but is usable.
1822 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1833 if test "${ac_cv_path_install+set}" = set; then
1834 INSTALL
="$ac_cv_path_install"
1836 # As a last resort, use the slow shell script. We don't cache a
1837 # path for INSTALL within a source directory, because that will
1838 # break other packages using the cache if that directory is
1839 # removed, or if the path is relative.
1840 INSTALL
="$ac_install_sh"
1843 echo "$ac_t""$INSTALL" 1>&6
1845 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1846 # It thinks the first close brace ends the variable substitution.
1847 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1849 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1852 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1853 echo "configure:1854: checking how to run the C preprocessor" >&5
1854 # On Suns, sometimes $CPP names a directory.
1855 if test -n "$CPP" && test -d "$CPP"; then
1858 if test -z "$CPP"; then
1859 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1860 echo $ac_n "(cached) $ac_c" 1>&6
1862 # This must be in double quotes, not single quotes, because CPP may get
1863 # substituted into the Makefile and "${CC-cc}" will confuse make.
1865 # On the NeXT, cc -E runs the code through the compiler's parser,
1866 # not just through cpp.
1867 cat > conftest.
$ac_ext <<EOF
1868 #line 1869 "configure"
1869 #include "confdefs.h"
1873 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1874 { (eval echo configure
:1875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1875 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1876 if test -z "$ac_err"; then
1880 echo "configure: failed program was:" >&5
1881 cat conftest.
$ac_ext >&5
1883 CPP
="${CC-cc} -E -traditional-cpp"
1884 cat > conftest.
$ac_ext <<EOF
1885 #line 1886 "configure"
1886 #include "confdefs.h"
1890 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1891 { (eval echo configure
:1892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1892 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1893 if test -z "$ac_err"; then
1897 echo "configure: failed program was:" >&5
1898 cat conftest.
$ac_ext >&5
1900 CPP
="${CC-cc} -nologo -E"
1901 cat > conftest.
$ac_ext <<EOF
1902 #line 1903 "configure"
1903 #include "confdefs.h"
1907 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1908 { (eval echo configure
:1909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1909 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1910 if test -z "$ac_err"; then
1914 echo "configure: failed program was:" >&5
1915 cat conftest.
$ac_ext >&5
1924 ac_cv_prog_CPP
="$CPP"
1926 CPP
="$ac_cv_prog_CPP"
1928 ac_cv_prog_CPP
="$CPP"
1930 echo "$ac_t""$CPP" 1>&6
1932 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1933 echo "configure:1934: checking for ANSI C header files" >&5
1934 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1935 echo $ac_n "(cached) $ac_c" 1>&6
1937 cat > conftest.
$ac_ext <<EOF
1938 #line 1939 "configure"
1939 #include "confdefs.h"
1945 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1946 { (eval echo configure
:1947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1947 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1948 if test -z "$ac_err"; then
1950 ac_cv_header_stdc
=yes
1953 echo "configure: failed program was:" >&5
1954 cat conftest.
$ac_ext >&5
1956 ac_cv_header_stdc
=no
1960 if test $ac_cv_header_stdc = yes; then
1961 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1962 cat > conftest.
$ac_ext <<EOF
1963 #line 1964 "configure"
1964 #include "confdefs.h"
1967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1968 egrep "memchr" >/dev
/null
2>&1; then
1972 ac_cv_header_stdc
=no
1978 if test $ac_cv_header_stdc = yes; then
1979 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1980 cat > conftest.
$ac_ext <<EOF
1981 #line 1982 "configure"
1982 #include "confdefs.h"
1985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1986 egrep "free" >/dev
/null
2>&1; then
1990 ac_cv_header_stdc
=no
1996 if test $ac_cv_header_stdc = yes; then
1997 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1998 if test "$cross_compiling" = yes; then
2001 cat > conftest.
$ac_ext <<EOF
2002 #line 2003 "configure"
2003 #include "confdefs.h"
2005 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2006 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2007 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2008 int main () { int i; for (i = 0; i < 256; i++)
2009 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2013 if { (eval echo configure
:2014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2017 echo "configure: failed program was:" >&5
2018 cat conftest.
$ac_ext >&5
2020 ac_cv_header_stdc
=no
2028 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2029 if test $ac_cv_header_stdc = yes; then
2030 cat >> confdefs.h
<<\EOF
2031 #define STDC_HEADERS 1
2036 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2037 echo "configure:2038: checking whether time.h and sys/time.h may both be included" >&5
2038 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2039 echo $ac_n "(cached) $ac_c" 1>&6
2041 cat > conftest.
$ac_ext <<EOF
2042 #line 2043 "configure"
2043 #include "confdefs.h"
2044 #include <sys/types.h>
2045 #include <sys/time.h>
2051 if { (eval echo configure
:2052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2053 ac_cv_header_time
=yes
2055 echo "configure: failed program was:" >&5
2056 cat conftest.
$ac_ext >&5
2058 ac_cv_header_time
=no
2063 echo "$ac_t""$ac_cv_header_time" 1>&6
2064 if test $ac_cv_header_time = yes; then
2065 cat >> confdefs.h
<<\EOF
2066 #define TIME_WITH_SYS_TIME 1
2071 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
2072 echo "configure:2073: checking whether string.h and strings.h may both be included" >&5
2073 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
2074 echo $ac_n "(cached) $ac_c" 1>&6
2076 cat > conftest.
$ac_ext <<EOF
2077 #line 2078 "configure"
2078 #include "confdefs.h"
2080 #include <strings.h>
2085 if { (eval echo configure
:2086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2087 gcc_cv_header_string
=yes
2089 echo "configure: failed program was:" >&5
2090 cat conftest.
$ac_ext >&5
2092 gcc_cv_header_string
=no
2097 echo "$ac_t""$gcc_cv_header_string" 1>&6
2098 if test $gcc_cv_header_string = yes; then
2099 cat >> confdefs.h
<<\EOF
2100 #define STRING_WITH_STRINGS 1
2105 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2106 echo "configure:2107: checking for sys/wait.h that is POSIX.1 compatible" >&5
2107 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2108 echo $ac_n "(cached) $ac_c" 1>&6
2110 cat > conftest.
$ac_ext <<EOF
2111 #line 2112 "configure"
2112 #include "confdefs.h"
2113 #include <sys/types.h>
2114 #include <sys/wait.h>
2116 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2119 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2124 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2127 if { (eval echo configure
:2128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2129 ac_cv_header_sys_wait_h
=yes
2131 echo "configure: failed program was:" >&5
2132 cat conftest.
$ac_ext >&5
2134 ac_cv_header_sys_wait_h
=no
2139 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2140 if test $ac_cv_header_sys_wait_h = yes; then
2141 cat >> confdefs.h
<<\EOF
2142 #define HAVE_SYS_WAIT_H 1
2147 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
2148 fcntl.h unistd.h stab.h sys
/file.h sys
/time.h \
2149 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
2150 direct.h malloc.h sched.h
2152 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2153 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2154 echo "configure:2155: checking for $ac_hdr" >&5
2155 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2156 echo $ac_n "(cached) $ac_c" 1>&6
2158 cat > conftest.
$ac_ext <<EOF
2159 #line 2160 "configure"
2160 #include "confdefs.h"
2163 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2164 { (eval echo configure
:2165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2165 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2166 if test -z "$ac_err"; then
2168 eval "ac_cv_header_$ac_safe=yes"
2171 echo "configure: failed program was:" >&5
2172 cat conftest.
$ac_ext >&5
2174 eval "ac_cv_header_$ac_safe=no"
2178 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2179 echo "$ac_t""yes" 1>&6
2180 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2181 cat >> confdefs.h
<<EOF
2182 #define $ac_tr_hdr 1
2186 echo "$ac_t""no" 1>&6
2191 # Check for thread headers.
2192 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
2193 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2194 echo "configure:2195: checking for thread.h" >&5
2195 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2196 echo $ac_n "(cached) $ac_c" 1>&6
2198 cat > conftest.
$ac_ext <<EOF
2199 #line 2200 "configure"
2200 #include "confdefs.h"
2203 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2204 { (eval echo configure
:2205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2205 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2206 if test -z "$ac_err"; then
2208 eval "ac_cv_header_$ac_safe=yes"
2211 echo "configure: failed program was:" >&5
2212 cat conftest.
$ac_ext >&5
2214 eval "ac_cv_header_$ac_safe=no"
2218 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2219 echo "$ac_t""yes" 1>&6
2222 echo "$ac_t""no" 1>&6
2226 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2227 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2228 echo "configure:2229: checking for pthread.h" >&5
2229 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2230 echo $ac_n "(cached) $ac_c" 1>&6
2232 cat > conftest.
$ac_ext <<EOF
2233 #line 2234 "configure"
2234 #include "confdefs.h"
2235 #include <pthread.h>
2237 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2238 { (eval echo configure
:2239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2239 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2240 if test -z "$ac_err"; then
2242 eval "ac_cv_header_$ac_safe=yes"
2245 echo "configure: failed program was:" >&5
2246 cat conftest.
$ac_ext >&5
2248 eval "ac_cv_header_$ac_safe=no"
2252 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2253 echo "$ac_t""yes" 1>&6
2256 echo "$ac_t""no" 1>&6
2261 # See if GNAT has been installed
2262 # Extract the first word of "gnatbind", so it can be a program name with args.
2263 set dummy gnatbind
; 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_gnat'+set}'`\" = set"; then
2267 echo $ac_n "(cached) $ac_c" 1>&6
2269 if test -n "$gnat"; then
2270 ac_cv_prog_gnat
="$gnat" # 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_gnat
="yes"
2282 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat
="no"
2285 gnat
="$ac_cv_prog_gnat"
2286 if test -n "$gnat"; then
2287 echo "$ac_t""$gnat" 1>&6
2289 echo "$ac_t""no" 1>&6
2293 # Do we have a single-tree copy of texinfo?
2294 if test -f $srcdir/..
/texinfo
/Makefile.
in; then
2295 MAKEINFO
='$(objdir)/../texinfo/makeinfo/makeinfo'
2296 gcc_cv_prog_makeinfo_modern
=yes
2297 echo "$ac_t""Using makeinfo from the unified source tree." 1>&6
2299 # See if makeinfo has been installed and is modern enough
2300 # that we can use it.
2301 # Extract the first word of "makeinfo", so it can be a program name with args.
2302 set dummy makeinfo
; ac_word
=$2
2303 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2304 echo "configure:2305: checking for $ac_word" >&5
2305 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2306 echo $ac_n "(cached) $ac_c" 1>&6
2308 if test -n "$MAKEINFO"; then
2309 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
2311 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2313 for ac_dir
in $ac_dummy; do
2314 test -z "$ac_dir" && ac_dir
=.
2315 if test -f $ac_dir/$ac_word; then
2316 ac_cv_prog_MAKEINFO
="makeinfo"
2323 MAKEINFO
="$ac_cv_prog_MAKEINFO"
2324 if test -n "$MAKEINFO"; then
2325 echo "$ac_t""$MAKEINFO" 1>&6
2327 echo "$ac_t""no" 1>&6
2330 if test -n "$MAKEINFO"; then
2331 # Found it, now check the version.
2332 echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6
2333 echo "configure:2334: checking for modern makeinfo" >&5
2334 if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then
2335 echo $ac_n "(cached) $ac_c" 1>&6
2337 ac_prog_version
=`$MAKEINFO --version 2>&1 |
2338 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
2339 echo "configure:2340: version of makeinfo is $ac_prog_version" >&5
2340 case $ac_prog_version in
2341 '') gcc_cv_prog_makeinfo_modern
=no
;;
2342 3.1[2-9] |
3.
[2-9][0-9] |
4.
* |
1.6[89] |
1.7[0-9])
2343 gcc_cv_prog_makeinfo_modern
=yes;;
2344 *) gcc_cv_prog_makeinfo_modern
=no
;;
2349 echo "$ac_t""$gcc_cv_prog_makeinfo_modern" 1>&6
2351 gcc_cv_prog_makeinfo_modern
=no
2356 if test $gcc_cv_prog_makeinfo_modern = no
; then
2357 echo "configure: warning:
2358 *** Makeinfo is missing or too old.
2359 *** Info documentation will not be built or installed." 1>&2
2364 INSTALL_INFO
=install-info
2367 # See if the stage1 system preprocessor understands the ANSI C
2368 # preprocessor stringification operator.
2371 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
2372 echo "configure:2373: checking for preprocessor stringizing operator" >&5
2373 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
2374 echo $ac_n "(cached) $ac_c" 1>&6
2376 cat > conftest.
$ac_ext <<EOF
2377 #line 2378 "configure"
2378 #include "confdefs.h"
2382 char *s = x(teststring);
2385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2386 egrep "#teststring" >/dev
/null
2>&1; then
2388 ac_cv_c_stringize
=no
2391 ac_cv_c_stringize
=yes
2397 if test "${ac_cv_c_stringize}" = yes
2399 cat >> confdefs.h
<<\EOF
2400 #define HAVE_STRINGIZE 1
2404 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
2407 # Use <inttypes.h> only if it exists,
2408 # doesn't clash with <sys/types.h>, and declares intmax_t.
2409 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2410 echo "configure:2411: checking for inttypes.h" >&5
2411 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2412 echo $ac_n "(cached) $ac_c" 1>&6
2414 cat > conftest.
$ac_ext <<EOF
2415 #line 2416 "configure"
2416 #include "confdefs.h"
2417 #include <sys/types.h>
2418 #include <inttypes.h>
2423 if { (eval echo configure
:2424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2425 gcc_cv_header_inttypes_h
=yes
2427 echo "configure: failed program was:" >&5
2428 cat conftest.
$ac_ext >&5
2430 gcc_cv_header_inttypes_h
=no
2435 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2436 if test $gcc_cv_header_inttypes_h = yes; then
2437 cat >> confdefs.h
<<\EOF
2438 #define HAVE_INTTYPES_H 1
2444 # Determine if enumerated bitfields are unsigned. ISO C says they can
2445 # be either signed or unsigned.
2447 echo $ac_n "checking for unsigned enumerated bitfields""... $ac_c" 1>&6
2448 echo "configure:2449: checking for unsigned enumerated bitfields" >&5
2449 if eval "test \"`echo '$''{'gcc_cv_enum_bf_unsigned'+set}'`\" = set"; then
2450 echo $ac_n "(cached) $ac_c" 1>&6
2452 if test "$cross_compiling" = yes; then
2453 gcc_cv_enum_bf_unsigned
=yes
2455 cat > conftest.
$ac_ext <<EOF
2456 #line 2457 "configure"
2457 #include "confdefs.h"
2459 enum t { BLAH = 128 } ;
2460 struct s_t { enum t member : 8; } s ;
2464 if (s.member < 0) exit(1);
2469 if { (eval echo configure
:2470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2471 gcc_cv_enum_bf_unsigned
=yes
2473 echo "configure: failed program was:" >&5
2474 cat conftest.
$ac_ext >&5
2476 gcc_cv_enum_bf_unsigned
=no
2483 echo "$ac_t""$gcc_cv_enum_bf_unsigned" 1>&6
2484 if test $gcc_cv_enum_bf_unsigned = yes; then
2485 cat >> confdefs.h
<<\EOF
2486 #define ENUM_BITFIELDS_ARE_UNSIGNED 1
2491 for ac_func
in strtoul bsearch putenv popen bcopy bzero bcmp \
2492 index rindex strchr strrchr
kill getrlimit setrlimit atoll atoq \
2493 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2494 fputs_unlocked getrusage valloc
2496 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2497 echo "configure:2498: checking for $ac_func" >&5
2498 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2499 echo $ac_n "(cached) $ac_c" 1>&6
2501 cat > conftest.
$ac_ext <<EOF
2502 #line 2503 "configure"
2503 #include "confdefs.h"
2504 /* System header to define __stub macros and hopefully few prototypes,
2505 which can conflict with char $ac_func(); below. */
2507 /* Override any gcc2 internal prototype to avoid an error. */
2508 /* We use char because int might match the return type of a gcc2
2509 builtin and then its argument prototype would still apply. */
2514 /* The GNU C library defines this for functions which it implements
2515 to always fail with ENOSYS. Some functions are actually named
2516 something starting with __ and the normal name is an alias. */
2517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2525 if { (eval echo configure
:2526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2527 eval "ac_cv_func_$ac_func=yes"
2529 echo "configure: failed program was:" >&5
2530 cat conftest.
$ac_ext >&5
2532 eval "ac_cv_func_$ac_func=no"
2537 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2538 echo "$ac_t""yes" 1>&6
2539 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2540 cat >> confdefs.h
<<EOF
2541 #define $ac_tr_func 1
2545 echo "$ac_t""no" 1>&6
2550 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
2551 echo "configure:2552: checking for ssize_t" >&5
2552 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
2553 echo $ac_n "(cached) $ac_c" 1>&6
2555 cat > conftest.
$ac_ext <<EOF
2556 #line 2557 "configure"
2557 #include "confdefs.h"
2558 #include <sys/types.h>
2564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2565 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2567 ac_cv_type_ssize_t
=yes
2570 ac_cv_type_ssize_t
=no
2575 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2576 if test $ac_cv_type_ssize_t = no
; then
2577 cat >> confdefs.h
<<\EOF
2584 # Try to determine the array type of the second argument of getgroups
2585 # for the target system (int or gid_t).
2586 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2587 echo "configure:2588: checking for uid_t in sys/types.h" >&5
2588 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2589 echo $ac_n "(cached) $ac_c" 1>&6
2591 cat > conftest.
$ac_ext <<EOF
2592 #line 2593 "configure"
2593 #include "confdefs.h"
2594 #include <sys/types.h>
2596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2597 egrep "uid_t" >/dev
/null
2>&1; then
2599 ac_cv_type_uid_t
=yes
2608 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2609 if test $ac_cv_type_uid_t = no
; then
2610 cat >> confdefs.h
<<\EOF
2614 cat >> confdefs.h
<<\EOF
2620 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
2621 echo "configure:2622: checking type of array argument to getgroups" >&5
2622 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
2623 echo $ac_n "(cached) $ac_c" 1>&6
2625 if test "$cross_compiling" = yes; then
2626 ac_cv_type_getgroups
=cross
2628 cat > conftest.
$ac_ext <<EOF
2629 #line 2630 "configure"
2630 #include "confdefs.h"
2632 /* Thanks to Mike Rendell for this test. */
2633 #include <sys/types.h>
2636 #define MAX(x, y) ((x) > (y) ? (x) : (y))
2641 union { gid_t gval; long lval; } val;
2644 for (i = 0; i < NGID; i++)
2645 gidset[i] = val.gval;
2646 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
2648 /* Exit non-zero if getgroups seems to require an array of ints. This
2649 happens when gid_t is short but getgroups modifies an array of ints. */
2650 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
2654 if { (eval echo configure
:2655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2656 ac_cv_type_getgroups
=gid_t
2658 echo "configure: failed program was:" >&5
2659 cat conftest.
$ac_ext >&5
2661 ac_cv_type_getgroups
=int
2666 if test $ac_cv_type_getgroups = cross
; then
2667 cat > conftest.
$ac_ext <<EOF
2668 #line 2669 "configure"
2669 #include "confdefs.h"
2672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2673 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
2675 ac_cv_type_getgroups
=gid_t
2678 ac_cv_type_getgroups
=int
2685 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
2686 cat >> confdefs.h
<<EOF
2687 #define GETGROUPS_T $ac_cv_type_getgroups
2691 if test "${target}" = "${build}"; then
2692 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
2695 # This condition may need some tweaking. It should include all
2696 # targets where the array type of the second argument of getgroups
2697 # is int and the type of gid_t is not equivalent to int.
2698 *-*-sunos* |
*-*-ultrix*)
2699 TARGET_GETGROUPS_T
=int
2702 TARGET_GETGROUPS_T
=gid_t
2708 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2709 echo "configure:2710: checking for vprintf" >&5
2710 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2711 echo $ac_n "(cached) $ac_c" 1>&6
2713 cat > conftest.
$ac_ext <<EOF
2714 #line 2715 "configure"
2715 #include "confdefs.h"
2716 /* System header to define __stub macros and hopefully few prototypes,
2717 which can conflict with char vprintf(); below. */
2719 /* Override any gcc2 internal prototype to avoid an error. */
2720 /* We use char because int might match the return type of a gcc2
2721 builtin and then its argument prototype would still apply. */
2726 /* The GNU C library defines this for functions which it implements
2727 to always fail with ENOSYS. Some functions are actually named
2728 something starting with __ and the normal name is an alias. */
2729 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2737 if { (eval echo configure
:2738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2739 eval "ac_cv_func_vprintf=yes"
2741 echo "configure: failed program was:" >&5
2742 cat conftest.
$ac_ext >&5
2744 eval "ac_cv_func_vprintf=no"
2749 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2750 echo "$ac_t""yes" 1>&6
2751 cat >> confdefs.h
<<\EOF
2752 #define HAVE_VPRINTF 1
2756 echo "$ac_t""no" 1>&6
2759 if test "$ac_cv_func_vprintf" != yes; then
2760 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2761 echo "configure:2762: checking for _doprnt" >&5
2762 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2763 echo $ac_n "(cached) $ac_c" 1>&6
2765 cat > conftest.
$ac_ext <<EOF
2766 #line 2767 "configure"
2767 #include "confdefs.h"
2768 /* System header to define __stub macros and hopefully few prototypes,
2769 which can conflict with char _doprnt(); below. */
2771 /* Override any gcc2 internal prototype to avoid an error. */
2772 /* We use char because int might match the return type of a gcc2
2773 builtin and then its argument prototype would still apply. */
2778 /* The GNU C library defines this for functions which it implements
2779 to always fail with ENOSYS. Some functions are actually named
2780 something starting with __ and the normal name is an alias. */
2781 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2789 if { (eval echo configure
:2790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2791 eval "ac_cv_func__doprnt=yes"
2793 echo "configure: failed program was:" >&5
2794 cat conftest.
$ac_ext >&5
2796 eval "ac_cv_func__doprnt=no"
2801 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2802 echo "$ac_t""yes" 1>&6
2803 cat >> confdefs.h
<<\EOF
2804 #define HAVE_DOPRNT 1
2808 echo "$ac_t""no" 1>&6
2815 if test $ac_cv_func_vprintf != yes ; then
2817 if test $ac_cv_func__doprnt != yes ; then
2824 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2825 echo "configure:2826: checking whether the printf functions support %p" >&5
2826 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2827 echo $ac_n "(cached) $ac_c" 1>&6
2829 if test "$cross_compiling" = yes; then
2830 gcc_cv_func_printf_ptr
=no
2832 cat > conftest.
$ac_ext <<EOF
2833 #line 2834 "configure"
2834 #include "confdefs.h"
2840 char *p = buf, *q = NULL;
2841 sprintf(buf, "%p", p);
2842 sscanf(buf, "%p", &q);
2846 if { (eval echo configure
:2847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2848 gcc_cv_func_printf_ptr
=yes
2850 echo "configure: failed program was:" >&5
2851 cat conftest.
$ac_ext >&5
2853 gcc_cv_func_printf_ptr
=no
2858 rm -f core core.
* *.core
2861 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2862 if test $gcc_cv_func_printf_ptr = yes ; then
2863 cat >> confdefs.h
<<\EOF
2864 #define HAVE_PRINTF_PTR 1
2872 # Under some versions of uwin, vfork is notoriously buggy and the test
2873 # can hang configure; on other versions, vfork exists just as a stub.
2874 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2875 ac_cv_func_vfork_works
=no
2878 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2879 echo "configure:2880: checking for pid_t" >&5
2880 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2881 echo $ac_n "(cached) $ac_c" 1>&6
2883 cat > conftest.
$ac_ext <<EOF
2884 #line 2885 "configure"
2885 #include "confdefs.h"
2886 #include <sys/types.h>
2892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2893 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2895 ac_cv_type_pid_t
=yes
2903 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2904 if test $ac_cv_type_pid_t = no
; then
2905 cat >> confdefs.h
<<\EOF
2911 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2912 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2913 echo "configure:2914: checking for vfork.h" >&5
2914 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2915 echo $ac_n "(cached) $ac_c" 1>&6
2917 cat > conftest.
$ac_ext <<EOF
2918 #line 2919 "configure"
2919 #include "confdefs.h"
2922 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2923 { (eval echo configure
:2924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2924 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2925 if test -z "$ac_err"; then
2927 eval "ac_cv_header_$ac_safe=yes"
2930 echo "configure: failed program was:" >&5
2931 cat conftest.
$ac_ext >&5
2933 eval "ac_cv_header_$ac_safe=no"
2937 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2938 echo "$ac_t""yes" 1>&6
2939 cat >> confdefs.h
<<\EOF
2940 #define HAVE_VFORK_H 1
2944 echo "$ac_t""no" 1>&6
2947 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2948 echo "configure:2949: checking for working vfork" >&5
2949 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2950 echo $ac_n "(cached) $ac_c" 1>&6
2952 if test "$cross_compiling" = yes; then
2953 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2954 echo "configure:2955: checking for vfork" >&5
2955 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2956 echo $ac_n "(cached) $ac_c" 1>&6
2958 cat > conftest.
$ac_ext <<EOF
2959 #line 2960 "configure"
2960 #include "confdefs.h"
2961 /* System header to define __stub macros and hopefully few prototypes,
2962 which can conflict with char vfork(); below. */
2964 /* Override any gcc2 internal prototype to avoid an error. */
2965 /* We use char because int might match the return type of a gcc2
2966 builtin and then its argument prototype would still apply. */
2971 /* The GNU C library defines this for functions which it implements
2972 to always fail with ENOSYS. Some functions are actually named
2973 something starting with __ and the normal name is an alias. */
2974 #if defined (__stub_vfork) || defined (__stub___vfork)
2982 if { (eval echo configure
:2983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2984 eval "ac_cv_func_vfork=yes"
2986 echo "configure: failed program was:" >&5
2987 cat conftest.
$ac_ext >&5
2989 eval "ac_cv_func_vfork=no"
2994 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2995 echo "$ac_t""yes" 1>&6
2998 echo "$ac_t""no" 1>&6
3001 ac_cv_func_vfork_works
=$ac_cv_func_vfork
3003 cat > conftest.
$ac_ext <<EOF
3004 #line 3005 "configure"
3005 #include "confdefs.h"
3006 /* Thanks to Paul Eggert for this test. */
3008 #include <sys/types.h>
3009 #include <sys/stat.h>
3010 #ifdef HAVE_UNISTD_H
3016 /* On some sparc systems, changes by the child to local and incoming
3017 argument registers are propagated back to the parent.
3018 The compiler is told about this with #include <vfork.h>,
3019 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
3020 Test for this by using a static variable whose address
3021 is put into a register that is clobbered by the vfork. */
3024 sparc_address_test (int arg)
3026 sparc_address_test (arg) int arg;
3044 pid_t parent = getpid ();
3047 sparc_address_test ();
3052 /* Here is another test for sparc vfork register problems.
3053 This test uses lots of local variables, at least
3054 as many local variables as main has allocated so far
3055 including compiler temporaries. 4 locals are enough for
3056 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
3057 A buggy compiler should reuse the register of parent
3058 for one of the local variables, since it will think that
3059 parent can't possibly be used any more in this routine.
3060 Assigning to the local variable will thus munge parent
3061 in the parent process. */
3063 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
3064 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
3065 /* Convince the compiler that p..p7 are live; otherwise, it might
3066 use the same hardware register for all 8 local variables. */
3067 if (p != p1 || p != p2 || p != p3 || p != p4
3068 || p != p5 || p != p6 || p != p7)
3071 /* On some systems (e.g. IRIX 3.3),
3072 vfork doesn't separate parent from child file descriptors.
3073 If the child closes a descriptor before it execs or exits,
3074 this munges the parent's descriptor as well.
3075 Test for this by closing stdout in the child. */
3076 _exit(close(fileno(stdout)) != 0);
3081 while (wait(&status) != child)
3084 /* Was there some problem with vforking? */
3087 /* Did the child fail? (This shouldn't happen.) */
3090 /* Did the vfork/compiler bug occur? */
3091 || parent != getpid()
3093 /* Did the file descriptor bug occur? */
3094 || fstat(fileno(stdout), &st) != 0
3099 if { (eval echo configure
:3100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3101 ac_cv_func_vfork_works
=yes
3103 echo "configure: failed program was:" >&5
3104 cat conftest.
$ac_ext >&5
3106 ac_cv_func_vfork_works
=no
3113 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
3114 if test $ac_cv_func_vfork_works = no
; then
3115 cat >> confdefs.h
<<\EOF
3121 for ac_hdr
in unistd.h
3123 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3124 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3125 echo "configure:3126: checking for $ac_hdr" >&5
3126 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3127 echo $ac_n "(cached) $ac_c" 1>&6
3129 cat > conftest.
$ac_ext <<EOF
3130 #line 3131 "configure"
3131 #include "confdefs.h"
3134 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3135 { (eval echo configure
:3136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3136 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3137 if test -z "$ac_err"; then
3139 eval "ac_cv_header_$ac_safe=yes"
3142 echo "configure: failed program was:" >&5
3143 cat conftest.
$ac_ext >&5
3145 eval "ac_cv_header_$ac_safe=no"
3149 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3150 echo "$ac_t""yes" 1>&6
3151 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3152 cat >> confdefs.h
<<EOF
3153 #define $ac_tr_hdr 1
3157 echo "$ac_t""no" 1>&6
3161 for ac_func
in getpagesize
3163 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3164 echo "configure:3165: checking for $ac_func" >&5
3165 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3166 echo $ac_n "(cached) $ac_c" 1>&6
3168 cat > conftest.
$ac_ext <<EOF
3169 #line 3170 "configure"
3170 #include "confdefs.h"
3171 /* System header to define __stub macros and hopefully few prototypes,
3172 which can conflict with char $ac_func(); below. */
3174 /* Override any gcc2 internal prototype to avoid an error. */
3175 /* We use char because int might match the return type of a gcc2
3176 builtin and then its argument prototype would still apply. */
3181 /* The GNU C library defines this for functions which it implements
3182 to always fail with ENOSYS. Some functions are actually named
3183 something starting with __ and the normal name is an alias. */
3184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3192 if { (eval echo configure
:3193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3194 eval "ac_cv_func_$ac_func=yes"
3196 echo "configure: failed program was:" >&5
3197 cat conftest.
$ac_ext >&5
3199 eval "ac_cv_func_$ac_func=no"
3204 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3205 echo "$ac_t""yes" 1>&6
3206 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3207 cat >> confdefs.h
<<EOF
3208 #define $ac_tr_func 1
3212 echo "$ac_t""no" 1>&6
3216 echo $ac_n "checking for working mmap which provides zeroed pages anywhere""... $ac_c" 1>&6
3217 echo "configure:3218: checking for working mmap which provides zeroed pages anywhere" >&5
3218 if eval "test \"`echo '$''{'ac_cv_func_mmap_anywhere'+set}'`\" = set"; then
3219 echo $ac_n "(cached) $ac_c" 1>&6
3221 if test "$cross_compiling" = yes; then
3222 ac_cv_func_mmap_anywhere
=no
3224 cat > conftest.
$ac_ext <<EOF
3225 #line 3226 "configure"
3226 #include "confdefs.h"
3228 /* Test by Richard Henderson and Alexandre Oliva.
3229 Check whether mmap MAP_ANONYMOUS or mmap from /dev/zero works. */
3230 #include <sys/types.h>
3232 #include <sys/mman.h>
3234 #if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
3235 # define MAP_ANONYMOUS MAP_ANON
3238 /* This mess was copied from the GNU getpagesize.h. */
3239 #ifndef HAVE_GETPAGESIZE
3240 # ifdef HAVE_UNISTD_H
3241 # include <unistd.h>
3244 /* Assume that all systems that can run configure have sys/param.h. */
3245 # ifndef HAVE_SYS_PARAM_H
3246 # define HAVE_SYS_PARAM_H 1
3249 # ifdef _SC_PAGESIZE
3250 # define getpagesize() sysconf(_SC_PAGESIZE)
3251 # else /* no _SC_PAGESIZE */
3252 # ifdef HAVE_SYS_PARAM_H
3253 # include <sys/param.h>
3254 # ifdef EXEC_PAGESIZE
3255 # define getpagesize() EXEC_PAGESIZE
3256 # else /* no EXEC_PAGESIZE */
3258 # define getpagesize() NBPG * CLSIZE
3261 # endif /* no CLSIZE */
3262 # else /* no NBPG */
3264 # define getpagesize() NBPC
3265 # else /* no NBPC */
3267 # define getpagesize() PAGESIZE
3268 # endif /* PAGESIZE */
3269 # endif /* no NBPC */
3270 # endif /* no NBPG */
3271 # endif /* no EXEC_PAGESIZE */
3272 # else /* no HAVE_SYS_PARAM_H */
3273 # define getpagesize() 8192 /* punt totally */
3274 # endif /* no HAVE_SYS_PARAM_H */
3275 # endif /* no _SC_PAGESIZE */
3277 #endif /* no HAVE_GETPAGESIZE */
3284 #ifndef MAP_ANONYMOUS
3285 fd = open("/dev/zero", O_RDWR);
3291 #ifdef MAP_ANONYMOUS
3292 x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE,
3293 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
3295 x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
3297 if (x == (char *) -1)
3302 if (munmap(x, pg) < 0)
3308 if { (eval echo configure
:3309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3310 ac_cv_func_mmap_anywhere
=yes
3312 echo "configure: failed program was:" >&5
3313 cat conftest.
$ac_ext >&5
3315 ac_cv_func_mmap_anywhere
=no
3322 echo "$ac_t""$ac_cv_func_mmap_anywhere" 1>&6
3323 if test $ac_cv_func_mmap_anywhere = yes; then
3324 cat >> confdefs.h
<<\EOF
3325 #define HAVE_MMAP_ANYWHERE 1
3330 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
3331 echo "configure:3332: checking for working mmap of a file" >&5
3332 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
3333 echo $ac_n "(cached) $ac_c" 1>&6
3335 # Create a file one thousand bytes long.
3336 for i
in 1 2 3 4 5 6 7 8 9 0
3337 do for j
in 1 2 3 4 5 6 7 8 9 0
3340 done > conftestdata$$
3342 if test "$cross_compiling" = yes; then
3343 ac_cv_func_mmap_file
=no
3345 cat > conftest.
$ac_ext <<EOF
3346 #line 3347 "configure"
3347 #include "confdefs.h"
3349 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
3350 Richard Henderson and Alexandre Oliva.
3351 Check whether read-only mmap of a plain file works. */
3352 #include <sys/types.h>
3353 #include <sys/stat.h>
3355 #include <sys/mman.h>
3363 fd = open("conftestdata$$", O_RDONLY);
3367 if (fstat (fd, &st))
3370 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
3371 if (x == (char *) -1)
3374 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
3377 if (munmap(x, st.st_size) < 0)
3383 if { (eval echo configure
:3384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3385 ac_cv_func_mmap_file
=yes
3387 echo "configure: failed program was:" >&5
3388 cat conftest.
$ac_ext >&5
3390 ac_cv_func_mmap_file
=no
3397 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
3398 if test $ac_cv_func_mmap_file = yes; then
3399 cat >> confdefs.h
<<\EOF
3400 #define HAVE_MMAP_FILE 1
3406 # We will need to find libiberty.h and ansidecl.h
3407 saved_CFLAGS
="$CFLAGS"
3408 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
3409 for ac_func
in bcopy bzero bcmp \
3410 index rindex getenv atol sbrk abort atof getcwd getwd \
3411 strsignal putc_unlocked fputs_unlocked strstr environ \
3412 malloc realloc calloc free
basename getopt
3414 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3415 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3416 echo "configure:3417: checking whether $ac_func is declared" >&5
3417 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3418 echo $ac_n "(cached) $ac_c" 1>&6
3420 cat > conftest.
$ac_ext <<EOF
3421 #line 3422 "configure"
3422 #include "confdefs.h"
3423 #include "gansidecl.h"
3428 char *(*pfn) = (char *(*)) $ac_func ;
3432 if { (eval echo configure
:3433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3434 eval "gcc_cv_have_decl_$ac_func=yes"
3436 echo "configure: failed program was:" >&5
3437 cat conftest.
$ac_ext >&5
3439 eval "gcc_cv_have_decl_$ac_func=no"
3444 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3445 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
3446 #define $ac_tr_decl 1
3450 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
3451 #define $ac_tr_decl 0
3457 if test x
= y
; then
3458 cat >> confdefs.h
<<EOF
3459 #define HAVE_DECL_BCOPY 1
3461 cat >> confdefs.h
<<EOF
3462 #define HAVE_DECL_BZERO 1
3464 cat >> confdefs.h
<<EOF
3465 #define HAVE_DECL_BCMP 1
3468 cat >> confdefs.h
<<EOF
3469 #define HAVE_DECL_INDEX 1
3471 cat >> confdefs.h
<<EOF
3472 #define HAVE_DECL_RINDEX 1
3474 cat >> confdefs.h
<<EOF
3475 #define HAVE_DECL_GETENV 1
3477 cat >> confdefs.h
<<EOF
3478 #define HAVE_DECL_ATOL 1
3480 cat >> confdefs.h
<<EOF
3481 #define HAVE_DECL_SBRK 1
3483 cat >> confdefs.h
<<EOF
3484 #define HAVE_DECL_ABORT 1
3486 cat >> confdefs.h
<<EOF
3487 #define HAVE_DECL_ATOF 1
3489 cat >> confdefs.h
<<EOF
3490 #define HAVE_DECL_GETCWD 1
3492 cat >> confdefs.h
<<EOF
3493 #define HAVE_DECL_GETWD 1
3496 cat >> confdefs.h
<<EOF
3497 #define HAVE_DECL_STRSIGNAL 1
3499 cat >> confdefs.h
<<EOF
3500 #define HAVE_DECL_PUTC_UNLOCKED 1
3502 cat >> confdefs.h
<<EOF
3503 #define HAVE_DECL_FPUTS_UNLOCKED 1
3505 cat >> confdefs.h
<<EOF
3506 #define HAVE_DECL_STRSTR 1
3508 cat >> confdefs.h
<<EOF
3509 #define HAVE_DECL_ENVIRON 1
3512 cat >> confdefs.h
<<EOF
3513 #define HAVE_DECL_MALLOC 1
3515 cat >> confdefs.h
<<EOF
3516 #define HAVE_DECL_REALLOC 1
3518 cat >> confdefs.h
<<EOF
3519 #define HAVE_DECL_CALLOC 1
3521 cat >> confdefs.h
<<EOF
3522 #define HAVE_DECL_FREE 1
3524 cat >> confdefs.h
<<EOF
3525 #define HAVE_DECL_BASENAME 1
3527 cat >> confdefs.h
<<EOF
3528 #define HAVE_DECL_GETOPT 1
3533 for ac_func
in getrlimit setrlimit getrusage
3535 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3536 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3537 echo "configure:3538: checking whether $ac_func is declared" >&5
3538 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3539 echo $ac_n "(cached) $ac_c" 1>&6
3541 cat > conftest.
$ac_ext <<EOF
3542 #line 3543 "configure"
3543 #include "confdefs.h"
3544 #include "gansidecl.h"
3546 #ifdef HAVE_SYS_RESOURCE_H
3547 #include <sys/resource.h>
3553 char *(*pfn) = (char *(*)) $ac_func ;
3557 if { (eval echo configure
:3558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3559 eval "gcc_cv_have_decl_$ac_func=yes"
3561 echo "configure: failed program was:" >&5
3562 cat conftest.
$ac_ext >&5
3564 eval "gcc_cv_have_decl_$ac_func=no"
3569 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3570 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
3571 #define $ac_tr_decl 1
3575 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
3576 #define $ac_tr_decl 0
3582 if test x
= y
; then
3583 cat >> confdefs.h
<<EOF
3584 #define HAVE_DECL_GETRLIMIT 1
3586 cat >> confdefs.h
<<EOF
3587 #define HAVE_DECL_SETRLIMIT 1
3589 cat >> confdefs.h
<<EOF
3590 #define HAVE_DECL_GETRUSAGE 1
3595 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
3596 CFLAGS
="$saved_CFLAGS"
3598 # mkdir takes a single argument on some systems.
3599 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
3600 echo "configure:3601: checking if mkdir takes one argument" >&5
3601 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
3602 echo $ac_n "(cached) $ac_c" 1>&6
3604 cat > conftest.
$ac_ext <<EOF
3605 #line 3606 "configure"
3606 #include "confdefs.h"
3608 #include <sys/types.h>
3609 #ifdef HAVE_SYS_STAT_H
3610 # include <sys/stat.h>
3612 #ifdef HAVE_UNISTD_H
3613 # include <unistd.h>
3615 #ifdef HAVE_DIRECT_H
3616 # include <direct.h>
3622 if { (eval echo configure
:3623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3624 gcc_cv_mkdir_takes_one_arg
=no
3626 echo "configure: failed program was:" >&5
3627 cat conftest.
$ac_ext >&5
3629 gcc_cv_mkdir_takes_one_arg
=yes
3634 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
3635 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
3636 cat >> confdefs.h
<<\EOF
3637 #define MKDIR_TAKES_ONE_ARG 1
3651 build_install_headers_dir
=install-headers-tar
3656 host_truncate_target
=
3659 # Decode the host machine, then the target machine.
3660 # For the host machine, we save the xm_file variable as host_xm_file;
3661 # then we decode the target machine and forget everything else
3662 # that came from the host machine.
3663 for machine
in $build $host $target; do
3677 # Set this to force installation and use of collect2.
3679 # Set this to override the default target model.
3681 # Set this to control how the header file directory is installed.
3682 install_headers_dir
=install-headers-tar
3683 # Set this to a non-empty list of args to pass to cpp if the target
3684 # wants its .md file passed through cpp.
3686 # Set this if directory names should be truncated to 14 characters.
3688 # Set this if gdb needs a dir command with `dirname $out_file`
3689 gdb_needs_out_file_path
=
3690 # Set this if the build machine requires executables to have a
3693 # Set this to control which thread package will be used.
3695 # Reinitialize these from the flag values every loop pass, since some
3696 # configure entries modify them.
3698 gnu_ld
="$gnu_ld_flag"
3699 enable_threads
=$enable_threads_flag
3701 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
3702 # updated in each machine entry.
3704 cpu_type
=`echo $machine | sed 's/-.*$//'`
3744 tm_file
=${cpu_type}/${cpu_type}.h
3745 xm_file
=${cpu_type}/xm-
${cpu_type}.h
3746 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
;
3748 tm_p_file
=${cpu_type}/${cpu_type}-protos.h
;
3750 # On a.out targets, we need to use collect2.
3757 # Common parts for linux-gnu and openbsd systems
3760 xm_defines
="HAVE_ATEXIT POSIX BSTRING"
3763 tm_file
=${cpu_type}/openbsd.h
3764 tmake_file
="t-libc-ok t-openbsd"
3765 # avoid surprises, always provide an xm-openbsd file
3766 xm_file
=${cpu_type}/xm-openbsd.h
3767 # don't depend on processor x-fragments as well
3769 if test x
$enable_threads = xyes
; then
3771 tmake_file
="${tmake_file} t-openbsd-thread"
3777 # Support site-specific machine types.
3779 cpu_type
=`echo $machine | sed -e 's/-.*//'`
3780 rest
=`echo $machine | sed -e "s/$cpu_type-//"`
3781 xm_file
=${cpu_type}/xm-
$rest.h
3782 tm_file
=${cpu_type}/$rest.h
3783 if test -f $srcdir/config
/${cpu_type}/x-
$rest; \
3784 then xmake_file
=${cpu_type}/x-
$rest; \
3787 if test -f $srcdir/config
/${cpu_type}/t-
$rest; \
3788 then tmake_file
=${cpu_type}/t-
$rest; \
3794 a29k-
*-bsd* | a29k-
*-sym1*)
3795 tm_file
="${tm_file} a29k/unix.h"
3797 xmake_file
=a29k
/x-unix
3800 a29k-
*-udi | a29k-
*-coff)
3801 tm_file
="${tm_file} dbxcoff.h a29k/udi.h"
3802 tmake_file
=a29k
/t-a29kbare
3805 tm_file
="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3806 tmake_file
=a29k
/t-vx29k
3807 extra_parts
="crtbegin.o crtend.o"
3808 thread_file
='vxworks'
3810 a29k-
*-*) # Default a29k environment.
3814 tm_file
="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
3816 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
3817 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
3819 # GAS + IEEE_CONFORMANT
3820 target_cpu_default
="MASK_GAS|MASK_IEEE_CONFORMANT"
3822 xm_file
="alpha/xm-alpha-interix.h xm-interix.h"
3823 xmake_file
="x-interix alpha/t-pe"
3824 tmake_file
="alpha/t-alpha alpha/t-interix alpha/t-ieee"
3825 if test x
$enable_threads = xyes
; then
3828 if test x
$stabs = xyes
; then
3829 tm_file
="${tm_file} dbxcoff.h"
3831 #prefix='$$INTERIX_ROOT'/usr/contrib
3832 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3834 alpha
*-*-linux-gnuecoff*)
3835 tm_file
="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3836 target_cpu_default
="MASK_GAS"
3837 tmake_file
="alpha/t-alpha alpha/t-ieee"
3842 alpha
*-*-linux-gnulibc1*)
3843 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3844 target_cpu_default
="MASK_GAS"
3845 tmake_file
="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
3846 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3849 if test x
$enable_threads = xyes
; then
3853 alpha
*-*-linux-gnu*)
3854 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3855 target_cpu_default
="MASK_GAS"
3856 tmake_file
="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3857 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3860 if test x
$enable_threads = xyes
; then
3865 tm_file
="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3866 target_cpu_default
="MASK_GAS"
3867 tmake_file
="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3868 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3874 # default x-alpha is only appropriate for dec-osf.
3875 target_cpu_default
="MASK_GAS"
3876 tmake_file
="alpha/t-alpha alpha/t-ieee"
3880 if test x
$stabs = xyes
3882 tm_file
="${tm_file} dbx.h"
3884 if test x
$gas != xyes
3886 extra_passes
="mips-tfile mips-tdump"
3889 tmake_file
="alpha/t-alpha alpha/t-ieee"
3892 tm_file
="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3895 tm_file
="${tm_file} alpha/osf.h alpha/osf2or3.h"
3898 tm_file
="${tm_file} alpha/osf.h"
3899 # Some versions of OSF4 (specifically X4.0-9 296.7) have
3900 # a broken tar, so we use cpio instead.
3901 install_headers_dir
=install-headers-cpio
3904 tm_file
="${tm_file} alpha/osf.h alpha/osf5.h"
3908 *-*-osf4.0
[b-z
] |
*-*-osf4.
[1-9]* |
*-*-osf5*)
3909 target_cpu_default
=MASK_SUPPORT_ARCH
3914 tm_file
="${tm_file} dbx.h alpha/vxworks.h"
3915 tmake_file
="alpha/t-alpha alpha/t-ieee"
3918 extra_passes
="mips-tfile mips-tdump"
3921 thread_file
='vxworks'
3924 tm_file
="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3925 xm_file
="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3926 tmake_file
="t-libc-ok alpha/t-alpha alpha/t-ieee"
3927 xmake_file
=winnt
/x-winnt
3928 extra_host_objs
=oldnames.o
3929 extra_gcc_objs
="spawnv.o oldnames.o"
3930 if test x
$gnu_ld != xyes
3932 extra_programs
=ld.exe
3934 if test x
$enable_threads = xyes
; then
3940 xm_file
="${xm_file} alpha/xm-vms.h"
3941 tmake_file
="alpha/t-alpha alpha/t-vms alpha/t-ieee"
3944 extra_parts
="crtinit.o crtfini.o"
3946 arm-
*-coff* | armel-
*-coff*)
3948 tmake_file
=arm
/t-arm-coff
3952 tmake_file
=arm
/t-arm-coff
3953 thread_file
='vxworks'
3955 arm-
*-riscix1.
[01]*) # Acorn RISC machine (early versions)
3956 tm_file
=arm
/riscix1-1.h
3959 arm-
*-riscix*) # Acorn RISC machine
3960 if test x
$gas = xyes
3962 tm_file
=arm
/rix-gas.h
3964 tm_file
=arm
/riscix.h
3966 xmake_file
=arm
/x-riscix
3967 tmake_file
=arm
/t-riscix
3970 arm-semi-aout | armel-semi-aout
)
3972 tmake_file
=arm
/t-semi
3974 arm-semi-aof | armel-semi-aof
)
3975 tm_file
=arm
/semiaof.h
3976 tmake_file
=arm
/t-semiaof
3979 tm_file
=arm
/netbsd.h
3980 tmake_file
="t-netbsd arm/t-netbsd"
3983 arm
*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
3986 tm_file
=arm
/linux-aout.h
3987 tmake_file
=arm
/t-linux
3990 arm
*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker
3991 xm_file
=arm
/xm-linux.h
3993 tm_file
="arm/linux-oldld.h arm/linux-elf.h"
3996 tm_file
="arm/linux-elf26.h $tm_file"
3999 tmake_file
="t-linux arm/t-linux"
4000 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4002 case x
${enable_threads} in
4003 x | xyes | xpthreads | xposix
)
4008 arm
*-*-linux-gnu*) # ARM GNU/Linux with ELF
4009 xm_file
=arm
/xm-linux.h
4011 tm_file
="arm/linux-elf.h"
4014 tm_file
="arm/linux-elf26.h $tm_file"
4017 tmake_file
="t-linux arm/t-linux"
4018 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4020 case x
${enable_threads} in
4021 x | xyes | xpthreads | xposix
)
4026 arm
*-*-uclinux*) # ARM ucLinux
4027 tm_file
=arm
/uclinux-elf.h
4028 tmake_file
=arm
/t-arm-elf
4032 tmake_file
=arm
/t-arm-aout
4035 tm_file
=arm
/ecos-elf.h
4036 tmake_file
=arm
/t-arm-elf
4039 tm_file
=arm
/unknown-elf.h
4040 tmake_file
=arm
/t-arm-elf
4043 tm_file
=arm
/conix-elf.h
4044 tmake_file
=arm
/t-arm-elf
4047 tm_file
=arm
/unknown-elf-oabi.h
4048 tmake_file
=arm
/t-arm-elf
4057 c1-convex-
*) # Convex C1
4058 target_cpu_default
=1
4061 c2-convex-
*) # Convex C2
4062 target_cpu_default
=2
4066 target_cpu_default
=4
4070 target_cpu_default
=8
4074 target_cpu_default
=16
4079 tmake_file
=c4x
/t-c4x
4081 clipper-intergraph-clix
*)
4082 tm_file
="${tm_file} svr3.h clipper/clix.h"
4083 xm_file
=clipper
/xm-clix.h
4084 xmake_file
=clipper
/x-clix
4085 extra_headers
=va-clipper.h
4086 extra_parts
="crtbegin.o crtend.o"
4087 install_headers_dir
=install-headers-cpio
4098 tm_file
="fr30/fr30.h"
4099 tmake_file
=fr30
/t-fr30
4100 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4102 # This hasn't been upgraded to GCC 2.
4103 # fx80-alliant-*) # Alliant FX/80
4109 target_cpu_default
="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
4110 tm_file
="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
4111 tmake_file
="t-linux pa/t-linux"
4112 extra_parts
="crtbegin.o crtend.o"
4115 if test x
$enable_threads = xyes
; then
4120 target_cpu_default
="MASK_PA_11"
4121 tmake_file
=pa
/t-openbsd
4124 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
4125 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
4126 xm_file
=pa
/xm-papro.h
4130 target_cpu_default
="MASK_PA_11"
4131 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
4135 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
4136 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
4137 xm_file
=pa
/xm-papro.h
4141 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
4145 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h"
4146 target_cpu_default
="MASK_PA_11"
4150 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h"
4154 tm_file
="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
4155 xm_file
=pa
/xm-pahpux.h
4156 xmake_file
=pa
/x-pa-hpux
4157 if test x
$gas = xyes
4159 tm_file
="${tm_file} pa/gas.h"
4161 install_headers_dir
=install-headers-cpio
4164 hppa1.0
-*-hpux8.0
[0-2]*)
4165 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4166 xm_file
=pa
/xm-pahpux.h
4167 xmake_file
=pa
/x-pa-hpux
4168 if test x
$gas = xyes
4170 tm_file
="${tm_file} pa/pa-gas.h"
4172 tm_file
="pa/pa-oldas.h ${tm_file}"
4174 install_headers_dir
=install-headers-cpio
4177 hppa1.1
-*-hpux8.0
[0-2]*)
4178 target_cpu_default
="MASK_PA_11"
4179 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4180 xm_file
=pa
/xm-pahpux.h
4181 xmake_file
=pa
/x-pa-hpux
4182 if test x
$gas = xyes
4184 tm_file
="${tm_file} pa/pa-gas.h"
4186 tm_file
="pa/pa-oldas.h ${tm_file}"
4188 install_headers_dir
=install-headers-cpio
4192 target_cpu_default
="MASK_PA_11"
4193 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4194 xm_file
=pa
/xm-pahpux.h
4195 xmake_file
=pa
/x-pa-hpux
4196 if test x
$gas = xyes
4198 tm_file
="${tm_file} pa/pa-gas.h"
4200 install_headers_dir
=install-headers-cpio
4204 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4205 xm_file
=pa
/xm-pahpux.h
4206 xmake_file
=pa
/x-pa-hpux
4207 if test x
$gas = xyes
4209 tm_file
="${tm_file} pa/pa-gas.h"
4211 install_headers_dir
=install-headers-cpio
4214 hppa1.1
-*-hpux10* | hppa2
*-*-hpux10*)
4215 target_cpu_default
="MASK_PA_11"
4216 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
4218 xm_file
=pa
/xm-pahpux.h
4219 xmake_file
=pa
/x-pa-hpux
4221 if test x
$gas = xyes
4223 tm_file
="${tm_file} pa/pa-gas.h"
4225 if test x
$enable_threads = x
; then
4226 enable_threads
=$have_pthread_h
4228 case x
${enable_threads} in
4230 tmake_file
="${tmake_file} pa/t-dce-thr"
4233 install_headers_dir
=install-headers-cpio
4237 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
4239 xm_file
=pa
/xm-pahpux.h
4240 xmake_file
=pa
/x-pa-hpux
4242 if test x
$gas = xyes
4244 tm_file
="${tm_file} pa/pa-gas.h"
4246 if test x
$enable_threads = x
; then
4247 enable_threads
=$have_pthread_h
4249 case x
${enable_threads} in
4251 tmake_file
="${tmake_file} pa/t-dce-thr"
4254 install_headers_dir
=install-headers-cpio
4258 target_cpu_default
="MASK_PA_11"
4259 xm_file
=pa
/xm-pa64hpux.h
4260 xmake_file
=pa
/x-pa-hpux
4262 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"
4264 tmake_file
=pa
/t-pa64
4265 target_cpu_default
="(MASK_PA_11|MASK_PA_20)"
4269 tm_file
="${tm_file} pa/pa-gas.h"
4271 # if [[ x$enable_threads = x ]]; then
4272 # enable_threads=$have_pthread_h
4274 # if [[ x$enable_threads = xyes ]]; then
4276 # tmake_file="${tmake_file} pa/t-dce-thr"
4278 install_headers_dir
=install-headers-cpio
4281 hppa1.1
-*-hpux11* | hppa2
*-*-hpux11*)
4282 target_cpu_default
="MASK_PA_11"
4283 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
4285 xm_file
=pa
/xm-pahpux.h
4286 xmake_file
=pa
/x-pa-hpux
4288 if test x
$gas = xyes
4290 tm_file
="${tm_file} pa/pa-gas.h"
4292 # if test x$enable_threads = x; then
4293 # enable_threads=$have_pthread_h
4295 # if test x$enable_threads = xyes; then
4297 # tmake_file="${tmake_file} pa/t-dce-thr"
4299 install_headers_dir
=install-headers-cpio
4303 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
4305 xm_file
=pa
/xm-pahpux.h
4306 xmake_file
=pa
/x-pa-hpux
4307 if test x
$gas = xyes
4309 tm_file
="${tm_file} pa/pa-gas.h"
4311 # if test x$enable_threads = x; then
4312 # enable_threads=$have_pthread_h
4314 # if test x$enable_threads = xyes; then
4316 # tmake_file="${tmake_file} pa/t-dce-thr"
4318 install_headers_dir
=install-headers-cpio
4321 hppa1.1
-*-hpux* | hppa2
*-*-hpux*)
4322 target_cpu_default
="MASK_PA_11"
4323 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
4324 xm_file
=pa
/xm-pahpux.h
4325 xmake_file
=pa
/x-pa-hpux
4326 if test x
$gas = xyes
4328 tm_file
="${tm_file} pa/pa-gas.h"
4330 install_headers_dir
=install-headers-cpio
4334 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
4335 xm_file
=pa
/xm-pahpux.h
4336 xmake_file
=pa
/x-pa-hpux
4337 if test x
$gas = xyes
4339 tm_file
="${tm_file} pa/pa-gas.h"
4341 install_headers_dir
=install-headers-cpio
4344 hppa1.1
-*-hiux* | hppa2
*-*-hiux*)
4345 target_cpu_default
="MASK_PA_11"
4346 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
4347 xm_file
=pa
/xm-pahpux.h
4348 xmake_file
=pa
/x-pa-hpux
4349 if test x
$gas = xyes
4351 tm_file
="${tm_file} pa/pa-gas.h"
4353 install_headers_dir
=install-headers-cpio
4357 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
4358 xm_file
=pa
/xm-pahpux.h
4359 xmake_file
=pa
/x-pa-hpux
4360 if test x
$gas = xyes
4362 tm_file
="${tm_file} pa/pa-gas.h"
4364 install_headers_dir
=install-headers-cpio
4368 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
4369 target_cpu_default
="MASK_PA_11"
4373 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
4374 xm_file
=pa
/xm-pampeix.h
4375 xmake_file
=pa
/x-pa-mpeix
4376 echo "You must use gas. Assuming it is already installed."
4377 install_headers_dir
=install-headers-tar
4380 i370-
*-opened*) # IBM 360/370/390 Architecture
4381 xm_file
=i370
/xm-oe.h
4383 xmake_file
=i370
/x-oe
4384 tmake_file
=i370
/t-oe
4387 xm_file
=i370
/xm-mvs.h
4389 tmake_file
=i370
/t-mvs
4392 xm_file
="xm-linux.h i370/xm-linux.h"
4394 tm_file
="i370/linux.h ${tm_file}"
4395 tmake_file
="t-linux i370/t-linux"
4396 # broken_install=yes
4397 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4398 # extra_parts="crtbegin.o crtend.o"
4402 if test x
$enable_threads = xyes
; then
4407 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h"
4408 tm_file
=i386
/i386elf.h
4409 tmake_file
=i386
/t-i386elf
4412 i
[34567]86-ibm-aix*) # IBM PS/2 running AIX
4413 if test x
$gas = xyes
4415 tm_file
=i386
/aix386.h
4416 extra_parts
="crtbegin.o crtend.o"
4417 tmake_file
=i386
/t-crtstuff
4419 tm_file
=i386
/aix386ng.h
4422 xm_file
="xm-alloca.h i386/xm-aix.h ${xm_file}"
4424 xmake_file
=i386
/x-aix
4426 i
[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
4427 xm_file
="xm-alloca.h ${xm_file}"
4428 xm_defines
="USG POSIX SMALL_ARG_MAX"
4429 xmake_file
=i386
/x-ncr3000
4430 if test x
$stabs = xyes
-a x
$gas = xyes
4432 tm_file
=i386
/sysv4gdb.h
4434 tm_file
=i386
/sysv4.h
4436 extra_parts
="crtbegin.o crtend.o"
4437 tmake_file
=i386
/t-crtpic
4441 xm_file
=i386
/xm-next.h
4442 tmake_file
=i386
/t-next
4443 xmake_file
=i386
/x-next
4444 extra_objs
=nextstep.o
4445 extra_parts
="crtbegin.o crtend.o"
4446 if test x
$enable_threads = xyes
; then
4450 i
[34567]86-sequent-bsd*) # 80386 from Sequent
4452 if test x
$gas = xyes
4454 tm_file
=i386
/seq-gas.h
4456 tm_file
=i386
/sequent.h
4459 i
[34567]86-sequent-ptx1*)
4460 xm_defines
="USG SVR3"
4461 xmake_file
=i386
/x-sysv3
4462 tm_file
=i386
/seq-sysv3.h
4463 tmake_file
=i386
/t-crtstuff
4464 extra_parts
="crtbegin.o crtend.o"
4465 install_headers_dir
=install-headers-cpio
4467 i
[34567]86-sequent-ptx2* | i
[34567]86-sequent-sysv3*)
4468 xm_defines
="USG SVR3"
4469 xmake_file
=i386
/x-sysv3
4470 tm_file
=i386
/seq2-sysv3.h
4471 tmake_file
=i386
/t-crtstuff
4472 extra_parts
="crtbegin.o crtend.o"
4473 install_headers_dir
=install-headers-cpio
4475 i
[34567]86-sequent-ptx4* | i
[34567]86-sequent-sysv4*)
4476 xm_file
="xm-alloca.h ${xm_file}"
4477 xm_defines
="USG POSIX SMALL_ARG_MAX"
4479 tm_file
=i386
/ptx4-i.h
4481 extra_parts
="crtbegin.o crtend.o"
4482 install_headers_dir
=install-headers-cpio
4484 i386-sun-sunos
*) # Sun i386 roadrunner
4489 i
[34567]86-wrs-vxworks*)
4490 tm_file
=i386
/vxi386.h
4491 tmake_file
=i386
/t-i386bare
4492 thread_file
='vxworks'
4495 tm_file
=i386
/i386-aout.h
4496 tmake_file
=i386
/t-i386bare
4498 i
[34567]86-*-beoself* | i
[34567]86-*-beos*)
4499 xm_file
=i386
/xm-beos.h
4500 tmake_file
='i386/t-beos i386/t-crtpic'
4501 tm_file
=i386
/beos-elf.h
4502 xmake_file
=i386
/x-beos
4503 extra_parts
='crtbegin.o crtend.o'
4505 i
[34567]86-*-bsdi* | i
[34567]86-*-bsd386*)
4506 tm_file
=i386
/bsd386.h
4507 # tmake_file=t-libc-ok
4510 tm_file
=i386
/386bsd.h
4511 # tmake_file=t-libc-ok
4512 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
4515 i
[34567]86-*-freebsd[12] | i
[34567]86-*-freebsd[12].
* | i
[34567]86-*-freebsd*aout
*)
4516 tm_file
="i386/freebsd.h i386/perform.h"
4517 tmake_file
=t-freebsd
4519 i
[34567]86-*-freebsd*)
4520 tm_file
="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
4521 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4522 tmake_file
=t-freebsd
4526 case x
${enable_threads} in
4527 xyes | xpthreads | xposix
)
4529 tmake_file
="${tmake_file} t-freebsd-thread"
4533 i
[34567]86-*-netbsd*)
4534 tm_file
=i386
/netbsd.h
4538 i
[34567]86-*-openbsd*)
4539 # we need collect2 until our bug is fixed...
4543 tm_file
=i386
/i386-coff.h
4544 tmake_file
=i386
/t-i386bare
4546 i
[34567]86-*-isc*) # 80386 running ISC system
4547 xm_file
="${xm_file} i386/xm-isc.h"
4548 xm_defines
="USG SVR3"
4550 i
[34567]86-*-isc[34]*)
4551 xmake_file
=i386
/x-isc3
4554 xmake_file
=i386
/x-isc
4557 if test x
$gas = xyes
-a x
$stabs = xyes
4559 tm_file
=i386
/iscdbx.h
4560 tmake_file
=i386
/t-svr3dbx
4561 extra_parts
="svr3.ifile svr3z.ifile"
4563 tm_file
=i386
/isccoff.h
4564 tmake_file
=i386
/t-crtstuff
4565 extra_parts
="crtbegin.o crtend.o"
4567 tmake_file
="$tmake_file i386/t-i386bare"
4568 install_headers_dir
=install-headers-cpio
4570 i
[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
4572 xmake_file
=x-linux-aout
4573 tmake_file
="t-linux-aout i386/t-crtstuff"
4574 tm_file
=i386
/linux-oldld.h
4578 i
[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
4579 xmake_file
=x-linux-aout
4580 tmake_file
="t-linux-aout i386/t-crtstuff"
4581 tm_file
=i386
/linux-aout.h
4585 i
[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
4586 # GNU/Linux C library 5
4588 tm_file
=i386
/linux.h
4589 tmake_file
="t-linux t-linux-gnulibc1 i386/t-crtstuff"
4590 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4593 if test x
$enable_threads = xyes
; then
4594 thread_file
='single'
4597 i
[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
4598 # aka GNU/Linux C library 6
4600 tm_file
=i386
/linux.h
4601 tmake_file
="t-linux i386/t-crtstuff"
4602 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4605 if test x
$enable_threads = xyes
; then
4612 i
[34567]86-go32-msdos | i
[34567]86-*-go32*)
4613 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
4616 i
[34567]86-pc-msdosdjgpp*)
4617 xm_file
=i386
/xm-djgpp.h
4618 tm_file
=i386
/djgpp.h
4619 tmake_file
=i386
/t-djgpp
4620 xmake_file
=i386
/x-djgpp
4625 case $host in *pc-msdosdjgpp
*)
4630 i
[34567]86-moss-msdos* | i
[34567]86-*-moss*)
4632 tmake_file
=t-libc-ok
4636 i
[34567]86-*-lynxos*)
4637 if test x
$gas = xyes
4641 tm_file
=i386
/lynx-ng.h
4643 xm_file
=i386
/xm-lynx.h
4644 tmake_file
=i386
/t-i386bare
4649 # tmake_file=t-libc-ok
4652 i
[34567]86-*-osfrose*) # 386 using OSF/rose
4653 if test x
$elf = xyes
4655 tm_file
=i386
/osfelf.h
4658 tm_file
=i386
/osfrose.h
4661 xm_file
="i386/xm-osf.h ${xm_file}"
4662 xmake_file
=i386
/x-osfrose
4663 tmake_file
=i386
/t-osf
4664 extra_objs
=halfpic.o
4666 i
[34567]86-go32-rtems*)
4668 xm_file
=i386
/xm-go32.h
4669 tm_file
=i386
/go32-rtems.h
4670 tmake_file
="i386/t-go32 t-rtems"
4672 i
[34567]86-*-rtemscoff*)
4674 tm_file
=i386
/rtems.h
4675 tmake_file
="i386/t-i386bare t-rtems"
4677 i
[34567]86-*-rtems*|i
[34567]86-*-rtemself*)
4679 tm_file
=i386
/rtemself.h
4680 extra_parts
="crtbegin.o crtend.o crti.o crtn.o"
4681 tmake_file
="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
4683 i
[34567]86-*-sco3.2v5
*) # 80386 running SCO Open Server 5
4684 xm_file
="xm-alloca.h ${xm_file} i386/xm-sco5.h"
4685 xm_defines
="USG SVR3"
4686 xmake_file
=i386
/x-sco5
4687 install_headers_dir
=install-headers-cpio
4689 if test x
$gas = xyes
4691 tm_file
="i386/sco5gas.h ${tm_file}"
4692 tmake_file
=i386
/t-sco5gas
4694 tmake_file
=i386
/t-sco5
4696 tmake_file
="$tmake_file i386/t-i386bare"
4697 extra_parts
="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
4699 i
[34567]86-*-sco3.2v4
*) # 80386 running SCO 3.2v4 system
4700 xm_file
="${xm_file} i386/xm-sco.h"
4701 xm_defines
="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
4702 xmake_file
=i386
/x-sco4
4703 install_headers_dir
=install-headers-cpio
4704 if test x
$stabs = xyes
4706 tm_file
=i386
/sco4dbx.h
4707 tmake_file
=i386
/t-svr3dbx
4708 extra_parts
="svr3.ifile svr3z.rfile"
4711 tmake_file
=i386
/t-crtstuff
4712 extra_parts
="crtbegin.o crtend.o"
4714 tmake_file
="$tmake_file i386/t-i386bare"
4715 # The default EAFS filesystem supports long file names.
4716 # Truncating the target makes $host != $target which
4717 # makes gcc think it is doing a cross-compile.
4718 # truncate_target=yes
4720 i
[34567]86-*-sco*) # 80386 running SCO system
4721 xm_file
=i386
/xm-sco.h
4722 xmake_file
=i386
/x-sco
4723 install_headers_dir
=install-headers-cpio
4724 if test x
$stabs = xyes
4726 tm_file
=i386
/scodbx.h
4727 tmake_file
=i386
/t-svr3dbx
4728 extra_parts
="svr3.ifile svr3z.rfile"
4731 extra_parts
="crtbegin.o crtend.o"
4732 tmake_file
=i386
/t-crtstuff
4734 tmake_file
="$tmake_file i386/t-i386bare"
4737 i
[34567]86-*-solaris2*)
4738 xm_file
="xm-alloca.h ${xm_file}"
4739 xm_defines
="USG POSIX SMALL_ARG_MAX"
4741 if test x
$gas = xyes
; then
4742 # Only needed if gas does not support -s
4743 tm_file
="i386/sol2gas.h ${tm_file}"
4745 tmake_file
="i386/t-i386bare i386/t-sol2"
4746 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4748 if test x
${enable_threads} = x
; then
4749 enable_threads
=$have_pthread_h
4750 if test x
${enable_threads} = x
; then
4751 enable_threads
=$have_thread_h
4754 if test x
${enable_threads} = xyes
; then
4755 if test x
${have_pthread_h} = xyes
; then
4758 thread_file
='solaris'
4762 i
[34567]86-*-sysv5*) # Intel x86 on System V Release 5
4763 xm_file
="xm-alloca.h ${xm_file}"
4764 xm_defines
="USG POSIX"
4765 tm_file
=i386
/sysv5.h
4766 if test x
$stabs = xyes
4768 tm_file
="${tm_file} dbx.h"
4770 tmake_file
="i386/t-i386bare i386/t-crtpic"
4772 extra_parts
="crtbegin.o crtend.o"
4773 if test x
$enable_threads = xyes
; then
4777 i
[34567]86-*-sysv4*) # Intel 80386's running system V.4
4778 xm_file
="xm-alloca.h ${xm_file}"
4779 xm_defines
="USG POSIX SMALL_ARG_MAX"
4780 tm_file
=i386
/sysv4.h
4781 if test x
$stabs = xyes
4783 tm_file
="${tm_file} dbx.h"
4785 tmake_file
="i386/t-i386bare i386/t-crtpic"
4787 extra_parts
="crtbegin.o crtend.o"
4789 i
[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
4790 xm_file
="xm-alloca.h ${xm_file}"
4791 xm_defines
="USG POSIX"
4793 tmake_file
="i386/t-i386bare i386/t-crtpic i386/t-udk"
4795 extra_parts
="crtbegin.o crtend.o"
4796 install_headers_dir
=install-headers-cpio
4798 i
[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
4800 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
4801 xm_defines
="USE_C_ALLOCA SMALL_ARG_MAX"
4802 if test x
$stabs = xyes
4804 tm_file
=i386
/osf1elfgdb.h
4806 tm_file
=i386
/osf1elf.h
4808 tmake_file
=i386
/t-osf1elf
4809 xmake_file
=i386
/x-osf1elf
4810 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4812 i
[34567]86-*-sysv*) # Intel 80386's running system V
4813 xm_defines
="USG SVR3"
4814 xmake_file
=i386
/x-sysv3
4815 if test x
$gas = xyes
4817 if test x
$stabs = xyes
4819 tm_file
=i386
/svr3dbx.h
4820 tmake_file
=i386
/t-svr3dbx
4821 extra_parts
="svr3.ifile svr3z.rfile"
4823 tm_file
=i386
/svr3gas.h
4824 extra_parts
="crtbegin.o crtend.o"
4825 tmake_file
=i386
/t-crtstuff
4828 tm_file
=i386
/sysv3.h
4829 extra_parts
="crtbegin.o crtend.o"
4830 tmake_file
=i386
/t-crtstuff
4832 tmake_file
="$tmake_file i386/t-crtpic"
4834 i386-
*-vsta) # Intel 80386's running VSTa kernel
4835 xm_file
="${xm_file} i386/xm-vsta.h"
4837 tmake_file
=i386
/t-vsta
4838 xmake_file
=i386
/x-vsta
4841 xm_file
="${xm_file} i386/xm-cygwin.h"
4842 tmake_file
=i386
/t-cygwin
4843 tm_file
=i386
/win32.h
4844 xmake_file
=i386
/x-cygwin
4846 if test x
$enable_threads = xyes
; then
4851 i
[34567]86-*-pe | i
[34567]86-*-cygwin*)
4852 xm_file
="${xm_file} i386/xm-cygwin.h"
4853 tmake_file
=i386
/t-cygwin
4854 tm_file
=i386
/cygwin.h
4855 xmake_file
=i386
/x-cygwin
4857 if test x
$enable_threads = xyes
; then
4862 i
[34567]86-*-mingw32*)
4863 tm_file
=i386
/mingw32.h
4864 xm_file
="${xm_file} i386/xm-mingw32.h"
4865 tmake_file
="i386/t-cygwin i386/t-mingw32"
4867 xmake_file
=i386
/x-cygwin
4868 if test x
$enable_threads = xyes
; then
4875 *minwg32crt
* |
*mingw32
*)
4876 tm_file
="${tm_file} i386/crtdll.h"
4882 xm_file
="${xm_file} i386/xm-uwin.h"
4883 xm_defines
="USG NO_STAB_H"
4884 tmake_file
="i386/t-cygwin i386/t-uwin"
4886 xmake_file
=i386
/x-cygwin
4887 if test x
$enable_threads = xyes
; then
4892 i
[34567]86-*-interix*)
4893 tm_file
="i386/i386-interix.h interix.h"
4894 xm_file
="i386/xm-i386-interix.h xm-interix.h"
4896 tmake_file
="i386/t-interix"
4897 extra_objs
=interix.o
4898 xmake_file
=x-interix
4899 if test x
$enable_threads = xyes
; then
4902 if test x
$stabs = xyes
; then
4903 tm_file
="${tm_file} dbxcoff.h"
4906 i
[34567]86-*-winnt3*)
4907 tm_file
=i386
/win-nt.h
4908 out_file
=i386
/i386.c
4909 xm_file
="xm-winnt.h ${xm_file}"
4910 xmake_file
=winnt
/x-winnt
4911 tmake_file
=i386
/t-winnt
4912 extra_host_objs
="winnt.o oldnames.o"
4913 extra_gcc_objs
="spawnv.o oldnames.o"
4914 if test x
$gnu_ld != xyes
4916 extra_programs
=ld.exe
4918 if test x
$enable_threads = xyes
; then
4922 i
[34567]86-dg-dgux*)
4923 xm_file
="xm-alloca.h ${xm_file}"
4924 xm_defines
="USG POSIX"
4925 out_file
=i386
/dgux.c
4927 tmake_file
=i386
/t-dgux
4928 xmake_file
=i386
/x-dgux
4929 install_headers_dir
=install-headers-cpio
4931 i860-alliant-
*) # Alliant FX/2800
4932 tm_file
="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
4933 xm_file
="${xm_file}"
4934 xmake_file
=i860
/x-fx2800
4935 tmake_file
=i860
/t-fx2800
4936 extra_parts
="crtbegin.o crtend.o"
4939 tm_file
="${tm_file} i860/bsd.h"
4940 if test x
$gas = xyes
4942 tm_file
="${tm_file} i860/bsd-gas.h"
4947 tm_file
="${tm_file} i860/mach.h"
4948 tmake_file
=t-libc-ok
4950 i860-
*-osf*) # Intel Paragon XP/S, OSF/1AD
4951 tm_file
="${tm_file} svr3.h i860/paragon.h"
4952 xm_defines
="USG SVR3"
4956 tm_file
="${tm_file} svr3.h i860/sysv3.h"
4957 xm_defines
="USG SVR3"
4958 xmake_file
=i860
/x-sysv3
4959 extra_parts
="crtbegin.o crtend.o"
4962 tm_file
="${tm_file} svr4.h i860/sysv4.h"
4963 xm_defines
="USG SVR3"
4964 xmake_file
=i860
/x-sysv4
4966 extra_parts
="crtbegin.o crtend.o"
4968 i960-wrs-vxworks5 | i960-wrs-vxworks5.0
*)
4969 tm_file
="${tm_file} i960/vx960.h"
4970 tmake_file
=i960
/t-vxworks960
4972 thread_file
='vxworks'
4974 i960-wrs-vxworks5
* | i960-wrs-vxworks
)
4975 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
4976 tmake_file
=i960
/t-vxworks960
4978 thread_file
='vxworks'
4981 tm_file
="${tm_file} i960/vx960.h"
4982 tmake_file
=i960
/t-vxworks960
4984 thread_file
='vxworks'
4987 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
4988 tmake_file
=i960
/t-960bare
4992 tmake_file
="i960/t-960bare t-rtems"
4993 tm_file
="${tm_file} dbxcoff.h i960/rtems.h"
4996 i960-
*-*) # Default i960 environment.
5001 tmake_file
="ia64/t-ia64"
5002 target_cpu_default
="0"
5003 if test x
$gas = xyes
5005 target_cpu_default
="${target_cpu_default}|MASK_GNU_AS"
5007 if test x
$gnu_ld = xyes
5009 target_cpu_default
="${target_cpu_default}|MASK_GNU_LD"
5013 tm_file
=ia64
/linux.h
5014 tmake_file
="t-linux ia64/t-ia64"
5015 target_cpu_default
="MASK_GNU_AS|MASK_GNU_LD"
5016 if test x
$enable_threads = xyes
; then
5021 extra_parts
="crtinit.o crtfini.o"
5023 m68000-convergent-sysv
*)
5025 xm_file
="m68k/xm-3b1.h ${xm_file}"
5028 extra_headers
=math-68881.h
5030 m68000-hp-bsd
*) # HP 9000/200 running BSD
5031 tm_file
=m68k
/hp2bsd.h
5032 xmake_file
=m68k
/x-hp2bsd
5034 extra_headers
=math-68881.h
5036 m68000-hp-hpux
*) # HP 9000 series 300
5037 xm_file
="xm-alloca.h ${xm_file}"
5039 if test x
$gas = xyes
5041 xmake_file
=m68k
/x-hp320g
5042 tm_file
=m68k
/hp310g.h
5044 xmake_file
=m68k
/x-hp320
5045 tm_file
=m68k
/hp310.h
5047 install_headers_dir
=install-headers-cpio
5049 extra_headers
=math-68881.h
5054 extra_headers
=math-68881.h
5057 tm_file
=m68k
/sun2o4.h
5059 extra_headers
=math-68881.h
5062 xm_file
="m68k/xm-3b1.h ${xm_file}"
5064 if test x
$gas = xyes
5071 extra_headers
=math-68881.h
5073 m68k-apple-aux
*) # Apple Macintosh running A/UX
5074 xm_defines
="USG AUX"
5075 tmake_file
=m68k
/t-aux
5076 install_headers_dir
=install-headers-cpio
5077 extra_headers
=math-68881.h
5078 extra_parts
="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
5080 if test "$gnu_ld" = yes
5082 tm_file
="${tm_file} m68k/auxgld.h"
5084 tm_file
="${tm_file} m68k/auxld.h"
5086 if test "$gas" = yes
5088 tm_file
="${tm_file} m68k/auxgas.h"
5090 tm_file
="${tm_file} m68k/auxas.h"
5092 tm_file
="${tm_file} m68k/a-ux.h"
5096 tm_file
=m68k
/apollo68.h
5097 xmake_file
=m68k
/x-apollo68
5099 extra_headers
=math-68881.h
5102 m68k-altos-sysv
*) # Altos 3068
5103 if test x
$gas = xyes
5105 tm_file
=m68k
/altos3068.h
5108 echo "The Altos is supported only with the GNU assembler" 1>&2
5111 extra_headers
=math-68881.h
5113 m68k-bull-sysv
*) # Bull DPX/2
5114 if test x
$gas = xyes
5116 if test x
$stabs = xyes
5118 tm_file
=m68k
/dpx2cdbx.h
5120 tm_file
=m68k
/dpx2g.h
5125 xm_file
="xm-alloca.h ${xm_file}"
5127 xmake_file
=m68k
/x-dpx2
5129 extra_headers
=math-68881.h
5131 m68k-atari-sysv4
*) # Atari variant of V.4.
5132 tm_file
=m68k
/atari.h
5133 xm_file
="xm-alloca.h ${xm_file}"
5134 xm_defines
="USG FULL_PROTOTYPES"
5136 extra_parts
="crtbegin.o crtend.o"
5137 extra_headers
=math-68881.h
5140 m68k-motorola-sysv
*)
5141 tm_file
=m68k
/mot3300.h
5142 xm_file
="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
5143 if test x
$gas = xyes
5145 xmake_file
=m68k
/x-mot3300-gas
5146 if test x
$gnu_ld = xyes
5148 tmake_file
=m68k
/t-mot3300-gald
5150 tmake_file
=m68k
/t-mot3300-gas
5154 xmake_file
=m68k
/x-mot3300
5155 if test x
$gnu_ld = xyes
5157 tmake_file
=m68k
/t-mot3300-gld
5159 tmake_file
=m68k
/t-mot3300
5163 gdb_needs_out_file_path
=yes
5164 extra_parts
="crt0.o mcrt0.o"
5165 extra_headers
=math-68881.h
5168 m68k-ncr-sysv
*) # NCR Tower 32 SVR3
5169 tm_file
=m68k
/tower-as.h
5170 xm_defines
="USG SVR3"
5171 xmake_file
=m68k
/x-tower
5172 extra_parts
="crtbegin.o crtend.o"
5173 extra_headers
=math-68881.h
5176 tm_file
=m68k
/plexus.h
5177 xm_file
="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
5180 extra_headers
=math-68881.h
5184 xm_file
="xm-alloca.h ${xm_file}"
5186 extra_headers
=math-68881.h
5189 xm_file
="xm-alloca.h m68k/xm-crds.h ${xm_file}"
5190 xm_defines
="USG unos"
5191 xmake_file
=m68k
/x-crds
5194 extra_headers
=math-68881.h
5196 m68k-cbm-sysv4
*) # Commodore variant of V.4.
5198 xm_file
="xm-alloca.h ${xm_file}"
5199 xm_defines
="USG FULL_PROTOTYPES"
5200 xmake_file
=m68k
/x-amix
5202 extra_parts
="crtbegin.o crtend.o"
5203 extra_headers
=math-68881.h
5207 tm_file
=m68k
/ccur-GAS.h
5208 xmake_file
=m68k
/x-ccur
5209 extra_headers
=math-68881.h
5213 m68k-hp-bsd4.4
*) # HP 9000/3xx running 4.4bsd
5214 tm_file
=m68k
/hp3bsd44.h
5215 xmake_file
=m68k
/x-hp3bsd44
5217 extra_headers
=math-68881.h
5220 m68k-hp-bsd
*) # HP 9000/3xx running Berkeley Unix
5221 tm_file
=m68k
/hp3bsd.h
5223 extra_headers
=math-68881.h
5227 if test x
$with_fp = xno
5229 tm_file
=m68k
/isi-nfp.h
5235 extra_headers
=math-68881.h
5237 m68k-hp-hpux7
*) # HP 9000 series 300 running HPUX version 7.
5238 xm_file
="xm-alloca.h ${xm_file}"
5240 if test x
$gas = xyes
5242 xmake_file
=m68k
/x-hp320g
5243 tm_file
=m68k
/hp320g.h
5245 xmake_file
=m68k
/x-hp320
5246 tm_file
=m68k
/hpux7.h
5248 install_headers_dir
=install-headers-cpio
5250 extra_headers
=math-68881.h
5253 m68k-hp-hpux
*) # HP 9000 series 300
5254 xm_file
="xm-alloca.h ${xm_file}"
5256 if test x
$gas = xyes
5258 xmake_file
=m68k
/x-hp320g
5259 tm_file
=m68k
/hp320g.h
5261 xmake_file
=m68k
/x-hp320
5262 tm_file
=m68k
/hp320.h
5264 install_headers_dir
=install-headers-cpio
5266 extra_headers
=math-68881.h
5270 tm_file
=m68k
/sun3mach.h
5272 extra_headers
=math-68881.h
5276 if test x
$gas = xyes
5278 tm_file
=m68k
/news3gas.h
5280 tm_file
=m68k
/news3.h
5283 extra_headers
=math-68881.h
5286 m68k-sony-bsd
* | m68k-sony-newsos
*)
5287 if test x
$gas = xyes
5289 tm_file
=m68k
/newsgas.h
5294 extra_headers
=math-68881.h
5297 m68k-next-nextstep2
*)
5298 tm_file
=m68k
/next21.h
5299 xm_file
="m68k/xm-next.h ${xm_file}"
5300 tmake_file
=m68k
/t-next
5301 xmake_file
=m68k
/x-next
5302 extra_objs
=nextstep.o
5303 extra_headers
=math-68881.h
5307 m68k-next-nextstep
[34]*)
5309 xm_file
="m68k/xm-next.h ${xm_file}"
5310 tmake_file
=m68k
/t-next
5311 xmake_file
=m68k
/x-next
5312 extra_objs
=nextstep.o
5313 extra_parts
="crtbegin.o crtend.o"
5314 extra_headers
=math-68881.h
5316 if test x
$enable_threads = xyes
; then
5321 if test x
$with_fp = xno
5323 tm_file
=m68k
/sun3n3.h
5325 tm_file
=m68k
/sun3o3.h
5329 extra_headers
=math-68881.h
5331 m68k-sun-sunos
*) # For SunOS 4 (the default).
5332 if test x
$with_fp = xno
5334 tm_file
=m68k
/sun3n.h
5340 extra_headers
=math-68881.h
5343 tm_file
=m68k
/vxm68k.h
5344 tmake_file
=m68k
/t-vxworks68
5345 extra_headers
=math-68881.h
5346 thread_file
='vxworks'
5350 tmake_file
=m68k
/t-m68kbare
5351 tm_file
="m68k/m68k-aout.h libgloss.h"
5352 extra_headers
=math-68881.h
5356 tmake_file
=m68k
/t-m68kbare
5357 tm_file
="m68k/m68k-coff.h dbx.h libgloss.h"
5358 extra_headers
=math-68881.h
5361 m68020-
*-elf* | m68k-
*-elf*)
5362 tm_file
="m68k/m68020-elf.h"
5363 xm_file
=m68k
/xm-m68kv.h
5364 tmake_file
=m68k
/t-m68kelf
5365 header_files
=math-68881.h
5368 if test x
$gas = xyes
5372 tm_file
=m68k
/lynx-ng.h
5374 xm_file
=m68k
/xm-lynx.h
5376 tmake_file
=m68k
/t-lynx
5377 extra_headers
=math-68881.h
5381 tm_file
=m68k
/netbsd.h
5388 # we need collect2 until our bug is fixed...
5391 m68k-
*-sysv3*) # Motorola m68k's running system V.3
5392 xm_file
="xm-alloca.h ${xm_file}"
5394 xmake_file
=m68k
/x-m68kv
5395 extra_parts
="crtbegin.o crtend.o"
5396 extra_headers
=math-68881.h
5399 m68k-
*-sysv4*) # Motorola m68k's running system V.4
5400 tm_file
=m68k
/m68kv4.h
5401 xm_file
="xm-alloca.h ${xm_file}"
5404 extra_parts
="crtbegin.o crtend.o"
5405 extra_headers
=math-68881.h
5408 m68k-
*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
5411 tm_file
=m68k
/linux-aout.h
5412 tmake_file
="t-linux-aout m68k/t-linux-aout"
5413 extra_headers
=math-68881.h
5417 m68k-
*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
5418 # with ELF format using the
5419 # GNU/Linux C library 5
5421 tm_file
=m68k
/linux.h
5422 tmake_file
="t-linux t-linux-gnulibc1 m68k/t-linux"
5423 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5424 extra_headers
=math-68881.h
5428 m68k-
*-linux-gnu*) # Motorola m68k's running GNU/Linux
5429 # with ELF format using glibc 2
5430 # aka the GNU/Linux C library 6.
5432 tm_file
=m68k
/linux.h
5433 tmake_file
="t-linux m68k/t-linux"
5434 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5435 extra_headers
=math-68881.h
5438 if test x
$enable_threads = xyes
; then
5443 tmake_file
=m68k
/t-m68kbare
5444 tm_file
=m68k
/m68k-psos.h
5445 extra_headers
=math-68881.h
5449 tmake_file
="m68k/t-m68kbare t-rtems"
5450 tm_file
=m68k
/rtems.h
5451 extra_headers
=math-68881.h
5454 m68k-
*-rtemself*|m68k-
*-rtems*)
5455 tmake_file
="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
5456 tm_file
=m68k
/rtemself.h
5457 extra_headers
=math-68881.h
5463 tm_file
=m88k
/dguxbcs.h
5464 tmake_file
=m88k
/t-dguxbcs
5468 tmake_file
=m88k
/t-dgux
5471 extra_parts
="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
5472 xmake_file
=m88k
/x-dgux
5473 if test x
$gas = xyes
5475 tmake_file
=m88k
/t-dgux-gas
5478 m88k-dolphin-sysv3
*)
5479 tm_file
=m88k
/dolph.h
5480 extra_parts
="crtbegin.o crtend.o"
5481 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5482 xmake_file
=m88k
/x-dolph
5483 if test x
$gas = xyes
5485 tmake_file
=m88k
/t-m88k-gas
5488 m88k-tektronix-sysv3
)
5489 tm_file
=m88k
/tekXD88.h
5490 extra_parts
="crtbegin.o crtend.o"
5491 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5492 xmake_file
=m88k
/x-tekXD88
5493 if test x
$gas = xyes
5495 tmake_file
=m88k
/t-m88k-gas
5499 tm_file
=m88k
/m88k-aout.h
5502 tm_file
=m88k
/m88k-coff.h
5503 tmake_file
=m88k
/t-bug
5507 extra_parts
="crtbegin.o crtend.o"
5508 if test x
$gas = xyes
5510 tmake_file
=m88k
/t-luna-gas
5512 tmake_file
=m88k
/t-luna
5516 tmake_file
="${tmake_file} m88k/t-luna-gas"
5517 tm_file
="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
5518 xm_file
="xm-openbsd.h m88k/xm-m88k.h ${xm_file}"
5521 tm_file
=m88k
/sysv3.h
5522 extra_parts
="crtbegin.o crtend.o"
5523 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5524 xmake_file
=m88k
/x-sysv3
5525 if test x
$gas = xyes
5527 tmake_file
=m88k
/t-m88k-gas
5531 tm_file
=m88k
/sysv4.h
5532 extra_parts
="crtbegin.o crtend.o"
5533 xmake_file
=m88k
/x-sysv4
5534 tmake_file
=m88k
/t-sysv4
5537 tm_file
=mcore
/mcore-elf.h
5538 tmake_file
=mcore
/t-mcore
5541 tm_file
=mcore
/mcore-pe.h
5542 tmake_file
=mcore
/t-mcore-pe
5544 mips-sgi-irix6
*) # SGI System V.4., IRIX 6
5545 if test "x$gnu_ld" = xyes
5547 tm_file
="mips/iris6.h mips/iris6gld.h"
5549 tm_file
=mips
/iris6.h
5551 tmake_file
=mips
/t-iris6
5552 xm_file
=mips
/xm-iris6.h
5553 xmake_file
=mips
/x-iris6
5554 # if test x$enable_threads = xyes; then
5555 # thread_file='irix'
5559 tm_file
="mips/elf.h mips/vxworks.h"
5560 tmake_file
=mips
/t-ecoff
5563 extra_parts
="crtbegin.o crtend.o"
5564 thread_file
='vxworks'
5566 mips-sgi-irix5cross64
) # Irix5 host, Irix 6 target, cross64
5567 tm_file
="mips/iris6.h mips/cross64.h"
5569 xm_file
="mips/xm-iris5.h"
5570 xmake_file
=mips
/x-iris
5571 tmake_file
=mips
/t-cross64
5572 # See comment in mips/iris[56].h files.
5574 # if test x$enable_threads = xyes; then
5575 # thread_file='irix'
5579 if test x
$gas = xyes
5581 if test x
$stabs = xyes
5583 tm_file
=mips
/iris5gdb.h
5585 tm_file
="mips/sni-svr4.h mips/sni-gas.h"
5588 tm_file
=mips
/sni-svr4.h
5591 xmake_file
=mips
/x-sni-svr4
5592 tmake_file
=mips
/t-mips-gas
5593 if test x
$gnu_ld != xyes
5598 mips-sgi-irix5
*) # SGI System V.4., IRIX 5
5599 if test x
$gas = xyes
5601 tm_file
="mips/iris5.h mips/iris5gas.h"
5602 if test x
$stabs = xyes
5604 tm_file
="${tm_file} dbx.h"
5607 tm_file
=mips
/iris5.h
5610 xm_file
="mips/xm-iris5.h"
5611 xmake_file
=mips
/x-iris
5612 # mips-tfile doesn't work yet
5613 tmake_file
=mips
/t-mips-gas
5614 # See comment in mips/iris5.h file.
5616 # if test x$enable_threads = xyes; then
5617 # thread_file='irix'
5620 mips-sgi-irix4loser
*) # Mostly like a MIPS.
5621 tm_file
="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
5622 if test x
$stabs = xyes
; then
5623 tm_file
="${tm_file} dbx.h"
5626 xmake_file
=mips
/x-iris
5627 if test x
$gas = xyes
5629 tmake_file
=mips
/t-mips-gas
5631 extra_passes
="mips-tfile mips-tdump"
5633 if test x
$gnu_ld != xyes
5637 # if test x$enable_threads = xyes; then
5638 # thread_file='irix'
5641 mips-sgi-irix4
*) # Mostly like a MIPS.
5642 tm_file
="mips/iris3.h ${tm_file} mips/iris4.h"
5643 if test x
$stabs = xyes
; then
5644 tm_file
="${tm_file} dbx.h"
5647 xmake_file
=mips
/x-iris
5648 if test x
$gas = xyes
5650 tmake_file
=mips
/t-mips-gas
5652 extra_passes
="mips-tfile mips-tdump"
5654 if test x
$gnu_ld != xyes
5658 # if test x$enable_threads = xyes; then
5659 # thread_file='irix'
5662 mips-sgi-
*) # Mostly like a MIPS.
5663 tm_file
="mips/iris3.h ${tm_file}"
5664 if test x
$stabs = xyes
; then
5665 tm_file
="${tm_file} dbx.h"
5668 xmake_file
=mips
/x-iris3
5669 if test x
$gas = xyes
5671 tmake_file
=mips
/t-mips-gas
5673 extra_passes
="mips-tfile mips-tdump"
5675 if test x
$gnu_ld != xyes
5680 mips-dec-osfrose
*) # Decstation running OSF/1 reference port with OSF/rose.
5681 tm_file
="mips/osfrose.h ${tm_file}"
5682 xmake_file
=mips
/x-osfrose
5683 tmake_file
=mips
/t-osfrose
5684 extra_objs
=halfpic.o
5687 mips-dec-osf
*) # Decstation running OSF/1 as shipped by DIGITAL
5688 tm_file
=mips
/dec-osf1.h
5689 if test x
$stabs = xyes
; then
5690 tm_file
="${tm_file} dbx.h"
5692 xmake_file
=mips
/x-dec-osf1
5693 if test x
$gas = xyes
5695 tmake_file
=mips
/t-mips-gas
5697 tmake_file
=mips
/t-ultrix
5698 extra_passes
="mips-tfile mips-tdump"
5700 if test x
$gnu_ld != xyes
5705 mips-dec-bsd
*) # Decstation running 4.4 BSD
5706 tm_file
=mips
/dec-bsd.h
5707 if test x
$gas = xyes
5709 tmake_file
=mips
/t-mips-gas
5711 tmake_file
=mips
/t-ultrix
5712 extra_passes
="mips-tfile mips-tdump"
5714 if test x
$gnu_ld != xyes
5719 mipsel-
*-netbsd* | mips-dec-netbsd
*) # Decstation running NetBSD
5720 tm_file
=mips
/netbsd.h
5721 # On NetBSD, the headers are already okay, except for math.h.
5724 mips
*-*-linux*) # Linux MIPS, either endian.
5727 mips
*el-
*) tm_file
="mips/elfl.h mips/linux.h" ;;
5728 *) tm_file
="mips/elf.h mips/linux.h" ;;
5731 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5734 if test x
$enable_threads = xyes
; then
5738 mips
*el-
*-openbsd*) # mips little endian
5739 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5741 mips
*-*-openbsd*) # mips big endian
5742 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5743 tm_file
="mips/openbsd-be.h ${tm_file}"
5745 mips-sony-bsd
* | mips-sony-newsos
*) # Sony NEWS 3600 or risc/news.
5746 tm_file
="mips/news4.h ${tm_file}"
5747 if test x
$stabs = xyes
; then
5748 tm_file
="${tm_file} dbx.h"
5750 if test x
$gas = xyes
5752 tmake_file
=mips
/t-mips-gas
5754 extra_passes
="mips-tfile mips-tdump"
5756 if test x
$gnu_ld != xyes
5760 xmake_file
=mips
/x-sony
5762 mips-sony-sysv
*) # Sony NEWS 3800 with NEWSOS5.0.
5763 # That is based on svr4.
5764 # t-svr4 is not right because this system doesn't use ELF.
5765 tm_file
="mips/news5.h ${tm_file}"
5766 if test x
$stabs = xyes
; then
5767 tm_file
="${tm_file} dbx.h"
5770 if test x
$gas = xyes
5772 tmake_file
=mips
/t-mips-gas
5774 extra_passes
="mips-tfile mips-tdump"
5776 if test x
$gnu_ld != xyes
5781 mips-tandem-sysv4
*) # Tandem S2 running NonStop UX
5782 tm_file
="mips/svr4-5.h mips/svr4-t.h"
5783 if test x
$stabs = xyes
; then
5784 tm_file
="${tm_file} dbx.h"
5787 xmake_file
=mips
/x-sysv
5788 if test x
$gas = xyes
5790 tmake_file
=mips
/t-mips-gas
5791 extra_parts
="crtbegin.o crtend.o"
5793 tmake_file
=mips
/t-mips
5794 extra_passes
="mips-tfile mips-tdump"
5796 if test x
$gnu_ld != xyes
5801 mips-
*-ultrix* | mips-dec-mach3
) # Decstation.
5802 tm_file
="mips/ultrix.h ${tm_file}"
5803 if test x
$stabs = xyes
; then
5804 tm_file
="${tm_file} dbx.h"
5806 xmake_file
=mips
/x-ultrix
5807 if test x
$gas = xyes
5809 tmake_file
=mips
/t-mips-gas
5811 tmake_file
=mips
/t-ultrix
5812 extra_passes
="mips-tfile mips-tdump"
5814 if test x
$gnu_ld != xyes
5819 mips-
*-riscos[56789]bsd
*)
5820 tm_file
=mips
/bsd-5.h
# MIPS BSD 4.3, RISC-OS 5.0
5821 if test x
$stabs = xyes
; then
5822 tm_file
="${tm_file} dbx.h"
5824 if test x
$gas = xyes
5826 tmake_file
=mips
/t-bsd-gas
5828 tmake_file
=mips
/t-bsd
5829 extra_passes
="mips-tfile mips-tdump"
5831 if test x
$gnu_ld != xyes
5836 mips-
*-bsd* | mips-
*-riscosbsd* | mips-
*-riscos[1234]bsd
*)
5837 tm_file
="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
5838 if test x
$stabs = xyes
; then
5839 tm_file
="${tm_file} dbx.h"
5841 if test x
$gas = xyes
5843 tmake_file
=mips
/t-bsd-gas
5845 tmake_file
=mips
/t-bsd
5846 extra_passes
="mips-tfile mips-tdump"
5848 if test x
$gnu_ld != xyes
5853 mips-
*-riscos[56789]sysv4
*)
5854 tm_file
=mips
/svr4-5.h
# MIPS System V.4., RISC-OS 5.0
5855 if test x
$stabs = xyes
; then
5856 tm_file
="${tm_file} dbx.h"
5858 xmake_file
=mips
/x-sysv
5859 if test x
$gas = xyes
5861 tmake_file
=mips
/t-svr4-gas
5863 tmake_file
=mips
/t-svr4
5864 extra_passes
="mips-tfile mips-tdump"
5866 if test x
$gnu_ld != xyes
5871 mips-
*-sysv4* | mips-
*-riscos[1234]sysv4
* | mips-
*-riscossysv4*)
5872 tm_file
="mips/svr4-4.h ${tm_file}"
5873 if test x
$stabs = xyes
; then
5874 tm_file
="${tm_file} dbx.h"
5877 xmake_file
=mips
/x-sysv
5878 if test x
$gas = xyes
5880 tmake_file
=mips
/t-svr4-gas
5882 tmake_file
=mips
/t-svr4
5883 extra_passes
="mips-tfile mips-tdump"
5885 if test x
$gnu_ld != xyes
5890 mips-
*-riscos[56789]sysv
*)
5891 tm_file
=mips
/svr3-5.h
# MIPS System V.3, RISC-OS 5.0
5892 if test x
$stabs = xyes
; then
5893 tm_file
="${tm_file} dbx.h"
5896 xmake_file
=mips
/x-sysv
5897 if test x
$gas = xyes
5899 tmake_file
=mips
/t-svr3-gas
5901 tmake_file
=mips
/t-svr3
5902 extra_passes
="mips-tfile mips-tdump"
5904 if test x
$gnu_ld != xyes
5909 mips-
*-sysv* | mips-
*-riscos*sysv
*)
5910 tm_file
="mips/svr3-4.h ${tm_file}"
5911 if test x
$stabs = xyes
; then
5912 tm_file
="${tm_file} dbx.h"
5915 xmake_file
=mips
/x-sysv
5916 if test x
$gas = xyes
5918 tmake_file
=mips
/t-svr3-gas
5920 tmake_file
=mips
/t-svr3
5921 extra_passes
="mips-tfile mips-tdump"
5923 if test x
$gnu_ld != xyes
5928 mips-
*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
5929 tm_file
=mips
/mips-5.h
5930 if test x
$stabs = xyes
; then
5931 tm_file
="${tm_file} dbx.h"
5933 if test x
$gas = xyes
5935 tmake_file
=mips
/t-mips-gas
5937 extra_passes
="mips-tfile mips-tdump"
5939 if test x
$gnu_ld != xyes
5947 tm_file
=mips
/ecoffl.h
5948 if test x
$stabs = xyes
; then
5949 tm_file
="${tm_file} dbx.h"
5951 tmake_file
=mips
/t-ecoff
5954 tm_file
="gofast.h mips/ecoff.h"
5955 if test x
$stabs = xyes
; then
5956 tm_file
="${tm_file} dbx.h"
5958 tmake_file
=mips
/t-ecoff
5961 tm_file
="mips/elfl.h"
5962 tmake_file
=mips
/t-elf
5965 tm_file
="mips/elf.h"
5966 tmake_file
=mips
/t-elf
5969 tm_file
="mips/elfl64.h"
5970 tmake_file
=mips
/t-elf
5972 mips64orionel-
*-elf*)
5973 tm_file
="mips/elforion.h mips/elfl64.h"
5974 tmake_file
=mips
/t-elf
5977 tm_file
="mips/elf64.h"
5978 tmake_file
=mips
/t-elf
5981 tm_file
="mips/elforion.h mips/elf64.h"
5982 tmake_file
=mips
/t-elf
5984 mips64orion-
*-rtems*)
5985 tm_file
="mips/elforion.h mips/elf64.h mips/rtems64.h"
5986 tmake_file
="mips/t-elf t-rtems"
5989 tm_file
="mips/r3900.h mips/elfl.h mips/abi64.h"
5990 tmake_file
=mips
/t-r3900
5993 tm_file
="mips/r3900.h mips/elf.h mips/abi64.h"
5994 tmake_file
=mips
/t-r3900
5996 mips-
*-*) # Default MIPS RISC-OS 4.0.
5997 if test x
$stabs = xyes
; then
5998 tm_file
="${tm_file} dbx.h"
6000 if test x
$gas = xyes
6002 tmake_file
=mips
/t-mips-gas
6004 extra_passes
="mips-tfile mips-tdump"
6006 if test x
$gnu_ld != xyes
6014 tm_file
="mn10200/mn10200.h"
6015 if test x
$stabs = xyes
6017 tm_file
="${tm_file} dbx.h"
6023 tm_file
="mn10300/mn10300.h"
6024 if test x
$stabs = xyes
6026 tm_file
="${tm_file} dbx.h"
6031 tm_file
=ns32k
/encore.h
6035 tm_file
=ns32k
/sequent.h
6039 tm_file
=ns32k
/tek6100.h
6043 tm_file
=ns32k
/tek6200.h
6046 # This has not been updated to GCC 2.
6049 # xmake_file=ns32k/x-genix
6050 # tm_file=ns32k/genix.h
6054 tm_file
=ns32k
/merlin.h
6058 tm_file
=ns32k
/pc532-mach.h
6062 tm_file
=ns32k
/pc532-min.h
6063 xm_file
="ns32k/xm-pc532-min.h ${xm-file}"
6068 tm_file
=ns32k
/netbsd.h
6069 xm_file
="ns32k/xm-netbsd.h ${xm_file}"
6070 # On NetBSD, the headers are already okay, except for math.h.
6075 tm_file
="${tm_file} pdp11/2bsd.h"
6084 # This has not been updated to GCC 2.
6087 # xmake_file=pyr/x-pyr
6092 tm_file
="svr4.h pj/linux.h ${tm_file}"
6097 tm_file
="svr4.h pj/pjl.h ${tm_file}"
6104 xmake_file
=romp
/x-mach
6111 tmake_file
="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
6115 tm_file
=rs6000
/beos.h
6116 xm_file
=rs6000
/xm-beos.h
6117 tmake_file
=rs6000
/t-beos
6118 xmake_file
=rs6000
/x-beos
6121 tm_file
=rs6000
/sysv4.h
6122 xm_file
="rs6000/xm-sysv4.h"
6123 xm_defines
="USG POSIX"
6124 extra_headers
=ppc-asm.h
6125 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
6126 xmake_file
=rs6000
/x-sysv4
6129 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
6130 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6131 extra_headers
=ppc-asm.h
6134 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
6135 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6136 extra_headers
=ppc-asm.h
6139 tm_file
="rs6000/sysv4.h"
6140 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6141 extra_headers
=ppc-asm.h
6144 tm_file
="rs6000/sysv4.h rs6000/eabi.h"
6145 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6146 extra_headers
=ppc-asm.h
6149 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
6150 tmake_file
="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
6151 extra_headers
=ppc-asm.h
6153 powerpc-
*-linux-gnulibc1)
6154 tm_file
="rs6000/sysv4.h rs6000/linux.h"
6155 xm_file
=rs6000
/xm-sysv4.h
6156 out_file
=rs6000
/rs6000.c
6157 tmake_file
="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
6159 extra_headers
=ppc-asm.h
6160 if test x
$enable_threads = xyes
; then
6164 powerpc-
*-linux-gnu*)
6165 tm_file
="rs6000/sysv4.h rs6000/linux.h"
6166 xm_file
="rs6000/xm-sysv4.h"
6167 xm_defines
="USG ${xm_defines}"
6168 out_file
=rs6000
/rs6000.c
6169 tmake_file
="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
6171 extra_headers
=ppc-asm.h
6172 if test x
$enable_threads = xyes
; then
6176 powerpc-wrs-vxworks
*)
6178 xm_file
="rs6000/xm-sysv4.h"
6179 xm_defines
="USG POSIX"
6180 tm_file
="rs6000/sysv4.h rs6000/vxppc.h"
6181 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6182 extra_headers
=ppc-asm.h
6183 thread_file
='vxworks'
6185 powerpcle-wrs-vxworks
*)
6187 xm_file
="rs6000/xm-sysv4.h"
6188 xm_defines
="USG POSIX"
6189 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
6190 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6191 extra_headers
=ppc-asm.h
6192 thread_file
='vxworks'
6195 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h"
6196 xm_file
="rs6000/xm-sysv4.h"
6197 xm_defines
="USG POSIX"
6198 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
6199 xmake_file
=rs6000
/x-sysv4
6200 extra_headers
=ppc-asm.h
6203 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h"
6204 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6205 extra_headers
=ppc-asm.h
6207 powerpcle-
*-eabisim*)
6208 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
6209 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6210 extra_headers
=ppc-asm.h
6213 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
6214 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6215 extra_headers
=ppc-asm.h
6217 powerpcle-
*-solaris2*)
6218 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
6219 xm_file
="rs6000/xm-sysv4.h"
6220 xm_defines
="USG POSIX"
6221 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
6222 xmake_file
=rs6000
/x-sysv4
6223 extra_headers
=ppc-asm.h
6225 rs6000-ibm-aix3.
[01]*)
6226 tm_file
=rs6000
/aix31.h
6227 xmake_file
=rs6000
/x-aix31
6231 rs6000-ibm-aix3.2.
[456789]* | powerpc-ibm-aix3.2.
[456789]*)
6232 tm_file
=rs6000
/aix3newas.h
6233 if test x
$host != x
$target
6235 tmake_file
=rs6000
/t-xnewas
6237 tmake_file
=rs6000
/t-newas
6242 rs6000-ibm-aix4.
[12]* | powerpc-ibm-aix4.
[12]*)
6243 tm_file
=rs6000
/aix41.h
6244 if test x
$host != x
$target
6246 tmake_file
=rs6000
/t-xnewas
6248 tmake_file
=rs6000
/t-newas
6250 if test "$gnu_ld" = yes
6252 xmake_file
=rs6000
/x-aix41-gld
6254 tmake_file
="rs6000/t-newas rs6000/t-aix41"
6256 xmake_file
=rs6000
/x-aix41
6260 rs6000-ibm-aix4.
[3456789]* | powerpc-ibm-aix4.
[3456789]*)
6261 tm_file
=rs6000
/aix43.h
6262 tmake_file
=rs6000
/t-aix43
6263 xmake_file
=rs6000
/x-aix41
6267 rs6000-ibm-aix
[56789].
* | powerpc-ibm-aix
[56789].
*)
6268 tm_file
=rs6000
/aix43.h
6269 tmake_file
=rs6000
/t-aix43
6270 xmake_file
=rs6000
/x-aix41
6283 tm_file
=rs6000
/mach.h
6284 xm_file
="${xm_file} rs6000/xm-mach.h"
6285 xmake_file
=rs6000
/x-mach
6289 tm_file
=rs6000
/lynx.h
6290 xm_file
=rs6000
/xm-lynx.h
6291 tmake_file
=rs6000
/t-rs6000
6292 xmake_file
=rs6000
/x-lynx
6300 tmake_file
="sh/t-sh t-rtems"
6301 tm_file
=sh
/rtemself.h
6305 tmake_file
="sh/t-sh t-rtems"
6314 xm_file
="xm-alloca.h ${xm_file}"
6317 sparc-wrs-vxworks
* | sparclite-wrs-vxworks
*)
6318 tm_file
=sparc
/vxsparc.h
6319 tmake_file
=sparc
/t-vxsparc
6321 thread_file
='vxworks'
6324 tmake_file
=sparc
/t-sparcbare
6325 tm_file
="sparc/aout.h libgloss.h"
6328 tm_file
=sparc
/netbsd.h
6333 # we need collect2 until our bug is fixed...
6341 tmake_file
=sparc
/t-elf
6342 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
6346 sparc-
*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
6347 xm_file
="${xm_file} sparc/xm-linux.h"
6348 tm_file
=sparc
/linux-aout.h
6352 sparc-
*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
6353 xm_file
="${xm_file} sparc/xm-linux.h"
6355 tm_file
=sparc
/linux.h
6356 tmake_file
="t-linux t-linux-gnulibc1"
6357 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6361 sparc-
*-linux-gnu*) # Sparc's running GNU/Linux, libc6
6362 xm_file
="${xm_file} sparc/xm-linux.h"
6364 tm_file
=sparc
/linux.h
6365 tmake_file
="t-linux"
6366 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6368 if test x
$enable_threads = xyes
; then
6374 if test x
$gas = xyes
6376 tm_file
=sparc
/lynx.h
6378 tm_file
=sparc
/lynx-ng.h
6380 xm_file
=sparc
/xm-lynx.h
6381 tmake_file
=sparc
/t-sunos41
6385 tmake_file
="sparc/t-sparcbare t-rtems"
6386 tm_file
=sparc
/rtems.h
6388 sparc-
*-rtems*|sparc-
*-rtemself*)
6389 tm_file
="sparc/rtemself.h"
6390 tmake_file
="sparc/t-elf t-rtems"
6391 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
6395 sparcv9-
*-solaris2*)
6396 if test x
$gnu_ld = xyes
6398 tm_file
=sparc
/sol2-64.h
6400 tm_file
=sparc
/sol2-sld-64.h
6402 xm_file
="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
6403 xm_defines
="USG POSIX"
6404 tmake_file
="sparc/t-sol2 sparc/t-sol2-64"
6405 xmake_file
=sparc
/x-sysv4
6406 extra_parts
="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
6408 if test x
${enable_threads} = x
; then
6409 enable_threads
=$have_pthread_h
6410 if test x
${enable_threads} = x
; then
6411 enable_threads
=$have_thread_h
6414 if test x
${enable_threads} = xyes
; then
6415 if test x
${have_pthread_h} = xyes
; then
6418 thread_file
='solaris'
6422 sparc-hal-solaris2
*)
6423 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6424 xm_defines
="USG POSIX"
6425 tm_file
="sparc/sol2.h sparc/hal.h"
6426 tmake_file
="sparc/t-halos sparc/t-sol2"
6427 xmake_file
=sparc
/x-sysv4
6428 extra_parts
="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
6437 thread_file
='solaris'
6440 if test x
$gnu_ld = xyes
6442 tm_file
=sparc
/sol2.h
6444 tm_file
=sparc
/sol2-sld.h
6446 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6447 xm_defines
="USG POSIX"
6448 tmake_file
=sparc
/t-sol2
6449 xmake_file
=sparc
/x-sysv4
6450 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
6452 *-*-solaris2.
[0-6] |
*-*-solaris2.
[0-6].
*) ;;
6454 if test x
$gnu_ld = xyes
6456 tm_file
=sparc
/sol2-64.h
6458 tm_file
=sparc
/sol2-sld-64.h
6460 tmake_file
="$tmake_file sparc/t-sol2-64"
6471 if test x
${enable_threads} = x
; then
6472 enable_threads
=$have_pthread_h
6473 if test x
${enable_threads} = x
; then
6474 enable_threads
=$have_thread_h
6477 if test x
${enable_threads} = xyes
; then
6478 if test x
${have_pthread_h} = xyes
; then
6481 thread_file
='solaris'
6486 tm_file
=sparc
/sunos4.h
6487 tmake_file
=sparc
/t-sunos40
6491 tm_file
=sparc
/sunos4.h
6492 tmake_file
=sparc
/t-sunos41
6494 if test x
$gas = xyes
; then
6495 tm_file
="${tm_file} sparc/sun4gas.h"
6499 tm_file
=sparc
/sun4o3.h
6503 tm_file
=sparc
/sysv4.h
6504 xm_file
="sparc/xm-sysv4.h"
6505 xm_defines
="USG POSIX"
6507 xmake_file
=sparc
/x-sysv4
6508 extra_parts
="crtbegin.o crtend.o"
6511 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6512 xm_defines
="USG POSIX"
6513 tm_file
=sparc
/vxsim.h
6514 tmake_file
=sparc
/t-vxsparc
6515 xmake_file
=sparc
/x-sysv4
6518 tm_file
="sparc/splet.h libgloss.h"
6519 tmake_file
=sparc
/t-splet
6522 tm_file
="sparc/litecoff.h libgloss.h"
6523 tmake_file
=sparc
/t-sparclite
6526 tm_file
="sparc/lite.h aoutos.h libgloss.h"
6527 tmake_file
=sparc
/t-sparclite
6530 tm_file
="sparc/liteelf.h"
6531 tmake_file
=sparc
/t-sparclite
6532 extra_parts
="crtbegin.o crtend.o"
6535 tm_file
="sparc/sp86x-aout.h aoutos.h libgloss.h"
6536 tmake_file
=sparc
/t-sp86x
6539 tm_file
="sparc/sp86x-elf.h"
6540 tmake_file
=sparc
/t-sp86x
6541 extra_parts
="crtbegin.o crtend.o"
6544 tmake_file
=sparc
/t-sp64
6545 tm_file
=sparc
/sp64-aout.h
6548 tmake_file
=sparc
/t-sp64
6549 tm_file
=sparc
/sp64-elf.h
6550 extra_parts
="crtbegin.o crtend.o"
6552 sparc64-
*-linux*) # 64-bit Sparc's running GNU/Linux
6553 tmake_file
="t-linux sparc/t-linux64"
6554 xm_file
="sparc/xm-sp64.h sparc/xm-linux.h"
6555 tm_file
=sparc
/linux64.h
6557 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6559 if test x
$enable_threads = xyes
; then
6564 # This hasn't been upgraded to GCC 2.
6565 # tahoe-harris-*) # Harris tahoe, using COFF.
6566 # tm_file=tahoe/harris.h
6568 # tahoe-*-bsd*) # tahoe running BSD
6572 { echo "configure: error:
6573 *** The Thumb targets have been depreciated. The equivalent
6574 *** ARM based toolchain can now generated Thumb instructions
6575 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
6577 # This hasn't been upgraded to GCC 2.
6584 tm_file
="v850/rtems.h"
6585 xm_file
="v850/xm-v850.h"
6586 tmake_file
="v850/t-v850 t-rtems"
6587 if test x
$stabs = xyes
6589 tm_file
="${tm_file} dbx.h"
6594 target_cpu_default
="TARGET_CPU_generic"
6596 tm_file
="v850/v850.h"
6597 xm_file
="v850/xm-v850.h"
6598 tmake_file
=v850
/t-v850
6599 if test x
$stabs = xyes
6601 tm_file
="${tm_file} dbx.h"
6605 vax-
*-bsd*) # vaxen running BSD
6609 vax-
*-sysv*) # vaxen running system V
6610 tm_file
="${tm_file} vax/vaxv.h"
6615 tm_file
="${tm_file} netbsd.h vax/netbsd.h"
6621 tmake_file
="${tmake_file} vax/t-openbsd"
6622 tm_file
="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
6623 xm_file
="xm-openbsd.h vax/xm-vax.h"
6627 vax-
*-ultrix*) # vaxen running ultrix
6628 tm_file
="${tm_file} vax/ultrix.h"
6632 vax-
*-vms*) # vaxen running VMS
6633 xm_file
=vax
/xm-vms.h
6637 vax-
*-*) # vax default entry
6641 xm_file
="${xm_file} xm-svr3"
6645 echo "Configuration $machine not supported" 1>&2
6652 ;; # Existing GNU/Linux systems do not use the GNU setup.
6654 # On the GNU system, the setup is just about the same on
6655 # each different CPU. The specific machines that GNU
6656 # supports are matched above and just set $cpu_type.
6657 xm_file
="xm-gnu.h ${xm_file}"
6658 tm_file
=${cpu_type}/gnu.h
6659 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
6660 # GNU always uses ELF.
6662 # GNU tools are the only tools.
6665 xmake_file
=x-linux
# These details are the same as Linux.
6666 tmake_file
=t-gnu
# These are not.
6669 xmake_try_sysv
=x-sysv
6670 install_headers_dir
=install-headers-cpio
6673 install_headers_dir
=install-headers-cpio
6677 # Distinguish i[34567]86
6678 # Also, do not run mips-tfile on MIPS if using gas.
6679 # Process --with-cpu= for PowerPC/rs6000
6680 target_cpu_default2
=
6683 target_cpu_default2
=1
6686 case $target_alias in
6688 target_cpu_default2
=4
6691 target_cpu_default2
=2
6695 i686-
*-* | i786-
*-*)
6696 target_cpu_default2
=3
6701 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
6704 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
6707 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
6710 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX"
6713 target_cpu_default2
="MASK_CPU_EV5"
6717 if test x
$gas = xyes
6719 if test "$target_cpu_default2" = ""
6721 target_cpu_default2
="MASK_GAS"
6723 target_cpu_default2
="${target_cpu_default2}|MASK_GAS"
6728 case "x$with_cpu" in
6731 target_cpu_default2
="TARGET_CPU_generic"
6734 # Distinguish cores, and major variants
6735 # arm7m doesn't exist, but D & I don't affect code
6736 xarm
[23678] | xarm250 | xarm
[67][01]0 \
6737 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
6738 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
6739 | xstrongarm | xstrongarm110 | xstrongarm1100
)
6740 target_cpu_default2
="TARGET_CPU_$with_cpu"
6744 echo "--with-cpu must be passed a value" 1>&2
6749 if test x
$pass2done = xyes
6751 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6758 mips
*-*-ecoff* | mips
*-*-elf*)
6759 if test x
$gas = xyes
6761 if test x
$gnu_ld = xyes
6763 target_cpu_default2
="MASK_GAS|MASK_SPLIT_ADDR"
6765 target_cpu_default2
="MASK_GAS"
6770 if test x
$gas = xyes
6772 target_cpu_default2
="MASK_GAS"
6775 powerpc
*-*-* | rs6000-
*-*)
6776 case "x$with_cpu" in
6780 xcommon | xpower | xpower2 | xpowerpc | xrios \
6781 | xrios1 | xrios2 | xrsc | xrsc1 \
6782 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
6783 | xec603e | x740 | x750 | x401 \
6784 | x403 | x505 | x801 | x821 | x823 | x860
)
6785 target_cpu_default2
="\"$with_cpu\""
6789 echo "--with-cpu must be passed a value" 1>&2
6794 if test x
$pass2done = xyes
6796 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6803 case ".$with_cpu" in
6805 target_cpu_default2
=TARGET_CPU_
"`echo $machine | sed 's/-.*$//'`"
6807 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9
)
6808 target_cpu_default2
="TARGET_CPU_$with_cpu"
6811 if test x
$pass2done = xyes
6813 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6821 if test "$target_cpu_default2" != ""
6823 if test "$target_cpu_default" != ""
6825 target_cpu_default
="(${target_cpu_default}|${target_cpu_default2})"
6827 target_cpu_default
=$target_cpu_default2
6831 # No need for collect2 if we have the GNU linker.
6832 # Actually, there is now; GNU ld doesn't handle the EH info or
6833 # collecting for shared libraries.
6840 # Save data on machine being used to compile GCC in build_xm_file.
6841 # Save data on host machine in vars host_xm_file and host_xmake_file.
6842 if test x
$pass1done = x
6844 if test x
"$xm_file" = x
6845 then build_xm_file
=$cpu_type/xm-
$cpu_type.h
6846 else build_xm_file
=$xm_file
6848 build_xm_defines
=$xm_defines
6849 build_install_headers_dir
=$install_headers_dir
6850 build_exeext
=$exeext
6853 if test x
$pass2done = x
6855 if test x
"$xm_file" = x
6856 then host_xm_file
=$cpu_type/xm-
$cpu_type.h
6857 else host_xm_file
=$xm_file
6859 host_xm_defines
=$xm_defines
6860 if test x
"$xmake_file" = x
6861 then xmake_file
=$cpu_type/x-
$cpu_type
6863 host_xmake_file
="$xmake_file"
6864 host_truncate_target
=$truncate_target
6865 host_extra_gcc_objs
=$extra_gcc_objs
6866 host_extra_objs
=$extra_host_objs
6873 extra_objs
="${host_extra_objs} ${extra_objs}"
6875 # Default the target-machine variables that were not explicitly set.
6876 if test x
"$tm_file" = x
6877 then tm_file
=$cpu_type/$cpu_type.h
; fi
6879 if test x
$extra_headers = x
6880 then extra_headers
=; fi
6882 if test x
"$xm_file" = x
6883 then xm_file
=$cpu_type/xm-
$cpu_type.h
; fi
6885 if test x
$md_file = x
6886 then md_file
=$cpu_type/$cpu_type.md
; fi
6888 if test x
$out_file = x
6889 then out_file
=$cpu_type/$cpu_type.c
; fi
6891 if test x
"$tmake_file" = x
6892 then tmake_file
=$cpu_type/t-
$cpu_type
6895 if test x
"$dwarf2" = xyes
6896 then tm_file
="$tm_file tm-dwarf2.h"
6899 if test x
$float_format = x
6900 then float_format
=i64
6903 if test $float_format = none
6904 then float_h_file
=Makefile.
in
6905 else float_h_file
=float-
$float_format.h
6908 # Handle cpp installation.
6909 if test x
$enable_cpp != xno
6911 tmake_file
="$tmake_file t-install-cpp"
6914 # Say what files are being used for the output code and MD file.
6915 echo "Using \`$srcdir/config/$out_file' to output insns."
6916 echo "Using \`$srcdir/config/$md_file' as machine description file."
6919 for f
in $tm_file; do
6922 if test $count = ax
; then
6923 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
6925 echo "Using the following target machine macro files:"
6926 for f
in $tm_file; do
6927 echo " $srcdir/config/$f"
6932 for f
in $host_xm_file; do
6935 if test $count = ax
; then
6936 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
6938 echo "Using the following host machine macro files:"
6939 for f
in $host_xm_file; do
6940 echo " $srcdir/config/$f"
6944 if test "$host_xm_file" != "$build_xm_file"; then
6946 for f
in $build_xm_file; do
6949 if test $count = ax
; then
6950 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
6952 echo "Using the following build machine macro files:"
6953 for f
in $build_xm_file; do
6954 echo " $srcdir/config/$f"
6959 if test x
$thread_file = x
; then
6960 if test x
$target_thread_file != x
; then
6961 thread_file
=$target_thread_file
6963 thread_file
='single'
6967 # Set up the header files.
6968 # $links is the list of header files to create.
6969 # $vars is the list of shell variables with file names to include.
6970 # auto-host.h is the file containing items generated by autoconf and is
6971 # the first file included by config.h.
6973 host_xm_file
="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
6975 # If host=build, it is correct to have hconfig include auto-host.h
6976 # as well. If host!=build, we are in error and need to do more
6977 # work to find out the build config parameters.
6978 if test x
$host = x
$build
6980 build_xm_file
="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
6982 # We create a subdir, then run autoconf in the subdir.
6983 # To prevent recursion we set host and build for the new
6984 # invocation of configure to the build for this invocation
6991 /*) realsrcdir
=${srcdir};;
6992 *) realsrcdir
=..
/${srcdir};;
6994 CC
=${CC_FOR_BUILD} ${realsrcdir}/configure \
6995 --target=$target --host=$build --build=$build
6997 # We just finished tests for the build machine, so rename
6998 # the file auto-build.h in the gcc directory.
6999 mv auto-host.h ..
/auto-build.h
7002 build_xm_file
="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
7005 xm_file
="gansidecl.h ${xm_file}"
7006 tm_file
="gansidecl.h ${tm_file}"
7008 vars
="host_xm_file tm_file tm_p_file xm_file build_xm_file"
7009 links
="config.h tm.h tm_p.h tconfig.h hconfig.h"
7010 defines
="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
7013 if test -f config.status
; then mv -f config.status config.bak
; fi
7016 while test -n "$vars"
7018 set $vars; var
=$1; shift; vars
=$
*
7019 set $links; link
=$1; shift; links
=$
*
7020 set $defines; define
=$1; shift; defines
=$
*
7023 # Make sure the file is created, even if it is empty.
7026 # Define TARGET_CPU_DEFAULT if the system wants one.
7027 # This substitutes for lots of *.h files.
7028 if test "$target_cpu_default" != "" -a $link = tm.h
7030 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
7033 for file in `eval echo '$'$var`; do
7035 auto-host.h | auto-build.h
)
7038 echo '#ifdef IN_GCC' >>$link
7041 echo "#include \"$file\"" >>$link
7043 auto-host.h | auto-build.h
)
7046 echo '#endif' >>$link
7051 for def
in `eval echo '$'$define`; do
7052 echo "#ifndef $def" >>$link
7053 echo "#define $def" >>$link
7054 echo "#endif" >>$link
7058 # Truncate the target if necessary
7059 if test x
$host_truncate_target != x
; then
7060 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
7063 # Get the version trigger filename from the toplevel
7064 if test "${with_gcc_version_trigger+set}" = set; then
7065 gcc_version_trigger
=$with_gcc_version_trigger
7067 gcc_version_trigger
=${srcdir}/version.c
7069 gcc_version
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
7071 # Internationalization
7073 VERSION
="$gcc_version"
7074 cat >> confdefs.h
<<EOF
7075 #define PACKAGE "$PACKAGE"
7078 cat >> confdefs.h
<<EOF
7079 #define VERSION "$VERSION"
7087 # Enable NLS support by default
7088 # Check whether --enable-nls or --disable-nls was given.
7089 if test "${enable_nls+set}" = set; then
7090 enableval
="$enable_nls"
7097 # if cross compiling, disable NLS support.
7098 # It's not worth the trouble, at least for now.
7100 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
7101 echo "configure: warning: Disabling NLS support for canadian cross compiler." 1>&2
7106 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
7107 echo "configure:7108: checking for strerror in -lcposix" >&5
7108 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
7109 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7110 echo $ac_n "(cached) $ac_c" 1>&6
7112 ac_save_LIBS
="$LIBS"
7113 LIBS
="-lcposix $LIBS"
7114 cat > conftest.
$ac_ext <<EOF
7115 #line 7116 "configure"
7116 #include "confdefs.h"
7117 /* Override any gcc2 internal prototype to avoid an error. */
7118 /* We use char because int might match the return type of a gcc2
7119 builtin and then its argument prototype would still apply. */
7126 if { (eval echo configure
:7127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7128 eval "ac_cv_lib_$ac_lib_var=yes"
7130 echo "configure: failed program was:" >&5
7131 cat conftest.
$ac_ext >&5
7133 eval "ac_cv_lib_$ac_lib_var=no"
7136 LIBS
="$ac_save_LIBS"
7139 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7140 echo "$ac_t""yes" 1>&6
7141 LIBS
="$LIBS -lcposix"
7143 echo "$ac_t""no" 1>&6
7148 echo $ac_n "checking for working const""... $ac_c" 1>&6
7149 echo "configure:7150: checking for working const" >&5
7150 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
7151 echo $ac_n "(cached) $ac_c" 1>&6
7153 cat > conftest.
$ac_ext <<EOF
7154 #line 7155 "configure"
7155 #include "confdefs.h"
7159 /* Ultrix mips cc rejects this. */
7160 typedef int charset[2]; const charset x;
7161 /* SunOS 4.1.1 cc rejects this. */
7162 char const *const *ccp;
7164 /* NEC SVR4.0.2 mips cc rejects this. */
7165 struct point {int x, y;};
7166 static struct point const zero = {0,0};
7167 /* AIX XL C 1.02.0.0 rejects this.
7168 It does not let you subtract one const X* pointer from another in an arm
7169 of an if-expression whose if-part is not a constant expression */
7170 const char *g = "string";
7171 ccp = &g + (g ? g-g : 0);
7172 /* HPUX 7.0 cc rejects these. */
7175 ccp = (char const *const *) p;
7176 { /* SCO 3.2v4 cc rejects this. */
7178 char const *s = 0 ? (char *) 0 : (char const *) 0;
7182 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7184 const int *foo = &x[0];
7187 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7188 typedef const int *iptr;
7192 { /* AIX XL C 1.02.0.0 rejects this saying
7193 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7194 struct s { int j; const int *ap[3]; };
7195 struct s *b; b->j = 5;
7197 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7203 if { (eval echo configure
:7204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7207 echo "configure: failed program was:" >&5
7208 cat conftest.
$ac_ext >&5
7215 echo "$ac_t""$ac_cv_c_const" 1>&6
7216 if test $ac_cv_c_const = no
; then
7217 cat >> confdefs.h
<<\EOF
7223 echo $ac_n "checking for off_t""... $ac_c" 1>&6
7224 echo "configure:7225: checking for off_t" >&5
7225 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
7226 echo $ac_n "(cached) $ac_c" 1>&6
7228 cat > conftest.
$ac_ext <<EOF
7229 #line 7230 "configure"
7230 #include "confdefs.h"
7231 #include <sys/types.h>
7237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7238 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
7240 ac_cv_type_off_t
=yes
7248 echo "$ac_t""$ac_cv_type_off_t" 1>&6
7249 if test $ac_cv_type_off_t = no
; then
7250 cat >> confdefs.h
<<\EOF
7256 echo $ac_n "checking for size_t""... $ac_c" 1>&6
7257 echo "configure:7258: checking for size_t" >&5
7258 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
7259 echo $ac_n "(cached) $ac_c" 1>&6
7261 cat > conftest.
$ac_ext <<EOF
7262 #line 7263 "configure"
7263 #include "confdefs.h"
7264 #include <sys/types.h>
7270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7271 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
7273 ac_cv_type_size_t
=yes
7276 ac_cv_type_size_t
=no
7281 echo "$ac_t""$ac_cv_type_size_t" 1>&6
7282 if test $ac_cv_type_size_t = no
; then
7283 cat >> confdefs.h
<<\EOF
7284 #define size_t unsigned
7289 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7290 # for constant arguments. Useless!
7291 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
7292 echo "configure:7293: checking for working alloca.h" >&5
7293 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
7294 echo $ac_n "(cached) $ac_c" 1>&6
7296 cat > conftest.
$ac_ext <<EOF
7297 #line 7298 "configure"
7298 #include "confdefs.h"
7301 char *p = alloca(2 * sizeof(int));
7304 if { (eval echo configure
:7305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7306 ac_cv_header_alloca_h
=yes
7308 echo "configure: failed program was:" >&5
7309 cat conftest.
$ac_ext >&5
7311 ac_cv_header_alloca_h
=no
7316 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
7317 if test $ac_cv_header_alloca_h = yes; then
7318 cat >> confdefs.h
<<\EOF
7319 #define HAVE_ALLOCA_H 1
7324 echo $ac_n "checking for alloca""... $ac_c" 1>&6
7325 echo "configure:7326: checking for alloca" >&5
7326 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
7327 echo $ac_n "(cached) $ac_c" 1>&6
7329 cat > conftest.
$ac_ext <<EOF
7330 #line 7331 "configure"
7331 #include "confdefs.h"
7334 # define alloca __builtin_alloca
7337 # include <malloc.h>
7338 # define alloca _alloca
7341 # include <alloca.h>
7346 # ifndef alloca /* predefined by HP cc +Olibcalls */
7355 char *p = (char *) alloca(1);
7358 if { (eval echo configure
:7359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7360 ac_cv_func_alloca_works
=yes
7362 echo "configure: failed program was:" >&5
7363 cat conftest.
$ac_ext >&5
7365 ac_cv_func_alloca_works
=no
7370 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
7371 if test $ac_cv_func_alloca_works = yes; then
7372 cat >> confdefs.h
<<\EOF
7373 #define HAVE_ALLOCA 1
7378 if test $ac_cv_func_alloca_works = no
; then
7379 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7380 # that cause trouble. Some versions do not even contain alloca or
7381 # contain a buggy version. If you still want to use their alloca,
7382 # use ar to extract alloca.o from them instead of compiling alloca.c.
7383 ALLOCA
=alloca.
${ac_objext}
7384 cat >> confdefs.h
<<\EOF
7389 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
7390 echo "configure:7391: checking whether alloca needs Cray hooks" >&5
7391 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
7392 echo $ac_n "(cached) $ac_c" 1>&6
7394 cat > conftest.
$ac_ext <<EOF
7395 #line 7396 "configure"
7396 #include "confdefs.h"
7397 #if defined(CRAY) && ! defined(CRAY2)
7404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7405 egrep "webecray" >/dev
/null
2>&1; then
7416 echo "$ac_t""$ac_cv_os_cray" 1>&6
7417 if test $ac_cv_os_cray = yes; then
7418 for ac_func
in _getb67 GETB67 getb67
; do
7419 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7420 echo "configure:7421: checking for $ac_func" >&5
7421 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7422 echo $ac_n "(cached) $ac_c" 1>&6
7424 cat > conftest.
$ac_ext <<EOF
7425 #line 7426 "configure"
7426 #include "confdefs.h"
7427 /* System header to define __stub macros and hopefully few prototypes,
7428 which can conflict with char $ac_func(); below. */
7430 /* Override any gcc2 internal prototype to avoid an error. */
7431 /* We use char because int might match the return type of a gcc2
7432 builtin and then its argument prototype would still apply. */
7437 /* The GNU C library defines this for functions which it implements
7438 to always fail with ENOSYS. Some functions are actually named
7439 something starting with __ and the normal name is an alias. */
7440 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7448 if { (eval echo configure
:7449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7450 eval "ac_cv_func_$ac_func=yes"
7452 echo "configure: failed program was:" >&5
7453 cat conftest.
$ac_ext >&5
7455 eval "ac_cv_func_$ac_func=no"
7460 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7461 echo "$ac_t""yes" 1>&6
7462 cat >> confdefs.h
<<EOF
7463 #define CRAY_STACKSEG_END $ac_func
7468 echo "$ac_t""no" 1>&6
7474 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7475 echo "configure:7476: checking stack direction for C alloca" >&5
7476 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
7477 echo $ac_n "(cached) $ac_c" 1>&6
7479 if test "$cross_compiling" = yes; then
7480 ac_cv_c_stack_direction
=0
7482 cat > conftest.
$ac_ext <<EOF
7483 #line 7484 "configure"
7484 #include "confdefs.h"
7485 find_stack_direction ()
7487 static char *addr = 0;
7492 return find_stack_direction ();
7495 return (&dummy > addr) ? 1 : -1;
7499 exit (find_stack_direction() < 0);
7502 if { (eval echo configure
:7503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7504 ac_cv_c_stack_direction
=1
7506 echo "configure: failed program was:" >&5
7507 cat conftest.
$ac_ext >&5
7509 ac_cv_c_stack_direction
=-1
7516 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
7517 cat >> confdefs.h
<<EOF
7518 #define STACK_DIRECTION $ac_cv_c_stack_direction
7524 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7525 unistd.h sys
/param.h
7527 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7528 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7529 echo "configure:7530: checking for $ac_hdr" >&5
7530 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7531 echo $ac_n "(cached) $ac_c" 1>&6
7533 cat > conftest.
$ac_ext <<EOF
7534 #line 7535 "configure"
7535 #include "confdefs.h"
7538 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7539 { (eval echo configure
:7540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7540 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7541 if test -z "$ac_err"; then
7543 eval "ac_cv_header_$ac_safe=yes"
7546 echo "configure: failed program was:" >&5
7547 cat conftest.
$ac_ext >&5
7549 eval "ac_cv_header_$ac_safe=no"
7553 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7554 echo "$ac_t""yes" 1>&6
7555 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7556 cat >> confdefs.h
<<EOF
7557 #define $ac_tr_hdr 1
7561 echo "$ac_t""no" 1>&6
7565 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7566 strdup __argz_count __argz_stringify __argz_next
7568 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7569 echo "configure:7570: checking for $ac_func" >&5
7570 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7571 echo $ac_n "(cached) $ac_c" 1>&6
7573 cat > conftest.
$ac_ext <<EOF
7574 #line 7575 "configure"
7575 #include "confdefs.h"
7576 /* System header to define __stub macros and hopefully few prototypes,
7577 which can conflict with char $ac_func(); below. */
7579 /* Override any gcc2 internal prototype to avoid an error. */
7580 /* We use char because int might match the return type of a gcc2
7581 builtin and then its argument prototype would still apply. */
7586 /* The GNU C library defines this for functions which it implements
7587 to always fail with ENOSYS. Some functions are actually named
7588 something starting with __ and the normal name is an alias. */
7589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7597 if { (eval echo configure
:7598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7599 eval "ac_cv_func_$ac_func=yes"
7601 echo "configure: failed program was:" >&5
7602 cat conftest.
$ac_ext >&5
7604 eval "ac_cv_func_$ac_func=no"
7609 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7610 echo "$ac_t""yes" 1>&6
7611 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7612 cat >> confdefs.h
<<EOF
7613 #define $ac_tr_func 1
7617 echo "$ac_t""no" 1>&6
7622 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7623 for ac_func
in stpcpy
7625 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7626 echo "configure:7627: checking for $ac_func" >&5
7627 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7628 echo $ac_n "(cached) $ac_c" 1>&6
7630 cat > conftest.
$ac_ext <<EOF
7631 #line 7632 "configure"
7632 #include "confdefs.h"
7633 /* System header to define __stub macros and hopefully few prototypes,
7634 which can conflict with char $ac_func(); below. */
7636 /* Override any gcc2 internal prototype to avoid an error. */
7637 /* We use char because int might match the return type of a gcc2
7638 builtin and then its argument prototype would still apply. */
7643 /* The GNU C library defines this for functions which it implements
7644 to always fail with ENOSYS. Some functions are actually named
7645 something starting with __ and the normal name is an alias. */
7646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7654 if { (eval echo configure
:7655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7656 eval "ac_cv_func_$ac_func=yes"
7658 echo "configure: failed program was:" >&5
7659 cat conftest.
$ac_ext >&5
7661 eval "ac_cv_func_$ac_func=no"
7666 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7667 echo "$ac_t""yes" 1>&6
7668 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7669 cat >> confdefs.h
<<EOF
7670 #define $ac_tr_func 1
7674 echo "$ac_t""no" 1>&6
7679 if test "${ac_cv_func_stpcpy}" = "yes"; then
7680 cat >> confdefs.h
<<\EOF
7681 #define HAVE_STPCPY 1
7686 if test $ac_cv_header_locale_h = yes; then
7687 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
7688 echo "configure:7689: checking for LC_MESSAGES" >&5
7689 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
7690 echo $ac_n "(cached) $ac_c" 1>&6
7692 cat > conftest.
$ac_ext <<EOF
7693 #line 7694 "configure"
7694 #include "confdefs.h"
7700 if { (eval echo configure
:7701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7702 am_cv_val_LC_MESSAGES
=yes
7704 echo "configure: failed program was:" >&5
7705 cat conftest.
$ac_ext >&5
7707 am_cv_val_LC_MESSAGES
=no
7712 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7713 if test $am_cv_val_LC_MESSAGES = yes; then
7714 cat >> confdefs.h
<<\EOF
7715 #define HAVE_LC_MESSAGES 1
7720 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7721 echo "configure:7722: checking whether NLS is requested" >&5
7722 # Check whether --enable-nls or --disable-nls was given.
7723 if test "${enable_nls+set}" = set; then
7724 enableval
="$enable_nls"
7730 echo "$ac_t""$USE_NLS" 1>&6
7733 USE_INCLUDED_LIBINTL
=no
7735 if test "$USE_NLS" = "yes"; then
7736 cat >> confdefs.h
<<\EOF
7737 #define ENABLE_NLS 1
7740 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7741 echo "configure:7742: checking whether included gettext is requested" >&5
7742 # Check whether --with-included-gettext or --without-included-gettext was given.
7743 if test "${with_included_gettext+set}" = set; then
7744 withval
="$with_included_gettext"
7745 nls_cv_force_use_gnu_gettext
=$withval
7747 nls_cv_force_use_gnu_gettext
=yes
7750 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7752 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
7753 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7755 nls_cv_header_libgt
=
7758 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7759 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7760 echo "configure:7761: checking for libintl.h" >&5
7761 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7762 echo $ac_n "(cached) $ac_c" 1>&6
7764 cat > conftest.
$ac_ext <<EOF
7765 #line 7766 "configure"
7766 #include "confdefs.h"
7767 #include <libintl.h>
7769 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7770 { (eval echo configure
:7771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7771 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7772 if test -z "$ac_err"; then
7774 eval "ac_cv_header_$ac_safe=yes"
7777 echo "configure: failed program was:" >&5
7778 cat conftest.
$ac_ext >&5
7780 eval "ac_cv_header_$ac_safe=no"
7784 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7785 echo "$ac_t""yes" 1>&6
7786 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7787 echo "configure:7788: checking for gettext in libc" >&5
7788 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7789 echo $ac_n "(cached) $ac_c" 1>&6
7791 cat > conftest.
$ac_ext <<EOF
7792 #line 7793 "configure"
7793 #include "confdefs.h"
7794 #include <libintl.h>
7796 return (int) gettext ("")
7799 if { (eval echo configure
:7800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7801 gt_cv_func_gettext_libc
=yes
7803 echo "configure: failed program was:" >&5
7804 cat conftest.
$ac_ext >&5
7806 gt_cv_func_gettext_libc
=no
7811 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7813 if test "$gt_cv_func_gettext_libc" != "yes"; then
7814 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7815 echo "configure:7816: checking for bindtextdomain in -lintl" >&5
7816 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7817 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7818 echo $ac_n "(cached) $ac_c" 1>&6
7820 ac_save_LIBS
="$LIBS"
7822 cat > conftest.
$ac_ext <<EOF
7823 #line 7824 "configure"
7824 #include "confdefs.h"
7825 /* Override any gcc2 internal prototype to avoid an error. */
7826 /* We use char because int might match the return type of a gcc2
7827 builtin and then its argument prototype would still apply. */
7828 char bindtextdomain();
7834 if { (eval echo configure
:7835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7836 eval "ac_cv_lib_$ac_lib_var=yes"
7838 echo "configure: failed program was:" >&5
7839 cat conftest.
$ac_ext >&5
7841 eval "ac_cv_lib_$ac_lib_var=no"
7844 LIBS
="$ac_save_LIBS"
7847 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7848 echo "$ac_t""yes" 1>&6
7849 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7850 echo "configure:7851: checking for gettext in libintl" >&5
7851 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7852 echo $ac_n "(cached) $ac_c" 1>&6
7854 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7855 echo "configure:7856: checking for gettext in -lintl" >&5
7856 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7857 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7858 echo $ac_n "(cached) $ac_c" 1>&6
7860 ac_save_LIBS
="$LIBS"
7862 cat > conftest.
$ac_ext <<EOF
7863 #line 7864 "configure"
7864 #include "confdefs.h"
7865 /* Override any gcc2 internal prototype to avoid an error. */
7866 /* We use char because int might match the return type of a gcc2
7867 builtin and then its argument prototype would still apply. */
7874 if { (eval echo configure
:7875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7876 eval "ac_cv_lib_$ac_lib_var=yes"
7878 echo "configure: failed program was:" >&5
7879 cat conftest.
$ac_ext >&5
7881 eval "ac_cv_lib_$ac_lib_var=no"
7884 LIBS
="$ac_save_LIBS"
7887 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7888 echo "$ac_t""yes" 1>&6
7889 gt_cv_func_gettext_libintl
=yes
7891 echo "$ac_t""no" 1>&6
7892 gt_cv_func_gettext_libintl
=no
7897 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7899 echo "$ac_t""no" 1>&6
7904 if test "$gt_cv_func_gettext_libc" = "yes" \
7905 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
7906 cat >> confdefs.h
<<\EOF
7907 #define HAVE_GETTEXT 1
7910 # Extract the first word of "msgfmt", so it can be a program name with args.
7911 set dummy msgfmt
; ac_word
=$2
7912 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7913 echo "configure:7914: checking for $ac_word" >&5
7914 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7915 echo $ac_n "(cached) $ac_c" 1>&6
7919 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
7922 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7923 for ac_dir
in $PATH; do
7924 test -z "$ac_dir" && ac_dir
=.
7925 if test -f $ac_dir/$ac_word; then
7926 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7927 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
7933 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
7937 MSGFMT
="$ac_cv_path_MSGFMT"
7938 if test -n "$MSGFMT"; then
7939 echo "$ac_t""$MSGFMT" 1>&6
7941 echo "$ac_t""no" 1>&6
7943 if test "$MSGFMT" != "no"; then
7944 for ac_func
in dcgettext
7946 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7947 echo "configure:7948: checking for $ac_func" >&5
7948 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7949 echo $ac_n "(cached) $ac_c" 1>&6
7951 cat > conftest.
$ac_ext <<EOF
7952 #line 7953 "configure"
7953 #include "confdefs.h"
7954 /* System header to define __stub macros and hopefully few prototypes,
7955 which can conflict with char $ac_func(); below. */
7957 /* Override any gcc2 internal prototype to avoid an error. */
7958 /* We use char because int might match the return type of a gcc2
7959 builtin and then its argument prototype would still apply. */
7964 /* The GNU C library defines this for functions which it implements
7965 to always fail with ENOSYS. Some functions are actually named
7966 something starting with __ and the normal name is an alias. */
7967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7975 if { (eval echo configure
:7976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7977 eval "ac_cv_func_$ac_func=yes"
7979 echo "configure: failed program was:" >&5
7980 cat conftest.
$ac_ext >&5
7982 eval "ac_cv_func_$ac_func=no"
7987 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7988 echo "$ac_t""yes" 1>&6
7989 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7990 cat >> confdefs.h
<<EOF
7991 #define $ac_tr_func 1
7995 echo "$ac_t""no" 1>&6
7999 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8000 set dummy gmsgfmt
; ac_word
=$2
8001 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8002 echo "configure:8003: checking for $ac_word" >&5
8003 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8004 echo $ac_n "(cached) $ac_c" 1>&6
8008 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8011 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8014 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8016 for ac_dir
in $ac_dummy; do
8017 test -z "$ac_dir" && ac_dir
=.
8018 if test -f $ac_dir/$ac_word; then
8019 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8024 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8028 GMSGFMT
="$ac_cv_path_GMSGFMT"
8029 if test -n "$GMSGFMT"; then
8030 echo "$ac_t""$GMSGFMT" 1>&6
8032 echo "$ac_t""no" 1>&6
8035 # Extract the first word of "xgettext", so it can be a program name with args.
8036 set dummy xgettext
; ac_word
=$2
8037 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8038 echo "configure:8039: checking for $ac_word" >&5
8039 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8040 echo $ac_n "(cached) $ac_c" 1>&6
8044 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8047 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8048 for ac_dir
in $PATH; do
8049 test -z "$ac_dir" && ac_dir
=.
8050 if test -f $ac_dir/$ac_word; then
8051 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8052 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8058 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8062 XGETTEXT
="$ac_cv_path_XGETTEXT"
8063 if test -n "$XGETTEXT"; then
8064 echo "$ac_t""$XGETTEXT" 1>&6
8066 echo "$ac_t""no" 1>&6
8069 cat > conftest.
$ac_ext <<EOF
8070 #line 8071 "configure"
8071 #include "confdefs.h"
8074 extern int _nl_msg_cat_cntr;
8075 return _nl_msg_cat_cntr
8078 if { (eval echo configure
:8079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8083 echo "configure: failed program was:" >&5
8084 cat conftest.
$ac_ext >&5
8095 echo "$ac_t""no" 1>&6
8099 if test "$CATOBJEXT" = "NONE"; then
8100 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
8101 echo "configure:8102: checking whether catgets can be used" >&5
8102 # Check whether --with-catgets or --without-catgets was given.
8103 if test "${with_catgets+set}" = set; then
8104 withval
="$with_catgets"
8105 nls_cv_use_catgets
=$withval
8107 nls_cv_use_catgets
=no
8110 echo "$ac_t""$nls_cv_use_catgets" 1>&6
8112 if test "$nls_cv_use_catgets" = "yes"; then
8113 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
8114 echo "configure:8115: checking for main in -li" >&5
8115 ac_lib_var
=`echo i'_'main | sed 'y%./+-%__p_%'`
8116 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8117 echo $ac_n "(cached) $ac_c" 1>&6
8119 ac_save_LIBS
="$LIBS"
8121 cat > conftest.
$ac_ext <<EOF
8122 #line 8123 "configure"
8123 #include "confdefs.h"
8129 if { (eval echo configure
:8130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8131 eval "ac_cv_lib_$ac_lib_var=yes"
8133 echo "configure: failed program was:" >&5
8134 cat conftest.
$ac_ext >&5
8136 eval "ac_cv_lib_$ac_lib_var=no"
8139 LIBS
="$ac_save_LIBS"
8142 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8143 echo "$ac_t""yes" 1>&6
8144 ac_tr_lib
=HAVE_LIB
`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8145 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8146 cat >> confdefs.h
<<EOF
8147 #define $ac_tr_lib 1
8153 echo "$ac_t""no" 1>&6
8156 echo $ac_n "checking for catgets""... $ac_c" 1>&6
8157 echo "configure:8158: checking for catgets" >&5
8158 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
8159 echo $ac_n "(cached) $ac_c" 1>&6
8161 cat > conftest.
$ac_ext <<EOF
8162 #line 8163 "configure"
8163 #include "confdefs.h"
8164 /* System header to define __stub macros and hopefully few prototypes,
8165 which can conflict with char catgets(); below. */
8167 /* Override any gcc2 internal prototype to avoid an error. */
8168 /* We use char because int might match the return type of a gcc2
8169 builtin and then its argument prototype would still apply. */
8174 /* The GNU C library defines this for functions which it implements
8175 to always fail with ENOSYS. Some functions are actually named
8176 something starting with __ and the normal name is an alias. */
8177 #if defined (__stub_catgets) || defined (__stub___catgets)
8185 if { (eval echo configure
:8186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8187 eval "ac_cv_func_catgets=yes"
8189 echo "configure: failed program was:" >&5
8190 cat conftest.
$ac_ext >&5
8192 eval "ac_cv_func_catgets=no"
8197 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
8198 echo "$ac_t""yes" 1>&6
8199 cat >> confdefs.h
<<\EOF
8200 #define HAVE_CATGETS 1
8203 INTLOBJS
="\$(CATOBJS)"
8204 # Extract the first word of "gencat", so it can be a program name with args.
8205 set dummy gencat
; ac_word
=$2
8206 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8207 echo "configure:8208: checking for $ac_word" >&5
8208 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
8209 echo $ac_n "(cached) $ac_c" 1>&6
8213 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a path.
8216 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a dos path.
8219 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8221 for ac_dir
in $ac_dummy; do
8222 test -z "$ac_dir" && ac_dir
=.
8223 if test -f $ac_dir/$ac_word; then
8224 ac_cv_path_GENCAT
="$ac_dir/$ac_word"
8229 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT
="no"
8233 GENCAT
="$ac_cv_path_GENCAT"
8234 if test -n "$GENCAT"; then
8235 echo "$ac_t""$GENCAT" 1>&6
8237 echo "$ac_t""no" 1>&6
8239 if test "$GENCAT" != "no"; then
8240 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8241 set dummy gmsgfmt
; ac_word
=$2
8242 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8243 echo "configure:8244: checking for $ac_word" >&5
8244 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8245 echo $ac_n "(cached) $ac_c" 1>&6
8249 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8252 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8255 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8257 for ac_dir
in $ac_dummy; do
8258 test -z "$ac_dir" && ac_dir
=.
8259 if test -f $ac_dir/$ac_word; then
8260 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8265 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
8269 GMSGFMT
="$ac_cv_path_GMSGFMT"
8270 if test -n "$GMSGFMT"; then
8271 echo "$ac_t""$GMSGFMT" 1>&6
8273 echo "$ac_t""no" 1>&6
8276 if test "$GMSGFMT" = "no"; then
8277 # Extract the first word of "msgfmt", so it can be a program name with args.
8278 set dummy msgfmt
; ac_word
=$2
8279 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8280 echo "configure:8281: checking for $ac_word" >&5
8281 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8282 echo $ac_n "(cached) $ac_c" 1>&6
8286 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8289 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8290 for ac_dir
in $PATH; do
8291 test -z "$ac_dir" && ac_dir
=.
8292 if test -f $ac_dir/$ac_word; then
8293 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8294 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8300 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="msgfmt"
8304 GMSGFMT
="$ac_cv_path_GMSGFMT"
8305 if test -n "$GMSGFMT"; then
8306 echo "$ac_t""$GMSGFMT" 1>&6
8308 echo "$ac_t""no" 1>&6
8311 if test "$GMSGFMT" = "msgfmt"; then
8312 echo "configure: warning: No program for catalog building found" 1>&2
8313 create_catalogs
="no"
8316 # Extract the first word of "xgettext", so it can be a program name with args.
8317 set dummy xgettext
; ac_word
=$2
8318 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8319 echo "configure:8320: checking for $ac_word" >&5
8320 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8321 echo $ac_n "(cached) $ac_c" 1>&6
8325 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8328 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8329 for ac_dir
in $PATH; do
8330 test -z "$ac_dir" && ac_dir
=.
8331 if test -f $ac_dir/$ac_word; then
8332 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8333 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8339 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8343 XGETTEXT
="$ac_cv_path_XGETTEXT"
8344 if test -n "$XGETTEXT"; then
8345 echo "$ac_t""$XGETTEXT" 1>&6
8347 echo "$ac_t""no" 1>&6
8350 USE_INCLUDED_LIBINTL
=yes
8354 INTLDEPS
='$(top_builddir)/intl/libintl.a'
8356 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
8357 nls_cv_header_intl
=intl
/libintl.h
8358 nls_cv_header_libgt
=intl
/libgettext.h
8361 echo "$ac_t""no" 1>&6
8367 if test "$CATOBJEXT" = "NONE"; then
8368 nls_cv_use_gnu_gettext
=yes
8372 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8373 INTLOBJS
="\$(GETTOBJS)"
8374 # Extract the first word of "msgfmt", so it can be a program name with args.
8375 set dummy msgfmt
; ac_word
=$2
8376 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8377 echo "configure:8378: checking for $ac_word" >&5
8378 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
8379 echo $ac_n "(cached) $ac_c" 1>&6
8383 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8386 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8387 for ac_dir
in $PATH; do
8388 test -z "$ac_dir" && ac_dir
=.
8389 if test -f $ac_dir/$ac_word; then
8390 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8391 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8397 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
8401 MSGFMT
="$ac_cv_path_MSGFMT"
8402 if test -n "$MSGFMT"; then
8403 echo "$ac_t""$MSGFMT" 1>&6
8405 echo "$ac_t""no" 1>&6
8408 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8409 set dummy gmsgfmt
; ac_word
=$2
8410 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8411 echo "configure:8412: checking for $ac_word" >&5
8412 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8413 echo $ac_n "(cached) $ac_c" 1>&6
8417 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8420 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8423 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8425 for ac_dir
in $ac_dummy; do
8426 test -z "$ac_dir" && ac_dir
=.
8427 if test -f $ac_dir/$ac_word; then
8428 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8433 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8437 GMSGFMT
="$ac_cv_path_GMSGFMT"
8438 if test -n "$GMSGFMT"; then
8439 echo "$ac_t""$GMSGFMT" 1>&6
8441 echo "$ac_t""no" 1>&6
8444 if test "$MSGFMT" = "msgfmt" && test "$GMSGFMT" = "msgfmt"; then
8445 echo "configure: warning: Neither msgfmt nor gmsgfmt found. No catalogs will be built" 1>&2
8446 create_catalogs
="no"
8448 # Extract the first word of "xgettext", so it can be a program name with args.
8449 set dummy xgettext
; ac_word
=$2
8450 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8451 echo "configure:8452: checking for $ac_word" >&5
8452 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8453 echo $ac_n "(cached) $ac_c" 1>&6
8457 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8460 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8461 for ac_dir
in $PATH; do
8462 test -z "$ac_dir" && ac_dir
=.
8463 if test -f $ac_dir/$ac_word; then
8464 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8465 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8471 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8475 XGETTEXT
="$ac_cv_path_XGETTEXT"
8476 if test -n "$XGETTEXT"; then
8477 echo "$ac_t""$XGETTEXT" 1>&6
8479 echo "$ac_t""no" 1>&6
8483 USE_INCLUDED_LIBINTL
=yes
8487 INTLDEPS
='$(top_builddir)/intl/libintl.a'
8489 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
8490 nls_cv_header_intl
=intl
/libintl.h
8491 nls_cv_header_libgt
=intl
/libgettext.h
8494 if test "$XGETTEXT" != ":"; then
8495 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
8498 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
8505 # We need to process the po/ directory.
8509 nls_cv_header_intl
=intl
/libintl.h
8510 nls_cv_header_libgt
=intl
/libgettext.h
8516 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8517 # because some of the sources are only built for this goal.
8518 if test "$PACKAGE" = gettext; then
8520 USE_INCLUDED_LIBINTL
=yes
8523 for lang
in $ALL_LINGUAS; do
8524 GMOFILES
="$GMOFILES $lang.gmo"
8525 POFILES
="$POFILES $lang.po"
8541 if test "x$CATOBJEXT" != "x" && test "x$create_catalogs" != "xno" ; then
8542 if test "x$ALL_LINGUAS" = "x"; then
8545 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
8546 echo "configure:8547: checking for catalogs to be installed" >&5
8547 if test "x$LINGUAS" = "x"; then
8548 LINGUAS
=$ALL_LINGUAS
8551 for lang
in $ALL_LINGUAS; do
8552 case " $LINGUAS " in
8553 *" $lang "*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
8556 LINGUAS
=$NEW_LINGUAS
8558 echo "$ac_t""$LINGUAS" 1>&6
8561 if test -n "$LINGUAS"; then
8562 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
8566 if test $ac_cv_header_locale_h = yes; then
8567 INCLUDE_LOCALE_H
="#include <locale.h>"
8570 /* The system does not provide the header <locale.h>. Take care yourself. */"
8574 test -d intl || mkdir intl
8575 if test "$CATOBJEXT" = ".cat"; then
8576 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
8577 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
8578 echo "configure:8579: checking for linux/version.h" >&5
8579 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8580 echo $ac_n "(cached) $ac_c" 1>&6
8582 cat > conftest.
$ac_ext <<EOF
8583 #line 8584 "configure"
8584 #include "confdefs.h"
8585 #include <linux/version.h>
8587 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8588 { (eval echo configure
:8589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8589 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8590 if test -z "$ac_err"; then
8592 eval "ac_cv_header_$ac_safe=yes"
8595 echo "configure: failed program was:" >&5
8596 cat conftest.
$ac_ext >&5
8598 eval "ac_cv_header_$ac_safe=no"
8602 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8603 echo "$ac_t""yes" 1>&6
8606 echo "$ac_t""no" 1>&6
8611 sed -e '/^#/d' $srcdir/intl
/$msgformat-msg.
sed > intl
/po2msg.
sed
8613 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8614 $srcdir/intl
/po2tbl.
sed.
in > intl
/po2tbl.
sed
8616 if test "$PACKAGE" = "gettext"; then
8627 if test -n "$ac_aux_dir"; then
8628 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
8630 if test -z "$MKINSTALLDIRS"; then
8631 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
8638 test -d po || mkdir po
8639 if test "x$srcdir" != "x."; then
8640 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8641 posrcprefix
="$srcdir/"
8643 posrcprefix
="../$srcdir/"
8649 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8650 < $srcdir/po
/POTFILES.
in > po
/POTFILES
8652 XGETTEXT
="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
8654 # Windows32 Registry support for specifying GCC installation paths.
8655 # Check whether --enable-win32-registry or --disable-win32-registry was given.
8656 if test "${enable_win32_registry+set}" = set; then
8657 enableval
="$enable_win32_registry"
8662 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
8663 echo "configure:8664: checking whether windows registry support is requested" >&5
8664 if test x
$enable_win32_registry != xno
; then
8665 cat >> confdefs.h
<<\EOF
8666 #define ENABLE_WIN32_REGISTRY 1
8669 echo "$ac_t""yes" 1>&6
8671 echo "$ac_t""no" 1>&6
8674 # Check if user specified a different registry key.
8675 case x
${enable_win32_registry} in
8678 gcc_cv_win32_registry_key
="$VERSION"
8681 # no registry lookup.
8682 gcc_cv_win32_registry_key
=''
8685 # user-specified key.
8686 gcc_cv_win32_registry_key
="$enable_win32_registry"
8690 if test x
$enable_win32_registry != xno
; then
8691 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
8692 echo "configure:8693: checking registry key on windows hosts" >&5
8693 cat >> confdefs.h
<<EOF
8694 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
8697 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
8700 # Get an absolute path to the GCC top-level source directory
8706 # Conditionalize the makefile for this host machine.
8707 # Make-host contains the concatenation of all host makefile fragments
8708 # [there can be more than one]. This file is built by configure.frag.
8709 host_overrides
=Make-host
8710 dep_host_xmake_file
=
8711 for f
in ..
${host_xmake_file}
8713 if test -f ${srcdir}/config
/$f
8715 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
8719 # Conditionalize the makefile for this target machine.
8720 # Make-target contains the concatenation of all host makefile fragments
8721 # [there can be more than one]. This file is built by configure.frag.
8722 target_overrides
=Make-target
8724 for f
in ..
${tmake_file}
8726 if test -f ${srcdir}/config
/$f
8728 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
8732 # If the host doesn't support symlinks, modify CC in
8733 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
8734 # Otherwise, we can use "CC=$(CC)".
8736 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
8738 cc_set_by_configure
="\$(CC)"
8739 quoted_cc_set_by_configure
="\$(CC)"
8740 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
8743 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
8745 symbolic_link
="cp -p"
8749 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
8750 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
8751 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
8755 out_object_file
=`basename $out_file .c`.o
8758 for f
in $tm_file; do
8761 tm_file_list
="${tm_file_list} $f" ;;
8762 *) tm_file_list
="${tm_file_list} \$(srcdir)/config/$f" ;;
8767 for f
in $host_xm_file; do
8769 auto-host.h | gansidecl.h | hwint.h
)
8770 host_xm_file_list
="${host_xm_file_list} $f" ;;
8771 *) host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f" ;;
8776 for f
in $build_xm_file; do
8778 auto-build.h | auto-host.h | gansidecl.h | hwint.h
)
8779 build_xm_file_list
="${build_xm_file_list} $f" ;;
8780 *) build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8784 # Define macro CROSS_COMPILE in compilation
8785 # if this is a cross-compiler.
8786 # Also use all.cross instead of all.internal
8787 # and add cross-make to Makefile.
8788 cross_overrides
="/dev/null"
8789 if test x
$host != x
$target
8791 cross_defines
="CROSS=-DCROSS_COMPILE"
8792 cross_overrides
="${topdir}/cross-make"
8795 # If this is a cross-compiler that does not
8796 # have its own set of headers then define
8799 # If this is using newlib, then define inhibit_libc in
8800 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
8801 # libgcc.a, but that's OK because newlib should have its own version of
8804 if test x
$host != x
$target && test x
$with_headers = x
; then
8805 inhibit_libc
=-Dinhibit_libc
8807 if test x
$with_newlib = xyes
; then
8808 inhibit_libc
=-Dinhibit_libc
8813 # When building gcc with a cross-compiler, we need to fix a few things.
8814 # This must come after cross-make as we want all.build to override
8816 build_overrides
="/dev/null"
8817 if test x
$build != x
$host
8819 build_overrides
="${topdir}/build-make"
8822 # Expand extra_headers to include complete path.
8823 # This substitutes for lots of t-* files.
8825 if test "x$extra_headers" = x
8828 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8829 for file in $extra_headers;
8831 extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8835 if test x
$use_collect2 = xno
; then
8839 # Add a definition of USE_COLLECT2 if system wants one.
8840 # Also tell toplev.c what to do.
8841 # This substitutes for lots of t-* files.
8842 if test x
$use_collect2 = x
8847 will_use_collect2
="collect2"
8848 maybe_use_collect2
="-DUSE_COLLECT2"
8852 # Set MD_DEPS if the real md file is in md.pre-cpp.
8853 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
8854 # for line oriented comments, so we must always use a GNU cpp. If
8855 # building gcc with a cross compiler, use the cross compiler just
8856 # built. Otherwise, we can use the cpp just built.
8858 if test "x$md_cppflags" = x
8860 md_file_sub
=$srcdir/config
/$md_file
8865 # If we have gas in the build tree, make a link to it.
8866 if test -f ..
/gas
/Makefile
; then
8867 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
8870 # If we have nm in the build tree, make a link to it.
8871 if test -f ..
/binutils
/Makefile
; then
8872 rm -f nm
; $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
8875 # If we have ld in the build tree, make a link to it.
8876 if test -f ..
/ld
/Makefile
; then
8877 # if test x$use_collect2 = x; then
8878 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8880 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
8884 # Figure out what assembler alignment features are present.
8885 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
8886 echo "configure:8887: checking assembler alignment features" >&5
8888 gcc_cv_as_alignment_features
=
8889 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8890 if test -x "$DEFAULT_ASSEMBLER"; then
8891 gcc_cv_as
="$DEFAULT_ASSEMBLER"
8892 elif test -x "$AS"; then
8894 elif test -x as
$host_exeext; then
8895 # Build using assembler in the current directory.
8896 gcc_cv_as
=.
/as
$host_exeext
8897 elif test -f $gcc_cv_as_gas_srcdir/configure.
in -a -f ..
/gas
/Makefile
; then
8898 # Single tree build which includes gas.
8899 for f
in $gcc_cv_as_gas_srcdir/configure
$gcc_cv_as_gas_srcdir/configure.
in $gcc_cv_as_gas_srcdir/Makefile.
in
8901 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
8902 if test x
$gcc_cv_gas_version != x
; then
8906 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
8907 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
8908 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
8909 # Gas version 2.6 and later support for .balign and .p2align.
8910 # bytes to skip when using .p2align.
8911 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
8912 gcc_cv_as_alignment_features
=".balign and .p2align"
8913 cat >> confdefs.h
<<\EOF
8914 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8918 # Gas version 2.8 and later support specifying the maximum
8919 # bytes to skip when using .p2align.
8920 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
8921 gcc_cv_as_alignment_features
=".p2align including maximum skip"
8922 cat >> confdefs.h
<<\EOF
8923 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8928 elif test x
$host = x
$target; then
8930 # Search the same directories that the installed compiler will
8931 # search. Else we may find the wrong assembler and lose. If we
8932 # do not find a suitable assembler binary, then try the user's
8935 # Also note we have to check MD_EXEC_PREFIX before checking the
8936 # user's path. Unfortunately, there is no good way to get at the
8937 # value of MD_EXEC_PREFIX here. So we do a brute force search
8938 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
8939 # to be fixed as part of the make/configure rewrite too.
8941 if test "x$exec_prefix" = xNONE
; then
8942 if test "x$prefix" = xNONE
; then
8943 test_prefix
=/usr
/local
8948 test_prefix
=$exec_prefix
8951 # If the loop below does not find an assembler, then use whatever
8952 # one we can find in the users's path.
8956 test_dirs
="$test_prefix/lib/gcc-lib/$target/$gcc_version \
8957 $test_prefix/lib/gcc-lib/$target \
8958 /usr/lib/gcc/$target/$gcc_version \
8959 /usr/lib/gcc/$target \
8960 $test_prefix/$target/bin/$target/$gcc_version \
8961 $test_prefix/$target/bin \
8966 /bsd43/usr/lib/cmplrs/cc \
8967 /usr/cross64/usr/bin \
8968 /usr/lib/cmplrs/cc \
8969 /sysv/usr/lib/cmplrs/cc \
8970 /svr4/usr/lib/cmplrs/cc \
8973 for dir
in $test_dirs; do
8974 if test -f $dir/as
$host_exeext; then
8975 gcc_cv_as
=$dir/as
$host_exeext
8980 if test x
$gcc_cv_as != x
; then
8981 # Check if we have .balign and .p2align
8982 echo ".balign 4" > conftest.s
8983 echo ".p2align 2" >> conftest.s
8984 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8985 gcc_cv_as_alignment_features
=".balign and .p2align"
8986 cat >> confdefs.h
<<\EOF
8987 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8991 rm -f conftest.s conftest.o
8992 # Check if specifying the maximum bytes to skip when
8993 # using .p2align is supported.
8994 echo ".p2align 4,,7" > conftest.s
8995 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8996 gcc_cv_as_alignment_features
=".p2align including maximum skip"
8997 cat >> confdefs.h
<<\EOF
8998 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
9002 rm -f conftest.s conftest.o
9004 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
9006 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
9007 echo "configure:9008: checking assembler subsection support" >&5
9008 gcc_cv_as_subsections
=
9009 if test x
$gcc_cv_as != x
; then
9010 # Check if we have .subsection
9011 echo ".subsection 1" > conftest.s
9012 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9013 gcc_cv_as_subsections
=".subsection"
9014 if test -x nm
$host_exeext; then
9015 gcc_cv_nm
=.
/nm
$host_exeext
9016 elif test x
$host = x
$target; then
9018 gcc_cv_nm
=nm
$host_exeext
9020 if test x
$gcc_cv_nm != x
; then
9021 cat > conftest.s
<<EOF
9022 conftest_label1: .word 0
9024 conftest_label2: .word 0
9027 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9028 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
9029 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
9030 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1; then
9033 gcc_cv_as_subsections
="working .subsection -1"
9034 cat >> confdefs.h
<<\EOF
9035 #define HAVE_GAS_SUBSECTION_ORDERING 1
9042 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
9044 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
9046 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
9047 echo "configure:9048: checking assembler weak support" >&5
9049 if test x
$gcc_cv_as != x
; then
9050 # Check if we have .weak
9051 echo " .weak foobar" > conftest.s
9052 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9053 cat >> confdefs.h
<<\EOF
9054 #define HAVE_GAS_WEAK 1
9057 gcc_cv_as_weak
="yes"
9059 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
9061 echo "$ac_t""$gcc_cv_as_weak" 1>&6
9063 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
9064 echo "configure:9065: checking assembler hidden support" >&5
9066 if test x
$gcc_cv_as != x
; then
9067 # Check if we have .hidden
9068 echo " .hidden foobar" > conftest.s
9069 echo "foobar:" >> conftest.s
9070 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9071 cat >> confdefs.h
<<\EOF
9072 #define HAVE_GAS_HIDDEN 1
9075 gcc_cv_as_hidden
="yes"
9077 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
9079 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
9083 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
9084 echo "configure:9085: checking assembler .register pseudo-op support" >&5
9085 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
9086 echo $ac_n "(cached) $ac_c" 1>&6
9089 gcc_cv_as_register_pseudo_op
=unknown
9090 if test x
$gcc_cv_as != x
; then
9091 # Check if we have .register
9092 echo ".register %g2, #scratch" > conftest.s
9093 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9094 gcc_cv_as_register_pseudo_op
=yes
9096 gcc_cv_as_register_pseudo_op
=no
9098 rm -f conftest.s conftest.o
9103 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
9104 if test "x$gcc_cv_as_register_pseudo_op" = xyes
; then
9105 cat >> confdefs.h
<<\EOF
9106 #define HAVE_AS_REGISTER_PSEUDO_OP 1
9111 echo $ac_n "checking assembler supports -relax""... $ac_c" 1>&6
9112 echo "configure:9113: checking assembler supports -relax" >&5
9113 if eval "test \"`echo '$''{'gcc_cv_as_relax_opt'+set}'`\" = set"; then
9114 echo $ac_n "(cached) $ac_c" 1>&6
9117 gcc_cv_as_relax_opt
=unknown
9118 if test x
$gcc_cv_as != x
; then
9119 # Check if gas supports -relax
9120 echo ".text" > conftest.s
9121 if $gcc_cv_as -relax -o conftest.o conftest.s
> /dev
/null
2>&1; then
9122 gcc_cv_as_relax_opt
=yes
9124 gcc_cv_as_relax_opt
=no
9126 rm -f conftest.s conftest.o
9131 echo "$ac_t""$gcc_cv_as_relax_opt" 1>&6
9132 if test "x$gcc_cv_as_relax_opt" = xyes
; then
9133 cat >> confdefs.h
<<\EOF
9134 #define HAVE_AS_RELAX_OPTION 1
9141 echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
9142 echo "configure:9143: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
9143 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
9144 echo $ac_n "(cached) $ac_c" 1>&6
9147 if test -n "$gcc_cv_as"; then
9148 echo ".xword foo" > conftest.s
9149 gcc_cv_as_flags64
=no
9150 for flag
in "-xarch=v9" "-64 -Av9"; do
9151 if $gcc_cv_as $flag -o conftest.o conftest.s \
9152 > /dev
/null
2>&1; then
9153 gcc_cv_as_flags64
=$flag
9157 rm -f conftest.s conftest.o
9159 if test "$gas" = yes; then
9160 gcc_cv_as_flags64
="-64 -Av9"
9162 gcc_cv_as_flags64
="-xarch=v9"
9168 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
9169 if test "x$gcc_cv_as_flags64" = xno
; then
9171 tmake_file
=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
9172 dep_tmake_file
=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
9175 cat >> confdefs.h
<<EOF
9176 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
9181 *) gcc_cv_as_flags64
=${gcc_cv_as_flags64-no}
9185 if test "x$gcc_cv_as_flags64" != xno
; then
9186 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
9187 echo "configure:9188: checking for assembler offsetable %lo() support" >&5
9188 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
9189 echo $ac_n "(cached) $ac_c" 1>&6
9192 gcc_cv_as_offsetable_lo10
=unknown
9193 if test "x$gcc_cv_as" != x
; then
9194 # Check if assembler has offsetable %lo()
9195 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
9196 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
9197 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
9199 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
9200 > /dev
/null
2>&1; then
9201 if cmp conftest.o conftest1.o
> /dev
/null
2>&1; then
9202 gcc_cv_as_offsetable_lo10
=no
9204 gcc_cv_as_offsetable_lo10
=yes
9207 gcc_cv_as_offsetable_lo10
=no
9209 rm -f conftest.s conftest.o conftest1.s conftest1.o
9214 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
9215 if test "x$gcc_cv_as_offsetable_lo10" = xyes
; then
9216 cat >> confdefs.h
<<\EOF
9217 #define HAVE_AS_OFFSETABLE_LO10 1
9225 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
9226 echo "configure:9227: checking assembler instructions" >&5
9227 gcc_cv_as_instructions
=
9228 if test x
$gcc_cv_as != x
; then
9229 set "filds fists" "filds mem; fists mem"
9232 echo "$2" > conftest.s
9233 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9234 gcc_cv_as_instructions
=${gcc_cv_as_instructions}$1" "
9235 cat >> confdefs.h
<<EOF
9236 #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1
9242 rm -f conftest.s conftest.o
9244 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
9248 # Figure out what language subdirectories are present.
9249 # Look if the user specified --enable-languages="..."; if not, use
9250 # the environment variable $LANGUAGES if defined. $LANGUAGES might
9252 if test x
"${enable_languages+set}" != xset
; then
9253 if test x
"${LANGUAGES+set}" = xset
; then
9254 enable_languages
="`echo ${LANGUAGES} | tr ' ' ','`"
9256 enable_languages
=all
9259 if test x
"${enable_languages}" = x
; then
9260 { echo "configure: error: --enable-languages needs at least one argument" 1>&2; exit 1; }
9264 for lang
in ${srcdir}/*/config-lang.
in ..
9268 # The odd quoting in the next line works around
9269 # an apparent bug in bash 1.12 on linux.
9270 ${srcdir}/[*]/config-lang.
in) ;;
9272 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
9273 if test "x$lang_alias" = x
9275 echo "$lang doesn't set \$language." 1>&2
9278 if test x
"${enable_languages}" = xall
; then
9281 case "${enable_languages}" in
9282 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
9290 if test x"${add_this_lang}" = xyes; then
9292 ${srcdir}/ada/config-lang.in)
9293 if test x$gnat = xyes ; then
9294 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9298 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9306 # Make gthr-default.h if we have a thread file.
9308 if test $thread_file != single; then
9309 rm -f gthr-default.h
9310 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9311 gthread_flags
=-DHAVE_GTHR_DEFAULT
9315 # Find out what GC implementation we want, or may, use.
9316 # Check whether --with-gc or --without-gc was given.
9317 if test "${with_gc+set}" = set; then
9324 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
9328 if test $ac_cv_func_mmap_anywhere = yes \
9329 ||
test $ac_cv_func_valloc = yes; then
9337 echo "Using $GGC for garbage collection."
9339 # Build a new-abi (c++) system
9340 # Check whether --enable-new-gxx-abi or --disable-new-gxx-abi was given.
9341 if test "${enable_new_gxx_abi+set}" = set; then
9342 enableval
="$enable_new_gxx_abi"
9343 cat >> confdefs.h
<<\EOF
9344 #define ENABLE_NEW_GXX_ABI 1
9347 GXX_ABI_FLAG
='-fnew-abi'
9348 echo "Building a new-abi g++ compiler."
9354 # Build a new-libstdc++ system (ie libstdc++-v3)
9355 echo $ac_n "checking for libstdc++ to install""... $ac_c" 1>&6
9356 echo "configure:9357: checking for libstdc++ to install" >&5
9357 # Check whether --enable-libstdcxx-v3 or --disable-libstdcxx-v3 was given.
9358 if test "${enable_libstdcxx_v3+set}" = set; then
9359 enableval
="$enable_libstdcxx_v3"
9360 enable_libstdcxx_v3
=yes
9362 enable_libstdcxx_v3
=no
9366 if test x
$enable_libstdcxx_v3 = xyes
; then
9367 echo "$ac_t""v3" 1>&6
9370 echo "$ac_t""v2" 1>&6
9373 cat >> confdefs.h
<<EOF
9374 #define ENABLE_STD_NAMESPACE $ac_esn
9379 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
9380 echo "configure:9381: checking whether to enable maintainer-specific portions of Makefiles" >&5
9381 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9382 if test "${enable_maintainer_mode+set}" = set; then
9383 enableval
="$enable_maintainer_mode"
9384 maintainer_mode
=$enableval
9390 echo "$ac_t""$maintainer_mode" 1>&6
9392 if test "$maintainer_mode" = "yes"; then
9398 # Make empty files to contain the specs and options for each language.
9399 # Then add #include lines to for a compiler that has specs and/or options.
9404 rm -f specs.h options.h gencheck.h
9405 touch specs.h options.h gencheck.h
9406 for subdir
in .
$subdirs
9408 if test -f $srcdir/$subdir/lang-specs.h
; then
9409 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
9410 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
9412 if test -f $srcdir/$subdir/lang-options.h
; then
9413 echo "#include \"$subdir/lang-options.h\"" >>options.h
9414 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
9416 if test -f $srcdir/$subdir/$subdir-tree.def
; then
9417 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
9418 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
9422 # These (without "all_") are set in each config-lang.in.
9423 # `language' must be a single word so is spelled singularly.
9429 all_outputs
='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
9430 # List of language makefile fragments.
9435 # Add the language fragments.
9436 # Languages are added via two mechanisms. Some information must be
9437 # recorded in makefile variables, these are defined in config-lang.in.
9438 # We accumulate them and plug them into the main Makefile.
9439 # The other mechanism is a set of hooks for each of the main targets
9440 # like `clean', `install', etc.
9442 language_fragments
="Make-lang"
9443 language_hooks
="Make-hooks"
9446 for s
in ..
$subdirs
9458 .
${srcdir}/$s/config-lang.
in
9459 if test "x$language" = x
9461 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
9464 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
9465 all_languages
="$all_languages $language"
9466 if test "x$boot_language" = xyes
9468 all_boot_languages
="$all_boot_languages $language"
9470 all_compilers
="$all_compilers $compilers"
9471 all_stagestuff
="$all_stagestuff $stagestuff"
9472 all_diff_excludes
="$all_diff_excludes $diff_excludes"
9473 all_headers
="$all_headers $headers"
9474 all_outputs
="$all_outputs $outputs"
9475 if test x
$outputs = x
9477 oldstyle_subdirs
="$oldstyle_subdirs $s"
9479 all_lib2funcs
="$all_lib2funcs $lib2funcs"
9483 # Since we can't use `::' targets, we link each language in
9484 # with a set of hooks, reached indirectly via lang.${target}.
9488 target_list
="all.build all.cross start.encap rest.encap \
9490 install-normal install-common install-info install-man \
9492 mostlyclean clean distclean extraclean maintainer-clean \
9493 stage1 stage2 stage3 stage4"
9494 for t
in $target_list
9497 for lang
in ..
$all_languages
9499 if test $lang != ".."; then
9503 echo "lang.$t: $x" >> Make-hooks
9506 # If we're not building in srcdir, create .gdbinit.
9508 if test ! -f Makefile.
in; then
9509 echo "dir ." > .gdbinit
9510 echo "dir ${srcdir}" >> .gdbinit
9511 if test x
$gdb_needs_out_file_path = xyes
9513 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
9515 if test "x$subdirs" != x
; then
9518 echo "dir ${srcdir}/$s" >> .gdbinit
9521 echo "source ${srcdir}/.gdbinit" >> .gdbinit
9524 # Define variables host_canonical and build_canonical
9525 # because some Cygnus local changes in the Makefile depend on them.
9526 build_canonical
=${build}
9527 host_canonical
=${host}
9529 if test "${host}" != "${target}" ; then
9530 target_subdir
=${target}/
9536 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
9537 # absolute path for gcc_tooldir based on inserting the number of up-directory
9538 # movements required to get from $(exec_prefix) to $(prefix) into the basic
9539 # $(libsubdir)/@(unlibsubdir) based path.
9540 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
9541 # make and thus we'd get different behavior depending on where we built the
9543 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
9544 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
9546 # An explanation of the sed strings:
9547 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
9548 # -e 's|/$||' match a trailing forward slash and eliminates it
9549 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
9550 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
9552 # (*) Note this pattern overwrites the first character of the string
9553 # with a forward slash if one is not already present. This is not a
9554 # problem because the exact names of the sub-directories concerned is
9555 # unimportant, just the number of them matters.
9557 # The practical upshot of these patterns is like this:
9559 # prefix exec_prefix result
9560 # ------ ----------- ------
9562 # /foo/ /foo/bar ../
9563 # /foo /foo/bar/ ../
9564 # /foo/ /foo/bar/ ../
9565 # /foo /foo/bar/ugg ../../
9568 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
9573 # Nothing to do for FLOAT_H, float_format already handled.
9577 # Process the language and host/target makefile fragments.
9578 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
9580 # Substitute configuration variables
9639 # Echo that links are built
9640 if test x
$host = x
$target
9648 if test x
$host != x
$build
9650 str3
=" on a $build system"
9653 if test "x$str2" != x ||
test "x$str3" != x
9658 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
9660 if test "x$str2" != x ||
test "x$str3" != x
9662 echo " ${str2}${str3}." 1>&2
9665 # Truncate the target if necessary
9666 if test x
$host_truncate_target != x
; then
9667 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
9670 # Configure the subdirectories
9671 # AC_CONFIG_SUBDIRS($subdirs)
9673 # Create the Makefile
9674 # and configure language subdirectories
9676 cat > confcache
<<\EOF
9677 # This file is a shell script that caches the results of configure
9678 # tests run on this system so they can be shared between configure
9679 # scripts and configure runs. It is not useful on other systems.
9680 # If it contains results you don't want to keep, you may remove or edit it.
9682 # By default, configure uses ./config.cache as the cache file,
9683 # creating it if it does not exist already. You can give configure
9684 # the --cache-file=FILE option to use a different cache file; that is
9685 # what configure does when it calls configure scripts in
9686 # subdirectories, so they share the cache.
9687 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9688 # config.status only pays attention to the cache file if you give it the
9689 # --recheck option to rerun configure.
9692 # The following way of writing the cache mishandles newlines in values,
9693 # but we know of no workaround that is simple, portable, and efficient.
9694 # So, don't put newlines in cache variables' values.
9695 # Ultrix sh set writes to stderr and can't be redirected directly,
9696 # and sets the high bit in the cache file unless we assign to the vars.
9698 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9700 # `set' does not quote correctly, so add quotes (double-quote substitution
9701 # turns \\\\ into \\, and sed turns \\ into \).
9703 -e "s/'/'\\\\''/g" \
9704 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9707 # `set' quotes correctly as required by POSIX, so do not add quotes.
9708 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9711 if cmp -s $cache_file confcache
; then
9714 if test -w $cache_file; then
9715 echo "updating cache $cache_file"
9716 cat confcache
> $cache_file
9718 echo "not updating unwritable cache $cache_file"
9723 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9725 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9726 # Let make expand exec_prefix.
9727 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9729 # Any assignment to VPATH causes Sun make to only execute
9730 # the first set of double-colon rules, so remove it if not needed.
9731 # If there is a colon in the path, we need to keep it.
9732 if test "x$srcdir" = x.
; then
9733 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
9736 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9738 DEFS
=-DHAVE_CONFIG_H
9740 # Without the "./", some shells look in PATH for config.status.
9741 : ${CONFIG_STATUS=./config.status}
9743 echo creating
$CONFIG_STATUS
9744 rm -f $CONFIG_STATUS
9745 cat > $CONFIG_STATUS <<EOF
9747 # Generated automatically by configure.
9748 # Run this file to recreate the current configuration.
9749 # This directory was configured as follows,
9750 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9752 # $0 $ac_configure_args
9754 # Compiler output produced by configure, useful for debugging
9755 # configure, is in ./config.log if it exists.
9757 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9760 case "\$ac_option" in
9761 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9762 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9763 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9764 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9765 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9767 -help | --help | --hel | --he | --h)
9768 echo "\$ac_cs_usage"; exit 0 ;;
9769 *) echo "\$ac_cs_usage"; exit 1 ;;
9773 ac_given_srcdir=$srcdir
9775 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9777 cat >> $CONFIG_STATUS <<EOF
9779 # Protect against being on the right side of a sed subst in config.status.
9780 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9781 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9785 s%@CFLAGS@%$CFLAGS%g
9786 s%@CPPFLAGS@%$CPPFLAGS%g
9787 s%@CXXFLAGS@%$CXXFLAGS%g
9788 s%@FFLAGS@%$FFLAGS%g
9790 s%@LDFLAGS@%$LDFLAGS%g
9792 s%@exec_prefix@%$exec_prefix%g
9793 s%@prefix@%$prefix%g
9794 s%@program_transform_name@%$program_transform_name%g
9795 s%@bindir@%$bindir%g
9796 s%@sbindir@%$sbindir%g
9797 s%@libexecdir@%$libexecdir%g
9798 s%@datadir@%$datadir%g
9799 s%@sysconfdir@%$sysconfdir%g
9800 s%@sharedstatedir@%$sharedstatedir%g
9801 s%@localstatedir@%$localstatedir%g
9802 s%@libdir@%$libdir%g
9803 s%@includedir@%$includedir%g
9804 s%@oldincludedir@%$oldincludedir%g
9805 s%@infodir@%$infodir%g
9806 s%@mandir@%$mandir%g
9808 s%@host_alias@%$host_alias%g
9809 s%@host_cpu@%$host_cpu%g
9810 s%@host_vendor@%$host_vendor%g
9811 s%@host_os@%$host_os%g
9812 s%@target@%$target%g
9813 s%@target_alias@%$target_alias%g
9814 s%@target_cpu@%$target_cpu%g
9815 s%@target_vendor@%$target_vendor%g
9816 s%@target_os@%$target_os%g
9818 s%@build_alias@%$build_alias%g
9819 s%@build_cpu@%$build_cpu%g
9820 s%@build_vendor@%$build_vendor%g
9821 s%@build_os@%$build_os%g
9823 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
9824 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
9825 s%@stage2_warn_cflags@%$stage2_warn_cflags%g
9826 s%@SET_MAKE@%$SET_MAKE%g
9829 s%@LEXLIB@%$LEXLIB%g
9832 s%@RANLIB@%$RANLIB%g
9834 s%@INSTALL@%$INSTALL%g
9835 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9836 s%@INSTALL_DATA@%$INSTALL_DATA%g
9839 s%@MAKEINFO@%$MAKEINFO%g
9840 s%@BUILD_INFO@%$BUILD_INFO%g
9841 s%@INSTALL_INFO@%$INSTALL_INFO%g
9842 s%@TARGET_GETGROUPS_T@%$TARGET_GETGROUPS_T%g
9843 s%@vfprintf@%$vfprintf%g
9844 s%@doprint@%$doprint%g
9845 s%@manext@%$manext%g
9846 s%@objext@%$objext%g
9847 s%@PACKAGE@%$PACKAGE%g
9848 s%@VERSION@%$VERSION%g
9849 s%@ALLOCA@%$ALLOCA%g
9850 s%@USE_NLS@%$USE_NLS%g
9851 s%@MSGFMT@%$MSGFMT%g
9852 s%@GMSGFMT@%$GMSGFMT%g
9853 s%@XGETTEXT@%$XGETTEXT%g
9854 s%@GENCAT@%$GENCAT%g
9855 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9856 s%@CATALOGS@%$CATALOGS%g
9857 s%@CATOBJEXT@%$CATOBJEXT%g
9858 s%@DATADIRNAME@%$DATADIRNAME%g
9859 s%@GMOFILES@%$GMOFILES%g
9860 s%@INSTOBJEXT@%$INSTOBJEXT%g
9861 s%@INTLDEPS@%$INTLDEPS%g
9862 s%@INTLLIBS@%$INTLLIBS%g
9863 s%@INTLOBJS@%$INTLOBJS%g
9864 s%@POFILES@%$POFILES%g
9866 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
9868 s%@GT_YES@%$GT_YES%g
9869 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9871 s%@inhibit_libc@%$inhibit_libc%g
9872 s%@gthread_flags@%$gthread_flags%g
9874 s%@GXX_ABI_FLAG@%$GXX_ABI_FLAG%g
9876 s%@build_canonical@%$build_canonical%g
9877 s%@host_canonical@%$host_canonical%g
9878 s%@target_subdir@%$target_subdir%g
9879 s%@gcc_tooldir@%$gcc_tooldir%g
9880 s%@dollar@%$dollar%g
9881 s%@objdir@%$objdir%g
9882 s%@subdirs@%$subdirs%g
9883 s%@all_boot_languages@%$all_boot_languages%g
9884 s%@all_compilers@%$all_compilers%g
9885 s%@all_diff_excludes@%$all_diff_excludes%g
9886 s%@all_headers@%$all_headers%g
9887 s%@all_lang_makefiles@%$all_lang_makefiles%g
9888 s%@all_languages@%$all_languages%g
9889 s%@all_lib2funcs@%$all_lib2funcs%g
9890 s%@all_stagestuff@%$all_stagestuff%g
9891 s%@build_exeext@%$build_exeext%g
9892 s%@build_install_headers_dir@%$build_install_headers_dir%g
9893 s%@build_xm_file_list@%$build_xm_file_list%g
9894 s%@cc_set_by_configure@%$cc_set_by_configure%g
9895 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
9896 s%@cpp_install_dir@%$cpp_install_dir%g
9897 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
9898 s%@dep_tmake_file@%$dep_tmake_file%g
9899 s%@extra_c_flags@%$extra_c_flags%g
9900 s%@extra_c_objs@%$extra_c_objs%g
9901 s%@extra_cpp_objs@%$extra_cpp_objs%g
9902 s%@extra_cxx_objs@%$extra_cxx_objs%g
9903 s%@extra_headers_list@%$extra_headers_list%g
9904 s%@extra_objs@%$extra_objs%g
9905 s%@extra_parts@%$extra_parts%g
9906 s%@extra_passes@%$extra_passes%g
9907 s%@extra_programs@%$extra_programs%g
9908 s%@float_h_file@%$float_h_file%g
9909 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
9910 s%@gcc_version@%$gcc_version%g
9911 s%@gcc_version_trigger@%$gcc_version_trigger%g
9912 s%@host_exeext@%$host_exeext%g
9913 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
9914 s%@host_xm_file_list@%$host_xm_file_list%g
9915 s%@install@%$install%g
9916 s%@lang_options_files@%$lang_options_files%g
9917 s%@lang_specs_files@%$lang_specs_files%g
9918 s%@lang_tree_files@%$lang_tree_files%g
9919 s%@local_prefix@%$local_prefix%g
9920 s%@maybe_use_collect2@%$maybe_use_collect2%g
9921 s%@md_file@%$md_file%g
9922 s%@objc_boehm_gc@%$objc_boehm_gc%g
9923 s%@out_file@%$out_file%g
9924 s%@out_object_file@%$out_object_file%g
9925 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
9926 s%@symbolic_link@%$symbolic_link%g
9927 s%@thread_file@%$thread_file%g
9928 s%@tm_file_list@%$tm_file_list%g
9929 s%@will_use_collect2@%$will_use_collect2%g
9930 /@target_overrides@/r $target_overrides
9931 s%@target_overrides@%%g
9932 /@host_overrides@/r $host_overrides
9933 s%@host_overrides@%%g
9934 s%@cross_defines@%$cross_defines%g
9935 /@cross_overrides@/r $cross_overrides
9936 s%@cross_overrides@%%g
9937 /@build_overrides@/r $build_overrides
9938 s%@build_overrides@%%g
9939 /@language_fragments@/r $language_fragments
9940 s%@language_fragments@%%g
9941 /@language_hooks@/r $language_hooks
9942 s%@language_hooks@%%g
9947 cat >> $CONFIG_STATUS <<\EOF
9949 # Split the substitutions into bite-sized pieces for seds with
9950 # small command number limits, like on Digital OSF/1 and HP-UX.
9951 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
9952 ac_file
=1 # Number of current file.
9953 ac_beg
=1 # First line for current file.
9954 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
9957 while $ac_more_lines; do
9958 if test $ac_beg -gt 1; then
9959 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
9961 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
9963 if test ! -s conftest.s
$ac_file; then
9965 rm -f conftest.s
$ac_file
9967 if test -z "$ac_sed_cmds"; then
9968 ac_sed_cmds
="sed -f conftest.s$ac_file"
9970 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
9972 ac_file
=`expr $ac_file + 1`
9974 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
9977 if test -z "$ac_sed_cmds"; then
9982 cat >> $CONFIG_STATUS <<EOF
9984 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
9986 cat >> $CONFIG_STATUS <<\EOF
9987 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
9988 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9990 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9991 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9992 *) ac_file_in
="${ac_file}.in" ;;
9995 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9997 # Remove last slash and all that follows it. Not all systems have dirname.
9998 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9999 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
10000 # The file is in a subdirectory.
10001 test ! -d "$ac_dir" && mkdir
"$ac_dir"
10002 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
10003 # A "../" for each directory in $ac_dir_suffix.
10004 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10006 ac_dir_suffix
= ac_dots
=
10009 case "$ac_given_srcdir" in
10011 if test -z "$ac_dots"; then top_srcdir
=.
10012 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10013 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
10014 *) # Relative path.
10015 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10016 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
10020 echo creating
"$ac_file"
10022 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10024 *Makefile
*) ac_comsub
="1i\\
10025 # $configure_input" ;;
10029 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10031 s%@configure_input@%$configure_input%g
10032 s%@srcdir@%$srcdir%g
10033 s%@top_srcdir@%$top_srcdir%g
10034 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
10038 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10039 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10041 # ac_d sets the value in "#define NAME VALUE" lines.
10042 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10043 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
10046 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10047 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10048 ac_uB
='\([ ]\)%\1#\2define\3'
10051 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10052 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10053 ac_eB
='$%\1#\2define\3'
10057 if test "${CONFIG_HEADERS+set}" != set; then
10059 cat >> $CONFIG_STATUS <<EOF
10060 CONFIG_HEADERS="auto-host.h:config.in"
10062 cat >> $CONFIG_STATUS <<\EOF
10064 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
10065 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10067 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
10068 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
10069 *) ac_file_in
="${ac_file}.in" ;;
10072 echo creating
$ac_file
10074 rm -f conftest.frag conftest.
in conftest.out
10075 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10076 cat $ac_file_inputs > conftest.
in
10080 # Transform confdefs.h into a sed script conftest.vals that substitutes
10081 # the proper values into config.h.in to produce config.h. And first:
10082 # Protect against being on the right side of a sed subst in config.status.
10083 # Protect against being in an unquoted here document in config.status.
10084 rm -f conftest.vals
10085 cat > conftest.hdr
<<\EOF
10088 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10092 sed -n -f conftest.hdr confdefs.h > conftest.vals
10095 # This sed command replaces #undef with comments. This is necessary, for
10096 # example, in the case of _POSIX_SOURCE, which is predefined and required
10097 # on some systems where configure will not decide to define it.
10098 cat >> conftest.vals <<\EOF
10099 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10102 # Break up conftest.vals because some shells have a limit on
10103 # the size of here documents, and old seds have small limits too.
10105 rm -f conftest.tail
10108 ac_lines=`grep -c . conftest.vals
`
10109 # grep -c gives empty output for an empty file on some AIX systems.
10110 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10111 # Write a limited-size here document to conftest.frag.
10112 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10113 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10115 sed -f conftest.frag conftest.in > conftest.out
10117 mv conftest.out conftest.in
10118 ' >> $CONFIG_STATUS
10119 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10120 rm -f conftest.vals
10121 mv conftest.tail conftest.vals
10123 rm -f conftest.vals
10125 cat >> $CONFIG_STATUS <<\EOF
10126 rm -f conftest.frag conftest.h
10127 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10128 cat conftest.in >> conftest.h
10130 if cmp -s $ac_file conftest.h 2>/dev/null; then
10131 echo "$ac_file is unchanged"
10134 # Remove last slash and all that follows it. Not all systems have dirname.
10135 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
10136 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10137 # The file is in a subdirectory.
10138 test ! -d "$ac_dir" && mkdir "$ac_dir"
10141 mv conftest.h $ac_file
10147 cat >> $CONFIG_STATUS <<EOF
10148 ac_sources="$nls_cv_header_libgt"
10149 ac_dests="$nls_cv_header_intl"
10152 cat >> $CONFIG_STATUS <<\EOF
10153 srcdir=$ac_given_srcdir
10154 while test -n "$ac_sources"; do
10155 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
10156 set $ac_sources; ac_source=$1; shift; ac_sources=$*
10158 echo "linking $srcdir/$ac_source to $ac_dest"
10160 if test ! -r $srcdir/$ac_source; then
10161 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
10165 # Make relative symlinks.
10166 # Remove last slash and all that follows it. Not all systems have dirname.
10167 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
10168 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
10169 # The dest file is in a subdirectory.
10170 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
10171 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
10172 # A "../" for each directory in $ac_dest_dir_suffix.
10173 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
10175 ac_dest_dir_suffix= ac_dots=
10179 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
10180 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
10183 # Make a symlink if possible; otherwise try a hard link.
10184 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
10185 ln $srcdir/$ac_source $ac_dest; then :
10187 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
10191 cat >> $CONFIG_STATUS <<EOF
10197 target_alias='${target_alias}'
10199 subdirs='${subdirs}'
10200 oldstyle_subdirs='${oldstyle_subdirs}'
10201 symbolic_link='${symbolic_link}'
10202 program_transform_set='${program_transform_set}'
10203 program_transform_name='${program_transform_name}'
10204 dep_host_xmake_file='${dep_host_xmake_file}'
10205 host_xmake_file='${host_xmake_file}'
10206 dep_tmake_file='${dep_tmake_file}'
10207 tmake_file='${tmake_file}'
10208 thread_file='${thread_file}'
10209 gcc_version='${gcc_version}'
10210 gcc_version_trigger='${gcc_version_trigger}'
10211 local_prefix='${local_prefix}'
10212 build_install_headers_dir='${build_install_headers_dir}'
10213 build_exeext='${build_exeext}'
10214 host_exeext='${host_exeext}'
10215 out_file='${out_file}'
10216 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
10217 SET_MAKE='${SET_MAKE}'
10218 target_list='${target_list}'
10219 target_overrides='${target_overrides}'
10220 host_overrides='${host_overrides}'
10221 cross_defines='${cross_defines}'
10222 cross_overrides='${cross_overrides}'
10223 build_overrides='${build_overrides}'
10224 cpp_install_dir='${cpp_install_dir}'
10227 cat >> $CONFIG_STATUS <<\EOF
10228 case "$CONFIG_FILES" in *po/Makefile.in*)
10229 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
10232 . $srcdir/configure.lang
10233 case x$CONFIG_HEADERS in
10234 xauto-host.h:config.in)
10237 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
10238 # bootstrapping and the installation procedure can still use
10239 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
10240 # FLAGS_TO_PASS has been modified to solve the problem there.
10241 # This is virtually a duplicate of what happens in configure.lang; we do
10242 # an extra check to make sure this only happens if ln -s can be used.
10243 if test "$symbolic_link" = "ln -s"; then
10244 for d in .. ${subdirs} ; do
10245 if test $d != ..; then
10248 for t in stage1 stage2 stage3 stage4 include
10251 $symbolic_link ../$t $t 2>/dev/null
10257 # Avoid having to add intl to our include paths.
10258 if test -f intl/libintl.h; then
10259 echo creating libintl.h
10260 echo '#include "intl/libintl.h"' >libintl.h
10265 chmod +x $CONFIG_STATUS
10266 rm -fr confdefs* $ac_clean_files
10267 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1