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 (disabled by 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 # Initialize some variables set by options.
82 # The variables have the same names as the options, with
83 # dashes changed to underlines.
85 cache_file
=.
/config.cache
94 program_transform_name
=s
,x
,x
,
102 bindir
='${exec_prefix}/bin'
103 sbindir
='${exec_prefix}/sbin'
104 libexecdir
='${exec_prefix}/libexec'
105 datadir
='${prefix}/share'
106 sysconfdir
='${prefix}/etc'
107 sharedstatedir
='${prefix}/com'
108 localstatedir
='${prefix}/var'
109 libdir
='${exec_prefix}/lib'
110 includedir
='${prefix}/include'
111 oldincludedir
='/usr/include'
112 infodir
='${prefix}/info'
113 mandir
='${prefix}/man'
115 # Initialize some other variables.
118 SHELL
=${CONFIG_SHELL-/bin/sh}
119 # Maximum number of lines to put in a shell here document.
126 # If the previous option needs an argument, assign it.
127 if test -n "$ac_prev"; then
128 eval "$ac_prev=\$ac_option"
134 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
138 # Accept the important Cygnus configure options, so we can diagnose typos.
142 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
144 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
145 bindir
="$ac_optarg" ;;
147 -build |
--build |
--buil |
--bui |
--bu)
149 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
150 build
="$ac_optarg" ;;
152 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
153 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
154 ac_prev
=cache_file
;;
155 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
156 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
157 cache_file
="$ac_optarg" ;;
159 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
161 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
163 datadir
="$ac_optarg" ;;
165 -disable-* |
--disable-*)
166 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
167 # Reject names that are not valid shell variable names.
168 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
169 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
171 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
172 eval "enable_${ac_feature}=no" ;;
174 -enable-* |
--enable-*)
175 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
176 # Reject names that are not valid shell variable names.
177 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
178 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
180 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
185 eval "enable_${ac_feature}='$ac_optarg'" ;;
187 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
188 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
189 |
--exec |
--exe |
--ex)
190 ac_prev
=exec_prefix
;;
191 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
192 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
193 |
--exec=* |
--exe=* |
--ex=*)
194 exec_prefix
="$ac_optarg" ;;
196 -gas |
--gas |
--ga |
--g)
197 # Obsolete; use --with-gas.
200 -help |
--help |
--hel |
--he)
201 # Omit some internal or obsolete options to make the list less imposing.
202 # This message is too long to be a string in the A/UX 3.1 sh.
204 Usage: configure [options] [host]
205 Options: [defaults in brackets after descriptions]
207 --cache-file=FILE cache test results in FILE
208 --help print this message
209 --no-create do not create output files
210 --quiet, --silent do not print \`checking...' messages
211 --version print the version of autoconf that created configure
212 Directory and file names:
213 --prefix=PREFIX install architecture-independent files in PREFIX
215 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
217 --bindir=DIR user executables in DIR [EPREFIX/bin]
218 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
219 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
220 --datadir=DIR read-only architecture-independent data in DIR
222 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
223 --sharedstatedir=DIR modifiable architecture-independent data in DIR
225 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
226 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
227 --includedir=DIR C header files in DIR [PREFIX/include]
228 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
229 --infodir=DIR info documentation in DIR [PREFIX/info]
230 --mandir=DIR man documentation in DIR [PREFIX/man]
231 --srcdir=DIR find the sources in DIR [configure dir or ..]
232 --program-prefix=PREFIX prepend PREFIX to installed program names
233 --program-suffix=SUFFIX append SUFFIX to installed program names
234 --program-transform-name=PROGRAM
235 run sed PROGRAM on installed program names
239 --build=BUILD configure for building on BUILD [BUILD=HOST]
240 --host=HOST configure for HOST [guessed]
241 --target=TARGET configure for TARGET [TARGET=HOST]
242 Features and packages:
243 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
244 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
245 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
246 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
247 --x-includes=DIR X include files are in DIR
248 --x-libraries=DIR X library files are in DIR
250 if test -n "$ac_help"; then
251 echo "--enable and --with options recognized:$ac_help"
255 -host |
--host |
--hos |
--ho)
257 -host=* |
--host=* |
--hos=* |
--ho=*)
260 -includedir |
--includedir |
--includedi |
--included |
--include \
261 |
--includ |
--inclu |
--incl |
--inc)
262 ac_prev
=includedir
;;
263 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
264 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
265 includedir
="$ac_optarg" ;;
267 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
269 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
270 infodir
="$ac_optarg" ;;
272 -libdir |
--libdir |
--libdi |
--libd)
274 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
275 libdir
="$ac_optarg" ;;
277 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
278 |
--libexe |
--libex |
--libe)
279 ac_prev
=libexecdir
;;
280 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
281 |
--libexe=* |
--libex=* |
--libe=*)
282 libexecdir
="$ac_optarg" ;;
284 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
285 |
--localstate |
--localstat |
--localsta |
--localst \
286 |
--locals |
--local |
--loca |
--loc |
--lo)
287 ac_prev
=localstatedir
;;
288 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
289 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
290 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
291 localstatedir
="$ac_optarg" ;;
293 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
295 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
296 mandir
="$ac_optarg" ;;
299 # Obsolete; use --without-fp.
302 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
306 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
307 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
310 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
311 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
312 |
--oldin |
--oldi |
--old |
--ol |
--o)
313 ac_prev
=oldincludedir
;;
314 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
315 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
316 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
317 oldincludedir
="$ac_optarg" ;;
319 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
321 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
322 prefix
="$ac_optarg" ;;
324 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
325 |
--program-pre |
--program-pr |
--program-p)
326 ac_prev
=program_prefix
;;
327 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
328 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
329 program_prefix
="$ac_optarg" ;;
331 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
332 |
--program-suf |
--program-su |
--program-s)
333 ac_prev
=program_suffix
;;
334 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
335 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
336 program_suffix
="$ac_optarg" ;;
338 -program-transform-name |
--program-transform-name \
339 |
--program-transform-nam |
--program-transform-na \
340 |
--program-transform-n |
--program-transform- \
341 |
--program-transform |
--program-transfor \
342 |
--program-transfo |
--program-transf \
343 |
--program-trans |
--program-tran \
344 |
--progr-tra |
--program-tr |
--program-t)
345 ac_prev
=program_transform_name
;;
346 -program-transform-name=* |
--program-transform-name=* \
347 |
--program-transform-nam=* |
--program-transform-na=* \
348 |
--program-transform-n=* |
--program-transform-=* \
349 |
--program-transform=* |
--program-transfor=* \
350 |
--program-transfo=* |
--program-transf=* \
351 |
--program-trans=* |
--program-tran=* \
352 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
353 program_transform_name
="$ac_optarg" ;;
355 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
356 |
-silent |
--silent |
--silen |
--sile |
--sil)
359 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
361 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
363 sbindir
="$ac_optarg" ;;
365 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
366 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
367 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
369 ac_prev
=sharedstatedir
;;
370 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
371 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
372 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
374 sharedstatedir
="$ac_optarg" ;;
376 -site |
--site |
--sit)
378 -site=* |
--site=* |
--sit=*)
381 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
383 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
384 srcdir
="$ac_optarg" ;;
386 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
387 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
388 ac_prev
=sysconfdir
;;
389 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
390 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
391 sysconfdir
="$ac_optarg" ;;
393 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
395 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
396 target
="$ac_optarg" ;;
398 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
401 -version |
--version |
--versio |
--versi |
--vers)
402 echo "configure generated by autoconf version 2.13"
406 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
407 # Reject names that are not valid shell variable names.
408 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
409 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
411 ac_package
=`echo $ac_package| sed 's/-/_/g'`
416 eval "with_${ac_package}='$ac_optarg'" ;;
418 -without-* |
--without-*)
419 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
420 # Reject names that are not valid shell variable names.
421 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
422 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
424 ac_package
=`echo $ac_package| sed 's/-/_/g'`
425 eval "with_${ac_package}=no" ;;
428 # Obsolete; use --with-x.
431 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
432 |
--x-incl |
--x-inc |
--x-in |
--x-i)
433 ac_prev
=x_includes
;;
434 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
435 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
436 x_includes
="$ac_optarg" ;;
438 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
439 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
440 ac_prev
=x_libraries
;;
441 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
442 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
443 x_libraries
="$ac_optarg" ;;
445 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
449 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
450 echo "configure: warning: $ac_option: invalid host type" 1>&2
452 if test "x$nonopt" != xNONE
; then
453 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
461 if test -n "$ac_prev"; then
462 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
465 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
467 # File descriptor usage:
470 # 2 errors and warnings
471 # 3 some systems may open it to /dev/tty
472 # 4 used on the Kubota Titan
473 # 6 checking for... messages and results
474 # 5 compiler messages saved in config.log
475 if test "$silent" = yes; then
483 This file contains any messages produced by compilers while
484 running configure, to aid debugging if configure makes a mistake.
487 # Strip out --no-create and --no-recursion so they do not pile up.
488 # Also quote any args containing shell metacharacters.
493 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
494 |
--no-cr |
--no-c) ;;
495 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
496 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
497 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
498 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
499 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
504 # Only set these to C if already set. These must not be set unconditionally
505 # because not all systems understand e.g. LANG=C (notably SCO).
506 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
507 # Non-C LC_CTYPE values break the ctype check.
508 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
509 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
510 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
511 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
513 # confdefs.h avoids OS command line length limits that DEFS can exceed.
514 rm -rf conftest
* confdefs.h
515 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
518 # A filename unique to this package, relative to the directory that
519 # configure is in, which we can look for to find out if srcdir is correct.
520 ac_unique_file
=tree.c
522 # Find the source files, if location was not specified.
523 if test -z "$srcdir"; then
524 ac_srcdir_defaulted
=yes
525 # Try the directory containing this script, then its parent.
527 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
528 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
530 if test ! -r $srcdir/$ac_unique_file; then
534 ac_srcdir_defaulted
=no
536 if test ! -r $srcdir/$ac_unique_file; then
537 if test "$ac_srcdir_defaulted" = yes; then
538 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
540 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
543 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
545 # Prefer explicitly selected file to automatically selected ones.
546 if test -z "$CONFIG_SITE"; then
547 if test "x$prefix" != xNONE
; then
548 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
550 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
553 for ac_site_file
in $CONFIG_SITE; do
554 if test -r "$ac_site_file"; then
555 echo "loading site script $ac_site_file"
560 if test -r "$cache_file"; then
561 echo "loading cache $cache_file"
564 echo "creating cache $cache_file"
569 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
570 ac_cpp
='$CPP $CPPFLAGS'
571 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
572 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
573 cross_compiling
=$ac_cv_prog_cc_cross
577 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
578 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
579 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
586 ac_n
= ac_c
='\c' ac_t
=
594 symbolic_link
='ln -s'
597 # Check for bogus environment variables.
598 # Test if LIBRARY_PATH contains the notation for the current directory
599 # since this would lead to problems installing/building glibc.
600 # LIBRARY_PATH contains the current directory if one of the following
602 # - one of the terminals (":" and ";") is the first or last sign
603 # - two terminals occur directly after each other
604 # - the path contains an element with a dot in it
605 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
606 echo "configure:607: checking LIBRARY_PATH variable" >&5
607 case ${LIBRARY_PATH} in
608 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
609 library_path_setting
="contains current directory"
612 library_path_setting
="ok"
615 echo "$ac_t""$library_path_setting" 1>&6
616 if test "$library_path_setting" != "ok"; then
617 { echo "configure: error:
618 *** LIBRARY_PATH shouldn't contain the current directory when
619 *** building gcc. Please change the environment variable
620 *** and run configure again." 1>&2; exit 1; }
623 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
624 # since this would lead to problems installing/building glibc.
625 # GCC_EXEC_PREFIX contains the current directory if one of the following
627 # - one of the terminals (":" and ";") is the first or last sign
628 # - two terminals occur directly after each other
629 # - the path contains an element with a dot in it
630 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
631 echo "configure:632: checking GCC_EXEC_PREFIX variable" >&5
632 case ${GCC_EXEC_PREFIX} in
633 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
634 gcc_exec_prefix_setting
="contains current directory"
637 gcc_exec_prefix_setting
="ok"
640 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
641 if test "$gcc_exec_prefix_setting" != "ok"; then
642 { echo "configure: error:
643 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
644 *** building gcc. Please change the environment variable
645 *** and run configure again." 1>&2; exit 1; }
648 # Check for additional parameters
651 # Check whether --with-gnu-ld or --without-gnu-ld was given.
652 if test "${with_gnu_ld+set}" = set; then
653 withval
="$with_gnu_ld"
654 gnu_ld_flag
="$with_gnu_ld"
660 # With pre-defined ld
661 # Check whether --with-ld or --without-ld was given.
662 if test "${with_ld+set}" = set; then
664 DEFAULT_LINKER
="$with_ld"
667 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
668 if test ! -x "$DEFAULT_LINKER"; then
669 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
670 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
673 cat >> confdefs.h
<<EOF
674 #define DEFAULT_LINKER "$DEFAULT_LINKER"
680 # Check whether --with-gnu-as or --without-gnu-as was given.
681 if test "${with_gnu_as+set}" = set; then
682 withval
="$with_gnu_as"
683 gas_flag
="$with_gnu_as"
689 # Check whether --with-as or --without-as was given.
690 if test "${with_as+set}" = set; then
692 DEFAULT_ASSEMBLER
="$with_as"
695 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
696 if test ! -x "$DEFAULT_ASSEMBLER"; then
697 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
698 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
701 cat >> confdefs.h
<<EOF
702 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
708 # Check whether --with-stabs or --without-stabs was given.
709 if test "${with_stabs+set}" = set; then
710 withval
="$with_stabs"
718 # Check whether --with-elf or --without-elf was given.
719 if test "${with_elf+set}" = set; then
727 # Specify the local prefix
729 # Check whether --with-local-prefix or --without-local-prefix was given.
730 if test "${with_local_prefix+set}" = set; then
731 withval
="$with_local_prefix"
733 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
735 *) local_prefix
=$with_local_prefix ;;
740 # Default local prefix if it is empty
741 if test x
$local_prefix = x
; then
742 local_prefix
=/usr
/local
745 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
746 # passed in by the toplevel make and thus we'd get different behavior
747 # depending on where we built the sources.
749 # Specify the g++ header file directory
750 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
751 if test "${with_gxx_include_dir+set}" = set; then
752 withval
="$with_gxx_include_dir"
754 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
756 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
761 if test x
${gcc_gxx_include_dir} = x
; then
762 if test x
${enable_version_specific_runtime_libs} = xyes
; then
763 gcc_gxx_include_dir
='${libsubdir}/include/g++'
765 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
766 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
770 # Enable expensive internal checks
771 # Check whether --enable-checking or --disable-checking was given.
772 if test "${enable_checking+set}" = set; then
773 enableval
="$enable_checking"
774 case "${enableval}" in
775 yes) cat >> confdefs.h
<<\EOF
776 #define ENABLE_CHECKING 1
779 cat >> confdefs.h
<<\EOF
780 #define ENABLE_TREE_CHECKING 1
783 cat >> confdefs.h
<<\EOF
784 #define ENABLE_RTL_CHECKING 1
788 *) IFS
="${IFS= }"; ac_save_IFS
="$IFS" IFS
="$IFS,"
789 set fnord
$enableval; shift
794 misc
) cat >> confdefs.h
<<\EOF
795 #define ENABLE_CHECKING 1
798 tree
) cat >> confdefs.h
<<\EOF
799 #define ENABLE_TREE_CHECKING 1
802 rtl
) cat >> confdefs.h
<<\EOF
803 #define ENABLE_RTL_CHECKING 1
806 gc
) cat >> confdefs.h
<<\EOF
807 #define ENABLE_GC_CHECKING 1
810 gcac
) cat >> confdefs.h
<<\EOF
811 #define ENABLE_GC_ALWAYS_COLLECT 1
814 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
822 # Check whether --enable-cpp or --disable-cpp was given.
823 if test "${enable_cpp+set}" = set; then
824 enableval
="$enable_cpp"
831 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
832 if test "${with_cpp_install_dir+set}" = set; then
833 withval
="$with_cpp_install_dir"
834 if test x
$withval = xyes
; then
835 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
836 elif test x
$withval != xno
; then
837 cpp_install_dir
=$withval
843 # Enable Multibyte Characters for C/C++
844 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
845 if test "${enable_c_mbchar+set}" = set; then
846 enableval
="$enable_c_mbchar"
847 if test x
$enable_c_mbchar != xno
; then
848 extra_c_flags
="${extra_c_flags} -DMULTIBYTE_CHARS=1"
854 # Pass with no value to take the default
855 # Pass with a value to specify a thread package
856 # Check whether --enable-threads or --disable-threads was given.
857 if test "${enable_threads+set}" = set; then
858 enableval
="$enable_threads"
859 if test x
$enable_threads = xno
; then
867 enable_threads_flag
=$enable_threads
868 # Check if a valid thread package
869 case x
${enable_threads_flag} in
872 target_thread_file
='single'
876 target_thread_file
=''
878 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
879 xsolaris | xwin32 | xdce | xvxworks
)
880 target_thread_file
=$enable_threads_flag
883 echo "$enable_threads is an unknown thread package" 1>&2
888 # Check whether --enable-objc-gc or --disable-objc-gc was given.
889 if test "${enable_objc_gc+set}" = set; then
890 enableval
="$enable_objc_gc"
891 if test x
$enable_objc_gc = xno
; then
901 # Check whether --with-dwarf2 or --without-dwarf2 was given.
902 if test "${with_dwarf2+set}" = set; then
903 withval
="$with_dwarf2"
904 dwarf2
="$with_dwarf2"
910 # Determine the host, build, and target systems
912 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
913 if test -f $ac_dir/install-sh
; then
915 ac_install_sh
="$ac_aux_dir/install-sh -c"
917 elif test -f $ac_dir/install.sh
; then
919 ac_install_sh
="$ac_aux_dir/install.sh -c"
923 if test -z "$ac_aux_dir"; then
924 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
926 ac_config_guess
=$ac_aux_dir/config.guess
927 ac_config_sub
=$ac_aux_dir/config.sub
928 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
931 # Do some error checking and defaulting for the host and target type.
933 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
936 # 1. You are not allowed to specify --host, --target, and nonopt at the
938 # 2. Host defaults to nonopt.
939 # 3. If nonopt is not specified, then host defaults to the current host,
940 # as determined by config.guess.
941 # 4. Target and build default to nonopt.
942 # 5. If nonopt is not specified, then target and build default to host.
944 # The aliases save the names the user supplied, while $host etc.
945 # will get canonicalized.
946 case $host---$target---$nonopt in
947 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
948 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
952 # Make sure we can run config.sub.
953 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
954 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
957 echo $ac_n "checking host system type""... $ac_c" 1>&6
958 echo "configure:959: checking host system type" >&5
961 case "$host_alias" in
965 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
966 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
968 *) host_alias
=$nonopt ;;
972 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
973 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
974 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
975 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
976 echo "$ac_t""$host" 1>&6
978 echo $ac_n "checking target system type""... $ac_c" 1>&6
979 echo "configure:980: checking target system type" >&5
982 case "$target_alias" in
985 NONE
) target_alias
=$host_alias ;;
986 *) target_alias
=$nonopt ;;
990 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
991 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
992 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
993 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
994 echo "$ac_t""$target" 1>&6
996 echo $ac_n "checking build system type""... $ac_c" 1>&6
997 echo "configure:998: checking build system type" >&5
1000 case "$build_alias" in
1003 NONE
) build_alias
=$host_alias ;;
1004 *) build_alias
=$nonopt ;;
1008 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1009 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1010 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1011 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1012 echo "$ac_t""$build" 1>&6
1014 test "$host_alias" != "$target_alias" &&
1015 test "$program_prefix$program_suffix$program_transform_name" = \
1017 program_prefix
=${target_alias}-
1020 # Find the native compiler
1021 # Extract the first word of "gcc", so it can be a program name with args.
1022 set dummy gcc
; ac_word
=$2
1023 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1024 echo "configure:1025: checking for $ac_word" >&5
1025 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1026 echo $ac_n "(cached) $ac_c" 1>&6
1028 if test -n "$CC"; then
1029 ac_cv_prog_CC
="$CC" # Let the user override the test.
1031 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1033 for ac_dir
in $ac_dummy; do
1034 test -z "$ac_dir" && ac_dir
=.
1035 if test -f $ac_dir/$ac_word; then
1044 if test -n "$CC"; then
1045 echo "$ac_t""$CC" 1>&6
1047 echo "$ac_t""no" 1>&6
1050 if test -z "$CC"; then
1051 # Extract the first word of "cc", so it can be a program name with args.
1052 set dummy cc
; ac_word
=$2
1053 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1054 echo "configure:1055: checking for $ac_word" >&5
1055 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1056 echo $ac_n "(cached) $ac_c" 1>&6
1058 if test -n "$CC"; then
1059 ac_cv_prog_CC
="$CC" # Let the user override the test.
1061 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1064 for ac_dir
in $ac_dummy; do
1065 test -z "$ac_dir" && ac_dir
=.
1066 if test -f $ac_dir/$ac_word; then
1067 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1068 ac_prog_rejected
=yes
1076 if test $ac_prog_rejected = yes; then
1077 # We found a bogon in the path, so make sure we never use it.
1078 set dummy
$ac_cv_prog_CC
1080 if test $# -gt 0; then
1081 # We chose a different compiler from the bogus one.
1082 # However, it has the same basename, so the bogon will be chosen
1083 # first if we set CC to just the basename; use the full file name.
1085 set dummy
"$ac_dir/$ac_word" "$@"
1093 if test -n "$CC"; then
1094 echo "$ac_t""$CC" 1>&6
1096 echo "$ac_t""no" 1>&6
1099 if test -z "$CC"; then
1100 case "`uname -s`" in
1102 # Extract the first word of "cl", so it can be a program name with args.
1103 set dummy cl
; ac_word
=$2
1104 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1105 echo "configure:1106: checking for $ac_word" >&5
1106 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1107 echo $ac_n "(cached) $ac_c" 1>&6
1109 if test -n "$CC"; then
1110 ac_cv_prog_CC
="$CC" # Let the user override the test.
1112 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1114 for ac_dir
in $ac_dummy; do
1115 test -z "$ac_dir" && ac_dir
=.
1116 if test -f $ac_dir/$ac_word; then
1125 if test -n "$CC"; then
1126 echo "$ac_t""$CC" 1>&6
1128 echo "$ac_t""no" 1>&6
1133 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1136 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1137 echo "configure:1138: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1140 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1141 ac_cpp
='$CPP $CPPFLAGS'
1142 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1143 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1144 cross_compiling
=$ac_cv_prog_cc_cross
1146 cat > conftest.
$ac_ext << EOF
1148 #line 1149 "configure"
1149 #include "confdefs.h"
1153 if { (eval echo configure
:1154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1154 ac_cv_prog_cc_works
=yes
1155 # If we can't run a trivial program, we are probably using a cross compiler.
1156 if (.
/conftest
; exit) 2>/dev
/null
; then
1157 ac_cv_prog_cc_cross
=no
1159 ac_cv_prog_cc_cross
=yes
1162 echo "configure: failed program was:" >&5
1163 cat conftest.
$ac_ext >&5
1164 ac_cv_prog_cc_works
=no
1168 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1169 ac_cpp
='$CPP $CPPFLAGS'
1170 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1171 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1172 cross_compiling
=$ac_cv_prog_cc_cross
1174 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1175 if test $ac_cv_prog_cc_works = no
; then
1176 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1178 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1179 echo "configure:1180: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1180 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1181 cross_compiling
=$ac_cv_prog_cc_cross
1183 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1184 echo "configure:1185: checking whether we are using GNU C" >&5
1185 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1186 echo $ac_n "(cached) $ac_c" 1>&6
1188 cat > conftest.c
<<EOF
1193 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1200 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1202 if test $ac_cv_prog_gcc = yes; then
1208 ac_test_CFLAGS
="${CFLAGS+set}"
1209 ac_save_CFLAGS
="$CFLAGS"
1211 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1212 echo "configure:1213: checking whether ${CC-cc} accepts -g" >&5
1213 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1214 echo $ac_n "(cached) $ac_c" 1>&6
1216 echo 'void f(){}' > conftest.c
1217 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1226 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1227 if test "$ac_test_CFLAGS" = set; then
1228 CFLAGS
="$ac_save_CFLAGS"
1229 elif test $ac_cv_prog_cc_g = yes; then
1230 if test "$GCC" = yes; then
1236 if test "$GCC" = yes; then
1243 echo $ac_n "checking for long double""... $ac_c" 1>&6
1244 echo "configure:1245: checking for long double" >&5
1245 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1246 echo $ac_n "(cached) $ac_c" 1>&6
1248 if test "$GCC" = yes; then
1249 gcc_cv_c_long_double
=yes
1251 cat > conftest.
$ac_ext <<EOF
1252 #line 1253 "configure"
1253 #include "confdefs.h"
1256 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1257 long double foo = 0.0;
1258 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1259 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1262 if { (eval echo configure
:1263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1264 gcc_cv_c_long_double
=yes
1266 echo "configure: failed program was:" >&5
1267 cat conftest.
$ac_ext >&5
1269 gcc_cv_c_long_double
=no
1275 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1276 if test $gcc_cv_c_long_double = yes; then
1277 cat >> confdefs.h
<<\EOF
1278 #define HAVE_LONG_DOUBLE 1
1284 # If the native compiler is GCC, we can enable warnings even in stage1.
1285 # That's useful for people building cross-compilers, or just running a
1287 if test "x$GCC" = "xyes"; then
1288 stage1_warn_cflags
='$(WARN_CFLAGS)'
1290 stage1_warn_cflags
=""
1294 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1295 echo "configure:1296: checking whether ${MAKE-make} sets \${MAKE}" >&5
1296 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1297 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1298 echo $ac_n "(cached) $ac_c" 1>&6
1300 cat > conftestmake
<<\EOF
1302 @
echo 'ac_maketemp="${MAKE}"'
1304 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1305 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1306 if test -n "$ac_maketemp"; then
1307 eval ac_cv_prog_make_
${ac_make}_set
=yes
1309 eval ac_cv_prog_make_
${ac_make}_set
=no
1313 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1314 echo "$ac_t""yes" 1>&6
1317 echo "$ac_t""no" 1>&6
1318 SET_MAKE
="MAKE=${MAKE-make}"
1322 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1323 echo "configure:1324: checking whether a default assembler was specified" >&5
1324 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1325 if test x
"$gas_flag" = x
"no"; then
1326 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1328 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1331 echo "$ac_t""no" 1>&6
1334 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1335 echo "configure:1336: checking whether a default linker was specified" >&5
1336 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1337 if test x
"$gnu_ld_flag" = x
"no"; then
1338 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1340 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1343 echo "$ac_t""no" 1>&6
1346 # Find some useful tools
1347 for ac_prog
in mawk gawk nawk
awk
1349 # Extract the first word of "$ac_prog", so it can be a program name with args.
1350 set dummy
$ac_prog; ac_word
=$2
1351 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1352 echo "configure:1353: checking for $ac_word" >&5
1353 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1354 echo $ac_n "(cached) $ac_c" 1>&6
1356 if test -n "$AWK"; then
1357 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1359 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1361 for ac_dir
in $ac_dummy; do
1362 test -z "$ac_dir" && ac_dir
=.
1363 if test -f $ac_dir/$ac_word; then
1364 ac_cv_prog_AWK
="$ac_prog"
1371 AWK
="$ac_cv_prog_AWK"
1372 if test -n "$AWK"; then
1373 echo "$ac_t""$AWK" 1>&6
1375 echo "$ac_t""no" 1>&6
1378 test -n "$AWK" && break
1381 # Extract the first word of "flex", so it can be a program name with args.
1382 set dummy flex
; ac_word
=$2
1383 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1384 echo "configure:1385: checking for $ac_word" >&5
1385 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1386 echo $ac_n "(cached) $ac_c" 1>&6
1388 if test -n "$LEX"; then
1389 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1391 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1393 for ac_dir
in $ac_dummy; do
1394 test -z "$ac_dir" && ac_dir
=.
1395 if test -f $ac_dir/$ac_word; then
1396 ac_cv_prog_LEX
="flex"
1401 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1404 LEX
="$ac_cv_prog_LEX"
1405 if test -n "$LEX"; then
1406 echo "$ac_t""$LEX" 1>&6
1408 echo "$ac_t""no" 1>&6
1411 if test -z "$LEXLIB"
1417 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1418 echo "configure:1419: checking for yywrap in -l$ac_lib" >&5
1419 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1420 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1421 echo $ac_n "(cached) $ac_c" 1>&6
1423 ac_save_LIBS
="$LIBS"
1424 LIBS
="-l$ac_lib $LIBS"
1425 cat > conftest.
$ac_ext <<EOF
1426 #line 1427 "configure"
1427 #include "confdefs.h"
1428 /* Override any gcc2 internal prototype to avoid an error. */
1429 /* We use char because int might match the return type of a gcc2
1430 builtin and then its argument prototype would still apply. */
1437 if { (eval echo configure
:1438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1439 eval "ac_cv_lib_$ac_lib_var=yes"
1441 echo "configure: failed program was:" >&5
1442 cat conftest.
$ac_ext >&5
1444 eval "ac_cv_lib_$ac_lib_var=no"
1447 LIBS
="$ac_save_LIBS"
1450 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1451 echo "$ac_t""yes" 1>&6
1454 echo "$ac_t""no" 1>&6
1459 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1460 echo "configure:1461: checking whether ln works" >&5
1461 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1462 echo $ac_n "(cached) $ac_c" 1>&6
1464 rm -f conftestdata_t
1465 echo >conftestdata_f
1466 if ln conftestdata_f conftestdata_t
2>/dev
/null
1470 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1472 gcc_cv_prog_LN
="ln -s"
1477 rm -f conftestdata_f conftestdata_t
1480 LN
="$gcc_cv_prog_LN"
1481 if test "$gcc_cv_prog_LN" = "ln"; then
1482 echo "$ac_t""yes" 1>&6
1484 if test "$gcc_cv_prog_LN" = "ln -s"; then
1485 echo "$ac_t""no, using ln -s" 1>&6
1487 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1491 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1492 echo "configure:1493: checking whether ln -s works" >&5
1493 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1494 echo $ac_n "(cached) $ac_c" 1>&6
1496 rm -f conftestdata_t
1497 echo >conftestdata_f
1498 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1500 gcc_cv_prog_LN_S
="ln -s"
1502 if ln conftestdata_f conftestdata_t
2>/dev
/null
1509 rm -f conftestdata_f conftestdata_t
1512 LN_S
="$gcc_cv_prog_LN_S"
1513 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1514 echo "$ac_t""yes" 1>&6
1516 if test "$gcc_cv_prog_LN_S" = "ln"; then
1517 echo "$ac_t""no, using ln" 1>&6
1519 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1523 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1524 echo "configure:1525: checking for volatile" >&5
1525 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1526 echo $ac_n "(cached) $ac_c" 1>&6
1528 cat > conftest.
$ac_ext <<EOF
1529 #line 1530 "configure"
1530 #include "confdefs.h"
1536 if { (eval echo configure
:1537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1538 gcc_cv_c_volatile
=yes
1540 echo "configure: failed program was:" >&5
1541 cat conftest.
$ac_ext >&5
1543 gcc_cv_c_volatile
=no
1548 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1549 if test $gcc_cv_c_volatile = yes ; then
1550 cat >> confdefs.h
<<\EOF
1551 #define HAVE_VOLATILE 1
1556 # Extract the first word of "ranlib", so it can be a program name with args.
1557 set dummy ranlib
; ac_word
=$2
1558 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1559 echo "configure:1560: checking for $ac_word" >&5
1560 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1561 echo $ac_n "(cached) $ac_c" 1>&6
1563 if test -n "$RANLIB"; then
1564 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1566 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1568 for ac_dir
in $ac_dummy; do
1569 test -z "$ac_dir" && ac_dir
=.
1570 if test -f $ac_dir/$ac_word; then
1571 ac_cv_prog_RANLIB
="ranlib"
1576 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1579 RANLIB
="$ac_cv_prog_RANLIB"
1580 if test -n "$RANLIB"; then
1581 echo "$ac_t""$RANLIB" 1>&6
1583 echo "$ac_t""no" 1>&6
1586 for ac_prog
in 'bison -y' byacc
1588 # Extract the first word of "$ac_prog", so it can be a program name with args.
1589 set dummy
$ac_prog; ac_word
=$2
1590 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1591 echo "configure:1592: checking for $ac_word" >&5
1592 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1593 echo $ac_n "(cached) $ac_c" 1>&6
1595 if test -n "$YACC"; then
1596 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1598 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1600 for ac_dir
in $ac_dummy; do
1601 test -z "$ac_dir" && ac_dir
=.
1602 if test -f $ac_dir/$ac_word; then
1603 ac_cv_prog_YACC
="$ac_prog"
1610 YACC
="$ac_cv_prog_YACC"
1611 if test -n "$YACC"; then
1612 echo "$ac_t""$YACC" 1>&6
1614 echo "$ac_t""no" 1>&6
1617 test -n "$YACC" && break
1619 test -n "$YACC" || YACC
="yacc"
1621 # Find a good install program. We prefer a C program (faster),
1622 # so one script is as good as another. But avoid the broken or
1623 # incompatible versions:
1624 # SysV /etc/install, /usr/sbin/install
1625 # SunOS /usr/etc/install
1626 # IRIX /sbin/install
1628 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1629 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1630 # ./install, which can be erroneously created by make from ./install.sh.
1631 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1632 echo "configure:1633: checking for a BSD compatible install" >&5
1633 if test -z "$INSTALL"; then
1634 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1635 echo $ac_n "(cached) $ac_c" 1>&6
1637 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1638 for ac_dir
in $PATH; do
1639 # Account for people who put trailing slashes in PATH elements.
1641 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1643 # OSF1 and SCO ODT 3.0 have their own names for install.
1644 for ac_prog
in ginstall scoinst
install; do
1645 if test -f $ac_dir/$ac_prog; then
1646 if test $ac_prog = install &&
1647 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1648 # AIX install. It has an incompatible calling convention.
1649 # OSF/1 installbsd also uses dspmsg, but is usable.
1652 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1663 if test "${ac_cv_path_install+set}" = set; then
1664 INSTALL
="$ac_cv_path_install"
1666 # As a last resort, use the slow shell script. We don't cache a
1667 # path for INSTALL within a source directory, because that will
1668 # break other packages using the cache if that directory is
1669 # removed, or if the path is relative.
1670 INSTALL
="$ac_install_sh"
1673 echo "$ac_t""$INSTALL" 1>&6
1675 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1676 # It thinks the first close brace ends the variable substitution.
1677 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1679 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1682 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1683 echo "configure:1684: checking how to run the C preprocessor" >&5
1684 # On Suns, sometimes $CPP names a directory.
1685 if test -n "$CPP" && test -d "$CPP"; then
1688 if test -z "$CPP"; then
1689 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1690 echo $ac_n "(cached) $ac_c" 1>&6
1692 # This must be in double quotes, not single quotes, because CPP may get
1693 # substituted into the Makefile and "${CC-cc}" will confuse make.
1695 # On the NeXT, cc -E runs the code through the compiler's parser,
1696 # not just through cpp.
1697 cat > conftest.
$ac_ext <<EOF
1698 #line 1699 "configure"
1699 #include "confdefs.h"
1703 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1704 { (eval echo configure
:1705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1705 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1706 if test -z "$ac_err"; then
1710 echo "configure: failed program was:" >&5
1711 cat conftest.
$ac_ext >&5
1713 CPP
="${CC-cc} -E -traditional-cpp"
1714 cat > conftest.
$ac_ext <<EOF
1715 #line 1716 "configure"
1716 #include "confdefs.h"
1720 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1721 { (eval echo configure
:1722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1722 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1723 if test -z "$ac_err"; then
1727 echo "configure: failed program was:" >&5
1728 cat conftest.
$ac_ext >&5
1730 CPP
="${CC-cc} -nologo -E"
1731 cat > conftest.
$ac_ext <<EOF
1732 #line 1733 "configure"
1733 #include "confdefs.h"
1737 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1738 { (eval echo configure
:1739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1739 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1740 if test -z "$ac_err"; then
1744 echo "configure: failed program was:" >&5
1745 cat conftest.
$ac_ext >&5
1754 ac_cv_prog_CPP
="$CPP"
1756 CPP
="$ac_cv_prog_CPP"
1758 ac_cv_prog_CPP
="$CPP"
1760 echo "$ac_t""$CPP" 1>&6
1762 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1763 echo "configure:1764: checking for ANSI C header files" >&5
1764 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1765 echo $ac_n "(cached) $ac_c" 1>&6
1767 cat > conftest.
$ac_ext <<EOF
1768 #line 1769 "configure"
1769 #include "confdefs.h"
1775 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1776 { (eval echo configure
:1777: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1777 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1778 if test -z "$ac_err"; then
1780 ac_cv_header_stdc
=yes
1783 echo "configure: failed program was:" >&5
1784 cat conftest.
$ac_ext >&5
1786 ac_cv_header_stdc
=no
1790 if test $ac_cv_header_stdc = yes; then
1791 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1792 cat > conftest.
$ac_ext <<EOF
1793 #line 1794 "configure"
1794 #include "confdefs.h"
1797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1798 egrep "memchr" >/dev
/null
2>&1; then
1802 ac_cv_header_stdc
=no
1808 if test $ac_cv_header_stdc = yes; then
1809 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1810 cat > conftest.
$ac_ext <<EOF
1811 #line 1812 "configure"
1812 #include "confdefs.h"
1815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1816 egrep "free" >/dev
/null
2>&1; then
1820 ac_cv_header_stdc
=no
1826 if test $ac_cv_header_stdc = yes; then
1827 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1828 if test "$cross_compiling" = yes; then
1831 cat > conftest.
$ac_ext <<EOF
1832 #line 1833 "configure"
1833 #include "confdefs.h"
1835 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1836 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1837 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1838 int main () { int i; for (i = 0; i < 256; i++)
1839 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1843 if { (eval echo configure
:1844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1847 echo "configure: failed program was:" >&5
1848 cat conftest.
$ac_ext >&5
1850 ac_cv_header_stdc
=no
1858 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1859 if test $ac_cv_header_stdc = yes; then
1860 cat >> confdefs.h
<<\EOF
1861 #define STDC_HEADERS 1
1866 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1867 echo "configure:1868: checking whether time.h and sys/time.h may both be included" >&5
1868 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1869 echo $ac_n "(cached) $ac_c" 1>&6
1871 cat > conftest.
$ac_ext <<EOF
1872 #line 1873 "configure"
1873 #include "confdefs.h"
1874 #include <sys/types.h>
1875 #include <sys/time.h>
1881 if { (eval echo configure
:1882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1883 ac_cv_header_time
=yes
1885 echo "configure: failed program was:" >&5
1886 cat conftest.
$ac_ext >&5
1888 ac_cv_header_time
=no
1893 echo "$ac_t""$ac_cv_header_time" 1>&6
1894 if test $ac_cv_header_time = yes; then
1895 cat >> confdefs.h
<<\EOF
1896 #define TIME_WITH_SYS_TIME 1
1901 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
1902 echo "configure:1903: checking whether string.h and strings.h may both be included" >&5
1903 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
1904 echo $ac_n "(cached) $ac_c" 1>&6
1906 cat > conftest.
$ac_ext <<EOF
1907 #line 1908 "configure"
1908 #include "confdefs.h"
1910 #include <strings.h>
1915 if { (eval echo configure
:1916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1917 gcc_cv_header_string
=yes
1919 echo "configure: failed program was:" >&5
1920 cat conftest.
$ac_ext >&5
1922 gcc_cv_header_string
=no
1927 echo "$ac_t""$gcc_cv_header_string" 1>&6
1928 if test $gcc_cv_header_string = yes; then
1929 cat >> confdefs.h
<<\EOF
1930 #define STRING_WITH_STRINGS 1
1935 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1936 echo "configure:1937: checking for sys/wait.h that is POSIX.1 compatible" >&5
1937 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1938 echo $ac_n "(cached) $ac_c" 1>&6
1940 cat > conftest.
$ac_ext <<EOF
1941 #line 1942 "configure"
1942 #include "confdefs.h"
1943 #include <sys/types.h>
1944 #include <sys/wait.h>
1946 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1949 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1954 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1957 if { (eval echo configure
:1958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1959 ac_cv_header_sys_wait_h
=yes
1961 echo "configure: failed program was:" >&5
1962 cat conftest.
$ac_ext >&5
1964 ac_cv_header_sys_wait_h
=no
1969 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1970 if test $ac_cv_header_sys_wait_h = yes; then
1971 cat >> confdefs.h
<<\EOF
1972 #define HAVE_SYS_WAIT_H 1
1977 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
1978 fcntl.h unistd.h stab.h sys
/file.h sys
/time.h \
1979 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
1982 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1983 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1984 echo "configure:1985: checking for $ac_hdr" >&5
1985 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1986 echo $ac_n "(cached) $ac_c" 1>&6
1988 cat > conftest.
$ac_ext <<EOF
1989 #line 1990 "configure"
1990 #include "confdefs.h"
1993 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1994 { (eval echo configure
:1995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1995 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1996 if test -z "$ac_err"; then
1998 eval "ac_cv_header_$ac_safe=yes"
2001 echo "configure: failed program was:" >&5
2002 cat conftest.
$ac_ext >&5
2004 eval "ac_cv_header_$ac_safe=no"
2008 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2009 echo "$ac_t""yes" 1>&6
2010 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2011 cat >> confdefs.h
<<EOF
2012 #define $ac_tr_hdr 1
2016 echo "$ac_t""no" 1>&6
2021 # Check for thread headers.
2022 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
2023 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2024 echo "configure:2025: checking for thread.h" >&5
2025 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2026 echo $ac_n "(cached) $ac_c" 1>&6
2028 cat > conftest.
$ac_ext <<EOF
2029 #line 2030 "configure"
2030 #include "confdefs.h"
2033 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2034 { (eval echo configure
:2035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2035 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2036 if test -z "$ac_err"; then
2038 eval "ac_cv_header_$ac_safe=yes"
2041 echo "configure: failed program was:" >&5
2042 cat conftest.
$ac_ext >&5
2044 eval "ac_cv_header_$ac_safe=no"
2048 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2049 echo "$ac_t""yes" 1>&6
2052 echo "$ac_t""no" 1>&6
2056 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2057 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2058 echo "configure:2059: checking for pthread.h" >&5
2059 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2060 echo $ac_n "(cached) $ac_c" 1>&6
2062 cat > conftest.
$ac_ext <<EOF
2063 #line 2064 "configure"
2064 #include "confdefs.h"
2065 #include <pthread.h>
2067 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2068 { (eval echo configure
:2069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2069 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2070 if test -z "$ac_err"; then
2072 eval "ac_cv_header_$ac_safe=yes"
2075 echo "configure: failed program was:" >&5
2076 cat conftest.
$ac_ext >&5
2078 eval "ac_cv_header_$ac_safe=no"
2082 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2083 echo "$ac_t""yes" 1>&6
2086 echo "$ac_t""no" 1>&6
2091 # See if GNAT has been installed
2092 # Extract the first word of "gnatbind", so it can be a program name with args.
2093 set dummy gnatbind
; ac_word
=$2
2094 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2095 echo "configure:2096: checking for $ac_word" >&5
2096 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2097 echo $ac_n "(cached) $ac_c" 1>&6
2099 if test -n "$gnat"; then
2100 ac_cv_prog_gnat
="$gnat" # Let the user override the test.
2102 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2104 for ac_dir
in $ac_dummy; do
2105 test -z "$ac_dir" && ac_dir
=.
2106 if test -f $ac_dir/$ac_word; then
2107 ac_cv_prog_gnat
="yes"
2112 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat
="no"
2115 gnat
="$ac_cv_prog_gnat"
2116 if test -n "$gnat"; then
2117 echo "$ac_t""$gnat" 1>&6
2119 echo "$ac_t""no" 1>&6
2123 # See if the stage1 system preprocessor understands the ANSI C
2124 # preprocessor stringification operator.
2127 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
2128 echo "configure:2129: checking for preprocessor stringizing operator" >&5
2129 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
2130 echo $ac_n "(cached) $ac_c" 1>&6
2132 cat > conftest.
$ac_ext <<EOF
2133 #line 2134 "configure"
2134 #include "confdefs.h"
2138 char *s = x(teststring);
2141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2142 egrep "#teststring" >/dev
/null
2>&1; then
2144 ac_cv_c_stringize
=no
2147 ac_cv_c_stringize
=yes
2153 if test "${ac_cv_c_stringize}" = yes
2155 cat >> confdefs.h
<<\EOF
2156 #define HAVE_STRINGIZE 1
2160 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
2163 # Use <inttypes.h> only if it exists,
2164 # doesn't clash with <sys/types.h>, and declares intmax_t.
2165 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2166 echo "configure:2167: checking for inttypes.h" >&5
2167 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2168 echo $ac_n "(cached) $ac_c" 1>&6
2170 cat > conftest.
$ac_ext <<EOF
2171 #line 2172 "configure"
2172 #include "confdefs.h"
2173 #include <sys/types.h>
2174 #include <inttypes.h>
2179 if { (eval echo configure
:2180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2181 gcc_cv_header_inttypes_h
=yes
2183 echo "configure: failed program was:" >&5
2184 cat conftest.
$ac_ext >&5
2186 gcc_cv_header_inttypes_h
=no
2191 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2192 if test $gcc_cv_header_inttypes_h = yes; then
2193 cat >> confdefs.h
<<\EOF
2194 #define HAVE_INTTYPES_H 1
2200 # Determine if enumerated bitfields are unsigned. ISO C says they can
2201 # be either signed or unsigned.
2203 echo $ac_n "checking for unsigned enumerated bitfields""... $ac_c" 1>&6
2204 echo "configure:2205: checking for unsigned enumerated bitfields" >&5
2205 if eval "test \"`echo '$''{'gcc_cv_enum_bf_unsigned'+set}'`\" = set"; then
2206 echo $ac_n "(cached) $ac_c" 1>&6
2208 if test "$cross_compiling" = yes; then
2209 gcc_cv_enum_bf_unsigned
=yes
2211 cat > conftest.
$ac_ext <<EOF
2212 #line 2213 "configure"
2213 #include "confdefs.h"
2215 enum t { BLAH = 128 } ;
2216 struct s_t { enum t member : 8; } s ;
2220 if (s.member < 0) exit(1);
2225 if { (eval echo configure
:2226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2227 gcc_cv_enum_bf_unsigned
=yes
2229 echo "configure: failed program was:" >&5
2230 cat conftest.
$ac_ext >&5
2232 gcc_cv_enum_bf_unsigned
=no
2239 echo "$ac_t""$gcc_cv_enum_bf_unsigned" 1>&6
2240 echo "$ac_t""$gcc_cv_enum_bf_unsigned" 1>&6
2241 if test $gcc_cv_enum_bf_unsigned = yes; then
2242 cat >> confdefs.h
<<\EOF
2243 #define ENUM_BITFIELDS_ARE_UNSIGNED 1
2248 for ac_func
in strtoul bsearch putenv popen bcopy bzero bcmp \
2249 index rindex strchr strrchr
kill getrlimit setrlimit atoll atoq \
2250 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2251 fputs_unlocked getrusage valloc
2253 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2254 echo "configure:2255: checking for $ac_func" >&5
2255 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2256 echo $ac_n "(cached) $ac_c" 1>&6
2258 cat > conftest.
$ac_ext <<EOF
2259 #line 2260 "configure"
2260 #include "confdefs.h"
2261 /* System header to define __stub macros and hopefully few prototypes,
2262 which can conflict with char $ac_func(); below. */
2264 /* Override any gcc2 internal prototype to avoid an error. */
2265 /* We use char because int might match the return type of a gcc2
2266 builtin and then its argument prototype would still apply. */
2271 /* The GNU C library defines this for functions which it implements
2272 to always fail with ENOSYS. Some functions are actually named
2273 something starting with __ and the normal name is an alias. */
2274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2282 if { (eval echo configure
:2283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2284 eval "ac_cv_func_$ac_func=yes"
2286 echo "configure: failed program was:" >&5
2287 cat conftest.
$ac_ext >&5
2289 eval "ac_cv_func_$ac_func=no"
2294 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2295 echo "$ac_t""yes" 1>&6
2296 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2297 cat >> confdefs.h
<<EOF
2298 #define $ac_tr_func 1
2302 echo "$ac_t""no" 1>&6
2307 # Make sure wchar_t is available
2308 #AC_CHECK_TYPE(wchar_t, unsigned int)
2310 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2311 echo "configure:2312: checking for vprintf" >&5
2312 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2313 echo $ac_n "(cached) $ac_c" 1>&6
2315 cat > conftest.
$ac_ext <<EOF
2316 #line 2317 "configure"
2317 #include "confdefs.h"
2318 /* System header to define __stub macros and hopefully few prototypes,
2319 which can conflict with char vprintf(); below. */
2321 /* Override any gcc2 internal prototype to avoid an error. */
2322 /* We use char because int might match the return type of a gcc2
2323 builtin and then its argument prototype would still apply. */
2328 /* The GNU C library defines this for functions which it implements
2329 to always fail with ENOSYS. Some functions are actually named
2330 something starting with __ and the normal name is an alias. */
2331 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2339 if { (eval echo configure
:2340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2341 eval "ac_cv_func_vprintf=yes"
2343 echo "configure: failed program was:" >&5
2344 cat conftest.
$ac_ext >&5
2346 eval "ac_cv_func_vprintf=no"
2351 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2352 echo "$ac_t""yes" 1>&6
2353 cat >> confdefs.h
<<\EOF
2354 #define HAVE_VPRINTF 1
2358 echo "$ac_t""no" 1>&6
2361 if test "$ac_cv_func_vprintf" != yes; then
2362 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2363 echo "configure:2364: checking for _doprnt" >&5
2364 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2365 echo $ac_n "(cached) $ac_c" 1>&6
2367 cat > conftest.
$ac_ext <<EOF
2368 #line 2369 "configure"
2369 #include "confdefs.h"
2370 /* System header to define __stub macros and hopefully few prototypes,
2371 which can conflict with char _doprnt(); below. */
2373 /* Override any gcc2 internal prototype to avoid an error. */
2374 /* We use char because int might match the return type of a gcc2
2375 builtin and then its argument prototype would still apply. */
2380 /* The GNU C library defines this for functions which it implements
2381 to always fail with ENOSYS. Some functions are actually named
2382 something starting with __ and the normal name is an alias. */
2383 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2391 if { (eval echo configure
:2392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2393 eval "ac_cv_func__doprnt=yes"
2395 echo "configure: failed program was:" >&5
2396 cat conftest.
$ac_ext >&5
2398 eval "ac_cv_func__doprnt=no"
2403 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2404 echo "$ac_t""yes" 1>&6
2405 cat >> confdefs.h
<<\EOF
2406 #define HAVE_DOPRNT 1
2410 echo "$ac_t""no" 1>&6
2417 if test $ac_cv_func_vprintf != yes ; then
2419 if test $ac_cv_func__doprnt != yes ; then
2426 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2427 echo "configure:2428: checking whether the printf functions support %p" >&5
2428 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2429 echo $ac_n "(cached) $ac_c" 1>&6
2431 if test "$cross_compiling" = yes; then
2432 gcc_cv_func_printf_ptr
=no
2434 cat > conftest.
$ac_ext <<EOF
2435 #line 2436 "configure"
2436 #include "confdefs.h"
2442 char *p = buf, *q = NULL;
2443 sprintf(buf, "%p", p);
2444 sscanf(buf, "%p", &q);
2448 if { (eval echo configure
:2449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2450 gcc_cv_func_printf_ptr
=yes
2452 echo "configure: failed program was:" >&5
2453 cat conftest.
$ac_ext >&5
2455 gcc_cv_func_printf_ptr
=no
2460 rm -f core core.
* *.core
2463 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2464 if test $gcc_cv_func_printf_ptr = yes ; then
2465 cat >> confdefs.h
<<\EOF
2466 #define HAVE_PRINTF_PTR 1
2474 # Under some versions of uwin, vfork is notoriously buggy and the test
2475 # can hang configure; on other versions, vfork exists just as a stub.
2476 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2477 ac_cv_func_vfork_works
=no
2480 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2481 echo "configure:2482: checking for pid_t" >&5
2482 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2483 echo $ac_n "(cached) $ac_c" 1>&6
2485 cat > conftest.
$ac_ext <<EOF
2486 #line 2487 "configure"
2487 #include "confdefs.h"
2488 #include <sys/types.h>
2494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2495 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2497 ac_cv_type_pid_t
=yes
2505 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2506 if test $ac_cv_type_pid_t = no
; then
2507 cat >> confdefs.h
<<\EOF
2513 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2514 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2515 echo "configure:2516: checking for vfork.h" >&5
2516 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2517 echo $ac_n "(cached) $ac_c" 1>&6
2519 cat > conftest.
$ac_ext <<EOF
2520 #line 2521 "configure"
2521 #include "confdefs.h"
2524 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2525 { (eval echo configure
:2526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2526 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2527 if test -z "$ac_err"; then
2529 eval "ac_cv_header_$ac_safe=yes"
2532 echo "configure: failed program was:" >&5
2533 cat conftest.
$ac_ext >&5
2535 eval "ac_cv_header_$ac_safe=no"
2539 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2540 echo "$ac_t""yes" 1>&6
2541 cat >> confdefs.h
<<\EOF
2542 #define HAVE_VFORK_H 1
2546 echo "$ac_t""no" 1>&6
2549 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2550 echo "configure:2551: checking for working vfork" >&5
2551 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2552 echo $ac_n "(cached) $ac_c" 1>&6
2554 if test "$cross_compiling" = yes; then
2555 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2556 echo "configure:2557: checking for vfork" >&5
2557 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2558 echo $ac_n "(cached) $ac_c" 1>&6
2560 cat > conftest.
$ac_ext <<EOF
2561 #line 2562 "configure"
2562 #include "confdefs.h"
2563 /* System header to define __stub macros and hopefully few prototypes,
2564 which can conflict with char vfork(); below. */
2566 /* Override any gcc2 internal prototype to avoid an error. */
2567 /* We use char because int might match the return type of a gcc2
2568 builtin and then its argument prototype would still apply. */
2573 /* The GNU C library defines this for functions which it implements
2574 to always fail with ENOSYS. Some functions are actually named
2575 something starting with __ and the normal name is an alias. */
2576 #if defined (__stub_vfork) || defined (__stub___vfork)
2584 if { (eval echo configure
:2585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2586 eval "ac_cv_func_vfork=yes"
2588 echo "configure: failed program was:" >&5
2589 cat conftest.
$ac_ext >&5
2591 eval "ac_cv_func_vfork=no"
2596 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2597 echo "$ac_t""yes" 1>&6
2600 echo "$ac_t""no" 1>&6
2603 ac_cv_func_vfork_works
=$ac_cv_func_vfork
2605 cat > conftest.
$ac_ext <<EOF
2606 #line 2607 "configure"
2607 #include "confdefs.h"
2608 /* Thanks to Paul Eggert for this test. */
2610 #include <sys/types.h>
2611 #include <sys/stat.h>
2612 #ifdef HAVE_UNISTD_H
2618 /* On some sparc systems, changes by the child to local and incoming
2619 argument registers are propagated back to the parent.
2620 The compiler is told about this with #include <vfork.h>,
2621 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2622 Test for this by using a static variable whose address
2623 is put into a register that is clobbered by the vfork. */
2626 sparc_address_test (int arg)
2628 sparc_address_test (arg) int arg;
2646 pid_t parent = getpid ();
2649 sparc_address_test ();
2654 /* Here is another test for sparc vfork register problems.
2655 This test uses lots of local variables, at least
2656 as many local variables as main has allocated so far
2657 including compiler temporaries. 4 locals are enough for
2658 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2659 A buggy compiler should reuse the register of parent
2660 for one of the local variables, since it will think that
2661 parent can't possibly be used any more in this routine.
2662 Assigning to the local variable will thus munge parent
2663 in the parent process. */
2665 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2666 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2667 /* Convince the compiler that p..p7 are live; otherwise, it might
2668 use the same hardware register for all 8 local variables. */
2669 if (p != p1 || p != p2 || p != p3 || p != p4
2670 || p != p5 || p != p6 || p != p7)
2673 /* On some systems (e.g. IRIX 3.3),
2674 vfork doesn't separate parent from child file descriptors.
2675 If the child closes a descriptor before it execs or exits,
2676 this munges the parent's descriptor as well.
2677 Test for this by closing stdout in the child. */
2678 _exit(close(fileno(stdout)) != 0);
2683 while (wait(&status) != child)
2686 /* Was there some problem with vforking? */
2689 /* Did the child fail? (This shouldn't happen.) */
2692 /* Did the vfork/compiler bug occur? */
2693 || parent != getpid()
2695 /* Did the file descriptor bug occur? */
2696 || fstat(fileno(stdout), &st) != 0
2701 if { (eval echo configure
:2702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2703 ac_cv_func_vfork_works
=yes
2705 echo "configure: failed program was:" >&5
2706 cat conftest.
$ac_ext >&5
2708 ac_cv_func_vfork_works
=no
2715 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2716 if test $ac_cv_func_vfork_works = no
; then
2717 cat >> confdefs.h
<<\EOF
2723 for ac_hdr
in unistd.h
2725 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2726 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2727 echo "configure:2728: checking for $ac_hdr" >&5
2728 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2729 echo $ac_n "(cached) $ac_c" 1>&6
2731 cat > conftest.
$ac_ext <<EOF
2732 #line 2733 "configure"
2733 #include "confdefs.h"
2736 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2737 { (eval echo configure
:2738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2738 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2739 if test -z "$ac_err"; then
2741 eval "ac_cv_header_$ac_safe=yes"
2744 echo "configure: failed program was:" >&5
2745 cat conftest.
$ac_ext >&5
2747 eval "ac_cv_header_$ac_safe=no"
2751 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2752 echo "$ac_t""yes" 1>&6
2753 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2754 cat >> confdefs.h
<<EOF
2755 #define $ac_tr_hdr 1
2759 echo "$ac_t""no" 1>&6
2763 for ac_func
in getpagesize
2765 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2766 echo "configure:2767: checking for $ac_func" >&5
2767 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2768 echo $ac_n "(cached) $ac_c" 1>&6
2770 cat > conftest.
$ac_ext <<EOF
2771 #line 2772 "configure"
2772 #include "confdefs.h"
2773 /* System header to define __stub macros and hopefully few prototypes,
2774 which can conflict with char $ac_func(); below. */
2776 /* Override any gcc2 internal prototype to avoid an error. */
2777 /* We use char because int might match the return type of a gcc2
2778 builtin and then its argument prototype would still apply. */
2783 /* The GNU C library defines this for functions which it implements
2784 to always fail with ENOSYS. Some functions are actually named
2785 something starting with __ and the normal name is an alias. */
2786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2794 if { (eval echo configure
:2795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2796 eval "ac_cv_func_$ac_func=yes"
2798 echo "configure: failed program was:" >&5
2799 cat conftest.
$ac_ext >&5
2801 eval "ac_cv_func_$ac_func=no"
2806 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2807 echo "$ac_t""yes" 1>&6
2808 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2809 cat >> confdefs.h
<<EOF
2810 #define $ac_tr_func 1
2814 echo "$ac_t""no" 1>&6
2818 echo $ac_n "checking for working mmap from /dev/zero""... $ac_c" 1>&6
2819 echo "configure:2820: checking for working mmap from /dev/zero" >&5
2820 if eval "test \"`echo '$''{'ac_cv_func_mmap_anywhere'+set}'`\" = set"; then
2821 echo $ac_n "(cached) $ac_c" 1>&6
2823 if test "$cross_compiling" = yes; then
2824 ac_cv_func_mmap_anywhere
=no
2826 cat > conftest.
$ac_ext <<EOF
2827 #line 2828 "configure"
2828 #include "confdefs.h"
2830 /* Test by Richard Henderson and Alexandre Oliva.
2831 Check whether mmap from /dev/zero works. */
2832 #include <sys/types.h>
2834 #include <sys/mman.h>
2836 /* This mess was copied from the GNU getpagesize.h. */
2837 #ifndef HAVE_GETPAGESIZE
2838 # ifdef HAVE_UNISTD_H
2839 # include <unistd.h>
2842 /* Assume that all systems that can run configure have sys/param.h. */
2843 # ifndef HAVE_SYS_PARAM_H
2844 # define HAVE_SYS_PARAM_H 1
2847 # ifdef _SC_PAGESIZE
2848 # define getpagesize() sysconf(_SC_PAGESIZE)
2849 # else /* no _SC_PAGESIZE */
2850 # ifdef HAVE_SYS_PARAM_H
2851 # include <sys/param.h>
2852 # ifdef EXEC_PAGESIZE
2853 # define getpagesize() EXEC_PAGESIZE
2854 # else /* no EXEC_PAGESIZE */
2856 # define getpagesize() NBPG * CLSIZE
2859 # endif /* no CLSIZE */
2860 # else /* no NBPG */
2862 # define getpagesize() NBPC
2863 # else /* no NBPC */
2865 # define getpagesize() PAGESIZE
2866 # endif /* PAGESIZE */
2867 # endif /* no NBPC */
2868 # endif /* no NBPG */
2869 # endif /* no EXEC_PAGESIZE */
2870 # else /* no HAVE_SYS_PARAM_H */
2871 # define getpagesize() 8192 /* punt totally */
2872 # endif /* no HAVE_SYS_PARAM_H */
2873 # endif /* no _SC_PAGESIZE */
2875 #endif /* no HAVE_GETPAGESIZE */
2882 fd = open("/dev/zero", O_RDWR);
2887 x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
2888 if (x == (char *) -1)
2893 if (munmap(x, pg) < 0)
2899 if { (eval echo configure
:2900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2901 ac_cv_func_mmap_anywhere
=yes
2903 echo "configure: failed program was:" >&5
2904 cat conftest.
$ac_ext >&5
2906 ac_cv_func_mmap_anywhere
=no
2913 echo "$ac_t""$ac_cv_func_mmap_anywhere" 1>&6
2914 if test $ac_cv_func_mmap_anywhere = yes; then
2915 cat >> confdefs.h
<<\EOF
2916 #define HAVE_MMAP_ANYWHERE 1
2921 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
2922 echo "configure:2923: checking for working mmap of a file" >&5
2923 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
2924 echo $ac_n "(cached) $ac_c" 1>&6
2926 # Create a file one thousand bytes long.
2927 for i
in 1 2 3 4 5 6 7 8 9 0
2928 do for j
in 1 2 3 4 5 6 7 8 9 0
2931 done > conftestdata$$
2933 if test "$cross_compiling" = yes; then
2934 ac_cv_func_mmap_file
=no
2936 cat > conftest.
$ac_ext <<EOF
2937 #line 2938 "configure"
2938 #include "confdefs.h"
2940 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
2941 Richard Henderson and Alexandre Oliva.
2942 Check whether read-only mmap of a plain file works. */
2943 #include <sys/types.h>
2944 #include <sys/stat.h>
2946 #include <sys/mman.h>
2954 fd = open("conftestdata$$", O_RDONLY);
2958 if (fstat (fd, &st))
2961 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
2962 if (x == (char *) -1)
2965 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
2968 if (munmap(x, st.st_size) < 0)
2974 if { (eval echo configure
:2975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2976 ac_cv_func_mmap_file
=yes
2978 echo "configure: failed program was:" >&5
2979 cat conftest.
$ac_ext >&5
2981 ac_cv_func_mmap_file
=no
2988 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
2989 if test $ac_cv_func_mmap_file = yes; then
2990 cat >> confdefs.h
<<\EOF
2991 #define HAVE_MMAP_FILE 1
2997 for ac_func
in bcopy bzero bcmp \
2998 index rindex getenv atol sbrk abort atof getcwd getwd \
2999 strsignal putc_unlocked fputs_unlocked strstr environ
3001 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
3002 echo "configure:3003: checking whether $ac_func must be declared" >&5
3003 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
3004 echo $ac_n "(cached) $ac_c" 1>&6
3006 cat > conftest.
$ac_ext <<EOF
3007 #line 3008 "configure"
3008 #include "confdefs.h"
3011 #ifdef STRING_WITH_STRINGS
3012 # include <string.h>
3013 # include <strings.h>
3015 # ifdef HAVE_STRING_H
3016 # include <string.h>
3018 # ifdef HAVE_STRINGS_H
3019 # include <strings.h>
3023 #ifdef HAVE_STDLIB_H
3026 #ifdef HAVE_UNISTD_H
3031 #define rindex strrchr
3036 #define index strchr
3041 char *(*pfn) = (char *(*)) $ac_func
3044 if { (eval echo configure
:3045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3046 eval "gcc_cv_decl_needed_$ac_func=no"
3048 echo "configure: failed program was:" >&5
3049 cat conftest.
$ac_ext >&5
3051 eval "gcc_cv_decl_needed_$ac_func=yes"
3056 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
3057 echo "$ac_t""yes" 1>&6
3058 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3059 cat >> confdefs.h
<<EOF
3060 #define $gcc_tr_decl 1
3064 echo "$ac_t""no" 1>&6
3070 for ac_func
in malloc realloc calloc free
3072 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
3073 echo "configure:3074: checking whether $ac_func must be declared" >&5
3074 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
3075 echo $ac_n "(cached) $ac_c" 1>&6
3077 cat > conftest.
$ac_ext <<EOF
3078 #line 3079 "configure"
3079 #include "confdefs.h"
3082 #ifdef STRING_WITH_STRINGS
3083 # include <string.h>
3084 # include <strings.h>
3086 # ifdef HAVE_STRING_H
3087 # include <string.h>
3089 # ifdef HAVE_STRINGS_H
3090 # include <strings.h>
3094 #ifdef HAVE_STDLIB_H
3097 #ifdef HAVE_UNISTD_H
3102 #define rindex strrchr
3107 #define index strchr
3110 #ifdef HAVE_MALLOC_H
3115 char *(*pfn) = (char *(*)) $ac_func
3118 if { (eval echo configure
:3119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3120 eval "gcc_cv_decl_needed_$ac_func=no"
3122 echo "configure: failed program was:" >&5
3123 cat conftest.
$ac_ext >&5
3125 eval "gcc_cv_decl_needed_$ac_func=yes"
3130 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
3131 echo "$ac_t""yes" 1>&6
3132 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3133 cat >> confdefs.h
<<EOF
3134 #define $gcc_tr_decl 1
3138 echo "$ac_t""no" 1>&6
3144 for ac_func
in getrlimit setrlimit getrusage
3146 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
3147 echo "configure:3148: checking whether $ac_func must be declared" >&5
3148 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
3149 echo $ac_n "(cached) $ac_c" 1>&6
3151 cat > conftest.
$ac_ext <<EOF
3152 #line 3153 "configure"
3153 #include "confdefs.h"
3156 #ifdef STRING_WITH_STRINGS
3157 # include <string.h>
3158 # include <strings.h>
3160 # ifdef HAVE_STRING_H
3161 # include <string.h>
3163 # ifdef HAVE_STRINGS_H
3164 # include <strings.h>
3168 #ifdef HAVE_STDLIB_H
3171 #ifdef HAVE_UNISTD_H
3176 #define rindex strrchr
3181 #define index strchr
3184 #include <sys/types.h>
3185 #ifdef HAVE_SYS_RESOURCE_H
3186 #include <sys/resource.h>
3190 char *(*pfn) = (char *(*)) $ac_func
3193 if { (eval echo configure
:3194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3195 eval "gcc_cv_decl_needed_$ac_func=no"
3197 echo "configure: failed program was:" >&5
3198 cat conftest.
$ac_ext >&5
3200 eval "gcc_cv_decl_needed_$ac_func=yes"
3205 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
3206 echo "$ac_t""yes" 1>&6
3207 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3208 cat >> confdefs.h
<<EOF
3209 #define $gcc_tr_decl 1
3213 echo "$ac_t""no" 1>&6
3219 # mkdir takes a single argument on some systems.
3220 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
3221 echo "configure:3222: checking if mkdir takes one argument" >&5
3222 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
3223 echo $ac_n "(cached) $ac_c" 1>&6
3225 cat > conftest.
$ac_ext <<EOF
3226 #line 3227 "configure"
3227 #include "confdefs.h"
3229 #include <sys/types.h>
3230 #ifdef HAVE_SYS_STAT_H
3231 # include <sys/stat.h>
3233 #ifdef HAVE_UNISTD_H
3234 # include <unistd.h>
3236 #ifdef HAVE_DIRECT_H
3237 # include <direct.h>
3243 if { (eval echo configure
:3244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3245 gcc_cv_mkdir_takes_one_arg
=no
3247 echo "configure: failed program was:" >&5
3248 cat conftest.
$ac_ext >&5
3250 gcc_cv_mkdir_takes_one_arg
=yes
3255 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
3256 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
3257 cat >> confdefs.h
<<\EOF
3258 #define MKDIR_TAKES_ONE_ARG 1
3272 build_install_headers_dir
=install-headers-tar
3277 host_truncate_target
=
3280 # Decode the host machine, then the target machine.
3281 # For the host machine, we save the xm_file variable as host_xm_file;
3282 # then we decode the target machine and forget everything else
3283 # that came from the host machine.
3284 for machine
in $build $host $target; do
3298 # Set this to force installation and use of collect2.
3300 # Set this to override the default target model.
3302 # Set this to control how the header file directory is installed.
3303 install_headers_dir
=install-headers-tar
3304 # Set this to a non-empty list of args to pass to cpp if the target
3305 # wants its .md file passed through cpp.
3307 # Set this if directory names should be truncated to 14 characters.
3309 # Set this if gdb needs a dir command with `dirname $out_file`
3310 gdb_needs_out_file_path
=
3311 # Set this if the build machine requires executables to have a
3314 # Set this to control which thread package will be used.
3316 # Reinitialize these from the flag values every loop pass, since some
3317 # configure entries modify them.
3319 gnu_ld
="$gnu_ld_flag"
3320 enable_threads
=$enable_threads_flag
3322 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
3323 # updated in each machine entry.
3325 cpu_type
=`echo $machine | sed 's/-.*$//'`
3362 tm_file
=${cpu_type}/${cpu_type}.h
3363 xm_file
=${cpu_type}/xm-
${cpu_type}.h
3364 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
;
3366 tm_p_file
=${cpu_type}/${cpu_type}-protos.h
;
3368 # On a.out targets, we need to use collect2.
3375 # Common parts for linux-gnu and openbsd systems
3378 xm_defines
="HAVE_ATEXIT POSIX BSTRING"
3381 tm_file
=${cpu_type}/openbsd.h
3382 tmake_file
="t-libc-ok t-openbsd"
3383 # avoid surprises, always provide an xm-openbsd file
3384 xm_file
=${cpu_type}/xm-openbsd.h
3385 # don't depend on processor x-fragments as well
3387 if test x
$enable_threads = xyes
; then
3389 tmake_file
="${tmake_file} t-openbsd-thread"
3395 # Support site-specific machine types.
3397 cpu_type
=`echo $machine | sed -e 's/-.*//'`
3398 rest
=`echo $machine | sed -e "s/$cpu_type-//"`
3399 xm_file
=${cpu_type}/xm-
$rest.h
3400 tm_file
=${cpu_type}/$rest.h
3401 if test -f $srcdir/config
/${cpu_type}/x-
$rest; \
3402 then xmake_file
=${cpu_type}/x-
$rest; \
3405 if test -f $srcdir/config
/${cpu_type}/t-
$rest; \
3406 then tmake_file
=${cpu_type}/t-
$rest; \
3412 a29k-
*-bsd* | a29k-
*-sym1*)
3413 tm_file
="${tm_file} a29k/unix.h"
3415 xmake_file
=a29k
/x-unix
3418 a29k-
*-udi | a29k-
*-coff)
3419 tm_file
="${tm_file} dbxcoff.h a29k/udi.h"
3420 tmake_file
=a29k
/t-a29kbare
3423 tm_file
="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3424 tmake_file
=a29k
/t-vx29k
3425 extra_parts
="crtbegin.o crtend.o"
3426 thread_file
='vxworks'
3428 a29k-
*-*) # Default a29k environment.
3432 tm_file
="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
3434 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
3435 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
3437 # GAS + IEEE_CONFORMANT
3438 target_cpu_default
="MASK_GAS|MASK_IEEE_CONFORMANT"
3440 xm_file
="alpha/xm-alpha-interix.h xm-interix.h"
3441 xmake_file
="x-interix alpha/t-pe"
3442 tmake_file
="alpha/t-alpha alpha/t-interix alpha/t-ieee"
3443 if test x
$enable_threads = xyes
; then
3446 if test x
$stabs = xyes
; then
3447 tm_file
="${tm_file} dbxcoff.h"
3449 #prefix='$$INTERIX_ROOT'/usr/contrib
3450 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3452 alpha
*-*-linux-gnuecoff*)
3453 tm_file
="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3454 target_cpu_default
="MASK_GAS"
3455 tmake_file
="alpha/t-alpha alpha/t-ieee"
3460 alpha
*-*-linux-gnulibc1*)
3461 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3462 target_cpu_default
="MASK_GAS"
3463 tmake_file
="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-linux alpha/t-crtbe alpha/t-ieee"
3464 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3467 if test x
$enable_threads = xyes
; then
3471 alpha
*-*-linux-gnu*)
3472 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3473 target_cpu_default
="MASK_GAS"
3474 tmake_file
="t-linux alpha/t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3475 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3478 if test x
$enable_threads = xyes
; then
3483 tm_file
="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3484 target_cpu_default
="MASK_GAS"
3485 tmake_file
="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3486 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3492 # default x-alpha is only appropriate for dec-osf.
3493 target_cpu_default
="MASK_GAS"
3494 tmake_file
="alpha/t-alpha alpha/t-ieee"
3498 if test x
$stabs = xyes
3500 tm_file
="${tm_file} dbx.h"
3502 if test x
$gas != xyes
3504 extra_passes
="mips-tfile mips-tdump"
3507 tmake_file
="alpha/t-alpha alpha/t-ieee"
3510 tm_file
="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3513 tm_file
="${tm_file} alpha/osf.h alpha/osf2or3.h"
3516 tm_file
="${tm_file} alpha/osf.h"
3517 # Some versions of OSF4 (specifically X4.0-9 296.7) have
3518 # a broken tar, so we use cpio instead.
3519 install_headers_dir
=install-headers-cpio
3522 tm_file
="${tm_file} alpha/osf.h alpha/osf5.h"
3526 *-*-osf4.0
[b-z
] |
*-*-osf4.
[1-9]* |
*-*-osf5*)
3527 target_cpu_default
=MASK_SUPPORT_ARCH
3532 tm_file
="${tm_file} dbx.h alpha/vxworks.h"
3533 tmake_file
="alpha/t-alpha alpha/t-ieee"
3536 extra_passes
="mips-tfile mips-tdump"
3539 thread_file
='vxworks'
3542 tm_file
="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3543 xm_file
="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3544 tmake_file
="t-libc-ok alpha/t-alpha alpha/t-ieee"
3545 xmake_file
=winnt
/x-winnt
3546 extra_host_objs
=oldnames.o
3547 extra_gcc_objs
="spawnv.o oldnames.o"
3548 if test x
$gnu_ld != xyes
3550 extra_programs
=ld.exe
3552 if test x
$enable_threads = xyes
; then
3558 xm_file
="${xm_file} alpha/xm-vms.h"
3559 tmake_file
="alpha/t-alpha alpha/t-vms alpha/t-ieee"
3562 extra_parts
="crtinit.o crtfini.o"
3564 arm-
*-coff* | armel-
*-coff*)
3566 tmake_file
=arm
/t-arm-coff
3570 tmake_file
=arm
/t-arm-coff
3571 thread_file
='vxworks'
3573 arm-
*-riscix1.
[01]*) # Acorn RISC machine (early versions)
3574 tm_file
=arm
/riscix1-1.h
3577 arm-
*-riscix*) # Acorn RISC machine
3578 if test x
$gas = xyes
3580 tm_file
=arm
/rix-gas.h
3582 tm_file
=arm
/riscix.h
3584 xmake_file
=arm
/x-riscix
3585 tmake_file
=arm
/t-riscix
3588 arm-semi-aout | armel-semi-aout
)
3590 tmake_file
=arm
/t-semi
3592 arm-semi-aof | armel-semi-aof
)
3593 tm_file
=arm
/semiaof.h
3594 tmake_file
=arm
/t-semiaof
3597 tm_file
=arm
/netbsd.h
3598 tmake_file
="t-netbsd arm/t-netbsd"
3601 arm
*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
3604 tm_file
=arm
/linux-aout.h
3605 tmake_file
=arm
/t-linux
3608 arm
*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker
3609 xm_file
=arm
/xm-linux.h
3611 tm_file
="arm/linux-oldld.h arm/linux-elf.h"
3614 tm_file
="arm/linux-elf26.h $tm_file"
3617 tmake_file
="t-linux arm/t-linux"
3618 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3620 case x
${enable_threads} in
3621 x | xyes | xpthreads | xposix
)
3626 arm
*-*-linux-gnu*) # ARM GNU/Linux with ELF
3627 xm_file
=arm
/xm-linux.h
3629 tm_file
="arm/linux-elf.h"
3632 tm_file
="arm/linux-elf26.h $tm_file"
3635 tmake_file
="t-linux arm/t-linux"
3636 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3638 case x
${enable_threads} in
3639 x | xyes | xpthreads | xposix
)
3644 arm
*-*-uclinux*) # ARM ucLinux
3645 tm_file
=arm
/uclinux-elf.h
3646 tmake_file
=arm
/t-arm-elf
3650 tmake_file
=arm
/t-arm-aout
3653 tm_file
=arm
/ecos-elf.h
3654 tmake_file
=arm
/t-arm-elf
3657 tm_file
=arm
/unknown-elf.h
3658 tmake_file
=arm
/t-arm-elf
3661 tm_file
=arm
/conix-elf.h
3662 tmake_file
=arm
/t-arm-elf
3665 tm_file
=arm
/unknown-elf-oabi.h
3666 tmake_file
=arm
/t-arm-elf
3675 c1-convex-
*) # Convex C1
3676 target_cpu_default
=1
3679 c2-convex-
*) # Convex C2
3680 target_cpu_default
=2
3684 target_cpu_default
=4
3688 target_cpu_default
=8
3692 target_cpu_default
=16
3697 tmake_file
=c4x
/t-c4x
3699 clipper-intergraph-clix
*)
3700 tm_file
="${tm_file} svr3.h clipper/clix.h"
3701 xm_file
=clipper
/xm-clix.h
3702 xmake_file
=clipper
/x-clix
3703 extra_headers
=va-clipper.h
3704 extra_parts
="crtbegin.o crtend.o"
3705 install_headers_dir
=install-headers-cpio
3713 tm_file
="fr30/fr30.h"
3714 tmake_file
=fr30
/t-fr30
3715 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
3717 # This hasn't been upgraded to GCC 2.
3718 # fx80-alliant-*) # Alliant FX/80
3724 target_cpu_default
="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
3725 tm_file
="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
3726 tmake_file
="t-linux pa/t-linux"
3727 extra_parts
="crtbegin.o crtend.o"
3730 if test x
$enable_threads = xyes
; then
3735 target_cpu_default
="MASK_PA_11"
3736 tmake_file
=pa
/t-openbsd
3739 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3740 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
3741 xm_file
=pa
/xm-papro.h
3745 target_cpu_default
="MASK_PA_11"
3746 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
3750 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3751 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
3752 xm_file
=pa
/xm-papro.h
3756 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
3760 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h"
3761 target_cpu_default
="MASK_PA_11"
3765 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h"
3769 tm_file
="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
3770 xm_file
=pa
/xm-pahpux.h
3771 xmake_file
=pa
/x-pa-hpux
3772 if test x
$gas = xyes
3774 tm_file
="${tm_file} pa/gas.h"
3776 install_headers_dir
=install-headers-cpio
3779 hppa1.0
-*-hpux8.0
[0-2]*)
3780 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3781 xm_file
=pa
/xm-pahpux.h
3782 xmake_file
=pa
/x-pa-hpux
3783 if test x
$gas = xyes
3785 tm_file
="${tm_file} pa/pa-gas.h"
3787 tm_file
="pa/pa-oldas.h ${tm_file}"
3789 install_headers_dir
=install-headers-cpio
3792 hppa1.1
-*-hpux8.0
[0-2]*)
3793 target_cpu_default
="MASK_PA_11"
3794 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3795 xm_file
=pa
/xm-pahpux.h
3796 xmake_file
=pa
/x-pa-hpux
3797 if test x
$gas = xyes
3799 tm_file
="${tm_file} pa/pa-gas.h"
3801 tm_file
="pa/pa-oldas.h ${tm_file}"
3803 install_headers_dir
=install-headers-cpio
3807 target_cpu_default
="MASK_PA_11"
3808 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3809 xm_file
=pa
/xm-pahpux.h
3810 xmake_file
=pa
/x-pa-hpux
3811 if test x
$gas = xyes
3813 tm_file
="${tm_file} pa/pa-gas.h"
3815 install_headers_dir
=install-headers-cpio
3819 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3820 xm_file
=pa
/xm-pahpux.h
3821 xmake_file
=pa
/x-pa-hpux
3822 if test x
$gas = xyes
3824 tm_file
="${tm_file} pa/pa-gas.h"
3826 install_headers_dir
=install-headers-cpio
3829 hppa1.1
-*-hpux10* | hppa2
*-*-hpux10*)
3830 target_cpu_default
="MASK_PA_11"
3831 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3833 xm_file
=pa
/xm-pahpux.h
3834 xmake_file
=pa
/x-pa-hpux
3836 if test x
$gas = xyes
3838 tm_file
="${tm_file} pa/pa-gas.h"
3840 if test x
$enable_threads = x
; then
3841 enable_threads
=$have_pthread_h
3843 if test x
$enable_threads = xyes
; then
3845 tmake_file
="${tmake_file} pa/t-dce-thr"
3847 install_headers_dir
=install-headers-cpio
3851 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3853 xm_file
=pa
/xm-pahpux.h
3854 xmake_file
=pa
/x-pa-hpux
3856 if test x
$gas = xyes
3858 tm_file
="${tm_file} pa/pa-gas.h"
3860 if test x
$enable_threads = x
; then
3861 enable_threads
=$have_pthread_h
3863 if test x
$enable_threads = xyes
; then
3865 tmake_file
="${tmake_file} pa/t-dce-thr"
3867 install_headers_dir
=install-headers-cpio
3870 hppa1.1
-*-hpux11* | hppa2
*-*-hpux11*)
3871 target_cpu_default
="MASK_PA_11"
3872 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
3874 xm_file
=pa
/xm-pahpux.h
3875 xmake_file
=pa
/x-pa-hpux
3877 if test x
$gas = xyes
3879 tm_file
="${tm_file} pa/pa-gas.h"
3881 # if test x$enable_threads = x; then
3882 # enable_threads=$have_pthread_h
3884 # if test x$enable_threads = xyes; then
3886 # tmake_file="${tmake_file} pa/t-dce-thr"
3888 install_headers_dir
=install-headers-cpio
3892 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
3894 xm_file
=pa
/xm-pahpux.h
3895 xmake_file
=pa
/x-pa-hpux
3896 if test x
$gas = xyes
3898 tm_file
="${tm_file} pa/pa-gas.h"
3900 # if test x$enable_threads = x; then
3901 # enable_threads=$have_pthread_h
3903 # if test x$enable_threads = xyes; then
3905 # tmake_file="${tmake_file} pa/t-dce-thr"
3907 install_headers_dir
=install-headers-cpio
3910 hppa1.1
-*-hpux* | hppa2
*-*-hpux*)
3911 target_cpu_default
="MASK_PA_11"
3912 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
3913 xm_file
=pa
/xm-pahpux.h
3914 xmake_file
=pa
/x-pa-hpux
3915 if test x
$gas = xyes
3917 tm_file
="${tm_file} pa/pa-gas.h"
3919 install_headers_dir
=install-headers-cpio
3923 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
3924 xm_file
=pa
/xm-pahpux.h
3925 xmake_file
=pa
/x-pa-hpux
3926 if test x
$gas = xyes
3928 tm_file
="${tm_file} pa/pa-gas.h"
3930 install_headers_dir
=install-headers-cpio
3933 hppa1.1
-*-hiux* | hppa2
*-*-hiux*)
3934 target_cpu_default
="MASK_PA_11"
3935 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
3936 xm_file
=pa
/xm-pahpux.h
3937 xmake_file
=pa
/x-pa-hpux
3938 if test x
$gas = xyes
3940 tm_file
="${tm_file} pa/pa-gas.h"
3942 install_headers_dir
=install-headers-cpio
3946 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
3947 xm_file
=pa
/xm-pahpux.h
3948 xmake_file
=pa
/x-pa-hpux
3949 if test x
$gas = xyes
3951 tm_file
="${tm_file} pa/pa-gas.h"
3953 install_headers_dir
=install-headers-cpio
3957 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
3958 target_cpu_default
="MASK_PA_11"
3962 tm_file
="${tm_file} pa/pa-mpeix.h"
3963 xm_file
=pa
/xm-pampeix.h
3964 xmake_file
=pa
/x-pa-mpeix
3965 echo "You must use gas. Assuming it is already installed."
3966 install_headers_dir
=install-headers-tar
3969 i370-
*-opened*) # IBM 360/370/390 Architecture
3970 xm_file
=i370
/xm-oe.h
3972 xmake_file
=i370
/x-oe
3973 tmake_file
=i370
/t-oe
3976 xm_file
=i370
/xm-mvs.h
3978 tmake_file
=i370
/t-mvs
3981 xm_file
="xm-linux.h i370/xm-linux.h"
3983 tm_file
="i370/linux.h ${tm_file}"
3984 tmake_file
="t-linux i370/t-linux"
3985 # broken_install=yes
3986 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3987 # extra_parts="crtbegin.o crtend.o"
3991 if test x
$enable_threads = xyes
; then
3996 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h"
3997 tm_file
=i386
/i386elf.h
3998 tmake_file
=i386
/t-i386elf
4001 i
[34567]86-ibm-aix*) # IBM PS/2 running AIX
4002 if test x
$gas = xyes
4004 tm_file
=i386
/aix386.h
4005 extra_parts
="crtbegin.o crtend.o"
4006 tmake_file
=i386
/t-crtstuff
4008 tm_file
=i386
/aix386ng.h
4011 xm_file
="xm-alloca.h i386/xm-aix.h ${xm_file}"
4013 xmake_file
=i386
/x-aix
4015 i
[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
4016 xm_file
="xm-alloca.h ${xm_file}"
4017 xm_defines
="USG POSIX SMALL_ARG_MAX"
4018 xmake_file
=i386
/x-ncr3000
4019 if test x
$stabs = xyes
-a x
$gas = xyes
4021 tm_file
=i386
/sysv4gdb.h
4023 tm_file
=i386
/sysv4.h
4025 extra_parts
="crtbegin.o crtend.o"
4026 tmake_file
=i386
/t-crtpic
4030 xm_file
=i386
/xm-next.h
4031 tmake_file
=i386
/t-next
4032 xmake_file
=i386
/x-next
4033 extra_objs
=nextstep.o
4034 extra_parts
="crtbegin.o crtend.o"
4035 if test x
$enable_threads = xyes
; then
4039 i
[34567]86-sequent-bsd*) # 80386 from Sequent
4041 if test x
$gas = xyes
4043 tm_file
=i386
/seq-gas.h
4045 tm_file
=i386
/sequent.h
4048 i
[34567]86-sequent-ptx1*)
4049 xm_defines
="USG SVR3"
4050 xmake_file
=i386
/x-sysv3
4051 tm_file
=i386
/seq-sysv3.h
4052 tmake_file
=i386
/t-crtstuff
4053 extra_parts
="crtbegin.o crtend.o"
4054 install_headers_dir
=install-headers-cpio
4056 i
[34567]86-sequent-ptx2* | i
[34567]86-sequent-sysv3*)
4057 xm_defines
="USG SVR3"
4058 xmake_file
=i386
/x-sysv3
4059 tm_file
=i386
/seq2-sysv3.h
4060 tmake_file
=i386
/t-crtstuff
4061 extra_parts
="crtbegin.o crtend.o"
4062 install_headers_dir
=install-headers-cpio
4064 i
[34567]86-sequent-ptx4* | i
[34567]86-sequent-sysv4*)
4065 xm_file
="xm-alloca.h ${xm_file}"
4066 xm_defines
="USG POSIX SMALL_ARG_MAX"
4068 tm_file
=i386
/ptx4-i.h
4070 extra_parts
="crtbegin.o crtend.o"
4071 install_headers_dir
=install-headers-cpio
4073 i386-sun-sunos
*) # Sun i386 roadrunner
4078 i
[34567]86-wrs-vxworks*)
4079 tm_file
=i386
/vxi386.h
4080 tmake_file
=i386
/t-i386bare
4081 thread_file
='vxworks'
4084 tm_file
=i386
/i386-aout.h
4085 tmake_file
=i386
/t-i386bare
4087 i
[34567]86-*-beospe*)
4088 xm_file
=i386
/xm-beos.h
4089 xm_defines
="USE_C_ALLOCA"
4090 tmake_file
=i386
/t-beos
4091 tm_file
=i386
/beos-pe.h
4092 xmake_file
=i386
/x-beos
4095 i
[34567]86-*-beoself* | i
[34567]86-*-beos*)
4096 xm_file
=i386
/xm-beos.h
4097 tmake_file
='i386/t-beos i386/t-crtpic'
4098 tm_file
=i386
/beos-elf.h
4099 xmake_file
=i386
/x-beos
4101 extra_parts
='crtbegin.o crtend.o'
4103 i
[34567]86-*-bsdi* | i
[34567]86-*-bsd386*)
4104 tm_file
=i386
/bsd386.h
4105 # tmake_file=t-libc-ok
4108 tm_file
=i386
/386bsd.h
4109 # tmake_file=t-libc-ok
4110 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
4113 i
[34567]86-*-freebsdelf*)
4114 tm_file
="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
4115 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4116 tmake_file
=t-freebsd
4120 case x
${enable_threads} in
4121 xyes | xpthreads | xposix
)
4123 tmake_file
="${tmake_file} t-freebsd-thread"
4127 i
[34567]86-*-freebsd*)
4128 tm_file
="i386/freebsd.h i386/perform.h"
4129 tmake_file
=t-freebsd
4131 i
[34567]86-*-netbsd*)
4132 tm_file
=i386
/netbsd.h
4136 i
[34567]86-*-openbsd*)
4137 # we need collect2 until our bug is fixed...
4141 tm_file
=i386
/i386-coff.h
4142 tmake_file
=i386
/t-i386bare
4144 i
[34567]86-*-isc*) # 80386 running ISC system
4145 xm_file
="${xm_file} i386/xm-isc.h"
4146 xm_defines
="USG SVR3"
4148 i
[34567]86-*-isc[34]*)
4149 xmake_file
=i386
/x-isc3
4152 xmake_file
=i386
/x-isc
4155 if test x
$gas = xyes
-a x
$stabs = xyes
4157 tm_file
=i386
/iscdbx.h
4158 tmake_file
=i386
/t-svr3dbx
4159 extra_parts
="svr3.ifile svr3z.ifile"
4161 tm_file
=i386
/isccoff.h
4162 tmake_file
=i386
/t-crtstuff
4163 extra_parts
="crtbegin.o crtend.o"
4165 install_headers_dir
=install-headers-cpio
4167 i
[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
4169 xmake_file
=x-linux-aout
4170 tmake_file
="t-linux-aout i386/t-crtstuff"
4171 tm_file
=i386
/linux-oldld.h
4175 i
[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
4176 xmake_file
=x-linux-aout
4177 tmake_file
="t-linux-aout i386/t-crtstuff"
4178 tm_file
=i386
/linux-aout.h
4182 i
[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
4183 # GNU/Linux C library 5
4185 tm_file
=i386
/linux.h
4186 tmake_file
="t-linux t-linux-gnulibc1 i386/t-crtstuff"
4187 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4190 if test x
$enable_threads = xyes
; then
4191 thread_file
='single'
4194 i
[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
4195 # aka GNU/Linux C library 6
4197 tm_file
=i386
/linux.h
4198 tmake_file
="t-linux i386/t-crtstuff"
4199 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4202 if test x
$enable_threads = xyes
; then
4209 i
[34567]86-go32-msdos | i
[34567]86-*-go32*)
4210 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
4213 i
[34567]86-pc-msdosdjgpp*)
4214 xm_file
=i386
/xm-djgpp.h
4215 tm_file
=i386
/djgpp.h
4216 tmake_file
=i386
/t-djgpp
4217 xmake_file
=i386
/x-djgpp
4221 case $host in *pc-msdosdjgpp
*)
4226 i
[34567]86-moss-msdos* | i
[34567]86-*-moss*)
4228 tmake_file
=t-libc-ok
4232 i
[34567]86-*-lynxos*)
4233 if test x
$gas = xyes
4237 tm_file
=i386
/lynx-ng.h
4239 xm_file
=i386
/xm-lynx.h
4240 tmake_file
=i386
/t-i386bare
4245 # tmake_file=t-libc-ok
4248 i
[34567]86-*-osfrose*) # 386 using OSF/rose
4249 if test x
$elf = xyes
4251 tm_file
=i386
/osfelf.h
4254 tm_file
=i386
/osfrose.h
4257 xm_file
="i386/xm-osf.h ${xm_file}"
4258 xmake_file
=i386
/x-osfrose
4259 tmake_file
=i386
/t-osf
4260 extra_objs
=halfpic.o
4262 i
[34567]86-go32-rtems*)
4264 xm_file
=i386
/xm-go32.h
4265 tm_file
=i386
/go32-rtems.h
4266 tmake_file
="i386/t-go32 t-rtems"
4268 i
[34567]86-*-rtemscoff*)
4270 tm_file
=i386
/rtems.h
4271 tmake_file
="i386/t-i386bare t-rtems"
4273 i
[34567]86-*-rtems*|i
[34567]86-*-rtemself*)
4275 tm_file
=i386
/rtemself.h
4276 extra_parts
="crtbegin.o crtend.o crti.o crtn.o"
4277 tmake_file
="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
4279 i
[34567]86-*-sco3.2v5
*) # 80386 running SCO Open Server 5
4280 xm_file
="xm-alloca.h ${xm_file} i386/xm-sco5.h"
4281 xm_defines
="USG SVR3"
4282 xmake_file
=i386
/x-sco5
4283 install_headers_dir
=install-headers-cpio
4285 if test x
$gas = xyes
4287 tm_file
="i386/sco5gas.h ${tm_file}"
4288 tmake_file
=i386
/t-sco5gas
4290 tmake_file
=i386
/t-sco5
4292 extra_parts
="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
4294 i
[34567]86-*-sco3.2v4
*) # 80386 running SCO 3.2v4 system
4295 xm_file
="${xm_file} i386/xm-sco.h"
4296 xm_defines
="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
4297 xmake_file
=i386
/x-sco4
4298 install_headers_dir
=install-headers-cpio
4299 if test x
$stabs = xyes
4301 tm_file
=i386
/sco4dbx.h
4302 tmake_file
=i386
/t-svr3dbx
4303 extra_parts
="svr3.ifile svr3z.rfile"
4306 tmake_file
=i386
/t-crtstuff
4307 extra_parts
="crtbegin.o crtend.o"
4309 # The default EAFS filesystem supports long file names.
4310 # Truncating the target makes $host != $target which
4311 # makes gcc think it is doing a cross-compile.
4312 # truncate_target=yes
4314 i
[34567]86-*-sco*) # 80386 running SCO system
4315 xm_file
=i386
/xm-sco.h
4316 xmake_file
=i386
/x-sco
4317 install_headers_dir
=install-headers-cpio
4318 if test x
$stabs = xyes
4320 tm_file
=i386
/scodbx.h
4321 tmake_file
=i386
/t-svr3dbx
4322 extra_parts
="svr3.ifile svr3z.rfile"
4325 extra_parts
="crtbegin.o crtend.o"
4326 tmake_file
=i386
/t-crtstuff
4330 i
[34567]86-*-solaris2*)
4331 xm_file
="xm-alloca.h ${xm_file}"
4332 xm_defines
="USG POSIX SMALL_ARG_MAX"
4334 if test x
$gas = xyes
; then
4335 # Only needed if gas does not support -s
4336 tm_file
="i386/sol2gas.h ${tm_file}"
4338 tmake_file
=i386
/t-sol2
4339 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4341 if test x
${enable_threads} = x
; then
4342 enable_threads
=$have_pthread_h
4343 if test x
${enable_threads} = x
; then
4344 enable_threads
=$have_thread_h
4347 if test x
${enable_threads} = xyes
; then
4348 if test x
${have_pthread_h} = xyes
; then
4351 thread_file
='solaris'
4355 i
[34567]86-*-sysv5*) # Intel x86 on System V Release 5
4356 xm_file
="xm-alloca.h ${xm_file}"
4357 xm_defines
="USG POSIX"
4358 tm_file
=i386
/sysv5.h
4359 if test x
$stabs = xyes
4361 tm_file
="${tm_file} dbx.h"
4363 tmake_file
=i386
/t-crtpic
4365 extra_parts
="crtbegin.o crtend.o"
4366 if test x
$enable_threads = xyes
; then
4370 i
[34567]86-*-sysv4*) # Intel 80386's running system V.4
4371 xm_file
="xm-alloca.h ${xm_file}"
4372 xm_defines
="USG POSIX SMALL_ARG_MAX"
4373 tm_file
=i386
/sysv4.h
4374 if test x
$stabs = xyes
4376 tm_file
="${tm_file} dbx.h"
4378 tmake_file
=i386
/t-crtpic
4380 extra_parts
="crtbegin.o crtend.o"
4382 i
[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
4383 xm_file
="xm-alloca.h ${xm_file}"
4384 xm_defines
="USG POSIX"
4386 tmake_file
="i386/t-crtpic i386/t-udk"
4388 extra_parts
="crtbegin.o crtend.o"
4389 install_headers_dir
=install-headers-cpio
4391 i
[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
4393 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
4394 xm_defines
="USE_C_ALLOCA SMALL_ARG_MAX"
4395 if test x
$stabs = xyes
4397 tm_file
=i386
/osf1elfgdb.h
4399 tm_file
=i386
/osf1elf.h
4401 tmake_file
=i386
/t-osf1elf
4402 xmake_file
=i386
/x-osf1elf
4403 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4405 i
[34567]86-*-sysv*) # Intel 80386's running system V
4406 xm_defines
="USG SVR3"
4407 xmake_file
=i386
/x-sysv3
4408 if test x
$gas = xyes
4410 if test x
$stabs = xyes
4412 tm_file
=i386
/svr3dbx.h
4413 tmake_file
=i386
/t-svr3dbx
4414 extra_parts
="svr3.ifile svr3z.rfile"
4416 tm_file
=i386
/svr3gas.h
4417 extra_parts
="crtbegin.o crtend.o"
4418 tmake_file
=i386
/t-crtstuff
4421 tm_file
=i386
/sysv3.h
4422 extra_parts
="crtbegin.o crtend.o"
4423 tmake_file
=i386
/t-crtstuff
4426 i386-
*-vsta) # Intel 80386's running VSTa kernel
4427 xm_file
="${xm_file} i386/xm-vsta.h"
4429 tmake_file
=i386
/t-vsta
4430 xmake_file
=i386
/x-vsta
4433 xm_file
="${xm_file} i386/xm-cygwin.h"
4434 tmake_file
=i386
/t-cygwin
4435 tm_file
=i386
/win32.h
4436 xmake_file
=i386
/x-cygwin
4438 if test x
$enable_threads = xyes
; then
4443 i
[34567]86-*-pe | i
[34567]86-*-cygwin*)
4444 xm_file
="${xm_file} i386/xm-cygwin.h"
4445 tmake_file
=i386
/t-cygwin
4446 tm_file
=i386
/cygwin.h
4447 xmake_file
=i386
/x-cygwin
4449 if test x
$enable_threads = xyes
; then
4454 i
[34567]86-*-mingw32*)
4455 tm_file
=i386
/mingw32.h
4456 xm_file
="${xm_file} i386/xm-mingw32.h"
4457 tmake_file
="i386/t-cygwin i386/t-mingw32"
4459 xmake_file
=i386
/x-cygwin
4460 if test x
$enable_threads = xyes
; then
4467 *minwg32crt
* |
*mingw32
*)
4468 tm_file
="${tm_file} i386/crtdll.h"
4474 xm_file
="${xm_file} i386/xm-uwin.h"
4475 xm_defines
="USG NO_STAB_H"
4476 tmake_file
="i386/t-cygwin i386/t-uwin"
4478 xmake_file
=i386
/x-cygwin
4479 if test x
$enable_threads = xyes
; then
4484 i
[34567]86-*-interix*)
4485 tm_file
="i386/i386-interix.h interix.h"
4486 xm_file
="i386/xm-i386-interix.h xm-interix.h"
4488 tmake_file
="i386/t-interix"
4489 extra_objs
=interix.o
4490 xmake_file
=x-interix
4491 if test x
$enable_threads = xyes
; then
4494 if test x
$stabs = xyes
; then
4495 tm_file
="${tm_file} dbxcoff.h"
4498 i
[34567]86-*-winnt3*)
4499 tm_file
=i386
/win-nt.h
4500 out_file
=i386
/i386.c
4501 xm_file
="xm-winnt.h ${xm_file}"
4502 xmake_file
=winnt
/x-winnt
4503 tmake_file
=i386
/t-winnt
4504 extra_host_objs
="winnt.o oldnames.o"
4505 extra_gcc_objs
="spawnv.o oldnames.o"
4506 if test x
$gnu_ld != xyes
4508 extra_programs
=ld.exe
4510 if test x
$enable_threads = xyes
; then
4514 i
[34567]86-dg-dgux*)
4515 xm_file
="xm-alloca.h ${xm_file}"
4516 xm_defines
="USG POSIX"
4517 out_file
=i386
/dgux.c
4519 tmake_file
=i386
/t-dgux
4520 xmake_file
=i386
/x-dgux
4521 install_headers_dir
=install-headers-cpio
4523 i860-alliant-
*) # Alliant FX/2800
4524 tm_file
="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
4525 xm_file
="${xm_file}"
4526 xmake_file
=i860
/x-fx2800
4527 tmake_file
=i860
/t-fx2800
4528 extra_parts
="crtbegin.o crtend.o"
4531 tm_file
="${tm_file} i860/bsd.h"
4532 if test x
$gas = xyes
4534 tm_file
="${tm_file} i860/bsd-gas.h"
4539 tm_file
="${tm_file} i860/mach.h"
4540 tmake_file
=t-libc-ok
4542 i860-
*-osf*) # Intel Paragon XP/S, OSF/1AD
4543 tm_file
="${tm_file} svr3.h i860/paragon.h"
4544 xm_defines
="USG SVR3"
4548 tm_file
="${tm_file} svr3.h i860/sysv3.h"
4549 xm_defines
="USG SVR3"
4550 xmake_file
=i860
/x-sysv3
4551 extra_parts
="crtbegin.o crtend.o"
4554 tm_file
="${tm_file} svr4.h i860/sysv4.h"
4555 xm_defines
="USG SVR3"
4556 xmake_file
=i860
/x-sysv4
4558 extra_parts
="crtbegin.o crtend.o"
4560 i960-wrs-vxworks5 | i960-wrs-vxworks5.0
*)
4561 tm_file
="${tm_file} i960/vx960.h"
4562 tmake_file
=i960
/t-vxworks960
4564 thread_file
='vxworks'
4566 i960-wrs-vxworks5
* | i960-wrs-vxworks
)
4567 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
4568 tmake_file
=i960
/t-vxworks960
4570 thread_file
='vxworks'
4573 tm_file
="${tm_file} i960/vx960.h"
4574 tmake_file
=i960
/t-vxworks960
4576 thread_file
='vxworks'
4579 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
4580 tmake_file
=i960
/t-960bare
4584 tmake_file
="i960/t-960bare t-rtems"
4585 tm_file
="${tm_file} dbxcoff.h i960/rtems.h"
4588 i960-
*-*) # Default i960 environment.
4593 tmake_file
="ia64/t-ia64"
4594 target_cpu_default
="0"
4595 if test x
$gas = xyes
4597 target_cpu_default
="${target_cpu_default}|MASK_GNU_AS"
4599 if test x
$gnu_ld = xyes
4601 target_cpu_default
="${target_cpu_default}|MASK_GNU_LD"
4605 tm_file
=ia64
/linux.h
4606 tmake_file
="t-linux ia64/t-ia64"
4607 target_cpu_default
="MASK_GNU_AS|MASK_GNU_LD"
4608 if test x
$enable_threads = xyes
; then
4613 extra_parts
="crtinit.o crtfini.o"
4615 m68000-convergent-sysv
*)
4617 xm_file
="m68k/xm-3b1.h ${xm_file}"
4620 extra_headers
=math-68881.h
4622 m68000-hp-bsd
*) # HP 9000/200 running BSD
4623 tm_file
=m68k
/hp2bsd.h
4624 xmake_file
=m68k
/x-hp2bsd
4626 extra_headers
=math-68881.h
4628 m68000-hp-hpux
*) # HP 9000 series 300
4629 xm_file
="xm-alloca.h ${xm_file}"
4631 if test x
$gas = xyes
4633 xmake_file
=m68k
/x-hp320g
4634 tm_file
=m68k
/hp310g.h
4636 xmake_file
=m68k
/x-hp320
4637 tm_file
=m68k
/hp310.h
4639 install_headers_dir
=install-headers-cpio
4641 extra_headers
=math-68881.h
4646 extra_headers
=math-68881.h
4649 tm_file
=m68k
/sun2o4.h
4651 extra_headers
=math-68881.h
4654 xm_file
="m68k/xm-3b1.h ${xm_file}"
4656 if test x
$gas = xyes
4663 extra_headers
=math-68881.h
4665 m68k-apple-aux
*) # Apple Macintosh running A/UX
4666 xm_defines
="USG AUX"
4667 tmake_file
=m68k
/t-aux
4668 install_headers_dir
=install-headers-cpio
4669 extra_headers
=math-68881.h
4670 extra_parts
="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
4672 if test "$gnu_ld" = yes
4674 tm_file
="${tm_file} m68k/auxgld.h"
4676 tm_file
="${tm_file} m68k/auxld.h"
4678 if test "$gas" = yes
4680 tm_file
="${tm_file} m68k/auxgas.h"
4682 tm_file
="${tm_file} m68k/auxas.h"
4684 tm_file
="${tm_file} m68k/a-ux.h"
4688 tm_file
=m68k
/apollo68.h
4689 xmake_file
=m68k
/x-apollo68
4691 extra_headers
=math-68881.h
4694 m68k-altos-sysv
*) # Altos 3068
4695 if test x
$gas = xyes
4697 tm_file
=m68k
/altos3068.h
4700 echo "The Altos is supported only with the GNU assembler" 1>&2
4703 extra_headers
=math-68881.h
4705 m68k-bull-sysv
*) # Bull DPX/2
4706 if test x
$gas = xyes
4708 if test x
$stabs = xyes
4710 tm_file
=m68k
/dpx2cdbx.h
4712 tm_file
=m68k
/dpx2g.h
4717 xm_file
="xm-alloca.h ${xm_file}"
4719 xmake_file
=m68k
/x-dpx2
4721 extra_headers
=math-68881.h
4723 m68k-atari-sysv4
*) # Atari variant of V.4.
4724 tm_file
=m68k
/atari.h
4725 xm_file
="xm-alloca.h ${xm_file}"
4726 xm_defines
="USG FULL_PROTOTYPES"
4728 extra_parts
="crtbegin.o crtend.o"
4729 extra_headers
=math-68881.h
4732 m68k-motorola-sysv
*)
4733 tm_file
=m68k
/mot3300.h
4734 xm_file
="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
4735 if test x
$gas = xyes
4737 xmake_file
=m68k
/x-mot3300-gas
4738 if test x
$gnu_ld = xyes
4740 tmake_file
=m68k
/t-mot3300-gald
4742 tmake_file
=m68k
/t-mot3300-gas
4746 xmake_file
=m68k
/x-mot3300
4747 if test x
$gnu_ld = xyes
4749 tmake_file
=m68k
/t-mot3300-gld
4751 tmake_file
=m68k
/t-mot3300
4755 gdb_needs_out_file_path
=yes
4756 extra_parts
="crt0.o mcrt0.o"
4757 extra_headers
=math-68881.h
4760 m68k-ncr-sysv
*) # NCR Tower 32 SVR3
4761 tm_file
=m68k
/tower-as.h
4762 xm_defines
="USG SVR3"
4763 xmake_file
=m68k
/x-tower
4764 extra_parts
="crtbegin.o crtend.o"
4765 extra_headers
=math-68881.h
4768 tm_file
=m68k
/plexus.h
4769 xm_file
="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
4772 extra_headers
=math-68881.h
4776 xm_file
="xm-alloca.h ${xm_file}"
4778 extra_headers
=math-68881.h
4781 xm_file
="xm-alloca.h m68k/xm-crds.h ${xm_file}"
4782 xm_defines
="USG unos"
4783 xmake_file
=m68k
/x-crds
4786 extra_headers
=math-68881.h
4788 m68k-cbm-sysv4
*) # Commodore variant of V.4.
4790 xm_file
="xm-alloca.h ${xm_file}"
4791 xm_defines
="USG FULL_PROTOTYPES"
4792 xmake_file
=m68k
/x-amix
4794 extra_parts
="crtbegin.o crtend.o"
4795 extra_headers
=math-68881.h
4799 tm_file
=m68k
/ccur-GAS.h
4800 xmake_file
=m68k
/x-ccur
4801 extra_headers
=math-68881.h
4805 m68k-hp-bsd4.4
*) # HP 9000/3xx running 4.4bsd
4806 tm_file
=m68k
/hp3bsd44.h
4807 xmake_file
=m68k
/x-hp3bsd44
4809 extra_headers
=math-68881.h
4812 m68k-hp-bsd
*) # HP 9000/3xx running Berkeley Unix
4813 tm_file
=m68k
/hp3bsd.h
4815 extra_headers
=math-68881.h
4819 if test x
$with_fp = xno
4821 tm_file
=m68k
/isi-nfp.h
4827 extra_headers
=math-68881.h
4829 m68k-hp-hpux7
*) # HP 9000 series 300 running HPUX version 7.
4830 xm_file
="xm-alloca.h ${xm_file}"
4832 if test x
$gas = xyes
4834 xmake_file
=m68k
/x-hp320g
4835 tm_file
=m68k
/hp320g.h
4837 xmake_file
=m68k
/x-hp320
4838 tm_file
=m68k
/hpux7.h
4840 install_headers_dir
=install-headers-cpio
4842 extra_headers
=math-68881.h
4845 m68k-hp-hpux
*) # HP 9000 series 300
4846 xm_file
="xm-alloca.h ${xm_file}"
4848 if test x
$gas = xyes
4850 xmake_file
=m68k
/x-hp320g
4851 tm_file
=m68k
/hp320g.h
4853 xmake_file
=m68k
/x-hp320
4854 tm_file
=m68k
/hp320.h
4856 install_headers_dir
=install-headers-cpio
4858 extra_headers
=math-68881.h
4862 tm_file
=m68k
/sun3mach.h
4864 extra_headers
=math-68881.h
4868 if test x
$gas = xyes
4870 tm_file
=m68k
/news3gas.h
4872 tm_file
=m68k
/news3.h
4875 extra_headers
=math-68881.h
4878 m68k-sony-bsd
* | m68k-sony-newsos
*)
4879 if test x
$gas = xyes
4881 tm_file
=m68k
/newsgas.h
4886 extra_headers
=math-68881.h
4889 m68k-next-nextstep2
*)
4890 tm_file
=m68k
/next21.h
4891 xm_file
="m68k/xm-next.h ${xm_file}"
4892 tmake_file
=m68k
/t-next
4893 xmake_file
=m68k
/x-next
4894 extra_objs
=nextstep.o
4895 extra_headers
=math-68881.h
4899 m68k-next-nextstep
[34]*)
4901 xm_file
="m68k/xm-next.h ${xm_file}"
4902 tmake_file
=m68k
/t-next
4903 xmake_file
=m68k
/x-next
4904 extra_objs
=nextstep.o
4905 extra_parts
="crtbegin.o crtend.o"
4906 extra_headers
=math-68881.h
4908 if test x
$enable_threads = xyes
; then
4913 if test x
$with_fp = xno
4915 tm_file
=m68k
/sun3n3.h
4917 tm_file
=m68k
/sun3o3.h
4921 extra_headers
=math-68881.h
4923 m68k-sun-sunos
*) # For SunOS 4 (the default).
4924 if test x
$with_fp = xno
4926 tm_file
=m68k
/sun3n.h
4932 extra_headers
=math-68881.h
4935 tm_file
=m68k
/vxm68k.h
4936 tmake_file
=m68k
/t-vxworks68
4937 extra_headers
=math-68881.h
4938 thread_file
='vxworks'
4942 tmake_file
=m68k
/t-m68kbare
4943 tm_file
="m68k/m68k-aout.h libgloss.h"
4944 extra_headers
=math-68881.h
4948 tmake_file
=m68k
/t-m68kbare
4949 tm_file
="m68k/m68k-coff.h dbx.h libgloss.h"
4950 extra_headers
=math-68881.h
4953 m68020-
*-elf* | m68k-
*-elf*)
4954 tm_file
="m68k/m68020-elf.h"
4955 xm_file
=m68k
/xm-m68kv.h
4956 tmake_file
=m68k
/t-m68kelf
4957 header_files
=math-68881.h
4960 if test x
$gas = xyes
4964 tm_file
=m68k
/lynx-ng.h
4966 xm_file
=m68k
/xm-lynx.h
4968 tmake_file
=m68k
/t-lynx
4969 extra_headers
=math-68881.h
4973 tm_file
=m68k
/netbsd.h
4980 # we need collect2 until our bug is fixed...
4983 m68k-
*-sysv3*) # Motorola m68k's running system V.3
4984 xm_file
="xm-alloca.h ${xm_file}"
4986 xmake_file
=m68k
/x-m68kv
4987 extra_parts
="crtbegin.o crtend.o"
4988 extra_headers
=math-68881.h
4991 m68k-
*-sysv4*) # Motorola m68k's running system V.4
4992 tm_file
=m68k
/m68kv4.h
4993 xm_file
="xm-alloca.h ${xm_file}"
4996 extra_parts
="crtbegin.o crtend.o"
4997 extra_headers
=math-68881.h
5000 m68k-
*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
5003 tm_file
=m68k
/linux-aout.h
5004 tmake_file
="t-linux-aout m68k/t-linux-aout"
5005 extra_headers
=math-68881.h
5009 m68k-
*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
5010 # with ELF format using the
5011 # GNU/Linux C library 5
5013 tm_file
=m68k
/linux.h
5014 tmake_file
="t-linux t-linux-gnulibc1 m68k/t-linux"
5015 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5016 extra_headers
=math-68881.h
5020 m68k-
*-linux-gnu*) # Motorola m68k's running GNU/Linux
5021 # with ELF format using glibc 2
5022 # aka the GNU/Linux C library 6.
5024 tm_file
=m68k
/linux.h
5025 tmake_file
="t-linux m68k/t-linux"
5026 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5027 extra_headers
=math-68881.h
5030 if test x
$enable_threads = xyes
; then
5035 tmake_file
=m68k
/t-m68kbare
5036 tm_file
=m68k
/m68k-psos.h
5037 extra_headers
=math-68881.h
5041 tmake_file
="m68k/t-m68kbare t-rtems"
5042 tm_file
=m68k
/rtems.h
5043 extra_headers
=math-68881.h
5046 m68k-
*-rtemself*|m68k-
*-rtems*)
5047 tmake_file
="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
5048 tm_file
=m68k
/rtemself.h
5049 extra_headers
=math-68881.h
5055 tm_file
=m88k
/dguxbcs.h
5056 tmake_file
=m88k
/t-dguxbcs
5060 tmake_file
=m88k
/t-dgux
5063 extra_parts
="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
5064 xmake_file
=m88k
/x-dgux
5065 if test x
$gas = xyes
5067 tmake_file
=m88k
/t-dgux-gas
5070 m88k-dolphin-sysv3
*)
5071 tm_file
=m88k
/dolph.h
5072 extra_parts
="crtbegin.o crtend.o"
5073 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5074 xmake_file
=m88k
/x-dolph
5075 if test x
$gas = xyes
5077 tmake_file
=m88k
/t-m88k-gas
5080 m88k-tektronix-sysv3
)
5081 tm_file
=m88k
/tekXD88.h
5082 extra_parts
="crtbegin.o crtend.o"
5083 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5084 xmake_file
=m88k
/x-tekXD88
5085 if test x
$gas = xyes
5087 tmake_file
=m88k
/t-m88k-gas
5091 tm_file
=m88k
/m88k-aout.h
5094 tm_file
=m88k
/m88k-coff.h
5095 tmake_file
=m88k
/t-bug
5099 extra_parts
="crtbegin.o crtend.o"
5100 if test x
$gas = xyes
5102 tmake_file
=m88k
/t-luna-gas
5104 tmake_file
=m88k
/t-luna
5108 tmake_file
="${tmake_file} m88k/t-luna-gas"
5111 tm_file
=m88k
/sysv3.h
5112 extra_parts
="crtbegin.o crtend.o"
5113 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5114 xmake_file
=m88k
/x-sysv3
5115 if test x
$gas = xyes
5117 tmake_file
=m88k
/t-m88k-gas
5121 tm_file
=m88k
/sysv4.h
5122 extra_parts
="crtbegin.o crtend.o"
5123 xmake_file
=m88k
/x-sysv4
5124 tmake_file
=m88k
/t-sysv4
5127 tm_file
=mcore
/mcore-elf.h
5128 tmake_file
=mcore
/t-mcore
5131 tm_file
=mcore
/mcore-pe.h
5132 tmake_file
=mcore
/t-mcore-pe
5134 mips-sgi-irix6
*) # SGI System V.4., IRIX 6
5135 if test "x$gnu_ld" = xyes
5137 tm_file
="mips/iris6.h mips/iris6gld.h"
5139 tm_file
=mips
/iris6.h
5141 tmake_file
=mips
/t-iris6
5142 xm_file
=mips
/xm-iris6.h
5143 xmake_file
=mips
/x-iris6
5144 # if test x$enable_threads = xyes; then
5145 # thread_file='irix'
5149 tm_file
="mips/elf.h mips/vxworks.h"
5150 tmake_file
=mips
/t-ecoff
5153 extra_parts
="crtbegin.o crtend.o"
5154 thread_file
='vxworks'
5156 mips-sgi-irix5cross64
) # Irix5 host, Irix 6 target, cross64
5157 tm_file
="mips/iris6.h mips/cross64.h"
5159 xm_file
="mips/xm-iris5.h"
5160 xmake_file
=mips
/x-iris
5161 tmake_file
=mips
/t-cross64
5162 # See comment in mips/iris[56].h files.
5164 # if test x$enable_threads = xyes; then
5165 # thread_file='irix'
5169 if test x
$gas = xyes
5171 if test x
$stabs = xyes
5173 tm_file
=mips
/iris5gdb.h
5175 tm_file
="mips/sni-svr4.h mips/sni-gas.h"
5178 tm_file
=mips
/sni-svr4.h
5181 xmake_file
=mips
/x-sni-svr4
5182 tmake_file
=mips
/t-mips-gas
5183 if test x
$gnu_ld != xyes
5188 mips-sgi-irix5
*) # SGI System V.4., IRIX 5
5189 if test x
$gas = xyes
5191 tm_file
="mips/iris5.h mips/iris5gas.h"
5192 if test x
$stabs = xyes
5194 tm_file
="${tm_file} dbx.h"
5197 tm_file
=mips
/iris5.h
5200 xm_file
="mips/xm-iris5.h"
5201 xmake_file
=mips
/x-iris
5202 # mips-tfile doesn't work yet
5203 tmake_file
=mips
/t-mips-gas
5204 # See comment in mips/iris5.h file.
5206 # if test x$enable_threads = xyes; then
5207 # thread_file='irix'
5210 mips-sgi-irix4loser
*) # Mostly like a MIPS.
5211 tm_file
="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
5212 if test x
$stabs = xyes
; then
5213 tm_file
="${tm_file} dbx.h"
5216 xmake_file
=mips
/x-iris
5217 if test x
$gas = xyes
5219 tmake_file
=mips
/t-mips-gas
5221 extra_passes
="mips-tfile mips-tdump"
5223 if test x
$gnu_ld != xyes
5227 # if test x$enable_threads = xyes; then
5228 # thread_file='irix'
5231 mips-sgi-irix4
*) # Mostly like a MIPS.
5232 tm_file
="mips/iris3.h ${tm_file} mips/iris4.h"
5233 if test x
$stabs = xyes
; then
5234 tm_file
="${tm_file} dbx.h"
5237 xmake_file
=mips
/x-iris
5238 if test x
$gas = xyes
5240 tmake_file
=mips
/t-mips-gas
5242 extra_passes
="mips-tfile mips-tdump"
5244 if test x
$gnu_ld != xyes
5248 # if test x$enable_threads = xyes; then
5249 # thread_file='irix'
5252 mips-sgi-
*) # Mostly like a MIPS.
5253 tm_file
="mips/iris3.h ${tm_file}"
5254 if test x
$stabs = xyes
; then
5255 tm_file
="${tm_file} dbx.h"
5258 xmake_file
=mips
/x-iris3
5259 if test x
$gas = xyes
5261 tmake_file
=mips
/t-mips-gas
5263 extra_passes
="mips-tfile mips-tdump"
5265 if test x
$gnu_ld != xyes
5270 mips-dec-osfrose
*) # Decstation running OSF/1 reference port with OSF/rose.
5271 tm_file
="mips/osfrose.h ${tm_file}"
5272 xmake_file
=mips
/x-osfrose
5273 tmake_file
=mips
/t-osfrose
5274 extra_objs
=halfpic.o
5277 mips-dec-osf
*) # Decstation running OSF/1 as shipped by DIGITAL
5278 tm_file
=mips
/dec-osf1.h
5279 if test x
$stabs = xyes
; then
5280 tm_file
="${tm_file} dbx.h"
5282 xmake_file
=mips
/x-dec-osf1
5283 if test x
$gas = xyes
5285 tmake_file
=mips
/t-mips-gas
5287 tmake_file
=mips
/t-ultrix
5288 extra_passes
="mips-tfile mips-tdump"
5290 if test x
$gnu_ld != xyes
5295 mips-dec-bsd
*) # Decstation running 4.4 BSD
5296 tm_file
=mips
/dec-bsd.h
5297 if test x
$gas = xyes
5299 tmake_file
=mips
/t-mips-gas
5301 tmake_file
=mips
/t-ultrix
5302 extra_passes
="mips-tfile mips-tdump"
5304 if test x
$gnu_ld != xyes
5309 mipsel-
*-netbsd* | mips-dec-netbsd
*) # Decstation running NetBSD
5310 tm_file
=mips
/netbsd.h
5311 # On NetBSD, the headers are already okay, except for math.h.
5314 mips
*-*-linux*) # Linux MIPS, either endian.
5317 mipsel-
*) tm_file
="mips/elfl.h mips/linux.h" ;;
5318 *) tm_file
="mips/elf.h mips/linux.h" ;;
5320 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5323 if test x
$enable_threads = xyes
; then
5327 mips
*el-
*-openbsd*) # mips little endian
5328 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5330 mips
*-*-openbsd*) # mips big endian
5331 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5332 tm_file
="mips/openbsd-be.h ${tm_file}"
5334 mips-sony-bsd
* | mips-sony-newsos
*) # Sony NEWS 3600 or risc/news.
5335 tm_file
="mips/news4.h ${tm_file}"
5336 if test x
$stabs = xyes
; then
5337 tm_file
="${tm_file} dbx.h"
5339 if test x
$gas = xyes
5341 tmake_file
=mips
/t-mips-gas
5343 extra_passes
="mips-tfile mips-tdump"
5345 if test x
$gnu_ld != xyes
5349 xmake_file
=mips
/x-sony
5351 mips-sony-sysv
*) # Sony NEWS 3800 with NEWSOS5.0.
5352 # That is based on svr4.
5353 # t-svr4 is not right because this system doesn't use ELF.
5354 tm_file
="mips/news5.h ${tm_file}"
5355 if test x
$stabs = xyes
; then
5356 tm_file
="${tm_file} dbx.h"
5359 if test x
$gas = xyes
5361 tmake_file
=mips
/t-mips-gas
5363 extra_passes
="mips-tfile mips-tdump"
5365 if test x
$gnu_ld != xyes
5370 mips-tandem-sysv4
*) # Tandem S2 running NonStop UX
5371 tm_file
="mips/svr4-5.h mips/svr4-t.h"
5372 if test x
$stabs = xyes
; then
5373 tm_file
="${tm_file} dbx.h"
5376 xmake_file
=mips
/x-sysv
5377 if test x
$gas = xyes
5379 tmake_file
=mips
/t-mips-gas
5380 extra_parts
="crtbegin.o crtend.o"
5382 tmake_file
=mips
/t-mips
5383 extra_passes
="mips-tfile mips-tdump"
5385 if test x
$gnu_ld != xyes
5390 mips-
*-ultrix* | mips-dec-mach3
) # Decstation.
5391 tm_file
="mips/ultrix.h ${tm_file}"
5392 if test x
$stabs = xyes
; then
5393 tm_file
="${tm_file} dbx.h"
5395 xmake_file
=mips
/x-ultrix
5396 if test x
$gas = xyes
5398 tmake_file
=mips
/t-mips-gas
5400 tmake_file
=mips
/t-ultrix
5401 extra_passes
="mips-tfile mips-tdump"
5403 if test x
$gnu_ld != xyes
5408 mips-
*-riscos[56789]bsd
*)
5409 tm_file
=mips
/bsd-5.h
# MIPS BSD 4.3, RISC-OS 5.0
5410 if test x
$stabs = xyes
; then
5411 tm_file
="${tm_file} dbx.h"
5413 if test x
$gas = xyes
5415 tmake_file
=mips
/t-bsd-gas
5417 tmake_file
=mips
/t-bsd
5418 extra_passes
="mips-tfile mips-tdump"
5420 if test x
$gnu_ld != xyes
5425 mips-
*-bsd* | mips-
*-riscosbsd* | mips-
*-riscos[1234]bsd
*)
5426 tm_file
="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
5427 if test x
$stabs = xyes
; then
5428 tm_file
="${tm_file} dbx.h"
5430 if test x
$gas = xyes
5432 tmake_file
=mips
/t-bsd-gas
5434 tmake_file
=mips
/t-bsd
5435 extra_passes
="mips-tfile mips-tdump"
5437 if test x
$gnu_ld != xyes
5442 mips-
*-riscos[56789]sysv4
*)
5443 tm_file
=mips
/svr4-5.h
# MIPS System V.4., RISC-OS 5.0
5444 if test x
$stabs = xyes
; then
5445 tm_file
="${tm_file} dbx.h"
5447 xmake_file
=mips
/x-sysv
5448 if test x
$gas = xyes
5450 tmake_file
=mips
/t-svr4-gas
5452 tmake_file
=mips
/t-svr4
5453 extra_passes
="mips-tfile mips-tdump"
5455 if test x
$gnu_ld != xyes
5460 mips-
*-sysv4* | mips-
*-riscos[1234]sysv4
* | mips-
*-riscossysv4*)
5461 tm_file
="mips/svr4-4.h ${tm_file}"
5462 if test x
$stabs = xyes
; then
5463 tm_file
="${tm_file} dbx.h"
5466 xmake_file
=mips
/x-sysv
5467 if test x
$gas = xyes
5469 tmake_file
=mips
/t-svr4-gas
5471 tmake_file
=mips
/t-svr4
5472 extra_passes
="mips-tfile mips-tdump"
5474 if test x
$gnu_ld != xyes
5479 mips-
*-riscos[56789]sysv
*)
5480 tm_file
=mips
/svr3-5.h
# MIPS System V.3, RISC-OS 5.0
5481 if test x
$stabs = xyes
; then
5482 tm_file
="${tm_file} dbx.h"
5485 xmake_file
=mips
/x-sysv
5486 if test x
$gas = xyes
5488 tmake_file
=mips
/t-svr3-gas
5490 tmake_file
=mips
/t-svr3
5491 extra_passes
="mips-tfile mips-tdump"
5493 if test x
$gnu_ld != xyes
5498 mips-
*-sysv* | mips-
*-riscos*sysv
*)
5499 tm_file
="mips/svr3-4.h ${tm_file}"
5500 if test x
$stabs = xyes
; then
5501 tm_file
="${tm_file} dbx.h"
5504 xmake_file
=mips
/x-sysv
5505 if test x
$gas = xyes
5507 tmake_file
=mips
/t-svr3-gas
5509 tmake_file
=mips
/t-svr3
5510 extra_passes
="mips-tfile mips-tdump"
5512 if test x
$gnu_ld != xyes
5517 mips-
*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
5518 tm_file
=mips
/mips-5.h
5519 if test x
$stabs = xyes
; then
5520 tm_file
="${tm_file} dbx.h"
5522 if test x
$gas = xyes
5524 tmake_file
=mips
/t-mips-gas
5526 extra_passes
="mips-tfile mips-tdump"
5528 if test x
$gnu_ld != xyes
5536 tm_file
=mips
/ecoffl.h
5537 if test x
$stabs = xyes
; then
5538 tm_file
="${tm_file} dbx.h"
5540 tmake_file
=mips
/t-ecoff
5543 tm_file
="gofast.h mips/ecoff.h"
5544 if test x
$stabs = xyes
; then
5545 tm_file
="${tm_file} dbx.h"
5547 tmake_file
=mips
/t-ecoff
5550 tm_file
="mips/elfl.h"
5551 tmake_file
=mips
/t-elf
5554 tm_file
="mips/elf.h"
5555 tmake_file
=mips
/t-elf
5558 tm_file
="mips/elfl64.h"
5559 tmake_file
=mips
/t-elf
5561 mips64orionel-
*-elf*)
5562 tm_file
="mips/elforion.h mips/elfl64.h"
5563 tmake_file
=mips
/t-elf
5566 tm_file
="mips/elf64.h"
5567 tmake_file
=mips
/t-elf
5570 tm_file
="mips/elforion.h mips/elf64.h"
5571 tmake_file
=mips
/t-elf
5573 mips64orion-
*-rtems*)
5574 tm_file
="mips/elforion.h mips/elf64.h mips/rtems64.h"
5575 tmake_file
="mips/t-elf t-rtems"
5578 tm_file
="mips/r3900.h mips/elfl.h mips/abi64.h"
5579 tmake_file
=mips
/t-r3900
5582 tm_file
="mips/r3900.h mips/elf.h mips/abi64.h"
5583 tmake_file
=mips
/t-r3900
5585 mips-
*-*) # Default MIPS RISC-OS 4.0.
5586 if test x
$stabs = xyes
; then
5587 tm_file
="${tm_file} dbx.h"
5589 if test x
$gas = xyes
5591 tmake_file
=mips
/t-mips-gas
5593 extra_passes
="mips-tfile mips-tdump"
5595 if test x
$gnu_ld != xyes
5603 tm_file
="mn10200/mn10200.h"
5604 if test x
$stabs = xyes
5606 tm_file
="${tm_file} dbx.h"
5612 tm_file
="mn10300/mn10300.h"
5613 if test x
$stabs = xyes
5615 tm_file
="${tm_file} dbx.h"
5620 tm_file
=ns32k
/encore.h
5624 tm_file
=ns32k
/sequent.h
5628 tm_file
=ns32k
/tek6100.h
5632 tm_file
=ns32k
/tek6200.h
5635 # This has not been updated to GCC 2.
5638 # xmake_file=ns32k/x-genix
5639 # tm_file=ns32k/genix.h
5643 tm_file
=ns32k
/merlin.h
5647 tm_file
=ns32k
/pc532-mach.h
5651 tm_file
=ns32k
/pc532-min.h
5652 xm_file
="ns32k/xm-pc532-min.h ${xm-file}"
5657 tm_file
=ns32k
/netbsd.h
5658 xm_file
="ns32k/xm-netbsd.h ${xm_file}"
5659 # On NetBSD, the headers are already okay, except for math.h.
5664 tm_file
="${tm_file} pdp11/2bsd.h"
5673 # This has not been updated to GCC 2.
5676 # xmake_file=pyr/x-pyr
5681 tm_file
="svr4.h pj/linux.h ${tm_file}"
5686 tm_file
="svr4.h pj/pjl.h ${tm_file}"
5693 xmake_file
=romp
/x-mach
5700 tmake_file
="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
5704 tm_file
=rs6000
/beos.h
5705 xm_file
=rs6000
/xm-beos.h
5706 tmake_file
=rs6000
/t-beos
5707 xmake_file
=rs6000
/x-beos
5710 tm_file
=rs6000
/sysv4.h
5711 xm_file
="rs6000/xm-sysv4.h"
5712 xm_defines
="USG POSIX"
5713 extra_headers
=ppc-asm.h
5714 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
5715 xmake_file
=rs6000
/x-sysv4
5718 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
5719 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5720 extra_headers
=ppc-asm.h
5723 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
5724 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5725 extra_headers
=ppc-asm.h
5728 tm_file
="rs6000/sysv4.h"
5729 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5730 extra_headers
=ppc-asm.h
5733 tm_file
="rs6000/sysv4.h rs6000/eabi.h"
5734 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5735 extra_headers
=ppc-asm.h
5738 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
5739 tmake_file
="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
5740 extra_headers
=ppc-asm.h
5742 powerpc-
*-linux-gnulibc1)
5743 tm_file
="rs6000/sysv4.h rs6000/linux.h"
5744 xm_file
=rs6000
/xm-sysv4.h
5745 out_file
=rs6000
/rs6000.c
5746 tmake_file
="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5748 extra_headers
=ppc-asm.h
5749 if test x
$enable_threads = xyes
; then
5753 powerpc-
*-linux-gnu*)
5754 tm_file
="rs6000/sysv4.h rs6000/linux.h"
5755 xm_file
="rs6000/xm-sysv4.h"
5756 xm_defines
="USG ${xm_defines}"
5757 out_file
=rs6000
/rs6000.c
5758 tmake_file
="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
5760 extra_headers
=ppc-asm.h
5761 if test x
$enable_threads = xyes
; then
5765 powerpc-wrs-vxworks
*)
5767 xm_file
="rs6000/xm-sysv4.h"
5768 xm_defines
="USG POSIX"
5769 tm_file
="rs6000/sysv4.h rs6000/vxppc.h"
5770 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5771 extra_headers
=ppc-asm.h
5772 thread_file
='vxworks'
5774 powerpcle-wrs-vxworks
*)
5776 xm_file
="rs6000/xm-sysv4.h"
5777 xm_defines
="USG POSIX"
5778 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
5779 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5780 extra_headers
=ppc-asm.h
5781 thread_file
='vxworks'
5784 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h"
5785 xm_file
="rs6000/xm-sysv4.h"
5786 xm_defines
="USG POSIX"
5787 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
5788 xmake_file
=rs6000
/x-sysv4
5789 extra_headers
=ppc-asm.h
5792 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h"
5793 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5794 extra_headers
=ppc-asm.h
5796 powerpcle-
*-eabisim*)
5797 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
5798 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5799 extra_headers
=ppc-asm.h
5802 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
5803 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5804 extra_headers
=ppc-asm.h
5806 powerpcle-
*-solaris2*)
5807 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
5808 xm_file
="rs6000/xm-sysv4.h"
5809 xm_defines
="USG POSIX"
5810 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
5811 xmake_file
=rs6000
/x-sysv4
5812 extra_headers
=ppc-asm.h
5814 rs6000-ibm-aix3.
[01]*)
5815 tm_file
=rs6000
/aix31.h
5816 xmake_file
=rs6000
/x-aix31
5820 rs6000-ibm-aix3.2.
[456789]* | powerpc-ibm-aix3.2.
[456789]*)
5821 tm_file
=rs6000
/aix3newas.h
5822 if test x
$host != x
$target
5824 tmake_file
=rs6000
/t-xnewas
5826 tmake_file
=rs6000
/t-newas
5831 rs6000-ibm-aix4.
[12]* | powerpc-ibm-aix4.
[12]*)
5832 tm_file
=rs6000
/aix41.h
5833 if test x
$host != x
$target
5835 tmake_file
=rs6000
/t-xnewas
5837 tmake_file
=rs6000
/t-newas
5839 if test "$gnu_ld" = yes
5841 xmake_file
=rs6000
/x-aix41-gld
5843 tmake_file
="rs6000/t-newas rs6000/t-aix41"
5845 xmake_file
=rs6000
/x-aix41
5849 rs6000-ibm-aix4.
[3456789]* | powerpc-ibm-aix4.
[3456789]*)
5850 tm_file
=rs6000
/aix43.h
5851 tmake_file
=rs6000
/t-aix43
5852 xmake_file
=rs6000
/x-aix41
5856 rs6000-ibm-aix
[56789].
* | powerpc-ibm-aix
[56789].
*)
5857 tm_file
=rs6000
/aix43.h
5858 tmake_file
=rs6000
/t-aix43
5859 xmake_file
=rs6000
/x-aix41
5872 tm_file
=rs6000
/mach.h
5873 xm_file
="${xm_file} rs6000/xm-mach.h"
5874 xmake_file
=rs6000
/x-mach
5878 tm_file
=rs6000
/lynx.h
5879 xm_file
=rs6000
/xm-lynx.h
5880 tmake_file
=rs6000
/t-rs6000
5881 xmake_file
=rs6000
/x-lynx
5889 tmake_file
="sh/t-sh t-rtems"
5890 tm_file
=sh
/rtemself.h
5894 tmake_file
="sh/t-sh t-rtems"
5903 xm_file
="xm-alloca.h ${xm_file}"
5906 sparc-wrs-vxworks
* | sparclite-wrs-vxworks
*)
5907 tm_file
=sparc
/vxsparc.h
5908 tmake_file
=sparc
/t-vxsparc
5910 thread_file
='vxworks'
5913 tmake_file
=sparc
/t-sparcbare
5914 tm_file
="sparc/aout.h libgloss.h"
5917 tm_file
=sparc
/netbsd.h
5922 # we need collect2 until our bug is fixed...
5930 tmake_file
=sparc
/t-elf
5931 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
5935 sparc-
*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
5936 xm_file
="${xm_file} sparc/xm-linux.h"
5937 tm_file
=sparc
/linux-aout.h
5941 sparc-
*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
5942 xm_file
="${xm_file} sparc/xm-linux.h"
5944 tm_file
=sparc
/linux.h
5945 tmake_file
="t-linux t-linux-gnulibc1"
5946 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5950 sparc-
*-linux-gnu*) # Sparc's running GNU/Linux, libc6
5951 xm_file
="${xm_file} sparc/xm-linux.h"
5953 tm_file
=sparc
/linux.h
5954 tmake_file
="t-linux"
5955 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5957 if test x
$enable_threads = xyes
; then
5963 if test x
$gas = xyes
5965 tm_file
=sparc
/lynx.h
5967 tm_file
=sparc
/lynx-ng.h
5969 xm_file
=sparc
/xm-lynx.h
5970 tmake_file
=sparc
/t-sunos41
5974 tmake_file
="sparc/t-sparcbare t-rtems"
5975 tm_file
=sparc
/rtems.h
5977 sparc-
*-rtems*|sparc-
*-rtemself*)
5978 tm_file
="sparc/rtemself.h"
5979 tmake_file
="sparc/t-elf t-rtems"
5980 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
5984 sparcv9-
*-solaris2*)
5985 if test x
$gnu_ld = xyes
5987 tm_file
=sparc
/sol2-64.h
5989 tm_file
=sparc
/sol2-sld-64.h
5991 xm_file
="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
5992 xm_defines
="USG POSIX"
5993 tmake_file
="sparc/t-sol2 sparc/t-sol2-64"
5994 xmake_file
=sparc
/x-sysv4
5995 extra_parts
="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
5997 if test x
${enable_threads} = x
; then
5998 enable_threads
=$have_pthread_h
5999 if test x
${enable_threads} = x
; then
6000 enable_threads
=$have_thread_h
6003 if test x
${enable_threads} = xyes
; then
6004 if test x
${have_pthread_h} = xyes
; then
6007 thread_file
='solaris'
6011 sparc-hal-solaris2
*)
6012 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6013 xm_defines
="USG POSIX"
6014 tm_file
="sparc/sol2.h sparc/hal.h"
6015 tmake_file
="sparc/t-halos sparc/t-sol2"
6016 xmake_file
=sparc
/x-sysv4
6017 extra_parts
="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
6026 thread_file
='solaris'
6029 if test x
$gnu_ld = xyes
6031 tm_file
=sparc
/sol2.h
6033 tm_file
=sparc
/sol2-sld.h
6035 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6036 xm_defines
="USG POSIX"
6037 tmake_file
=sparc
/t-sol2
6038 xmake_file
=sparc
/x-sysv4
6039 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
6041 *-*-solaris2.
[0-6] |
*-*-solaris2.
[0-6].
*) ;;
6043 if test x
$gnu_ld = xyes
6045 tm_file
=sparc
/sol2-64.h
6047 tm_file
=sparc
/sol2-sld-64.h
6049 tmake_file
="$tmake_file sparc/t-sol2-64"
6060 if test x
${enable_threads} = x
; then
6061 enable_threads
=$have_pthread_h
6062 if test x
${enable_threads} = x
; then
6063 enable_threads
=$have_thread_h
6066 if test x
${enable_threads} = xyes
; then
6067 if test x
${have_pthread_h} = xyes
; then
6070 thread_file
='solaris'
6075 tm_file
=sparc
/sunos4.h
6076 tmake_file
=sparc
/t-sunos40
6080 tm_file
=sparc
/sunos4.h
6081 tmake_file
=sparc
/t-sunos41
6083 if test x
$gas = xyes
; then
6084 tm_file
="${tm_file} sparc/sun4gas.h"
6088 tm_file
=sparc
/sun4o3.h
6092 tm_file
=sparc
/sysv4.h
6093 xm_file
="sparc/xm-sysv4.h"
6094 xm_defines
="USG POSIX"
6096 xmake_file
=sparc
/x-sysv4
6097 extra_parts
="crtbegin.o crtend.o"
6100 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6101 xm_defines
="USG POSIX"
6102 tm_file
=sparc
/vxsim.h
6103 tmake_file
=sparc
/t-vxsparc
6104 xmake_file
=sparc
/x-sysv4
6107 tm_file
="sparc/splet.h libgloss.h"
6108 tmake_file
=sparc
/t-splet
6111 tm_file
="sparc/litecoff.h libgloss.h"
6112 tmake_file
=sparc
/t-sparclite
6115 tm_file
="sparc/lite.h aoutos.h libgloss.h"
6116 tmake_file
=sparc
/t-sparclite
6119 tm_file
="sparc/liteelf.h"
6120 tmake_file
=sparc
/t-sparclite
6121 extra_parts
="crtbegin.o crtend.o"
6124 tm_file
="sparc/sp86x-aout.h aoutos.h libgloss.h"
6125 tmake_file
=sparc
/t-sp86x
6128 tm_file
="sparc/sp86x-elf.h"
6129 tmake_file
=sparc
/t-sp86x
6130 extra_parts
="crtbegin.o crtend.o"
6133 tmake_file
=sparc
/t-sp64
6134 tm_file
=sparc
/sp64-aout.h
6137 tmake_file
=sparc
/t-sp64
6138 tm_file
=sparc
/sp64-elf.h
6139 extra_parts
="crtbegin.o crtend.o"
6141 sparc64-
*-linux*) # 64-bit Sparc's running GNU/Linux
6142 tmake_file
="t-linux sparc/t-linux64"
6143 xm_file
="sparc/xm-sp64.h sparc/xm-linux.h"
6144 tm_file
=sparc
/linux64.h
6146 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6148 if test x
$enable_threads = xyes
; then
6153 # This hasn't been upgraded to GCC 2.
6154 # tahoe-harris-*) # Harris tahoe, using COFF.
6155 # tm_file=tahoe/harris.h
6157 # tahoe-*-bsd*) # tahoe running BSD
6161 { echo "configure: error:
6162 *** The Thumb targets have been depreciated. The equivalent
6163 *** ARM based toolchain can now generated Thumb instructions
6164 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
6166 # This hasn't been upgraded to GCC 2.
6173 tm_file
="v850/rtems.h"
6174 xm_file
="v850/xm-v850.h"
6175 tmake_file
="v850/t-v850 t-rtems"
6176 if test x
$stabs = xyes
6178 tm_file
="${tm_file} dbx.h"
6183 target_cpu_default
="TARGET_CPU_generic"
6185 tm_file
="v850/v850.h"
6186 xm_file
="v850/xm-v850.h"
6187 tmake_file
=v850
/t-v850
6188 if test x
$stabs = xyes
6190 tm_file
="${tm_file} dbx.h"
6194 vax-
*-bsd*) # vaxen running BSD
6198 vax-
*-sysv*) # vaxen running system V
6199 tm_file
="${tm_file} vax/vaxv.h"
6204 tm_file
="${tm_file} netbsd.h vax/netbsd.h"
6210 tmake_file
="${tmake_file} vax/t-openbsd"
6212 vax-
*-ultrix*) # vaxen running ultrix
6213 tm_file
="${tm_file} vax/ultrix.h"
6217 vax-
*-vms*) # vaxen running VMS
6218 xm_file
=vax
/xm-vms.h
6222 vax-
*-*) # vax default entry
6226 xm_file
="${xm_file} xm-svr3"
6230 echo "Configuration $machine not supported" 1>&2
6237 ;; # Existing GNU/Linux systems do not use the GNU setup.
6239 # On the GNU system, the setup is just about the same on
6240 # each different CPU. The specific machines that GNU
6241 # supports are matched above and just set $cpu_type.
6242 xm_file
="xm-gnu.h ${xm_file}"
6243 tm_file
=${cpu_type}/gnu.h
6244 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
6245 # GNU always uses ELF.
6247 # GNU tools are the only tools.
6250 xmake_file
=x-linux
# These details are the same as Linux.
6251 tmake_file
=t-gnu
# These are not.
6254 xmake_try_sysv
=x-sysv
6255 install_headers_dir
=install-headers-cpio
6258 install_headers_dir
=install-headers-cpio
6262 # Distinguish i[34567]86
6263 # Also, do not run mips-tfile on MIPS if using gas.
6264 # Process --with-cpu= for PowerPC/rs6000
6265 target_cpu_default2
=
6268 target_cpu_default2
=1
6271 case $target_alias in
6273 target_cpu_default2
=4
6276 target_cpu_default2
=2
6280 i686-
*-* | i786-
*-*)
6281 target_cpu_default2
=3
6286 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
6289 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
6292 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
6295 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX"
6298 target_cpu_default2
="MASK_CPU_EV5"
6302 if test x
$gas = xyes
6304 if test "$target_cpu_default2" = ""
6306 target_cpu_default2
="MASK_GAS"
6308 target_cpu_default2
="${target_cpu_default2}|MASK_GAS"
6313 case "x$with_cpu" in
6316 target_cpu_default2
="TARGET_CPU_generic"
6319 # Distinguish cores, and major variants
6320 # arm7m doesn't exist, but D & I don't affect code
6321 xarm
[23678] | xarm250 | xarm
[67][01]0 \
6322 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
6323 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
6324 | xstrongarm | xstrongarm110 | xstrongarm1100
)
6325 target_cpu_default2
="TARGET_CPU_$with_cpu"
6329 echo "--with-cpu must be passed a value" 1>&2
6334 if test x
$pass2done = xyes
6336 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6343 mips
*-*-ecoff* | mips
*-*-elf*)
6344 if test x
$gas = xyes
6346 if test x
$gnu_ld = xyes
6348 target_cpu_default2
=20
6350 target_cpu_default2
=16
6355 if test x
$gas = xyes
6357 target_cpu_default2
=16
6360 powerpc
*-*-* | rs6000-
*-*)
6361 case "x$with_cpu" in
6365 xcommon | xpower | xpower2 | xpowerpc | xrios \
6366 | xrios1 | xrios2 | xrsc | xrsc1 \
6367 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
6368 | xec603e | x740 | x750 | x401 \
6369 | x403 | x505 | x801 | x821 | x823 | x860
)
6370 target_cpu_default2
="\"$with_cpu\""
6374 echo "--with-cpu must be passed a value" 1>&2
6379 if test x
$pass2done = xyes
6381 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6388 case ".$with_cpu" in
6390 target_cpu_default2
=TARGET_CPU_
"`echo $machine | sed 's/-.*$//'`"
6392 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9
)
6393 target_cpu_default2
="TARGET_CPU_$with_cpu"
6396 if test x
$pass2done = xyes
6398 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6406 if test "$target_cpu_default2" != ""
6408 if test "$target_cpu_default" != ""
6410 target_cpu_default
="(${target_cpu_default}|${target_cpu_default2})"
6412 target_cpu_default
=$target_cpu_default2
6416 # No need for collect2 if we have the GNU linker.
6417 # Actually, there is now; GNU ld doesn't handle the EH info or
6418 # collecting for shared libraries.
6425 # Save data on machine being used to compile GCC in build_xm_file.
6426 # Save data on host machine in vars host_xm_file and host_xmake_file.
6427 if test x
$pass1done = x
6429 if test x
"$xm_file" = x
6430 then build_xm_file
=$cpu_type/xm-
$cpu_type.h
6431 else build_xm_file
=$xm_file
6433 build_xm_defines
=$xm_defines
6434 build_install_headers_dir
=$install_headers_dir
6435 build_exeext
=$exeext
6438 if test x
$pass2done = x
6440 if test x
"$xm_file" = x
6441 then host_xm_file
=$cpu_type/xm-
$cpu_type.h
6442 else host_xm_file
=$xm_file
6444 host_xm_defines
=$xm_defines
6445 if test x
"$xmake_file" = x
6446 then xmake_file
=$cpu_type/x-
$cpu_type
6448 host_xmake_file
="$xmake_file"
6449 host_truncate_target
=$truncate_target
6450 host_extra_gcc_objs
=$extra_gcc_objs
6451 host_extra_objs
=$extra_host_objs
6458 extra_objs
="${host_extra_objs} ${extra_objs}"
6460 # Default the target-machine variables that were not explicitly set.
6461 if test x
"$tm_file" = x
6462 then tm_file
=$cpu_type/$cpu_type.h
; fi
6464 if test x
$extra_headers = x
6465 then extra_headers
=; fi
6467 if test x
"$xm_file" = x
6468 then xm_file
=$cpu_type/xm-
$cpu_type.h
; fi
6470 if test x
$md_file = x
6471 then md_file
=$cpu_type/$cpu_type.md
; fi
6473 if test x
$out_file = x
6474 then out_file
=$cpu_type/$cpu_type.c
; fi
6476 if test x
"$tmake_file" = x
6477 then tmake_file
=$cpu_type/t-
$cpu_type
6480 if test x
"$dwarf2" = xyes
6481 then tm_file
="$tm_file tm-dwarf2.h"
6484 if test x
$float_format = x
6485 then float_format
=i64
6488 if test $float_format = none
6489 then float_h_file
=Makefile.
in
6490 else float_h_file
=float-
$float_format.h
6493 # Handle cpp installation.
6494 if test x
$enable_cpp != xno
6496 tmake_file
="$tmake_file t-install-cpp"
6499 # Say what files are being used for the output code and MD file.
6500 echo "Using \`$srcdir/config/$out_file' to output insns."
6501 echo "Using \`$srcdir/config/$md_file' as machine description file."
6504 for f
in $tm_file; do
6507 if test $count = ax
; then
6508 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
6510 echo "Using the following target machine macro files:"
6511 for f
in $tm_file; do
6512 echo " $srcdir/config/$f"
6517 for f
in $host_xm_file; do
6520 if test $count = ax
; then
6521 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
6523 echo "Using the following host machine macro files:"
6524 for f
in $host_xm_file; do
6525 echo " $srcdir/config/$f"
6529 if test "$host_xm_file" != "$build_xm_file"; then
6531 for f
in $build_xm_file; do
6534 if test $count = ax
; then
6535 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
6537 echo "Using the following build machine macro files:"
6538 for f
in $build_xm_file; do
6539 echo " $srcdir/config/$f"
6544 if test x
$thread_file = x
; then
6545 if test x
$target_thread_file != x
; then
6546 thread_file
=$target_thread_file
6548 thread_file
='single'
6552 # Set up the header files.
6553 # $links is the list of header files to create.
6554 # $vars is the list of shell variables with file names to include.
6555 # auto-host.h is the file containing items generated by autoconf and is
6556 # the first file included by config.h.
6558 host_xm_file
="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
6560 # If host=build, it is correct to have hconfig include auto-host.h
6561 # as well. If host!=build, we are in error and need to do more
6562 # work to find out the build config parameters.
6563 if test x
$host = x
$build
6565 build_xm_file
="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
6567 # We create a subdir, then run autoconf in the subdir.
6568 # To prevent recursion we set host and build for the new
6569 # invocation of configure to the build for this invocation
6576 /*) realsrcdir
=${srcdir};;
6577 *) realsrcdir
=..
/${srcdir};;
6579 CC
=${CC_FOR_BUILD} ${realsrcdir}/configure \
6580 --target=$target --host=$build --build=$build
6582 # We just finished tests for the build machine, so rename
6583 # the file auto-build.h in the gcc directory.
6584 mv auto-host.h ..
/auto-build.h
6587 build_xm_file
="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
6590 xm_file
="gansidecl.h ${xm_file}"
6591 tm_file
="gansidecl.h ${tm_file}"
6593 vars
="host_xm_file tm_file tm_p_file xm_file build_xm_file"
6594 links
="config.h tm.h tm_p.h tconfig.h hconfig.h"
6595 defines
="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
6598 if test -f config.status
; then mv -f config.status config.bak
; fi
6601 while test -n "$vars"
6603 set $vars; var
=$1; shift; vars
=$
*
6604 set $links; link
=$1; shift; links
=$
*
6605 set $defines; define
=$1; shift; defines
=$
*
6608 # Make sure the file is created, even if it is empty.
6611 # Define TARGET_CPU_DEFAULT if the system wants one.
6612 # This substitutes for lots of *.h files.
6613 if test "$target_cpu_default" != "" -a $link = tm.h
6615 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
6618 for file in `eval echo '$'$var`; do
6623 echo '#ifdef IN_GCC' >>$link
6626 echo "#include \"$file\"" >>$link
6631 echo '#endif' >>$link
6636 for def
in `eval echo '$'$define`; do
6637 echo "#ifndef $def" >>$link
6638 echo "#define $def" >>$link
6639 echo "#endif" >>$link
6643 # Truncate the target if necessary
6644 if test x
$host_truncate_target != x
; then
6645 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
6648 # Get the version trigger filename from the toplevel
6649 if test "${with_gcc_version_trigger+set}" = set; then
6650 gcc_version_trigger
=$with_gcc_version_trigger
6652 gcc_version_trigger
=${srcdir}/version.c
6654 gcc_version
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
6656 # Internationalization
6658 VERSION
="$gcc_version"
6659 cat >> confdefs.h
<<EOF
6660 #define PACKAGE "$PACKAGE"
6663 cat >> confdefs.h
<<EOF
6664 #define VERSION "$VERSION"
6672 # NLS support is still experimental, so disable it by default for now.
6673 # Check whether --enable-nls or --disable-nls was given.
6674 if test "${enable_nls+set}" = set; then
6675 enableval
="$enable_nls"
6683 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
6684 echo "configure:6685: checking for strerror in -lcposix" >&5
6685 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
6686 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6687 echo $ac_n "(cached) $ac_c" 1>&6
6689 ac_save_LIBS
="$LIBS"
6690 LIBS
="-lcposix $LIBS"
6691 cat > conftest.
$ac_ext <<EOF
6692 #line 6693 "configure"
6693 #include "confdefs.h"
6694 /* Override any gcc2 internal prototype to avoid an error. */
6695 /* We use char because int might match the return type of a gcc2
6696 builtin and then its argument prototype would still apply. */
6703 if { (eval echo configure
:6704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6705 eval "ac_cv_lib_$ac_lib_var=yes"
6707 echo "configure: failed program was:" >&5
6708 cat conftest.
$ac_ext >&5
6710 eval "ac_cv_lib_$ac_lib_var=no"
6713 LIBS
="$ac_save_LIBS"
6716 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6717 echo "$ac_t""yes" 1>&6
6718 LIBS
="$LIBS -lcposix"
6720 echo "$ac_t""no" 1>&6
6725 echo $ac_n "checking for working const""... $ac_c" 1>&6
6726 echo "configure:6727: checking for working const" >&5
6727 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6728 echo $ac_n "(cached) $ac_c" 1>&6
6730 cat > conftest.
$ac_ext <<EOF
6731 #line 6732 "configure"
6732 #include "confdefs.h"
6736 /* Ultrix mips cc rejects this. */
6737 typedef int charset[2]; const charset x = {0,0};
6738 /* SunOS 4.1.1 cc rejects this. */
6739 char const *const *ccp;
6741 /* NEC SVR4.0.2 mips cc rejects this. */
6742 struct point {int x, y;};
6743 static struct point const zero = {0,0};
6744 /* AIX XL C 1.02.0.0 rejects this.
6745 It does not let you subtract one const X* pointer from another in an arm
6746 of an if-expression whose if-part is not a constant expression */
6747 const char *g = "string";
6748 ccp = &g + (g ? g-g : 0);
6749 /* HPUX 7.0 cc rejects these. */
6752 ccp = (char const *const *) p;
6753 { /* SCO 3.2v4 cc rejects this. */
6755 char const *s = 0 ? (char *) 0 : (char const *) 0;
6759 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6761 const int *foo = &x[0];
6764 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6765 typedef const int *iptr;
6769 { /* AIX XL C 1.02.0.0 rejects this saying
6770 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6771 struct s { int j; const int *ap[3]; };
6772 struct s *b; b->j = 5;
6774 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6780 if { (eval echo configure
:6781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6784 echo "configure: failed program was:" >&5
6785 cat conftest.
$ac_ext >&5
6792 echo "$ac_t""$ac_cv_c_const" 1>&6
6793 if test $ac_cv_c_const = no
; then
6794 cat >> confdefs.h
<<\EOF
6800 echo $ac_n "checking for inline""... $ac_c" 1>&6
6801 echo "configure:6802: checking for inline" >&5
6802 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6803 echo $ac_n "(cached) $ac_c" 1>&6
6806 for ac_kw
in inline __inline__ __inline
; do
6807 cat > conftest.
$ac_ext <<EOF
6808 #line 6809 "configure"
6809 #include "confdefs.h"
6812 } int $ac_kw foo() {
6815 if { (eval echo configure
:6816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6817 ac_cv_c_inline
=$ac_kw; break
6819 echo "configure: failed program was:" >&5
6820 cat conftest.
$ac_ext >&5
6827 echo "$ac_t""$ac_cv_c_inline" 1>&6
6828 case "$ac_cv_c_inline" in
6830 no
) cat >> confdefs.h
<<\EOF
6834 *) cat >> confdefs.h
<<EOF
6835 #define inline $ac_cv_c_inline
6840 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6841 echo "configure:6842: checking for off_t" >&5
6842 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6843 echo $ac_n "(cached) $ac_c" 1>&6
6845 cat > conftest.
$ac_ext <<EOF
6846 #line 6847 "configure"
6847 #include "confdefs.h"
6848 #include <sys/types.h>
6854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6855 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
6857 ac_cv_type_off_t
=yes
6865 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6866 if test $ac_cv_type_off_t = no
; then
6867 cat >> confdefs.h
<<\EOF
6873 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6874 echo "configure:6875: checking for size_t" >&5
6875 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6876 echo $ac_n "(cached) $ac_c" 1>&6
6878 cat > conftest.
$ac_ext <<EOF
6879 #line 6880 "configure"
6880 #include "confdefs.h"
6881 #include <sys/types.h>
6887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6888 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
6890 ac_cv_type_size_t
=yes
6893 ac_cv_type_size_t
=no
6898 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6899 if test $ac_cv_type_size_t = no
; then
6900 cat >> confdefs.h
<<\EOF
6901 #define size_t unsigned
6906 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6907 # for constant arguments. Useless!
6908 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6909 echo "configure:6910: checking for working alloca.h" >&5
6910 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6911 echo $ac_n "(cached) $ac_c" 1>&6
6913 cat > conftest.
$ac_ext <<EOF
6914 #line 6915 "configure"
6915 #include "confdefs.h"
6918 void *p = alloca(2 * sizeof(int));
6921 if { (eval echo configure
:6922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6923 ac_cv_header_alloca_h
=yes
6925 echo "configure: failed program was:" >&5
6926 cat conftest.
$ac_ext >&5
6928 ac_cv_header_alloca_h
=no
6933 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6934 if test $ac_cv_header_alloca_h = yes; then
6935 cat >> confdefs.h
<<\EOF
6936 #define HAVE_ALLOCA_H 1
6941 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6942 echo "configure:6943: checking for alloca" >&5
6943 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6944 echo $ac_n "(cached) $ac_c" 1>&6
6946 cat > conftest.
$ac_ext <<EOF
6947 #line 6948 "configure"
6948 #include "confdefs.h"
6951 # define alloca __builtin_alloca
6954 # include <malloc.h>
6955 # define alloca _alloca
6958 # include <alloca.h>
6963 # ifndef alloca /* predefined by HP cc +Olibcalls */
6972 char *p = (char *) alloca(1);
6975 if { (eval echo configure
:6976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6977 ac_cv_func_alloca_works
=yes
6979 echo "configure: failed program was:" >&5
6980 cat conftest.
$ac_ext >&5
6982 ac_cv_func_alloca_works
=no
6987 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6988 if test $ac_cv_func_alloca_works = yes; then
6989 cat >> confdefs.h
<<\EOF
6990 #define HAVE_ALLOCA 1
6995 if test $ac_cv_func_alloca_works = no
; then
6996 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6997 # that cause trouble. Some versions do not even contain alloca or
6998 # contain a buggy version. If you still want to use their alloca,
6999 # use ar to extract alloca.o from them instead of compiling alloca.c.
7000 ALLOCA
=alloca.
${ac_objext}
7001 cat >> confdefs.h
<<\EOF
7006 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
7007 echo "configure:7008: checking whether alloca needs Cray hooks" >&5
7008 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
7009 echo $ac_n "(cached) $ac_c" 1>&6
7011 cat > conftest.
$ac_ext <<EOF
7012 #line 7013 "configure"
7013 #include "confdefs.h"
7014 #if defined(CRAY) && ! defined(CRAY2)
7021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7022 egrep "webecray" >/dev
/null
2>&1; then
7033 echo "$ac_t""$ac_cv_os_cray" 1>&6
7034 if test $ac_cv_os_cray = yes; then
7035 for ac_func
in _getb67 GETB67 getb67
; do
7036 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7037 echo "configure:7038: checking for $ac_func" >&5
7038 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7039 echo $ac_n "(cached) $ac_c" 1>&6
7041 cat > conftest.
$ac_ext <<EOF
7042 #line 7043 "configure"
7043 #include "confdefs.h"
7044 /* System header to define __stub macros and hopefully few prototypes,
7045 which can conflict with char $ac_func(); below. */
7047 /* Override any gcc2 internal prototype to avoid an error. */
7048 /* We use char because int might match the return type of a gcc2
7049 builtin and then its argument prototype would still apply. */
7054 /* The GNU C library defines this for functions which it implements
7055 to always fail with ENOSYS. Some functions are actually named
7056 something starting with __ and the normal name is an alias. */
7057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7065 if { (eval echo configure
:7066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7067 eval "ac_cv_func_$ac_func=yes"
7069 echo "configure: failed program was:" >&5
7070 cat conftest.
$ac_ext >&5
7072 eval "ac_cv_func_$ac_func=no"
7077 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7078 echo "$ac_t""yes" 1>&6
7079 cat >> confdefs.h
<<EOF
7080 #define CRAY_STACKSEG_END $ac_func
7085 echo "$ac_t""no" 1>&6
7091 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7092 echo "configure:7093: checking stack direction for C alloca" >&5
7093 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
7094 echo $ac_n "(cached) $ac_c" 1>&6
7096 if test "$cross_compiling" = yes; then
7097 ac_cv_c_stack_direction
=0
7099 cat > conftest.
$ac_ext <<EOF
7100 #line 7101 "configure"
7101 #include "confdefs.h"
7102 find_stack_direction ()
7104 static char *addr = 0;
7109 return find_stack_direction ();
7112 return (&dummy > addr) ? 1 : -1;
7116 exit (find_stack_direction() < 0);
7119 if { (eval echo configure
:7120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7121 ac_cv_c_stack_direction
=1
7123 echo "configure: failed program was:" >&5
7124 cat conftest.
$ac_ext >&5
7126 ac_cv_c_stack_direction
=-1
7133 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
7134 cat >> confdefs.h
<<EOF
7135 #define STACK_DIRECTION $ac_cv_c_stack_direction
7141 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7142 unistd.h sys
/param.h
7144 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7145 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7146 echo "configure:7147: checking for $ac_hdr" >&5
7147 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7148 echo $ac_n "(cached) $ac_c" 1>&6
7150 cat > conftest.
$ac_ext <<EOF
7151 #line 7152 "configure"
7152 #include "confdefs.h"
7155 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7156 { (eval echo configure
:7157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7157 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7158 if test -z "$ac_err"; then
7160 eval "ac_cv_header_$ac_safe=yes"
7163 echo "configure: failed program was:" >&5
7164 cat conftest.
$ac_ext >&5
7166 eval "ac_cv_header_$ac_safe=no"
7170 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7171 echo "$ac_t""yes" 1>&6
7172 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7173 cat >> confdefs.h
<<EOF
7174 #define $ac_tr_hdr 1
7178 echo "$ac_t""no" 1>&6
7182 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7183 strdup __argz_count __argz_stringify __argz_next
7185 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7186 echo "configure:7187: checking for $ac_func" >&5
7187 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7188 echo $ac_n "(cached) $ac_c" 1>&6
7190 cat > conftest.
$ac_ext <<EOF
7191 #line 7192 "configure"
7192 #include "confdefs.h"
7193 /* System header to define __stub macros and hopefully few prototypes,
7194 which can conflict with char $ac_func(); below. */
7196 /* Override any gcc2 internal prototype to avoid an error. */
7197 /* We use char because int might match the return type of a gcc2
7198 builtin and then its argument prototype would still apply. */
7203 /* The GNU C library defines this for functions which it implements
7204 to always fail with ENOSYS. Some functions are actually named
7205 something starting with __ and the normal name is an alias. */
7206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7214 if { (eval echo configure
:7215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7216 eval "ac_cv_func_$ac_func=yes"
7218 echo "configure: failed program was:" >&5
7219 cat conftest.
$ac_ext >&5
7221 eval "ac_cv_func_$ac_func=no"
7226 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7227 echo "$ac_t""yes" 1>&6
7228 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7229 cat >> confdefs.h
<<EOF
7230 #define $ac_tr_func 1
7234 echo "$ac_t""no" 1>&6
7239 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7240 for ac_func
in stpcpy
7242 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7243 echo "configure:7244: checking for $ac_func" >&5
7244 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7245 echo $ac_n "(cached) $ac_c" 1>&6
7247 cat > conftest.
$ac_ext <<EOF
7248 #line 7249 "configure"
7249 #include "confdefs.h"
7250 /* System header to define __stub macros and hopefully few prototypes,
7251 which can conflict with char $ac_func(); below. */
7253 /* Override any gcc2 internal prototype to avoid an error. */
7254 /* We use char because int might match the return type of a gcc2
7255 builtin and then its argument prototype would still apply. */
7260 /* The GNU C library defines this for functions which it implements
7261 to always fail with ENOSYS. Some functions are actually named
7262 something starting with __ and the normal name is an alias. */
7263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7271 if { (eval echo configure
:7272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7273 eval "ac_cv_func_$ac_func=yes"
7275 echo "configure: failed program was:" >&5
7276 cat conftest.
$ac_ext >&5
7278 eval "ac_cv_func_$ac_func=no"
7283 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7284 echo "$ac_t""yes" 1>&6
7285 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7286 cat >> confdefs.h
<<EOF
7287 #define $ac_tr_func 1
7291 echo "$ac_t""no" 1>&6
7296 if test "${ac_cv_func_stpcpy}" = "yes"; then
7297 cat >> confdefs.h
<<\EOF
7298 #define HAVE_STPCPY 1
7303 if test $ac_cv_header_locale_h = yes; then
7304 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
7305 echo "configure:7306: checking for LC_MESSAGES" >&5
7306 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
7307 echo $ac_n "(cached) $ac_c" 1>&6
7309 cat > conftest.
$ac_ext <<EOF
7310 #line 7311 "configure"
7311 #include "confdefs.h"
7317 if { (eval echo configure
:7318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7319 am_cv_val_LC_MESSAGES
=yes
7321 echo "configure: failed program was:" >&5
7322 cat conftest.
$ac_ext >&5
7324 am_cv_val_LC_MESSAGES
=no
7329 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7330 if test $am_cv_val_LC_MESSAGES = yes; then
7331 cat >> confdefs.h
<<\EOF
7332 #define HAVE_LC_MESSAGES 1
7337 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7338 echo "configure:7339: checking whether NLS is requested" >&5
7339 # Check whether --enable-nls or --disable-nls was given.
7340 if test "${enable_nls+set}" = set; then
7341 enableval
="$enable_nls"
7347 echo "$ac_t""$USE_NLS" 1>&6
7350 USE_INCLUDED_LIBINTL
=no
7352 if test "$USE_NLS" = "yes"; then
7353 cat >> confdefs.h
<<\EOF
7354 #define ENABLE_NLS 1
7357 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7358 echo "configure:7359: checking whether included gettext is requested" >&5
7359 # Check whether --with-included-gettext or --without-included-gettext was given.
7360 if test "${with_included_gettext+set}" = set; then
7361 withval
="$with_included_gettext"
7362 nls_cv_force_use_gnu_gettext
=$withval
7364 nls_cv_force_use_gnu_gettext
=no
7367 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7369 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
7370 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7372 nls_cv_header_libgt
=
7375 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7376 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7377 echo "configure:7378: checking for libintl.h" >&5
7378 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7379 echo $ac_n "(cached) $ac_c" 1>&6
7381 cat > conftest.
$ac_ext <<EOF
7382 #line 7383 "configure"
7383 #include "confdefs.h"
7384 #include <libintl.h>
7386 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7387 { (eval echo configure
:7388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7388 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7389 if test -z "$ac_err"; then
7391 eval "ac_cv_header_$ac_safe=yes"
7394 echo "configure: failed program was:" >&5
7395 cat conftest.
$ac_ext >&5
7397 eval "ac_cv_header_$ac_safe=no"
7401 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7402 echo "$ac_t""yes" 1>&6
7403 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7404 echo "configure:7405: checking for gettext in libc" >&5
7405 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7406 echo $ac_n "(cached) $ac_c" 1>&6
7408 cat > conftest.
$ac_ext <<EOF
7409 #line 7410 "configure"
7410 #include "confdefs.h"
7411 #include <libintl.h>
7413 return (int) gettext ("")
7416 if { (eval echo configure
:7417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7418 gt_cv_func_gettext_libc
=yes
7420 echo "configure: failed program was:" >&5
7421 cat conftest.
$ac_ext >&5
7423 gt_cv_func_gettext_libc
=no
7428 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7430 if test "$gt_cv_func_gettext_libc" != "yes"; then
7431 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7432 echo "configure:7433: checking for bindtextdomain in -lintl" >&5
7433 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7434 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7435 echo $ac_n "(cached) $ac_c" 1>&6
7437 ac_save_LIBS
="$LIBS"
7439 cat > conftest.
$ac_ext <<EOF
7440 #line 7441 "configure"
7441 #include "confdefs.h"
7442 /* Override any gcc2 internal prototype to avoid an error. */
7443 /* We use char because int might match the return type of a gcc2
7444 builtin and then its argument prototype would still apply. */
7445 char bindtextdomain();
7451 if { (eval echo configure
:7452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7453 eval "ac_cv_lib_$ac_lib_var=yes"
7455 echo "configure: failed program was:" >&5
7456 cat conftest.
$ac_ext >&5
7458 eval "ac_cv_lib_$ac_lib_var=no"
7461 LIBS
="$ac_save_LIBS"
7464 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7465 echo "$ac_t""yes" 1>&6
7466 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7467 echo "configure:7468: checking for gettext in libintl" >&5
7468 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7469 echo $ac_n "(cached) $ac_c" 1>&6
7471 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7472 echo "configure:7473: checking for gettext in -lintl" >&5
7473 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7474 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7475 echo $ac_n "(cached) $ac_c" 1>&6
7477 ac_save_LIBS
="$LIBS"
7479 cat > conftest.
$ac_ext <<EOF
7480 #line 7481 "configure"
7481 #include "confdefs.h"
7482 /* Override any gcc2 internal prototype to avoid an error. */
7483 /* We use char because int might match the return type of a gcc2
7484 builtin and then its argument prototype would still apply. */
7491 if { (eval echo configure
:7492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7493 eval "ac_cv_lib_$ac_lib_var=yes"
7495 echo "configure: failed program was:" >&5
7496 cat conftest.
$ac_ext >&5
7498 eval "ac_cv_lib_$ac_lib_var=no"
7501 LIBS
="$ac_save_LIBS"
7504 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7505 echo "$ac_t""yes" 1>&6
7506 gt_cv_func_gettext_libintl
=yes
7508 echo "$ac_t""no" 1>&6
7509 gt_cv_func_gettext_libintl
=no
7514 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7516 echo "$ac_t""no" 1>&6
7521 if test "$gt_cv_func_gettext_libc" = "yes" \
7522 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
7523 cat >> confdefs.h
<<\EOF
7524 #define HAVE_GETTEXT 1
7527 # Extract the first word of "msgfmt", so it can be a program name with args.
7528 set dummy msgfmt
; ac_word
=$2
7529 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7530 echo "configure:7531: checking for $ac_word" >&5
7531 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7532 echo $ac_n "(cached) $ac_c" 1>&6
7536 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
7539 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7540 for ac_dir
in $PATH; do
7541 test -z "$ac_dir" && ac_dir
=.
7542 if test -f $ac_dir/$ac_word; then
7543 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7544 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
7550 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
7554 MSGFMT
="$ac_cv_path_MSGFMT"
7555 if test -n "$MSGFMT"; then
7556 echo "$ac_t""$MSGFMT" 1>&6
7558 echo "$ac_t""no" 1>&6
7560 if test "$MSGFMT" != "no"; then
7561 for ac_func
in dcgettext
7563 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7564 echo "configure:7565: checking for $ac_func" >&5
7565 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7566 echo $ac_n "(cached) $ac_c" 1>&6
7568 cat > conftest.
$ac_ext <<EOF
7569 #line 7570 "configure"
7570 #include "confdefs.h"
7571 /* System header to define __stub macros and hopefully few prototypes,
7572 which can conflict with char $ac_func(); below. */
7574 /* Override any gcc2 internal prototype to avoid an error. */
7575 /* We use char because int might match the return type of a gcc2
7576 builtin and then its argument prototype would still apply. */
7581 /* The GNU C library defines this for functions which it implements
7582 to always fail with ENOSYS. Some functions are actually named
7583 something starting with __ and the normal name is an alias. */
7584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7592 if { (eval echo configure
:7593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7594 eval "ac_cv_func_$ac_func=yes"
7596 echo "configure: failed program was:" >&5
7597 cat conftest.
$ac_ext >&5
7599 eval "ac_cv_func_$ac_func=no"
7604 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7605 echo "$ac_t""yes" 1>&6
7606 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7607 cat >> confdefs.h
<<EOF
7608 #define $ac_tr_func 1
7612 echo "$ac_t""no" 1>&6
7616 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7617 set dummy gmsgfmt
; ac_word
=$2
7618 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7619 echo "configure:7620: checking for $ac_word" >&5
7620 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7621 echo $ac_n "(cached) $ac_c" 1>&6
7625 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7628 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
7631 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7633 for ac_dir
in $ac_dummy; do
7634 test -z "$ac_dir" && ac_dir
=.
7635 if test -f $ac_dir/$ac_word; then
7636 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
7641 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
7645 GMSGFMT
="$ac_cv_path_GMSGFMT"
7646 if test -n "$GMSGFMT"; then
7647 echo "$ac_t""$GMSGFMT" 1>&6
7649 echo "$ac_t""no" 1>&6
7652 # Extract the first word of "xgettext", so it can be a program name with args.
7653 set dummy xgettext
; ac_word
=$2
7654 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7655 echo "configure:7656: checking for $ac_word" >&5
7656 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7657 echo $ac_n "(cached) $ac_c" 1>&6
7661 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
7664 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7665 for ac_dir
in $PATH; do
7666 test -z "$ac_dir" && ac_dir
=.
7667 if test -f $ac_dir/$ac_word; then
7668 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7669 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
7675 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
7679 XGETTEXT
="$ac_cv_path_XGETTEXT"
7680 if test -n "$XGETTEXT"; then
7681 echo "$ac_t""$XGETTEXT" 1>&6
7683 echo "$ac_t""no" 1>&6
7686 cat > conftest.
$ac_ext <<EOF
7687 #line 7688 "configure"
7688 #include "confdefs.h"
7691 extern int _nl_msg_cat_cntr;
7692 return _nl_msg_cat_cntr
7695 if { (eval echo configure
:7696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7700 echo "configure: failed program was:" >&5
7701 cat conftest.
$ac_ext >&5
7712 echo "$ac_t""no" 1>&6
7716 if test "$CATOBJEXT" = "NONE"; then
7717 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
7718 echo "configure:7719: checking whether catgets can be used" >&5
7719 # Check whether --with-catgets or --without-catgets was given.
7720 if test "${with_catgets+set}" = set; then
7721 withval
="$with_catgets"
7722 nls_cv_use_catgets
=$withval
7724 nls_cv_use_catgets
=no
7727 echo "$ac_t""$nls_cv_use_catgets" 1>&6
7729 if test "$nls_cv_use_catgets" = "yes"; then
7730 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
7731 echo "configure:7732: checking for main in -li" >&5
7732 ac_lib_var
=`echo i'_'main | sed 'y%./+-%__p_%'`
7733 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7734 echo $ac_n "(cached) $ac_c" 1>&6
7736 ac_save_LIBS
="$LIBS"
7738 cat > conftest.
$ac_ext <<EOF
7739 #line 7740 "configure"
7740 #include "confdefs.h"
7746 if { (eval echo configure
:7747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7748 eval "ac_cv_lib_$ac_lib_var=yes"
7750 echo "configure: failed program was:" >&5
7751 cat conftest.
$ac_ext >&5
7753 eval "ac_cv_lib_$ac_lib_var=no"
7756 LIBS
="$ac_save_LIBS"
7759 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7760 echo "$ac_t""yes" 1>&6
7761 ac_tr_lib
=HAVE_LIB
`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7762 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7763 cat >> confdefs.h
<<EOF
7764 #define $ac_tr_lib 1
7770 echo "$ac_t""no" 1>&6
7773 echo $ac_n "checking for catgets""... $ac_c" 1>&6
7774 echo "configure:7775: checking for catgets" >&5
7775 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
7776 echo $ac_n "(cached) $ac_c" 1>&6
7778 cat > conftest.
$ac_ext <<EOF
7779 #line 7780 "configure"
7780 #include "confdefs.h"
7781 /* System header to define __stub macros and hopefully few prototypes,
7782 which can conflict with char catgets(); below. */
7784 /* Override any gcc2 internal prototype to avoid an error. */
7785 /* We use char because int might match the return type of a gcc2
7786 builtin and then its argument prototype would still apply. */
7791 /* The GNU C library defines this for functions which it implements
7792 to always fail with ENOSYS. Some functions are actually named
7793 something starting with __ and the normal name is an alias. */
7794 #if defined (__stub_catgets) || defined (__stub___catgets)
7802 if { (eval echo configure
:7803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7804 eval "ac_cv_func_catgets=yes"
7806 echo "configure: failed program was:" >&5
7807 cat conftest.
$ac_ext >&5
7809 eval "ac_cv_func_catgets=no"
7814 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
7815 echo "$ac_t""yes" 1>&6
7816 cat >> confdefs.h
<<\EOF
7817 #define HAVE_CATGETS 1
7820 INTLOBJS
="\$(CATOBJS)"
7821 # Extract the first word of "gencat", so it can be a program name with args.
7822 set dummy gencat
; 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_GENCAT'+set}'`\" = set"; then
7826 echo $ac_n "(cached) $ac_c" 1>&6
7830 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a path.
7833 ac_cv_path_GENCAT
="$GENCAT" # 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_GENCAT
="$ac_dir/$ac_word"
7846 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT
="no"
7850 GENCAT
="$ac_cv_path_GENCAT"
7851 if test -n "$GENCAT"; then
7852 echo "$ac_t""$GENCAT" 1>&6
7854 echo "$ac_t""no" 1>&6
7856 if test "$GENCAT" != "no"; then
7857 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7858 set dummy gmsgfmt
; 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_GMSGFMT'+set}'`\" = set"; then
7862 echo $ac_n "(cached) $ac_c" 1>&6
7866 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7869 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
7872 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7874 for ac_dir
in $ac_dummy; do
7875 test -z "$ac_dir" && ac_dir
=.
7876 if test -f $ac_dir/$ac_word; then
7877 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
7882 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
7886 GMSGFMT
="$ac_cv_path_GMSGFMT"
7887 if test -n "$GMSGFMT"; then
7888 echo "$ac_t""$GMSGFMT" 1>&6
7890 echo "$ac_t""no" 1>&6
7893 if test "$GMSGFMT" = "no"; then
7894 # Extract the first word of "msgfmt", so it can be a program name with args.
7895 set dummy msgfmt
; ac_word
=$2
7896 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7897 echo "configure:7898: checking for $ac_word" >&5
7898 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7899 echo $ac_n "(cached) $ac_c" 1>&6
7903 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7906 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7907 for ac_dir
in $PATH; do
7908 test -z "$ac_dir" && ac_dir
=.
7909 if test -f $ac_dir/$ac_word; then
7910 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7911 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
7917 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
7921 GMSGFMT
="$ac_cv_path_GMSGFMT"
7922 if test -n "$GMSGFMT"; then
7923 echo "$ac_t""$GMSGFMT" 1>&6
7925 echo "$ac_t""no" 1>&6
7929 # Extract the first word of "xgettext", so it can be a program name with args.
7930 set dummy xgettext
; ac_word
=$2
7931 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7932 echo "configure:7933: checking for $ac_word" >&5
7933 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7934 echo $ac_n "(cached) $ac_c" 1>&6
7938 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
7941 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7942 for ac_dir
in $PATH; do
7943 test -z "$ac_dir" && ac_dir
=.
7944 if test -f $ac_dir/$ac_word; then
7945 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7946 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
7952 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
7956 XGETTEXT
="$ac_cv_path_XGETTEXT"
7957 if test -n "$XGETTEXT"; then
7958 echo "$ac_t""$XGETTEXT" 1>&6
7960 echo "$ac_t""no" 1>&6
7963 USE_INCLUDED_LIBINTL
=yes
7967 INTLDEPS
='$(top_builddir)/intl/libintl.a'
7969 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
7970 nls_cv_header_intl
=intl
/libintl.h
7971 nls_cv_header_libgt
=intl
/libgettext.h
7974 echo "$ac_t""no" 1>&6
7980 if test "$CATOBJEXT" = "NONE"; then
7981 nls_cv_use_gnu_gettext
=yes
7985 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7986 INTLOBJS
="\$(GETTOBJS)"
7987 # Extract the first word of "msgfmt", so it can be a program name with args.
7988 set dummy msgfmt
; ac_word
=$2
7989 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7990 echo "configure:7991: checking for $ac_word" >&5
7991 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7992 echo $ac_n "(cached) $ac_c" 1>&6
7996 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
7999 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8000 for ac_dir
in $PATH; do
8001 test -z "$ac_dir" && ac_dir
=.
8002 if test -f $ac_dir/$ac_word; then
8003 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8004 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8010 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
8014 MSGFMT
="$ac_cv_path_MSGFMT"
8015 if test -n "$MSGFMT"; then
8016 echo "$ac_t""$MSGFMT" 1>&6
8018 echo "$ac_t""no" 1>&6
8021 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8022 set dummy gmsgfmt
; ac_word
=$2
8023 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8024 echo "configure:8025: checking for $ac_word" >&5
8025 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8026 echo $ac_n "(cached) $ac_c" 1>&6
8030 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8033 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8036 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8038 for ac_dir
in $ac_dummy; do
8039 test -z "$ac_dir" && ac_dir
=.
8040 if test -f $ac_dir/$ac_word; then
8041 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8046 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8050 GMSGFMT
="$ac_cv_path_GMSGFMT"
8051 if test -n "$GMSGFMT"; then
8052 echo "$ac_t""$GMSGFMT" 1>&6
8054 echo "$ac_t""no" 1>&6
8057 # Extract the first word of "xgettext", so it can be a program name with args.
8058 set dummy xgettext
; ac_word
=$2
8059 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8060 echo "configure:8061: checking for $ac_word" >&5
8061 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8062 echo $ac_n "(cached) $ac_c" 1>&6
8066 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8069 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8070 for ac_dir
in $PATH; do
8071 test -z "$ac_dir" && ac_dir
=.
8072 if test -f $ac_dir/$ac_word; then
8073 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8074 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8080 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8084 XGETTEXT
="$ac_cv_path_XGETTEXT"
8085 if test -n "$XGETTEXT"; then
8086 echo "$ac_t""$XGETTEXT" 1>&6
8088 echo "$ac_t""no" 1>&6
8092 USE_INCLUDED_LIBINTL
=yes
8096 INTLDEPS
='$(top_builddir)/intl/libintl.a'
8098 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
8099 nls_cv_header_intl
=intl
/libintl.h
8100 nls_cv_header_libgt
=intl
/libgettext.h
8103 if test "$XGETTEXT" != ":"; then
8104 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
8107 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
8112 # We need to process the po/ directory.
8116 nls_cv_header_intl
=intl
/libintl.h
8117 nls_cv_header_libgt
=intl
/libgettext.h
8123 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8124 # because some of the sources are only built for this goal.
8125 if test "$PACKAGE" = gettext; then
8127 USE_INCLUDED_LIBINTL
=yes
8130 for lang
in $ALL_LINGUAS; do
8131 GMOFILES
="$GMOFILES $lang.gmo"
8132 POFILES
="$POFILES $lang.po"
8148 if test "x$CATOBJEXT" != "x"; then
8149 if test "x$ALL_LINGUAS" = "x"; then
8152 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
8153 echo "configure:8154: checking for catalogs to be installed" >&5
8155 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
8156 case "$ALL_LINGUAS" in
8157 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
8160 LINGUAS
=$NEW_LINGUAS
8161 echo "$ac_t""$LINGUAS" 1>&6
8164 if test -n "$LINGUAS"; then
8165 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
8169 if test $ac_cv_header_locale_h = yes; then
8170 INCLUDE_LOCALE_H
="#include <locale.h>"
8173 /* The system does not provide the header <locale.h>. Take care yourself. */"
8177 test -d intl || mkdir intl
8178 if test "$CATOBJEXT" = ".cat"; then
8179 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
8180 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
8181 echo "configure:8182: checking for linux/version.h" >&5
8182 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8183 echo $ac_n "(cached) $ac_c" 1>&6
8185 cat > conftest.
$ac_ext <<EOF
8186 #line 8187 "configure"
8187 #include "confdefs.h"
8188 #include <linux/version.h>
8190 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8191 { (eval echo configure
:8192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8192 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8193 if test -z "$ac_err"; then
8195 eval "ac_cv_header_$ac_safe=yes"
8198 echo "configure: failed program was:" >&5
8199 cat conftest.
$ac_ext >&5
8201 eval "ac_cv_header_$ac_safe=no"
8205 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8206 echo "$ac_t""yes" 1>&6
8209 echo "$ac_t""no" 1>&6
8214 sed -e '/^#/d' $srcdir/intl
/$msgformat-msg.
sed > intl
/po2msg.
sed
8216 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8217 $srcdir/intl
/po2tbl.
sed.
in > intl
/po2tbl.
sed
8219 if test "$PACKAGE" = "gettext"; then
8230 if test -n "$ac_aux_dir"; then
8231 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
8233 if test -z "$MKINSTALLDIRS"; then
8234 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
8241 test -d po || mkdir po
8242 if test "x$srcdir" != "x."; then
8243 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8244 posrcprefix
="$srcdir/"
8246 posrcprefix
="../$srcdir/"
8252 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8253 < $srcdir/po
/POTFILES.
in > po
/POTFILES
8255 XGETTEXT
="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
8257 # Windows32 Registry support for specifying GCC installation paths.
8258 # Check whether --enable-win32-registry or --disable-win32-registry was given.
8259 if test "${enable_win32_registry+set}" = set; then
8260 enableval
="$enable_win32_registry"
8265 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
8266 echo "configure:8267: checking whether windows registry support is requested" >&5
8267 if test x
$enable_win32_registry != xno
; then
8268 cat >> confdefs.h
<<\EOF
8269 #define ENABLE_WIN32_REGISTRY 1
8272 echo "$ac_t""yes" 1>&6
8274 echo "$ac_t""no" 1>&6
8277 # Check if user specified a different registry key.
8278 case x
${enable_win32_registry} in
8281 gcc_cv_win32_registry_key
="$VERSION"
8284 # no registry lookup.
8285 gcc_cv_win32_registry_key
=''
8288 # user-specified key.
8289 gcc_cv_win32_registry_key
="$enable_win32_registry"
8293 if test x
$enable_win32_registry != xno
; then
8294 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
8295 echo "configure:8296: checking registry key on windows hosts" >&5
8296 cat >> confdefs.h
<<EOF
8297 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
8300 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
8303 # Get an absolute path to the GCC top-level source directory
8309 # Conditionalize the makefile for this host machine.
8310 # Make-host contains the concatenation of all host makefile fragments
8311 # [there can be more than one]. This file is built by configure.frag.
8312 host_overrides
=Make-host
8313 dep_host_xmake_file
=
8314 for f
in ..
${host_xmake_file}
8316 if test -f ${srcdir}/config
/$f
8318 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
8322 # Conditionalize the makefile for this target machine.
8323 # Make-target contains the concatenation of all host makefile fragments
8324 # [there can be more than one]. This file is built by configure.frag.
8325 target_overrides
=Make-target
8327 for f
in ..
${tmake_file}
8329 if test -f ${srcdir}/config
/$f
8331 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
8335 # If the host doesn't support symlinks, modify CC in
8336 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
8337 # Otherwise, we can use "CC=$(CC)".
8339 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
8341 cc_set_by_configure
="\$(CC)"
8342 quoted_cc_set_by_configure
="\$(CC)"
8343 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
8346 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
8348 symbolic_link
="cp -p"
8352 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
8353 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
8354 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
8358 out_object_file
=`basename $out_file .c`.o
8361 for f
in $tm_file; do
8364 tm_file_list
="${tm_file_list} $f" ;;
8365 *) tm_file_list
="${tm_file_list} \$(srcdir)/config/$f" ;;
8370 for f
in $host_xm_file; do
8372 auto-host.h | gansidecl.h | hwint.h
)
8373 host_xm_file_list
="${host_xm_file_list} $f" ;;
8374 *) host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f" ;;
8379 for f
in $build_xm_file; do
8381 auto-build.h | auto-host.h | gansidecl.h | hwint.h
)
8382 build_xm_file_list
="${build_xm_file_list} $f" ;;
8383 *) build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8387 # Define macro CROSS_COMPILE in compilation
8388 # if this is a cross-compiler.
8389 # Also use all.cross instead of all.internal
8390 # and add cross-make to Makefile.
8391 cross_overrides
="/dev/null"
8392 if test x
$host != x
$target
8394 cross_defines
="CROSS=-DCROSS_COMPILE"
8395 cross_overrides
="${topdir}/cross-make"
8398 # When building gcc with a cross-compiler, we need to fix a few things.
8399 # This must come after cross-make as we want all.build to override
8401 build_overrides
="/dev/null"
8402 if test x
$build != x
$host
8404 build_overrides
="${topdir}/build-make"
8407 # Expand extra_headers to include complete path.
8408 # This substitutes for lots of t-* files.
8410 if test "x$extra_headers" = x
8413 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8414 for file in $extra_headers;
8416 extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8420 if test x
$use_collect2 = xno
; then
8424 # Add a definition of USE_COLLECT2 if system wants one.
8425 # Also tell toplev.c what to do.
8426 # This substitutes for lots of t-* files.
8427 if test x
$use_collect2 = x
8432 will_use_collect2
="collect2"
8433 maybe_use_collect2
="-DUSE_COLLECT2"
8437 # Set MD_DEPS if the real md file is in md.pre-cpp.
8438 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
8439 # for line oriented comments, so we must always use a GNU cpp. If
8440 # building gcc with a cross compiler, use the cross compiler just
8441 # built. Otherwise, we can use the cpp just built.
8443 if test "x$md_cppflags" = x
8445 md_file_sub
=$srcdir/config
/$md_file
8450 # If we have gas in the build tree, make a link to it.
8451 if test -f ..
/gas
/Makefile
; then
8452 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
8455 # If we have nm in the build tree, make a link to it.
8456 if test -f ..
/binutils
/Makefile
; then
8457 rm -f nm
; $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
8460 # If we have ld in the build tree, make a link to it.
8461 if test -f ..
/ld
/Makefile
; then
8462 # if test x$use_collect2 = x; then
8463 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8465 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
8469 # Figure out what assembler alignment features are present.
8470 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
8471 echo "configure:8472: checking assembler alignment features" >&5
8473 gcc_cv_as_alignment_features
=
8474 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8475 if test -x "$DEFAULT_ASSEMBLER"; then
8476 gcc_cv_as
="$DEFAULT_ASSEMBLER"
8477 elif test -x "$AS"; then
8479 elif test -x as
$host_exeext; then
8480 # Build using assembler in the current directory.
8481 gcc_cv_as
=.
/as
$host_exeext
8482 elif test -f $gcc_cv_as_gas_srcdir/configure.
in -a -f ..
/gas
/Makefile
; then
8483 # Single tree build which includes gas.
8484 for f
in $gcc_cv_as_gas_srcdir/configure
$gcc_cv_as_gas_srcdir/configure.
in $gcc_cv_as_gas_srcdir/Makefile.
in
8486 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
8487 if test x
$gcc_cv_gas_version != x
; then
8491 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
8492 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
8493 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
8494 # Gas version 2.6 and later support for .balign and .p2align.
8495 # bytes to skip when using .p2align.
8496 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
8497 gcc_cv_as_alignment_features
=".balign and .p2align"
8498 cat >> confdefs.h
<<\EOF
8499 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8503 # Gas version 2.8 and later support specifying the maximum
8504 # bytes to skip when using .p2align.
8505 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
8506 gcc_cv_as_alignment_features
=".p2align including maximum skip"
8507 cat >> confdefs.h
<<\EOF
8508 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8513 elif test x
$host = x
$target; then
8515 # Search the same directories that the installed compiler will
8516 # search. Else we may find the wrong assembler and lose. If we
8517 # do not find a suitable assembler binary, then try the user's
8520 # Also note we have to check MD_EXEC_PREFIX before checking the
8521 # user's path. Unfortunately, there is no good way to get at the
8522 # value of MD_EXEC_PREFIX here. So we do a brute force search
8523 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
8524 # to be fixed as part of the make/configure rewrite too.
8526 if test "x$exec_prefix" = xNONE
; then
8527 if test "x$prefix" = xNONE
; then
8528 test_prefix
=/usr
/local
8533 test_prefix
=$exec_prefix
8536 # If the loop below does not find an assembler, then use whatever
8537 # one we can find in the users's path.
8541 test_dirs
="$test_prefix/lib/gcc-lib/$target/$gcc_version \
8542 $test_prefix/lib/gcc-lib/$target \
8543 /usr/lib/gcc/$target/$gcc_version \
8544 /usr/lib/gcc/$target \
8545 $test_prefix/$target/bin/$target/$gcc_version \
8546 $test_prefix/$target/bin \
8551 /bsd43/usr/lib/cmplrs/cc \
8552 /usr/cross64/usr/bin \
8553 /usr/lib/cmplrs/cc \
8554 /sysv/usr/lib/cmplrs/cc \
8555 /svr4/usr/lib/cmplrs/cc \
8558 for dir
in $test_dirs; do
8559 if test -f $dir/as
$host_exeext; then
8560 gcc_cv_as
=$dir/as
$host_exeext
8565 if test x
$gcc_cv_as != x
; then
8566 # Check if we have .balign and .p2align
8567 echo ".balign 4" > conftest.s
8568 echo ".p2align 2" >> conftest.s
8569 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8570 gcc_cv_as_alignment_features
=".balign and .p2align"
8571 cat >> confdefs.h
<<\EOF
8572 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8576 rm -f conftest.s conftest.o
8577 # Check if specifying the maximum bytes to skip when
8578 # using .p2align is supported.
8579 echo ".p2align 4,,7" > conftest.s
8580 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8581 gcc_cv_as_alignment_features
=".p2align including maximum skip"
8582 cat >> confdefs.h
<<\EOF
8583 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8587 rm -f conftest.s conftest.o
8589 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
8591 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
8592 echo "configure:8593: checking assembler subsection support" >&5
8593 gcc_cv_as_subsections
=
8594 if test x
$gcc_cv_as != x
; then
8595 # Check if we have .subsection
8596 echo ".subsection 1" > conftest.s
8597 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8598 gcc_cv_as_subsections
=".subsection"
8599 if test -x nm
$host_exeext; then
8600 gcc_cv_nm
=.
/nm
$host_exeext
8601 elif test x
$host = x
$target; then
8603 gcc_cv_nm
=nm
$host_exeext
8605 if test x
$gcc_cv_nm != x
; then
8606 cat > conftest.s
<<EOF
8607 conftest_label1: .word 0
8609 conftest_label2: .word 0
8612 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8613 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
8614 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
8615 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1; then
8618 gcc_cv_as_subsections
="working .subsection -1"
8619 cat >> confdefs.h
<<\EOF
8620 #define HAVE_GAS_SUBSECTION_ORDERING 1
8627 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8629 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
8631 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
8632 echo "configure:8633: checking assembler weak support" >&5
8634 if test x
$gcc_cv_as != x
; then
8635 # Check if we have .weak
8636 echo " .weak foobar" > conftest.s
8637 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8638 cat >> confdefs.h
<<\EOF
8639 #define HAVE_GAS_WEAK 1
8642 gcc_cv_as_weak
="yes"
8644 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8646 echo "$ac_t""$gcc_cv_as_weak" 1>&6
8648 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
8649 echo "configure:8650: checking assembler hidden support" >&5
8651 if test x
$gcc_cv_as != x
; then
8652 # Check if we have .hidden
8653 echo " .hidden foobar" > conftest.s
8654 echo "foobar:" >> conftest.s
8655 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8656 cat >> confdefs.h
<<\EOF
8657 #define HAVE_GAS_HIDDEN 1
8660 gcc_cv_as_hidden
="yes"
8662 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8664 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
8668 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
8669 echo "configure:8670: checking assembler .register pseudo-op support" >&5
8670 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
8671 echo $ac_n "(cached) $ac_c" 1>&6
8674 gcc_cv_as_register_pseudo_op
=unknown
8675 if test x
$gcc_cv_as != x
; then
8676 # Check if we have .register
8677 echo ".register %g2, #scratch" > conftest.s
8678 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8679 gcc_cv_as_register_pseudo_op
=yes
8681 gcc_cv_as_register_pseudo_op
=no
8683 rm -f conftest.s conftest.o
8688 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
8689 if test "x$gcc_cv_as_register_pseudo_op" = xyes
; then
8690 cat >> confdefs.h
<<\EOF
8691 #define HAVE_AS_REGISTER_PSEUDO_OP 1
8698 echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
8699 echo "configure:8700: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
8700 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
8701 echo $ac_n "(cached) $ac_c" 1>&6
8704 if test -n "$gcc_cv_as"; then
8705 echo ".xword foo" > conftest.s
8706 gcc_cv_as_flags64
=no
8707 for flag
in "-xarch=v9" "-64 -Av9"; do
8708 if $gcc_cv_as $flag -o conftest.o conftest.s \
8709 > /dev
/null
2>&1; then
8710 gcc_cv_as_flags64
=$flag
8714 rm -f conftest.s conftest.o
8716 if test "$gas" = yes; then
8717 gcc_cv_as_flags64
="-64 -Av9"
8719 gcc_cv_as_flags64
="-xarch=v9"
8725 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
8726 if test "x$gcc_cv_as_flags64" = xno
; then
8728 tmake_file
=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
8729 dep_tmake_file
=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
8732 cat >> confdefs.h
<<EOF
8733 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
8738 *) gcc_cv_as_flags64
=${gcc_cv_as_flags64-no}
8742 if test "x$gcc_cv_as_flags64" != xno
; then
8743 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
8744 echo "configure:8745: checking for assembler offsetable %lo() support" >&5
8745 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
8746 echo $ac_n "(cached) $ac_c" 1>&6
8749 gcc_cv_as_offsetable_lo10
=unknown
8750 if test "x$gcc_cv_as" != x
; then
8751 # Check if assembler has offsetable %lo()
8752 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
8753 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
8754 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
8756 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
8757 > /dev
/null
2>&1; then
8758 if cmp conftest.o conftest1.o
> /dev
/null
2>&1; then
8759 gcc_cv_as_offsetable_lo10
=no
8761 gcc_cv_as_offsetable_lo10
=yes
8764 gcc_cv_as_offsetable_lo10
=no
8766 rm -f conftest.s conftest.o conftest1.s conftest1.o
8771 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
8772 if test "x$gcc_cv_as_offsetable_lo10" = xyes
; then
8773 cat >> confdefs.h
<<\EOF
8774 #define HAVE_AS_OFFSETABLE_LO10 1
8782 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
8783 echo "configure:8784: checking assembler instructions" >&5
8784 gcc_cv_as_instructions
=
8785 if test x
$gcc_cv_as != x
; then
8786 set "filds fists" "filds mem; fists mem"
8789 echo "$2" > conftest.s
8790 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8791 gcc_cv_as_instructions
=${gcc_cv_as_instructions}$1" "
8792 cat >> confdefs.h
<<EOF
8793 #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1
8799 rm -f conftest.s conftest.o
8801 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
8805 # Figure out what language subdirectories are present.
8806 # Look if the user specified --enable-languages="..."; if not, use
8807 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8809 if test x
"${enable_languages+set}" != xset
; then
8810 if test x
"${LANGUAGES+set}" = xset
; then
8811 enable_languages
="`echo ${LANGUAGES} | tr ' ' ','`"
8813 enable_languages
=all
8817 for lang
in ${srcdir}/*/config-lang.
in ..
8821 # The odd quoting in the next line works around
8822 # an apparent bug in bash 1.12 on linux.
8823 ${srcdir}/[*]/config-lang.
in) ;;
8825 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
8826 if test "x$lang_alias" = x
8828 echo "$lang doesn't set \$language." 1>&2
8831 if test x
"${enable_languages}" = xall
; then
8834 case "${enable_languages}" in
8835 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
8843 if test x"${add_this_lang}" = xyes; then
8845 ${srcdir}/ada/config-lang.in)
8846 if test x$gnat = xyes ; then
8847 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8851 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8859 # Make gthr-default.h if we have a thread file.
8861 if test $thread_file != single; then
8862 rm -f gthr-default.h
8863 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
8864 gthread_flags
=-DHAVE_GTHR_DEFAULT
8868 # Find out what GC implementation we want, or may, use.
8869 # Check whether --with-gc or --without-gc was given.
8870 if test "${with_gc+set}" = set; then
8877 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
8881 if test $ac_cv_func_mmap_anywhere = yes \
8882 ||
test $ac_cv_func_valloc = yes; then
8890 echo "Using $GGC for garbage collection."
8892 # Build a new-abi (c++) system
8893 # Check whether --enable-new-gxx-abi or --disable-new-gxx-abi was given.
8894 if test "${enable_new_gxx_abi+set}" = set; then
8895 enableval
="$enable_new_gxx_abi"
8896 cat >> confdefs.h
<<\EOF
8897 #define ENABLE_NEW_GXX_ABI 1
8900 GXX_ABI_FLAG
='-fnew-abi'
8901 echo "Building a new-abi g++ compiler."
8907 # Build a new-libstdc++ system (ie libstdc++-v3)
8908 echo $ac_n "checking for libstdc++ to install""... $ac_c" 1>&6
8909 echo "configure:8910: checking for libstdc++ to install" >&5
8910 # Check whether --enable-libstdcxx-v3 or --disable-libstdcxx-v3 was given.
8911 if test "${enable_libstdcxx_v3+set}" = set; then
8912 enableval
="$enable_libstdcxx_v3"
8913 enable_libstdcxx_v3
=yes
8915 enable_libstdcxx_v3
=no
8919 if test x
$enable_libstdcxx_v3 = xyes
; then
8920 echo "$ac_t""v3" 1>&6
8921 cat >> confdefs.h
<<\EOF
8922 #define ENABLE_STD_NAMESPACE 1
8926 echo "$ac_t""v2" 1>&6
8930 # Make empty files to contain the specs and options for each language.
8931 # Then add #include lines to for a compiler that has specs and/or options.
8936 rm -f specs.h options.h gencheck.h
8937 touch specs.h options.h gencheck.h
8938 for subdir
in .
$subdirs
8940 if test -f $srcdir/$subdir/lang-specs.h
; then
8941 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
8942 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
8944 if test -f $srcdir/$subdir/lang-options.h
; then
8945 echo "#include \"$subdir/lang-options.h\"" >>options.h
8946 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
8948 if test -f $srcdir/$subdir/$subdir-tree.def
; then
8949 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
8950 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
8954 # These (without "all_") are set in each config-lang.in.
8955 # `language' must be a single word so is spelled singularly.
8961 all_outputs
='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug'
8962 # List of language makefile fragments.
8967 # Add the language fragments.
8968 # Languages are added via two mechanisms. Some information must be
8969 # recorded in makefile variables, these are defined in config-lang.in.
8970 # We accumulate them and plug them into the main Makefile.
8971 # The other mechanism is a set of hooks for each of the main targets
8972 # like `clean', `install', etc.
8974 language_fragments
="Make-lang"
8975 language_hooks
="Make-hooks"
8978 for s
in ..
$subdirs
8990 .
${srcdir}/$s/config-lang.
in
8991 if test "x$language" = x
8993 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
8996 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
8997 all_languages
="$all_languages $language"
8998 if test "x$boot_language" = xyes
9000 all_boot_languages
="$all_boot_languages $language"
9002 all_compilers
="$all_compilers $compilers"
9003 all_stagestuff
="$all_stagestuff $stagestuff"
9004 all_diff_excludes
="$all_diff_excludes $diff_excludes"
9005 all_headers
="$all_headers $headers"
9006 all_outputs
="$all_outputs $outputs"
9007 if test x
$outputs = x
9009 oldstyle_subdirs
="$oldstyle_subdirs $s"
9011 all_lib2funcs
="$all_lib2funcs $lib2funcs"
9015 # Since we can't use `::' targets, we link each language in
9016 # with a set of hooks, reached indirectly via lang.${target}.
9020 target_list
="all.build all.cross start.encap rest.encap \
9022 install-normal install-common install-info install-man \
9024 mostlyclean clean distclean extraclean maintainer-clean \
9025 stage1 stage2 stage3 stage4"
9026 for t
in $target_list
9029 for lang
in ..
$all_languages
9031 if test $lang != ".."; then
9035 echo "lang.$t: $x" >> Make-hooks
9038 # If we're not building in srcdir, create .gdbinit.
9040 if test ! -f Makefile.
in; then
9041 echo "dir ." > .gdbinit
9042 echo "dir ${srcdir}" >> .gdbinit
9043 if test x
$gdb_needs_out_file_path = xyes
9045 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
9047 if test "x$subdirs" != x
; then
9050 echo "dir ${srcdir}/$s" >> .gdbinit
9053 echo "source ${srcdir}/.gdbinit" >> .gdbinit
9056 # Define variables host_canonical and build_canonical
9057 # because some Cygnus local changes in the Makefile depend on them.
9058 build_canonical
=${build}
9059 host_canonical
=${host}
9061 if test "${host}" != "${target}" ; then
9062 target_subdir
=${target}/
9068 # If this is using newlib, then define inhibit_libc in
9069 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
9070 # libgcc.a, but that's OK because newib should have its own version of
9073 if test x
$with_newlib = xyes
; then
9074 inhibit_libc
=-Dinhibit_libc
9078 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
9079 # absolute path for gcc_tooldir based on inserting the number of up-directory
9080 # movements required to get from $(exec_prefix) to $(prefix) into the basic
9081 # $(libsubdir)/@(unlibsubdir) based path.
9082 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
9083 # make and thus we'd get different behavior depending on where we built the
9085 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
9086 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
9088 # An explanation of the sed strings:
9089 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
9090 # -e 's|/$||' match a trailing forward slash and eliminates it
9091 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
9092 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
9094 # (*) Note this pattern overwrites the first character of the string
9095 # with a forward slash if one is not already present. This is not a
9096 # problem because the exact names of the sub-directories concerned is
9097 # unimportant, just the number of them matters.
9099 # The practical upshot of these patterns is like this:
9101 # prefix exec_prefix result
9102 # ------ ----------- ------
9104 # /foo/ /foo/bar ../
9105 # /foo /foo/bar/ ../
9106 # /foo/ /foo/bar/ ../
9107 # /foo /foo/bar/ugg ../../
9110 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
9115 # Nothing to do for FLOAT_H, float_format already handled.
9119 # Process the language and host/target makefile fragments.
9120 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
9122 # Substitute configuration variables
9181 # Echo that links are built
9182 if test x
$host = x
$target
9190 if test x
$host != x
$build
9192 str3
=" on a $build system"
9195 if test "x$str2" != x ||
test "x$str3" != x
9200 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
9202 if test "x$str2" != x ||
test "x$str3" != x
9204 echo " ${str2}${str3}." 1>&2
9207 # Truncate the target if necessary
9208 if test x
$host_truncate_target != x
; then
9209 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
9212 # Configure the subdirectories
9213 # AC_CONFIG_SUBDIRS($subdirs)
9215 # Create the Makefile
9216 # and configure language subdirectories
9218 cat > confcache
<<\EOF
9219 # This file is a shell script that caches the results of configure
9220 # tests run on this system so they can be shared between configure
9221 # scripts and configure runs. It is not useful on other systems.
9222 # If it contains results you don't want to keep, you may remove or edit it.
9224 # By default, configure uses ./config.cache as the cache file,
9225 # creating it if it does not exist already. You can give configure
9226 # the --cache-file=FILE option to use a different cache file; that is
9227 # what configure does when it calls configure scripts in
9228 # subdirectories, so they share the cache.
9229 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9230 # config.status only pays attention to the cache file if you give it the
9231 # --recheck option to rerun configure.
9234 # The following way of writing the cache mishandles newlines in values,
9235 # but we know of no workaround that is simple, portable, and efficient.
9236 # So, don't put newlines in cache variables' values.
9237 # Ultrix sh set writes to stderr and can't be redirected directly,
9238 # and sets the high bit in the cache file unless we assign to the vars.
9240 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9242 # `set' does not quote correctly, so add quotes (double-quote substitution
9243 # turns \\\\ into \\, and sed turns \\ into \).
9245 -e "s/'/'\\\\''/g" \
9246 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9249 # `set' quotes correctly as required by POSIX, so do not add quotes.
9250 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9253 if cmp -s $cache_file confcache
; then
9256 if test -w $cache_file; then
9257 echo "updating cache $cache_file"
9258 cat confcache
> $cache_file
9260 echo "not updating unwritable cache $cache_file"
9265 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9267 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9268 # Let make expand exec_prefix.
9269 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9271 # Any assignment to VPATH causes Sun make to only execute
9272 # the first set of double-colon rules, so remove it if not needed.
9273 # If there is a colon in the path, we need to keep it.
9274 if test "x$srcdir" = x.
; then
9275 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
9278 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9280 DEFS
=-DHAVE_CONFIG_H
9282 # Without the "./", some shells look in PATH for config.status.
9283 : ${CONFIG_STATUS=./config.status}
9285 echo creating
$CONFIG_STATUS
9286 rm -f $CONFIG_STATUS
9287 cat > $CONFIG_STATUS <<EOF
9289 # Generated automatically by configure.
9290 # Run this file to recreate the current configuration.
9291 # This directory was configured as follows,
9292 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9294 # $0 $ac_configure_args
9296 # Compiler output produced by configure, useful for debugging
9297 # configure, is in ./config.log if it exists.
9299 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9302 case "\$ac_option" in
9303 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9304 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9305 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9306 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9307 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9309 -help | --help | --hel | --he | --h)
9310 echo "\$ac_cs_usage"; exit 0 ;;
9311 *) echo "\$ac_cs_usage"; exit 1 ;;
9315 ac_given_srcdir=$srcdir
9317 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9319 cat >> $CONFIG_STATUS <<EOF
9321 # Protect against being on the right side of a sed subst in config.status.
9322 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9323 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9327 s%@CFLAGS@%$CFLAGS%g
9328 s%@CPPFLAGS@%$CPPFLAGS%g
9329 s%@CXXFLAGS@%$CXXFLAGS%g
9330 s%@FFLAGS@%$FFLAGS%g
9332 s%@LDFLAGS@%$LDFLAGS%g
9334 s%@exec_prefix@%$exec_prefix%g
9335 s%@prefix@%$prefix%g
9336 s%@program_transform_name@%$program_transform_name%g
9337 s%@bindir@%$bindir%g
9338 s%@sbindir@%$sbindir%g
9339 s%@libexecdir@%$libexecdir%g
9340 s%@datadir@%$datadir%g
9341 s%@sysconfdir@%$sysconfdir%g
9342 s%@sharedstatedir@%$sharedstatedir%g
9343 s%@localstatedir@%$localstatedir%g
9344 s%@libdir@%$libdir%g
9345 s%@includedir@%$includedir%g
9346 s%@oldincludedir@%$oldincludedir%g
9347 s%@infodir@%$infodir%g
9348 s%@mandir@%$mandir%g
9350 s%@host_alias@%$host_alias%g
9351 s%@host_cpu@%$host_cpu%g
9352 s%@host_vendor@%$host_vendor%g
9353 s%@host_os@%$host_os%g
9354 s%@target@%$target%g
9355 s%@target_alias@%$target_alias%g
9356 s%@target_cpu@%$target_cpu%g
9357 s%@target_vendor@%$target_vendor%g
9358 s%@target_os@%$target_os%g
9360 s%@build_alias@%$build_alias%g
9361 s%@build_cpu@%$build_cpu%g
9362 s%@build_vendor@%$build_vendor%g
9363 s%@build_os@%$build_os%g
9365 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
9366 s%@SET_MAKE@%$SET_MAKE%g
9369 s%@LEXLIB@%$LEXLIB%g
9372 s%@RANLIB@%$RANLIB%g
9374 s%@INSTALL@%$INSTALL%g
9375 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9376 s%@INSTALL_DATA@%$INSTALL_DATA%g
9379 s%@vfprintf@%$vfprintf%g
9380 s%@doprint@%$doprint%g
9381 s%@manext@%$manext%g
9382 s%@objext@%$objext%g
9383 s%@PACKAGE@%$PACKAGE%g
9384 s%@VERSION@%$VERSION%g
9385 s%@ALLOCA@%$ALLOCA%g
9386 s%@USE_NLS@%$USE_NLS%g
9387 s%@MSGFMT@%$MSGFMT%g
9388 s%@GMSGFMT@%$GMSGFMT%g
9389 s%@XGETTEXT@%$XGETTEXT%g
9390 s%@GENCAT@%$GENCAT%g
9391 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9392 s%@CATALOGS@%$CATALOGS%g
9393 s%@CATOBJEXT@%$CATOBJEXT%g
9394 s%@DATADIRNAME@%$DATADIRNAME%g
9395 s%@GMOFILES@%$GMOFILES%g
9396 s%@INSTOBJEXT@%$INSTOBJEXT%g
9397 s%@INTLDEPS@%$INTLDEPS%g
9398 s%@INTLLIBS@%$INTLLIBS%g
9399 s%@INTLOBJS@%$INTLOBJS%g
9400 s%@POFILES@%$POFILES%g
9402 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
9404 s%@GT_YES@%$GT_YES%g
9405 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9407 s%@gthread_flags@%$gthread_flags%g
9409 s%@GXX_ABI_FLAG@%$GXX_ABI_FLAG%g
9410 s%@build_canonical@%$build_canonical%g
9411 s%@host_canonical@%$host_canonical%g
9412 s%@target_subdir@%$target_subdir%g
9413 s%@inhibit_libc@%$inhibit_libc%g
9414 s%@gcc_tooldir@%$gcc_tooldir%g
9415 s%@dollar@%$dollar%g
9416 s%@objdir@%$objdir%g
9417 s%@subdirs@%$subdirs%g
9418 s%@all_boot_languages@%$all_boot_languages%g
9419 s%@all_compilers@%$all_compilers%g
9420 s%@all_diff_excludes@%$all_diff_excludes%g
9421 s%@all_headers@%$all_headers%g
9422 s%@all_lang_makefiles@%$all_lang_makefiles%g
9423 s%@all_languages@%$all_languages%g
9424 s%@all_lib2funcs@%$all_lib2funcs%g
9425 s%@all_stagestuff@%$all_stagestuff%g
9426 s%@build_exeext@%$build_exeext%g
9427 s%@build_install_headers_dir@%$build_install_headers_dir%g
9428 s%@build_xm_file_list@%$build_xm_file_list%g
9429 s%@cc_set_by_configure@%$cc_set_by_configure%g
9430 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
9431 s%@cpp_install_dir@%$cpp_install_dir%g
9432 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
9433 s%@dep_tmake_file@%$dep_tmake_file%g
9434 s%@extra_c_flags@%$extra_c_flags%g
9435 s%@extra_c_objs@%$extra_c_objs%g
9436 s%@extra_cpp_objs@%$extra_cpp_objs%g
9437 s%@extra_cxx_objs@%$extra_cxx_objs%g
9438 s%@extra_headers_list@%$extra_headers_list%g
9439 s%@extra_objs@%$extra_objs%g
9440 s%@extra_parts@%$extra_parts%g
9441 s%@extra_passes@%$extra_passes%g
9442 s%@extra_programs@%$extra_programs%g
9443 s%@float_h_file@%$float_h_file%g
9444 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
9445 s%@gcc_version@%$gcc_version%g
9446 s%@gcc_version_trigger@%$gcc_version_trigger%g
9447 s%@host_exeext@%$host_exeext%g
9448 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
9449 s%@host_xm_file_list@%$host_xm_file_list%g
9450 s%@install@%$install%g
9451 s%@lang_options_files@%$lang_options_files%g
9452 s%@lang_specs_files@%$lang_specs_files%g
9453 s%@lang_tree_files@%$lang_tree_files%g
9454 s%@local_prefix@%$local_prefix%g
9455 s%@maybe_use_collect2@%$maybe_use_collect2%g
9456 s%@md_file@%$md_file%g
9457 s%@objc_boehm_gc@%$objc_boehm_gc%g
9458 s%@out_file@%$out_file%g
9459 s%@out_object_file@%$out_object_file%g
9460 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
9461 s%@symbolic_link@%$symbolic_link%g
9462 s%@thread_file@%$thread_file%g
9463 s%@tm_file_list@%$tm_file_list%g
9464 s%@will_use_collect2@%$will_use_collect2%g
9465 /@target_overrides@/r $target_overrides
9466 s%@target_overrides@%%g
9467 /@host_overrides@/r $host_overrides
9468 s%@host_overrides@%%g
9469 s%@cross_defines@%$cross_defines%g
9470 /@cross_overrides@/r $cross_overrides
9471 s%@cross_overrides@%%g
9472 /@build_overrides@/r $build_overrides
9473 s%@build_overrides@%%g
9474 /@language_fragments@/r $language_fragments
9475 s%@language_fragments@%%g
9476 /@language_hooks@/r $language_hooks
9477 s%@language_hooks@%%g
9482 cat >> $CONFIG_STATUS <<\EOF
9484 # Split the substitutions into bite-sized pieces for seds with
9485 # small command number limits, like on Digital OSF/1 and HP-UX.
9486 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
9487 ac_file
=1 # Number of current file.
9488 ac_beg
=1 # First line for current file.
9489 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
9492 while $ac_more_lines; do
9493 if test $ac_beg -gt 1; then
9494 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
9496 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
9498 if test ! -s conftest.s
$ac_file; then
9500 rm -f conftest.s
$ac_file
9502 if test -z "$ac_sed_cmds"; then
9503 ac_sed_cmds
="sed -f conftest.s$ac_file"
9505 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
9507 ac_file
=`expr $ac_file + 1`
9509 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
9512 if test -z "$ac_sed_cmds"; then
9517 cat >> $CONFIG_STATUS <<EOF
9519 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
9521 cat >> $CONFIG_STATUS <<\EOF
9522 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
9523 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9525 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9526 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9527 *) ac_file_in
="${ac_file}.in" ;;
9530 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9532 # Remove last slash and all that follows it. Not all systems have dirname.
9533 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9534 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
9535 # The file is in a subdirectory.
9536 test ! -d "$ac_dir" && mkdir
"$ac_dir"
9537 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
9538 # A "../" for each directory in $ac_dir_suffix.
9539 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9541 ac_dir_suffix
= ac_dots
=
9544 case "$ac_given_srcdir" in
9546 if test -z "$ac_dots"; then top_srcdir
=.
9547 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9548 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
9550 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9551 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9555 echo creating
"$ac_file"
9557 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9559 *Makefile
*) ac_comsub
="1i\\
9560 # $configure_input" ;;
9564 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9566 s%@configure_input@%$configure_input%g
9567 s%@srcdir@%$srcdir%g
9568 s%@top_srcdir@%$top_srcdir%g
9569 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
9573 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9574 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9576 # ac_d sets the value in "#define NAME VALUE" lines.
9577 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9578 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
9581 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9582 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9583 ac_uB
='\([ ]\)%\1#\2define\3'
9586 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9587 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9588 ac_eB
='$%\1#\2define\3'
9592 if test "${CONFIG_HEADERS+set}" != set; then
9594 cat >> $CONFIG_STATUS <<EOF
9595 CONFIG_HEADERS="auto-host.h:config.in"
9597 cat >> $CONFIG_STATUS <<\EOF
9599 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
9600 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9602 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9603 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9604 *) ac_file_in
="${ac_file}.in" ;;
9607 echo creating
$ac_file
9609 rm -f conftest.frag conftest.
in conftest.out
9610 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9611 cat $ac_file_inputs > conftest.
in
9615 # Transform confdefs.h into a sed script conftest.vals that substitutes
9616 # the proper values into config.h.in to produce config.h. And first:
9617 # Protect against being on the right side of a sed subst in config.status.
9618 # Protect against being in an unquoted here document in config.status.
9620 cat > conftest.hdr
<<\EOF
9623 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9627 sed -n -f conftest.hdr confdefs.h > conftest.vals
9630 # This sed command replaces #undef with comments. This is necessary, for
9631 # example, in the case of _POSIX_SOURCE, which is predefined and required
9632 # on some systems where configure will not decide to define it.
9633 cat >> conftest.vals <<\EOF
9634 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9637 # Break up conftest.vals because some shells have a limit on
9638 # the size of here documents, and old seds have small limits too.
9643 ac_lines=`grep -c . conftest.vals
`
9644 # grep -c gives empty output for an empty file on some AIX systems.
9645 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9646 # Write a limited-size here document to conftest.frag.
9647 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9648 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9650 sed -f conftest.frag conftest.in > conftest.out
9652 mv conftest.out conftest.in
9654 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9656 mv conftest.tail conftest.vals
9660 cat >> $CONFIG_STATUS <<\EOF
9661 rm -f conftest.frag conftest.h
9662 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9663 cat conftest.in >> conftest.h
9665 if cmp -s $ac_file conftest.h 2>/dev/null; then
9666 echo "$ac_file is unchanged"
9669 # Remove last slash and all that follows it. Not all systems have dirname.
9670 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
9671 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9672 # The file is in a subdirectory.
9673 test ! -d "$ac_dir" && mkdir "$ac_dir"
9676 mv conftest.h $ac_file
9682 cat >> $CONFIG_STATUS <<EOF
9683 ac_sources="$nls_cv_header_libgt"
9684 ac_dests="$nls_cv_header_intl"
9687 cat >> $CONFIG_STATUS <<\EOF
9688 srcdir=$ac_given_srcdir
9689 while test -n "$ac_sources"; do
9690 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9691 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9693 echo "linking $srcdir/$ac_source to $ac_dest"
9695 if test ! -r $srcdir/$ac_source; then
9696 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9700 # Make relative symlinks.
9701 # Remove last slash and all that follows it. Not all systems have dirname.
9702 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
9703 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9704 # The dest file is in a subdirectory.
9705 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9706 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
9707 # A "../" for each directory in $ac_dest_dir_suffix.
9708 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
9710 ac_dest_dir_suffix= ac_dots=
9714 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9715 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9718 # Make a symlink if possible; otherwise try a hard link.
9719 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9720 ln $srcdir/$ac_source $ac_dest; then :
9722 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9726 cat >> $CONFIG_STATUS <<EOF
9732 target_alias='${target_alias}'
9734 subdirs='${subdirs}'
9735 oldstyle_subdirs='${oldstyle_subdirs}'
9736 symbolic_link='${symbolic_link}'
9737 program_transform_set='${program_transform_set}'
9738 program_transform_name='${program_transform_name}'
9739 dep_host_xmake_file='${dep_host_xmake_file}'
9740 host_xmake_file='${host_xmake_file}'
9741 dep_tmake_file='${dep_tmake_file}'
9742 tmake_file='${tmake_file}'
9743 thread_file='${thread_file}'
9744 gcc_version='${gcc_version}'
9745 gcc_version_trigger='${gcc_version_trigger}'
9746 local_prefix='${local_prefix}'
9747 build_install_headers_dir='${build_install_headers_dir}'
9748 build_exeext='${build_exeext}'
9749 host_exeext='${host_exeext}'
9750 out_file='${out_file}'
9751 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
9752 SET_MAKE='${SET_MAKE}'
9753 target_list='${target_list}'
9754 target_overrides='${target_overrides}'
9755 host_overrides='${host_overrides}'
9756 cross_defines='${cross_defines}'
9757 cross_overrides='${cross_overrides}'
9758 build_overrides='${build_overrides}'
9759 cpp_install_dir='${cpp_install_dir}'
9762 cat >> $CONFIG_STATUS <<\EOF
9763 case "$CONFIG_FILES" in *po/Makefile.in*)
9764 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
9767 . $srcdir/configure.lang
9768 case x$CONFIG_HEADERS in
9769 xauto-host.h:config.in)
9772 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
9773 # bootstrapping and the installation procedure can still use
9774 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
9775 # FLAGS_TO_PASS has been modified to solve the problem there.
9776 # This is virtually a duplicate of what happens in configure.lang; we do
9777 # an extra check to make sure this only happens if ln -s can be used.
9778 if test "$symbolic_link" = "ln -s"; then
9779 for d in .. ${subdirs} ; do
9780 if test $d != ..; then
9783 for t in stage1 stage2 stage3 stage4 include
9786 $symbolic_link ../$t $t 2>/dev/null
9792 # Avoid having to add intl to our include paths.
9793 if test -f intl/libintl.h; then
9794 echo creating libintl.h
9795 echo '#include "intl/libintl.h"' >libintl.h
9800 chmod +x $CONFIG_STATUS
9801 rm -fr confdefs* $ac_clean_files
9802 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1