3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-gnu-ld arrange to work with GNU ld."
17 --with-ld arrange to use the specified ld (full pathname)."
19 --with-gnu-as arrange to work with GNU as."
21 --with-as arrange to use the specified as (full pathname)."
23 --with-stabs arrange to use stabs instead of host debug format."
25 --with-elf arrange to use ELF instead of host debug format."
27 --with-local-prefix=DIR specifies directory to put local include."
29 --with-gxx-include-dir=DIR
30 specifies directory to put g++ header files."
32 --enable-checking[=LIST]
33 enable expensive run-time checks. With LIST,
34 enable only specific categories of checks.
35 Categories are: misc,tree,rtl,gc,gcac; default
38 --disable-cpp don't provide a user-visible C preprocessor."
40 --with-cpp-install-dir=DIR
41 install the user visible C preprocessor in DIR
42 (relative to PREFIX) as well as PREFIX/bin."
44 --enable-c-mbchar Enable multibyte characters for C and C++."
46 --enable-threads enable thread usage for target GCC.
47 --enable-threads=LIB use LIB thread package for target GCC."
49 --enable-objc-gc enable the use of Boehm's garbage collector with
50 the GNU Objective-C runtime."
52 --with-dwarf2 force the default debug format to be DWARF2."
54 --enable-nls use Native Language Support (default)"
56 --disable-nls do not use Native Language Support"
58 --with-included-gettext use the GNU gettext library included here"
60 --with-catgets use catgets functions if available"
62 --disable-win32-registry
63 Disable lookup of installation paths in the
64 Registry on Windows hosts.
65 --enable-win32-registry Enable registry lookup (default).
66 --enable-win32-registry=KEY
67 Use KEY instead of GCC version as the last portion
70 --with-gc={simple,page} Choose the garbage collection mechanism to use
74 select the new abi for g++. You must select an ABI
75 at configuration time, so that the correct runtime
76 support is built. You cannot mix ABIs."
79 enable libstdc++-v3 for building and installation"
81 --enable-maintainer-mode enable make rules and dependencies not useful
82 (and sometimes confusing) to the casual installer"
84 # Initialize some variables set by options.
85 # The variables have the same names as the options, with
86 # dashes changed to underlines.
88 cache_file
=.
/config.cache
97 program_transform_name
=s
,x
,x
,
105 bindir
='${exec_prefix}/bin'
106 sbindir
='${exec_prefix}/sbin'
107 libexecdir
='${exec_prefix}/libexec'
108 datadir
='${prefix}/share'
109 sysconfdir
='${prefix}/etc'
110 sharedstatedir
='${prefix}/com'
111 localstatedir
='${prefix}/var'
112 libdir
='${exec_prefix}/lib'
113 includedir
='${prefix}/include'
114 oldincludedir
='/usr/include'
115 infodir
='${prefix}/info'
116 mandir
='${prefix}/man'
118 # Initialize some other variables.
121 SHELL
=${CONFIG_SHELL-/bin/sh}
122 # Maximum number of lines to put in a shell here document.
129 # If the previous option needs an argument, assign it.
130 if test -n "$ac_prev"; then
131 eval "$ac_prev=\$ac_option"
137 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
141 # Accept the important Cygnus configure options, so we can diagnose typos.
145 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
147 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
148 bindir
="$ac_optarg" ;;
150 -build |
--build |
--buil |
--bui |
--bu)
152 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
153 build
="$ac_optarg" ;;
155 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
156 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
157 ac_prev
=cache_file
;;
158 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
159 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
160 cache_file
="$ac_optarg" ;;
162 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
164 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
166 datadir
="$ac_optarg" ;;
168 -disable-* |
--disable-*)
169 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
170 # Reject names that are not valid shell variable names.
171 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
172 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
174 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
175 eval "enable_${ac_feature}=no" ;;
177 -enable-* |
--enable-*)
178 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
179 # Reject names that are not valid shell variable names.
180 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
181 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
183 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
188 eval "enable_${ac_feature}='$ac_optarg'" ;;
190 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
191 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
192 |
--exec |
--exe |
--ex)
193 ac_prev
=exec_prefix
;;
194 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
195 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
196 |
--exec=* |
--exe=* |
--ex=*)
197 exec_prefix
="$ac_optarg" ;;
199 -gas |
--gas |
--ga |
--g)
200 # Obsolete; use --with-gas.
203 -help |
--help |
--hel |
--he)
204 # Omit some internal or obsolete options to make the list less imposing.
205 # This message is too long to be a string in the A/UX 3.1 sh.
207 Usage: configure [options] [host]
208 Options: [defaults in brackets after descriptions]
210 --cache-file=FILE cache test results in FILE
211 --help print this message
212 --no-create do not create output files
213 --quiet, --silent do not print \`checking...' messages
214 --version print the version of autoconf that created configure
215 Directory and file names:
216 --prefix=PREFIX install architecture-independent files in PREFIX
218 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
220 --bindir=DIR user executables in DIR [EPREFIX/bin]
221 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
222 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
223 --datadir=DIR read-only architecture-independent data in DIR
225 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
226 --sharedstatedir=DIR modifiable architecture-independent data in DIR
228 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
229 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
230 --includedir=DIR C header files in DIR [PREFIX/include]
231 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
232 --infodir=DIR info documentation in DIR [PREFIX/info]
233 --mandir=DIR man documentation in DIR [PREFIX/man]
234 --srcdir=DIR find the sources in DIR [configure dir or ..]
235 --program-prefix=PREFIX prepend PREFIX to installed program names
236 --program-suffix=SUFFIX append SUFFIX to installed program names
237 --program-transform-name=PROGRAM
238 run sed PROGRAM on installed program names
242 --build=BUILD configure for building on BUILD [BUILD=HOST]
243 --host=HOST configure for HOST [guessed]
244 --target=TARGET configure for TARGET [TARGET=HOST]
245 Features and packages:
246 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
247 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
248 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
249 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
250 --x-includes=DIR X include files are in DIR
251 --x-libraries=DIR X library files are in DIR
253 if test -n "$ac_help"; then
254 echo "--enable and --with options recognized:$ac_help"
258 -host |
--host |
--hos |
--ho)
260 -host=* |
--host=* |
--hos=* |
--ho=*)
263 -includedir |
--includedir |
--includedi |
--included |
--include \
264 |
--includ |
--inclu |
--incl |
--inc)
265 ac_prev
=includedir
;;
266 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
267 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
268 includedir
="$ac_optarg" ;;
270 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
272 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
273 infodir
="$ac_optarg" ;;
275 -libdir |
--libdir |
--libdi |
--libd)
277 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
278 libdir
="$ac_optarg" ;;
280 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
281 |
--libexe |
--libex |
--libe)
282 ac_prev
=libexecdir
;;
283 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
284 |
--libexe=* |
--libex=* |
--libe=*)
285 libexecdir
="$ac_optarg" ;;
287 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
288 |
--localstate |
--localstat |
--localsta |
--localst \
289 |
--locals |
--local |
--loca |
--loc |
--lo)
290 ac_prev
=localstatedir
;;
291 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
292 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
293 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
294 localstatedir
="$ac_optarg" ;;
296 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
298 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
299 mandir
="$ac_optarg" ;;
302 # Obsolete; use --without-fp.
305 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
309 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
310 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
313 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
314 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
315 |
--oldin |
--oldi |
--old |
--ol |
--o)
316 ac_prev
=oldincludedir
;;
317 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
318 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
319 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
320 oldincludedir
="$ac_optarg" ;;
322 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
324 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
325 prefix
="$ac_optarg" ;;
327 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
328 |
--program-pre |
--program-pr |
--program-p)
329 ac_prev
=program_prefix
;;
330 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
331 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
332 program_prefix
="$ac_optarg" ;;
334 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
335 |
--program-suf |
--program-su |
--program-s)
336 ac_prev
=program_suffix
;;
337 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
338 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
339 program_suffix
="$ac_optarg" ;;
341 -program-transform-name |
--program-transform-name \
342 |
--program-transform-nam |
--program-transform-na \
343 |
--program-transform-n |
--program-transform- \
344 |
--program-transform |
--program-transfor \
345 |
--program-transfo |
--program-transf \
346 |
--program-trans |
--program-tran \
347 |
--progr-tra |
--program-tr |
--program-t)
348 ac_prev
=program_transform_name
;;
349 -program-transform-name=* |
--program-transform-name=* \
350 |
--program-transform-nam=* |
--program-transform-na=* \
351 |
--program-transform-n=* |
--program-transform-=* \
352 |
--program-transform=* |
--program-transfor=* \
353 |
--program-transfo=* |
--program-transf=* \
354 |
--program-trans=* |
--program-tran=* \
355 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
356 program_transform_name
="$ac_optarg" ;;
358 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
359 |
-silent |
--silent |
--silen |
--sile |
--sil)
362 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
364 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
366 sbindir
="$ac_optarg" ;;
368 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
369 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
370 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
372 ac_prev
=sharedstatedir
;;
373 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
374 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
375 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
377 sharedstatedir
="$ac_optarg" ;;
379 -site |
--site |
--sit)
381 -site=* |
--site=* |
--sit=*)
384 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
386 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
387 srcdir
="$ac_optarg" ;;
389 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
390 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
391 ac_prev
=sysconfdir
;;
392 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
393 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
394 sysconfdir
="$ac_optarg" ;;
396 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
398 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
399 target
="$ac_optarg" ;;
401 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
404 -version |
--version |
--versio |
--versi |
--vers)
405 echo "configure generated by autoconf version 2.13"
409 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
410 # Reject names that are not valid shell variable names.
411 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
412 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
414 ac_package
=`echo $ac_package| sed 's/-/_/g'`
419 eval "with_${ac_package}='$ac_optarg'" ;;
421 -without-* |
--without-*)
422 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
423 # Reject names that are not valid shell variable names.
424 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
425 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
427 ac_package
=`echo $ac_package| sed 's/-/_/g'`
428 eval "with_${ac_package}=no" ;;
431 # Obsolete; use --with-x.
434 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
435 |
--x-incl |
--x-inc |
--x-in |
--x-i)
436 ac_prev
=x_includes
;;
437 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
438 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
439 x_includes
="$ac_optarg" ;;
441 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
442 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
443 ac_prev
=x_libraries
;;
444 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
445 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
446 x_libraries
="$ac_optarg" ;;
448 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
452 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
453 echo "configure: warning: $ac_option: invalid host type" 1>&2
455 if test "x$nonopt" != xNONE
; then
456 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
464 if test -n "$ac_prev"; then
465 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
468 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
470 # File descriptor usage:
473 # 2 errors and warnings
474 # 3 some systems may open it to /dev/tty
475 # 4 used on the Kubota Titan
476 # 6 checking for... messages and results
477 # 5 compiler messages saved in config.log
478 if test "$silent" = yes; then
486 This file contains any messages produced by compilers while
487 running configure, to aid debugging if configure makes a mistake.
490 # Strip out --no-create and --no-recursion so they do not pile up.
491 # Also quote any args containing shell metacharacters.
496 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
497 |
--no-cr |
--no-c) ;;
498 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
499 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
500 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
501 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
502 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
507 # Only set these to C if already set. These must not be set unconditionally
508 # because not all systems understand e.g. LANG=C (notably SCO).
509 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
510 # Non-C LC_CTYPE values break the ctype check.
511 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
512 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
513 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
514 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
516 # confdefs.h avoids OS command line length limits that DEFS can exceed.
517 rm -rf conftest
* confdefs.h
518 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
521 # A filename unique to this package, relative to the directory that
522 # configure is in, which we can look for to find out if srcdir is correct.
523 ac_unique_file
=tree.c
525 # Find the source files, if location was not specified.
526 if test -z "$srcdir"; then
527 ac_srcdir_defaulted
=yes
528 # Try the directory containing this script, then its parent.
530 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
531 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
533 if test ! -r $srcdir/$ac_unique_file; then
537 ac_srcdir_defaulted
=no
539 if test ! -r $srcdir/$ac_unique_file; then
540 if test "$ac_srcdir_defaulted" = yes; then
541 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
543 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
546 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
548 # Prefer explicitly selected file to automatically selected ones.
549 if test -z "$CONFIG_SITE"; then
550 if test "x$prefix" != xNONE
; then
551 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
553 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
556 for ac_site_file
in $CONFIG_SITE; do
557 if test -r "$ac_site_file"; then
558 echo "loading site script $ac_site_file"
563 if test -r "$cache_file"; then
564 echo "loading cache $cache_file"
567 echo "creating cache $cache_file"
572 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
573 ac_cpp
='$CPP $CPPFLAGS'
574 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
575 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
576 cross_compiling
=$ac_cv_prog_cc_cross
580 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
581 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
582 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
589 ac_n
= ac_c
='\c' ac_t
=
597 symbolic_link
='ln -s'
600 # Check for bogus environment variables.
601 # Test if LIBRARY_PATH contains the notation for the current directory
602 # since this would lead to problems installing/building glibc.
603 # LIBRARY_PATH contains the current directory if one of the following
605 # - one of the terminals (":" and ";") is the first or last sign
606 # - two terminals occur directly after each other
607 # - the path contains an element with a dot in it
608 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
609 echo "configure:610: checking LIBRARY_PATH variable" >&5
610 case ${LIBRARY_PATH} in
611 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
612 library_path_setting
="contains current directory"
615 library_path_setting
="ok"
618 echo "$ac_t""$library_path_setting" 1>&6
619 if test "$library_path_setting" != "ok"; then
620 { echo "configure: error:
621 *** LIBRARY_PATH shouldn't contain the current directory when
622 *** building gcc. Please change the environment variable
623 *** and run configure again." 1>&2; exit 1; }
626 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
627 # since this would lead to problems installing/building glibc.
628 # GCC_EXEC_PREFIX contains the current directory if one of the following
630 # - one of the terminals (":" and ";") is the first or last sign
631 # - two terminals occur directly after each other
632 # - the path contains an element with a dot in it
633 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
634 echo "configure:635: checking GCC_EXEC_PREFIX variable" >&5
635 case ${GCC_EXEC_PREFIX} in
636 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
637 gcc_exec_prefix_setting
="contains current directory"
640 gcc_exec_prefix_setting
="ok"
643 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
644 if test "$gcc_exec_prefix_setting" != "ok"; then
645 { echo "configure: error:
646 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
647 *** building gcc. Please change the environment variable
648 *** and run configure again." 1>&2; exit 1; }
651 # Check for additional parameters
654 # Check whether --with-gnu-ld or --without-gnu-ld was given.
655 if test "${with_gnu_ld+set}" = set; then
656 withval
="$with_gnu_ld"
657 gnu_ld_flag
="$with_gnu_ld"
663 # With pre-defined ld
664 # Check whether --with-ld or --without-ld was given.
665 if test "${with_ld+set}" = set; then
667 DEFAULT_LINKER
="$with_ld"
670 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
671 if test ! -x "$DEFAULT_LINKER"; then
672 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
673 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
676 cat >> confdefs.h
<<EOF
677 #define DEFAULT_LINKER "$DEFAULT_LINKER"
683 # Check whether --with-gnu-as or --without-gnu-as was given.
684 if test "${with_gnu_as+set}" = set; then
685 withval
="$with_gnu_as"
686 gas_flag
="$with_gnu_as"
692 # Check whether --with-as or --without-as was given.
693 if test "${with_as+set}" = set; then
695 DEFAULT_ASSEMBLER
="$with_as"
698 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
699 if test ! -x "$DEFAULT_ASSEMBLER"; then
700 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
701 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
704 cat >> confdefs.h
<<EOF
705 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
711 # Check whether --with-stabs or --without-stabs was given.
712 if test "${with_stabs+set}" = set; then
713 withval
="$with_stabs"
721 # Check whether --with-elf or --without-elf was given.
722 if test "${with_elf+set}" = set; then
730 # Specify the local prefix
732 # Check whether --with-local-prefix or --without-local-prefix was given.
733 if test "${with_local_prefix+set}" = set; then
734 withval
="$with_local_prefix"
736 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
738 *) local_prefix
=$with_local_prefix ;;
743 # Default local prefix if it is empty
744 if test x
$local_prefix = x
; then
745 local_prefix
=/usr
/local
748 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
749 # passed in by the toplevel make and thus we'd get different behavior
750 # depending on where we built the sources.
752 # Specify the g++ header file directory
753 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
754 if test "${with_gxx_include_dir+set}" = set; then
755 withval
="$with_gxx_include_dir"
757 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
759 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
764 if test x
${gcc_gxx_include_dir} = x
; then
765 if test x
${enable_version_specific_runtime_libs} = xyes
; then
766 gcc_gxx_include_dir
='${libsubdir}/include/g++'
768 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
769 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
773 # Enable expensive internal checks
774 # Check whether --enable-checking or --disable-checking was given.
775 if test "${enable_checking+set}" = set; then
776 enableval
="$enable_checking"
781 ac_gc_always_collect
=
782 case "${enableval}" in
783 yes) ac_checking
=1 ; ac_tree_checking
=1 ; ac_rtl_checking
=1 ;;
785 *) IFS
="${IFS= }"; ac_save_IFS
="$IFS" IFS
="$IFS,"
786 set fnord
$enableval; shift
791 misc
) ac_checking
=1 ;;
792 tree
) ac_tree_checking
=1 ;;
793 rtl
) ac_rtl_checking
=1 ;;
794 gc
) ac_gc_checking
=1 ;;
795 gcac
) ac_gc_always_collect
=1 ;;
796 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
801 if test x
$ac_checking != x
; then
802 cat >> confdefs.h
<<\EOF
803 #define ENABLE_CHECKING 1
807 if test x
$ac_tree_checking != x
; then
808 cat >> confdefs.h
<<\EOF
809 #define ENABLE_TREE_CHECKING 1
813 if test x
$ac_rtl_checking != x
; then
814 cat >> confdefs.h
<<\EOF
815 #define ENABLE_RTL_CHECKING 1
819 if test x
$ac_gc_checking != x
; then
820 cat >> confdefs.h
<<\EOF
821 #define ENABLE_GC_CHECKING 1
825 if test x
$ac_gc_always_collect != x
; then
826 cat >> confdefs.h
<<\EOF
827 #define ENABLE_GC_ALWAYS_COLLECT 1
835 # Check whether --enable-cpp or --disable-cpp was given.
836 if test "${enable_cpp+set}" = set; then
837 enableval
="$enable_cpp"
844 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
845 if test "${with_cpp_install_dir+set}" = set; then
846 withval
="$with_cpp_install_dir"
847 if test x
$withval = xyes
; then
848 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
849 elif test x
$withval != xno
; then
850 cpp_install_dir
=$withval
856 # Enable Multibyte Characters for C/C++
857 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
858 if test "${enable_c_mbchar+set}" = set; then
859 enableval
="$enable_c_mbchar"
860 if test x
$enable_c_mbchar != xno
; then
861 extra_c_flags
="${extra_c_flags} -DMULTIBYTE_CHARS=1"
867 # Pass with no value to take the default
868 # Pass with a value to specify a thread package
869 # Check whether --enable-threads or --disable-threads was given.
870 if test "${enable_threads+set}" = set; then
871 enableval
="$enable_threads"
872 if test x
$enable_threads = xno
; then
880 enable_threads_flag
=$enable_threads
881 # Check if a valid thread package
882 case x
${enable_threads_flag} in
885 target_thread_file
='single'
889 target_thread_file
=''
891 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
892 xsolaris | xwin32 | xdce | xvxworks
)
893 target_thread_file
=$enable_threads_flag
896 echo "$enable_threads is an unknown thread package" 1>&2
901 # Check whether --enable-objc-gc or --disable-objc-gc was given.
902 if test "${enable_objc_gc+set}" = set; then
903 enableval
="$enable_objc_gc"
904 if test x
$enable_objc_gc = xno
; then
914 # Check whether --with-dwarf2 or --without-dwarf2 was given.
915 if test "${with_dwarf2+set}" = set; then
916 withval
="$with_dwarf2"
917 dwarf2
="$with_dwarf2"
923 # Determine the host, build, and target systems
925 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
926 if test -f $ac_dir/install-sh
; then
928 ac_install_sh
="$ac_aux_dir/install-sh -c"
930 elif test -f $ac_dir/install.sh
; then
932 ac_install_sh
="$ac_aux_dir/install.sh -c"
936 if test -z "$ac_aux_dir"; then
937 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
939 ac_config_guess
=$ac_aux_dir/config.guess
940 ac_config_sub
=$ac_aux_dir/config.sub
941 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
944 # Do some error checking and defaulting for the host and target type.
946 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
949 # 1. You are not allowed to specify --host, --target, and nonopt at the
951 # 2. Host defaults to nonopt.
952 # 3. If nonopt is not specified, then host defaults to the current host,
953 # as determined by config.guess.
954 # 4. Target and build default to nonopt.
955 # 5. If nonopt is not specified, then target and build default to host.
957 # The aliases save the names the user supplied, while $host etc.
958 # will get canonicalized.
959 case $host---$target---$nonopt in
960 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
961 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
965 # Make sure we can run config.sub.
966 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
967 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
970 echo $ac_n "checking host system type""... $ac_c" 1>&6
971 echo "configure:972: checking host system type" >&5
974 case "$host_alias" in
978 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
979 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
981 *) host_alias
=$nonopt ;;
985 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
986 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
987 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
988 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
989 echo "$ac_t""$host" 1>&6
991 echo $ac_n "checking target system type""... $ac_c" 1>&6
992 echo "configure:993: checking target system type" >&5
995 case "$target_alias" in
998 NONE
) target_alias
=$host_alias ;;
999 *) target_alias
=$nonopt ;;
1003 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1004 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1005 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1006 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1007 echo "$ac_t""$target" 1>&6
1009 echo $ac_n "checking build system type""... $ac_c" 1>&6
1010 echo "configure:1011: checking build system type" >&5
1013 case "$build_alias" in
1016 NONE
) build_alias
=$host_alias ;;
1017 *) build_alias
=$nonopt ;;
1021 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1022 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1023 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1024 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1025 echo "$ac_t""$build" 1>&6
1027 test "$host_alias" != "$target_alias" &&
1028 test "$program_prefix$program_suffix$program_transform_name" = \
1030 program_prefix
=${target_alias}-
1033 # Find the native compiler
1034 # Extract the first word of "gcc", so it can be a program name with args.
1035 set dummy gcc
; ac_word
=$2
1036 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1037 echo "configure:1038: checking for $ac_word" >&5
1038 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1039 echo $ac_n "(cached) $ac_c" 1>&6
1041 if test -n "$CC"; then
1042 ac_cv_prog_CC
="$CC" # Let the user override the test.
1044 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1046 for ac_dir
in $ac_dummy; do
1047 test -z "$ac_dir" && ac_dir
=.
1048 if test -f $ac_dir/$ac_word; then
1057 if test -n "$CC"; then
1058 echo "$ac_t""$CC" 1>&6
1060 echo "$ac_t""no" 1>&6
1063 if test -z "$CC"; then
1064 # Extract the first word of "cc", so it can be a program name with args.
1065 set dummy cc
; ac_word
=$2
1066 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1067 echo "configure:1068: checking for $ac_word" >&5
1068 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1069 echo $ac_n "(cached) $ac_c" 1>&6
1071 if test -n "$CC"; then
1072 ac_cv_prog_CC
="$CC" # Let the user override the test.
1074 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1077 for ac_dir
in $ac_dummy; do
1078 test -z "$ac_dir" && ac_dir
=.
1079 if test -f $ac_dir/$ac_word; then
1080 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1081 ac_prog_rejected
=yes
1089 if test $ac_prog_rejected = yes; then
1090 # We found a bogon in the path, so make sure we never use it.
1091 set dummy
$ac_cv_prog_CC
1093 if test $# -gt 0; then
1094 # We chose a different compiler from the bogus one.
1095 # However, it has the same basename, so the bogon will be chosen
1096 # first if we set CC to just the basename; use the full file name.
1098 set dummy
"$ac_dir/$ac_word" "$@"
1106 if test -n "$CC"; then
1107 echo "$ac_t""$CC" 1>&6
1109 echo "$ac_t""no" 1>&6
1112 if test -z "$CC"; then
1113 case "`uname -s`" in
1115 # Extract the first word of "cl", so it can be a program name with args.
1116 set dummy cl
; ac_word
=$2
1117 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1118 echo "configure:1119: checking for $ac_word" >&5
1119 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1120 echo $ac_n "(cached) $ac_c" 1>&6
1122 if test -n "$CC"; then
1123 ac_cv_prog_CC
="$CC" # Let the user override the test.
1125 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1127 for ac_dir
in $ac_dummy; do
1128 test -z "$ac_dir" && ac_dir
=.
1129 if test -f $ac_dir/$ac_word; then
1138 if test -n "$CC"; then
1139 echo "$ac_t""$CC" 1>&6
1141 echo "$ac_t""no" 1>&6
1146 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1149 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1150 echo "configure:1151: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1153 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1154 ac_cpp
='$CPP $CPPFLAGS'
1155 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1156 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1157 cross_compiling
=$ac_cv_prog_cc_cross
1159 cat > conftest.
$ac_ext << EOF
1161 #line 1162 "configure"
1162 #include "confdefs.h"
1166 if { (eval echo configure
:1167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1167 ac_cv_prog_cc_works
=yes
1168 # If we can't run a trivial program, we are probably using a cross compiler.
1169 if (.
/conftest
; exit) 2>/dev
/null
; then
1170 ac_cv_prog_cc_cross
=no
1172 ac_cv_prog_cc_cross
=yes
1175 echo "configure: failed program was:" >&5
1176 cat conftest.
$ac_ext >&5
1177 ac_cv_prog_cc_works
=no
1181 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1182 ac_cpp
='$CPP $CPPFLAGS'
1183 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1184 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1185 cross_compiling
=$ac_cv_prog_cc_cross
1187 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1188 if test $ac_cv_prog_cc_works = no
; then
1189 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1191 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1192 echo "configure:1193: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1193 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1194 cross_compiling
=$ac_cv_prog_cc_cross
1196 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1197 echo "configure:1198: checking whether we are using GNU C" >&5
1198 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1199 echo $ac_n "(cached) $ac_c" 1>&6
1201 cat > conftest.c
<<EOF
1206 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1213 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1215 if test $ac_cv_prog_gcc = yes; then
1221 ac_test_CFLAGS
="${CFLAGS+set}"
1222 ac_save_CFLAGS
="$CFLAGS"
1224 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1225 echo "configure:1226: checking whether ${CC-cc} accepts -g" >&5
1226 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1227 echo $ac_n "(cached) $ac_c" 1>&6
1229 echo 'void f(){}' > conftest.c
1230 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1239 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1240 if test "$ac_test_CFLAGS" = set; then
1241 CFLAGS
="$ac_save_CFLAGS"
1242 elif test $ac_cv_prog_cc_g = yes; then
1243 if test "$GCC" = yes; then
1249 if test "$GCC" = yes; then
1256 if test "x$CC" != xcc
; then
1257 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1258 echo "configure:1259: checking whether $CC and cc understand -c and -o together" >&5
1260 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1261 echo "configure:1262: checking whether cc understands -c and -o together" >&5
1263 set dummy
$CC; ac_cc
="`echo $2 |
1264 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1265 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1266 echo $ac_n "(cached) $ac_c" 1>&6
1268 echo 'foo(){}' > conftest.c
1269 # Make sure it works both with $CC and with simple cc.
1270 # We do the test twice because some compilers refuse to overwrite an
1271 # existing .o file with -o, though they will create one.
1272 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1273 if { (eval echo configure
:1274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1274 test -f conftest.o
&& { (eval echo configure
:1275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1276 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1277 if test "x$CC" != xcc
; then
1278 # Test first that cc exists at all.
1279 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1280 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1281 if { (eval echo configure
:1282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1282 test -f conftest.o
&& { (eval echo configure
:1283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1287 # cc exists but doesn't like -o.
1288 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1293 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1298 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1299 echo "$ac_t""yes" 1>&6
1301 echo "$ac_t""no" 1>&6
1302 cat >> confdefs.h
<<\EOF
1303 #define NO_MINUS_C_MINUS_O 1
1308 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1309 NO_MINUS_C_MINUS_O
=yes
1313 echo $ac_n "checking for long double""... $ac_c" 1>&6
1314 echo "configure:1315: checking for long double" >&5
1315 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1316 echo $ac_n "(cached) $ac_c" 1>&6
1318 if test "$GCC" = yes; then
1319 gcc_cv_c_long_double
=yes
1321 cat > conftest.
$ac_ext <<EOF
1322 #line 1323 "configure"
1323 #include "confdefs.h"
1326 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1327 long double foo = 0.0;
1328 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1329 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1332 if { (eval echo configure
:1333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1334 gcc_cv_c_long_double
=yes
1336 echo "configure: failed program was:" >&5
1337 cat conftest.
$ac_ext >&5
1339 gcc_cv_c_long_double
=no
1345 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1346 if test $gcc_cv_c_long_double = yes; then
1347 cat >> confdefs.h
<<\EOF
1348 #define HAVE_LONG_DOUBLE 1
1354 echo $ac_n "checking whether ${CC-cc} accepts -Wno-long-long""... $ac_c" 1>&6
1355 echo "configure:1356: checking whether ${CC-cc} accepts -Wno-long-long" >&5
1356 echo 'void f(){}' > conftest.c
1357 if test -z "`${CC-cc} -Wno-long-long -c conftest.c 2>&1`"; then
1358 ac_cv_prog_cc_no_long_long
=yes
1360 ac_cv_prog_cc_no_long_long
=no
1363 echo "$ac_t"$ac_cv_prog_cc_no_long_long 1>&6
1365 # If the native compiler is GCC, we can enable warnings even in stage1.
1366 # That's useful for people building cross-compilers, or just running a
1368 stage1_warn_cflags
=" -W -Wall -Wtraditional -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes"
1369 stage2_warn_cflags
="$stage1_warn_cflags -pedantic -Wno-long-long"
1370 if test "x$GCC" = "xyes"; then
1371 if test $ac_cv_prog_cc_no_long_long = yes; then
1372 stage1_warn_cflags
="$stage1_warn_cflags -pedantic -Wno-long-long"
1375 stage1_warn_cflags
=""
1380 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1381 echo "configure:1382: checking whether ${MAKE-make} sets \${MAKE}" >&5
1382 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1383 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1384 echo $ac_n "(cached) $ac_c" 1>&6
1386 cat > conftestmake
<<\EOF
1388 @
echo 'ac_maketemp="${MAKE}"'
1390 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1391 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1392 if test -n "$ac_maketemp"; then
1393 eval ac_cv_prog_make_
${ac_make}_set
=yes
1395 eval ac_cv_prog_make_
${ac_make}_set
=no
1399 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1400 echo "$ac_t""yes" 1>&6
1403 echo "$ac_t""no" 1>&6
1404 SET_MAKE
="MAKE=${MAKE-make}"
1408 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1409 echo "configure:1410: checking whether a default assembler was specified" >&5
1410 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1411 if test x
"$gas_flag" = x
"no"; then
1412 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1414 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1417 echo "$ac_t""no" 1>&6
1420 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1421 echo "configure:1422: checking whether a default linker was specified" >&5
1422 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1423 if test x
"$gnu_ld_flag" = x
"no"; then
1424 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1426 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1429 echo "$ac_t""no" 1>&6
1432 echo $ac_n "checking for inline""... $ac_c" 1>&6
1433 echo "configure:1434: checking for inline" >&5
1434 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1435 echo $ac_n "(cached) $ac_c" 1>&6
1438 for ac_kw
in inline __inline__ __inline
; do
1439 cat > conftest.
$ac_ext <<EOF
1440 #line 1441 "configure"
1441 #include "confdefs.h"
1447 if { (eval echo configure
:1448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1449 ac_cv_c_inline
=$ac_kw; break
1451 echo "configure: failed program was:" >&5
1452 cat conftest.
$ac_ext >&5
1459 echo "$ac_t""$ac_cv_c_inline" 1>&6
1460 case "$ac_cv_c_inline" in
1462 no
) cat >> confdefs.h
<<\EOF
1466 *) cat >> confdefs.h
<<EOF
1467 #define inline $ac_cv_c_inline
1473 # Find some useful tools
1474 for ac_prog
in mawk gawk nawk
awk
1476 # Extract the first word of "$ac_prog", so it can be a program name with args.
1477 set dummy
$ac_prog; ac_word
=$2
1478 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1479 echo "configure:1480: checking for $ac_word" >&5
1480 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1481 echo $ac_n "(cached) $ac_c" 1>&6
1483 if test -n "$AWK"; then
1484 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1486 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1488 for ac_dir
in $ac_dummy; do
1489 test -z "$ac_dir" && ac_dir
=.
1490 if test -f $ac_dir/$ac_word; then
1491 ac_cv_prog_AWK
="$ac_prog"
1498 AWK
="$ac_cv_prog_AWK"
1499 if test -n "$AWK"; then
1500 echo "$ac_t""$AWK" 1>&6
1502 echo "$ac_t""no" 1>&6
1505 test -n "$AWK" && break
1508 # Extract the first word of "flex", so it can be a program name with args.
1509 set dummy flex
; ac_word
=$2
1510 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1511 echo "configure:1512: checking for $ac_word" >&5
1512 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1513 echo $ac_n "(cached) $ac_c" 1>&6
1515 if test -n "$LEX"; then
1516 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1518 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1520 for ac_dir
in $ac_dummy; do
1521 test -z "$ac_dir" && ac_dir
=.
1522 if test -f $ac_dir/$ac_word; then
1523 ac_cv_prog_LEX
="flex"
1528 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1531 LEX
="$ac_cv_prog_LEX"
1532 if test -n "$LEX"; then
1533 echo "$ac_t""$LEX" 1>&6
1535 echo "$ac_t""no" 1>&6
1538 if test -z "$LEXLIB"
1544 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1545 echo "configure:1546: checking for yywrap in -l$ac_lib" >&5
1546 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1547 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1548 echo $ac_n "(cached) $ac_c" 1>&6
1550 ac_save_LIBS
="$LIBS"
1551 LIBS
="-l$ac_lib $LIBS"
1552 cat > conftest.
$ac_ext <<EOF
1553 #line 1554 "configure"
1554 #include "confdefs.h"
1555 /* Override any gcc2 internal prototype to avoid an error. */
1556 /* We use char because int might match the return type of a gcc2
1557 builtin and then its argument prototype would still apply. */
1564 if { (eval echo configure
:1565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1566 eval "ac_cv_lib_$ac_lib_var=yes"
1568 echo "configure: failed program was:" >&5
1569 cat conftest.
$ac_ext >&5
1571 eval "ac_cv_lib_$ac_lib_var=no"
1574 LIBS
="$ac_save_LIBS"
1577 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1578 echo "$ac_t""yes" 1>&6
1581 echo "$ac_t""no" 1>&6
1586 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1587 echo "configure:1588: checking whether ln works" >&5
1588 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1589 echo $ac_n "(cached) $ac_c" 1>&6
1591 rm -f conftestdata_t
1592 echo >conftestdata_f
1593 if ln conftestdata_f conftestdata_t
2>/dev
/null
1597 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1599 gcc_cv_prog_LN
="ln -s"
1604 rm -f conftestdata_f conftestdata_t
1607 LN
="$gcc_cv_prog_LN"
1608 if test "$gcc_cv_prog_LN" = "ln"; then
1609 echo "$ac_t""yes" 1>&6
1611 if test "$gcc_cv_prog_LN" = "ln -s"; then
1612 echo "$ac_t""no, using ln -s" 1>&6
1614 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1618 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1619 echo "configure:1620: checking whether ln -s works" >&5
1620 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1621 echo $ac_n "(cached) $ac_c" 1>&6
1623 rm -f conftestdata_t
1624 echo >conftestdata_f
1625 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1627 gcc_cv_prog_LN_S
="ln -s"
1629 if ln conftestdata_f conftestdata_t
2>/dev
/null
1636 rm -f conftestdata_f conftestdata_t
1639 LN_S
="$gcc_cv_prog_LN_S"
1640 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1641 echo "$ac_t""yes" 1>&6
1643 if test "$gcc_cv_prog_LN_S" = "ln"; then
1644 echo "$ac_t""no, using ln" 1>&6
1646 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1650 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1651 echo "configure:1652: checking for volatile" >&5
1652 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1653 echo $ac_n "(cached) $ac_c" 1>&6
1655 cat > conftest.
$ac_ext <<EOF
1656 #line 1657 "configure"
1657 #include "confdefs.h"
1663 if { (eval echo configure
:1664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1665 gcc_cv_c_volatile
=yes
1667 echo "configure: failed program was:" >&5
1668 cat conftest.
$ac_ext >&5
1670 gcc_cv_c_volatile
=no
1675 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1676 if test $gcc_cv_c_volatile = yes ; then
1677 cat >> confdefs.h
<<\EOF
1678 #define HAVE_VOLATILE 1
1683 # Extract the first word of "ranlib", so it can be a program name with args.
1684 set dummy ranlib
; ac_word
=$2
1685 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1686 echo "configure:1687: checking for $ac_word" >&5
1687 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1688 echo $ac_n "(cached) $ac_c" 1>&6
1690 if test -n "$RANLIB"; then
1691 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1693 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1695 for ac_dir
in $ac_dummy; do
1696 test -z "$ac_dir" && ac_dir
=.
1697 if test -f $ac_dir/$ac_word; then
1698 ac_cv_prog_RANLIB
="ranlib"
1703 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1706 RANLIB
="$ac_cv_prog_RANLIB"
1707 if test -n "$RANLIB"; then
1708 echo "$ac_t""$RANLIB" 1>&6
1710 echo "$ac_t""no" 1>&6
1713 for ac_prog
in 'bison -y' byacc
1715 # Extract the first word of "$ac_prog", so it can be a program name with args.
1716 set dummy
$ac_prog; ac_word
=$2
1717 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1718 echo "configure:1719: checking for $ac_word" >&5
1719 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1720 echo $ac_n "(cached) $ac_c" 1>&6
1722 if test -n "$YACC"; then
1723 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1725 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1727 for ac_dir
in $ac_dummy; do
1728 test -z "$ac_dir" && ac_dir
=.
1729 if test -f $ac_dir/$ac_word; then
1730 ac_cv_prog_YACC
="$ac_prog"
1737 YACC
="$ac_cv_prog_YACC"
1738 if test -n "$YACC"; then
1739 echo "$ac_t""$YACC" 1>&6
1741 echo "$ac_t""no" 1>&6
1744 test -n "$YACC" && break
1746 test -n "$YACC" || YACC
="yacc"
1748 # Find a good install program. We prefer a C program (faster),
1749 # so one script is as good as another. But avoid the broken or
1750 # incompatible versions:
1751 # SysV /etc/install, /usr/sbin/install
1752 # SunOS /usr/etc/install
1753 # IRIX /sbin/install
1755 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1756 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1757 # ./install, which can be erroneously created by make from ./install.sh.
1758 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1759 echo "configure:1760: checking for a BSD compatible install" >&5
1760 if test -z "$INSTALL"; then
1761 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1762 echo $ac_n "(cached) $ac_c" 1>&6
1764 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1765 for ac_dir
in $PATH; do
1766 # Account for people who put trailing slashes in PATH elements.
1768 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1770 # OSF1 and SCO ODT 3.0 have their own names for install.
1771 for ac_prog
in ginstall scoinst
install; do
1772 if test -f $ac_dir/$ac_prog; then
1773 if test $ac_prog = install &&
1774 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1775 # AIX install. It has an incompatible calling convention.
1776 # OSF/1 installbsd also uses dspmsg, but is usable.
1779 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1790 if test "${ac_cv_path_install+set}" = set; then
1791 INSTALL
="$ac_cv_path_install"
1793 # As a last resort, use the slow shell script. We don't cache a
1794 # path for INSTALL within a source directory, because that will
1795 # break other packages using the cache if that directory is
1796 # removed, or if the path is relative.
1797 INSTALL
="$ac_install_sh"
1800 echo "$ac_t""$INSTALL" 1>&6
1802 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1803 # It thinks the first close brace ends the variable substitution.
1804 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1806 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1809 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1810 echo "configure:1811: checking how to run the C preprocessor" >&5
1811 # On Suns, sometimes $CPP names a directory.
1812 if test -n "$CPP" && test -d "$CPP"; then
1815 if test -z "$CPP"; then
1816 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1817 echo $ac_n "(cached) $ac_c" 1>&6
1819 # This must be in double quotes, not single quotes, because CPP may get
1820 # substituted into the Makefile and "${CC-cc}" will confuse make.
1822 # On the NeXT, cc -E runs the code through the compiler's parser,
1823 # not just through cpp.
1824 cat > conftest.
$ac_ext <<EOF
1825 #line 1826 "configure"
1826 #include "confdefs.h"
1830 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1831 { (eval echo configure
:1832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1832 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1833 if test -z "$ac_err"; then
1837 echo "configure: failed program was:" >&5
1838 cat conftest.
$ac_ext >&5
1840 CPP
="${CC-cc} -E -traditional-cpp"
1841 cat > conftest.
$ac_ext <<EOF
1842 #line 1843 "configure"
1843 #include "confdefs.h"
1847 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1848 { (eval echo configure
:1849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1849 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1850 if test -z "$ac_err"; then
1854 echo "configure: failed program was:" >&5
1855 cat conftest.
$ac_ext >&5
1857 CPP
="${CC-cc} -nologo -E"
1858 cat > conftest.
$ac_ext <<EOF
1859 #line 1860 "configure"
1860 #include "confdefs.h"
1864 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1865 { (eval echo configure
:1866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1866 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1867 if test -z "$ac_err"; then
1871 echo "configure: failed program was:" >&5
1872 cat conftest.
$ac_ext >&5
1881 ac_cv_prog_CPP
="$CPP"
1883 CPP
="$ac_cv_prog_CPP"
1885 ac_cv_prog_CPP
="$CPP"
1887 echo "$ac_t""$CPP" 1>&6
1889 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1890 echo "configure:1891: checking for ANSI C header files" >&5
1891 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1892 echo $ac_n "(cached) $ac_c" 1>&6
1894 cat > conftest.
$ac_ext <<EOF
1895 #line 1896 "configure"
1896 #include "confdefs.h"
1902 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1903 { (eval echo configure
:1904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1904 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1905 if test -z "$ac_err"; then
1907 ac_cv_header_stdc
=yes
1910 echo "configure: failed program was:" >&5
1911 cat conftest.
$ac_ext >&5
1913 ac_cv_header_stdc
=no
1917 if test $ac_cv_header_stdc = yes; then
1918 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1919 cat > conftest.
$ac_ext <<EOF
1920 #line 1921 "configure"
1921 #include "confdefs.h"
1924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1925 egrep "memchr" >/dev
/null
2>&1; then
1929 ac_cv_header_stdc
=no
1935 if test $ac_cv_header_stdc = yes; then
1936 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1937 cat > conftest.
$ac_ext <<EOF
1938 #line 1939 "configure"
1939 #include "confdefs.h"
1942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1943 egrep "free" >/dev
/null
2>&1; then
1947 ac_cv_header_stdc
=no
1953 if test $ac_cv_header_stdc = yes; then
1954 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1955 if test "$cross_compiling" = yes; then
1958 cat > conftest.
$ac_ext <<EOF
1959 #line 1960 "configure"
1960 #include "confdefs.h"
1962 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1963 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1964 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1965 int main () { int i; for (i = 0; i < 256; i++)
1966 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1970 if { (eval echo configure
:1971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1974 echo "configure: failed program was:" >&5
1975 cat conftest.
$ac_ext >&5
1977 ac_cv_header_stdc
=no
1985 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1986 if test $ac_cv_header_stdc = yes; then
1987 cat >> confdefs.h
<<\EOF
1988 #define STDC_HEADERS 1
1993 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1994 echo "configure:1995: checking whether time.h and sys/time.h may both be included" >&5
1995 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1996 echo $ac_n "(cached) $ac_c" 1>&6
1998 cat > conftest.
$ac_ext <<EOF
1999 #line 2000 "configure"
2000 #include "confdefs.h"
2001 #include <sys/types.h>
2002 #include <sys/time.h>
2008 if { (eval echo configure
:2009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2010 ac_cv_header_time
=yes
2012 echo "configure: failed program was:" >&5
2013 cat conftest.
$ac_ext >&5
2015 ac_cv_header_time
=no
2020 echo "$ac_t""$ac_cv_header_time" 1>&6
2021 if test $ac_cv_header_time = yes; then
2022 cat >> confdefs.h
<<\EOF
2023 #define TIME_WITH_SYS_TIME 1
2028 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
2029 echo "configure:2030: checking whether string.h and strings.h may both be included" >&5
2030 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
2031 echo $ac_n "(cached) $ac_c" 1>&6
2033 cat > conftest.
$ac_ext <<EOF
2034 #line 2035 "configure"
2035 #include "confdefs.h"
2037 #include <strings.h>
2042 if { (eval echo configure
:2043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2044 gcc_cv_header_string
=yes
2046 echo "configure: failed program was:" >&5
2047 cat conftest.
$ac_ext >&5
2049 gcc_cv_header_string
=no
2054 echo "$ac_t""$gcc_cv_header_string" 1>&6
2055 if test $gcc_cv_header_string = yes; then
2056 cat >> confdefs.h
<<\EOF
2057 #define STRING_WITH_STRINGS 1
2062 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2063 echo "configure:2064: checking for sys/wait.h that is POSIX.1 compatible" >&5
2064 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2065 echo $ac_n "(cached) $ac_c" 1>&6
2067 cat > conftest.
$ac_ext <<EOF
2068 #line 2069 "configure"
2069 #include "confdefs.h"
2070 #include <sys/types.h>
2071 #include <sys/wait.h>
2073 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2076 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2081 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2084 if { (eval echo configure
:2085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2086 ac_cv_header_sys_wait_h
=yes
2088 echo "configure: failed program was:" >&5
2089 cat conftest.
$ac_ext >&5
2091 ac_cv_header_sys_wait_h
=no
2096 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2097 if test $ac_cv_header_sys_wait_h = yes; then
2098 cat >> confdefs.h
<<\EOF
2099 #define HAVE_SYS_WAIT_H 1
2104 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
2105 fcntl.h unistd.h stab.h sys
/file.h sys
/time.h \
2106 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
2109 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2110 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2111 echo "configure:2112: checking for $ac_hdr" >&5
2112 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2113 echo $ac_n "(cached) $ac_c" 1>&6
2115 cat > conftest.
$ac_ext <<EOF
2116 #line 2117 "configure"
2117 #include "confdefs.h"
2120 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2121 { (eval echo configure
:2122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2122 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2123 if test -z "$ac_err"; then
2125 eval "ac_cv_header_$ac_safe=yes"
2128 echo "configure: failed program was:" >&5
2129 cat conftest.
$ac_ext >&5
2131 eval "ac_cv_header_$ac_safe=no"
2135 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2136 echo "$ac_t""yes" 1>&6
2137 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2138 cat >> confdefs.h
<<EOF
2139 #define $ac_tr_hdr 1
2143 echo "$ac_t""no" 1>&6
2148 # Check for thread headers.
2149 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
2150 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2151 echo "configure:2152: checking for thread.h" >&5
2152 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2153 echo $ac_n "(cached) $ac_c" 1>&6
2155 cat > conftest.
$ac_ext <<EOF
2156 #line 2157 "configure"
2157 #include "confdefs.h"
2160 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2161 { (eval echo configure
:2162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2162 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2163 if test -z "$ac_err"; then
2165 eval "ac_cv_header_$ac_safe=yes"
2168 echo "configure: failed program was:" >&5
2169 cat conftest.
$ac_ext >&5
2171 eval "ac_cv_header_$ac_safe=no"
2175 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2176 echo "$ac_t""yes" 1>&6
2179 echo "$ac_t""no" 1>&6
2183 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2184 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2185 echo "configure:2186: checking for pthread.h" >&5
2186 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2187 echo $ac_n "(cached) $ac_c" 1>&6
2189 cat > conftest.
$ac_ext <<EOF
2190 #line 2191 "configure"
2191 #include "confdefs.h"
2192 #include <pthread.h>
2194 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2195 { (eval echo configure
:2196: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2196 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2197 if test -z "$ac_err"; then
2199 eval "ac_cv_header_$ac_safe=yes"
2202 echo "configure: failed program was:" >&5
2203 cat conftest.
$ac_ext >&5
2205 eval "ac_cv_header_$ac_safe=no"
2209 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2210 echo "$ac_t""yes" 1>&6
2213 echo "$ac_t""no" 1>&6
2218 # See if GNAT has been installed
2219 # Extract the first word of "gnatbind", so it can be a program name with args.
2220 set dummy gnatbind
; ac_word
=$2
2221 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2222 echo "configure:2223: checking for $ac_word" >&5
2223 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2224 echo $ac_n "(cached) $ac_c" 1>&6
2226 if test -n "$gnat"; then
2227 ac_cv_prog_gnat
="$gnat" # Let the user override the test.
2229 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2231 for ac_dir
in $ac_dummy; do
2232 test -z "$ac_dir" && ac_dir
=.
2233 if test -f $ac_dir/$ac_word; then
2234 ac_cv_prog_gnat
="yes"
2239 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat
="no"
2242 gnat
="$ac_cv_prog_gnat"
2243 if test -n "$gnat"; then
2244 echo "$ac_t""$gnat" 1>&6
2246 echo "$ac_t""no" 1>&6
2250 # Do we have a single-tree copy of texinfo?
2251 if test -f $srcdir/..
/texinfo
/Makefile.
in; then
2252 MAKEINFO
='$(objdir)/../texinfo/makeinfo/makeinfo'
2253 gcc_cv_prog_makeinfo_modern
=yes
2254 echo "$ac_t""Using makeinfo from the unified source tree." 1>&6
2256 # See if makeinfo has been installed and is modern enough
2257 # that we can use it.
2258 # Extract the first word of "makeinfo", so it can be a program name with args.
2259 set dummy makeinfo
; ac_word
=$2
2260 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2261 echo "configure:2262: checking for $ac_word" >&5
2262 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2263 echo $ac_n "(cached) $ac_c" 1>&6
2265 if test -n "$MAKEINFO"; then
2266 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
2268 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2270 for ac_dir
in $ac_dummy; do
2271 test -z "$ac_dir" && ac_dir
=.
2272 if test -f $ac_dir/$ac_word; then
2273 ac_cv_prog_MAKEINFO
="makeinfo"
2280 MAKEINFO
="$ac_cv_prog_MAKEINFO"
2281 if test -n "$MAKEINFO"; then
2282 echo "$ac_t""$MAKEINFO" 1>&6
2284 echo "$ac_t""no" 1>&6
2287 if test -n "$MAKEINFO"; then
2288 # Found it, now check the version.
2289 echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6
2290 echo "configure:2291: checking for modern makeinfo" >&5
2291 if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then
2292 echo $ac_n "(cached) $ac_c" 1>&6
2294 ac_prog_version
=`$MAKEINFO --version 2>&1 |
2295 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
2296 echo "configure:2297: version of makeinfo is $ac_prog_version" >&5
2297 case $ac_prog_version in
2298 '') gcc_cv_prog_makeinfo_modern
=no
;;
2299 3.1[2-9] |
3.
[2-9][0-9] |
4.
* |
1.6[89] |
1.7[0-9])
2300 gcc_cv_prog_makeinfo_modern
=yes;;
2301 *) gcc_cv_prog_makeinfo_modern
=no
;;
2306 echo "$ac_t""$gcc_cv_prog_makeinfo_modern" 1>&6
2308 gcc_cv_prog_makeinfo_modern
=no
2313 if test $gcc_cv_prog_makeinfo_modern = no
; then
2314 echo "configure: warning:
2315 *** Makeinfo is missing or too old.
2316 *** Info documentation will not be built or installed." 1>&2
2321 INSTALL_INFO
=install-info
2324 # See if the stage1 system preprocessor understands the ANSI C
2325 # preprocessor stringification operator.
2328 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
2329 echo "configure:2330: checking for preprocessor stringizing operator" >&5
2330 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
2331 echo $ac_n "(cached) $ac_c" 1>&6
2333 cat > conftest.
$ac_ext <<EOF
2334 #line 2335 "configure"
2335 #include "confdefs.h"
2339 char *s = x(teststring);
2342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2343 egrep "#teststring" >/dev
/null
2>&1; then
2345 ac_cv_c_stringize
=no
2348 ac_cv_c_stringize
=yes
2354 if test "${ac_cv_c_stringize}" = yes
2356 cat >> confdefs.h
<<\EOF
2357 #define HAVE_STRINGIZE 1
2361 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
2364 # Use <inttypes.h> only if it exists,
2365 # doesn't clash with <sys/types.h>, and declares intmax_t.
2366 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2367 echo "configure:2368: checking for inttypes.h" >&5
2368 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2369 echo $ac_n "(cached) $ac_c" 1>&6
2371 cat > conftest.
$ac_ext <<EOF
2372 #line 2373 "configure"
2373 #include "confdefs.h"
2374 #include <sys/types.h>
2375 #include <inttypes.h>
2380 if { (eval echo configure
:2381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2382 gcc_cv_header_inttypes_h
=yes
2384 echo "configure: failed program was:" >&5
2385 cat conftest.
$ac_ext >&5
2387 gcc_cv_header_inttypes_h
=no
2392 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2393 if test $gcc_cv_header_inttypes_h = yes; then
2394 cat >> confdefs.h
<<\EOF
2395 #define HAVE_INTTYPES_H 1
2401 # Determine if enumerated bitfields are unsigned. ISO C says they can
2402 # be either signed or unsigned.
2404 echo $ac_n "checking for unsigned enumerated bitfields""... $ac_c" 1>&6
2405 echo "configure:2406: checking for unsigned enumerated bitfields" >&5
2406 if eval "test \"`echo '$''{'gcc_cv_enum_bf_unsigned'+set}'`\" = set"; then
2407 echo $ac_n "(cached) $ac_c" 1>&6
2409 if test "$cross_compiling" = yes; then
2410 gcc_cv_enum_bf_unsigned
=yes
2412 cat > conftest.
$ac_ext <<EOF
2413 #line 2414 "configure"
2414 #include "confdefs.h"
2416 enum t { BLAH = 128 } ;
2417 struct s_t { enum t member : 8; } s ;
2421 if (s.member < 0) exit(1);
2426 if { (eval echo configure
:2427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2428 gcc_cv_enum_bf_unsigned
=yes
2430 echo "configure: failed program was:" >&5
2431 cat conftest.
$ac_ext >&5
2433 gcc_cv_enum_bf_unsigned
=no
2440 echo "$ac_t""$gcc_cv_enum_bf_unsigned" 1>&6
2441 if test $gcc_cv_enum_bf_unsigned = yes; then
2442 cat >> confdefs.h
<<\EOF
2443 #define ENUM_BITFIELDS_ARE_UNSIGNED 1
2448 for ac_func
in strtoul bsearch putenv popen bcopy bzero bcmp \
2449 index rindex strchr strrchr
kill getrlimit setrlimit atoll atoq \
2450 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2451 fputs_unlocked getrusage valloc
2453 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2454 echo "configure:2455: checking for $ac_func" >&5
2455 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2456 echo $ac_n "(cached) $ac_c" 1>&6
2458 cat > conftest.
$ac_ext <<EOF
2459 #line 2460 "configure"
2460 #include "confdefs.h"
2461 /* System header to define __stub macros and hopefully few prototypes,
2462 which can conflict with char $ac_func(); below. */
2464 /* Override any gcc2 internal prototype to avoid an error. */
2465 /* We use char because int might match the return type of a gcc2
2466 builtin and then its argument prototype would still apply. */
2471 /* The GNU C library defines this for functions which it implements
2472 to always fail with ENOSYS. Some functions are actually named
2473 something starting with __ and the normal name is an alias. */
2474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2482 if { (eval echo configure
:2483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2484 eval "ac_cv_func_$ac_func=yes"
2486 echo "configure: failed program was:" >&5
2487 cat conftest.
$ac_ext >&5
2489 eval "ac_cv_func_$ac_func=no"
2494 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2495 echo "$ac_t""yes" 1>&6
2496 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2497 cat >> confdefs.h
<<EOF
2498 #define $ac_tr_func 1
2502 echo "$ac_t""no" 1>&6
2507 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
2508 echo "configure:2509: checking for ssize_t" >&5
2509 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
2510 echo $ac_n "(cached) $ac_c" 1>&6
2512 cat > conftest.
$ac_ext <<EOF
2513 #line 2514 "configure"
2514 #include "confdefs.h"
2515 #include <sys/types.h>
2521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2522 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2524 ac_cv_type_ssize_t
=yes
2527 ac_cv_type_ssize_t
=no
2532 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2533 if test $ac_cv_type_ssize_t = no
; then
2534 cat >> confdefs.h
<<\EOF
2541 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2542 echo "configure:2543: checking for vprintf" >&5
2543 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2544 echo $ac_n "(cached) $ac_c" 1>&6
2546 cat > conftest.
$ac_ext <<EOF
2547 #line 2548 "configure"
2548 #include "confdefs.h"
2549 /* System header to define __stub macros and hopefully few prototypes,
2550 which can conflict with char vprintf(); below. */
2552 /* Override any gcc2 internal prototype to avoid an error. */
2553 /* We use char because int might match the return type of a gcc2
2554 builtin and then its argument prototype would still apply. */
2559 /* The GNU C library defines this for functions which it implements
2560 to always fail with ENOSYS. Some functions are actually named
2561 something starting with __ and the normal name is an alias. */
2562 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2570 if { (eval echo configure
:2571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2572 eval "ac_cv_func_vprintf=yes"
2574 echo "configure: failed program was:" >&5
2575 cat conftest.
$ac_ext >&5
2577 eval "ac_cv_func_vprintf=no"
2582 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2583 echo "$ac_t""yes" 1>&6
2584 cat >> confdefs.h
<<\EOF
2585 #define HAVE_VPRINTF 1
2589 echo "$ac_t""no" 1>&6
2592 if test "$ac_cv_func_vprintf" != yes; then
2593 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2594 echo "configure:2595: checking for _doprnt" >&5
2595 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2596 echo $ac_n "(cached) $ac_c" 1>&6
2598 cat > conftest.
$ac_ext <<EOF
2599 #line 2600 "configure"
2600 #include "confdefs.h"
2601 /* System header to define __stub macros and hopefully few prototypes,
2602 which can conflict with char _doprnt(); below. */
2604 /* Override any gcc2 internal prototype to avoid an error. */
2605 /* We use char because int might match the return type of a gcc2
2606 builtin and then its argument prototype would still apply. */
2611 /* The GNU C library defines this for functions which it implements
2612 to always fail with ENOSYS. Some functions are actually named
2613 something starting with __ and the normal name is an alias. */
2614 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2622 if { (eval echo configure
:2623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2624 eval "ac_cv_func__doprnt=yes"
2626 echo "configure: failed program was:" >&5
2627 cat conftest.
$ac_ext >&5
2629 eval "ac_cv_func__doprnt=no"
2634 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2635 echo "$ac_t""yes" 1>&6
2636 cat >> confdefs.h
<<\EOF
2637 #define HAVE_DOPRNT 1
2641 echo "$ac_t""no" 1>&6
2648 if test $ac_cv_func_vprintf != yes ; then
2650 if test $ac_cv_func__doprnt != yes ; then
2657 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2658 echo "configure:2659: checking whether the printf functions support %p" >&5
2659 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2660 echo $ac_n "(cached) $ac_c" 1>&6
2662 if test "$cross_compiling" = yes; then
2663 gcc_cv_func_printf_ptr
=no
2665 cat > conftest.
$ac_ext <<EOF
2666 #line 2667 "configure"
2667 #include "confdefs.h"
2673 char *p = buf, *q = NULL;
2674 sprintf(buf, "%p", p);
2675 sscanf(buf, "%p", &q);
2679 if { (eval echo configure
:2680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2681 gcc_cv_func_printf_ptr
=yes
2683 echo "configure: failed program was:" >&5
2684 cat conftest.
$ac_ext >&5
2686 gcc_cv_func_printf_ptr
=no
2691 rm -f core core.
* *.core
2694 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2695 if test $gcc_cv_func_printf_ptr = yes ; then
2696 cat >> confdefs.h
<<\EOF
2697 #define HAVE_PRINTF_PTR 1
2705 # Under some versions of uwin, vfork is notoriously buggy and the test
2706 # can hang configure; on other versions, vfork exists just as a stub.
2707 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2708 ac_cv_func_vfork_works
=no
2711 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2712 echo "configure:2713: checking for pid_t" >&5
2713 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2714 echo $ac_n "(cached) $ac_c" 1>&6
2716 cat > conftest.
$ac_ext <<EOF
2717 #line 2718 "configure"
2718 #include "confdefs.h"
2719 #include <sys/types.h>
2725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2726 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2728 ac_cv_type_pid_t
=yes
2736 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2737 if test $ac_cv_type_pid_t = no
; then
2738 cat >> confdefs.h
<<\EOF
2744 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2745 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2746 echo "configure:2747: checking for vfork.h" >&5
2747 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2748 echo $ac_n "(cached) $ac_c" 1>&6
2750 cat > conftest.
$ac_ext <<EOF
2751 #line 2752 "configure"
2752 #include "confdefs.h"
2755 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2756 { (eval echo configure
:2757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2757 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2758 if test -z "$ac_err"; then
2760 eval "ac_cv_header_$ac_safe=yes"
2763 echo "configure: failed program was:" >&5
2764 cat conftest.
$ac_ext >&5
2766 eval "ac_cv_header_$ac_safe=no"
2770 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2771 echo "$ac_t""yes" 1>&6
2772 cat >> confdefs.h
<<\EOF
2773 #define HAVE_VFORK_H 1
2777 echo "$ac_t""no" 1>&6
2780 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2781 echo "configure:2782: checking for working vfork" >&5
2782 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2783 echo $ac_n "(cached) $ac_c" 1>&6
2785 if test "$cross_compiling" = yes; then
2786 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2787 echo "configure:2788: checking for vfork" >&5
2788 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2789 echo $ac_n "(cached) $ac_c" 1>&6
2791 cat > conftest.
$ac_ext <<EOF
2792 #line 2793 "configure"
2793 #include "confdefs.h"
2794 /* System header to define __stub macros and hopefully few prototypes,
2795 which can conflict with char vfork(); below. */
2797 /* Override any gcc2 internal prototype to avoid an error. */
2798 /* We use char because int might match the return type of a gcc2
2799 builtin and then its argument prototype would still apply. */
2804 /* The GNU C library defines this for functions which it implements
2805 to always fail with ENOSYS. Some functions are actually named
2806 something starting with __ and the normal name is an alias. */
2807 #if defined (__stub_vfork) || defined (__stub___vfork)
2815 if { (eval echo configure
:2816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2817 eval "ac_cv_func_vfork=yes"
2819 echo "configure: failed program was:" >&5
2820 cat conftest.
$ac_ext >&5
2822 eval "ac_cv_func_vfork=no"
2827 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2828 echo "$ac_t""yes" 1>&6
2831 echo "$ac_t""no" 1>&6
2834 ac_cv_func_vfork_works
=$ac_cv_func_vfork
2836 cat > conftest.
$ac_ext <<EOF
2837 #line 2838 "configure"
2838 #include "confdefs.h"
2839 /* Thanks to Paul Eggert for this test. */
2841 #include <sys/types.h>
2842 #include <sys/stat.h>
2843 #ifdef HAVE_UNISTD_H
2849 /* On some sparc systems, changes by the child to local and incoming
2850 argument registers are propagated back to the parent.
2851 The compiler is told about this with #include <vfork.h>,
2852 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2853 Test for this by using a static variable whose address
2854 is put into a register that is clobbered by the vfork. */
2857 sparc_address_test (int arg)
2859 sparc_address_test (arg) int arg;
2877 pid_t parent = getpid ();
2880 sparc_address_test ();
2885 /* Here is another test for sparc vfork register problems.
2886 This test uses lots of local variables, at least
2887 as many local variables as main has allocated so far
2888 including compiler temporaries. 4 locals are enough for
2889 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2890 A buggy compiler should reuse the register of parent
2891 for one of the local variables, since it will think that
2892 parent can't possibly be used any more in this routine.
2893 Assigning to the local variable will thus munge parent
2894 in the parent process. */
2896 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2897 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2898 /* Convince the compiler that p..p7 are live; otherwise, it might
2899 use the same hardware register for all 8 local variables. */
2900 if (p != p1 || p != p2 || p != p3 || p != p4
2901 || p != p5 || p != p6 || p != p7)
2904 /* On some systems (e.g. IRIX 3.3),
2905 vfork doesn't separate parent from child file descriptors.
2906 If the child closes a descriptor before it execs or exits,
2907 this munges the parent's descriptor as well.
2908 Test for this by closing stdout in the child. */
2909 _exit(close(fileno(stdout)) != 0);
2914 while (wait(&status) != child)
2917 /* Was there some problem with vforking? */
2920 /* Did the child fail? (This shouldn't happen.) */
2923 /* Did the vfork/compiler bug occur? */
2924 || parent != getpid()
2926 /* Did the file descriptor bug occur? */
2927 || fstat(fileno(stdout), &st) != 0
2932 if { (eval echo configure
:2933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2934 ac_cv_func_vfork_works
=yes
2936 echo "configure: failed program was:" >&5
2937 cat conftest.
$ac_ext >&5
2939 ac_cv_func_vfork_works
=no
2946 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2947 if test $ac_cv_func_vfork_works = no
; then
2948 cat >> confdefs.h
<<\EOF
2954 for ac_hdr
in unistd.h
2956 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2957 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2958 echo "configure:2959: checking for $ac_hdr" >&5
2959 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2960 echo $ac_n "(cached) $ac_c" 1>&6
2962 cat > conftest.
$ac_ext <<EOF
2963 #line 2964 "configure"
2964 #include "confdefs.h"
2967 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2968 { (eval echo configure
:2969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2969 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2970 if test -z "$ac_err"; then
2972 eval "ac_cv_header_$ac_safe=yes"
2975 echo "configure: failed program was:" >&5
2976 cat conftest.
$ac_ext >&5
2978 eval "ac_cv_header_$ac_safe=no"
2982 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2983 echo "$ac_t""yes" 1>&6
2984 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2985 cat >> confdefs.h
<<EOF
2986 #define $ac_tr_hdr 1
2990 echo "$ac_t""no" 1>&6
2994 for ac_func
in getpagesize
2996 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2997 echo "configure:2998: checking for $ac_func" >&5
2998 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2999 echo $ac_n "(cached) $ac_c" 1>&6
3001 cat > conftest.
$ac_ext <<EOF
3002 #line 3003 "configure"
3003 #include "confdefs.h"
3004 /* System header to define __stub macros and hopefully few prototypes,
3005 which can conflict with char $ac_func(); below. */
3007 /* Override any gcc2 internal prototype to avoid an error. */
3008 /* We use char because int might match the return type of a gcc2
3009 builtin and then its argument prototype would still apply. */
3014 /* The GNU C library defines this for functions which it implements
3015 to always fail with ENOSYS. Some functions are actually named
3016 something starting with __ and the normal name is an alias. */
3017 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3025 if { (eval echo configure
:3026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3027 eval "ac_cv_func_$ac_func=yes"
3029 echo "configure: failed program was:" >&5
3030 cat conftest.
$ac_ext >&5
3032 eval "ac_cv_func_$ac_func=no"
3037 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3038 echo "$ac_t""yes" 1>&6
3039 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3040 cat >> confdefs.h
<<EOF
3041 #define $ac_tr_func 1
3045 echo "$ac_t""no" 1>&6
3049 echo $ac_n "checking for working mmap from /dev/zero""... $ac_c" 1>&6
3050 echo "configure:3051: checking for working mmap from /dev/zero" >&5
3051 if eval "test \"`echo '$''{'ac_cv_func_mmap_anywhere'+set}'`\" = set"; then
3052 echo $ac_n "(cached) $ac_c" 1>&6
3054 if test "$cross_compiling" = yes; then
3055 ac_cv_func_mmap_anywhere
=no
3057 cat > conftest.
$ac_ext <<EOF
3058 #line 3059 "configure"
3059 #include "confdefs.h"
3061 /* Test by Richard Henderson and Alexandre Oliva.
3062 Check whether mmap from /dev/zero works. */
3063 #include <sys/types.h>
3065 #include <sys/mman.h>
3067 /* This mess was copied from the GNU getpagesize.h. */
3068 #ifndef HAVE_GETPAGESIZE
3069 # ifdef HAVE_UNISTD_H
3070 # include <unistd.h>
3073 /* Assume that all systems that can run configure have sys/param.h. */
3074 # ifndef HAVE_SYS_PARAM_H
3075 # define HAVE_SYS_PARAM_H 1
3078 # ifdef _SC_PAGESIZE
3079 # define getpagesize() sysconf(_SC_PAGESIZE)
3080 # else /* no _SC_PAGESIZE */
3081 # ifdef HAVE_SYS_PARAM_H
3082 # include <sys/param.h>
3083 # ifdef EXEC_PAGESIZE
3084 # define getpagesize() EXEC_PAGESIZE
3085 # else /* no EXEC_PAGESIZE */
3087 # define getpagesize() NBPG * CLSIZE
3090 # endif /* no CLSIZE */
3091 # else /* no NBPG */
3093 # define getpagesize() NBPC
3094 # else /* no NBPC */
3096 # define getpagesize() PAGESIZE
3097 # endif /* PAGESIZE */
3098 # endif /* no NBPC */
3099 # endif /* no NBPG */
3100 # endif /* no EXEC_PAGESIZE */
3101 # else /* no HAVE_SYS_PARAM_H */
3102 # define getpagesize() 8192 /* punt totally */
3103 # endif /* no HAVE_SYS_PARAM_H */
3104 # endif /* no _SC_PAGESIZE */
3106 #endif /* no HAVE_GETPAGESIZE */
3113 fd = open("/dev/zero", O_RDWR);
3118 x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
3119 if (x == (char *) -1)
3124 if (munmap(x, pg) < 0)
3130 if { (eval echo configure
:3131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3132 ac_cv_func_mmap_anywhere
=yes
3134 echo "configure: failed program was:" >&5
3135 cat conftest.
$ac_ext >&5
3137 ac_cv_func_mmap_anywhere
=no
3144 echo "$ac_t""$ac_cv_func_mmap_anywhere" 1>&6
3145 if test $ac_cv_func_mmap_anywhere = yes; then
3146 cat >> confdefs.h
<<\EOF
3147 #define HAVE_MMAP_ANYWHERE 1
3152 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
3153 echo "configure:3154: checking for working mmap of a file" >&5
3154 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
3155 echo $ac_n "(cached) $ac_c" 1>&6
3157 # Create a file one thousand bytes long.
3158 for i
in 1 2 3 4 5 6 7 8 9 0
3159 do for j
in 1 2 3 4 5 6 7 8 9 0
3162 done > conftestdata$$
3164 if test "$cross_compiling" = yes; then
3165 ac_cv_func_mmap_file
=no
3167 cat > conftest.
$ac_ext <<EOF
3168 #line 3169 "configure"
3169 #include "confdefs.h"
3171 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
3172 Richard Henderson and Alexandre Oliva.
3173 Check whether read-only mmap of a plain file works. */
3174 #include <sys/types.h>
3175 #include <sys/stat.h>
3177 #include <sys/mman.h>
3185 fd = open("conftestdata$$", O_RDONLY);
3189 if (fstat (fd, &st))
3192 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
3193 if (x == (char *) -1)
3196 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
3199 if (munmap(x, st.st_size) < 0)
3205 if { (eval echo configure
:3206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3207 ac_cv_func_mmap_file
=yes
3209 echo "configure: failed program was:" >&5
3210 cat conftest.
$ac_ext >&5
3212 ac_cv_func_mmap_file
=no
3219 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
3220 if test $ac_cv_func_mmap_file = yes; then
3221 cat >> confdefs.h
<<\EOF
3222 #define HAVE_MMAP_FILE 1
3228 # We will need to find libiberty.h and ansidecl.h
3229 saved_CFLAGS
="$CFLAGS"
3230 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
3231 for ac_func
in bcopy bzero bcmp \
3232 index rindex getenv atol sbrk abort atof getcwd getwd \
3233 strsignal putc_unlocked fputs_unlocked strstr environ \
3234 malloc realloc calloc free
basename getopt
3236 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3237 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3238 echo "configure:3239: checking whether $ac_func is declared" >&5
3239 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3240 echo $ac_n "(cached) $ac_c" 1>&6
3242 cat > conftest.
$ac_ext <<EOF
3243 #line 3244 "configure"
3244 #include "confdefs.h"
3245 #include "gansidecl.h"
3250 char *(*pfn) = (char *(*)) $ac_func ;
3254 if { (eval echo configure
:3255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3256 eval "gcc_cv_have_decl_$ac_func=yes"
3258 echo "configure: failed program was:" >&5
3259 cat conftest.
$ac_ext >&5
3261 eval "gcc_cv_have_decl_$ac_func=no"
3266 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3267 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
3268 #define $ac_tr_decl 1
3272 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
3273 #define $ac_tr_decl 0
3279 if test x
= y
; then
3280 cat >> confdefs.h
<<EOF
3281 #define HAVE_DECL_BCOPY 1
3283 cat >> confdefs.h
<<EOF
3284 #define HAVE_DECL_BZERO 1
3286 cat >> confdefs.h
<<EOF
3287 #define HAVE_DECL_BCMP 1
3290 cat >> confdefs.h
<<EOF
3291 #define HAVE_DECL_INDEX 1
3293 cat >> confdefs.h
<<EOF
3294 #define HAVE_DECL_RINDEX 1
3296 cat >> confdefs.h
<<EOF
3297 #define HAVE_DECL_GETENV 1
3299 cat >> confdefs.h
<<EOF
3300 #define HAVE_DECL_ATOL 1
3302 cat >> confdefs.h
<<EOF
3303 #define HAVE_DECL_SBRK 1
3305 cat >> confdefs.h
<<EOF
3306 #define HAVE_DECL_ABORT 1
3308 cat >> confdefs.h
<<EOF
3309 #define HAVE_DECL_ATOF 1
3311 cat >> confdefs.h
<<EOF
3312 #define HAVE_DECL_GETCWD 1
3314 cat >> confdefs.h
<<EOF
3315 #define HAVE_DECL_GETWD 1
3318 cat >> confdefs.h
<<EOF
3319 #define HAVE_DECL_STRSIGNAL 1
3321 cat >> confdefs.h
<<EOF
3322 #define HAVE_DECL_PUTC_UNLOCKED 1
3324 cat >> confdefs.h
<<EOF
3325 #define HAVE_DECL_FPUTS_UNLOCKED 1
3327 cat >> confdefs.h
<<EOF
3328 #define HAVE_DECL_STRSTR 1
3330 cat >> confdefs.h
<<EOF
3331 #define HAVE_DECL_ENVIRON 1
3334 cat >> confdefs.h
<<EOF
3335 #define HAVE_DECL_MALLOC 1
3337 cat >> confdefs.h
<<EOF
3338 #define HAVE_DECL_REALLOC 1
3340 cat >> confdefs.h
<<EOF
3341 #define HAVE_DECL_CALLOC 1
3343 cat >> confdefs.h
<<EOF
3344 #define HAVE_DECL_FREE 1
3346 cat >> confdefs.h
<<EOF
3347 #define HAVE_DECL_BASENAME 1
3349 cat >> confdefs.h
<<EOF
3350 #define HAVE_DECL_GETOPT 1
3355 for ac_func
in getrlimit setrlimit getrusage
3357 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3358 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3359 echo "configure:3360: checking whether $ac_func is declared" >&5
3360 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3361 echo $ac_n "(cached) $ac_c" 1>&6
3363 cat > conftest.
$ac_ext <<EOF
3364 #line 3365 "configure"
3365 #include "confdefs.h"
3366 #include "gansidecl.h"
3368 #ifdef HAVE_SYS_RESOURCE_H
3369 #include <sys/resource.h>
3375 char *(*pfn) = (char *(*)) $ac_func ;
3379 if { (eval echo configure
:3380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3381 eval "gcc_cv_have_decl_$ac_func=yes"
3383 echo "configure: failed program was:" >&5
3384 cat conftest.
$ac_ext >&5
3386 eval "gcc_cv_have_decl_$ac_func=no"
3391 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3392 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
3393 #define $ac_tr_decl 1
3397 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
3398 #define $ac_tr_decl 0
3404 if test x
= y
; then
3405 cat >> confdefs.h
<<EOF
3406 #define HAVE_DECL_GETRLIMIT 1
3408 cat >> confdefs.h
<<EOF
3409 #define HAVE_DECL_SETRLIMIT 1
3411 cat >> confdefs.h
<<EOF
3412 #define HAVE_DECL_GETRUSAGE 1
3417 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
3418 CFLAGS
="$saved_CFLAGS"
3420 # mkdir takes a single argument on some systems.
3421 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
3422 echo "configure:3423: checking if mkdir takes one argument" >&5
3423 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
3424 echo $ac_n "(cached) $ac_c" 1>&6
3426 cat > conftest.
$ac_ext <<EOF
3427 #line 3428 "configure"
3428 #include "confdefs.h"
3430 #include <sys/types.h>
3431 #ifdef HAVE_SYS_STAT_H
3432 # include <sys/stat.h>
3434 #ifdef HAVE_UNISTD_H
3435 # include <unistd.h>
3437 #ifdef HAVE_DIRECT_H
3438 # include <direct.h>
3444 if { (eval echo configure
:3445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3446 gcc_cv_mkdir_takes_one_arg
=no
3448 echo "configure: failed program was:" >&5
3449 cat conftest.
$ac_ext >&5
3451 gcc_cv_mkdir_takes_one_arg
=yes
3456 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
3457 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
3458 cat >> confdefs.h
<<\EOF
3459 #define MKDIR_TAKES_ONE_ARG 1
3473 build_install_headers_dir
=install-headers-tar
3478 host_truncate_target
=
3481 # Decode the host machine, then the target machine.
3482 # For the host machine, we save the xm_file variable as host_xm_file;
3483 # then we decode the target machine and forget everything else
3484 # that came from the host machine.
3485 for machine
in $build $host $target; do
3499 # Set this to force installation and use of collect2.
3501 # Set this to override the default target model.
3503 # Set this to control how the header file directory is installed.
3504 install_headers_dir
=install-headers-tar
3505 # Set this to a non-empty list of args to pass to cpp if the target
3506 # wants its .md file passed through cpp.
3508 # Set this if directory names should be truncated to 14 characters.
3510 # Set this if gdb needs a dir command with `dirname $out_file`
3511 gdb_needs_out_file_path
=
3512 # Set this if the build machine requires executables to have a
3515 # Set this to control which thread package will be used.
3517 # Reinitialize these from the flag values every loop pass, since some
3518 # configure entries modify them.
3520 gnu_ld
="$gnu_ld_flag"
3521 enable_threads
=$enable_threads_flag
3523 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
3524 # updated in each machine entry.
3526 cpu_type
=`echo $machine | sed 's/-.*$//'`
3566 tm_file
=${cpu_type}/${cpu_type}.h
3567 xm_file
=${cpu_type}/xm-
${cpu_type}.h
3568 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
;
3570 tm_p_file
=${cpu_type}/${cpu_type}-protos.h
;
3572 # On a.out targets, we need to use collect2.
3579 # Common parts for linux-gnu and openbsd systems
3582 xm_defines
="HAVE_ATEXIT POSIX BSTRING"
3585 tm_file
=${cpu_type}/openbsd.h
3586 tmake_file
="t-libc-ok t-openbsd"
3587 # avoid surprises, always provide an xm-openbsd file
3588 xm_file
=${cpu_type}/xm-openbsd.h
3589 # don't depend on processor x-fragments as well
3591 if test x
$enable_threads = xyes
; then
3593 tmake_file
="${tmake_file} t-openbsd-thread"
3599 # Support site-specific machine types.
3601 cpu_type
=`echo $machine | sed -e 's/-.*//'`
3602 rest
=`echo $machine | sed -e "s/$cpu_type-//"`
3603 xm_file
=${cpu_type}/xm-
$rest.h
3604 tm_file
=${cpu_type}/$rest.h
3605 if test -f $srcdir/config
/${cpu_type}/x-
$rest; \
3606 then xmake_file
=${cpu_type}/x-
$rest; \
3609 if test -f $srcdir/config
/${cpu_type}/t-
$rest; \
3610 then tmake_file
=${cpu_type}/t-
$rest; \
3616 a29k-
*-bsd* | a29k-
*-sym1*)
3617 tm_file
="${tm_file} a29k/unix.h"
3619 xmake_file
=a29k
/x-unix
3622 a29k-
*-udi | a29k-
*-coff)
3623 tm_file
="${tm_file} dbxcoff.h a29k/udi.h"
3624 tmake_file
=a29k
/t-a29kbare
3627 tm_file
="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3628 tmake_file
=a29k
/t-vx29k
3629 extra_parts
="crtbegin.o crtend.o"
3630 thread_file
='vxworks'
3632 a29k-
*-*) # Default a29k environment.
3636 tm_file
="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
3638 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
3639 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
3641 # GAS + IEEE_CONFORMANT
3642 target_cpu_default
="MASK_GAS|MASK_IEEE_CONFORMANT"
3644 xm_file
="alpha/xm-alpha-interix.h xm-interix.h"
3645 xmake_file
="x-interix alpha/t-pe"
3646 tmake_file
="alpha/t-alpha alpha/t-interix alpha/t-ieee"
3647 if test x
$enable_threads = xyes
; then
3650 if test x
$stabs = xyes
; then
3651 tm_file
="${tm_file} dbxcoff.h"
3653 #prefix='$$INTERIX_ROOT'/usr/contrib
3654 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3656 alpha
*-*-linux-gnuecoff*)
3657 tm_file
="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3658 target_cpu_default
="MASK_GAS"
3659 tmake_file
="alpha/t-alpha alpha/t-ieee"
3664 alpha
*-*-linux-gnulibc1*)
3665 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3666 target_cpu_default
="MASK_GAS"
3667 tmake_file
="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
3668 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3671 if test x
$enable_threads = xyes
; then
3675 alpha
*-*-linux-gnu*)
3676 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3677 target_cpu_default
="MASK_GAS"
3678 tmake_file
="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3679 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3682 if test x
$enable_threads = xyes
; then
3687 tm_file
="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3688 target_cpu_default
="MASK_GAS"
3689 tmake_file
="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3690 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3696 # default x-alpha is only appropriate for dec-osf.
3697 target_cpu_default
="MASK_GAS"
3698 tmake_file
="alpha/t-alpha alpha/t-ieee"
3702 if test x
$stabs = xyes
3704 tm_file
="${tm_file} dbx.h"
3706 if test x
$gas != xyes
3708 extra_passes
="mips-tfile mips-tdump"
3711 tmake_file
="alpha/t-alpha alpha/t-ieee"
3714 tm_file
="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3717 tm_file
="${tm_file} alpha/osf.h alpha/osf2or3.h"
3720 tm_file
="${tm_file} alpha/osf.h"
3721 # Some versions of OSF4 (specifically X4.0-9 296.7) have
3722 # a broken tar, so we use cpio instead.
3723 install_headers_dir
=install-headers-cpio
3726 tm_file
="${tm_file} alpha/osf.h alpha/osf5.h"
3730 *-*-osf4.0
[b-z
] |
*-*-osf4.
[1-9]* |
*-*-osf5*)
3731 target_cpu_default
=MASK_SUPPORT_ARCH
3736 tm_file
="${tm_file} dbx.h alpha/vxworks.h"
3737 tmake_file
="alpha/t-alpha alpha/t-ieee"
3740 extra_passes
="mips-tfile mips-tdump"
3743 thread_file
='vxworks'
3746 tm_file
="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3747 xm_file
="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3748 tmake_file
="t-libc-ok alpha/t-alpha alpha/t-ieee"
3749 xmake_file
=winnt
/x-winnt
3750 extra_host_objs
=oldnames.o
3751 extra_gcc_objs
="spawnv.o oldnames.o"
3752 if test x
$gnu_ld != xyes
3754 extra_programs
=ld.exe
3756 if test x
$enable_threads = xyes
; then
3762 xm_file
="${xm_file} alpha/xm-vms.h"
3763 tmake_file
="alpha/t-alpha alpha/t-vms alpha/t-ieee"
3766 extra_parts
="crtinit.o crtfini.o"
3768 arm-
*-coff* | armel-
*-coff*)
3770 tmake_file
=arm
/t-arm-coff
3774 tmake_file
=arm
/t-arm-coff
3775 thread_file
='vxworks'
3777 arm-
*-riscix1.
[01]*) # Acorn RISC machine (early versions)
3778 tm_file
=arm
/riscix1-1.h
3781 arm-
*-riscix*) # Acorn RISC machine
3782 if test x
$gas = xyes
3784 tm_file
=arm
/rix-gas.h
3786 tm_file
=arm
/riscix.h
3788 xmake_file
=arm
/x-riscix
3789 tmake_file
=arm
/t-riscix
3792 arm-semi-aout | armel-semi-aout
)
3794 tmake_file
=arm
/t-semi
3796 arm-semi-aof | armel-semi-aof
)
3797 tm_file
=arm
/semiaof.h
3798 tmake_file
=arm
/t-semiaof
3801 tm_file
=arm
/netbsd.h
3802 tmake_file
="t-netbsd arm/t-netbsd"
3805 arm
*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
3808 tm_file
=arm
/linux-aout.h
3809 tmake_file
=arm
/t-linux
3812 arm
*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker
3813 xm_file
=arm
/xm-linux.h
3815 tm_file
="arm/linux-oldld.h arm/linux-elf.h"
3818 tm_file
="arm/linux-elf26.h $tm_file"
3821 tmake_file
="t-linux arm/t-linux"
3822 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3824 case x
${enable_threads} in
3825 x | xyes | xpthreads | xposix
)
3830 arm
*-*-linux-gnu*) # ARM GNU/Linux with ELF
3831 xm_file
=arm
/xm-linux.h
3833 tm_file
="arm/linux-elf.h"
3836 tm_file
="arm/linux-elf26.h $tm_file"
3839 tmake_file
="t-linux arm/t-linux"
3840 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3842 case x
${enable_threads} in
3843 x | xyes | xpthreads | xposix
)
3848 arm
*-*-uclinux*) # ARM ucLinux
3849 tm_file
=arm
/uclinux-elf.h
3850 tmake_file
=arm
/t-arm-elf
3854 tmake_file
=arm
/t-arm-aout
3857 tm_file
=arm
/ecos-elf.h
3858 tmake_file
=arm
/t-arm-elf
3861 tm_file
=arm
/unknown-elf.h
3862 tmake_file
=arm
/t-arm-elf
3865 tm_file
=arm
/conix-elf.h
3866 tmake_file
=arm
/t-arm-elf
3869 tm_file
=arm
/unknown-elf-oabi.h
3870 tmake_file
=arm
/t-arm-elf
3879 c1-convex-
*) # Convex C1
3880 target_cpu_default
=1
3883 c2-convex-
*) # Convex C2
3884 target_cpu_default
=2
3888 target_cpu_default
=4
3892 target_cpu_default
=8
3896 target_cpu_default
=16
3901 tmake_file
=c4x
/t-c4x
3903 clipper-intergraph-clix
*)
3904 tm_file
="${tm_file} svr3.h clipper/clix.h"
3905 xm_file
=clipper
/xm-clix.h
3906 xmake_file
=clipper
/x-clix
3907 extra_headers
=va-clipper.h
3908 extra_parts
="crtbegin.o crtend.o"
3909 install_headers_dir
=install-headers-cpio
3920 tm_file
="fr30/fr30.h"
3921 tmake_file
=fr30
/t-fr30
3922 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
3924 # This hasn't been upgraded to GCC 2.
3925 # fx80-alliant-*) # Alliant FX/80
3931 target_cpu_default
="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
3932 tm_file
="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
3933 tmake_file
="t-linux pa/t-linux"
3934 extra_parts
="crtbegin.o crtend.o"
3937 if test x
$enable_threads = xyes
; then
3942 target_cpu_default
="MASK_PA_11"
3943 tmake_file
=pa
/t-openbsd
3946 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3947 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
3948 xm_file
=pa
/xm-papro.h
3952 target_cpu_default
="MASK_PA_11"
3953 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
3957 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3958 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
3959 xm_file
=pa
/xm-papro.h
3963 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
3967 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h"
3968 target_cpu_default
="MASK_PA_11"
3972 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h"
3976 tm_file
="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
3977 xm_file
=pa
/xm-pahpux.h
3978 xmake_file
=pa
/x-pa-hpux
3979 if test x
$gas = xyes
3981 tm_file
="${tm_file} pa/gas.h"
3983 install_headers_dir
=install-headers-cpio
3986 hppa1.0
-*-hpux8.0
[0-2]*)
3987 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3988 xm_file
=pa
/xm-pahpux.h
3989 xmake_file
=pa
/x-pa-hpux
3990 if test x
$gas = xyes
3992 tm_file
="${tm_file} pa/pa-gas.h"
3994 tm_file
="pa/pa-oldas.h ${tm_file}"
3996 install_headers_dir
=install-headers-cpio
3999 hppa1.1
-*-hpux8.0
[0-2]*)
4000 target_cpu_default
="MASK_PA_11"
4001 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4002 xm_file
=pa
/xm-pahpux.h
4003 xmake_file
=pa
/x-pa-hpux
4004 if test x
$gas = xyes
4006 tm_file
="${tm_file} pa/pa-gas.h"
4008 tm_file
="pa/pa-oldas.h ${tm_file}"
4010 install_headers_dir
=install-headers-cpio
4014 target_cpu_default
="MASK_PA_11"
4015 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4016 xm_file
=pa
/xm-pahpux.h
4017 xmake_file
=pa
/x-pa-hpux
4018 if test x
$gas = xyes
4020 tm_file
="${tm_file} pa/pa-gas.h"
4022 install_headers_dir
=install-headers-cpio
4026 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4027 xm_file
=pa
/xm-pahpux.h
4028 xmake_file
=pa
/x-pa-hpux
4029 if test x
$gas = xyes
4031 tm_file
="${tm_file} pa/pa-gas.h"
4033 install_headers_dir
=install-headers-cpio
4036 hppa1.1
-*-hpux10* | hppa2
*-*-hpux10*)
4037 target_cpu_default
="MASK_PA_11"
4038 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
4040 xm_file
=pa
/xm-pahpux.h
4041 xmake_file
=pa
/x-pa-hpux
4043 if test x
$gas = xyes
4045 tm_file
="${tm_file} pa/pa-gas.h"
4047 if test x
$enable_threads = x
; then
4048 enable_threads
=$have_pthread_h
4050 if test x
$enable_threads = xyes
; then
4052 tmake_file
="${tmake_file} pa/t-dce-thr"
4054 install_headers_dir
=install-headers-cpio
4058 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
4060 xm_file
=pa
/xm-pahpux.h
4061 xmake_file
=pa
/x-pa-hpux
4063 if test x
$gas = xyes
4065 tm_file
="${tm_file} pa/pa-gas.h"
4067 if test x
$enable_threads = x
; then
4068 enable_threads
=$have_pthread_h
4070 if test x
$enable_threads = xyes
; then
4072 tmake_file
="${tmake_file} pa/t-dce-thr"
4074 install_headers_dir
=install-headers-cpio
4078 target_cpu_default
="MASK_PA_11"
4079 xm_file
=pa
/xm-pa64hpux.h
4080 xmake_file
=pa
/x-pa-hpux
4082 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"
4084 tmake_file
=pa
/t-pa64
4085 target_cpu_default
="(MASK_PA_11|MASK_PA_20)"
4089 tm_file
="${tm_file} pa/pa-gas.h"
4091 # if [[ x$enable_threads = x ]]; then
4092 # enable_threads=$have_pthread_h
4094 # if [[ x$enable_threads = xyes ]]; then
4096 # tmake_file="${tmake_file} pa/t-dce-thr"
4098 install_headers_dir
=install-headers-cpio
4101 hppa1.1
-*-hpux11* | hppa2
*-*-hpux11*)
4102 target_cpu_default
="MASK_PA_11"
4103 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
4105 xm_file
=pa
/xm-pahpux.h
4106 xmake_file
=pa
/x-pa-hpux
4108 if test x
$gas = xyes
4110 tm_file
="${tm_file} pa/pa-gas.h"
4112 # if test x$enable_threads = x; then
4113 # enable_threads=$have_pthread_h
4115 # if test x$enable_threads = xyes; then
4117 # tmake_file="${tmake_file} pa/t-dce-thr"
4119 install_headers_dir
=install-headers-cpio
4123 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
4125 xm_file
=pa
/xm-pahpux.h
4126 xmake_file
=pa
/x-pa-hpux
4127 if test x
$gas = xyes
4129 tm_file
="${tm_file} pa/pa-gas.h"
4131 # if test x$enable_threads = x; then
4132 # enable_threads=$have_pthread_h
4134 # if test x$enable_threads = xyes; then
4136 # tmake_file="${tmake_file} pa/t-dce-thr"
4138 install_headers_dir
=install-headers-cpio
4141 hppa1.1
-*-hpux* | hppa2
*-*-hpux*)
4142 target_cpu_default
="MASK_PA_11"
4143 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
4144 xm_file
=pa
/xm-pahpux.h
4145 xmake_file
=pa
/x-pa-hpux
4146 if test x
$gas = xyes
4148 tm_file
="${tm_file} pa/pa-gas.h"
4150 install_headers_dir
=install-headers-cpio
4154 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
4155 xm_file
=pa
/xm-pahpux.h
4156 xmake_file
=pa
/x-pa-hpux
4157 if test x
$gas = xyes
4159 tm_file
="${tm_file} pa/pa-gas.h"
4161 install_headers_dir
=install-headers-cpio
4164 hppa1.1
-*-hiux* | hppa2
*-*-hiux*)
4165 target_cpu_default
="MASK_PA_11"
4166 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
4167 xm_file
=pa
/xm-pahpux.h
4168 xmake_file
=pa
/x-pa-hpux
4169 if test x
$gas = xyes
4171 tm_file
="${tm_file} pa/pa-gas.h"
4173 install_headers_dir
=install-headers-cpio
4177 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
4178 xm_file
=pa
/xm-pahpux.h
4179 xmake_file
=pa
/x-pa-hpux
4180 if test x
$gas = xyes
4182 tm_file
="${tm_file} pa/pa-gas.h"
4184 install_headers_dir
=install-headers-cpio
4188 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
4189 target_cpu_default
="MASK_PA_11"
4193 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
4194 xm_file
=pa
/xm-pampeix.h
4195 xmake_file
=pa
/x-pa-mpeix
4196 echo "You must use gas. Assuming it is already installed."
4197 install_headers_dir
=install-headers-tar
4200 i370-
*-opened*) # IBM 360/370/390 Architecture
4201 xm_file
=i370
/xm-oe.h
4203 xmake_file
=i370
/x-oe
4204 tmake_file
=i370
/t-oe
4207 xm_file
=i370
/xm-mvs.h
4209 tmake_file
=i370
/t-mvs
4212 xm_file
="xm-linux.h i370/xm-linux.h"
4214 tm_file
="i370/linux.h ${tm_file}"
4215 tmake_file
="t-linux i370/t-linux"
4216 # broken_install=yes
4217 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4218 # extra_parts="crtbegin.o crtend.o"
4222 if test x
$enable_threads = xyes
; then
4227 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h"
4228 tm_file
=i386
/i386elf.h
4229 tmake_file
=i386
/t-i386elf
4232 i
[34567]86-ibm-aix*) # IBM PS/2 running AIX
4233 if test x
$gas = xyes
4235 tm_file
=i386
/aix386.h
4236 extra_parts
="crtbegin.o crtend.o"
4237 tmake_file
=i386
/t-crtstuff
4239 tm_file
=i386
/aix386ng.h
4242 xm_file
="xm-alloca.h i386/xm-aix.h ${xm_file}"
4244 xmake_file
=i386
/x-aix
4246 i
[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
4247 xm_file
="xm-alloca.h ${xm_file}"
4248 xm_defines
="USG POSIX SMALL_ARG_MAX"
4249 xmake_file
=i386
/x-ncr3000
4250 if test x
$stabs = xyes
-a x
$gas = xyes
4252 tm_file
=i386
/sysv4gdb.h
4254 tm_file
=i386
/sysv4.h
4256 extra_parts
="crtbegin.o crtend.o"
4257 tmake_file
=i386
/t-crtpic
4261 xm_file
=i386
/xm-next.h
4262 tmake_file
=i386
/t-next
4263 xmake_file
=i386
/x-next
4264 extra_objs
=nextstep.o
4265 extra_parts
="crtbegin.o crtend.o"
4266 if test x
$enable_threads = xyes
; then
4270 i
[34567]86-sequent-bsd*) # 80386 from Sequent
4272 if test x
$gas = xyes
4274 tm_file
=i386
/seq-gas.h
4276 tm_file
=i386
/sequent.h
4279 i
[34567]86-sequent-ptx1*)
4280 xm_defines
="USG SVR3"
4281 xmake_file
=i386
/x-sysv3
4282 tm_file
=i386
/seq-sysv3.h
4283 tmake_file
=i386
/t-crtstuff
4284 extra_parts
="crtbegin.o crtend.o"
4285 install_headers_dir
=install-headers-cpio
4287 i
[34567]86-sequent-ptx2* | i
[34567]86-sequent-sysv3*)
4288 xm_defines
="USG SVR3"
4289 xmake_file
=i386
/x-sysv3
4290 tm_file
=i386
/seq2-sysv3.h
4291 tmake_file
=i386
/t-crtstuff
4292 extra_parts
="crtbegin.o crtend.o"
4293 install_headers_dir
=install-headers-cpio
4295 i
[34567]86-sequent-ptx4* | i
[34567]86-sequent-sysv4*)
4296 xm_file
="xm-alloca.h ${xm_file}"
4297 xm_defines
="USG POSIX SMALL_ARG_MAX"
4299 tm_file
=i386
/ptx4-i.h
4301 extra_parts
="crtbegin.o crtend.o"
4302 install_headers_dir
=install-headers-cpio
4304 i386-sun-sunos
*) # Sun i386 roadrunner
4309 i
[34567]86-wrs-vxworks*)
4310 tm_file
=i386
/vxi386.h
4311 tmake_file
=i386
/t-i386bare
4312 thread_file
='vxworks'
4315 tm_file
=i386
/i386-aout.h
4316 tmake_file
=i386
/t-i386bare
4318 i
[34567]86-*-beospe*)
4319 xm_file
=i386
/xm-beos.h
4320 xm_defines
="USE_C_ALLOCA"
4321 tmake_file
=i386
/t-beos
4322 tm_file
=i386
/beos-pe.h
4323 xmake_file
=i386
/x-beos
4326 i
[34567]86-*-beoself* | i
[34567]86-*-beos*)
4327 xm_file
=i386
/xm-beos.h
4328 tmake_file
='i386/t-beos i386/t-crtpic'
4329 tm_file
=i386
/beos-elf.h
4330 xmake_file
=i386
/x-beos
4332 extra_parts
='crtbegin.o crtend.o'
4334 i
[34567]86-*-bsdi* | i
[34567]86-*-bsd386*)
4335 tm_file
=i386
/bsd386.h
4336 # tmake_file=t-libc-ok
4339 tm_file
=i386
/386bsd.h
4340 # tmake_file=t-libc-ok
4341 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
4344 i
[34567]86-*-freebsd[12] | i
[34567]86-*-freebsd[12].
* | i
[34567]86-*-freebsd*aout
*)
4345 tm_file
="i386/freebsd.h i386/perform.h"
4346 tmake_file
=t-freebsd
4348 i
[34567]86-*-freebsd*)
4349 tm_file
="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
4350 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4351 tmake_file
=t-freebsd
4355 case x
${enable_threads} in
4356 xyes | xpthreads | xposix
)
4358 tmake_file
="${tmake_file} t-freebsd-thread"
4362 i
[34567]86-*-netbsd*)
4363 tm_file
=i386
/netbsd.h
4367 i
[34567]86-*-openbsd*)
4368 # we need collect2 until our bug is fixed...
4372 tm_file
=i386
/i386-coff.h
4373 tmake_file
=i386
/t-i386bare
4375 i
[34567]86-*-isc*) # 80386 running ISC system
4376 xm_file
="${xm_file} i386/xm-isc.h"
4377 xm_defines
="USG SVR3"
4379 i
[34567]86-*-isc[34]*)
4380 xmake_file
=i386
/x-isc3
4383 xmake_file
=i386
/x-isc
4386 if test x
$gas = xyes
-a x
$stabs = xyes
4388 tm_file
=i386
/iscdbx.h
4389 tmake_file
=i386
/t-svr3dbx
4390 extra_parts
="svr3.ifile svr3z.ifile"
4392 tm_file
=i386
/isccoff.h
4393 tmake_file
=i386
/t-crtstuff
4394 extra_parts
="crtbegin.o crtend.o"
4396 tmake_file
="$tmake_file i386/t-i386bare"
4397 install_headers_dir
=install-headers-cpio
4399 i
[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
4401 xmake_file
=x-linux-aout
4402 tmake_file
="t-linux-aout i386/t-crtstuff"
4403 tm_file
=i386
/linux-oldld.h
4407 i
[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
4408 xmake_file
=x-linux-aout
4409 tmake_file
="t-linux-aout i386/t-crtstuff"
4410 tm_file
=i386
/linux-aout.h
4414 i
[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
4415 # GNU/Linux C library 5
4417 tm_file
=i386
/linux.h
4418 tmake_file
="t-linux t-linux-gnulibc1 i386/t-crtstuff"
4419 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4422 if test x
$enable_threads = xyes
; then
4423 thread_file
='single'
4426 i
[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
4427 # aka GNU/Linux C library 6
4429 tm_file
=i386
/linux.h
4430 tmake_file
="t-linux i386/t-crtstuff"
4431 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4434 if test x
$enable_threads = xyes
; then
4441 i
[34567]86-go32-msdos | i
[34567]86-*-go32*)
4442 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
4445 i
[34567]86-pc-msdosdjgpp*)
4446 xm_file
=i386
/xm-djgpp.h
4447 tm_file
=i386
/djgpp.h
4448 tmake_file
=i386
/t-djgpp
4449 xmake_file
=i386
/x-djgpp
4454 case $host in *pc-msdosdjgpp
*)
4459 i
[34567]86-moss-msdos* | i
[34567]86-*-moss*)
4461 tmake_file
=t-libc-ok
4465 i
[34567]86-*-lynxos*)
4466 if test x
$gas = xyes
4470 tm_file
=i386
/lynx-ng.h
4472 xm_file
=i386
/xm-lynx.h
4473 tmake_file
=i386
/t-i386bare
4478 # tmake_file=t-libc-ok
4481 i
[34567]86-*-osfrose*) # 386 using OSF/rose
4482 if test x
$elf = xyes
4484 tm_file
=i386
/osfelf.h
4487 tm_file
=i386
/osfrose.h
4490 xm_file
="i386/xm-osf.h ${xm_file}"
4491 xmake_file
=i386
/x-osfrose
4492 tmake_file
=i386
/t-osf
4493 extra_objs
=halfpic.o
4495 i
[34567]86-go32-rtems*)
4497 xm_file
=i386
/xm-go32.h
4498 tm_file
=i386
/go32-rtems.h
4499 tmake_file
="i386/t-go32 t-rtems"
4501 i
[34567]86-*-rtemscoff*)
4503 tm_file
=i386
/rtems.h
4504 tmake_file
="i386/t-i386bare t-rtems"
4506 i
[34567]86-*-rtems*|i
[34567]86-*-rtemself*)
4508 tm_file
=i386
/rtemself.h
4509 extra_parts
="crtbegin.o crtend.o crti.o crtn.o"
4510 tmake_file
="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
4512 i
[34567]86-*-sco3.2v5
*) # 80386 running SCO Open Server 5
4513 xm_file
="xm-alloca.h ${xm_file} i386/xm-sco5.h"
4514 xm_defines
="USG SVR3"
4515 xmake_file
=i386
/x-sco5
4516 install_headers_dir
=install-headers-cpio
4518 if test x
$gas = xyes
4520 tm_file
="i386/sco5gas.h ${tm_file}"
4521 tmake_file
=i386
/t-sco5gas
4523 tmake_file
=i386
/t-sco5
4525 tmake_file
="$tmake_file i386/t-i386bare"
4526 extra_parts
="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
4528 i
[34567]86-*-sco3.2v4
*) # 80386 running SCO 3.2v4 system
4529 xm_file
="${xm_file} i386/xm-sco.h"
4530 xm_defines
="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
4531 xmake_file
=i386
/x-sco4
4532 install_headers_dir
=install-headers-cpio
4533 if test x
$stabs = xyes
4535 tm_file
=i386
/sco4dbx.h
4536 tmake_file
=i386
/t-svr3dbx
4537 extra_parts
="svr3.ifile svr3z.rfile"
4540 tmake_file
=i386
/t-crtstuff
4541 extra_parts
="crtbegin.o crtend.o"
4543 tmake_file
="$tmake_file i386/t-i386bare"
4544 # The default EAFS filesystem supports long file names.
4545 # Truncating the target makes $host != $target which
4546 # makes gcc think it is doing a cross-compile.
4547 # truncate_target=yes
4549 i
[34567]86-*-sco*) # 80386 running SCO system
4550 xm_file
=i386
/xm-sco.h
4551 xmake_file
=i386
/x-sco
4552 install_headers_dir
=install-headers-cpio
4553 if test x
$stabs = xyes
4555 tm_file
=i386
/scodbx.h
4556 tmake_file
=i386
/t-svr3dbx
4557 extra_parts
="svr3.ifile svr3z.rfile"
4560 extra_parts
="crtbegin.o crtend.o"
4561 tmake_file
=i386
/t-crtstuff
4563 tmake_file
="$tmake_file i386/t-i386bare"
4566 i
[34567]86-*-solaris2*)
4567 xm_file
="xm-alloca.h ${xm_file}"
4568 xm_defines
="USG POSIX SMALL_ARG_MAX"
4570 if test x
$gas = xyes
; then
4571 # Only needed if gas does not support -s
4572 tm_file
="i386/sol2gas.h ${tm_file}"
4574 tmake_file
="i386/t-i386bare i386/t-sol2"
4575 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4577 if test x
${enable_threads} = x
; then
4578 enable_threads
=$have_pthread_h
4579 if test x
${enable_threads} = x
; then
4580 enable_threads
=$have_thread_h
4583 if test x
${enable_threads} = xyes
; then
4584 if test x
${have_pthread_h} = xyes
; then
4587 thread_file
='solaris'
4591 i
[34567]86-*-sysv5*) # Intel x86 on System V Release 5
4592 xm_file
="xm-alloca.h ${xm_file}"
4593 xm_defines
="USG POSIX"
4594 tm_file
=i386
/sysv5.h
4595 if test x
$stabs = xyes
4597 tm_file
="${tm_file} dbx.h"
4599 tmake_file
="i386/t-i386bare i386/t-crtpic"
4601 extra_parts
="crtbegin.o crtend.o"
4602 if test x
$enable_threads = xyes
; then
4606 i
[34567]86-*-sysv4*) # Intel 80386's running system V.4
4607 xm_file
="xm-alloca.h ${xm_file}"
4608 xm_defines
="USG POSIX SMALL_ARG_MAX"
4609 tm_file
=i386
/sysv4.h
4610 if test x
$stabs = xyes
4612 tm_file
="${tm_file} dbx.h"
4614 tmake_file
="i386/t-i386bare i386/t-crtpic"
4616 extra_parts
="crtbegin.o crtend.o"
4618 i
[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
4619 xm_file
="xm-alloca.h ${xm_file}"
4620 xm_defines
="USG POSIX"
4622 tmake_file
="i386/t-i386bare i386/t-crtpic i386/t-udk"
4624 extra_parts
="crtbegin.o crtend.o"
4625 install_headers_dir
=install-headers-cpio
4627 i
[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
4629 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
4630 xm_defines
="USE_C_ALLOCA SMALL_ARG_MAX"
4631 if test x
$stabs = xyes
4633 tm_file
=i386
/osf1elfgdb.h
4635 tm_file
=i386
/osf1elf.h
4637 tmake_file
=i386
/t-osf1elf
4638 xmake_file
=i386
/x-osf1elf
4639 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4641 i
[34567]86-*-sysv*) # Intel 80386's running system V
4642 xm_defines
="USG SVR3"
4643 xmake_file
=i386
/x-sysv3
4644 if test x
$gas = xyes
4646 if test x
$stabs = xyes
4648 tm_file
=i386
/svr3dbx.h
4649 tmake_file
=i386
/t-svr3dbx
4650 extra_parts
="svr3.ifile svr3z.rfile"
4652 tm_file
=i386
/svr3gas.h
4653 extra_parts
="crtbegin.o crtend.o"
4654 tmake_file
=i386
/t-crtstuff
4657 tm_file
=i386
/sysv3.h
4658 extra_parts
="crtbegin.o crtend.o"
4659 tmake_file
=i386
/t-crtstuff
4661 tmake_file
="$tmake_file i386/t-crtpic"
4663 i386-
*-vsta) # Intel 80386's running VSTa kernel
4664 xm_file
="${xm_file} i386/xm-vsta.h"
4666 tmake_file
=i386
/t-vsta
4667 xmake_file
=i386
/x-vsta
4670 xm_file
="${xm_file} i386/xm-cygwin.h"
4671 tmake_file
=i386
/t-cygwin
4672 tm_file
=i386
/win32.h
4673 xmake_file
=i386
/x-cygwin
4675 if test x
$enable_threads = xyes
; then
4680 i
[34567]86-*-pe | i
[34567]86-*-cygwin*)
4681 xm_file
="${xm_file} i386/xm-cygwin.h"
4682 tmake_file
=i386
/t-cygwin
4683 tm_file
=i386
/cygwin.h
4684 xmake_file
=i386
/x-cygwin
4686 if test x
$enable_threads = xyes
; then
4691 i
[34567]86-*-mingw32*)
4692 tm_file
=i386
/mingw32.h
4693 xm_file
="${xm_file} i386/xm-mingw32.h"
4694 tmake_file
="i386/t-cygwin i386/t-mingw32"
4696 xmake_file
=i386
/x-cygwin
4697 if test x
$enable_threads = xyes
; then
4704 *minwg32crt
* |
*mingw32
*)
4705 tm_file
="${tm_file} i386/crtdll.h"
4711 xm_file
="${xm_file} i386/xm-uwin.h"
4712 xm_defines
="USG NO_STAB_H"
4713 tmake_file
="i386/t-cygwin i386/t-uwin"
4715 xmake_file
=i386
/x-cygwin
4716 if test x
$enable_threads = xyes
; then
4721 i
[34567]86-*-interix*)
4722 tm_file
="i386/i386-interix.h interix.h"
4723 xm_file
="i386/xm-i386-interix.h xm-interix.h"
4725 tmake_file
="i386/t-interix"
4726 extra_objs
=interix.o
4727 xmake_file
=x-interix
4728 if test x
$enable_threads = xyes
; then
4731 if test x
$stabs = xyes
; then
4732 tm_file
="${tm_file} dbxcoff.h"
4735 i
[34567]86-*-winnt3*)
4736 tm_file
=i386
/win-nt.h
4737 out_file
=i386
/i386.c
4738 xm_file
="xm-winnt.h ${xm_file}"
4739 xmake_file
=winnt
/x-winnt
4740 tmake_file
=i386
/t-winnt
4741 extra_host_objs
="winnt.o oldnames.o"
4742 extra_gcc_objs
="spawnv.o oldnames.o"
4743 if test x
$gnu_ld != xyes
4745 extra_programs
=ld.exe
4747 if test x
$enable_threads = xyes
; then
4751 i
[34567]86-dg-dgux*)
4752 xm_file
="xm-alloca.h ${xm_file}"
4753 xm_defines
="USG POSIX"
4754 out_file
=i386
/dgux.c
4756 tmake_file
=i386
/t-dgux
4757 xmake_file
=i386
/x-dgux
4758 install_headers_dir
=install-headers-cpio
4760 i860-alliant-
*) # Alliant FX/2800
4761 tm_file
="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
4762 xm_file
="${xm_file}"
4763 xmake_file
=i860
/x-fx2800
4764 tmake_file
=i860
/t-fx2800
4765 extra_parts
="crtbegin.o crtend.o"
4768 tm_file
="${tm_file} i860/bsd.h"
4769 if test x
$gas = xyes
4771 tm_file
="${tm_file} i860/bsd-gas.h"
4776 tm_file
="${tm_file} i860/mach.h"
4777 tmake_file
=t-libc-ok
4779 i860-
*-osf*) # Intel Paragon XP/S, OSF/1AD
4780 tm_file
="${tm_file} svr3.h i860/paragon.h"
4781 xm_defines
="USG SVR3"
4785 tm_file
="${tm_file} svr3.h i860/sysv3.h"
4786 xm_defines
="USG SVR3"
4787 xmake_file
=i860
/x-sysv3
4788 extra_parts
="crtbegin.o crtend.o"
4791 tm_file
="${tm_file} svr4.h i860/sysv4.h"
4792 xm_defines
="USG SVR3"
4793 xmake_file
=i860
/x-sysv4
4795 extra_parts
="crtbegin.o crtend.o"
4797 i960-wrs-vxworks5 | i960-wrs-vxworks5.0
*)
4798 tm_file
="${tm_file} i960/vx960.h"
4799 tmake_file
=i960
/t-vxworks960
4801 thread_file
='vxworks'
4803 i960-wrs-vxworks5
* | i960-wrs-vxworks
)
4804 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
4805 tmake_file
=i960
/t-vxworks960
4807 thread_file
='vxworks'
4810 tm_file
="${tm_file} i960/vx960.h"
4811 tmake_file
=i960
/t-vxworks960
4813 thread_file
='vxworks'
4816 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
4817 tmake_file
=i960
/t-960bare
4821 tmake_file
="i960/t-960bare t-rtems"
4822 tm_file
="${tm_file} dbxcoff.h i960/rtems.h"
4825 i960-
*-*) # Default i960 environment.
4830 tmake_file
="ia64/t-ia64"
4831 target_cpu_default
="0"
4832 if test x
$gas = xyes
4834 target_cpu_default
="${target_cpu_default}|MASK_GNU_AS"
4836 if test x
$gnu_ld = xyes
4838 target_cpu_default
="${target_cpu_default}|MASK_GNU_LD"
4842 tm_file
=ia64
/linux.h
4843 tmake_file
="t-linux ia64/t-ia64"
4844 target_cpu_default
="MASK_GNU_AS|MASK_GNU_LD"
4845 if test x
$enable_threads = xyes
; then
4850 extra_parts
="crtinit.o crtfini.o"
4852 m68000-convergent-sysv
*)
4854 xm_file
="m68k/xm-3b1.h ${xm_file}"
4857 extra_headers
=math-68881.h
4859 m68000-hp-bsd
*) # HP 9000/200 running BSD
4860 tm_file
=m68k
/hp2bsd.h
4861 xmake_file
=m68k
/x-hp2bsd
4863 extra_headers
=math-68881.h
4865 m68000-hp-hpux
*) # HP 9000 series 300
4866 xm_file
="xm-alloca.h ${xm_file}"
4868 if test x
$gas = xyes
4870 xmake_file
=m68k
/x-hp320g
4871 tm_file
=m68k
/hp310g.h
4873 xmake_file
=m68k
/x-hp320
4874 tm_file
=m68k
/hp310.h
4876 install_headers_dir
=install-headers-cpio
4878 extra_headers
=math-68881.h
4883 extra_headers
=math-68881.h
4886 tm_file
=m68k
/sun2o4.h
4888 extra_headers
=math-68881.h
4891 xm_file
="m68k/xm-3b1.h ${xm_file}"
4893 if test x
$gas = xyes
4900 extra_headers
=math-68881.h
4902 m68k-apple-aux
*) # Apple Macintosh running A/UX
4903 xm_defines
="USG AUX"
4904 tmake_file
=m68k
/t-aux
4905 install_headers_dir
=install-headers-cpio
4906 extra_headers
=math-68881.h
4907 extra_parts
="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
4909 if test "$gnu_ld" = yes
4911 tm_file
="${tm_file} m68k/auxgld.h"
4913 tm_file
="${tm_file} m68k/auxld.h"
4915 if test "$gas" = yes
4917 tm_file
="${tm_file} m68k/auxgas.h"
4919 tm_file
="${tm_file} m68k/auxas.h"
4921 tm_file
="${tm_file} m68k/a-ux.h"
4925 tm_file
=m68k
/apollo68.h
4926 xmake_file
=m68k
/x-apollo68
4928 extra_headers
=math-68881.h
4931 m68k-altos-sysv
*) # Altos 3068
4932 if test x
$gas = xyes
4934 tm_file
=m68k
/altos3068.h
4937 echo "The Altos is supported only with the GNU assembler" 1>&2
4940 extra_headers
=math-68881.h
4942 m68k-bull-sysv
*) # Bull DPX/2
4943 if test x
$gas = xyes
4945 if test x
$stabs = xyes
4947 tm_file
=m68k
/dpx2cdbx.h
4949 tm_file
=m68k
/dpx2g.h
4954 xm_file
="xm-alloca.h ${xm_file}"
4956 xmake_file
=m68k
/x-dpx2
4958 extra_headers
=math-68881.h
4960 m68k-atari-sysv4
*) # Atari variant of V.4.
4961 tm_file
=m68k
/atari.h
4962 xm_file
="xm-alloca.h ${xm_file}"
4963 xm_defines
="USG FULL_PROTOTYPES"
4965 extra_parts
="crtbegin.o crtend.o"
4966 extra_headers
=math-68881.h
4969 m68k-motorola-sysv
*)
4970 tm_file
=m68k
/mot3300.h
4971 xm_file
="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
4972 if test x
$gas = xyes
4974 xmake_file
=m68k
/x-mot3300-gas
4975 if test x
$gnu_ld = xyes
4977 tmake_file
=m68k
/t-mot3300-gald
4979 tmake_file
=m68k
/t-mot3300-gas
4983 xmake_file
=m68k
/x-mot3300
4984 if test x
$gnu_ld = xyes
4986 tmake_file
=m68k
/t-mot3300-gld
4988 tmake_file
=m68k
/t-mot3300
4992 gdb_needs_out_file_path
=yes
4993 extra_parts
="crt0.o mcrt0.o"
4994 extra_headers
=math-68881.h
4997 m68k-ncr-sysv
*) # NCR Tower 32 SVR3
4998 tm_file
=m68k
/tower-as.h
4999 xm_defines
="USG SVR3"
5000 xmake_file
=m68k
/x-tower
5001 extra_parts
="crtbegin.o crtend.o"
5002 extra_headers
=math-68881.h
5005 tm_file
=m68k
/plexus.h
5006 xm_file
="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
5009 extra_headers
=math-68881.h
5013 xm_file
="xm-alloca.h ${xm_file}"
5015 extra_headers
=math-68881.h
5018 xm_file
="xm-alloca.h m68k/xm-crds.h ${xm_file}"
5019 xm_defines
="USG unos"
5020 xmake_file
=m68k
/x-crds
5023 extra_headers
=math-68881.h
5025 m68k-cbm-sysv4
*) # Commodore variant of V.4.
5027 xm_file
="xm-alloca.h ${xm_file}"
5028 xm_defines
="USG FULL_PROTOTYPES"
5029 xmake_file
=m68k
/x-amix
5031 extra_parts
="crtbegin.o crtend.o"
5032 extra_headers
=math-68881.h
5036 tm_file
=m68k
/ccur-GAS.h
5037 xmake_file
=m68k
/x-ccur
5038 extra_headers
=math-68881.h
5042 m68k-hp-bsd4.4
*) # HP 9000/3xx running 4.4bsd
5043 tm_file
=m68k
/hp3bsd44.h
5044 xmake_file
=m68k
/x-hp3bsd44
5046 extra_headers
=math-68881.h
5049 m68k-hp-bsd
*) # HP 9000/3xx running Berkeley Unix
5050 tm_file
=m68k
/hp3bsd.h
5052 extra_headers
=math-68881.h
5056 if test x
$with_fp = xno
5058 tm_file
=m68k
/isi-nfp.h
5064 extra_headers
=math-68881.h
5066 m68k-hp-hpux7
*) # HP 9000 series 300 running HPUX version 7.
5067 xm_file
="xm-alloca.h ${xm_file}"
5069 if test x
$gas = xyes
5071 xmake_file
=m68k
/x-hp320g
5072 tm_file
=m68k
/hp320g.h
5074 xmake_file
=m68k
/x-hp320
5075 tm_file
=m68k
/hpux7.h
5077 install_headers_dir
=install-headers-cpio
5079 extra_headers
=math-68881.h
5082 m68k-hp-hpux
*) # HP 9000 series 300
5083 xm_file
="xm-alloca.h ${xm_file}"
5085 if test x
$gas = xyes
5087 xmake_file
=m68k
/x-hp320g
5088 tm_file
=m68k
/hp320g.h
5090 xmake_file
=m68k
/x-hp320
5091 tm_file
=m68k
/hp320.h
5093 install_headers_dir
=install-headers-cpio
5095 extra_headers
=math-68881.h
5099 tm_file
=m68k
/sun3mach.h
5101 extra_headers
=math-68881.h
5105 if test x
$gas = xyes
5107 tm_file
=m68k
/news3gas.h
5109 tm_file
=m68k
/news3.h
5112 extra_headers
=math-68881.h
5115 m68k-sony-bsd
* | m68k-sony-newsos
*)
5116 if test x
$gas = xyes
5118 tm_file
=m68k
/newsgas.h
5123 extra_headers
=math-68881.h
5126 m68k-next-nextstep2
*)
5127 tm_file
=m68k
/next21.h
5128 xm_file
="m68k/xm-next.h ${xm_file}"
5129 tmake_file
=m68k
/t-next
5130 xmake_file
=m68k
/x-next
5131 extra_objs
=nextstep.o
5132 extra_headers
=math-68881.h
5136 m68k-next-nextstep
[34]*)
5138 xm_file
="m68k/xm-next.h ${xm_file}"
5139 tmake_file
=m68k
/t-next
5140 xmake_file
=m68k
/x-next
5141 extra_objs
=nextstep.o
5142 extra_parts
="crtbegin.o crtend.o"
5143 extra_headers
=math-68881.h
5145 if test x
$enable_threads = xyes
; then
5150 if test x
$with_fp = xno
5152 tm_file
=m68k
/sun3n3.h
5154 tm_file
=m68k
/sun3o3.h
5158 extra_headers
=math-68881.h
5160 m68k-sun-sunos
*) # For SunOS 4 (the default).
5161 if test x
$with_fp = xno
5163 tm_file
=m68k
/sun3n.h
5169 extra_headers
=math-68881.h
5172 tm_file
=m68k
/vxm68k.h
5173 tmake_file
=m68k
/t-vxworks68
5174 extra_headers
=math-68881.h
5175 thread_file
='vxworks'
5179 tmake_file
=m68k
/t-m68kbare
5180 tm_file
="m68k/m68k-aout.h libgloss.h"
5181 extra_headers
=math-68881.h
5185 tmake_file
=m68k
/t-m68kbare
5186 tm_file
="m68k/m68k-coff.h dbx.h libgloss.h"
5187 extra_headers
=math-68881.h
5190 m68020-
*-elf* | m68k-
*-elf*)
5191 tm_file
="m68k/m68020-elf.h"
5192 xm_file
=m68k
/xm-m68kv.h
5193 tmake_file
=m68k
/t-m68kelf
5194 header_files
=math-68881.h
5197 if test x
$gas = xyes
5201 tm_file
=m68k
/lynx-ng.h
5203 xm_file
=m68k
/xm-lynx.h
5205 tmake_file
=m68k
/t-lynx
5206 extra_headers
=math-68881.h
5210 tm_file
=m68k
/netbsd.h
5217 # we need collect2 until our bug is fixed...
5220 m68k-
*-sysv3*) # Motorola m68k's running system V.3
5221 xm_file
="xm-alloca.h ${xm_file}"
5223 xmake_file
=m68k
/x-m68kv
5224 extra_parts
="crtbegin.o crtend.o"
5225 extra_headers
=math-68881.h
5228 m68k-
*-sysv4*) # Motorola m68k's running system V.4
5229 tm_file
=m68k
/m68kv4.h
5230 xm_file
="xm-alloca.h ${xm_file}"
5233 extra_parts
="crtbegin.o crtend.o"
5234 extra_headers
=math-68881.h
5237 m68k-
*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
5240 tm_file
=m68k
/linux-aout.h
5241 tmake_file
="t-linux-aout m68k/t-linux-aout"
5242 extra_headers
=math-68881.h
5246 m68k-
*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
5247 # with ELF format using the
5248 # GNU/Linux C library 5
5250 tm_file
=m68k
/linux.h
5251 tmake_file
="t-linux t-linux-gnulibc1 m68k/t-linux"
5252 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5253 extra_headers
=math-68881.h
5257 m68k-
*-linux-gnu*) # Motorola m68k's running GNU/Linux
5258 # with ELF format using glibc 2
5259 # aka the GNU/Linux C library 6.
5261 tm_file
=m68k
/linux.h
5262 tmake_file
="t-linux m68k/t-linux"
5263 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5264 extra_headers
=math-68881.h
5267 if test x
$enable_threads = xyes
; then
5272 tmake_file
=m68k
/t-m68kbare
5273 tm_file
=m68k
/m68k-psos.h
5274 extra_headers
=math-68881.h
5278 tmake_file
="m68k/t-m68kbare t-rtems"
5279 tm_file
=m68k
/rtems.h
5280 extra_headers
=math-68881.h
5283 m68k-
*-rtemself*|m68k-
*-rtems*)
5284 tmake_file
="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
5285 tm_file
=m68k
/rtemself.h
5286 extra_headers
=math-68881.h
5292 tm_file
=m88k
/dguxbcs.h
5293 tmake_file
=m88k
/t-dguxbcs
5297 tmake_file
=m88k
/t-dgux
5300 extra_parts
="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
5301 xmake_file
=m88k
/x-dgux
5302 if test x
$gas = xyes
5304 tmake_file
=m88k
/t-dgux-gas
5307 m88k-dolphin-sysv3
*)
5308 tm_file
=m88k
/dolph.h
5309 extra_parts
="crtbegin.o crtend.o"
5310 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5311 xmake_file
=m88k
/x-dolph
5312 if test x
$gas = xyes
5314 tmake_file
=m88k
/t-m88k-gas
5317 m88k-tektronix-sysv3
)
5318 tm_file
=m88k
/tekXD88.h
5319 extra_parts
="crtbegin.o crtend.o"
5320 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5321 xmake_file
=m88k
/x-tekXD88
5322 if test x
$gas = xyes
5324 tmake_file
=m88k
/t-m88k-gas
5328 tm_file
=m88k
/m88k-aout.h
5331 tm_file
=m88k
/m88k-coff.h
5332 tmake_file
=m88k
/t-bug
5336 extra_parts
="crtbegin.o crtend.o"
5337 if test x
$gas = xyes
5339 tmake_file
=m88k
/t-luna-gas
5341 tmake_file
=m88k
/t-luna
5345 tmake_file
="${tmake_file} m88k/t-luna-gas"
5348 tm_file
=m88k
/sysv3.h
5349 extra_parts
="crtbegin.o crtend.o"
5350 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5351 xmake_file
=m88k
/x-sysv3
5352 if test x
$gas = xyes
5354 tmake_file
=m88k
/t-m88k-gas
5358 tm_file
=m88k
/sysv4.h
5359 extra_parts
="crtbegin.o crtend.o"
5360 xmake_file
=m88k
/x-sysv4
5361 tmake_file
=m88k
/t-sysv4
5364 tm_file
=mcore
/mcore-elf.h
5365 tmake_file
=mcore
/t-mcore
5368 tm_file
=mcore
/mcore-pe.h
5369 tmake_file
=mcore
/t-mcore-pe
5371 mips-sgi-irix6
*) # SGI System V.4., IRIX 6
5372 if test "x$gnu_ld" = xyes
5374 tm_file
="mips/iris6.h mips/iris6gld.h"
5376 tm_file
=mips
/iris6.h
5378 tmake_file
=mips
/t-iris6
5379 xm_file
=mips
/xm-iris6.h
5380 xmake_file
=mips
/x-iris6
5381 # if test x$enable_threads = xyes; then
5382 # thread_file='irix'
5386 tm_file
="mips/elf.h mips/vxworks.h"
5387 tmake_file
=mips
/t-ecoff
5390 extra_parts
="crtbegin.o crtend.o"
5391 thread_file
='vxworks'
5393 mips-sgi-irix5cross64
) # Irix5 host, Irix 6 target, cross64
5394 tm_file
="mips/iris6.h mips/cross64.h"
5396 xm_file
="mips/xm-iris5.h"
5397 xmake_file
=mips
/x-iris
5398 tmake_file
=mips
/t-cross64
5399 # See comment in mips/iris[56].h files.
5401 # if test x$enable_threads = xyes; then
5402 # thread_file='irix'
5406 if test x
$gas = xyes
5408 if test x
$stabs = xyes
5410 tm_file
=mips
/iris5gdb.h
5412 tm_file
="mips/sni-svr4.h mips/sni-gas.h"
5415 tm_file
=mips
/sni-svr4.h
5418 xmake_file
=mips
/x-sni-svr4
5419 tmake_file
=mips
/t-mips-gas
5420 if test x
$gnu_ld != xyes
5425 mips-sgi-irix5
*) # SGI System V.4., IRIX 5
5426 if test x
$gas = xyes
5428 tm_file
="mips/iris5.h mips/iris5gas.h"
5429 if test x
$stabs = xyes
5431 tm_file
="${tm_file} dbx.h"
5434 tm_file
=mips
/iris5.h
5437 xm_file
="mips/xm-iris5.h"
5438 xmake_file
=mips
/x-iris
5439 # mips-tfile doesn't work yet
5440 tmake_file
=mips
/t-mips-gas
5441 # See comment in mips/iris5.h file.
5443 # if test x$enable_threads = xyes; then
5444 # thread_file='irix'
5447 mips-sgi-irix4loser
*) # Mostly like a MIPS.
5448 tm_file
="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
5449 if test x
$stabs = xyes
; then
5450 tm_file
="${tm_file} dbx.h"
5453 xmake_file
=mips
/x-iris
5454 if test x
$gas = xyes
5456 tmake_file
=mips
/t-mips-gas
5458 extra_passes
="mips-tfile mips-tdump"
5460 if test x
$gnu_ld != xyes
5464 # if test x$enable_threads = xyes; then
5465 # thread_file='irix'
5468 mips-sgi-irix4
*) # Mostly like a MIPS.
5469 tm_file
="mips/iris3.h ${tm_file} mips/iris4.h"
5470 if test x
$stabs = xyes
; then
5471 tm_file
="${tm_file} dbx.h"
5474 xmake_file
=mips
/x-iris
5475 if test x
$gas = xyes
5477 tmake_file
=mips
/t-mips-gas
5479 extra_passes
="mips-tfile mips-tdump"
5481 if test x
$gnu_ld != xyes
5485 # if test x$enable_threads = xyes; then
5486 # thread_file='irix'
5489 mips-sgi-
*) # Mostly like a MIPS.
5490 tm_file
="mips/iris3.h ${tm_file}"
5491 if test x
$stabs = xyes
; then
5492 tm_file
="${tm_file} dbx.h"
5495 xmake_file
=mips
/x-iris3
5496 if test x
$gas = xyes
5498 tmake_file
=mips
/t-mips-gas
5500 extra_passes
="mips-tfile mips-tdump"
5502 if test x
$gnu_ld != xyes
5507 mips-dec-osfrose
*) # Decstation running OSF/1 reference port with OSF/rose.
5508 tm_file
="mips/osfrose.h ${tm_file}"
5509 xmake_file
=mips
/x-osfrose
5510 tmake_file
=mips
/t-osfrose
5511 extra_objs
=halfpic.o
5514 mips-dec-osf
*) # Decstation running OSF/1 as shipped by DIGITAL
5515 tm_file
=mips
/dec-osf1.h
5516 if test x
$stabs = xyes
; then
5517 tm_file
="${tm_file} dbx.h"
5519 xmake_file
=mips
/x-dec-osf1
5520 if test x
$gas = xyes
5522 tmake_file
=mips
/t-mips-gas
5524 tmake_file
=mips
/t-ultrix
5525 extra_passes
="mips-tfile mips-tdump"
5527 if test x
$gnu_ld != xyes
5532 mips-dec-bsd
*) # Decstation running 4.4 BSD
5533 tm_file
=mips
/dec-bsd.h
5534 if test x
$gas = xyes
5536 tmake_file
=mips
/t-mips-gas
5538 tmake_file
=mips
/t-ultrix
5539 extra_passes
="mips-tfile mips-tdump"
5541 if test x
$gnu_ld != xyes
5546 mipsel-
*-netbsd* | mips-dec-netbsd
*) # Decstation running NetBSD
5547 tm_file
=mips
/netbsd.h
5548 # On NetBSD, the headers are already okay, except for math.h.
5551 mips
*-*-linux*) # Linux MIPS, either endian.
5554 mipsel-
*) tm_file
="mips/elfl.h mips/linux.h" ;;
5555 *) tm_file
="mips/elf.h mips/linux.h" ;;
5557 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5560 if test x
$enable_threads = xyes
; then
5564 mips
*el-
*-openbsd*) # mips little endian
5565 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5567 mips
*-*-openbsd*) # mips big endian
5568 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5569 tm_file
="mips/openbsd-be.h ${tm_file}"
5571 mips-sony-bsd
* | mips-sony-newsos
*) # Sony NEWS 3600 or risc/news.
5572 tm_file
="mips/news4.h ${tm_file}"
5573 if test x
$stabs = xyes
; then
5574 tm_file
="${tm_file} dbx.h"
5576 if test x
$gas = xyes
5578 tmake_file
=mips
/t-mips-gas
5580 extra_passes
="mips-tfile mips-tdump"
5582 if test x
$gnu_ld != xyes
5586 xmake_file
=mips
/x-sony
5588 mips-sony-sysv
*) # Sony NEWS 3800 with NEWSOS5.0.
5589 # That is based on svr4.
5590 # t-svr4 is not right because this system doesn't use ELF.
5591 tm_file
="mips/news5.h ${tm_file}"
5592 if test x
$stabs = xyes
; then
5593 tm_file
="${tm_file} dbx.h"
5596 if test x
$gas = xyes
5598 tmake_file
=mips
/t-mips-gas
5600 extra_passes
="mips-tfile mips-tdump"
5602 if test x
$gnu_ld != xyes
5607 mips-tandem-sysv4
*) # Tandem S2 running NonStop UX
5608 tm_file
="mips/svr4-5.h mips/svr4-t.h"
5609 if test x
$stabs = xyes
; then
5610 tm_file
="${tm_file} dbx.h"
5613 xmake_file
=mips
/x-sysv
5614 if test x
$gas = xyes
5616 tmake_file
=mips
/t-mips-gas
5617 extra_parts
="crtbegin.o crtend.o"
5619 tmake_file
=mips
/t-mips
5620 extra_passes
="mips-tfile mips-tdump"
5622 if test x
$gnu_ld != xyes
5627 mips-
*-ultrix* | mips-dec-mach3
) # Decstation.
5628 tm_file
="mips/ultrix.h ${tm_file}"
5629 if test x
$stabs = xyes
; then
5630 tm_file
="${tm_file} dbx.h"
5632 xmake_file
=mips
/x-ultrix
5633 if test x
$gas = xyes
5635 tmake_file
=mips
/t-mips-gas
5637 tmake_file
=mips
/t-ultrix
5638 extra_passes
="mips-tfile mips-tdump"
5640 if test x
$gnu_ld != xyes
5645 mips-
*-riscos[56789]bsd
*)
5646 tm_file
=mips
/bsd-5.h
# MIPS BSD 4.3, RISC-OS 5.0
5647 if test x
$stabs = xyes
; then
5648 tm_file
="${tm_file} dbx.h"
5650 if test x
$gas = xyes
5652 tmake_file
=mips
/t-bsd-gas
5654 tmake_file
=mips
/t-bsd
5655 extra_passes
="mips-tfile mips-tdump"
5657 if test x
$gnu_ld != xyes
5662 mips-
*-bsd* | mips-
*-riscosbsd* | mips-
*-riscos[1234]bsd
*)
5663 tm_file
="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
5664 if test x
$stabs = xyes
; then
5665 tm_file
="${tm_file} dbx.h"
5667 if test x
$gas = xyes
5669 tmake_file
=mips
/t-bsd-gas
5671 tmake_file
=mips
/t-bsd
5672 extra_passes
="mips-tfile mips-tdump"
5674 if test x
$gnu_ld != xyes
5679 mips-
*-riscos[56789]sysv4
*)
5680 tm_file
=mips
/svr4-5.h
# MIPS System V.4., RISC-OS 5.0
5681 if test x
$stabs = xyes
; then
5682 tm_file
="${tm_file} dbx.h"
5684 xmake_file
=mips
/x-sysv
5685 if test x
$gas = xyes
5687 tmake_file
=mips
/t-svr4-gas
5689 tmake_file
=mips
/t-svr4
5690 extra_passes
="mips-tfile mips-tdump"
5692 if test x
$gnu_ld != xyes
5697 mips-
*-sysv4* | mips-
*-riscos[1234]sysv4
* | mips-
*-riscossysv4*)
5698 tm_file
="mips/svr4-4.h ${tm_file}"
5699 if test x
$stabs = xyes
; then
5700 tm_file
="${tm_file} dbx.h"
5703 xmake_file
=mips
/x-sysv
5704 if test x
$gas = xyes
5706 tmake_file
=mips
/t-svr4-gas
5708 tmake_file
=mips
/t-svr4
5709 extra_passes
="mips-tfile mips-tdump"
5711 if test x
$gnu_ld != xyes
5716 mips-
*-riscos[56789]sysv
*)
5717 tm_file
=mips
/svr3-5.h
# MIPS System V.3, RISC-OS 5.0
5718 if test x
$stabs = xyes
; then
5719 tm_file
="${tm_file} dbx.h"
5722 xmake_file
=mips
/x-sysv
5723 if test x
$gas = xyes
5725 tmake_file
=mips
/t-svr3-gas
5727 tmake_file
=mips
/t-svr3
5728 extra_passes
="mips-tfile mips-tdump"
5730 if test x
$gnu_ld != xyes
5735 mips-
*-sysv* | mips-
*-riscos*sysv
*)
5736 tm_file
="mips/svr3-4.h ${tm_file}"
5737 if test x
$stabs = xyes
; then
5738 tm_file
="${tm_file} dbx.h"
5741 xmake_file
=mips
/x-sysv
5742 if test x
$gas = xyes
5744 tmake_file
=mips
/t-svr3-gas
5746 tmake_file
=mips
/t-svr3
5747 extra_passes
="mips-tfile mips-tdump"
5749 if test x
$gnu_ld != xyes
5754 mips-
*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
5755 tm_file
=mips
/mips-5.h
5756 if test x
$stabs = xyes
; then
5757 tm_file
="${tm_file} dbx.h"
5759 if test x
$gas = xyes
5761 tmake_file
=mips
/t-mips-gas
5763 extra_passes
="mips-tfile mips-tdump"
5765 if test x
$gnu_ld != xyes
5773 tm_file
=mips
/ecoffl.h
5774 if test x
$stabs = xyes
; then
5775 tm_file
="${tm_file} dbx.h"
5777 tmake_file
=mips
/t-ecoff
5780 tm_file
="gofast.h mips/ecoff.h"
5781 if test x
$stabs = xyes
; then
5782 tm_file
="${tm_file} dbx.h"
5784 tmake_file
=mips
/t-ecoff
5787 tm_file
="mips/elfl.h"
5788 tmake_file
=mips
/t-elf
5791 tm_file
="mips/elf.h"
5792 tmake_file
=mips
/t-elf
5795 tm_file
="mips/elfl64.h"
5796 tmake_file
=mips
/t-elf
5798 mips64orionel-
*-elf*)
5799 tm_file
="mips/elforion.h mips/elfl64.h"
5800 tmake_file
=mips
/t-elf
5803 tm_file
="mips/elf64.h"
5804 tmake_file
=mips
/t-elf
5807 tm_file
="mips/elforion.h mips/elf64.h"
5808 tmake_file
=mips
/t-elf
5810 mips64orion-
*-rtems*)
5811 tm_file
="mips/elforion.h mips/elf64.h mips/rtems64.h"
5812 tmake_file
="mips/t-elf t-rtems"
5815 tm_file
="mips/r3900.h mips/elfl.h mips/abi64.h"
5816 tmake_file
=mips
/t-r3900
5819 tm_file
="mips/r3900.h mips/elf.h mips/abi64.h"
5820 tmake_file
=mips
/t-r3900
5822 mips-
*-*) # Default MIPS RISC-OS 4.0.
5823 if test x
$stabs = xyes
; then
5824 tm_file
="${tm_file} dbx.h"
5826 if test x
$gas = xyes
5828 tmake_file
=mips
/t-mips-gas
5830 extra_passes
="mips-tfile mips-tdump"
5832 if test x
$gnu_ld != xyes
5840 tm_file
="mn10200/mn10200.h"
5841 if test x
$stabs = xyes
5843 tm_file
="${tm_file} dbx.h"
5849 tm_file
="mn10300/mn10300.h"
5850 if test x
$stabs = xyes
5852 tm_file
="${tm_file} dbx.h"
5857 tm_file
=ns32k
/encore.h
5861 tm_file
=ns32k
/sequent.h
5865 tm_file
=ns32k
/tek6100.h
5869 tm_file
=ns32k
/tek6200.h
5872 # This has not been updated to GCC 2.
5875 # xmake_file=ns32k/x-genix
5876 # tm_file=ns32k/genix.h
5880 tm_file
=ns32k
/merlin.h
5884 tm_file
=ns32k
/pc532-mach.h
5888 tm_file
=ns32k
/pc532-min.h
5889 xm_file
="ns32k/xm-pc532-min.h ${xm-file}"
5894 tm_file
=ns32k
/netbsd.h
5895 xm_file
="ns32k/xm-netbsd.h ${xm_file}"
5896 # On NetBSD, the headers are already okay, except for math.h.
5901 tm_file
="${tm_file} pdp11/2bsd.h"
5910 # This has not been updated to GCC 2.
5913 # xmake_file=pyr/x-pyr
5918 tm_file
="svr4.h pj/linux.h ${tm_file}"
5923 tm_file
="svr4.h pj/pjl.h ${tm_file}"
5930 xmake_file
=romp
/x-mach
5937 tmake_file
="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
5941 tm_file
=rs6000
/beos.h
5942 xm_file
=rs6000
/xm-beos.h
5943 tmake_file
=rs6000
/t-beos
5944 xmake_file
=rs6000
/x-beos
5947 tm_file
=rs6000
/sysv4.h
5948 xm_file
="rs6000/xm-sysv4.h"
5949 xm_defines
="USG POSIX"
5950 extra_headers
=ppc-asm.h
5951 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
5952 xmake_file
=rs6000
/x-sysv4
5955 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
5956 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5957 extra_headers
=ppc-asm.h
5960 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
5961 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5962 extra_headers
=ppc-asm.h
5965 tm_file
="rs6000/sysv4.h"
5966 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5967 extra_headers
=ppc-asm.h
5970 tm_file
="rs6000/sysv4.h rs6000/eabi.h"
5971 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5972 extra_headers
=ppc-asm.h
5975 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
5976 tmake_file
="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
5977 extra_headers
=ppc-asm.h
5979 powerpc-
*-linux-gnulibc1)
5980 tm_file
="rs6000/sysv4.h rs6000/linux.h"
5981 xm_file
=rs6000
/xm-sysv4.h
5982 out_file
=rs6000
/rs6000.c
5983 tmake_file
="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5985 extra_headers
=ppc-asm.h
5986 if test x
$enable_threads = xyes
; then
5990 powerpc-
*-linux-gnu*)
5991 tm_file
="rs6000/sysv4.h rs6000/linux.h"
5992 xm_file
="rs6000/xm-sysv4.h"
5993 xm_defines
="USG ${xm_defines}"
5994 out_file
=rs6000
/rs6000.c
5995 tmake_file
="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
5997 extra_headers
=ppc-asm.h
5998 if test x
$enable_threads = xyes
; then
6002 powerpc-wrs-vxworks
*)
6004 xm_file
="rs6000/xm-sysv4.h"
6005 xm_defines
="USG POSIX"
6006 tm_file
="rs6000/sysv4.h rs6000/vxppc.h"
6007 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6008 extra_headers
=ppc-asm.h
6009 thread_file
='vxworks'
6011 powerpcle-wrs-vxworks
*)
6013 xm_file
="rs6000/xm-sysv4.h"
6014 xm_defines
="USG POSIX"
6015 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
6016 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6017 extra_headers
=ppc-asm.h
6018 thread_file
='vxworks'
6021 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h"
6022 xm_file
="rs6000/xm-sysv4.h"
6023 xm_defines
="USG POSIX"
6024 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
6025 xmake_file
=rs6000
/x-sysv4
6026 extra_headers
=ppc-asm.h
6029 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h"
6030 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6031 extra_headers
=ppc-asm.h
6033 powerpcle-
*-eabisim*)
6034 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
6035 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6036 extra_headers
=ppc-asm.h
6039 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
6040 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6041 extra_headers
=ppc-asm.h
6043 powerpcle-
*-solaris2*)
6044 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
6045 xm_file
="rs6000/xm-sysv4.h"
6046 xm_defines
="USG POSIX"
6047 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
6048 xmake_file
=rs6000
/x-sysv4
6049 extra_headers
=ppc-asm.h
6051 rs6000-ibm-aix3.
[01]*)
6052 tm_file
=rs6000
/aix31.h
6053 xmake_file
=rs6000
/x-aix31
6057 rs6000-ibm-aix3.2.
[456789]* | powerpc-ibm-aix3.2.
[456789]*)
6058 tm_file
=rs6000
/aix3newas.h
6059 if test x
$host != x
$target
6061 tmake_file
=rs6000
/t-xnewas
6063 tmake_file
=rs6000
/t-newas
6068 rs6000-ibm-aix4.
[12]* | powerpc-ibm-aix4.
[12]*)
6069 tm_file
=rs6000
/aix41.h
6070 if test x
$host != x
$target
6072 tmake_file
=rs6000
/t-xnewas
6074 tmake_file
=rs6000
/t-newas
6076 if test "$gnu_ld" = yes
6078 xmake_file
=rs6000
/x-aix41-gld
6080 tmake_file
="rs6000/t-newas rs6000/t-aix41"
6082 xmake_file
=rs6000
/x-aix41
6086 rs6000-ibm-aix4.
[3456789]* | powerpc-ibm-aix4.
[3456789]*)
6087 tm_file
=rs6000
/aix43.h
6088 tmake_file
=rs6000
/t-aix43
6089 xmake_file
=rs6000
/x-aix41
6093 rs6000-ibm-aix
[56789].
* | powerpc-ibm-aix
[56789].
*)
6094 tm_file
=rs6000
/aix43.h
6095 tmake_file
=rs6000
/t-aix43
6096 xmake_file
=rs6000
/x-aix41
6109 tm_file
=rs6000
/mach.h
6110 xm_file
="${xm_file} rs6000/xm-mach.h"
6111 xmake_file
=rs6000
/x-mach
6115 tm_file
=rs6000
/lynx.h
6116 xm_file
=rs6000
/xm-lynx.h
6117 tmake_file
=rs6000
/t-rs6000
6118 xmake_file
=rs6000
/x-lynx
6126 tmake_file
="sh/t-sh t-rtems"
6127 tm_file
=sh
/rtemself.h
6131 tmake_file
="sh/t-sh t-rtems"
6140 xm_file
="xm-alloca.h ${xm_file}"
6143 sparc-wrs-vxworks
* | sparclite-wrs-vxworks
*)
6144 tm_file
=sparc
/vxsparc.h
6145 tmake_file
=sparc
/t-vxsparc
6147 thread_file
='vxworks'
6150 tmake_file
=sparc
/t-sparcbare
6151 tm_file
="sparc/aout.h libgloss.h"
6154 tm_file
=sparc
/netbsd.h
6159 # we need collect2 until our bug is fixed...
6167 tmake_file
=sparc
/t-elf
6168 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
6172 sparc-
*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
6173 xm_file
="${xm_file} sparc/xm-linux.h"
6174 tm_file
=sparc
/linux-aout.h
6178 sparc-
*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
6179 xm_file
="${xm_file} sparc/xm-linux.h"
6181 tm_file
=sparc
/linux.h
6182 tmake_file
="t-linux t-linux-gnulibc1"
6183 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6187 sparc-
*-linux-gnu*) # Sparc's running GNU/Linux, libc6
6188 xm_file
="${xm_file} sparc/xm-linux.h"
6190 tm_file
=sparc
/linux.h
6191 tmake_file
="t-linux"
6192 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6194 if test x
$enable_threads = xyes
; then
6200 if test x
$gas = xyes
6202 tm_file
=sparc
/lynx.h
6204 tm_file
=sparc
/lynx-ng.h
6206 xm_file
=sparc
/xm-lynx.h
6207 tmake_file
=sparc
/t-sunos41
6211 tmake_file
="sparc/t-sparcbare t-rtems"
6212 tm_file
=sparc
/rtems.h
6214 sparc-
*-rtems*|sparc-
*-rtemself*)
6215 tm_file
="sparc/rtemself.h"
6216 tmake_file
="sparc/t-elf t-rtems"
6217 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
6221 sparcv9-
*-solaris2*)
6222 if test x
$gnu_ld = xyes
6224 tm_file
=sparc
/sol2-64.h
6226 tm_file
=sparc
/sol2-sld-64.h
6228 xm_file
="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
6229 xm_defines
="USG POSIX"
6230 tmake_file
="sparc/t-sol2 sparc/t-sol2-64"
6231 xmake_file
=sparc
/x-sysv4
6232 extra_parts
="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
6234 if test x
${enable_threads} = x
; then
6235 enable_threads
=$have_pthread_h
6236 if test x
${enable_threads} = x
; then
6237 enable_threads
=$have_thread_h
6240 if test x
${enable_threads} = xyes
; then
6241 if test x
${have_pthread_h} = xyes
; then
6244 thread_file
='solaris'
6248 sparc-hal-solaris2
*)
6249 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6250 xm_defines
="USG POSIX"
6251 tm_file
="sparc/sol2.h sparc/hal.h"
6252 tmake_file
="sparc/t-halos sparc/t-sol2"
6253 xmake_file
=sparc
/x-sysv4
6254 extra_parts
="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
6263 thread_file
='solaris'
6266 if test x
$gnu_ld = xyes
6268 tm_file
=sparc
/sol2.h
6270 tm_file
=sparc
/sol2-sld.h
6272 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6273 xm_defines
="USG POSIX"
6274 tmake_file
=sparc
/t-sol2
6275 xmake_file
=sparc
/x-sysv4
6276 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
6278 *-*-solaris2.
[0-6] |
*-*-solaris2.
[0-6].
*) ;;
6280 if test x
$gnu_ld = xyes
6282 tm_file
=sparc
/sol2-64.h
6284 tm_file
=sparc
/sol2-sld-64.h
6286 tmake_file
="$tmake_file sparc/t-sol2-64"
6297 if test x
${enable_threads} = x
; then
6298 enable_threads
=$have_pthread_h
6299 if test x
${enable_threads} = x
; then
6300 enable_threads
=$have_thread_h
6303 if test x
${enable_threads} = xyes
; then
6304 if test x
${have_pthread_h} = xyes
; then
6307 thread_file
='solaris'
6312 tm_file
=sparc
/sunos4.h
6313 tmake_file
=sparc
/t-sunos40
6317 tm_file
=sparc
/sunos4.h
6318 tmake_file
=sparc
/t-sunos41
6320 if test x
$gas = xyes
; then
6321 tm_file
="${tm_file} sparc/sun4gas.h"
6325 tm_file
=sparc
/sun4o3.h
6329 tm_file
=sparc
/sysv4.h
6330 xm_file
="sparc/xm-sysv4.h"
6331 xm_defines
="USG POSIX"
6333 xmake_file
=sparc
/x-sysv4
6334 extra_parts
="crtbegin.o crtend.o"
6337 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6338 xm_defines
="USG POSIX"
6339 tm_file
=sparc
/vxsim.h
6340 tmake_file
=sparc
/t-vxsparc
6341 xmake_file
=sparc
/x-sysv4
6344 tm_file
="sparc/splet.h libgloss.h"
6345 tmake_file
=sparc
/t-splet
6348 tm_file
="sparc/litecoff.h libgloss.h"
6349 tmake_file
=sparc
/t-sparclite
6352 tm_file
="sparc/lite.h aoutos.h libgloss.h"
6353 tmake_file
=sparc
/t-sparclite
6356 tm_file
="sparc/liteelf.h"
6357 tmake_file
=sparc
/t-sparclite
6358 extra_parts
="crtbegin.o crtend.o"
6361 tm_file
="sparc/sp86x-aout.h aoutos.h libgloss.h"
6362 tmake_file
=sparc
/t-sp86x
6365 tm_file
="sparc/sp86x-elf.h"
6366 tmake_file
=sparc
/t-sp86x
6367 extra_parts
="crtbegin.o crtend.o"
6370 tmake_file
=sparc
/t-sp64
6371 tm_file
=sparc
/sp64-aout.h
6374 tmake_file
=sparc
/t-sp64
6375 tm_file
=sparc
/sp64-elf.h
6376 extra_parts
="crtbegin.o crtend.o"
6378 sparc64-
*-linux*) # 64-bit Sparc's running GNU/Linux
6379 tmake_file
="t-linux sparc/t-linux64"
6380 xm_file
="sparc/xm-sp64.h sparc/xm-linux.h"
6381 tm_file
=sparc
/linux64.h
6383 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6385 if test x
$enable_threads = xyes
; then
6390 # This hasn't been upgraded to GCC 2.
6391 # tahoe-harris-*) # Harris tahoe, using COFF.
6392 # tm_file=tahoe/harris.h
6394 # tahoe-*-bsd*) # tahoe running BSD
6398 { echo "configure: error:
6399 *** The Thumb targets have been depreciated. The equivalent
6400 *** ARM based toolchain can now generated Thumb instructions
6401 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
6403 # This hasn't been upgraded to GCC 2.
6410 tm_file
="v850/rtems.h"
6411 xm_file
="v850/xm-v850.h"
6412 tmake_file
="v850/t-v850 t-rtems"
6413 if test x
$stabs = xyes
6415 tm_file
="${tm_file} dbx.h"
6420 target_cpu_default
="TARGET_CPU_generic"
6422 tm_file
="v850/v850.h"
6423 xm_file
="v850/xm-v850.h"
6424 tmake_file
=v850
/t-v850
6425 if test x
$stabs = xyes
6427 tm_file
="${tm_file} dbx.h"
6431 vax-
*-bsd*) # vaxen running BSD
6435 vax-
*-sysv*) # vaxen running system V
6436 tm_file
="${tm_file} vax/vaxv.h"
6441 tm_file
="${tm_file} netbsd.h vax/netbsd.h"
6447 tmake_file
="${tmake_file} vax/t-openbsd"
6449 vax-
*-ultrix*) # vaxen running ultrix
6450 tm_file
="${tm_file} vax/ultrix.h"
6454 vax-
*-vms*) # vaxen running VMS
6455 xm_file
=vax
/xm-vms.h
6459 vax-
*-*) # vax default entry
6463 xm_file
="${xm_file} xm-svr3"
6467 echo "Configuration $machine not supported" 1>&2
6474 ;; # Existing GNU/Linux systems do not use the GNU setup.
6476 # On the GNU system, the setup is just about the same on
6477 # each different CPU. The specific machines that GNU
6478 # supports are matched above and just set $cpu_type.
6479 xm_file
="xm-gnu.h ${xm_file}"
6480 tm_file
=${cpu_type}/gnu.h
6481 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
6482 # GNU always uses ELF.
6484 # GNU tools are the only tools.
6487 xmake_file
=x-linux
# These details are the same as Linux.
6488 tmake_file
=t-gnu
# These are not.
6491 xmake_try_sysv
=x-sysv
6492 install_headers_dir
=install-headers-cpio
6495 install_headers_dir
=install-headers-cpio
6499 # Distinguish i[34567]86
6500 # Also, do not run mips-tfile on MIPS if using gas.
6501 # Process --with-cpu= for PowerPC/rs6000
6502 target_cpu_default2
=
6505 target_cpu_default2
=1
6508 case $target_alias in
6510 target_cpu_default2
=4
6513 target_cpu_default2
=2
6517 i686-
*-* | i786-
*-*)
6518 target_cpu_default2
=3
6523 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
6526 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
6529 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
6532 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX"
6535 target_cpu_default2
="MASK_CPU_EV5"
6539 if test x
$gas = xyes
6541 if test "$target_cpu_default2" = ""
6543 target_cpu_default2
="MASK_GAS"
6545 target_cpu_default2
="${target_cpu_default2}|MASK_GAS"
6550 case "x$with_cpu" in
6553 target_cpu_default2
="TARGET_CPU_generic"
6556 # Distinguish cores, and major variants
6557 # arm7m doesn't exist, but D & I don't affect code
6558 xarm
[23678] | xarm250 | xarm
[67][01]0 \
6559 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
6560 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
6561 | xstrongarm | xstrongarm110 | xstrongarm1100
)
6562 target_cpu_default2
="TARGET_CPU_$with_cpu"
6566 echo "--with-cpu must be passed a value" 1>&2
6571 if test x
$pass2done = xyes
6573 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6580 mips
*-*-ecoff* | mips
*-*-elf*)
6581 if test x
$gas = xyes
6583 if test x
$gnu_ld = xyes
6585 target_cpu_default2
="MASK_GAS|MASK_SPLIT_ADDR"
6587 target_cpu_default2
="MASK_GAS"
6592 if test x
$gas = xyes
6594 target_cpu_default2
="MASK_GAS"
6597 powerpc
*-*-* | rs6000-
*-*)
6598 case "x$with_cpu" in
6602 xcommon | xpower | xpower2 | xpowerpc | xrios \
6603 | xrios1 | xrios2 | xrsc | xrsc1 \
6604 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
6605 | xec603e | x740 | x750 | x401 \
6606 | x403 | x505 | x801 | x821 | x823 | x860
)
6607 target_cpu_default2
="\"$with_cpu\""
6611 echo "--with-cpu must be passed a value" 1>&2
6616 if test x
$pass2done = xyes
6618 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6625 case ".$with_cpu" in
6627 target_cpu_default2
=TARGET_CPU_
"`echo $machine | sed 's/-.*$//'`"
6629 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9
)
6630 target_cpu_default2
="TARGET_CPU_$with_cpu"
6633 if test x
$pass2done = xyes
6635 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6643 if test "$target_cpu_default2" != ""
6645 if test "$target_cpu_default" != ""
6647 target_cpu_default
="(${target_cpu_default}|${target_cpu_default2})"
6649 target_cpu_default
=$target_cpu_default2
6653 # No need for collect2 if we have the GNU linker.
6654 # Actually, there is now; GNU ld doesn't handle the EH info or
6655 # collecting for shared libraries.
6662 # Save data on machine being used to compile GCC in build_xm_file.
6663 # Save data on host machine in vars host_xm_file and host_xmake_file.
6664 if test x
$pass1done = x
6666 if test x
"$xm_file" = x
6667 then build_xm_file
=$cpu_type/xm-
$cpu_type.h
6668 else build_xm_file
=$xm_file
6670 build_xm_defines
=$xm_defines
6671 build_install_headers_dir
=$install_headers_dir
6672 build_exeext
=$exeext
6675 if test x
$pass2done = x
6677 if test x
"$xm_file" = x
6678 then host_xm_file
=$cpu_type/xm-
$cpu_type.h
6679 else host_xm_file
=$xm_file
6681 host_xm_defines
=$xm_defines
6682 if test x
"$xmake_file" = x
6683 then xmake_file
=$cpu_type/x-
$cpu_type
6685 host_xmake_file
="$xmake_file"
6686 host_truncate_target
=$truncate_target
6687 host_extra_gcc_objs
=$extra_gcc_objs
6688 host_extra_objs
=$extra_host_objs
6695 extra_objs
="${host_extra_objs} ${extra_objs}"
6697 # Default the target-machine variables that were not explicitly set.
6698 if test x
"$tm_file" = x
6699 then tm_file
=$cpu_type/$cpu_type.h
; fi
6701 if test x
$extra_headers = x
6702 then extra_headers
=; fi
6704 if test x
"$xm_file" = x
6705 then xm_file
=$cpu_type/xm-
$cpu_type.h
; fi
6707 if test x
$md_file = x
6708 then md_file
=$cpu_type/$cpu_type.md
; fi
6710 if test x
$out_file = x
6711 then out_file
=$cpu_type/$cpu_type.c
; fi
6713 if test x
"$tmake_file" = x
6714 then tmake_file
=$cpu_type/t-
$cpu_type
6717 if test x
"$dwarf2" = xyes
6718 then tm_file
="$tm_file tm-dwarf2.h"
6721 if test x
$float_format = x
6722 then float_format
=i64
6725 if test $float_format = none
6726 then float_h_file
=Makefile.
in
6727 else float_h_file
=float-
$float_format.h
6730 # Handle cpp installation.
6731 if test x
$enable_cpp != xno
6733 tmake_file
="$tmake_file t-install-cpp"
6736 # Say what files are being used for the output code and MD file.
6737 echo "Using \`$srcdir/config/$out_file' to output insns."
6738 echo "Using \`$srcdir/config/$md_file' as machine description file."
6741 for f
in $tm_file; do
6744 if test $count = ax
; then
6745 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
6747 echo "Using the following target machine macro files:"
6748 for f
in $tm_file; do
6749 echo " $srcdir/config/$f"
6754 for f
in $host_xm_file; do
6757 if test $count = ax
; then
6758 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
6760 echo "Using the following host machine macro files:"
6761 for f
in $host_xm_file; do
6762 echo " $srcdir/config/$f"
6766 if test "$host_xm_file" != "$build_xm_file"; then
6768 for f
in $build_xm_file; do
6771 if test $count = ax
; then
6772 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
6774 echo "Using the following build machine macro files:"
6775 for f
in $build_xm_file; do
6776 echo " $srcdir/config/$f"
6781 if test x
$thread_file = x
; then
6782 if test x
$target_thread_file != x
; then
6783 thread_file
=$target_thread_file
6785 thread_file
='single'
6789 # Set up the header files.
6790 # $links is the list of header files to create.
6791 # $vars is the list of shell variables with file names to include.
6792 # auto-host.h is the file containing items generated by autoconf and is
6793 # the first file included by config.h.
6795 host_xm_file
="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
6797 # If host=build, it is correct to have hconfig include auto-host.h
6798 # as well. If host!=build, we are in error and need to do more
6799 # work to find out the build config parameters.
6800 if test x
$host = x
$build
6802 build_xm_file
="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
6804 # We create a subdir, then run autoconf in the subdir.
6805 # To prevent recursion we set host and build for the new
6806 # invocation of configure to the build for this invocation
6813 /*) realsrcdir
=${srcdir};;
6814 *) realsrcdir
=..
/${srcdir};;
6816 CC
=${CC_FOR_BUILD} ${realsrcdir}/configure \
6817 --target=$target --host=$build --build=$build
6819 # We just finished tests for the build machine, so rename
6820 # the file auto-build.h in the gcc directory.
6821 mv auto-host.h ..
/auto-build.h
6824 build_xm_file
="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
6827 xm_file
="gansidecl.h ${xm_file}"
6828 tm_file
="gansidecl.h ${tm_file}"
6830 vars
="host_xm_file tm_file tm_p_file xm_file build_xm_file"
6831 links
="config.h tm.h tm_p.h tconfig.h hconfig.h"
6832 defines
="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
6835 if test -f config.status
; then mv -f config.status config.bak
; fi
6838 while test -n "$vars"
6840 set $vars; var
=$1; shift; vars
=$
*
6841 set $links; link
=$1; shift; links
=$
*
6842 set $defines; define
=$1; shift; defines
=$
*
6845 # Make sure the file is created, even if it is empty.
6848 # Define TARGET_CPU_DEFAULT if the system wants one.
6849 # This substitutes for lots of *.h files.
6850 if test "$target_cpu_default" != "" -a $link = tm.h
6852 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
6855 for file in `eval echo '$'$var`; do
6857 auto-host.h | auto-build.h
)
6860 echo '#ifdef IN_GCC' >>$link
6863 echo "#include \"$file\"" >>$link
6865 auto-host.h | auto-build.h
)
6868 echo '#endif' >>$link
6873 for def
in `eval echo '$'$define`; do
6874 echo "#ifndef $def" >>$link
6875 echo "#define $def" >>$link
6876 echo "#endif" >>$link
6880 # Truncate the target if necessary
6881 if test x
$host_truncate_target != x
; then
6882 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
6885 # Get the version trigger filename from the toplevel
6886 if test "${with_gcc_version_trigger+set}" = set; then
6887 gcc_version_trigger
=$with_gcc_version_trigger
6889 gcc_version_trigger
=${srcdir}/version.c
6891 gcc_version
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
6893 # Internationalization
6895 VERSION
="$gcc_version"
6896 cat >> confdefs.h
<<EOF
6897 #define PACKAGE "$PACKAGE"
6900 cat >> confdefs.h
<<EOF
6901 #define VERSION "$VERSION"
6909 # Enable NLS support by default
6910 # Check whether --enable-nls or --disable-nls was given.
6911 if test "${enable_nls+set}" = set; then
6912 enableval
="$enable_nls"
6919 # if cross compiling, disable NLS support.
6920 # It's not worth the trouble, at least for now.
6922 if test "${build}" != "${host}" && test "x$enable_nls" == "xyes"; then
6923 echo "configure: warning: Disabling NLS support for canadian cross compiler." 1>&2
6928 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
6929 echo "configure:6930: checking for strerror in -lcposix" >&5
6930 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
6931 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6932 echo $ac_n "(cached) $ac_c" 1>&6
6934 ac_save_LIBS
="$LIBS"
6935 LIBS
="-lcposix $LIBS"
6936 cat > conftest.
$ac_ext <<EOF
6937 #line 6938 "configure"
6938 #include "confdefs.h"
6939 /* Override any gcc2 internal prototype to avoid an error. */
6940 /* We use char because int might match the return type of a gcc2
6941 builtin and then its argument prototype would still apply. */
6948 if { (eval echo configure
:6949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6950 eval "ac_cv_lib_$ac_lib_var=yes"
6952 echo "configure: failed program was:" >&5
6953 cat conftest.
$ac_ext >&5
6955 eval "ac_cv_lib_$ac_lib_var=no"
6958 LIBS
="$ac_save_LIBS"
6961 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6962 echo "$ac_t""yes" 1>&6
6963 LIBS
="$LIBS -lcposix"
6965 echo "$ac_t""no" 1>&6
6970 echo $ac_n "checking for working const""... $ac_c" 1>&6
6971 echo "configure:6972: checking for working const" >&5
6972 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6973 echo $ac_n "(cached) $ac_c" 1>&6
6975 cat > conftest.
$ac_ext <<EOF
6976 #line 6977 "configure"
6977 #include "confdefs.h"
6981 /* Ultrix mips cc rejects this. */
6982 typedef int charset[2]; const charset x;
6983 /* SunOS 4.1.1 cc rejects this. */
6984 char const *const *ccp;
6986 /* NEC SVR4.0.2 mips cc rejects this. */
6987 struct point {int x, y;};
6988 static struct point const zero = {0,0};
6989 /* AIX XL C 1.02.0.0 rejects this.
6990 It does not let you subtract one const X* pointer from another in an arm
6991 of an if-expression whose if-part is not a constant expression */
6992 const char *g = "string";
6993 ccp = &g + (g ? g-g : 0);
6994 /* HPUX 7.0 cc rejects these. */
6997 ccp = (char const *const *) p;
6998 { /* SCO 3.2v4 cc rejects this. */
7000 char const *s = 0 ? (char *) 0 : (char const *) 0;
7004 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7006 const int *foo = &x[0];
7009 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7010 typedef const int *iptr;
7014 { /* AIX XL C 1.02.0.0 rejects this saying
7015 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7016 struct s { int j; const int *ap[3]; };
7017 struct s *b; b->j = 5;
7019 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7025 if { (eval echo configure
:7026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7029 echo "configure: failed program was:" >&5
7030 cat conftest.
$ac_ext >&5
7037 echo "$ac_t""$ac_cv_c_const" 1>&6
7038 if test $ac_cv_c_const = no
; then
7039 cat >> confdefs.h
<<\EOF
7045 echo $ac_n "checking for off_t""... $ac_c" 1>&6
7046 echo "configure:7047: checking for off_t" >&5
7047 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
7048 echo $ac_n "(cached) $ac_c" 1>&6
7050 cat > conftest.
$ac_ext <<EOF
7051 #line 7052 "configure"
7052 #include "confdefs.h"
7053 #include <sys/types.h>
7059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7060 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
7062 ac_cv_type_off_t
=yes
7070 echo "$ac_t""$ac_cv_type_off_t" 1>&6
7071 if test $ac_cv_type_off_t = no
; then
7072 cat >> confdefs.h
<<\EOF
7078 echo $ac_n "checking for size_t""... $ac_c" 1>&6
7079 echo "configure:7080: checking for size_t" >&5
7080 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
7081 echo $ac_n "(cached) $ac_c" 1>&6
7083 cat > conftest.
$ac_ext <<EOF
7084 #line 7085 "configure"
7085 #include "confdefs.h"
7086 #include <sys/types.h>
7092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7093 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
7095 ac_cv_type_size_t
=yes
7098 ac_cv_type_size_t
=no
7103 echo "$ac_t""$ac_cv_type_size_t" 1>&6
7104 if test $ac_cv_type_size_t = no
; then
7105 cat >> confdefs.h
<<\EOF
7106 #define size_t unsigned
7111 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7112 # for constant arguments. Useless!
7113 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
7114 echo "configure:7115: checking for working alloca.h" >&5
7115 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
7116 echo $ac_n "(cached) $ac_c" 1>&6
7118 cat > conftest.
$ac_ext <<EOF
7119 #line 7120 "configure"
7120 #include "confdefs.h"
7123 char *p = alloca(2 * sizeof(int));
7126 if { (eval echo configure
:7127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7128 ac_cv_header_alloca_h
=yes
7130 echo "configure: failed program was:" >&5
7131 cat conftest.
$ac_ext >&5
7133 ac_cv_header_alloca_h
=no
7138 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
7139 if test $ac_cv_header_alloca_h = yes; then
7140 cat >> confdefs.h
<<\EOF
7141 #define HAVE_ALLOCA_H 1
7146 echo $ac_n "checking for alloca""... $ac_c" 1>&6
7147 echo "configure:7148: checking for alloca" >&5
7148 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
7149 echo $ac_n "(cached) $ac_c" 1>&6
7151 cat > conftest.
$ac_ext <<EOF
7152 #line 7153 "configure"
7153 #include "confdefs.h"
7156 # define alloca __builtin_alloca
7159 # include <malloc.h>
7160 # define alloca _alloca
7163 # include <alloca.h>
7168 # ifndef alloca /* predefined by HP cc +Olibcalls */
7177 char *p = (char *) alloca(1);
7180 if { (eval echo configure
:7181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7182 ac_cv_func_alloca_works
=yes
7184 echo "configure: failed program was:" >&5
7185 cat conftest.
$ac_ext >&5
7187 ac_cv_func_alloca_works
=no
7192 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
7193 if test $ac_cv_func_alloca_works = yes; then
7194 cat >> confdefs.h
<<\EOF
7195 #define HAVE_ALLOCA 1
7200 if test $ac_cv_func_alloca_works = no
; then
7201 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7202 # that cause trouble. Some versions do not even contain alloca or
7203 # contain a buggy version. If you still want to use their alloca,
7204 # use ar to extract alloca.o from them instead of compiling alloca.c.
7205 ALLOCA
=alloca.
${ac_objext}
7206 cat >> confdefs.h
<<\EOF
7211 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
7212 echo "configure:7213: checking whether alloca needs Cray hooks" >&5
7213 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
7214 echo $ac_n "(cached) $ac_c" 1>&6
7216 cat > conftest.
$ac_ext <<EOF
7217 #line 7218 "configure"
7218 #include "confdefs.h"
7219 #if defined(CRAY) && ! defined(CRAY2)
7226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7227 egrep "webecray" >/dev
/null
2>&1; then
7238 echo "$ac_t""$ac_cv_os_cray" 1>&6
7239 if test $ac_cv_os_cray = yes; then
7240 for ac_func
in _getb67 GETB67 getb67
; do
7241 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7242 echo "configure:7243: checking for $ac_func" >&5
7243 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7244 echo $ac_n "(cached) $ac_c" 1>&6
7246 cat > conftest.
$ac_ext <<EOF
7247 #line 7248 "configure"
7248 #include "confdefs.h"
7249 /* System header to define __stub macros and hopefully few prototypes,
7250 which can conflict with char $ac_func(); below. */
7252 /* Override any gcc2 internal prototype to avoid an error. */
7253 /* We use char because int might match the return type of a gcc2
7254 builtin and then its argument prototype would still apply. */
7259 /* The GNU C library defines this for functions which it implements
7260 to always fail with ENOSYS. Some functions are actually named
7261 something starting with __ and the normal name is an alias. */
7262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7270 if { (eval echo configure
:7271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7272 eval "ac_cv_func_$ac_func=yes"
7274 echo "configure: failed program was:" >&5
7275 cat conftest.
$ac_ext >&5
7277 eval "ac_cv_func_$ac_func=no"
7282 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7283 echo "$ac_t""yes" 1>&6
7284 cat >> confdefs.h
<<EOF
7285 #define CRAY_STACKSEG_END $ac_func
7290 echo "$ac_t""no" 1>&6
7296 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7297 echo "configure:7298: checking stack direction for C alloca" >&5
7298 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
7299 echo $ac_n "(cached) $ac_c" 1>&6
7301 if test "$cross_compiling" = yes; then
7302 ac_cv_c_stack_direction
=0
7304 cat > conftest.
$ac_ext <<EOF
7305 #line 7306 "configure"
7306 #include "confdefs.h"
7307 find_stack_direction ()
7309 static char *addr = 0;
7314 return find_stack_direction ();
7317 return (&dummy > addr) ? 1 : -1;
7321 exit (find_stack_direction() < 0);
7324 if { (eval echo configure
:7325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7326 ac_cv_c_stack_direction
=1
7328 echo "configure: failed program was:" >&5
7329 cat conftest.
$ac_ext >&5
7331 ac_cv_c_stack_direction
=-1
7338 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
7339 cat >> confdefs.h
<<EOF
7340 #define STACK_DIRECTION $ac_cv_c_stack_direction
7346 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7347 unistd.h sys
/param.h
7349 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7350 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7351 echo "configure:7352: checking for $ac_hdr" >&5
7352 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7353 echo $ac_n "(cached) $ac_c" 1>&6
7355 cat > conftest.
$ac_ext <<EOF
7356 #line 7357 "configure"
7357 #include "confdefs.h"
7360 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7361 { (eval echo configure
:7362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7362 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7363 if test -z "$ac_err"; then
7365 eval "ac_cv_header_$ac_safe=yes"
7368 echo "configure: failed program was:" >&5
7369 cat conftest.
$ac_ext >&5
7371 eval "ac_cv_header_$ac_safe=no"
7375 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7376 echo "$ac_t""yes" 1>&6
7377 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7378 cat >> confdefs.h
<<EOF
7379 #define $ac_tr_hdr 1
7383 echo "$ac_t""no" 1>&6
7387 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7388 strdup __argz_count __argz_stringify __argz_next
7390 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7391 echo "configure:7392: checking for $ac_func" >&5
7392 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7393 echo $ac_n "(cached) $ac_c" 1>&6
7395 cat > conftest.
$ac_ext <<EOF
7396 #line 7397 "configure"
7397 #include "confdefs.h"
7398 /* System header to define __stub macros and hopefully few prototypes,
7399 which can conflict with char $ac_func(); below. */
7401 /* Override any gcc2 internal prototype to avoid an error. */
7402 /* We use char because int might match the return type of a gcc2
7403 builtin and then its argument prototype would still apply. */
7408 /* The GNU C library defines this for functions which it implements
7409 to always fail with ENOSYS. Some functions are actually named
7410 something starting with __ and the normal name is an alias. */
7411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7419 if { (eval echo configure
:7420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7421 eval "ac_cv_func_$ac_func=yes"
7423 echo "configure: failed program was:" >&5
7424 cat conftest.
$ac_ext >&5
7426 eval "ac_cv_func_$ac_func=no"
7431 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7432 echo "$ac_t""yes" 1>&6
7433 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7434 cat >> confdefs.h
<<EOF
7435 #define $ac_tr_func 1
7439 echo "$ac_t""no" 1>&6
7444 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7445 for ac_func
in stpcpy
7447 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7448 echo "configure:7449: checking for $ac_func" >&5
7449 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7450 echo $ac_n "(cached) $ac_c" 1>&6
7452 cat > conftest.
$ac_ext <<EOF
7453 #line 7454 "configure"
7454 #include "confdefs.h"
7455 /* System header to define __stub macros and hopefully few prototypes,
7456 which can conflict with char $ac_func(); below. */
7458 /* Override any gcc2 internal prototype to avoid an error. */
7459 /* We use char because int might match the return type of a gcc2
7460 builtin and then its argument prototype would still apply. */
7465 /* The GNU C library defines this for functions which it implements
7466 to always fail with ENOSYS. Some functions are actually named
7467 something starting with __ and the normal name is an alias. */
7468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7476 if { (eval echo configure
:7477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7478 eval "ac_cv_func_$ac_func=yes"
7480 echo "configure: failed program was:" >&5
7481 cat conftest.
$ac_ext >&5
7483 eval "ac_cv_func_$ac_func=no"
7488 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7489 echo "$ac_t""yes" 1>&6
7490 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7491 cat >> confdefs.h
<<EOF
7492 #define $ac_tr_func 1
7496 echo "$ac_t""no" 1>&6
7501 if test "${ac_cv_func_stpcpy}" = "yes"; then
7502 cat >> confdefs.h
<<\EOF
7503 #define HAVE_STPCPY 1
7508 if test $ac_cv_header_locale_h = yes; then
7509 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
7510 echo "configure:7511: checking for LC_MESSAGES" >&5
7511 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
7512 echo $ac_n "(cached) $ac_c" 1>&6
7514 cat > conftest.
$ac_ext <<EOF
7515 #line 7516 "configure"
7516 #include "confdefs.h"
7522 if { (eval echo configure
:7523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7524 am_cv_val_LC_MESSAGES
=yes
7526 echo "configure: failed program was:" >&5
7527 cat conftest.
$ac_ext >&5
7529 am_cv_val_LC_MESSAGES
=no
7534 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7535 if test $am_cv_val_LC_MESSAGES = yes; then
7536 cat >> confdefs.h
<<\EOF
7537 #define HAVE_LC_MESSAGES 1
7542 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7543 echo "configure:7544: checking whether NLS is requested" >&5
7544 # Check whether --enable-nls or --disable-nls was given.
7545 if test "${enable_nls+set}" = set; then
7546 enableval
="$enable_nls"
7552 echo "$ac_t""$USE_NLS" 1>&6
7555 USE_INCLUDED_LIBINTL
=no
7557 if test "$USE_NLS" = "yes"; then
7558 cat >> confdefs.h
<<\EOF
7559 #define ENABLE_NLS 1
7562 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7563 echo "configure:7564: checking whether included gettext is requested" >&5
7564 # Check whether --with-included-gettext or --without-included-gettext was given.
7565 if test "${with_included_gettext+set}" = set; then
7566 withval
="$with_included_gettext"
7567 nls_cv_force_use_gnu_gettext
=$withval
7569 nls_cv_force_use_gnu_gettext
=yes
7572 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7574 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
7575 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7577 nls_cv_header_libgt
=
7580 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7581 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7582 echo "configure:7583: checking for libintl.h" >&5
7583 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7584 echo $ac_n "(cached) $ac_c" 1>&6
7586 cat > conftest.
$ac_ext <<EOF
7587 #line 7588 "configure"
7588 #include "confdefs.h"
7589 #include <libintl.h>
7591 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7592 { (eval echo configure
:7593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7593 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7594 if test -z "$ac_err"; then
7596 eval "ac_cv_header_$ac_safe=yes"
7599 echo "configure: failed program was:" >&5
7600 cat conftest.
$ac_ext >&5
7602 eval "ac_cv_header_$ac_safe=no"
7606 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7607 echo "$ac_t""yes" 1>&6
7608 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7609 echo "configure:7610: checking for gettext in libc" >&5
7610 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7611 echo $ac_n "(cached) $ac_c" 1>&6
7613 cat > conftest.
$ac_ext <<EOF
7614 #line 7615 "configure"
7615 #include "confdefs.h"
7616 #include <libintl.h>
7618 return (int) gettext ("")
7621 if { (eval echo configure
:7622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7623 gt_cv_func_gettext_libc
=yes
7625 echo "configure: failed program was:" >&5
7626 cat conftest.
$ac_ext >&5
7628 gt_cv_func_gettext_libc
=no
7633 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7635 if test "$gt_cv_func_gettext_libc" != "yes"; then
7636 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7637 echo "configure:7638: checking for bindtextdomain in -lintl" >&5
7638 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7639 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7640 echo $ac_n "(cached) $ac_c" 1>&6
7642 ac_save_LIBS
="$LIBS"
7644 cat > conftest.
$ac_ext <<EOF
7645 #line 7646 "configure"
7646 #include "confdefs.h"
7647 /* Override any gcc2 internal prototype to avoid an error. */
7648 /* We use char because int might match the return type of a gcc2
7649 builtin and then its argument prototype would still apply. */
7650 char bindtextdomain();
7656 if { (eval echo configure
:7657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7658 eval "ac_cv_lib_$ac_lib_var=yes"
7660 echo "configure: failed program was:" >&5
7661 cat conftest.
$ac_ext >&5
7663 eval "ac_cv_lib_$ac_lib_var=no"
7666 LIBS
="$ac_save_LIBS"
7669 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7670 echo "$ac_t""yes" 1>&6
7671 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7672 echo "configure:7673: checking for gettext in libintl" >&5
7673 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7674 echo $ac_n "(cached) $ac_c" 1>&6
7676 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7677 echo "configure:7678: checking for gettext in -lintl" >&5
7678 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7679 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7680 echo $ac_n "(cached) $ac_c" 1>&6
7682 ac_save_LIBS
="$LIBS"
7684 cat > conftest.
$ac_ext <<EOF
7685 #line 7686 "configure"
7686 #include "confdefs.h"
7687 /* Override any gcc2 internal prototype to avoid an error. */
7688 /* We use char because int might match the return type of a gcc2
7689 builtin and then its argument prototype would still apply. */
7696 if { (eval echo configure
:7697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7698 eval "ac_cv_lib_$ac_lib_var=yes"
7700 echo "configure: failed program was:" >&5
7701 cat conftest.
$ac_ext >&5
7703 eval "ac_cv_lib_$ac_lib_var=no"
7706 LIBS
="$ac_save_LIBS"
7709 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7710 echo "$ac_t""yes" 1>&6
7711 gt_cv_func_gettext_libintl
=yes
7713 echo "$ac_t""no" 1>&6
7714 gt_cv_func_gettext_libintl
=no
7719 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7721 echo "$ac_t""no" 1>&6
7726 if test "$gt_cv_func_gettext_libc" = "yes" \
7727 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
7728 cat >> confdefs.h
<<\EOF
7729 #define HAVE_GETTEXT 1
7732 # Extract the first word of "msgfmt", so it can be a program name with args.
7733 set dummy msgfmt
; ac_word
=$2
7734 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7735 echo "configure:7736: checking for $ac_word" >&5
7736 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7737 echo $ac_n "(cached) $ac_c" 1>&6
7741 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
7744 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7745 for ac_dir
in $PATH; do
7746 test -z "$ac_dir" && ac_dir
=.
7747 if test -f $ac_dir/$ac_word; then
7748 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7749 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
7755 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
7759 MSGFMT
="$ac_cv_path_MSGFMT"
7760 if test -n "$MSGFMT"; then
7761 echo "$ac_t""$MSGFMT" 1>&6
7763 echo "$ac_t""no" 1>&6
7765 if test "$MSGFMT" != "no"; then
7766 for ac_func
in dcgettext
7768 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7769 echo "configure:7770: checking for $ac_func" >&5
7770 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7771 echo $ac_n "(cached) $ac_c" 1>&6
7773 cat > conftest.
$ac_ext <<EOF
7774 #line 7775 "configure"
7775 #include "confdefs.h"
7776 /* System header to define __stub macros and hopefully few prototypes,
7777 which can conflict with char $ac_func(); below. */
7779 /* Override any gcc2 internal prototype to avoid an error. */
7780 /* We use char because int might match the return type of a gcc2
7781 builtin and then its argument prototype would still apply. */
7786 /* The GNU C library defines this for functions which it implements
7787 to always fail with ENOSYS. Some functions are actually named
7788 something starting with __ and the normal name is an alias. */
7789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7797 if { (eval echo configure
:7798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7799 eval "ac_cv_func_$ac_func=yes"
7801 echo "configure: failed program was:" >&5
7802 cat conftest.
$ac_ext >&5
7804 eval "ac_cv_func_$ac_func=no"
7809 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7810 echo "$ac_t""yes" 1>&6
7811 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7812 cat >> confdefs.h
<<EOF
7813 #define $ac_tr_func 1
7817 echo "$ac_t""no" 1>&6
7821 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7822 set dummy gmsgfmt
; ac_word
=$2
7823 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7824 echo "configure:7825: checking for $ac_word" >&5
7825 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7826 echo $ac_n "(cached) $ac_c" 1>&6
7830 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7833 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
7836 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7838 for ac_dir
in $ac_dummy; do
7839 test -z "$ac_dir" && ac_dir
=.
7840 if test -f $ac_dir/$ac_word; then
7841 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
7846 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
7850 GMSGFMT
="$ac_cv_path_GMSGFMT"
7851 if test -n "$GMSGFMT"; then
7852 echo "$ac_t""$GMSGFMT" 1>&6
7854 echo "$ac_t""no" 1>&6
7857 # Extract the first word of "xgettext", so it can be a program name with args.
7858 set dummy xgettext
; ac_word
=$2
7859 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7860 echo "configure:7861: checking for $ac_word" >&5
7861 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7862 echo $ac_n "(cached) $ac_c" 1>&6
7866 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
7869 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7870 for ac_dir
in $PATH; do
7871 test -z "$ac_dir" && ac_dir
=.
7872 if test -f $ac_dir/$ac_word; then
7873 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7874 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
7880 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
7884 XGETTEXT
="$ac_cv_path_XGETTEXT"
7885 if test -n "$XGETTEXT"; then
7886 echo "$ac_t""$XGETTEXT" 1>&6
7888 echo "$ac_t""no" 1>&6
7891 cat > conftest.
$ac_ext <<EOF
7892 #line 7893 "configure"
7893 #include "confdefs.h"
7896 extern int _nl_msg_cat_cntr;
7897 return _nl_msg_cat_cntr
7900 if { (eval echo configure
:7901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7905 echo "configure: failed program was:" >&5
7906 cat conftest.
$ac_ext >&5
7917 echo "$ac_t""no" 1>&6
7921 if test "$CATOBJEXT" = "NONE"; then
7922 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
7923 echo "configure:7924: checking whether catgets can be used" >&5
7924 # Check whether --with-catgets or --without-catgets was given.
7925 if test "${with_catgets+set}" = set; then
7926 withval
="$with_catgets"
7927 nls_cv_use_catgets
=$withval
7929 nls_cv_use_catgets
=no
7932 echo "$ac_t""$nls_cv_use_catgets" 1>&6
7934 if test "$nls_cv_use_catgets" = "yes"; then
7935 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
7936 echo "configure:7937: checking for main in -li" >&5
7937 ac_lib_var
=`echo i'_'main | sed 'y%./+-%__p_%'`
7938 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7939 echo $ac_n "(cached) $ac_c" 1>&6
7941 ac_save_LIBS
="$LIBS"
7943 cat > conftest.
$ac_ext <<EOF
7944 #line 7945 "configure"
7945 #include "confdefs.h"
7951 if { (eval echo configure
:7952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7953 eval "ac_cv_lib_$ac_lib_var=yes"
7955 echo "configure: failed program was:" >&5
7956 cat conftest.
$ac_ext >&5
7958 eval "ac_cv_lib_$ac_lib_var=no"
7961 LIBS
="$ac_save_LIBS"
7964 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7965 echo "$ac_t""yes" 1>&6
7966 ac_tr_lib
=HAVE_LIB
`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7967 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7968 cat >> confdefs.h
<<EOF
7969 #define $ac_tr_lib 1
7975 echo "$ac_t""no" 1>&6
7978 echo $ac_n "checking for catgets""... $ac_c" 1>&6
7979 echo "configure:7980: checking for catgets" >&5
7980 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
7981 echo $ac_n "(cached) $ac_c" 1>&6
7983 cat > conftest.
$ac_ext <<EOF
7984 #line 7985 "configure"
7985 #include "confdefs.h"
7986 /* System header to define __stub macros and hopefully few prototypes,
7987 which can conflict with char catgets(); below. */
7989 /* Override any gcc2 internal prototype to avoid an error. */
7990 /* We use char because int might match the return type of a gcc2
7991 builtin and then its argument prototype would still apply. */
7996 /* The GNU C library defines this for functions which it implements
7997 to always fail with ENOSYS. Some functions are actually named
7998 something starting with __ and the normal name is an alias. */
7999 #if defined (__stub_catgets) || defined (__stub___catgets)
8007 if { (eval echo configure
:8008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8009 eval "ac_cv_func_catgets=yes"
8011 echo "configure: failed program was:" >&5
8012 cat conftest.
$ac_ext >&5
8014 eval "ac_cv_func_catgets=no"
8019 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
8020 echo "$ac_t""yes" 1>&6
8021 cat >> confdefs.h
<<\EOF
8022 #define HAVE_CATGETS 1
8025 INTLOBJS
="\$(CATOBJS)"
8026 # Extract the first word of "gencat", so it can be a program name with args.
8027 set dummy gencat
; ac_word
=$2
8028 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8029 echo "configure:8030: checking for $ac_word" >&5
8030 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
8031 echo $ac_n "(cached) $ac_c" 1>&6
8035 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a path.
8038 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a dos path.
8041 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8043 for ac_dir
in $ac_dummy; do
8044 test -z "$ac_dir" && ac_dir
=.
8045 if test -f $ac_dir/$ac_word; then
8046 ac_cv_path_GENCAT
="$ac_dir/$ac_word"
8051 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT
="no"
8055 GENCAT
="$ac_cv_path_GENCAT"
8056 if test -n "$GENCAT"; then
8057 echo "$ac_t""$GENCAT" 1>&6
8059 echo "$ac_t""no" 1>&6
8061 if test "$GENCAT" != "no"; then
8062 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8063 set dummy gmsgfmt
; ac_word
=$2
8064 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8065 echo "configure:8066: checking for $ac_word" >&5
8066 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8067 echo $ac_n "(cached) $ac_c" 1>&6
8071 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8074 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8077 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8079 for ac_dir
in $ac_dummy; do
8080 test -z "$ac_dir" && ac_dir
=.
8081 if test -f $ac_dir/$ac_word; then
8082 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8087 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
8091 GMSGFMT
="$ac_cv_path_GMSGFMT"
8092 if test -n "$GMSGFMT"; then
8093 echo "$ac_t""$GMSGFMT" 1>&6
8095 echo "$ac_t""no" 1>&6
8098 if test "$GMSGFMT" = "no"; then
8099 # Extract the first word of "msgfmt", so it can be a program name with args.
8100 set dummy msgfmt
; ac_word
=$2
8101 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8102 echo "configure:8103: checking for $ac_word" >&5
8103 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8104 echo $ac_n "(cached) $ac_c" 1>&6
8108 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8111 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8112 for ac_dir
in $PATH; do
8113 test -z "$ac_dir" && ac_dir
=.
8114 if test -f $ac_dir/$ac_word; then
8115 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8116 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8122 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
8126 GMSGFMT
="$ac_cv_path_GMSGFMT"
8127 if test -n "$GMSGFMT"; then
8128 echo "$ac_t""$GMSGFMT" 1>&6
8130 echo "$ac_t""no" 1>&6
8134 # Extract the first word of "xgettext", so it can be a program name with args.
8135 set dummy xgettext
; ac_word
=$2
8136 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8137 echo "configure:8138: checking for $ac_word" >&5
8138 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8139 echo $ac_n "(cached) $ac_c" 1>&6
8143 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8146 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8147 for ac_dir
in $PATH; do
8148 test -z "$ac_dir" && ac_dir
=.
8149 if test -f $ac_dir/$ac_word; then
8150 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8151 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8157 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8161 XGETTEXT
="$ac_cv_path_XGETTEXT"
8162 if test -n "$XGETTEXT"; then
8163 echo "$ac_t""$XGETTEXT" 1>&6
8165 echo "$ac_t""no" 1>&6
8168 USE_INCLUDED_LIBINTL
=yes
8172 INTLDEPS
='$(top_builddir)/intl/libintl.a'
8174 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
8175 nls_cv_header_intl
=intl
/libintl.h
8176 nls_cv_header_libgt
=intl
/libgettext.h
8179 echo "$ac_t""no" 1>&6
8185 if test "$CATOBJEXT" = "NONE"; then
8186 nls_cv_use_gnu_gettext
=yes
8190 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8191 INTLOBJS
="\$(GETTOBJS)"
8192 # Extract the first word of "msgfmt", so it can be a program name with args.
8193 set dummy msgfmt
; ac_word
=$2
8194 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8195 echo "configure:8196: checking for $ac_word" >&5
8196 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
8197 echo $ac_n "(cached) $ac_c" 1>&6
8201 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8204 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8205 for ac_dir
in $PATH; do
8206 test -z "$ac_dir" && ac_dir
=.
8207 if test -f $ac_dir/$ac_word; then
8208 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8209 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8215 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
8219 MSGFMT
="$ac_cv_path_MSGFMT"
8220 if test -n "$MSGFMT"; then
8221 echo "$ac_t""$MSGFMT" 1>&6
8223 echo "$ac_t""no" 1>&6
8226 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8227 set dummy gmsgfmt
; ac_word
=$2
8228 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8229 echo "configure:8230: checking for $ac_word" >&5
8230 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8231 echo $ac_n "(cached) $ac_c" 1>&6
8235 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8238 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8241 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8243 for ac_dir
in $ac_dummy; do
8244 test -z "$ac_dir" && ac_dir
=.
8245 if test -f $ac_dir/$ac_word; then
8246 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8251 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8255 GMSGFMT
="$ac_cv_path_GMSGFMT"
8256 if test -n "$GMSGFMT"; then
8257 echo "$ac_t""$GMSGFMT" 1>&6
8259 echo "$ac_t""no" 1>&6
8262 # Extract the first word of "xgettext", so it can be a program name with args.
8263 set dummy xgettext
; ac_word
=$2
8264 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8265 echo "configure:8266: checking for $ac_word" >&5
8266 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8267 echo $ac_n "(cached) $ac_c" 1>&6
8271 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8274 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8275 for ac_dir
in $PATH; do
8276 test -z "$ac_dir" && ac_dir
=.
8277 if test -f $ac_dir/$ac_word; then
8278 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8279 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8285 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8289 XGETTEXT
="$ac_cv_path_XGETTEXT"
8290 if test -n "$XGETTEXT"; then
8291 echo "$ac_t""$XGETTEXT" 1>&6
8293 echo "$ac_t""no" 1>&6
8297 USE_INCLUDED_LIBINTL
=yes
8301 INTLDEPS
='$(top_builddir)/intl/libintl.a'
8303 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
8304 nls_cv_header_intl
=intl
/libintl.h
8305 nls_cv_header_libgt
=intl
/libgettext.h
8308 if test "$XGETTEXT" != ":"; then
8309 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
8312 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
8317 # We need to process the po/ directory.
8321 nls_cv_header_intl
=intl
/libintl.h
8322 nls_cv_header_libgt
=intl
/libgettext.h
8328 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8329 # because some of the sources are only built for this goal.
8330 if test "$PACKAGE" = gettext; then
8332 USE_INCLUDED_LIBINTL
=yes
8335 for lang
in $ALL_LINGUAS; do
8336 GMOFILES
="$GMOFILES $lang.gmo"
8337 POFILES
="$POFILES $lang.po"
8353 if test "x$CATOBJEXT" != "x"; then
8354 if test "x$ALL_LINGUAS" = "x"; then
8357 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
8358 echo "configure:8359: checking for catalogs to be installed" >&5
8360 for lang
in $ALL_LINGUAS; do
8361 case " $LINGUAS " in
8362 *" $lang "*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
8365 LINGUAS
=$NEW_LINGUAS
8366 echo "$ac_t""$LINGUAS" 1>&6
8369 if test -n "$LINGUAS"; then
8370 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
8374 if test $ac_cv_header_locale_h = yes; then
8375 INCLUDE_LOCALE_H
="#include <locale.h>"
8378 /* The system does not provide the header <locale.h>. Take care yourself. */"
8382 test -d intl || mkdir intl
8383 if test "$CATOBJEXT" = ".cat"; then
8384 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
8385 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
8386 echo "configure:8387: checking for linux/version.h" >&5
8387 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8388 echo $ac_n "(cached) $ac_c" 1>&6
8390 cat > conftest.
$ac_ext <<EOF
8391 #line 8392 "configure"
8392 #include "confdefs.h"
8393 #include <linux/version.h>
8395 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8396 { (eval echo configure
:8397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8397 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8398 if test -z "$ac_err"; then
8400 eval "ac_cv_header_$ac_safe=yes"
8403 echo "configure: failed program was:" >&5
8404 cat conftest.
$ac_ext >&5
8406 eval "ac_cv_header_$ac_safe=no"
8410 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8411 echo "$ac_t""yes" 1>&6
8414 echo "$ac_t""no" 1>&6
8419 sed -e '/^#/d' $srcdir/intl
/$msgformat-msg.
sed > intl
/po2msg.
sed
8421 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8422 $srcdir/intl
/po2tbl.
sed.
in > intl
/po2tbl.
sed
8424 if test "$PACKAGE" = "gettext"; then
8435 if test -n "$ac_aux_dir"; then
8436 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
8438 if test -z "$MKINSTALLDIRS"; then
8439 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
8446 test -d po || mkdir po
8447 if test "x$srcdir" != "x."; then
8448 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8449 posrcprefix
="$srcdir/"
8451 posrcprefix
="../$srcdir/"
8457 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8458 < $srcdir/po
/POTFILES.
in > po
/POTFILES
8460 XGETTEXT
="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
8462 # Windows32 Registry support for specifying GCC installation paths.
8463 # Check whether --enable-win32-registry or --disable-win32-registry was given.
8464 if test "${enable_win32_registry+set}" = set; then
8465 enableval
="$enable_win32_registry"
8470 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
8471 echo "configure:8472: checking whether windows registry support is requested" >&5
8472 if test x
$enable_win32_registry != xno
; then
8473 cat >> confdefs.h
<<\EOF
8474 #define ENABLE_WIN32_REGISTRY 1
8477 echo "$ac_t""yes" 1>&6
8479 echo "$ac_t""no" 1>&6
8482 # Check if user specified a different registry key.
8483 case x
${enable_win32_registry} in
8486 gcc_cv_win32_registry_key
="$VERSION"
8489 # no registry lookup.
8490 gcc_cv_win32_registry_key
=''
8493 # user-specified key.
8494 gcc_cv_win32_registry_key
="$enable_win32_registry"
8498 if test x
$enable_win32_registry != xno
; then
8499 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
8500 echo "configure:8501: checking registry key on windows hosts" >&5
8501 cat >> confdefs.h
<<EOF
8502 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
8505 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
8508 # Get an absolute path to the GCC top-level source directory
8514 # Conditionalize the makefile for this host machine.
8515 # Make-host contains the concatenation of all host makefile fragments
8516 # [there can be more than one]. This file is built by configure.frag.
8517 host_overrides
=Make-host
8518 dep_host_xmake_file
=
8519 for f
in ..
${host_xmake_file}
8521 if test -f ${srcdir}/config
/$f
8523 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
8527 # Conditionalize the makefile for this target machine.
8528 # Make-target contains the concatenation of all host makefile fragments
8529 # [there can be more than one]. This file is built by configure.frag.
8530 target_overrides
=Make-target
8532 for f
in ..
${tmake_file}
8534 if test -f ${srcdir}/config
/$f
8536 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
8540 # If the host doesn't support symlinks, modify CC in
8541 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
8542 # Otherwise, we can use "CC=$(CC)".
8544 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
8546 cc_set_by_configure
="\$(CC)"
8547 quoted_cc_set_by_configure
="\$(CC)"
8548 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
8551 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
8553 symbolic_link
="cp -p"
8557 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
8558 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
8559 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
8563 out_object_file
=`basename $out_file .c`.o
8566 for f
in $tm_file; do
8569 tm_file_list
="${tm_file_list} $f" ;;
8570 *) tm_file_list
="${tm_file_list} \$(srcdir)/config/$f" ;;
8575 for f
in $host_xm_file; do
8577 auto-host.h | gansidecl.h | hwint.h
)
8578 host_xm_file_list
="${host_xm_file_list} $f" ;;
8579 *) host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f" ;;
8584 for f
in $build_xm_file; do
8586 auto-build.h | auto-host.h | gansidecl.h | hwint.h
)
8587 build_xm_file_list
="${build_xm_file_list} $f" ;;
8588 *) build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8592 # Define macro CROSS_COMPILE in compilation
8593 # if this is a cross-compiler.
8594 # Also use all.cross instead of all.internal
8595 # and add cross-make to Makefile.
8596 cross_overrides
="/dev/null"
8597 if test x
$host != x
$target
8599 cross_defines
="CROSS=-DCROSS_COMPILE"
8600 cross_overrides
="${topdir}/cross-make"
8603 # If this is a cross-compiler that does not
8604 # have its own set of headers then define
8607 # If this is using newlib, then define inhibit_libc in
8608 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
8609 # libgcc.a, but that's OK because newlib should have its own version of
8612 if test x
$host != x
$target && test x
$with_headers = x
; then
8613 inhibit_libc
=-Dinhibit_libc
8615 if test x
$with_newlib = xyes
; then
8616 inhibit_libc
=-Dinhibit_libc
8621 # When building gcc with a cross-compiler, we need to fix a few things.
8622 # This must come after cross-make as we want all.build to override
8624 build_overrides
="/dev/null"
8625 if test x
$build != x
$host
8627 build_overrides
="${topdir}/build-make"
8630 # Expand extra_headers to include complete path.
8631 # This substitutes for lots of t-* files.
8633 if test "x$extra_headers" = x
8636 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8637 for file in $extra_headers;
8639 extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8643 if test x
$use_collect2 = xno
; then
8647 # Add a definition of USE_COLLECT2 if system wants one.
8648 # Also tell toplev.c what to do.
8649 # This substitutes for lots of t-* files.
8650 if test x
$use_collect2 = x
8655 will_use_collect2
="collect2"
8656 maybe_use_collect2
="-DUSE_COLLECT2"
8660 # Set MD_DEPS if the real md file is in md.pre-cpp.
8661 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
8662 # for line oriented comments, so we must always use a GNU cpp. If
8663 # building gcc with a cross compiler, use the cross compiler just
8664 # built. Otherwise, we can use the cpp just built.
8666 if test "x$md_cppflags" = x
8668 md_file_sub
=$srcdir/config
/$md_file
8673 # If we have gas in the build tree, make a link to it.
8674 if test -f ..
/gas
/Makefile
; then
8675 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
8678 # If we have nm in the build tree, make a link to it.
8679 if test -f ..
/binutils
/Makefile
; then
8680 rm -f nm
; $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
8683 # If we have ld in the build tree, make a link to it.
8684 if test -f ..
/ld
/Makefile
; then
8685 # if test x$use_collect2 = x; then
8686 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8688 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
8692 # Figure out what assembler alignment features are present.
8693 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
8694 echo "configure:8695: checking assembler alignment features" >&5
8696 gcc_cv_as_alignment_features
=
8697 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8698 if test -x "$DEFAULT_ASSEMBLER"; then
8699 gcc_cv_as
="$DEFAULT_ASSEMBLER"
8700 elif test -x "$AS"; then
8702 elif test -x as
$host_exeext; then
8703 # Build using assembler in the current directory.
8704 gcc_cv_as
=.
/as
$host_exeext
8705 elif test -f $gcc_cv_as_gas_srcdir/configure.
in -a -f ..
/gas
/Makefile
; then
8706 # Single tree build which includes gas.
8707 for f
in $gcc_cv_as_gas_srcdir/configure
$gcc_cv_as_gas_srcdir/configure.
in $gcc_cv_as_gas_srcdir/Makefile.
in
8709 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
8710 if test x
$gcc_cv_gas_version != x
; then
8714 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
8715 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
8716 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
8717 # Gas version 2.6 and later support for .balign and .p2align.
8718 # bytes to skip when using .p2align.
8719 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
8720 gcc_cv_as_alignment_features
=".balign and .p2align"
8721 cat >> confdefs.h
<<\EOF
8722 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8726 # Gas version 2.8 and later support specifying the maximum
8727 # bytes to skip when using .p2align.
8728 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
8729 gcc_cv_as_alignment_features
=".p2align including maximum skip"
8730 cat >> confdefs.h
<<\EOF
8731 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8736 elif test x
$host = x
$target; then
8738 # Search the same directories that the installed compiler will
8739 # search. Else we may find the wrong assembler and lose. If we
8740 # do not find a suitable assembler binary, then try the user's
8743 # Also note we have to check MD_EXEC_PREFIX before checking the
8744 # user's path. Unfortunately, there is no good way to get at the
8745 # value of MD_EXEC_PREFIX here. So we do a brute force search
8746 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
8747 # to be fixed as part of the make/configure rewrite too.
8749 if test "x$exec_prefix" = xNONE
; then
8750 if test "x$prefix" = xNONE
; then
8751 test_prefix
=/usr
/local
8756 test_prefix
=$exec_prefix
8759 # If the loop below does not find an assembler, then use whatever
8760 # one we can find in the users's path.
8764 test_dirs
="$test_prefix/lib/gcc-lib/$target/$gcc_version \
8765 $test_prefix/lib/gcc-lib/$target \
8766 /usr/lib/gcc/$target/$gcc_version \
8767 /usr/lib/gcc/$target \
8768 $test_prefix/$target/bin/$target/$gcc_version \
8769 $test_prefix/$target/bin \
8774 /bsd43/usr/lib/cmplrs/cc \
8775 /usr/cross64/usr/bin \
8776 /usr/lib/cmplrs/cc \
8777 /sysv/usr/lib/cmplrs/cc \
8778 /svr4/usr/lib/cmplrs/cc \
8781 for dir
in $test_dirs; do
8782 if test -f $dir/as
$host_exeext; then
8783 gcc_cv_as
=$dir/as
$host_exeext
8788 if test x
$gcc_cv_as != x
; then
8789 # Check if we have .balign and .p2align
8790 echo ".balign 4" > conftest.s
8791 echo ".p2align 2" >> conftest.s
8792 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8793 gcc_cv_as_alignment_features
=".balign and .p2align"
8794 cat >> confdefs.h
<<\EOF
8795 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8799 rm -f conftest.s conftest.o
8800 # Check if specifying the maximum bytes to skip when
8801 # using .p2align is supported.
8802 echo ".p2align 4,,7" > conftest.s
8803 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8804 gcc_cv_as_alignment_features
=".p2align including maximum skip"
8805 cat >> confdefs.h
<<\EOF
8806 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8810 rm -f conftest.s conftest.o
8812 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
8814 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
8815 echo "configure:8816: checking assembler subsection support" >&5
8816 gcc_cv_as_subsections
=
8817 if test x
$gcc_cv_as != x
; then
8818 # Check if we have .subsection
8819 echo ".subsection 1" > conftest.s
8820 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8821 gcc_cv_as_subsections
=".subsection"
8822 if test -x nm
$host_exeext; then
8823 gcc_cv_nm
=.
/nm
$host_exeext
8824 elif test x
$host = x
$target; then
8826 gcc_cv_nm
=nm
$host_exeext
8828 if test x
$gcc_cv_nm != x
; then
8829 cat > conftest.s
<<EOF
8830 conftest_label1: .word 0
8832 conftest_label2: .word 0
8835 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8836 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
8837 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
8838 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1; then
8841 gcc_cv_as_subsections
="working .subsection -1"
8842 cat >> confdefs.h
<<\EOF
8843 #define HAVE_GAS_SUBSECTION_ORDERING 1
8850 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8852 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
8854 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
8855 echo "configure:8856: checking assembler weak support" >&5
8857 if test x
$gcc_cv_as != x
; then
8858 # Check if we have .weak
8859 echo " .weak foobar" > conftest.s
8860 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8861 cat >> confdefs.h
<<\EOF
8862 #define HAVE_GAS_WEAK 1
8865 gcc_cv_as_weak
="yes"
8867 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8869 echo "$ac_t""$gcc_cv_as_weak" 1>&6
8871 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
8872 echo "configure:8873: checking assembler hidden support" >&5
8874 if test x
$gcc_cv_as != x
; then
8875 # Check if we have .hidden
8876 echo " .hidden foobar" > conftest.s
8877 echo "foobar:" >> conftest.s
8878 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8879 cat >> confdefs.h
<<\EOF
8880 #define HAVE_GAS_HIDDEN 1
8883 gcc_cv_as_hidden
="yes"
8885 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8887 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
8891 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
8892 echo "configure:8893: checking assembler .register pseudo-op support" >&5
8893 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
8894 echo $ac_n "(cached) $ac_c" 1>&6
8897 gcc_cv_as_register_pseudo_op
=unknown
8898 if test x
$gcc_cv_as != x
; then
8899 # Check if we have .register
8900 echo ".register %g2, #scratch" > conftest.s
8901 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8902 gcc_cv_as_register_pseudo_op
=yes
8904 gcc_cv_as_register_pseudo_op
=no
8906 rm -f conftest.s conftest.o
8911 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
8912 if test "x$gcc_cv_as_register_pseudo_op" = xyes
; then
8913 cat >> confdefs.h
<<\EOF
8914 #define HAVE_AS_REGISTER_PSEUDO_OP 1
8919 echo $ac_n "checking assembler supports -relax""... $ac_c" 1>&6
8920 echo "configure:8921: checking assembler supports -relax" >&5
8921 if eval "test \"`echo '$''{'gcc_cv_as_relax_opt'+set}'`\" = set"; then
8922 echo $ac_n "(cached) $ac_c" 1>&6
8925 gcc_cv_as_relax_opt
=unknown
8926 if test x
$gcc_cv_as != x
; then
8927 # Check if gas supports -relax
8928 echo ".text" > conftest.s
8929 if $gcc_cv_as -relax -o conftest.o conftest.s
> /dev
/null
2>&1; then
8930 gcc_cv_as_relax_opt
=yes
8932 gcc_cv_as_relax_opt
=no
8934 rm -f conftest.s conftest.o
8939 echo "$ac_t""$gcc_cv_as_relax_opt" 1>&6
8940 if test "x$gcc_cv_as_relax_opt" = xyes
; then
8941 cat >> confdefs.h
<<\EOF
8942 #define HAVE_AS_RELAX_OPTION 1
8949 echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
8950 echo "configure:8951: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
8951 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
8952 echo $ac_n "(cached) $ac_c" 1>&6
8955 if test -n "$gcc_cv_as"; then
8956 echo ".xword foo" > conftest.s
8957 gcc_cv_as_flags64
=no
8958 for flag
in "-xarch=v9" "-64 -Av9"; do
8959 if $gcc_cv_as $flag -o conftest.o conftest.s \
8960 > /dev
/null
2>&1; then
8961 gcc_cv_as_flags64
=$flag
8965 rm -f conftest.s conftest.o
8967 if test "$gas" = yes; then
8968 gcc_cv_as_flags64
="-64 -Av9"
8970 gcc_cv_as_flags64
="-xarch=v9"
8976 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
8977 if test "x$gcc_cv_as_flags64" = xno
; then
8979 tmake_file
=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
8980 dep_tmake_file
=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
8983 cat >> confdefs.h
<<EOF
8984 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
8989 *) gcc_cv_as_flags64
=${gcc_cv_as_flags64-no}
8993 if test "x$gcc_cv_as_flags64" != xno
; then
8994 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
8995 echo "configure:8996: checking for assembler offsetable %lo() support" >&5
8996 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
8997 echo $ac_n "(cached) $ac_c" 1>&6
9000 gcc_cv_as_offsetable_lo10
=unknown
9001 if test "x$gcc_cv_as" != x
; then
9002 # Check if assembler has offsetable %lo()
9003 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
9004 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
9005 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
9007 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
9008 > /dev
/null
2>&1; then
9009 if cmp conftest.o conftest1.o
> /dev
/null
2>&1; then
9010 gcc_cv_as_offsetable_lo10
=no
9012 gcc_cv_as_offsetable_lo10
=yes
9015 gcc_cv_as_offsetable_lo10
=no
9017 rm -f conftest.s conftest.o conftest1.s conftest1.o
9022 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
9023 if test "x$gcc_cv_as_offsetable_lo10" = xyes
; then
9024 cat >> confdefs.h
<<\EOF
9025 #define HAVE_AS_OFFSETABLE_LO10 1
9033 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
9034 echo "configure:9035: checking assembler instructions" >&5
9035 gcc_cv_as_instructions
=
9036 if test x
$gcc_cv_as != x
; then
9037 set "filds fists" "filds mem; fists mem"
9040 echo "$2" > conftest.s
9041 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9042 gcc_cv_as_instructions
=${gcc_cv_as_instructions}$1" "
9043 cat >> confdefs.h
<<EOF
9044 #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1
9050 rm -f conftest.s conftest.o
9052 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
9056 # Figure out what language subdirectories are present.
9057 # Look if the user specified --enable-languages="..."; if not, use
9058 # the environment variable $LANGUAGES if defined. $LANGUAGES might
9060 if test x
"${enable_languages+set}" != xset
; then
9061 if test x
"${LANGUAGES+set}" = xset
; then
9062 enable_languages
="`echo ${LANGUAGES} | tr ' ' ','`"
9064 enable_languages
=all
9067 if test x
"${enable_languages}" = x
; then
9068 { echo "configure: error: --enable-languages needs at least one argument" 1>&2; exit 1; }
9072 for lang
in ${srcdir}/*/config-lang.
in ..
9076 # The odd quoting in the next line works around
9077 # an apparent bug in bash 1.12 on linux.
9078 ${srcdir}/[*]/config-lang.
in) ;;
9080 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
9081 if test "x$lang_alias" = x
9083 echo "$lang doesn't set \$language." 1>&2
9086 if test x
"${enable_languages}" = xall
; then
9089 case "${enable_languages}" in
9090 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
9098 if test x"${add_this_lang}" = xyes; then
9100 ${srcdir}/ada/config-lang.in)
9101 if test x$gnat = xyes ; then
9102 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9106 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9114 # Make gthr-default.h if we have a thread file.
9116 if test $thread_file != single; then
9117 rm -f gthr-default.h
9118 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9119 gthread_flags
=-DHAVE_GTHR_DEFAULT
9123 # Find out what GC implementation we want, or may, use.
9124 # Check whether --with-gc or --without-gc was given.
9125 if test "${with_gc+set}" = set; then
9132 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
9136 if test $ac_cv_func_mmap_anywhere = yes \
9137 ||
test $ac_cv_func_valloc = yes; then
9145 echo "Using $GGC for garbage collection."
9147 # Build a new-abi (c++) system
9148 # Check whether --enable-new-gxx-abi or --disable-new-gxx-abi was given.
9149 if test "${enable_new_gxx_abi+set}" = set; then
9150 enableval
="$enable_new_gxx_abi"
9151 cat >> confdefs.h
<<\EOF
9152 #define ENABLE_NEW_GXX_ABI 1
9155 GXX_ABI_FLAG
='-fnew-abi'
9156 echo "Building a new-abi g++ compiler."
9162 # Build a new-libstdc++ system (ie libstdc++-v3)
9163 echo $ac_n "checking for libstdc++ to install""... $ac_c" 1>&6
9164 echo "configure:9165: checking for libstdc++ to install" >&5
9165 # Check whether --enable-libstdcxx-v3 or --disable-libstdcxx-v3 was given.
9166 if test "${enable_libstdcxx_v3+set}" = set; then
9167 enableval
="$enable_libstdcxx_v3"
9168 enable_libstdcxx_v3
=yes
9170 enable_libstdcxx_v3
=no
9174 if test x
$enable_libstdcxx_v3 = xyes
; then
9175 echo "$ac_t""v3" 1>&6
9178 echo "$ac_t""v2" 1>&6
9181 cat >> confdefs.h
<<EOF
9182 #define ENABLE_STD_NAMESPACE $ac_esn
9187 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
9188 echo "configure:9189: checking whether to enable maintainer-specific portions of Makefiles" >&5
9189 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9190 if test "${enable_maintainer_mode+set}" = set; then
9191 enableval
="$enable_maintainer_mode"
9192 maintainer_mode
=$enableval
9198 echo "$ac_t""$maintainer_mode" 1>&6
9200 if test "$maintainer_mode" = "yes"; then
9206 # Make empty files to contain the specs and options for each language.
9207 # Then add #include lines to for a compiler that has specs and/or options.
9212 rm -f specs.h options.h gencheck.h
9213 touch specs.h options.h gencheck.h
9214 for subdir
in .
$subdirs
9216 if test -f $srcdir/$subdir/lang-specs.h
; then
9217 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
9218 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
9220 if test -f $srcdir/$subdir/lang-options.h
; then
9221 echo "#include \"$subdir/lang-options.h\"" >>options.h
9222 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
9224 if test -f $srcdir/$subdir/$subdir-tree.def
; then
9225 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
9226 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
9230 # These (without "all_") are set in each config-lang.in.
9231 # `language' must be a single word so is spelled singularly.
9237 all_outputs
='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
9238 # List of language makefile fragments.
9243 # Add the language fragments.
9244 # Languages are added via two mechanisms. Some information must be
9245 # recorded in makefile variables, these are defined in config-lang.in.
9246 # We accumulate them and plug them into the main Makefile.
9247 # The other mechanism is a set of hooks for each of the main targets
9248 # like `clean', `install', etc.
9250 language_fragments
="Make-lang"
9251 language_hooks
="Make-hooks"
9254 for s
in ..
$subdirs
9266 .
${srcdir}/$s/config-lang.
in
9267 if test "x$language" = x
9269 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
9272 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
9273 all_languages
="$all_languages $language"
9274 if test "x$boot_language" = xyes
9276 all_boot_languages
="$all_boot_languages $language"
9278 all_compilers
="$all_compilers $compilers"
9279 all_stagestuff
="$all_stagestuff $stagestuff"
9280 all_diff_excludes
="$all_diff_excludes $diff_excludes"
9281 all_headers
="$all_headers $headers"
9282 all_outputs
="$all_outputs $outputs"
9283 if test x
$outputs = x
9285 oldstyle_subdirs
="$oldstyle_subdirs $s"
9287 all_lib2funcs
="$all_lib2funcs $lib2funcs"
9291 # Since we can't use `::' targets, we link each language in
9292 # with a set of hooks, reached indirectly via lang.${target}.
9296 target_list
="all.build all.cross start.encap rest.encap \
9298 install-normal install-common install-info install-man \
9300 mostlyclean clean distclean extraclean maintainer-clean \
9301 stage1 stage2 stage3 stage4"
9302 for t
in $target_list
9305 for lang
in ..
$all_languages
9307 if test $lang != ".."; then
9311 echo "lang.$t: $x" >> Make-hooks
9314 # If we're not building in srcdir, create .gdbinit.
9316 if test ! -f Makefile.
in; then
9317 echo "dir ." > .gdbinit
9318 echo "dir ${srcdir}" >> .gdbinit
9319 if test x
$gdb_needs_out_file_path = xyes
9321 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
9323 if test "x$subdirs" != x
; then
9326 echo "dir ${srcdir}/$s" >> .gdbinit
9329 echo "source ${srcdir}/.gdbinit" >> .gdbinit
9332 # Define variables host_canonical and build_canonical
9333 # because some Cygnus local changes in the Makefile depend on them.
9334 build_canonical
=${build}
9335 host_canonical
=${host}
9337 if test "${host}" != "${target}" ; then
9338 target_subdir
=${target}/
9344 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
9345 # absolute path for gcc_tooldir based on inserting the number of up-directory
9346 # movements required to get from $(exec_prefix) to $(prefix) into the basic
9347 # $(libsubdir)/@(unlibsubdir) based path.
9348 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
9349 # make and thus we'd get different behavior depending on where we built the
9351 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
9352 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
9354 # An explanation of the sed strings:
9355 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
9356 # -e 's|/$||' match a trailing forward slash and eliminates it
9357 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
9358 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
9360 # (*) Note this pattern overwrites the first character of the string
9361 # with a forward slash if one is not already present. This is not a
9362 # problem because the exact names of the sub-directories concerned is
9363 # unimportant, just the number of them matters.
9365 # The practical upshot of these patterns is like this:
9367 # prefix exec_prefix result
9368 # ------ ----------- ------
9370 # /foo/ /foo/bar ../
9371 # /foo /foo/bar/ ../
9372 # /foo/ /foo/bar/ ../
9373 # /foo /foo/bar/ugg ../../
9376 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
9381 # Nothing to do for FLOAT_H, float_format already handled.
9385 # Process the language and host/target makefile fragments.
9386 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
9388 # Substitute configuration variables
9447 # Echo that links are built
9448 if test x
$host = x
$target
9456 if test x
$host != x
$build
9458 str3
=" on a $build system"
9461 if test "x$str2" != x ||
test "x$str3" != x
9466 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
9468 if test "x$str2" != x ||
test "x$str3" != x
9470 echo " ${str2}${str3}." 1>&2
9473 # Truncate the target if necessary
9474 if test x
$host_truncate_target != x
; then
9475 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
9478 # Configure the subdirectories
9479 # AC_CONFIG_SUBDIRS($subdirs)
9481 # Create the Makefile
9482 # and configure language subdirectories
9484 cat > confcache
<<\EOF
9485 # This file is a shell script that caches the results of configure
9486 # tests run on this system so they can be shared between configure
9487 # scripts and configure runs. It is not useful on other systems.
9488 # If it contains results you don't want to keep, you may remove or edit it.
9490 # By default, configure uses ./config.cache as the cache file,
9491 # creating it if it does not exist already. You can give configure
9492 # the --cache-file=FILE option to use a different cache file; that is
9493 # what configure does when it calls configure scripts in
9494 # subdirectories, so they share the cache.
9495 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9496 # config.status only pays attention to the cache file if you give it the
9497 # --recheck option to rerun configure.
9500 # The following way of writing the cache mishandles newlines in values,
9501 # but we know of no workaround that is simple, portable, and efficient.
9502 # So, don't put newlines in cache variables' values.
9503 # Ultrix sh set writes to stderr and can't be redirected directly,
9504 # and sets the high bit in the cache file unless we assign to the vars.
9506 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9508 # `set' does not quote correctly, so add quotes (double-quote substitution
9509 # turns \\\\ into \\, and sed turns \\ into \).
9511 -e "s/'/'\\\\''/g" \
9512 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9515 # `set' quotes correctly as required by POSIX, so do not add quotes.
9516 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9519 if cmp -s $cache_file confcache
; then
9522 if test -w $cache_file; then
9523 echo "updating cache $cache_file"
9524 cat confcache
> $cache_file
9526 echo "not updating unwritable cache $cache_file"
9531 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9533 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9534 # Let make expand exec_prefix.
9535 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9537 # Any assignment to VPATH causes Sun make to only execute
9538 # the first set of double-colon rules, so remove it if not needed.
9539 # If there is a colon in the path, we need to keep it.
9540 if test "x$srcdir" = x.
; then
9541 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
9544 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9546 DEFS
=-DHAVE_CONFIG_H
9548 # Without the "./", some shells look in PATH for config.status.
9549 : ${CONFIG_STATUS=./config.status}
9551 echo creating
$CONFIG_STATUS
9552 rm -f $CONFIG_STATUS
9553 cat > $CONFIG_STATUS <<EOF
9555 # Generated automatically by configure.
9556 # Run this file to recreate the current configuration.
9557 # This directory was configured as follows,
9558 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9560 # $0 $ac_configure_args
9562 # Compiler output produced by configure, useful for debugging
9563 # configure, is in ./config.log if it exists.
9565 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9568 case "\$ac_option" in
9569 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9570 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9571 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9572 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9573 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9575 -help | --help | --hel | --he | --h)
9576 echo "\$ac_cs_usage"; exit 0 ;;
9577 *) echo "\$ac_cs_usage"; exit 1 ;;
9581 ac_given_srcdir=$srcdir
9583 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9585 cat >> $CONFIG_STATUS <<EOF
9587 # Protect against being on the right side of a sed subst in config.status.
9588 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9589 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9593 s%@CFLAGS@%$CFLAGS%g
9594 s%@CPPFLAGS@%$CPPFLAGS%g
9595 s%@CXXFLAGS@%$CXXFLAGS%g
9596 s%@FFLAGS@%$FFLAGS%g
9598 s%@LDFLAGS@%$LDFLAGS%g
9600 s%@exec_prefix@%$exec_prefix%g
9601 s%@prefix@%$prefix%g
9602 s%@program_transform_name@%$program_transform_name%g
9603 s%@bindir@%$bindir%g
9604 s%@sbindir@%$sbindir%g
9605 s%@libexecdir@%$libexecdir%g
9606 s%@datadir@%$datadir%g
9607 s%@sysconfdir@%$sysconfdir%g
9608 s%@sharedstatedir@%$sharedstatedir%g
9609 s%@localstatedir@%$localstatedir%g
9610 s%@libdir@%$libdir%g
9611 s%@includedir@%$includedir%g
9612 s%@oldincludedir@%$oldincludedir%g
9613 s%@infodir@%$infodir%g
9614 s%@mandir@%$mandir%g
9616 s%@host_alias@%$host_alias%g
9617 s%@host_cpu@%$host_cpu%g
9618 s%@host_vendor@%$host_vendor%g
9619 s%@host_os@%$host_os%g
9620 s%@target@%$target%g
9621 s%@target_alias@%$target_alias%g
9622 s%@target_cpu@%$target_cpu%g
9623 s%@target_vendor@%$target_vendor%g
9624 s%@target_os@%$target_os%g
9626 s%@build_alias@%$build_alias%g
9627 s%@build_cpu@%$build_cpu%g
9628 s%@build_vendor@%$build_vendor%g
9629 s%@build_os@%$build_os%g
9631 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
9632 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
9633 s%@stage2_warn_cflags@%$stage2_warn_cflags%g
9634 s%@SET_MAKE@%$SET_MAKE%g
9637 s%@LEXLIB@%$LEXLIB%g
9640 s%@RANLIB@%$RANLIB%g
9642 s%@INSTALL@%$INSTALL%g
9643 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9644 s%@INSTALL_DATA@%$INSTALL_DATA%g
9647 s%@MAKEINFO@%$MAKEINFO%g
9648 s%@BUILD_INFO@%$BUILD_INFO%g
9649 s%@INSTALL_INFO@%$INSTALL_INFO%g
9650 s%@vfprintf@%$vfprintf%g
9651 s%@doprint@%$doprint%g
9652 s%@manext@%$manext%g
9653 s%@objext@%$objext%g
9654 s%@PACKAGE@%$PACKAGE%g
9655 s%@VERSION@%$VERSION%g
9656 s%@ALLOCA@%$ALLOCA%g
9657 s%@USE_NLS@%$USE_NLS%g
9658 s%@MSGFMT@%$MSGFMT%g
9659 s%@GMSGFMT@%$GMSGFMT%g
9660 s%@XGETTEXT@%$XGETTEXT%g
9661 s%@GENCAT@%$GENCAT%g
9662 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9663 s%@CATALOGS@%$CATALOGS%g
9664 s%@CATOBJEXT@%$CATOBJEXT%g
9665 s%@DATADIRNAME@%$DATADIRNAME%g
9666 s%@GMOFILES@%$GMOFILES%g
9667 s%@INSTOBJEXT@%$INSTOBJEXT%g
9668 s%@INTLDEPS@%$INTLDEPS%g
9669 s%@INTLLIBS@%$INTLLIBS%g
9670 s%@INTLOBJS@%$INTLOBJS%g
9671 s%@POFILES@%$POFILES%g
9673 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
9675 s%@GT_YES@%$GT_YES%g
9676 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9678 s%@inhibit_libc@%$inhibit_libc%g
9679 s%@gthread_flags@%$gthread_flags%g
9681 s%@GXX_ABI_FLAG@%$GXX_ABI_FLAG%g
9683 s%@build_canonical@%$build_canonical%g
9684 s%@host_canonical@%$host_canonical%g
9685 s%@target_subdir@%$target_subdir%g
9686 s%@gcc_tooldir@%$gcc_tooldir%g
9687 s%@dollar@%$dollar%g
9688 s%@objdir@%$objdir%g
9689 s%@subdirs@%$subdirs%g
9690 s%@all_boot_languages@%$all_boot_languages%g
9691 s%@all_compilers@%$all_compilers%g
9692 s%@all_diff_excludes@%$all_diff_excludes%g
9693 s%@all_headers@%$all_headers%g
9694 s%@all_lang_makefiles@%$all_lang_makefiles%g
9695 s%@all_languages@%$all_languages%g
9696 s%@all_lib2funcs@%$all_lib2funcs%g
9697 s%@all_stagestuff@%$all_stagestuff%g
9698 s%@build_exeext@%$build_exeext%g
9699 s%@build_install_headers_dir@%$build_install_headers_dir%g
9700 s%@build_xm_file_list@%$build_xm_file_list%g
9701 s%@cc_set_by_configure@%$cc_set_by_configure%g
9702 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
9703 s%@cpp_install_dir@%$cpp_install_dir%g
9704 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
9705 s%@dep_tmake_file@%$dep_tmake_file%g
9706 s%@extra_c_flags@%$extra_c_flags%g
9707 s%@extra_c_objs@%$extra_c_objs%g
9708 s%@extra_cpp_objs@%$extra_cpp_objs%g
9709 s%@extra_cxx_objs@%$extra_cxx_objs%g
9710 s%@extra_headers_list@%$extra_headers_list%g
9711 s%@extra_objs@%$extra_objs%g
9712 s%@extra_parts@%$extra_parts%g
9713 s%@extra_passes@%$extra_passes%g
9714 s%@extra_programs@%$extra_programs%g
9715 s%@float_h_file@%$float_h_file%g
9716 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
9717 s%@gcc_version@%$gcc_version%g
9718 s%@gcc_version_trigger@%$gcc_version_trigger%g
9719 s%@host_exeext@%$host_exeext%g
9720 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
9721 s%@host_xm_file_list@%$host_xm_file_list%g
9722 s%@install@%$install%g
9723 s%@lang_options_files@%$lang_options_files%g
9724 s%@lang_specs_files@%$lang_specs_files%g
9725 s%@lang_tree_files@%$lang_tree_files%g
9726 s%@local_prefix@%$local_prefix%g
9727 s%@maybe_use_collect2@%$maybe_use_collect2%g
9728 s%@md_file@%$md_file%g
9729 s%@objc_boehm_gc@%$objc_boehm_gc%g
9730 s%@out_file@%$out_file%g
9731 s%@out_object_file@%$out_object_file%g
9732 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
9733 s%@symbolic_link@%$symbolic_link%g
9734 s%@thread_file@%$thread_file%g
9735 s%@tm_file_list@%$tm_file_list%g
9736 s%@will_use_collect2@%$will_use_collect2%g
9737 /@target_overrides@/r $target_overrides
9738 s%@target_overrides@%%g
9739 /@host_overrides@/r $host_overrides
9740 s%@host_overrides@%%g
9741 s%@cross_defines@%$cross_defines%g
9742 /@cross_overrides@/r $cross_overrides
9743 s%@cross_overrides@%%g
9744 /@build_overrides@/r $build_overrides
9745 s%@build_overrides@%%g
9746 /@language_fragments@/r $language_fragments
9747 s%@language_fragments@%%g
9748 /@language_hooks@/r $language_hooks
9749 s%@language_hooks@%%g
9754 cat >> $CONFIG_STATUS <<\EOF
9756 # Split the substitutions into bite-sized pieces for seds with
9757 # small command number limits, like on Digital OSF/1 and HP-UX.
9758 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
9759 ac_file
=1 # Number of current file.
9760 ac_beg
=1 # First line for current file.
9761 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
9764 while $ac_more_lines; do
9765 if test $ac_beg -gt 1; then
9766 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
9768 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
9770 if test ! -s conftest.s
$ac_file; then
9772 rm -f conftest.s
$ac_file
9774 if test -z "$ac_sed_cmds"; then
9775 ac_sed_cmds
="sed -f conftest.s$ac_file"
9777 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
9779 ac_file
=`expr $ac_file + 1`
9781 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
9784 if test -z "$ac_sed_cmds"; then
9789 cat >> $CONFIG_STATUS <<EOF
9791 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
9793 cat >> $CONFIG_STATUS <<\EOF
9794 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
9795 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9797 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9798 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9799 *) ac_file_in
="${ac_file}.in" ;;
9802 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9804 # Remove last slash and all that follows it. Not all systems have dirname.
9805 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9806 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
9807 # The file is in a subdirectory.
9808 test ! -d "$ac_dir" && mkdir
"$ac_dir"
9809 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
9810 # A "../" for each directory in $ac_dir_suffix.
9811 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9813 ac_dir_suffix
= ac_dots
=
9816 case "$ac_given_srcdir" in
9818 if test -z "$ac_dots"; then top_srcdir
=.
9819 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9820 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
9822 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9823 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9827 echo creating
"$ac_file"
9829 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9831 *Makefile
*) ac_comsub
="1i\\
9832 # $configure_input" ;;
9836 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9838 s%@configure_input@%$configure_input%g
9839 s%@srcdir@%$srcdir%g
9840 s%@top_srcdir@%$top_srcdir%g
9841 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
9845 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9846 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9848 # ac_d sets the value in "#define NAME VALUE" lines.
9849 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9850 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
9853 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9854 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9855 ac_uB
='\([ ]\)%\1#\2define\3'
9858 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9859 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9860 ac_eB
='$%\1#\2define\3'
9864 if test "${CONFIG_HEADERS+set}" != set; then
9866 cat >> $CONFIG_STATUS <<EOF
9867 CONFIG_HEADERS="auto-host.h:config.in"
9869 cat >> $CONFIG_STATUS <<\EOF
9871 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
9872 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9874 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9875 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9876 *) ac_file_in
="${ac_file}.in" ;;
9879 echo creating
$ac_file
9881 rm -f conftest.frag conftest.
in conftest.out
9882 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9883 cat $ac_file_inputs > conftest.
in
9887 # Transform confdefs.h into a sed script conftest.vals that substitutes
9888 # the proper values into config.h.in to produce config.h. And first:
9889 # Protect against being on the right side of a sed subst in config.status.
9890 # Protect against being in an unquoted here document in config.status.
9892 cat > conftest.hdr
<<\EOF
9895 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9899 sed -n -f conftest.hdr confdefs.h > conftest.vals
9902 # This sed command replaces #undef with comments. This is necessary, for
9903 # example, in the case of _POSIX_SOURCE, which is predefined and required
9904 # on some systems where configure will not decide to define it.
9905 cat >> conftest.vals <<\EOF
9906 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9909 # Break up conftest.vals because some shells have a limit on
9910 # the size of here documents, and old seds have small limits too.
9915 ac_lines=`grep -c . conftest.vals
`
9916 # grep -c gives empty output for an empty file on some AIX systems.
9917 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9918 # Write a limited-size here document to conftest.frag.
9919 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9920 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9922 sed -f conftest.frag conftest.in > conftest.out
9924 mv conftest.out conftest.in
9926 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9928 mv conftest.tail conftest.vals
9932 cat >> $CONFIG_STATUS <<\EOF
9933 rm -f conftest.frag conftest.h
9934 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9935 cat conftest.in >> conftest.h
9937 if cmp -s $ac_file conftest.h 2>/dev/null; then
9938 echo "$ac_file is unchanged"
9941 # Remove last slash and all that follows it. Not all systems have dirname.
9942 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
9943 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9944 # The file is in a subdirectory.
9945 test ! -d "$ac_dir" && mkdir "$ac_dir"
9948 mv conftest.h $ac_file
9954 cat >> $CONFIG_STATUS <<EOF
9955 ac_sources="$nls_cv_header_libgt"
9956 ac_dests="$nls_cv_header_intl"
9959 cat >> $CONFIG_STATUS <<\EOF
9960 srcdir=$ac_given_srcdir
9961 while test -n "$ac_sources"; do
9962 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9963 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9965 echo "linking $srcdir/$ac_source to $ac_dest"
9967 if test ! -r $srcdir/$ac_source; then
9968 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9972 # Make relative symlinks.
9973 # Remove last slash and all that follows it. Not all systems have dirname.
9974 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
9975 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9976 # The dest file is in a subdirectory.
9977 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9978 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
9979 # A "../" for each directory in $ac_dest_dir_suffix.
9980 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
9982 ac_dest_dir_suffix= ac_dots=
9986 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9987 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9990 # Make a symlink if possible; otherwise try a hard link.
9991 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9992 ln $srcdir/$ac_source $ac_dest; then :
9994 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9998 cat >> $CONFIG_STATUS <<EOF
10004 target_alias='${target_alias}'
10006 subdirs='${subdirs}'
10007 oldstyle_subdirs='${oldstyle_subdirs}'
10008 symbolic_link='${symbolic_link}'
10009 program_transform_set='${program_transform_set}'
10010 program_transform_name='${program_transform_name}'
10011 dep_host_xmake_file='${dep_host_xmake_file}'
10012 host_xmake_file='${host_xmake_file}'
10013 dep_tmake_file='${dep_tmake_file}'
10014 tmake_file='${tmake_file}'
10015 thread_file='${thread_file}'
10016 gcc_version='${gcc_version}'
10017 gcc_version_trigger='${gcc_version_trigger}'
10018 local_prefix='${local_prefix}'
10019 build_install_headers_dir='${build_install_headers_dir}'
10020 build_exeext='${build_exeext}'
10021 host_exeext='${host_exeext}'
10022 out_file='${out_file}'
10023 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
10024 SET_MAKE='${SET_MAKE}'
10025 target_list='${target_list}'
10026 target_overrides='${target_overrides}'
10027 host_overrides='${host_overrides}'
10028 cross_defines='${cross_defines}'
10029 cross_overrides='${cross_overrides}'
10030 build_overrides='${build_overrides}'
10031 cpp_install_dir='${cpp_install_dir}'
10034 cat >> $CONFIG_STATUS <<\EOF
10035 case "$CONFIG_FILES" in *po/Makefile.in*)
10036 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
10039 . $srcdir/configure.lang
10040 case x$CONFIG_HEADERS in
10041 xauto-host.h:config.in)
10044 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
10045 # bootstrapping and the installation procedure can still use
10046 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
10047 # FLAGS_TO_PASS has been modified to solve the problem there.
10048 # This is virtually a duplicate of what happens in configure.lang; we do
10049 # an extra check to make sure this only happens if ln -s can be used.
10050 if test "$symbolic_link" = "ln -s"; then
10051 for d in .. ${subdirs} ; do
10052 if test $d != ..; then
10055 for t in stage1 stage2 stage3 stage4 include
10058 $symbolic_link ../$t $t 2>/dev/null
10064 # Avoid having to add intl to our include paths.
10065 if test -f intl/libintl.h; then
10066 echo creating libintl.h
10067 echo '#include "intl/libintl.h"' >libintl.h
10072 chmod +x $CONFIG_STATUS
10073 rm -fr confdefs* $ac_clean_files
10074 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1