2000-07-03 Donn Terry (donnte@microsoft.com)
[official-gcc.git] / gcc / configure
blob79c060d6cc9c3f45bfdbeda7e53612a5ca023530
1 #! /bin/sh
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.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --with-gnu-ld arrange to work with GNU ld."
16 ac_help="$ac_help
17 --with-ld arrange to use the specified ld (full pathname)."
18 ac_help="$ac_help
19 --with-gnu-as arrange to work with GNU as."
20 ac_help="$ac_help
21 --with-as arrange to use the specified as (full pathname)."
22 ac_help="$ac_help
23 --with-stabs arrange to use stabs instead of host debug format."
24 ac_help="$ac_help
25 --with-elf arrange to use ELF instead of host debug format."
26 ac_help="$ac_help
27 --with-local-prefix=DIR specifies directory to put local include."
28 ac_help="$ac_help
29 --with-gxx-include-dir=DIR
30 specifies directory to put g++ header files."
31 ac_help="$ac_help
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
36 is misc,tree,gc"
37 ac_help="$ac_help
38 --disable-cpp don't provide a user-visible C preprocessor."
39 ac_help="$ac_help
40 --with-cpp-install-dir=DIR
41 install the user visible C preprocessor in DIR
42 (relative to PREFIX) as well as PREFIX/bin."
43 ac_help="$ac_help
44 --enable-c-mbchar Enable multibyte characters for C and C++."
45 ac_help="$ac_help
46 --enable-threads enable thread usage for target GCC.
47 --enable-threads=LIB use LIB thread package for target GCC."
48 ac_help="$ac_help
49 --enable-objc-gc enable the use of Boehm's garbage collector with
50 the GNU Objective-C runtime."
51 ac_help="$ac_help
52 --with-dwarf2 force the default debug format to be DWARF2."
53 ac_help="$ac_help
54 --enable-nls use Native Language Support (default)"
55 ac_help="$ac_help
56 --disable-nls do not use Native Language Support"
57 ac_help="$ac_help
58 --with-included-gettext use the GNU gettext library included here"
59 ac_help="$ac_help
60 --with-catgets use catgets functions if available"
61 ac_help="$ac_help
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
68 of the registry key."
69 ac_help="$ac_help
70 --with-gc={simple,page} Choose the garbage collection mechanism to use
71 with the compiler."
72 ac_help="$ac_help
73 --enable-new-gxx-abi
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."
77 ac_help="$ac_help
78 --enable-libstdcxx-v3
79 enable libstdc++-v3 for building and installation"
80 ac_help="$ac_help
81 --enable-maintainer-mode enable make rules and dependencies not useful
82 (and sometimes confusing) to the casual installer"
84 # Initialize some variables set by options.
85 # The variables have the same names as the options, with
86 # dashes changed to underlines.
87 build=NONE
88 cache_file=./config.cache
89 exec_prefix=NONE
90 host=NONE
91 no_create=
92 nonopt=NONE
93 no_recursion=
94 prefix=NONE
95 program_prefix=NONE
96 program_suffix=NONE
97 program_transform_name=s,x,x,
98 silent=
99 site=
100 srcdir=
101 target=NONE
102 verbose=
103 x_includes=NONE
104 x_libraries=NONE
105 bindir='${exec_prefix}/bin'
106 sbindir='${exec_prefix}/sbin'
107 libexecdir='${exec_prefix}/libexec'
108 datadir='${prefix}/share'
109 sysconfdir='${prefix}/etc'
110 sharedstatedir='${prefix}/com'
111 localstatedir='${prefix}/var'
112 libdir='${exec_prefix}/lib'
113 includedir='${prefix}/include'
114 oldincludedir='/usr/include'
115 infodir='${prefix}/info'
116 mandir='${prefix}/man'
118 # Initialize some other variables.
119 subdirs=
120 MFLAGS= MAKEFLAGS=
121 SHELL=${CONFIG_SHELL-/bin/sh}
122 # Maximum number of lines to put in a shell here document.
123 ac_max_here_lines=12
125 ac_prev=
126 for ac_option
129 # If the previous option needs an argument, assign it.
130 if test -n "$ac_prev"; then
131 eval "$ac_prev=\$ac_option"
132 ac_prev=
133 continue
136 case "$ac_option" in
137 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
138 *) ac_optarg= ;;
139 esac
141 # Accept the important Cygnus configure options, so we can diagnose typos.
143 case "$ac_option" in
145 -bindir | --bindir | --bindi | --bind | --bin | --bi)
146 ac_prev=bindir ;;
147 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
148 bindir="$ac_optarg" ;;
150 -build | --build | --buil | --bui | --bu)
151 ac_prev=build ;;
152 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
153 build="$ac_optarg" ;;
155 -cache-file | --cache-file | --cache-fil | --cache-fi \
156 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
157 ac_prev=cache_file ;;
158 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
159 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
160 cache_file="$ac_optarg" ;;
162 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
163 ac_prev=datadir ;;
164 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
165 | --da=*)
166 datadir="$ac_optarg" ;;
168 -disable-* | --disable-*)
169 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
170 # Reject names that are not valid shell variable names.
171 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
172 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
174 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
175 eval "enable_${ac_feature}=no" ;;
177 -enable-* | --enable-*)
178 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
179 # Reject names that are not valid shell variable names.
180 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
181 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
183 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
184 case "$ac_option" in
185 *=*) ;;
186 *) ac_optarg=yes ;;
187 esac
188 eval "enable_${ac_feature}='$ac_optarg'" ;;
190 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
191 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
192 | --exec | --exe | --ex)
193 ac_prev=exec_prefix ;;
194 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
195 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
196 | --exec=* | --exe=* | --ex=*)
197 exec_prefix="$ac_optarg" ;;
199 -gas | --gas | --ga | --g)
200 # Obsolete; use --with-gas.
201 with_gas=yes ;;
203 -help | --help | --hel | --he)
204 # Omit some internal or obsolete options to make the list less imposing.
205 # This message is too long to be a string in the A/UX 3.1 sh.
206 cat << EOF
207 Usage: configure [options] [host]
208 Options: [defaults in brackets after descriptions]
209 Configuration:
210 --cache-file=FILE cache test results in FILE
211 --help print this message
212 --no-create do not create output files
213 --quiet, --silent do not print \`checking...' messages
214 --version print the version of autoconf that created configure
215 Directory and file names:
216 --prefix=PREFIX install architecture-independent files in PREFIX
217 [$ac_default_prefix]
218 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
219 [same as prefix]
220 --bindir=DIR user executables in DIR [EPREFIX/bin]
221 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
222 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
223 --datadir=DIR read-only architecture-independent data in DIR
224 [PREFIX/share]
225 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
226 --sharedstatedir=DIR modifiable architecture-independent data in DIR
227 [PREFIX/com]
228 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
229 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
230 --includedir=DIR C header files in DIR [PREFIX/include]
231 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
232 --infodir=DIR info documentation in DIR [PREFIX/info]
233 --mandir=DIR man documentation in DIR [PREFIX/man]
234 --srcdir=DIR find the sources in DIR [configure dir or ..]
235 --program-prefix=PREFIX prepend PREFIX to installed program names
236 --program-suffix=SUFFIX append SUFFIX to installed program names
237 --program-transform-name=PROGRAM
238 run sed PROGRAM on installed program names
240 cat << EOF
241 Host type:
242 --build=BUILD configure for building on BUILD [BUILD=HOST]
243 --host=HOST configure for HOST [guessed]
244 --target=TARGET configure for TARGET [TARGET=HOST]
245 Features and packages:
246 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
247 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
248 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
249 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
250 --x-includes=DIR X include files are in DIR
251 --x-libraries=DIR X library files are in DIR
253 if test -n "$ac_help"; then
254 echo "--enable and --with options recognized:$ac_help"
256 exit 0 ;;
258 -host | --host | --hos | --ho)
259 ac_prev=host ;;
260 -host=* | --host=* | --hos=* | --ho=*)
261 host="$ac_optarg" ;;
263 -includedir | --includedir | --includedi | --included | --include \
264 | --includ | --inclu | --incl | --inc)
265 ac_prev=includedir ;;
266 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
267 | --includ=* | --inclu=* | --incl=* | --inc=*)
268 includedir="$ac_optarg" ;;
270 -infodir | --infodir | --infodi | --infod | --info | --inf)
271 ac_prev=infodir ;;
272 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
273 infodir="$ac_optarg" ;;
275 -libdir | --libdir | --libdi | --libd)
276 ac_prev=libdir ;;
277 -libdir=* | --libdir=* | --libdi=* | --libd=*)
278 libdir="$ac_optarg" ;;
280 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
281 | --libexe | --libex | --libe)
282 ac_prev=libexecdir ;;
283 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
284 | --libexe=* | --libex=* | --libe=*)
285 libexecdir="$ac_optarg" ;;
287 -localstatedir | --localstatedir | --localstatedi | --localstated \
288 | --localstate | --localstat | --localsta | --localst \
289 | --locals | --local | --loca | --loc | --lo)
290 ac_prev=localstatedir ;;
291 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
292 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
293 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
294 localstatedir="$ac_optarg" ;;
296 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
297 ac_prev=mandir ;;
298 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
299 mandir="$ac_optarg" ;;
301 -nfp | --nfp | --nf)
302 # Obsolete; use --without-fp.
303 with_fp=no ;;
305 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
306 | --no-cr | --no-c)
307 no_create=yes ;;
309 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
310 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
311 no_recursion=yes ;;
313 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
314 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
315 | --oldin | --oldi | --old | --ol | --o)
316 ac_prev=oldincludedir ;;
317 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
318 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
319 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
320 oldincludedir="$ac_optarg" ;;
322 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
323 ac_prev=prefix ;;
324 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
325 prefix="$ac_optarg" ;;
327 -program-prefix | --program-prefix | --program-prefi | --program-pref \
328 | --program-pre | --program-pr | --program-p)
329 ac_prev=program_prefix ;;
330 -program-prefix=* | --program-prefix=* | --program-prefi=* \
331 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
332 program_prefix="$ac_optarg" ;;
334 -program-suffix | --program-suffix | --program-suffi | --program-suff \
335 | --program-suf | --program-su | --program-s)
336 ac_prev=program_suffix ;;
337 -program-suffix=* | --program-suffix=* | --program-suffi=* \
338 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
339 program_suffix="$ac_optarg" ;;
341 -program-transform-name | --program-transform-name \
342 | --program-transform-nam | --program-transform-na \
343 | --program-transform-n | --program-transform- \
344 | --program-transform | --program-transfor \
345 | --program-transfo | --program-transf \
346 | --program-trans | --program-tran \
347 | --progr-tra | --program-tr | --program-t)
348 ac_prev=program_transform_name ;;
349 -program-transform-name=* | --program-transform-name=* \
350 | --program-transform-nam=* | --program-transform-na=* \
351 | --program-transform-n=* | --program-transform-=* \
352 | --program-transform=* | --program-transfor=* \
353 | --program-transfo=* | --program-transf=* \
354 | --program-trans=* | --program-tran=* \
355 | --progr-tra=* | --program-tr=* | --program-t=*)
356 program_transform_name="$ac_optarg" ;;
358 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
359 | -silent | --silent | --silen | --sile | --sil)
360 silent=yes ;;
362 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
363 ac_prev=sbindir ;;
364 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
365 | --sbi=* | --sb=*)
366 sbindir="$ac_optarg" ;;
368 -sharedstatedir | --sharedstatedir | --sharedstatedi \
369 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
370 | --sharedst | --shareds | --shared | --share | --shar \
371 | --sha | --sh)
372 ac_prev=sharedstatedir ;;
373 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
374 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
375 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
376 | --sha=* | --sh=*)
377 sharedstatedir="$ac_optarg" ;;
379 -site | --site | --sit)
380 ac_prev=site ;;
381 -site=* | --site=* | --sit=*)
382 site="$ac_optarg" ;;
384 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
385 ac_prev=srcdir ;;
386 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
387 srcdir="$ac_optarg" ;;
389 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
390 | --syscon | --sysco | --sysc | --sys | --sy)
391 ac_prev=sysconfdir ;;
392 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
393 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
394 sysconfdir="$ac_optarg" ;;
396 -target | --target | --targe | --targ | --tar | --ta | --t)
397 ac_prev=target ;;
398 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
399 target="$ac_optarg" ;;
401 -v | -verbose | --verbose | --verbos | --verbo | --verb)
402 verbose=yes ;;
404 -version | --version | --versio | --versi | --vers)
405 echo "configure generated by autoconf version 2.13"
406 exit 0 ;;
408 -with-* | --with-*)
409 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
410 # Reject names that are not valid shell variable names.
411 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
412 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
414 ac_package=`echo $ac_package| sed 's/-/_/g'`
415 case "$ac_option" in
416 *=*) ;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "with_${ac_package}='$ac_optarg'" ;;
421 -without-* | --without-*)
422 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
423 # Reject names that are not valid shell variable names.
424 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
425 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
427 ac_package=`echo $ac_package| sed 's/-/_/g'`
428 eval "with_${ac_package}=no" ;;
430 --x)
431 # Obsolete; use --with-x.
432 with_x=yes ;;
434 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
435 | --x-incl | --x-inc | --x-in | --x-i)
436 ac_prev=x_includes ;;
437 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
438 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
439 x_includes="$ac_optarg" ;;
441 -x-libraries | --x-libraries | --x-librarie | --x-librari \
442 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
443 ac_prev=x_libraries ;;
444 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
445 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
446 x_libraries="$ac_optarg" ;;
448 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
452 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
453 echo "configure: warning: $ac_option: invalid host type" 1>&2
455 if test "x$nonopt" != xNONE; then
456 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
458 nonopt="$ac_option"
461 esac
462 done
464 if test -n "$ac_prev"; then
465 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
468 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
470 # File descriptor usage:
471 # 0 standard input
472 # 1 file creation
473 # 2 errors and warnings
474 # 3 some systems may open it to /dev/tty
475 # 4 used on the Kubota Titan
476 # 6 checking for... messages and results
477 # 5 compiler messages saved in config.log
478 if test "$silent" = yes; then
479 exec 6>/dev/null
480 else
481 exec 6>&1
483 exec 5>./config.log
485 echo "\
486 This file contains any messages produced by compilers while
487 running configure, to aid debugging if configure makes a mistake.
488 " 1>&5
490 # Strip out --no-create and --no-recursion so they do not pile up.
491 # Also quote any args containing shell metacharacters.
492 ac_configure_args=
493 for ac_arg
495 case "$ac_arg" in
496 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
497 | --no-cr | --no-c) ;;
498 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
499 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
500 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
501 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
502 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
503 esac
504 done
506 # NLS nuisances.
507 # Only set these to C if already set. These must not be set unconditionally
508 # because not all systems understand e.g. LANG=C (notably SCO).
509 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
510 # Non-C LC_CTYPE values break the ctype check.
511 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
512 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
513 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
514 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
516 # confdefs.h avoids OS command line length limits that DEFS can exceed.
517 rm -rf conftest* confdefs.h
518 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
519 echo > confdefs.h
521 # A filename unique to this package, relative to the directory that
522 # configure is in, which we can look for to find out if srcdir is correct.
523 ac_unique_file=tree.c
525 # Find the source files, if location was not specified.
526 if test -z "$srcdir"; then
527 ac_srcdir_defaulted=yes
528 # Try the directory containing this script, then its parent.
529 ac_prog=$0
530 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
531 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
532 srcdir=$ac_confdir
533 if test ! -r $srcdir/$ac_unique_file; then
534 srcdir=..
536 else
537 ac_srcdir_defaulted=no
539 if test ! -r $srcdir/$ac_unique_file; then
540 if test "$ac_srcdir_defaulted" = yes; then
541 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
542 else
543 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
546 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
548 # Prefer explicitly selected file to automatically selected ones.
549 if test -z "$CONFIG_SITE"; then
550 if test "x$prefix" != xNONE; then
551 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
552 else
553 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
556 for ac_site_file in $CONFIG_SITE; do
557 if test -r "$ac_site_file"; then
558 echo "loading site script $ac_site_file"
559 . "$ac_site_file"
561 done
563 if test -r "$cache_file"; then
564 echo "loading cache $cache_file"
565 . $cache_file
566 else
567 echo "creating cache $cache_file"
568 > $cache_file
571 ac_ext=c
572 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
573 ac_cpp='$CPP $CPPFLAGS'
574 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
575 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
576 cross_compiling=$ac_cv_prog_cc_cross
578 ac_exeext=
579 ac_objext=o
580 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
581 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
582 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
583 ac_n= ac_c='
584 ' ac_t=' '
585 else
586 ac_n=-n ac_c= ac_t=
588 else
589 ac_n= ac_c='\c' ac_t=
595 remove=rm
596 hard_link=ln
597 symbolic_link='ln -s'
598 copy=cp
600 # Check for bogus environment variables.
601 # Test if LIBRARY_PATH contains the notation for the current directory
602 # since this would lead to problems installing/building glibc.
603 # LIBRARY_PATH contains the current directory if one of the following
604 # is true:
605 # - one of the terminals (":" and ";") is the first or last sign
606 # - two terminals occur directly after each other
607 # - the path contains an element with a dot in it
608 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
609 echo "configure:610: checking LIBRARY_PATH variable" >&5
610 case ${LIBRARY_PATH} in
611 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
612 library_path_setting="contains current directory"
615 library_path_setting="ok"
617 esac
618 echo "$ac_t""$library_path_setting" 1>&6
619 if test "$library_path_setting" != "ok"; then
620 { echo "configure: error:
621 *** LIBRARY_PATH shouldn't contain the current directory when
622 *** building gcc. Please change the environment variable
623 *** and run configure again." 1>&2; exit 1; }
626 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
627 # since this would lead to problems installing/building glibc.
628 # GCC_EXEC_PREFIX contains the current directory if one of the following
629 # is true:
630 # - one of the terminals (":" and ";") is the first or last sign
631 # - two terminals occur directly after each other
632 # - the path contains an element with a dot in it
633 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
634 echo "configure:635: checking GCC_EXEC_PREFIX variable" >&5
635 case ${GCC_EXEC_PREFIX} in
636 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
637 gcc_exec_prefix_setting="contains current directory"
640 gcc_exec_prefix_setting="ok"
642 esac
643 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
644 if test "$gcc_exec_prefix_setting" != "ok"; then
645 { echo "configure: error:
646 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
647 *** building gcc. Please change the environment variable
648 *** and run configure again." 1>&2; exit 1; }
651 # Check for additional parameters
653 # With GNU ld
654 # Check whether --with-gnu-ld or --without-gnu-ld was given.
655 if test "${with_gnu_ld+set}" = set; then
656 withval="$with_gnu_ld"
657 gnu_ld_flag="$with_gnu_ld"
658 else
659 gnu_ld_flag=no
663 # With pre-defined ld
664 # Check whether --with-ld or --without-ld was given.
665 if test "${with_ld+set}" = set; then
666 withval="$with_ld"
667 DEFAULT_LINKER="$with_ld"
670 if test x"${DEFAULT_LINKER+set}" = x"set"; then
671 if test ! -x "$DEFAULT_LINKER"; then
672 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
673 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
674 gnu_ld_flag=yes
676 cat >> confdefs.h <<EOF
677 #define DEFAULT_LINKER "$DEFAULT_LINKER"
682 # With GNU as
683 # Check whether --with-gnu-as or --without-gnu-as was given.
684 if test "${with_gnu_as+set}" = set; then
685 withval="$with_gnu_as"
686 gas_flag="$with_gnu_as"
687 else
688 gas_flag=no
692 # Check whether --with-as or --without-as was given.
693 if test "${with_as+set}" = set; then
694 withval="$with_as"
695 DEFAULT_ASSEMBLER="$with_as"
698 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
699 if test ! -x "$DEFAULT_ASSEMBLER"; then
700 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
701 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
702 gas_flag=yes
704 cat >> confdefs.h <<EOF
705 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
710 # With stabs
711 # Check whether --with-stabs or --without-stabs was given.
712 if test "${with_stabs+set}" = set; then
713 withval="$with_stabs"
714 stabs="$with_stabs"
715 else
716 stabs=no
720 # With ELF
721 # Check whether --with-elf or --without-elf was given.
722 if test "${with_elf+set}" = set; then
723 withval="$with_elf"
724 elf="$with_elf"
725 else
726 elf=no
730 # Specify the local prefix
731 local_prefix=
732 # Check whether --with-local-prefix or --without-local-prefix was given.
733 if test "${with_local_prefix+set}" = set; then
734 withval="$with_local_prefix"
735 case "${withval}" in
736 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
737 no) ;;
738 *) local_prefix=$with_local_prefix ;;
739 esac
743 # Default local prefix if it is empty
744 if test x$local_prefix = x; then
745 local_prefix=/usr/local
748 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
749 # passed in by the toplevel make and thus we'd get different behavior
750 # depending on where we built the sources.
751 gcc_gxx_include_dir=
752 # Specify the g++ header file directory
753 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
754 if test "${with_gxx_include_dir+set}" = set; then
755 withval="$with_gxx_include_dir"
756 case "${withval}" in
757 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
758 no) ;;
759 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
760 esac
764 if test x${gcc_gxx_include_dir} = x; then
765 if test x${enable_version_specific_runtime_libs} = xyes; then
766 gcc_gxx_include_dir='${libsubdir}/include/g++'
767 else
768 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
769 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
773 # Enable expensive internal checks
774 # Check whether --enable-checking or --disable-checking was given.
775 if test "${enable_checking+set}" = set; then
776 enableval="$enable_checking"
777 ac_checking=
778 ac_tree_checking=
779 ac_rtl_checking=
780 ac_gc_checking=
781 ac_gc_always_collect=
782 case "${enableval}" in
783 yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;;
784 no) ;;
785 *) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
786 set fnord $enableval; shift
787 IFS="$ac_save_IFS"
788 for check
790 case $check in
791 misc) ac_checking=1 ;;
792 tree) ac_tree_checking=1 ;;
793 rtl) ac_rtl_checking=1 ;;
794 gc) ac_gc_checking=1 ;;
795 gcac) ac_gc_always_collect=1 ;;
796 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
797 esac
798 done
800 esac
802 else
803 # Enable some checks by default for development versions of GCC
804 ac_checking=1; ac_tree_checking=1; ac_gc_checking=1;
807 if test x$ac_checking != x ; then
808 cat >> confdefs.h <<\EOF
809 #define ENABLE_CHECKING 1
813 if test x$ac_tree_checking != x ; then
814 cat >> confdefs.h <<\EOF
815 #define ENABLE_TREE_CHECKING 1
819 if test x$ac_rtl_checking != x ; then
820 cat >> confdefs.h <<\EOF
821 #define ENABLE_RTL_CHECKING 1
825 if test x$ac_gc_checking != x ; then
826 cat >> confdefs.h <<\EOF
827 #define ENABLE_GC_CHECKING 1
831 if test x$ac_gc_always_collect != x ; then
832 cat >> confdefs.h <<\EOF
833 #define ENABLE_GC_ALWAYS_COLLECT 1
839 # Check whether --enable-cpp or --disable-cpp was given.
840 if test "${enable_cpp+set}" = set; then
841 enableval="$enable_cpp"
843 else
844 enable_cpp=yes
848 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
849 if test "${with_cpp_install_dir+set}" = set; then
850 withval="$with_cpp_install_dir"
851 if test x$withval = xyes; then
852 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
853 elif test x$withval != xno; then
854 cpp_install_dir=$withval
860 # Enable Multibyte Characters for C/C++
861 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
862 if test "${enable_c_mbchar+set}" = set; then
863 enableval="$enable_c_mbchar"
864 if test x$enable_c_mbchar != xno; then
865 extra_c_flags="${extra_c_flags} -DMULTIBYTE_CHARS=1"
870 # Enable threads
871 # Pass with no value to take the default
872 # Pass with a value to specify a thread package
873 # Check whether --enable-threads or --disable-threads was given.
874 if test "${enable_threads+set}" = set; then
875 enableval="$enable_threads"
876 if test x$enable_threads = xno; then
877 enable_threads=''
879 else
880 enable_threads=''
884 enable_threads_flag=$enable_threads
885 # Check if a valid thread package
886 case x${enable_threads_flag} in
887 x | xno)
888 # No threads
889 target_thread_file='single'
891 xyes)
892 # default
893 target_thread_file=''
895 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
896 xsolaris | xwin32 | xdce | xvxworks)
897 target_thread_file=$enable_threads_flag
900 echo "$enable_threads is an unknown thread package" 1>&2
901 exit 1
903 esac
905 # Check whether --enable-objc-gc or --disable-objc-gc was given.
906 if test "${enable_objc_gc+set}" = set; then
907 enableval="$enable_objc_gc"
908 if test x$enable_objc_gc = xno; then
909 objc_boehm_gc=''
910 else
911 objc_boehm_gc=1
913 else
914 objc_boehm_gc=''
918 # Check whether --with-dwarf2 or --without-dwarf2 was given.
919 if test "${with_dwarf2+set}" = set; then
920 withval="$with_dwarf2"
921 dwarf2="$with_dwarf2"
922 else
923 dwarf2=no
927 # Determine the host, build, and target systems
928 ac_aux_dir=
929 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
930 if test -f $ac_dir/install-sh; then
931 ac_aux_dir=$ac_dir
932 ac_install_sh="$ac_aux_dir/install-sh -c"
933 break
934 elif test -f $ac_dir/install.sh; then
935 ac_aux_dir=$ac_dir
936 ac_install_sh="$ac_aux_dir/install.sh -c"
937 break
939 done
940 if test -z "$ac_aux_dir"; then
941 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
943 ac_config_guess=$ac_aux_dir/config.guess
944 ac_config_sub=$ac_aux_dir/config.sub
945 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
948 # Do some error checking and defaulting for the host and target type.
949 # The inputs are:
950 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
952 # The rules are:
953 # 1. You are not allowed to specify --host, --target, and nonopt at the
954 # same time.
955 # 2. Host defaults to nonopt.
956 # 3. If nonopt is not specified, then host defaults to the current host,
957 # as determined by config.guess.
958 # 4. Target and build default to nonopt.
959 # 5. If nonopt is not specified, then target and build default to host.
961 # The aliases save the names the user supplied, while $host etc.
962 # will get canonicalized.
963 case $host---$target---$nonopt in
964 NONE---*---* | *---NONE---* | *---*---NONE) ;;
965 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
966 esac
969 # Make sure we can run config.sub.
970 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
971 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
974 echo $ac_n "checking host system type""... $ac_c" 1>&6
975 echo "configure:976: checking host system type" >&5
977 host_alias=$host
978 case "$host_alias" in
979 NONE)
980 case $nonopt in
981 NONE)
982 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
983 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
984 fi ;;
985 *) host_alias=$nonopt ;;
986 esac ;;
987 esac
989 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
990 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
991 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
992 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
993 echo "$ac_t""$host" 1>&6
995 echo $ac_n "checking target system type""... $ac_c" 1>&6
996 echo "configure:997: checking target system type" >&5
998 target_alias=$target
999 case "$target_alias" in
1000 NONE)
1001 case $nonopt in
1002 NONE) target_alias=$host_alias ;;
1003 *) target_alias=$nonopt ;;
1004 esac ;;
1005 esac
1007 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1008 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1009 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1010 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1011 echo "$ac_t""$target" 1>&6
1013 echo $ac_n "checking build system type""... $ac_c" 1>&6
1014 echo "configure:1015: checking build system type" >&5
1016 build_alias=$build
1017 case "$build_alias" in
1018 NONE)
1019 case $nonopt in
1020 NONE) build_alias=$host_alias ;;
1021 *) build_alias=$nonopt ;;
1022 esac ;;
1023 esac
1025 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1026 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1027 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1028 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1029 echo "$ac_t""$build" 1>&6
1031 test "$host_alias" != "$target_alias" &&
1032 test "$program_prefix$program_suffix$program_transform_name" = \
1033 NONENONEs,x,x, &&
1034 program_prefix=${target_alias}-
1037 # Find the native compiler
1038 # Extract the first word of "gcc", so it can be a program name with args.
1039 set dummy gcc; ac_word=$2
1040 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1041 echo "configure:1042: checking for $ac_word" >&5
1042 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1043 echo $ac_n "(cached) $ac_c" 1>&6
1044 else
1045 if test -n "$CC"; then
1046 ac_cv_prog_CC="$CC" # Let the user override the test.
1047 else
1048 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1049 ac_dummy="$PATH"
1050 for ac_dir in $ac_dummy; do
1051 test -z "$ac_dir" && ac_dir=.
1052 if test -f $ac_dir/$ac_word; then
1053 ac_cv_prog_CC="gcc"
1054 break
1056 done
1057 IFS="$ac_save_ifs"
1060 CC="$ac_cv_prog_CC"
1061 if test -n "$CC"; then
1062 echo "$ac_t""$CC" 1>&6
1063 else
1064 echo "$ac_t""no" 1>&6
1067 if test -z "$CC"; then
1068 # Extract the first word of "cc", so it can be a program name with args.
1069 set dummy cc; ac_word=$2
1070 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1071 echo "configure:1072: checking for $ac_word" >&5
1072 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1073 echo $ac_n "(cached) $ac_c" 1>&6
1074 else
1075 if test -n "$CC"; then
1076 ac_cv_prog_CC="$CC" # Let the user override the test.
1077 else
1078 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1079 ac_prog_rejected=no
1080 ac_dummy="$PATH"
1081 for ac_dir in $ac_dummy; do
1082 test -z "$ac_dir" && ac_dir=.
1083 if test -f $ac_dir/$ac_word; then
1084 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1085 ac_prog_rejected=yes
1086 continue
1088 ac_cv_prog_CC="cc"
1089 break
1091 done
1092 IFS="$ac_save_ifs"
1093 if test $ac_prog_rejected = yes; then
1094 # We found a bogon in the path, so make sure we never use it.
1095 set dummy $ac_cv_prog_CC
1096 shift
1097 if test $# -gt 0; then
1098 # We chose a different compiler from the bogus one.
1099 # However, it has the same basename, so the bogon will be chosen
1100 # first if we set CC to just the basename; use the full file name.
1101 shift
1102 set dummy "$ac_dir/$ac_word" "$@"
1103 shift
1104 ac_cv_prog_CC="$@"
1109 CC="$ac_cv_prog_CC"
1110 if test -n "$CC"; then
1111 echo "$ac_t""$CC" 1>&6
1112 else
1113 echo "$ac_t""no" 1>&6
1116 if test -z "$CC"; then
1117 case "`uname -s`" in
1118 *win32* | *WIN32*)
1119 # Extract the first word of "cl", so it can be a program name with args.
1120 set dummy cl; ac_word=$2
1121 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1122 echo "configure:1123: checking for $ac_word" >&5
1123 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1124 echo $ac_n "(cached) $ac_c" 1>&6
1125 else
1126 if test -n "$CC"; then
1127 ac_cv_prog_CC="$CC" # Let the user override the test.
1128 else
1129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1130 ac_dummy="$PATH"
1131 for ac_dir in $ac_dummy; do
1132 test -z "$ac_dir" && ac_dir=.
1133 if test -f $ac_dir/$ac_word; then
1134 ac_cv_prog_CC="cl"
1135 break
1137 done
1138 IFS="$ac_save_ifs"
1141 CC="$ac_cv_prog_CC"
1142 if test -n "$CC"; then
1143 echo "$ac_t""$CC" 1>&6
1144 else
1145 echo "$ac_t""no" 1>&6
1148 esac
1150 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1153 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1154 echo "configure:1155: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1156 ac_ext=c
1157 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1158 ac_cpp='$CPP $CPPFLAGS'
1159 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1160 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1161 cross_compiling=$ac_cv_prog_cc_cross
1163 cat > conftest.$ac_ext << EOF
1165 #line 1166 "configure"
1166 #include "confdefs.h"
1168 main(){return(0);}
1170 if { (eval echo configure:1171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1171 ac_cv_prog_cc_works=yes
1172 # If we can't run a trivial program, we are probably using a cross compiler.
1173 if (./conftest; exit) 2>/dev/null; then
1174 ac_cv_prog_cc_cross=no
1175 else
1176 ac_cv_prog_cc_cross=yes
1178 else
1179 echo "configure: failed program was:" >&5
1180 cat conftest.$ac_ext >&5
1181 ac_cv_prog_cc_works=no
1183 rm -fr conftest*
1184 ac_ext=c
1185 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1186 ac_cpp='$CPP $CPPFLAGS'
1187 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1188 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1189 cross_compiling=$ac_cv_prog_cc_cross
1191 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1192 if test $ac_cv_prog_cc_works = no; then
1193 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1195 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1196 echo "configure:1197: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1197 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1198 cross_compiling=$ac_cv_prog_cc_cross
1200 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1201 echo "configure:1202: checking whether we are using GNU C" >&5
1202 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1203 echo $ac_n "(cached) $ac_c" 1>&6
1204 else
1205 cat > conftest.c <<EOF
1206 #ifdef __GNUC__
1207 yes;
1208 #endif
1210 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1211 ac_cv_prog_gcc=yes
1212 else
1213 ac_cv_prog_gcc=no
1217 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1219 if test $ac_cv_prog_gcc = yes; then
1220 GCC=yes
1221 else
1222 GCC=
1225 ac_test_CFLAGS="${CFLAGS+set}"
1226 ac_save_CFLAGS="$CFLAGS"
1227 CFLAGS=
1228 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1229 echo "configure:1230: checking whether ${CC-cc} accepts -g" >&5
1230 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1231 echo $ac_n "(cached) $ac_c" 1>&6
1232 else
1233 echo 'void f(){}' > conftest.c
1234 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1235 ac_cv_prog_cc_g=yes
1236 else
1237 ac_cv_prog_cc_g=no
1239 rm -f conftest*
1243 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1244 if test "$ac_test_CFLAGS" = set; then
1245 CFLAGS="$ac_save_CFLAGS"
1246 elif test $ac_cv_prog_cc_g = yes; then
1247 if test "$GCC" = yes; then
1248 CFLAGS="-g -O2"
1249 else
1250 CFLAGS="-g"
1252 else
1253 if test "$GCC" = yes; then
1254 CFLAGS="-O2"
1255 else
1256 CFLAGS=
1260 if test "x$CC" != xcc; then
1261 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1262 echo "configure:1263: checking whether $CC and cc understand -c and -o together" >&5
1263 else
1264 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1265 echo "configure:1266: checking whether cc understands -c and -o together" >&5
1267 set dummy $CC; ac_cc="`echo $2 |
1268 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1269 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1270 echo $ac_n "(cached) $ac_c" 1>&6
1271 else
1272 echo 'foo(){}' > conftest.c
1273 # Make sure it works both with $CC and with simple cc.
1274 # We do the test twice because some compilers refuse to overwrite an
1275 # existing .o file with -o, though they will create one.
1276 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1277 if { (eval echo configure:1278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1278 test -f conftest.o && { (eval echo configure:1279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1279 then
1280 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1281 if test "x$CC" != xcc; then
1282 # Test first that cc exists at all.
1283 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1284 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1285 if { (eval echo configure:1286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1286 test -f conftest.o && { (eval echo configure:1287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1287 then
1288 # cc works too.
1290 else
1291 # cc exists but doesn't like -o.
1292 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1296 else
1297 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1299 rm -f conftest*
1302 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1303 echo "$ac_t""yes" 1>&6
1304 else
1305 echo "$ac_t""no" 1>&6
1306 cat >> confdefs.h <<\EOF
1307 #define NO_MINUS_C_MINUS_O 1
1312 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1313 NO_MINUS_C_MINUS_O=yes
1317 echo $ac_n "checking for long double""... $ac_c" 1>&6
1318 echo "configure:1319: checking for long double" >&5
1319 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1320 echo $ac_n "(cached) $ac_c" 1>&6
1321 else
1322 if test "$GCC" = yes; then
1323 gcc_cv_c_long_double=yes
1324 else
1325 cat > conftest.$ac_ext <<EOF
1326 #line 1327 "configure"
1327 #include "confdefs.h"
1329 int main() {
1330 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1331 long double foo = 0.0;
1332 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1333 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1334 ; return 0; }
1336 if { (eval echo configure:1337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1337 rm -rf conftest*
1338 gcc_cv_c_long_double=yes
1339 else
1340 echo "configure: failed program was:" >&5
1341 cat conftest.$ac_ext >&5
1342 rm -rf conftest*
1343 gcc_cv_c_long_double=no
1345 rm -f conftest*
1349 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1350 if test $gcc_cv_c_long_double = yes; then
1351 cat >> confdefs.h <<\EOF
1352 #define HAVE_LONG_DOUBLE 1
1358 echo $ac_n "checking whether ${CC-cc} accepts -Wno-long-long""... $ac_c" 1>&6
1359 echo "configure:1360: checking whether ${CC-cc} accepts -Wno-long-long" >&5
1360 echo 'void f(){}' > conftest.c
1361 if test -z "`${CC-cc} -Wno-long-long -c conftest.c 2>&1`"; then
1362 ac_cv_prog_cc_no_long_long=yes
1363 else
1364 ac_cv_prog_cc_no_long_long=no
1366 rm -f conftest*
1367 echo "$ac_t"$ac_cv_prog_cc_no_long_long 1>&6
1369 # If the native compiler is GCC, we can enable warnings even in stage1.
1370 # That's useful for people building cross-compilers, or just running a
1371 # quick `make'.
1372 stage1_warn_cflags=" -W -Wall -Wtraditional -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes"
1373 stage2_warn_cflags="$stage1_warn_cflags -pedantic -Wno-long-long"
1374 if test "x$GCC" = "xyes"; then
1375 if test $ac_cv_prog_cc_no_long_long = yes; then
1376 stage1_warn_cflags="$stage1_warn_cflags -pedantic -Wno-long-long"
1378 else
1379 stage1_warn_cflags=""
1384 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1385 echo "configure:1386: checking whether ${MAKE-make} sets \${MAKE}" >&5
1386 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1387 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1388 echo $ac_n "(cached) $ac_c" 1>&6
1389 else
1390 cat > conftestmake <<\EOF
1391 all:
1392 @echo 'ac_maketemp="${MAKE}"'
1394 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1395 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1396 if test -n "$ac_maketemp"; then
1397 eval ac_cv_prog_make_${ac_make}_set=yes
1398 else
1399 eval ac_cv_prog_make_${ac_make}_set=no
1401 rm -f conftestmake
1403 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1404 echo "$ac_t""yes" 1>&6
1405 SET_MAKE=
1406 else
1407 echo "$ac_t""no" 1>&6
1408 SET_MAKE="MAKE=${MAKE-make}"
1412 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1413 echo "configure:1414: checking whether a default assembler was specified" >&5
1414 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1415 if test x"$gas_flag" = x"no"; then
1416 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1417 else
1418 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1420 else
1421 echo "$ac_t""no" 1>&6
1424 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1425 echo "configure:1426: checking whether a default linker was specified" >&5
1426 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1427 if test x"$gnu_ld_flag" = x"no"; then
1428 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1429 else
1430 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1432 else
1433 echo "$ac_t""no" 1>&6
1436 echo $ac_n "checking for inline""... $ac_c" 1>&6
1437 echo "configure:1438: checking for inline" >&5
1438 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1439 echo $ac_n "(cached) $ac_c" 1>&6
1440 else
1441 ac_cv_c_inline=no
1442 for ac_kw in inline __inline__ __inline; do
1443 cat > conftest.$ac_ext <<EOF
1444 #line 1445 "configure"
1445 #include "confdefs.h"
1447 int main() {
1448 } $ac_kw foo() {
1449 ; return 0; }
1451 if { (eval echo configure:1452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1452 rm -rf conftest*
1453 ac_cv_c_inline=$ac_kw; break
1454 else
1455 echo "configure: failed program was:" >&5
1456 cat conftest.$ac_ext >&5
1458 rm -f conftest*
1459 done
1463 echo "$ac_t""$ac_cv_c_inline" 1>&6
1464 case "$ac_cv_c_inline" in
1465 inline | yes) ;;
1466 no) cat >> confdefs.h <<\EOF
1467 #define inline
1470 *) cat >> confdefs.h <<EOF
1471 #define inline $ac_cv_c_inline
1474 esac
1477 # Find some useful tools
1478 for ac_prog in mawk gawk nawk awk
1480 # Extract the first word of "$ac_prog", so it can be a program name with args.
1481 set dummy $ac_prog; ac_word=$2
1482 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1483 echo "configure:1484: checking for $ac_word" >&5
1484 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1485 echo $ac_n "(cached) $ac_c" 1>&6
1486 else
1487 if test -n "$AWK"; then
1488 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1489 else
1490 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1491 ac_dummy="$PATH"
1492 for ac_dir in $ac_dummy; do
1493 test -z "$ac_dir" && ac_dir=.
1494 if test -f $ac_dir/$ac_word; then
1495 ac_cv_prog_AWK="$ac_prog"
1496 break
1498 done
1499 IFS="$ac_save_ifs"
1502 AWK="$ac_cv_prog_AWK"
1503 if test -n "$AWK"; then
1504 echo "$ac_t""$AWK" 1>&6
1505 else
1506 echo "$ac_t""no" 1>&6
1509 test -n "$AWK" && break
1510 done
1512 # Extract the first word of "flex", so it can be a program name with args.
1513 set dummy flex; ac_word=$2
1514 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1515 echo "configure:1516: checking for $ac_word" >&5
1516 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1517 echo $ac_n "(cached) $ac_c" 1>&6
1518 else
1519 if test -n "$LEX"; then
1520 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1521 else
1522 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1523 ac_dummy="$PATH"
1524 for ac_dir in $ac_dummy; do
1525 test -z "$ac_dir" && ac_dir=.
1526 if test -f $ac_dir/$ac_word; then
1527 ac_cv_prog_LEX="flex"
1528 break
1530 done
1531 IFS="$ac_save_ifs"
1532 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1535 LEX="$ac_cv_prog_LEX"
1536 if test -n "$LEX"; then
1537 echo "$ac_t""$LEX" 1>&6
1538 else
1539 echo "$ac_t""no" 1>&6
1542 if test -z "$LEXLIB"
1543 then
1544 case "$LEX" in
1545 flex*) ac_lib=fl ;;
1546 *) ac_lib=l ;;
1547 esac
1548 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1549 echo "configure:1550: checking for yywrap in -l$ac_lib" >&5
1550 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1551 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1552 echo $ac_n "(cached) $ac_c" 1>&6
1553 else
1554 ac_save_LIBS="$LIBS"
1555 LIBS="-l$ac_lib $LIBS"
1556 cat > conftest.$ac_ext <<EOF
1557 #line 1558 "configure"
1558 #include "confdefs.h"
1559 /* Override any gcc2 internal prototype to avoid an error. */
1560 /* We use char because int might match the return type of a gcc2
1561 builtin and then its argument prototype would still apply. */
1562 char yywrap();
1564 int main() {
1565 yywrap()
1566 ; return 0; }
1568 if { (eval echo configure:1569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1569 rm -rf conftest*
1570 eval "ac_cv_lib_$ac_lib_var=yes"
1571 else
1572 echo "configure: failed program was:" >&5
1573 cat conftest.$ac_ext >&5
1574 rm -rf conftest*
1575 eval "ac_cv_lib_$ac_lib_var=no"
1577 rm -f conftest*
1578 LIBS="$ac_save_LIBS"
1581 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1582 echo "$ac_t""yes" 1>&6
1583 LEXLIB="-l$ac_lib"
1584 else
1585 echo "$ac_t""no" 1>&6
1590 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1591 echo "configure:1592: checking whether ln works" >&5
1592 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1593 echo $ac_n "(cached) $ac_c" 1>&6
1594 else
1595 rm -f conftestdata_t
1596 echo >conftestdata_f
1597 if ln conftestdata_f conftestdata_t 2>/dev/null
1598 then
1599 gcc_cv_prog_LN="ln"
1600 else
1601 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1602 then
1603 gcc_cv_prog_LN="ln -s"
1604 else
1605 gcc_cv_prog_LN=cp
1608 rm -f conftestdata_f conftestdata_t
1611 LN="$gcc_cv_prog_LN"
1612 if test "$gcc_cv_prog_LN" = "ln"; then
1613 echo "$ac_t""yes" 1>&6
1614 else
1615 if test "$gcc_cv_prog_LN" = "ln -s"; then
1616 echo "$ac_t""no, using ln -s" 1>&6
1617 else
1618 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1622 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1623 echo "configure:1624: checking whether ln -s works" >&5
1624 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1625 echo $ac_n "(cached) $ac_c" 1>&6
1626 else
1627 rm -f conftestdata_t
1628 echo >conftestdata_f
1629 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1630 then
1631 gcc_cv_prog_LN_S="ln -s"
1632 else
1633 if ln conftestdata_f conftestdata_t 2>/dev/null
1634 then
1635 gcc_cv_prog_LN_S=ln
1636 else
1637 gcc_cv_prog_LN_S=cp
1640 rm -f conftestdata_f conftestdata_t
1643 LN_S="$gcc_cv_prog_LN_S"
1644 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1645 echo "$ac_t""yes" 1>&6
1646 else
1647 if test "$gcc_cv_prog_LN_S" = "ln"; then
1648 echo "$ac_t""no, using ln" 1>&6
1649 else
1650 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1654 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1655 echo "configure:1656: checking for volatile" >&5
1656 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1657 echo $ac_n "(cached) $ac_c" 1>&6
1658 else
1659 cat > conftest.$ac_ext <<EOF
1660 #line 1661 "configure"
1661 #include "confdefs.h"
1663 int main() {
1664 volatile int foo;
1665 ; return 0; }
1667 if { (eval echo configure:1668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1668 rm -rf conftest*
1669 gcc_cv_c_volatile=yes
1670 else
1671 echo "configure: failed program was:" >&5
1672 cat conftest.$ac_ext >&5
1673 rm -rf conftest*
1674 gcc_cv_c_volatile=no
1676 rm -f conftest*
1679 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1680 if test $gcc_cv_c_volatile = yes ; then
1681 cat >> confdefs.h <<\EOF
1682 #define HAVE_VOLATILE 1
1687 # Extract the first word of "ranlib", so it can be a program name with args.
1688 set dummy ranlib; ac_word=$2
1689 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1690 echo "configure:1691: checking for $ac_word" >&5
1691 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1692 echo $ac_n "(cached) $ac_c" 1>&6
1693 else
1694 if test -n "$RANLIB"; then
1695 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1696 else
1697 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1698 ac_dummy="$PATH"
1699 for ac_dir in $ac_dummy; do
1700 test -z "$ac_dir" && ac_dir=.
1701 if test -f $ac_dir/$ac_word; then
1702 ac_cv_prog_RANLIB="ranlib"
1703 break
1705 done
1706 IFS="$ac_save_ifs"
1707 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1710 RANLIB="$ac_cv_prog_RANLIB"
1711 if test -n "$RANLIB"; then
1712 echo "$ac_t""$RANLIB" 1>&6
1713 else
1714 echo "$ac_t""no" 1>&6
1717 for ac_prog in 'bison -y' byacc
1719 # Extract the first word of "$ac_prog", so it can be a program name with args.
1720 set dummy $ac_prog; ac_word=$2
1721 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1722 echo "configure:1723: checking for $ac_word" >&5
1723 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1724 echo $ac_n "(cached) $ac_c" 1>&6
1725 else
1726 if test -n "$YACC"; then
1727 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1728 else
1729 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1730 ac_dummy="$PATH"
1731 for ac_dir in $ac_dummy; do
1732 test -z "$ac_dir" && ac_dir=.
1733 if test -f $ac_dir/$ac_word; then
1734 ac_cv_prog_YACC="$ac_prog"
1735 break
1737 done
1738 IFS="$ac_save_ifs"
1741 YACC="$ac_cv_prog_YACC"
1742 if test -n "$YACC"; then
1743 echo "$ac_t""$YACC" 1>&6
1744 else
1745 echo "$ac_t""no" 1>&6
1748 test -n "$YACC" && break
1749 done
1750 test -n "$YACC" || YACC="yacc"
1752 # Find a good install program. We prefer a C program (faster),
1753 # so one script is as good as another. But avoid the broken or
1754 # incompatible versions:
1755 # SysV /etc/install, /usr/sbin/install
1756 # SunOS /usr/etc/install
1757 # IRIX /sbin/install
1758 # AIX /bin/install
1759 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1760 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1761 # ./install, which can be erroneously created by make from ./install.sh.
1762 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1763 echo "configure:1764: checking for a BSD compatible install" >&5
1764 if test -z "$INSTALL"; then
1765 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1766 echo $ac_n "(cached) $ac_c" 1>&6
1767 else
1768 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1769 for ac_dir in $PATH; do
1770 # Account for people who put trailing slashes in PATH elements.
1771 case "$ac_dir/" in
1772 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1774 # OSF1 and SCO ODT 3.0 have their own names for install.
1775 for ac_prog in ginstall scoinst install; do
1776 if test -f $ac_dir/$ac_prog; then
1777 if test $ac_prog = install &&
1778 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1779 # AIX install. It has an incompatible calling convention.
1780 # OSF/1 installbsd also uses dspmsg, but is usable.
1782 else
1783 ac_cv_path_install="$ac_dir/$ac_prog -c"
1784 break 2
1787 done
1789 esac
1790 done
1791 IFS="$ac_save_IFS"
1794 if test "${ac_cv_path_install+set}" = set; then
1795 INSTALL="$ac_cv_path_install"
1796 else
1797 # As a last resort, use the slow shell script. We don't cache a
1798 # path for INSTALL within a source directory, because that will
1799 # break other packages using the cache if that directory is
1800 # removed, or if the path is relative.
1801 INSTALL="$ac_install_sh"
1804 echo "$ac_t""$INSTALL" 1>&6
1806 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1807 # It thinks the first close brace ends the variable substitution.
1808 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1810 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1813 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1814 echo "configure:1815: checking how to run the C preprocessor" >&5
1815 # On Suns, sometimes $CPP names a directory.
1816 if test -n "$CPP" && test -d "$CPP"; then
1817 CPP=
1819 if test -z "$CPP"; then
1820 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1821 echo $ac_n "(cached) $ac_c" 1>&6
1822 else
1823 # This must be in double quotes, not single quotes, because CPP may get
1824 # substituted into the Makefile and "${CC-cc}" will confuse make.
1825 CPP="${CC-cc} -E"
1826 # On the NeXT, cc -E runs the code through the compiler's parser,
1827 # not just through cpp.
1828 cat > conftest.$ac_ext <<EOF
1829 #line 1830 "configure"
1830 #include "confdefs.h"
1831 #include <assert.h>
1832 Syntax Error
1834 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1835 { (eval echo configure:1836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1836 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1837 if test -z "$ac_err"; then
1839 else
1840 echo "$ac_err" >&5
1841 echo "configure: failed program was:" >&5
1842 cat conftest.$ac_ext >&5
1843 rm -rf conftest*
1844 CPP="${CC-cc} -E -traditional-cpp"
1845 cat > conftest.$ac_ext <<EOF
1846 #line 1847 "configure"
1847 #include "confdefs.h"
1848 #include <assert.h>
1849 Syntax Error
1851 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1852 { (eval echo configure:1853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1853 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1854 if test -z "$ac_err"; then
1856 else
1857 echo "$ac_err" >&5
1858 echo "configure: failed program was:" >&5
1859 cat conftest.$ac_ext >&5
1860 rm -rf conftest*
1861 CPP="${CC-cc} -nologo -E"
1862 cat > conftest.$ac_ext <<EOF
1863 #line 1864 "configure"
1864 #include "confdefs.h"
1865 #include <assert.h>
1866 Syntax Error
1868 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1869 { (eval echo configure:1870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1870 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1871 if test -z "$ac_err"; then
1873 else
1874 echo "$ac_err" >&5
1875 echo "configure: failed program was:" >&5
1876 cat conftest.$ac_ext >&5
1877 rm -rf conftest*
1878 CPP=/lib/cpp
1880 rm -f conftest*
1882 rm -f conftest*
1884 rm -f conftest*
1885 ac_cv_prog_CPP="$CPP"
1887 CPP="$ac_cv_prog_CPP"
1888 else
1889 ac_cv_prog_CPP="$CPP"
1891 echo "$ac_t""$CPP" 1>&6
1893 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1894 echo "configure:1895: checking for ANSI C header files" >&5
1895 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1896 echo $ac_n "(cached) $ac_c" 1>&6
1897 else
1898 cat > conftest.$ac_ext <<EOF
1899 #line 1900 "configure"
1900 #include "confdefs.h"
1901 #include <stdlib.h>
1902 #include <stdarg.h>
1903 #include <string.h>
1904 #include <float.h>
1906 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1907 { (eval echo configure:1908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1908 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1909 if test -z "$ac_err"; then
1910 rm -rf conftest*
1911 ac_cv_header_stdc=yes
1912 else
1913 echo "$ac_err" >&5
1914 echo "configure: failed program was:" >&5
1915 cat conftest.$ac_ext >&5
1916 rm -rf conftest*
1917 ac_cv_header_stdc=no
1919 rm -f conftest*
1921 if test $ac_cv_header_stdc = yes; then
1922 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1923 cat > conftest.$ac_ext <<EOF
1924 #line 1925 "configure"
1925 #include "confdefs.h"
1926 #include <string.h>
1928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1929 egrep "memchr" >/dev/null 2>&1; then
1931 else
1932 rm -rf conftest*
1933 ac_cv_header_stdc=no
1935 rm -f conftest*
1939 if test $ac_cv_header_stdc = yes; then
1940 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1941 cat > conftest.$ac_ext <<EOF
1942 #line 1943 "configure"
1943 #include "confdefs.h"
1944 #include <stdlib.h>
1946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1947 egrep "free" >/dev/null 2>&1; then
1949 else
1950 rm -rf conftest*
1951 ac_cv_header_stdc=no
1953 rm -f conftest*
1957 if test $ac_cv_header_stdc = yes; then
1958 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1959 if test "$cross_compiling" = yes; then
1961 else
1962 cat > conftest.$ac_ext <<EOF
1963 #line 1964 "configure"
1964 #include "confdefs.h"
1965 #include <ctype.h>
1966 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1967 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1968 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1969 int main () { int i; for (i = 0; i < 256; i++)
1970 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1971 exit (0); }
1974 if { (eval echo configure:1975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1975 then
1977 else
1978 echo "configure: failed program was:" >&5
1979 cat conftest.$ac_ext >&5
1980 rm -fr conftest*
1981 ac_cv_header_stdc=no
1983 rm -fr conftest*
1989 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1990 if test $ac_cv_header_stdc = yes; then
1991 cat >> confdefs.h <<\EOF
1992 #define STDC_HEADERS 1
1997 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1998 echo "configure:1999: checking whether time.h and sys/time.h may both be included" >&5
1999 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2000 echo $ac_n "(cached) $ac_c" 1>&6
2001 else
2002 cat > conftest.$ac_ext <<EOF
2003 #line 2004 "configure"
2004 #include "confdefs.h"
2005 #include <sys/types.h>
2006 #include <sys/time.h>
2007 #include <time.h>
2008 int main() {
2009 struct tm *tp;
2010 ; return 0; }
2012 if { (eval echo configure:2013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2013 rm -rf conftest*
2014 ac_cv_header_time=yes
2015 else
2016 echo "configure: failed program was:" >&5
2017 cat conftest.$ac_ext >&5
2018 rm -rf conftest*
2019 ac_cv_header_time=no
2021 rm -f conftest*
2024 echo "$ac_t""$ac_cv_header_time" 1>&6
2025 if test $ac_cv_header_time = yes; then
2026 cat >> confdefs.h <<\EOF
2027 #define TIME_WITH_SYS_TIME 1
2032 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
2033 echo "configure:2034: checking whether string.h and strings.h may both be included" >&5
2034 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
2035 echo $ac_n "(cached) $ac_c" 1>&6
2036 else
2037 cat > conftest.$ac_ext <<EOF
2038 #line 2039 "configure"
2039 #include "confdefs.h"
2040 #include <string.h>
2041 #include <strings.h>
2042 int main() {
2044 ; return 0; }
2046 if { (eval echo configure:2047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2047 rm -rf conftest*
2048 gcc_cv_header_string=yes
2049 else
2050 echo "configure: failed program was:" >&5
2051 cat conftest.$ac_ext >&5
2052 rm -rf conftest*
2053 gcc_cv_header_string=no
2055 rm -f conftest*
2058 echo "$ac_t""$gcc_cv_header_string" 1>&6
2059 if test $gcc_cv_header_string = yes; then
2060 cat >> confdefs.h <<\EOF
2061 #define STRING_WITH_STRINGS 1
2066 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2067 echo "configure:2068: checking for sys/wait.h that is POSIX.1 compatible" >&5
2068 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2069 echo $ac_n "(cached) $ac_c" 1>&6
2070 else
2071 cat > conftest.$ac_ext <<EOF
2072 #line 2073 "configure"
2073 #include "confdefs.h"
2074 #include <sys/types.h>
2075 #include <sys/wait.h>
2076 #ifndef WEXITSTATUS
2077 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2078 #endif
2079 #ifndef WIFEXITED
2080 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2081 #endif
2082 int main() {
2083 int s;
2084 wait (&s);
2085 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2086 ; return 0; }
2088 if { (eval echo configure:2089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2089 rm -rf conftest*
2090 ac_cv_header_sys_wait_h=yes
2091 else
2092 echo "configure: failed program was:" >&5
2093 cat conftest.$ac_ext >&5
2094 rm -rf conftest*
2095 ac_cv_header_sys_wait_h=no
2097 rm -f conftest*
2100 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2101 if test $ac_cv_header_sys_wait_h = yes; then
2102 cat >> confdefs.h <<\EOF
2103 #define HAVE_SYS_WAIT_H 1
2108 for ac_hdr in limits.h stddef.h string.h strings.h stdlib.h time.h \
2109 fcntl.h unistd.h stab.h sys/file.h sys/time.h \
2110 sys/resource.h sys/param.h sys/times.h sys/stat.h \
2111 direct.h malloc.h
2113 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2114 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2115 echo "configure:2116: checking for $ac_hdr" >&5
2116 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2117 echo $ac_n "(cached) $ac_c" 1>&6
2118 else
2119 cat > conftest.$ac_ext <<EOF
2120 #line 2121 "configure"
2121 #include "confdefs.h"
2122 #include <$ac_hdr>
2124 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2125 { (eval echo configure:2126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2126 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2127 if test -z "$ac_err"; then
2128 rm -rf conftest*
2129 eval "ac_cv_header_$ac_safe=yes"
2130 else
2131 echo "$ac_err" >&5
2132 echo "configure: failed program was:" >&5
2133 cat conftest.$ac_ext >&5
2134 rm -rf conftest*
2135 eval "ac_cv_header_$ac_safe=no"
2137 rm -f conftest*
2139 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2140 echo "$ac_t""yes" 1>&6
2141 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2142 cat >> confdefs.h <<EOF
2143 #define $ac_tr_hdr 1
2146 else
2147 echo "$ac_t""no" 1>&6
2149 done
2152 # Check for thread headers.
2153 ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'`
2154 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2155 echo "configure:2156: checking for thread.h" >&5
2156 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2157 echo $ac_n "(cached) $ac_c" 1>&6
2158 else
2159 cat > conftest.$ac_ext <<EOF
2160 #line 2161 "configure"
2161 #include "confdefs.h"
2162 #include <thread.h>
2164 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2165 { (eval echo configure:2166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2166 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2167 if test -z "$ac_err"; then
2168 rm -rf conftest*
2169 eval "ac_cv_header_$ac_safe=yes"
2170 else
2171 echo "$ac_err" >&5
2172 echo "configure: failed program was:" >&5
2173 cat conftest.$ac_ext >&5
2174 rm -rf conftest*
2175 eval "ac_cv_header_$ac_safe=no"
2177 rm -f conftest*
2179 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2180 echo "$ac_t""yes" 1>&6
2181 have_thread_h=yes
2182 else
2183 echo "$ac_t""no" 1>&6
2184 have_thread_h=
2187 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2188 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2189 echo "configure:2190: checking for pthread.h" >&5
2190 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2191 echo $ac_n "(cached) $ac_c" 1>&6
2192 else
2193 cat > conftest.$ac_ext <<EOF
2194 #line 2195 "configure"
2195 #include "confdefs.h"
2196 #include <pthread.h>
2198 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2199 { (eval echo configure:2200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2200 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2201 if test -z "$ac_err"; then
2202 rm -rf conftest*
2203 eval "ac_cv_header_$ac_safe=yes"
2204 else
2205 echo "$ac_err" >&5
2206 echo "configure: failed program was:" >&5
2207 cat conftest.$ac_ext >&5
2208 rm -rf conftest*
2209 eval "ac_cv_header_$ac_safe=no"
2211 rm -f conftest*
2213 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2214 echo "$ac_t""yes" 1>&6
2215 have_pthread_h=yes
2216 else
2217 echo "$ac_t""no" 1>&6
2218 have_pthread_h=
2222 # See if GNAT has been installed
2223 # Extract the first word of "gnatbind", so it can be a program name with args.
2224 set dummy gnatbind; ac_word=$2
2225 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2226 echo "configure:2227: checking for $ac_word" >&5
2227 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2228 echo $ac_n "(cached) $ac_c" 1>&6
2229 else
2230 if test -n "$gnat"; then
2231 ac_cv_prog_gnat="$gnat" # Let the user override the test.
2232 else
2233 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2234 ac_dummy="$PATH"
2235 for ac_dir in $ac_dummy; do
2236 test -z "$ac_dir" && ac_dir=.
2237 if test -f $ac_dir/$ac_word; then
2238 ac_cv_prog_gnat="yes"
2239 break
2241 done
2242 IFS="$ac_save_ifs"
2243 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat="no"
2246 gnat="$ac_cv_prog_gnat"
2247 if test -n "$gnat"; then
2248 echo "$ac_t""$gnat" 1>&6
2249 else
2250 echo "$ac_t""no" 1>&6
2254 # Do we have a single-tree copy of texinfo?
2255 if test -f $srcdir/../texinfo/Makefile.in; then
2256 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
2257 gcc_cv_prog_makeinfo_modern=yes
2258 echo "$ac_t""Using makeinfo from the unified source tree." 1>&6
2259 else
2260 # See if makeinfo has been installed and is modern enough
2261 # that we can use it.
2262 # Extract the first word of "makeinfo", so it can be a program name with args.
2263 set dummy makeinfo; ac_word=$2
2264 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2265 echo "configure:2266: checking for $ac_word" >&5
2266 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2267 echo $ac_n "(cached) $ac_c" 1>&6
2268 else
2269 if test -n "$MAKEINFO"; then
2270 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2271 else
2272 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2273 ac_dummy="$PATH"
2274 for ac_dir in $ac_dummy; do
2275 test -z "$ac_dir" && ac_dir=.
2276 if test -f $ac_dir/$ac_word; then
2277 ac_cv_prog_MAKEINFO="makeinfo"
2278 break
2280 done
2281 IFS="$ac_save_ifs"
2284 MAKEINFO="$ac_cv_prog_MAKEINFO"
2285 if test -n "$MAKEINFO"; then
2286 echo "$ac_t""$MAKEINFO" 1>&6
2287 else
2288 echo "$ac_t""no" 1>&6
2291 if test -n "$MAKEINFO"; then
2292 # Found it, now check the version.
2293 echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6
2294 echo "configure:2295: checking for modern makeinfo" >&5
2295 if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then
2296 echo $ac_n "(cached) $ac_c" 1>&6
2297 else
2298 ac_prog_version=`$MAKEINFO --version 2>&1 |
2299 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
2300 echo "configure:2301: version of makeinfo is $ac_prog_version" >&5
2301 case $ac_prog_version in
2302 '') gcc_cv_prog_makeinfo_modern=no;;
2303 3.1[2-9] | 3.[2-9][0-9] | 4.* | 1.6[89] | 1.7[0-9])
2304 gcc_cv_prog_makeinfo_modern=yes;;
2305 *) gcc_cv_prog_makeinfo_modern=no;;
2306 esac
2310 echo "$ac_t""$gcc_cv_prog_makeinfo_modern" 1>&6
2311 else
2312 gcc_cv_prog_makeinfo_modern=no
2317 if test $gcc_cv_prog_makeinfo_modern = no; then
2318 echo "configure: warning:
2319 *** Makeinfo is missing or too old.
2320 *** Info documentation will not be built or installed." 1>&2
2321 BUILD_INFO=
2322 INSTALL_INFO=
2323 else
2324 BUILD_INFO=info
2325 INSTALL_INFO=install-info
2328 # See if the stage1 system preprocessor understands the ANSI C
2329 # preprocessor stringification operator.
2332 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
2333 echo "configure:2334: checking for preprocessor stringizing operator" >&5
2334 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
2335 echo $ac_n "(cached) $ac_c" 1>&6
2336 else
2337 cat > conftest.$ac_ext <<EOF
2338 #line 2339 "configure"
2339 #include "confdefs.h"
2341 #define x(y) #y
2343 char *s = x(teststring);
2346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2347 egrep "#teststring" >/dev/null 2>&1; then
2348 rm -rf conftest*
2349 ac_cv_c_stringize=no
2350 else
2351 rm -rf conftest*
2352 ac_cv_c_stringize=yes
2354 rm -f conftest*
2358 if test "${ac_cv_c_stringize}" = yes
2359 then
2360 cat >> confdefs.h <<\EOF
2361 #define HAVE_STRINGIZE 1
2365 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
2368 # Use <inttypes.h> only if it exists,
2369 # doesn't clash with <sys/types.h>, and declares intmax_t.
2370 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2371 echo "configure:2372: checking for inttypes.h" >&5
2372 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2373 echo $ac_n "(cached) $ac_c" 1>&6
2374 else
2375 cat > conftest.$ac_ext <<EOF
2376 #line 2377 "configure"
2377 #include "confdefs.h"
2378 #include <sys/types.h>
2379 #include <inttypes.h>
2380 int main() {
2381 intmax_t i = -1;
2382 ; return 0; }
2384 if { (eval echo configure:2385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2385 rm -rf conftest*
2386 gcc_cv_header_inttypes_h=yes
2387 else
2388 echo "configure: failed program was:" >&5
2389 cat conftest.$ac_ext >&5
2390 rm -rf conftest*
2391 gcc_cv_header_inttypes_h=no
2393 rm -f conftest*
2396 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2397 if test $gcc_cv_header_inttypes_h = yes; then
2398 cat >> confdefs.h <<\EOF
2399 #define HAVE_INTTYPES_H 1
2405 # Determine if enumerated bitfields are unsigned. ISO C says they can
2406 # be either signed or unsigned.
2408 echo $ac_n "checking for unsigned enumerated bitfields""... $ac_c" 1>&6
2409 echo "configure:2410: checking for unsigned enumerated bitfields" >&5
2410 if eval "test \"`echo '$''{'gcc_cv_enum_bf_unsigned'+set}'`\" = set"; then
2411 echo $ac_n "(cached) $ac_c" 1>&6
2412 else
2413 if test "$cross_compiling" = yes; then
2414 gcc_cv_enum_bf_unsigned=yes
2415 else
2416 cat > conftest.$ac_ext <<EOF
2417 #line 2418 "configure"
2418 #include "confdefs.h"
2419 #include <stdlib.h>
2420 enum t { BLAH = 128 } ;
2421 struct s_t { enum t member : 8; } s ;
2422 int main(void)
2424 s.member = BLAH;
2425 if (s.member < 0) exit(1);
2426 exit(0);
2430 if { (eval echo configure:2431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2431 then
2432 gcc_cv_enum_bf_unsigned=yes
2433 else
2434 echo "configure: failed program was:" >&5
2435 cat conftest.$ac_ext >&5
2436 rm -fr conftest*
2437 gcc_cv_enum_bf_unsigned=no
2439 rm -fr conftest*
2444 echo "$ac_t""$gcc_cv_enum_bf_unsigned" 1>&6
2445 if test $gcc_cv_enum_bf_unsigned = yes; then
2446 cat >> confdefs.h <<\EOF
2447 #define ENUM_BITFIELDS_ARE_UNSIGNED 1
2452 for ac_func in strtoul bsearch putenv popen bcopy bzero bcmp \
2453 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
2454 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2455 fputs_unlocked getrusage valloc
2457 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2458 echo "configure:2459: checking for $ac_func" >&5
2459 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2460 echo $ac_n "(cached) $ac_c" 1>&6
2461 else
2462 cat > conftest.$ac_ext <<EOF
2463 #line 2464 "configure"
2464 #include "confdefs.h"
2465 /* System header to define __stub macros and hopefully few prototypes,
2466 which can conflict with char $ac_func(); below. */
2467 #include <assert.h>
2468 /* Override any gcc2 internal prototype to avoid an error. */
2469 /* We use char because int might match the return type of a gcc2
2470 builtin and then its argument prototype would still apply. */
2471 char $ac_func();
2473 int main() {
2475 /* The GNU C library defines this for functions which it implements
2476 to always fail with ENOSYS. Some functions are actually named
2477 something starting with __ and the normal name is an alias. */
2478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2479 choke me
2480 #else
2481 $ac_func();
2482 #endif
2484 ; return 0; }
2486 if { (eval echo configure:2487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2487 rm -rf conftest*
2488 eval "ac_cv_func_$ac_func=yes"
2489 else
2490 echo "configure: failed program was:" >&5
2491 cat conftest.$ac_ext >&5
2492 rm -rf conftest*
2493 eval "ac_cv_func_$ac_func=no"
2495 rm -f conftest*
2498 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2499 echo "$ac_t""yes" 1>&6
2500 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2501 cat >> confdefs.h <<EOF
2502 #define $ac_tr_func 1
2505 else
2506 echo "$ac_t""no" 1>&6
2508 done
2511 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
2512 echo "configure:2513: checking for ssize_t" >&5
2513 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
2514 echo $ac_n "(cached) $ac_c" 1>&6
2515 else
2516 cat > conftest.$ac_ext <<EOF
2517 #line 2518 "configure"
2518 #include "confdefs.h"
2519 #include <sys/types.h>
2520 #if STDC_HEADERS
2521 #include <stdlib.h>
2522 #include <stddef.h>
2523 #endif
2525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2526 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2527 rm -rf conftest*
2528 ac_cv_type_ssize_t=yes
2529 else
2530 rm -rf conftest*
2531 ac_cv_type_ssize_t=no
2533 rm -f conftest*
2536 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2537 if test $ac_cv_type_ssize_t = no; then
2538 cat >> confdefs.h <<\EOF
2539 #define ssize_t int
2545 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2546 echo "configure:2547: checking for vprintf" >&5
2547 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2548 echo $ac_n "(cached) $ac_c" 1>&6
2549 else
2550 cat > conftest.$ac_ext <<EOF
2551 #line 2552 "configure"
2552 #include "confdefs.h"
2553 /* System header to define __stub macros and hopefully few prototypes,
2554 which can conflict with char vprintf(); below. */
2555 #include <assert.h>
2556 /* Override any gcc2 internal prototype to avoid an error. */
2557 /* We use char because int might match the return type of a gcc2
2558 builtin and then its argument prototype would still apply. */
2559 char vprintf();
2561 int main() {
2563 /* The GNU C library defines this for functions which it implements
2564 to always fail with ENOSYS. Some functions are actually named
2565 something starting with __ and the normal name is an alias. */
2566 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2567 choke me
2568 #else
2569 vprintf();
2570 #endif
2572 ; return 0; }
2574 if { (eval echo configure:2575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2575 rm -rf conftest*
2576 eval "ac_cv_func_vprintf=yes"
2577 else
2578 echo "configure: failed program was:" >&5
2579 cat conftest.$ac_ext >&5
2580 rm -rf conftest*
2581 eval "ac_cv_func_vprintf=no"
2583 rm -f conftest*
2586 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2587 echo "$ac_t""yes" 1>&6
2588 cat >> confdefs.h <<\EOF
2589 #define HAVE_VPRINTF 1
2592 else
2593 echo "$ac_t""no" 1>&6
2596 if test "$ac_cv_func_vprintf" != yes; then
2597 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2598 echo "configure:2599: checking for _doprnt" >&5
2599 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2600 echo $ac_n "(cached) $ac_c" 1>&6
2601 else
2602 cat > conftest.$ac_ext <<EOF
2603 #line 2604 "configure"
2604 #include "confdefs.h"
2605 /* System header to define __stub macros and hopefully few prototypes,
2606 which can conflict with char _doprnt(); below. */
2607 #include <assert.h>
2608 /* Override any gcc2 internal prototype to avoid an error. */
2609 /* We use char because int might match the return type of a gcc2
2610 builtin and then its argument prototype would still apply. */
2611 char _doprnt();
2613 int main() {
2615 /* The GNU C library defines this for functions which it implements
2616 to always fail with ENOSYS. Some functions are actually named
2617 something starting with __ and the normal name is an alias. */
2618 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2619 choke me
2620 #else
2621 _doprnt();
2622 #endif
2624 ; return 0; }
2626 if { (eval echo configure:2627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2627 rm -rf conftest*
2628 eval "ac_cv_func__doprnt=yes"
2629 else
2630 echo "configure: failed program was:" >&5
2631 cat conftest.$ac_ext >&5
2632 rm -rf conftest*
2633 eval "ac_cv_func__doprnt=no"
2635 rm -f conftest*
2638 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2639 echo "$ac_t""yes" 1>&6
2640 cat >> confdefs.h <<\EOF
2641 #define HAVE_DOPRNT 1
2644 else
2645 echo "$ac_t""no" 1>&6
2650 vfprintf=
2651 doprint=
2652 if test $ac_cv_func_vprintf != yes ; then
2653 vfprintf=vfprintf.o
2654 if test $ac_cv_func__doprnt != yes ; then
2655 doprint=doprint.o
2661 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2662 echo "configure:2663: checking whether the printf functions support %p" >&5
2663 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2664 echo $ac_n "(cached) $ac_c" 1>&6
2665 else
2666 if test "$cross_compiling" = yes; then
2667 gcc_cv_func_printf_ptr=no
2668 else
2669 cat > conftest.$ac_ext <<EOF
2670 #line 2671 "configure"
2671 #include "confdefs.h"
2672 #include <stdio.h>
2674 int main()
2676 char buf[64];
2677 char *p = buf, *q = NULL;
2678 sprintf(buf, "%p", p);
2679 sscanf(buf, "%p", &q);
2680 return (p != q);
2683 if { (eval echo configure:2684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2684 then
2685 gcc_cv_func_printf_ptr=yes
2686 else
2687 echo "configure: failed program was:" >&5
2688 cat conftest.$ac_ext >&5
2689 rm -fr conftest*
2690 gcc_cv_func_printf_ptr=no
2692 rm -fr conftest*
2695 rm -f core core.* *.core
2698 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2699 if test $gcc_cv_func_printf_ptr = yes ; then
2700 cat >> confdefs.h <<\EOF
2701 #define HAVE_PRINTF_PTR 1
2707 case "${host}" in
2708 *-*-uwin*)
2709 # Under some versions of uwin, vfork is notoriously buggy and the test
2710 # can hang configure; on other versions, vfork exists just as a stub.
2711 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2712 ac_cv_func_vfork_works=no
2714 esac
2715 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2716 echo "configure:2717: checking for pid_t" >&5
2717 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2718 echo $ac_n "(cached) $ac_c" 1>&6
2719 else
2720 cat > conftest.$ac_ext <<EOF
2721 #line 2722 "configure"
2722 #include "confdefs.h"
2723 #include <sys/types.h>
2724 #if STDC_HEADERS
2725 #include <stdlib.h>
2726 #include <stddef.h>
2727 #endif
2729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2730 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2731 rm -rf conftest*
2732 ac_cv_type_pid_t=yes
2733 else
2734 rm -rf conftest*
2735 ac_cv_type_pid_t=no
2737 rm -f conftest*
2740 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2741 if test $ac_cv_type_pid_t = no; then
2742 cat >> confdefs.h <<\EOF
2743 #define pid_t int
2748 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2749 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2750 echo "configure:2751: checking for vfork.h" >&5
2751 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2752 echo $ac_n "(cached) $ac_c" 1>&6
2753 else
2754 cat > conftest.$ac_ext <<EOF
2755 #line 2756 "configure"
2756 #include "confdefs.h"
2757 #include <vfork.h>
2759 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2760 { (eval echo configure:2761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2761 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2762 if test -z "$ac_err"; then
2763 rm -rf conftest*
2764 eval "ac_cv_header_$ac_safe=yes"
2765 else
2766 echo "$ac_err" >&5
2767 echo "configure: failed program was:" >&5
2768 cat conftest.$ac_ext >&5
2769 rm -rf conftest*
2770 eval "ac_cv_header_$ac_safe=no"
2772 rm -f conftest*
2774 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2775 echo "$ac_t""yes" 1>&6
2776 cat >> confdefs.h <<\EOF
2777 #define HAVE_VFORK_H 1
2780 else
2781 echo "$ac_t""no" 1>&6
2784 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2785 echo "configure:2786: checking for working vfork" >&5
2786 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2787 echo $ac_n "(cached) $ac_c" 1>&6
2788 else
2789 if test "$cross_compiling" = yes; then
2790 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2791 echo "configure:2792: checking for vfork" >&5
2792 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2793 echo $ac_n "(cached) $ac_c" 1>&6
2794 else
2795 cat > conftest.$ac_ext <<EOF
2796 #line 2797 "configure"
2797 #include "confdefs.h"
2798 /* System header to define __stub macros and hopefully few prototypes,
2799 which can conflict with char vfork(); below. */
2800 #include <assert.h>
2801 /* Override any gcc2 internal prototype to avoid an error. */
2802 /* We use char because int might match the return type of a gcc2
2803 builtin and then its argument prototype would still apply. */
2804 char vfork();
2806 int main() {
2808 /* The GNU C library defines this for functions which it implements
2809 to always fail with ENOSYS. Some functions are actually named
2810 something starting with __ and the normal name is an alias. */
2811 #if defined (__stub_vfork) || defined (__stub___vfork)
2812 choke me
2813 #else
2814 vfork();
2815 #endif
2817 ; return 0; }
2819 if { (eval echo configure:2820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2820 rm -rf conftest*
2821 eval "ac_cv_func_vfork=yes"
2822 else
2823 echo "configure: failed program was:" >&5
2824 cat conftest.$ac_ext >&5
2825 rm -rf conftest*
2826 eval "ac_cv_func_vfork=no"
2828 rm -f conftest*
2831 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2832 echo "$ac_t""yes" 1>&6
2834 else
2835 echo "$ac_t""no" 1>&6
2838 ac_cv_func_vfork_works=$ac_cv_func_vfork
2839 else
2840 cat > conftest.$ac_ext <<EOF
2841 #line 2842 "configure"
2842 #include "confdefs.h"
2843 /* Thanks to Paul Eggert for this test. */
2844 #include <stdio.h>
2845 #include <sys/types.h>
2846 #include <sys/stat.h>
2847 #ifdef HAVE_UNISTD_H
2848 #include <unistd.h>
2849 #endif
2850 #ifdef HAVE_VFORK_H
2851 #include <vfork.h>
2852 #endif
2853 /* On some sparc systems, changes by the child to local and incoming
2854 argument registers are propagated back to the parent.
2855 The compiler is told about this with #include <vfork.h>,
2856 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2857 Test for this by using a static variable whose address
2858 is put into a register that is clobbered by the vfork. */
2859 static
2860 #ifdef __cplusplus
2861 sparc_address_test (int arg)
2862 #else
2863 sparc_address_test (arg) int arg;
2864 #endif
2866 static pid_t child;
2867 if (!child) {
2868 child = vfork ();
2869 if (child < 0) {
2870 perror ("vfork");
2871 _exit(2);
2873 if (!child) {
2874 arg = getpid();
2875 write(-1, "", 0);
2876 _exit (arg);
2880 main() {
2881 pid_t parent = getpid ();
2882 pid_t child;
2884 sparc_address_test ();
2886 child = vfork ();
2888 if (child == 0) {
2889 /* Here is another test for sparc vfork register problems.
2890 This test uses lots of local variables, at least
2891 as many local variables as main has allocated so far
2892 including compiler temporaries. 4 locals are enough for
2893 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2894 A buggy compiler should reuse the register of parent
2895 for one of the local variables, since it will think that
2896 parent can't possibly be used any more in this routine.
2897 Assigning to the local variable will thus munge parent
2898 in the parent process. */
2899 pid_t
2900 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2901 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2902 /* Convince the compiler that p..p7 are live; otherwise, it might
2903 use the same hardware register for all 8 local variables. */
2904 if (p != p1 || p != p2 || p != p3 || p != p4
2905 || p != p5 || p != p6 || p != p7)
2906 _exit(1);
2908 /* On some systems (e.g. IRIX 3.3),
2909 vfork doesn't separate parent from child file descriptors.
2910 If the child closes a descriptor before it execs or exits,
2911 this munges the parent's descriptor as well.
2912 Test for this by closing stdout in the child. */
2913 _exit(close(fileno(stdout)) != 0);
2914 } else {
2915 int status;
2916 struct stat st;
2918 while (wait(&status) != child)
2920 exit(
2921 /* Was there some problem with vforking? */
2922 child < 0
2924 /* Did the child fail? (This shouldn't happen.) */
2925 || status
2927 /* Did the vfork/compiler bug occur? */
2928 || parent != getpid()
2930 /* Did the file descriptor bug occur? */
2931 || fstat(fileno(stdout), &st) != 0
2936 if { (eval echo configure:2937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2937 then
2938 ac_cv_func_vfork_works=yes
2939 else
2940 echo "configure: failed program was:" >&5
2941 cat conftest.$ac_ext >&5
2942 rm -fr conftest*
2943 ac_cv_func_vfork_works=no
2945 rm -fr conftest*
2950 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2951 if test $ac_cv_func_vfork_works = no; then
2952 cat >> confdefs.h <<\EOF
2953 #define vfork fork
2958 for ac_hdr in unistd.h
2960 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2961 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2962 echo "configure:2963: checking for $ac_hdr" >&5
2963 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2964 echo $ac_n "(cached) $ac_c" 1>&6
2965 else
2966 cat > conftest.$ac_ext <<EOF
2967 #line 2968 "configure"
2968 #include "confdefs.h"
2969 #include <$ac_hdr>
2971 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2972 { (eval echo configure:2973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2973 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2974 if test -z "$ac_err"; then
2975 rm -rf conftest*
2976 eval "ac_cv_header_$ac_safe=yes"
2977 else
2978 echo "$ac_err" >&5
2979 echo "configure: failed program was:" >&5
2980 cat conftest.$ac_ext >&5
2981 rm -rf conftest*
2982 eval "ac_cv_header_$ac_safe=no"
2984 rm -f conftest*
2986 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2987 echo "$ac_t""yes" 1>&6
2988 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2989 cat >> confdefs.h <<EOF
2990 #define $ac_tr_hdr 1
2993 else
2994 echo "$ac_t""no" 1>&6
2996 done
2998 for ac_func in getpagesize
3000 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3001 echo "configure:3002: checking for $ac_func" >&5
3002 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3003 echo $ac_n "(cached) $ac_c" 1>&6
3004 else
3005 cat > conftest.$ac_ext <<EOF
3006 #line 3007 "configure"
3007 #include "confdefs.h"
3008 /* System header to define __stub macros and hopefully few prototypes,
3009 which can conflict with char $ac_func(); below. */
3010 #include <assert.h>
3011 /* Override any gcc2 internal prototype to avoid an error. */
3012 /* We use char because int might match the return type of a gcc2
3013 builtin and then its argument prototype would still apply. */
3014 char $ac_func();
3016 int main() {
3018 /* The GNU C library defines this for functions which it implements
3019 to always fail with ENOSYS. Some functions are actually named
3020 something starting with __ and the normal name is an alias. */
3021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3022 choke me
3023 #else
3024 $ac_func();
3025 #endif
3027 ; return 0; }
3029 if { (eval echo configure:3030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3030 rm -rf conftest*
3031 eval "ac_cv_func_$ac_func=yes"
3032 else
3033 echo "configure: failed program was:" >&5
3034 cat conftest.$ac_ext >&5
3035 rm -rf conftest*
3036 eval "ac_cv_func_$ac_func=no"
3038 rm -f conftest*
3041 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3042 echo "$ac_t""yes" 1>&6
3043 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3044 cat >> confdefs.h <<EOF
3045 #define $ac_tr_func 1
3048 else
3049 echo "$ac_t""no" 1>&6
3051 done
3053 echo $ac_n "checking for working mmap from /dev/zero""... $ac_c" 1>&6
3054 echo "configure:3055: checking for working mmap from /dev/zero" >&5
3055 if eval "test \"`echo '$''{'ac_cv_func_mmap_anywhere'+set}'`\" = set"; then
3056 echo $ac_n "(cached) $ac_c" 1>&6
3057 else
3058 if test "$cross_compiling" = yes; then
3059 ac_cv_func_mmap_anywhere=no
3060 else
3061 cat > conftest.$ac_ext <<EOF
3062 #line 3063 "configure"
3063 #include "confdefs.h"
3065 /* Test by Richard Henderson and Alexandre Oliva.
3066 Check whether mmap from /dev/zero works. */
3067 #include <sys/types.h>
3068 #include <fcntl.h>
3069 #include <sys/mman.h>
3071 /* This mess was copied from the GNU getpagesize.h. */
3072 #ifndef HAVE_GETPAGESIZE
3073 # ifdef HAVE_UNISTD_H
3074 # include <unistd.h>
3075 # endif
3077 /* Assume that all systems that can run configure have sys/param.h. */
3078 # ifndef HAVE_SYS_PARAM_H
3079 # define HAVE_SYS_PARAM_H 1
3080 # endif
3082 # ifdef _SC_PAGESIZE
3083 # define getpagesize() sysconf(_SC_PAGESIZE)
3084 # else /* no _SC_PAGESIZE */
3085 # ifdef HAVE_SYS_PARAM_H
3086 # include <sys/param.h>
3087 # ifdef EXEC_PAGESIZE
3088 # define getpagesize() EXEC_PAGESIZE
3089 # else /* no EXEC_PAGESIZE */
3090 # ifdef NBPG
3091 # define getpagesize() NBPG * CLSIZE
3092 # ifndef CLSIZE
3093 # define CLSIZE 1
3094 # endif /* no CLSIZE */
3095 # else /* no NBPG */
3096 # ifdef NBPC
3097 # define getpagesize() NBPC
3098 # else /* no NBPC */
3099 # ifdef PAGESIZE
3100 # define getpagesize() PAGESIZE
3101 # endif /* PAGESIZE */
3102 # endif /* no NBPC */
3103 # endif /* no NBPG */
3104 # endif /* no EXEC_PAGESIZE */
3105 # else /* no HAVE_SYS_PARAM_H */
3106 # define getpagesize() 8192 /* punt totally */
3107 # endif /* no HAVE_SYS_PARAM_H */
3108 # endif /* no _SC_PAGESIZE */
3110 #endif /* no HAVE_GETPAGESIZE */
3112 int main()
3114 char *x;
3115 int fd, pg;
3117 fd = open("/dev/zero", O_RDWR);
3118 if (fd < 0)
3119 exit(1);
3121 pg = getpagesize();
3122 x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
3123 if (x == (char *) -1)
3124 exit(2);
3126 *(int *)x += 1;
3128 if (munmap(x, pg) < 0)
3129 exit(3);
3131 exit(0);
3134 if { (eval echo configure:3135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3135 then
3136 ac_cv_func_mmap_anywhere=yes
3137 else
3138 echo "configure: failed program was:" >&5
3139 cat conftest.$ac_ext >&5
3140 rm -fr conftest*
3141 ac_cv_func_mmap_anywhere=no
3143 rm -fr conftest*
3148 echo "$ac_t""$ac_cv_func_mmap_anywhere" 1>&6
3149 if test $ac_cv_func_mmap_anywhere = yes; then
3150 cat >> confdefs.h <<\EOF
3151 #define HAVE_MMAP_ANYWHERE 1
3156 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
3157 echo "configure:3158: checking for working mmap of a file" >&5
3158 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
3159 echo $ac_n "(cached) $ac_c" 1>&6
3160 else
3161 # Create a file one thousand bytes long.
3162 for i in 1 2 3 4 5 6 7 8 9 0
3163 do for j in 1 2 3 4 5 6 7 8 9 0
3164 do echo $i $j xxxxx
3165 done
3166 done > conftestdata$$
3168 if test "$cross_compiling" = yes; then
3169 ac_cv_func_mmap_file=no
3170 else
3171 cat > conftest.$ac_ext <<EOF
3172 #line 3173 "configure"
3173 #include "confdefs.h"
3175 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
3176 Richard Henderson and Alexandre Oliva.
3177 Check whether read-only mmap of a plain file works. */
3178 #include <sys/types.h>
3179 #include <sys/stat.h>
3180 #include <fcntl.h>
3181 #include <sys/mman.h>
3183 int main()
3185 char *x;
3186 int fd;
3187 struct stat st;
3189 fd = open("conftestdata$$", O_RDONLY);
3190 if (fd < 0)
3191 exit(1);
3193 if (fstat (fd, &st))
3194 exit(2);
3196 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
3197 if (x == (char *) -1)
3198 exit(3);
3200 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
3201 exit(4);
3203 if (munmap(x, st.st_size) < 0)
3204 exit(5);
3206 exit(0);
3209 if { (eval echo configure:3210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3210 then
3211 ac_cv_func_mmap_file=yes
3212 else
3213 echo "configure: failed program was:" >&5
3214 cat conftest.$ac_ext >&5
3215 rm -fr conftest*
3216 ac_cv_func_mmap_file=no
3218 rm -fr conftest*
3223 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
3224 if test $ac_cv_func_mmap_file = yes; then
3225 cat >> confdefs.h <<\EOF
3226 #define HAVE_MMAP_FILE 1
3232 # We will need to find libiberty.h and ansidecl.h
3233 saved_CFLAGS="$CFLAGS"
3234 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
3235 for ac_func in bcopy bzero bcmp \
3236 index rindex getenv atol sbrk abort atof getcwd getwd \
3237 strsignal putc_unlocked fputs_unlocked strstr environ \
3238 malloc realloc calloc free basename getopt
3240 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3241 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3242 echo "configure:3243: checking whether $ac_func is declared" >&5
3243 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3244 echo $ac_n "(cached) $ac_c" 1>&6
3245 else
3246 cat > conftest.$ac_ext <<EOF
3247 #line 3248 "configure"
3248 #include "confdefs.h"
3249 #include "gansidecl.h"
3250 #include "system.h"
3252 int main() {
3253 #ifndef $ac_func
3254 char *(*pfn) = (char *(*)) $ac_func ;
3255 #endif
3256 ; return 0; }
3258 if { (eval echo configure:3259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3259 rm -rf conftest*
3260 eval "gcc_cv_have_decl_$ac_func=yes"
3261 else
3262 echo "configure: failed program was:" >&5
3263 cat conftest.$ac_ext >&5
3264 rm -rf conftest*
3265 eval "gcc_cv_have_decl_$ac_func=no"
3267 rm -f conftest*
3270 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3271 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h <<EOF
3272 #define $ac_tr_decl 1
3275 else
3276 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h <<EOF
3277 #define $ac_tr_decl 0
3282 done
3283 if test x = y ; then
3284 cat >> confdefs.h <<EOF
3285 #define HAVE_DECL_BCOPY 1
3287 cat >> confdefs.h <<EOF
3288 #define HAVE_DECL_BZERO 1
3290 cat >> confdefs.h <<EOF
3291 #define HAVE_DECL_BCMP 1
3294 cat >> confdefs.h <<EOF
3295 #define HAVE_DECL_INDEX 1
3297 cat >> confdefs.h <<EOF
3298 #define HAVE_DECL_RINDEX 1
3300 cat >> confdefs.h <<EOF
3301 #define HAVE_DECL_GETENV 1
3303 cat >> confdefs.h <<EOF
3304 #define HAVE_DECL_ATOL 1
3306 cat >> confdefs.h <<EOF
3307 #define HAVE_DECL_SBRK 1
3309 cat >> confdefs.h <<EOF
3310 #define HAVE_DECL_ABORT 1
3312 cat >> confdefs.h <<EOF
3313 #define HAVE_DECL_ATOF 1
3315 cat >> confdefs.h <<EOF
3316 #define HAVE_DECL_GETCWD 1
3318 cat >> confdefs.h <<EOF
3319 #define HAVE_DECL_GETWD 1
3322 cat >> confdefs.h <<EOF
3323 #define HAVE_DECL_STRSIGNAL 1
3325 cat >> confdefs.h <<EOF
3326 #define HAVE_DECL_PUTC_UNLOCKED 1
3328 cat >> confdefs.h <<EOF
3329 #define HAVE_DECL_FPUTS_UNLOCKED 1
3331 cat >> confdefs.h <<EOF
3332 #define HAVE_DECL_STRSTR 1
3334 cat >> confdefs.h <<EOF
3335 #define HAVE_DECL_ENVIRON 1
3338 cat >> confdefs.h <<EOF
3339 #define HAVE_DECL_MALLOC 1
3341 cat >> confdefs.h <<EOF
3342 #define HAVE_DECL_REALLOC 1
3344 cat >> confdefs.h <<EOF
3345 #define HAVE_DECL_CALLOC 1
3347 cat >> confdefs.h <<EOF
3348 #define HAVE_DECL_FREE 1
3350 cat >> confdefs.h <<EOF
3351 #define HAVE_DECL_BASENAME 1
3353 cat >> confdefs.h <<EOF
3354 #define HAVE_DECL_GETOPT 1
3359 for ac_func in getrlimit setrlimit getrusage
3361 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3362 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3363 echo "configure:3364: checking whether $ac_func is declared" >&5
3364 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3365 echo $ac_n "(cached) $ac_c" 1>&6
3366 else
3367 cat > conftest.$ac_ext <<EOF
3368 #line 3369 "configure"
3369 #include "confdefs.h"
3370 #include "gansidecl.h"
3371 #include "system.h"
3372 #ifdef HAVE_SYS_RESOURCE_H
3373 #include <sys/resource.h>
3374 #endif
3377 int main() {
3378 #ifndef $ac_func
3379 char *(*pfn) = (char *(*)) $ac_func ;
3380 #endif
3381 ; return 0; }
3383 if { (eval echo configure:3384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3384 rm -rf conftest*
3385 eval "gcc_cv_have_decl_$ac_func=yes"
3386 else
3387 echo "configure: failed program was:" >&5
3388 cat conftest.$ac_ext >&5
3389 rm -rf conftest*
3390 eval "gcc_cv_have_decl_$ac_func=no"
3392 rm -f conftest*
3395 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3396 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h <<EOF
3397 #define $ac_tr_decl 1
3400 else
3401 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h <<EOF
3402 #define $ac_tr_decl 0
3407 done
3408 if test x = y ; then
3409 cat >> confdefs.h <<EOF
3410 #define HAVE_DECL_GETRLIMIT 1
3412 cat >> confdefs.h <<EOF
3413 #define HAVE_DECL_SETRLIMIT 1
3415 cat >> confdefs.h <<EOF
3416 #define HAVE_DECL_GETRUSAGE 1
3421 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
3422 CFLAGS="$saved_CFLAGS"
3424 # mkdir takes a single argument on some systems.
3425 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
3426 echo "configure:3427: checking if mkdir takes one argument" >&5
3427 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
3428 echo $ac_n "(cached) $ac_c" 1>&6
3429 else
3430 cat > conftest.$ac_ext <<EOF
3431 #line 3432 "configure"
3432 #include "confdefs.h"
3434 #include <sys/types.h>
3435 #ifdef HAVE_SYS_STAT_H
3436 # include <sys/stat.h>
3437 #endif
3438 #ifdef HAVE_UNISTD_H
3439 # include <unistd.h>
3440 #endif
3441 #ifdef HAVE_DIRECT_H
3442 # include <direct.h>
3443 #endif
3444 int main() {
3445 mkdir ("foo", 0);
3446 ; return 0; }
3448 if { (eval echo configure:3449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3449 rm -rf conftest*
3450 gcc_cv_mkdir_takes_one_arg=no
3451 else
3452 echo "configure: failed program was:" >&5
3453 cat conftest.$ac_ext >&5
3454 rm -rf conftest*
3455 gcc_cv_mkdir_takes_one_arg=yes
3457 rm -f conftest*
3460 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
3461 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
3462 cat >> confdefs.h <<\EOF
3463 #define MKDIR_TAKES_ONE_ARG 1
3469 # File extensions
3470 manext='.1'
3471 objext='.o'
3475 build_xm_file=
3476 build_xm_defines=
3477 build_install_headers_dir=install-headers-tar
3478 build_exeext=
3479 host_xm_file=
3480 host_xm_defines=
3481 host_xmake_file=
3482 host_truncate_target=
3483 host_exeext=
3485 # Decode the host machine, then the target machine.
3486 # For the host machine, we save the xm_file variable as host_xm_file;
3487 # then we decode the target machine and forget everything else
3488 # that came from the host machine.
3489 for machine in $build $host $target; do
3491 out_file=
3492 xmake_file=
3493 tmake_file=
3494 extra_headers=
3495 extra_passes=
3496 extra_parts=
3497 extra_programs=
3498 extra_objs=
3499 extra_host_objs=
3500 extra_gcc_objs=
3501 xm_defines=
3502 float_format=
3503 # Set this to force installation and use of collect2.
3504 use_collect2=
3505 # Set this to override the default target model.
3506 target_cpu_default=
3507 # Set this to control how the header file directory is installed.
3508 install_headers_dir=install-headers-tar
3509 # Set this to a non-empty list of args to pass to cpp if the target
3510 # wants its .md file passed through cpp.
3511 md_cppflags=
3512 # Set this if directory names should be truncated to 14 characters.
3513 truncate_target=
3514 # Set this if gdb needs a dir command with `dirname $out_file`
3515 gdb_needs_out_file_path=
3516 # Set this if the build machine requires executables to have a
3517 # file name suffix.
3518 exeext=
3519 # Set this to control which thread package will be used.
3520 thread_file=
3521 # Reinitialize these from the flag values every loop pass, since some
3522 # configure entries modify them.
3523 gas="$gas_flag"
3524 gnu_ld="$gnu_ld_flag"
3525 enable_threads=$enable_threads_flag
3527 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
3528 # updated in each machine entry.
3529 tm_p_file=
3530 cpu_type=`echo $machine | sed 's/-.*$//'`
3531 case $machine in
3532 alpha*-*-*)
3533 cpu_type=alpha
3535 strongarm*-*-*)
3536 cpu_type=arm
3538 arm*-*-*)
3539 cpu_type=arm
3541 c*-convex-*)
3542 cpu_type=convex
3544 i[34567]86-*-*)
3545 cpu_type=i386
3547 hppa*-*-*)
3548 cpu_type=pa
3550 m68000-*-*)
3551 cpu_type=m68k
3553 mips*-*-*)
3554 cpu_type=mips
3556 pj*-*-*)
3557 cpu_type=pj
3559 powerpc*-*-*)
3560 cpu_type=rs6000
3562 pyramid-*-*)
3563 cpu_type=pyr
3565 sparc*-*-*)
3566 cpu_type=sparc
3568 esac
3570 tm_file=${cpu_type}/${cpu_type}.h
3571 xm_file=${cpu_type}/xm-${cpu_type}.h
3572 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h;
3573 then
3574 tm_p_file=${cpu_type}/${cpu_type}-protos.h;
3576 # On a.out targets, we need to use collect2.
3577 case $machine in
3578 *-*-*aout*)
3579 use_collect2=yes
3581 esac
3583 # Common parts for linux-gnu and openbsd systems
3584 case $machine in
3585 *-*-linux-gnu*)
3586 xm_defines="HAVE_ATEXIT POSIX BSTRING"
3588 *-*-openbsd*)
3589 tm_file=${cpu_type}/openbsd.h
3590 tmake_file="t-libc-ok t-openbsd"
3591 # avoid surprises, always provide an xm-openbsd file
3592 xm_file=${cpu_type}/xm-openbsd.h
3593 # don't depend on processor x-fragments as well
3594 xmake_file=none
3595 if test x$enable_threads = xyes; then
3596 thread_file='posix'
3597 tmake_file="${tmake_file} t-openbsd-thread"
3600 esac
3602 case $machine in
3603 # Support site-specific machine types.
3604 *local*)
3605 cpu_type=`echo $machine | sed -e 's/-.*//'`
3606 rest=`echo $machine | sed -e "s/$cpu_type-//"`
3607 xm_file=${cpu_type}/xm-$rest.h
3608 tm_file=${cpu_type}/$rest.h
3609 if test -f $srcdir/config/${cpu_type}/x-$rest; \
3610 then xmake_file=${cpu_type}/x-$rest; \
3611 else true; \
3613 if test -f $srcdir/config/${cpu_type}/t-$rest; \
3614 then tmake_file=${cpu_type}/t-$rest; \
3615 else true; \
3618 1750a-*-*)
3620 a29k-*-bsd* | a29k-*-sym1*)
3621 tm_file="${tm_file} a29k/unix.h"
3622 xm_defines=USG
3623 xmake_file=a29k/x-unix
3624 use_collect2=yes
3626 a29k-*-udi | a29k-*-coff)
3627 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
3628 tmake_file=a29k/t-a29kbare
3630 a29k-wrs-vxworks*)
3631 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3632 tmake_file=a29k/t-vx29k
3633 extra_parts="crtbegin.o crtend.o"
3634 thread_file='vxworks'
3636 a29k-*-*) # Default a29k environment.
3637 use_collect2=yes
3639 alpha-*-interix)
3640 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
3642 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
3643 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
3645 # GAS + IEEE_CONFORMANT
3646 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
3648 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
3649 xmake_file="x-interix alpha/t-pe"
3650 tmake_file="alpha/t-alpha alpha/t-interix alpha/t-ieee"
3651 if test x$enable_threads = xyes ; then
3652 thread_file='posix'
3654 if test x$stabs = xyes ; then
3655 tm_file="${tm_file} dbxcoff.h"
3657 #prefix='$$INTERIX_ROOT'/usr/contrib
3658 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3660 alpha*-*-linux-gnuecoff*)
3661 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3662 target_cpu_default="MASK_GAS"
3663 tmake_file="alpha/t-alpha alpha/t-ieee"
3664 gas=no
3665 xmake_file=none
3666 gas=yes gnu_ld=yes
3668 alpha*-*-linux-gnulibc1*)
3669 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3670 target_cpu_default="MASK_GAS"
3671 tmake_file="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
3672 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3673 xmake_file=none
3674 gas=yes gnu_ld=yes
3675 if test x$enable_threads = xyes; then
3676 thread_file='posix'
3679 alpha*-*-linux-gnu*)
3680 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3681 target_cpu_default="MASK_GAS"
3682 tmake_file="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3683 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3684 xmake_file=none
3685 gas=yes gnu_ld=yes
3686 if test x$enable_threads = xyes; then
3687 thread_file='posix'
3690 alpha*-*-netbsd*)
3691 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3692 target_cpu_default="MASK_GAS"
3693 tmake_file="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3694 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3695 xmake_file=none
3696 gas=yes gnu_ld=yes
3699 alpha*-*-openbsd*)
3700 # default x-alpha is only appropriate for dec-osf.
3701 target_cpu_default="MASK_GAS"
3702 tmake_file="alpha/t-alpha alpha/t-ieee"
3705 alpha*-dec-osf*)
3706 if test x$stabs = xyes
3707 then
3708 tm_file="${tm_file} dbx.h"
3710 if test x$gas != xyes
3711 then
3712 extra_passes="mips-tfile mips-tdump"
3714 use_collect2=yes
3715 tmake_file="alpha/t-alpha alpha/t-ieee"
3716 case $machine in
3717 *-*-osf1*)
3718 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3720 *-*-osf[23]*)
3721 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
3723 *-*-osf4*)
3724 tm_file="${tm_file} alpha/osf.h"
3725 # Some versions of OSF4 (specifically X4.0-9 296.7) have
3726 # a broken tar, so we use cpio instead.
3727 install_headers_dir=install-headers-cpio
3729 *-*-osf5*)
3730 tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
3732 esac
3733 case $machine in
3734 *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*)
3735 target_cpu_default=MASK_SUPPORT_ARCH
3737 esac
3739 alpha*-*-vxworks*)
3740 tm_file="${tm_file} dbx.h alpha/vxworks.h"
3741 tmake_file="alpha/t-alpha alpha/t-ieee"
3742 if x$gas != xyes
3743 then
3744 extra_passes="mips-tfile mips-tdump"
3746 use_collect2=yes
3747 thread_file='vxworks'
3749 alpha*-*-winnt*)
3750 tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3751 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3752 tmake_file="t-libc-ok alpha/t-alpha alpha/t-ieee"
3753 xmake_file=winnt/x-winnt
3754 extra_host_objs=oldnames.o
3755 extra_gcc_objs="spawnv.o oldnames.o"
3756 if test x$gnu_ld != xyes
3757 then
3758 extra_programs=ld.exe
3760 if test x$enable_threads = xyes; then
3761 thread_file='win32'
3764 alpha*-dec-vms*)
3765 tm_file=alpha/vms.h
3766 xm_file="${xm_file} alpha/xm-vms.h"
3767 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
3769 arc-*-elf*)
3770 extra_parts="crtinit.o crtfini.o"
3772 arm-*-coff* | armel-*-coff*)
3773 tm_file=arm/coff.h
3774 tmake_file=arm/t-arm-coff
3776 arm-*-vxworks*)
3777 tm_file=arm/vxarm.h
3778 tmake_file=arm/t-arm-coff
3779 thread_file='vxworks'
3781 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
3782 tm_file=arm/riscix1-1.h
3783 use_collect2=yes
3785 arm-*-riscix*) # Acorn RISC machine
3786 if test x$gas = xyes
3787 then
3788 tm_file=arm/rix-gas.h
3789 else
3790 tm_file=arm/riscix.h
3792 xmake_file=arm/x-riscix
3793 tmake_file=arm/t-riscix
3794 use_collect2=yes
3796 arm-semi-aout | armel-semi-aout)
3797 tm_file=arm/semi.h
3798 tmake_file=arm/t-semi
3800 arm-semi-aof | armel-semi-aof)
3801 tm_file=arm/semiaof.h
3802 tmake_file=arm/t-semiaof
3804 arm*-*-netbsd*)
3805 tm_file=arm/netbsd.h
3806 tmake_file="t-netbsd arm/t-netbsd"
3807 use_collect2=yes
3809 arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
3810 cpu_type=arm
3811 xmake_file=x-linux
3812 tm_file=arm/linux-aout.h
3813 tmake_file=arm/t-linux
3814 gnu_ld=yes
3816 arm*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker
3817 xm_file=arm/xm-linux.h
3818 xmake_file=x-linux
3819 tm_file="arm/linux-oldld.h arm/linux-elf.h"
3820 case $machine in
3821 armv2*-*-*)
3822 tm_file="arm/linux-elf26.h $tm_file"
3824 esac
3825 tmake_file="t-linux arm/t-linux"
3826 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3827 gnu_ld=yes
3828 case x${enable_threads} in
3829 x | xyes | xpthreads | xposix)
3830 thread_file='posix'
3832 esac
3834 arm*-*-linux-gnu*) # ARM GNU/Linux with ELF
3835 xm_file=arm/xm-linux.h
3836 xmake_file=x-linux
3837 tm_file="arm/linux-elf.h"
3838 case $machine in
3839 armv2*-*-*)
3840 tm_file="arm/linux-elf26.h $tm_file"
3842 esac
3843 tmake_file="t-linux arm/t-linux"
3844 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3845 gnu_ld=yes
3846 case x${enable_threads} in
3847 x | xyes | xpthreads | xposix)
3848 thread_file='posix'
3850 esac
3852 arm*-*-uclinux*) # ARM ucLinux
3853 tm_file=arm/uclinux-elf.h
3854 tmake_file=arm/t-arm-elf
3856 arm*-*-aout)
3857 tm_file=arm/aout.h
3858 tmake_file=arm/t-arm-aout
3860 arm*-*-ecos-elf)
3861 tm_file=arm/ecos-elf.h
3862 tmake_file=arm/t-arm-elf
3864 arm*-*-elf)
3865 tm_file=arm/unknown-elf.h
3866 tmake_file=arm/t-arm-elf
3868 arm*-*-conix*)
3869 tm_file=arm/conix-elf.h
3870 tmake_file=arm/t-arm-elf
3872 arm*-*-oabi)
3873 tm_file=arm/unknown-elf-oabi.h
3874 tmake_file=arm/t-arm-elf
3876 arm-*-pe*)
3877 tm_file=arm/pe.h
3878 tmake_file=arm/t-pe
3879 extra_objs="pe.o"
3881 avr-*-*)
3883 c1-convex-*) # Convex C1
3884 target_cpu_default=1
3885 use_collect2=yes
3887 c2-convex-*) # Convex C2
3888 target_cpu_default=2
3889 use_collect2=yes
3891 c32-convex-*)
3892 target_cpu_default=4
3893 use_collect2=yes
3895 c34-convex-*)
3896 target_cpu_default=8
3897 use_collect2=yes
3899 c38-convex-*)
3900 target_cpu_default=16
3901 use_collect2=yes
3903 c4x-*)
3904 cpu_type=c4x
3905 tmake_file=c4x/t-c4x
3907 clipper-intergraph-clix*)
3908 tm_file="${tm_file} svr3.h clipper/clix.h"
3909 xm_file=clipper/xm-clix.h
3910 xmake_file=clipper/x-clix
3911 extra_headers=va-clipper.h
3912 extra_parts="crtbegin.o crtend.o"
3913 install_headers_dir=install-headers-cpio
3915 d30v-*)
3916 float_format=i64
3918 dsp16xx-*)
3920 elxsi-elxsi-*)
3921 use_collect2=yes
3923 fr30-*-elf)
3924 tm_file="fr30/fr30.h"
3925 tmake_file=fr30/t-fr30
3926 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3928 # This hasn't been upgraded to GCC 2.
3929 # fx80-alliant-*) # Alliant FX/80
3930 # ;;
3931 h8300-*-*)
3932 float_format=i32
3934 hppa*-*-linux*)
3935 target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
3936 tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
3937 tmake_file="t-linux pa/t-linux"
3938 extra_parts="crtbegin.o crtend.o"
3939 xmake_file=none
3940 gas=yes gnu_ld=yes
3941 if test x$enable_threads = xyes; then
3942 thread_file='posix'
3945 hppa*-*-openbsd*)
3946 target_cpu_default="MASK_PA_11"
3947 tmake_file=pa/t-openbsd
3949 hppa1.1-*-pro*)
3950 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3951 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
3952 xm_file=pa/xm-papro.h
3953 tmake_file=pa/t-pro
3955 hppa1.1-*-osf*)
3956 target_cpu_default="MASK_PA_11"
3957 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
3958 use_collect2=yes
3960 hppa1.1-*-rtems*)
3961 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3962 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
3963 xm_file=pa/xm-papro.h
3964 tmake_file=pa/t-pro
3966 hppa1.0-*-osf*)
3967 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
3968 use_collect2=yes
3970 hppa1.1-*-bsd*)
3971 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
3972 target_cpu_default="MASK_PA_11"
3973 use_collect2=yes
3975 hppa1.0-*-bsd*)
3976 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
3977 use_collect2=yes
3979 hppa1.0-*-hpux7*)
3980 tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
3981 xm_file=pa/xm-pahpux.h
3982 xmake_file=pa/x-pa-hpux
3983 if test x$gas = xyes
3984 then
3985 tm_file="${tm_file} pa/gas.h"
3987 install_headers_dir=install-headers-cpio
3988 use_collect2=yes
3990 hppa1.0-*-hpux8.0[0-2]*)
3991 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3992 xm_file=pa/xm-pahpux.h
3993 xmake_file=pa/x-pa-hpux
3994 if test x$gas = xyes
3995 then
3996 tm_file="${tm_file} pa/pa-gas.h"
3997 else
3998 tm_file="pa/pa-oldas.h ${tm_file}"
4000 install_headers_dir=install-headers-cpio
4001 use_collect2=yes
4003 hppa1.1-*-hpux8.0[0-2]*)
4004 target_cpu_default="MASK_PA_11"
4005 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4006 xm_file=pa/xm-pahpux.h
4007 xmake_file=pa/x-pa-hpux
4008 if test x$gas = xyes
4009 then
4010 tm_file="${tm_file} pa/pa-gas.h"
4011 else
4012 tm_file="pa/pa-oldas.h ${tm_file}"
4014 install_headers_dir=install-headers-cpio
4015 use_collect2=yes
4017 hppa1.1-*-hpux8*)
4018 target_cpu_default="MASK_PA_11"
4019 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4020 xm_file=pa/xm-pahpux.h
4021 xmake_file=pa/x-pa-hpux
4022 if test x$gas = xyes
4023 then
4024 tm_file="${tm_file} pa/pa-gas.h"
4026 install_headers_dir=install-headers-cpio
4027 use_collect2=yes
4029 hppa1.0-*-hpux8*)
4030 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4031 xm_file=pa/xm-pahpux.h
4032 xmake_file=pa/x-pa-hpux
4033 if test x$gas = xyes
4034 then
4035 tm_file="${tm_file} pa/pa-gas.h"
4037 install_headers_dir=install-headers-cpio
4038 use_collect2=yes
4040 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
4041 target_cpu_default="MASK_PA_11"
4042 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
4043 float_format=i128
4044 xm_file=pa/xm-pahpux.h
4045 xmake_file=pa/x-pa-hpux
4046 tmake_file=pa/t-pa
4047 if test x$gas = xyes
4048 then
4049 tm_file="${tm_file} pa/pa-gas.h"
4051 if test x$enable_threads = x; then
4052 enable_threads=$have_pthread_h
4054 if test x$enable_threads = xyes; then
4055 thread_file='dce'
4056 tmake_file="${tmake_file} pa/t-dce-thr"
4058 install_headers_dir=install-headers-cpio
4059 use_collect2=yes
4061 hppa1.0-*-hpux10*)
4062 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
4063 float_format=i128
4064 xm_file=pa/xm-pahpux.h
4065 xmake_file=pa/x-pa-hpux
4066 tmake_file=pa/t-pa
4067 if test x$gas = xyes
4068 then
4069 tm_file="${tm_file} pa/pa-gas.h"
4071 if test x$enable_threads = x; then
4072 enable_threads=$have_pthread_h
4074 if test x$enable_threads = xyes; then
4075 thread_file='dce'
4076 tmake_file="${tmake_file} pa/t-dce-thr"
4078 install_headers_dir=install-headers-cpio
4079 use_collect2=yes
4081 hppa*64*-*-hpux11*)
4082 target_cpu_default="MASK_PA_11"
4083 xm_file=pa/xm-pa64hpux.h
4084 xmake_file=pa/x-pa-hpux
4085 tmake_file=pa/t-pa
4086 tm_file="pa/pa64-start.h ${tm_file} pa/pa64-regs.h pa/long_double.h pa/elf.h pa/pa-hpux.h pa/pa-hpux11.h pa/pa-64.h"
4087 float_format=i128
4088 tmake_file=pa/t-pa64
4089 target_cpu_default="(MASK_PA_11|MASK_PA_20)"
4091 if [ x$gas = xyes ]
4092 then
4093 tm_file="${tm_file} pa/pa-gas.h"
4095 # if [[ x$enable_threads = x ]]; then
4096 # enable_threads=$have_pthread_h
4097 # fi
4098 # if [[ x$enable_threads = xyes ]]; then
4099 # thread_file='dce'
4100 # tmake_file="${tmake_file} pa/t-dce-thr"
4101 # fi
4102 install_headers_dir=install-headers-cpio
4103 use_collect2=yes
4105 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
4106 target_cpu_default="MASK_PA_11"
4107 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
4108 float_format=i128
4109 xm_file=pa/xm-pahpux.h
4110 xmake_file=pa/x-pa-hpux
4111 tmake_file=pa/t-pa
4112 if test x$gas = xyes
4113 then
4114 tm_file="${tm_file} pa/pa-gas.h"
4116 # if test x$enable_threads = x; then
4117 # enable_threads=$have_pthread_h
4118 # fi
4119 # if test x$enable_threads = xyes; then
4120 # thread_file='dce'
4121 # tmake_file="${tmake_file} pa/t-dce-thr"
4122 # fi
4123 install_headers_dir=install-headers-cpio
4124 use_collect2=yes
4126 hppa1.0-*-hpux11*)
4127 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
4128 float_format=i128
4129 xm_file=pa/xm-pahpux.h
4130 xmake_file=pa/x-pa-hpux
4131 if test x$gas = xyes
4132 then
4133 tm_file="${tm_file} pa/pa-gas.h"
4135 # if test x$enable_threads = x; then
4136 # enable_threads=$have_pthread_h
4137 # fi
4138 # if test x$enable_threads = xyes; then
4139 # thread_file='dce'
4140 # tmake_file="${tmake_file} pa/t-dce-thr"
4141 # fi
4142 install_headers_dir=install-headers-cpio
4143 use_collect2=yes
4145 hppa1.1-*-hpux* | hppa2*-*-hpux*)
4146 target_cpu_default="MASK_PA_11"
4147 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
4148 xm_file=pa/xm-pahpux.h
4149 xmake_file=pa/x-pa-hpux
4150 if test x$gas = xyes
4151 then
4152 tm_file="${tm_file} pa/pa-gas.h"
4154 install_headers_dir=install-headers-cpio
4155 use_collect2=yes
4157 hppa1.0-*-hpux*)
4158 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
4159 xm_file=pa/xm-pahpux.h
4160 xmake_file=pa/x-pa-hpux
4161 if test x$gas = xyes
4162 then
4163 tm_file="${tm_file} pa/pa-gas.h"
4165 install_headers_dir=install-headers-cpio
4166 use_collect2=yes
4168 hppa1.1-*-hiux* | hppa2*-*-hiux*)
4169 target_cpu_default="MASK_PA_11"
4170 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
4171 xm_file=pa/xm-pahpux.h
4172 xmake_file=pa/x-pa-hpux
4173 if test x$gas = xyes
4174 then
4175 tm_file="${tm_file} pa/pa-gas.h"
4177 install_headers_dir=install-headers-cpio
4178 use_collect2=yes
4180 hppa1.0-*-hiux*)
4181 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
4182 xm_file=pa/xm-pahpux.h
4183 xmake_file=pa/x-pa-hpux
4184 if test x$gas = xyes
4185 then
4186 tm_file="${tm_file} pa/pa-gas.h"
4188 install_headers_dir=install-headers-cpio
4189 use_collect2=yes
4191 hppa*-*-lites*)
4192 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
4193 target_cpu_default="MASK_PA_11"
4194 use_collect2=yes
4196 hppa*-*-mpeix*)
4197 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
4198 xm_file=pa/xm-pampeix.h
4199 xmake_file=pa/x-pa-mpeix
4200 echo "You must use gas. Assuming it is already installed."
4201 install_headers_dir=install-headers-tar
4202 use_collect2=yes
4204 i370-*-opened*) # IBM 360/370/390 Architecture
4205 xm_file=i370/xm-oe.h
4206 tm_file=i370/oe.h
4207 xmake_file=i370/x-oe
4208 tmake_file=i370/t-oe
4210 i370-*-mvs*)
4211 xm_file=i370/xm-mvs.h
4212 tm_file=i370/mvs.h
4213 tmake_file=i370/t-mvs
4215 i370-*-linux*)
4216 xm_file="xm-linux.h i370/xm-linux.h"
4217 xmake_file=x-linux
4218 tm_file="i370/linux.h ${tm_file}"
4219 tmake_file="t-linux i370/t-linux"
4220 # broken_install=yes
4221 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4222 # extra_parts="crtbegin.o crtend.o"
4223 gnu_ld=yes
4224 gas=yes
4225 elf=yes
4226 if test x$enable_threads = xyes; then
4227 thread_file='posix'
4230 i[34567]86-*-elf*)
4231 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
4232 tm_file=i386/i386elf.h
4233 tmake_file=i386/t-i386elf
4234 xmake_file=x-svr4
4236 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
4237 if test x$gas = xyes
4238 then
4239 tm_file=i386/aix386.h
4240 extra_parts="crtbegin.o crtend.o"
4241 tmake_file=i386/t-crtstuff
4242 else
4243 tm_file=i386/aix386ng.h
4244 use_collect2=yes
4246 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
4247 xm_defines=USG
4248 xmake_file=i386/x-aix
4250 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
4251 xm_file="xm-alloca.h ${xm_file}"
4252 xm_defines="USG POSIX SMALL_ARG_MAX"
4253 xmake_file=i386/x-ncr3000
4254 if test x$stabs = xyes -a x$gas = xyes
4255 then
4256 tm_file=i386/sysv4gdb.h
4257 else
4258 tm_file=i386/sysv4.h
4260 extra_parts="crtbegin.o crtend.o"
4261 tmake_file=i386/t-crtpic
4263 i[34567]86-next-*)
4264 tm_file=i386/next.h
4265 xm_file=i386/xm-next.h
4266 tmake_file=i386/t-next
4267 xmake_file=i386/x-next
4268 extra_objs=nextstep.o
4269 extra_parts="crtbegin.o crtend.o"
4270 if test x$enable_threads = xyes; then
4271 thread_file='mach'
4274 i[34567]86-sequent-bsd*) # 80386 from Sequent
4275 use_collect2=yes
4276 if test x$gas = xyes
4277 then
4278 tm_file=i386/seq-gas.h
4279 else
4280 tm_file=i386/sequent.h
4283 i[34567]86-sequent-ptx1*)
4284 xm_defines="USG SVR3"
4285 xmake_file=i386/x-sysv3
4286 tm_file=i386/seq-sysv3.h
4287 tmake_file=i386/t-crtstuff
4288 extra_parts="crtbegin.o crtend.o"
4289 install_headers_dir=install-headers-cpio
4291 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
4292 xm_defines="USG SVR3"
4293 xmake_file=i386/x-sysv3
4294 tm_file=i386/seq2-sysv3.h
4295 tmake_file=i386/t-crtstuff
4296 extra_parts="crtbegin.o crtend.o"
4297 install_headers_dir=install-headers-cpio
4299 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
4300 xm_file="xm-alloca.h ${xm_file}"
4301 xm_defines="USG POSIX SMALL_ARG_MAX"
4302 xmake_file=x-svr4
4303 tm_file=i386/ptx4-i.h
4304 tmake_file=t-svr4
4305 extra_parts="crtbegin.o crtend.o"
4306 install_headers_dir=install-headers-cpio
4308 i386-sun-sunos*) # Sun i386 roadrunner
4309 xm_defines=USG
4310 tm_file=i386/sun.h
4311 use_collect2=yes
4313 i[34567]86-wrs-vxworks*)
4314 tm_file=i386/vxi386.h
4315 tmake_file=i386/t-i386bare
4316 thread_file='vxworks'
4318 i[34567]86-*-aout*)
4319 tm_file=i386/i386-aout.h
4320 tmake_file=i386/t-i386bare
4322 i[34567]86-*-beospe*)
4323 xm_file=i386/xm-beos.h
4324 xm_defines="USE_C_ALLOCA"
4325 tmake_file=i386/t-beos
4326 tm_file=i386/beos-pe.h
4327 xmake_file=i386/x-beos
4328 extra_objs=winnt.o
4330 i[34567]86-*-beoself* | i[34567]86-*-beos*)
4331 xm_file=i386/xm-beos.h
4332 tmake_file='i386/t-beos i386/t-crtpic'
4333 tm_file=i386/beos-elf.h
4334 xmake_file=i386/x-beos
4335 extra_objs=winnt.o
4336 extra_parts='crtbegin.o crtend.o'
4338 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
4339 tm_file=i386/bsd386.h
4340 # tmake_file=t-libc-ok
4342 i[34567]86-*-bsd*)
4343 tm_file=i386/386bsd.h
4344 # tmake_file=t-libc-ok
4345 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
4346 # use_collect2=yes
4348 i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aout*)
4349 tm_file="i386/freebsd.h i386/perform.h"
4350 tmake_file=t-freebsd
4352 i[34567]86-*-freebsd*)
4353 tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
4354 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4355 tmake_file=t-freebsd
4356 gas=yes
4357 gnu_ld=yes
4358 stabs=yes
4359 case x${enable_threads} in
4360 xyes | xpthreads | xposix)
4361 thread_file='posix'
4362 tmake_file="${tmake_file} t-freebsd-thread"
4364 esac
4366 i[34567]86-*-netbsd*)
4367 tm_file=i386/netbsd.h
4368 tmake_file=t-netbsd
4369 use_collect2=yes
4371 i[34567]86-*-openbsd*)
4372 # we need collect2 until our bug is fixed...
4373 use_collect2=yes
4375 i[34567]86-*-coff*)
4376 tm_file=i386/i386-coff.h
4377 tmake_file=i386/t-i386bare
4379 i[34567]86-*-isc*) # 80386 running ISC system
4380 xm_file="${xm_file} i386/xm-isc.h"
4381 xm_defines="USG SVR3"
4382 case $machine in
4383 i[34567]86-*-isc[34]*)
4384 xmake_file=i386/x-isc3
4387 xmake_file=i386/x-isc
4389 esac
4390 if test x$gas = xyes -a x$stabs = xyes
4391 then
4392 tm_file=i386/iscdbx.h
4393 tmake_file=i386/t-svr3dbx
4394 extra_parts="svr3.ifile svr3z.ifile"
4395 else
4396 tm_file=i386/isccoff.h
4397 tmake_file=i386/t-crtstuff
4398 extra_parts="crtbegin.o crtend.o"
4400 tmake_file="$tmake_file i386/t-i386bare"
4401 install_headers_dir=install-headers-cpio
4403 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
4404 # pre BFD linkers
4405 xmake_file=x-linux-aout
4406 tmake_file="t-linux-aout i386/t-crtstuff"
4407 tm_file=i386/linux-oldld.h
4408 gnu_ld=yes
4409 float_format=i386
4411 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
4412 xmake_file=x-linux-aout
4413 tmake_file="t-linux-aout i386/t-crtstuff"
4414 tm_file=i386/linux-aout.h
4415 gnu_ld=yes
4416 float_format=i386
4418 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
4419 # GNU/Linux C library 5
4420 xmake_file=x-linux
4421 tm_file=i386/linux.h
4422 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
4423 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4424 gnu_ld=yes
4425 float_format=i386
4426 if test x$enable_threads = xyes; then
4427 thread_file='single'
4430 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
4431 # aka GNU/Linux C library 6
4432 xmake_file=x-linux
4433 tm_file=i386/linux.h
4434 tmake_file="t-linux i386/t-crtstuff"
4435 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4436 gnu_ld=yes
4437 float_format=i386
4438 if test x$enable_threads = xyes; then
4439 thread_file='posix'
4442 i[34567]86-*-gnu*)
4443 float_format=i386
4445 i[34567]86-go32-msdos | i[34567]86-*-go32*)
4446 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
4447 exit 1
4449 i[34567]86-pc-msdosdjgpp*)
4450 xm_file=i386/xm-djgpp.h
4451 tm_file=i386/djgpp.h
4452 tmake_file=i386/t-djgpp
4453 xmake_file=i386/x-djgpp
4454 gnu_ld=yes
4455 gas=yes
4456 exeext=.exe
4457 float_format=none
4458 case $host in *pc-msdosdjgpp*)
4459 target_alias=djgpp
4461 esac
4463 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
4464 tm_file=i386/moss.h
4465 tmake_file=t-libc-ok
4466 gnu_ld=yes
4467 gas=yes
4469 i[34567]86-*-lynxos*)
4470 if test x$gas = xyes
4471 then
4472 tm_file=i386/lynx.h
4473 else
4474 tm_file=i386/lynx-ng.h
4476 xm_file=i386/xm-lynx.h
4477 tmake_file=i386/t-i386bare
4478 xmake_file=x-lynx
4480 i[34567]86-*-mach*)
4481 tm_file=i386/mach.h
4482 # tmake_file=t-libc-ok
4483 use_collect2=yes
4485 i[34567]86-*-osfrose*) # 386 using OSF/rose
4486 if test x$elf = xyes
4487 then
4488 tm_file=i386/osfelf.h
4489 use_collect2=
4490 else
4491 tm_file=i386/osfrose.h
4492 use_collect2=yes
4494 xm_file="i386/xm-osf.h ${xm_file}"
4495 xmake_file=i386/x-osfrose
4496 tmake_file=i386/t-osf
4497 extra_objs=halfpic.o
4499 i[34567]86-go32-rtems*)
4500 cpu_type=i386
4501 xm_file=i386/xm-go32.h
4502 tm_file=i386/go32-rtems.h
4503 tmake_file="i386/t-go32 t-rtems"
4505 i[34567]86-*-rtemscoff*)
4506 cpu_type=i386
4507 tm_file=i386/rtems.h
4508 tmake_file="i386/t-i386bare t-rtems"
4510 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
4511 cpu_type=i386
4512 tm_file=i386/rtemself.h
4513 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
4514 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
4516 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
4517 xm_file="xm-alloca.h ${xm_file} i386/xm-sco5.h"
4518 xm_defines="USG SVR3"
4519 xmake_file=i386/x-sco5
4520 install_headers_dir=install-headers-cpio
4521 tm_file=i386/sco5.h
4522 if test x$gas = xyes
4523 then
4524 tm_file="i386/sco5gas.h ${tm_file}"
4525 tmake_file=i386/t-sco5gas
4526 else
4527 tmake_file=i386/t-sco5
4529 tmake_file="$tmake_file i386/t-i386bare"
4530 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
4532 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
4533 xm_file="${xm_file} i386/xm-sco.h"
4534 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
4535 xmake_file=i386/x-sco4
4536 install_headers_dir=install-headers-cpio
4537 if test x$stabs = xyes
4538 then
4539 tm_file=i386/sco4dbx.h
4540 tmake_file=i386/t-svr3dbx
4541 extra_parts="svr3.ifile svr3z.rfile"
4542 else
4543 tm_file=i386/sco4.h
4544 tmake_file=i386/t-crtstuff
4545 extra_parts="crtbegin.o crtend.o"
4547 tmake_file="$tmake_file i386/t-i386bare"
4548 # The default EAFS filesystem supports long file names.
4549 # Truncating the target makes $host != $target which
4550 # makes gcc think it is doing a cross-compile.
4551 # truncate_target=yes
4553 i[34567]86-*-sco*) # 80386 running SCO system
4554 xm_file=i386/xm-sco.h
4555 xmake_file=i386/x-sco
4556 install_headers_dir=install-headers-cpio
4557 if test x$stabs = xyes
4558 then
4559 tm_file=i386/scodbx.h
4560 tmake_file=i386/t-svr3dbx
4561 extra_parts="svr3.ifile svr3z.rfile"
4562 else
4563 tm_file=i386/sco.h
4564 extra_parts="crtbegin.o crtend.o"
4565 tmake_file=i386/t-crtstuff
4567 tmake_file="$tmake_file i386/t-i386bare"
4568 truncate_target=yes
4570 i[34567]86-*-solaris2*)
4571 xm_file="xm-alloca.h ${xm_file}"
4572 xm_defines="USG POSIX SMALL_ARG_MAX"
4573 tm_file=i386/sol2.h
4574 if test x$gas = xyes; then
4575 # Only needed if gas does not support -s
4576 tm_file="i386/sol2gas.h ${tm_file}"
4578 tmake_file="i386/t-i386bare i386/t-sol2"
4579 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4580 xmake_file=x-svr4
4581 if test x${enable_threads} = x; then
4582 enable_threads=$have_pthread_h
4583 if test x${enable_threads} = x; then
4584 enable_threads=$have_thread_h
4587 if test x${enable_threads} = xyes; then
4588 if test x${have_pthread_h} = xyes; then
4589 thread_file='posix'
4590 else
4591 thread_file='solaris'
4595 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
4596 xm_file="xm-alloca.h ${xm_file}"
4597 xm_defines="USG POSIX"
4598 tm_file=i386/sysv5.h
4599 if test x$stabs = xyes
4600 then
4601 tm_file="${tm_file} dbx.h"
4603 tmake_file="i386/t-i386bare i386/t-crtpic"
4604 xmake_file=x-svr4
4605 extra_parts="crtbegin.o crtend.o"
4606 if test x$enable_threads = xyes; then
4607 thread_file='posix'
4610 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
4611 xm_file="xm-alloca.h ${xm_file}"
4612 xm_defines="USG POSIX SMALL_ARG_MAX"
4613 tm_file=i386/sysv4.h
4614 if test x$stabs = xyes
4615 then
4616 tm_file="${tm_file} dbx.h"
4618 tmake_file="i386/t-i386bare i386/t-crtpic"
4619 xmake_file=x-svr4
4620 extra_parts="crtbegin.o crtend.o"
4622 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
4623 xm_file="xm-alloca.h ${xm_file}"
4624 xm_defines="USG POSIX"
4625 tm_file=i386/udk.h
4626 tmake_file="i386/t-i386bare i386/t-crtpic i386/t-udk"
4627 xmake_file=x-svr4
4628 extra_parts="crtbegin.o crtend.o"
4629 install_headers_dir=install-headers-cpio
4631 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
4632 cpu_type=i386
4633 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
4634 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
4635 if test x$stabs = xyes
4636 then
4637 tm_file=i386/osf1elfgdb.h
4638 else
4639 tm_file=i386/osf1elf.h
4641 tmake_file=i386/t-osf1elf
4642 xmake_file=i386/x-osf1elf
4643 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
4645 i[34567]86-*-sysv*) # Intel 80386's running system V
4646 xm_defines="USG SVR3"
4647 xmake_file=i386/x-sysv3
4648 if test x$gas = xyes
4649 then
4650 if test x$stabs = xyes
4651 then
4652 tm_file=i386/svr3dbx.h
4653 tmake_file=i386/t-svr3dbx
4654 extra_parts="svr3.ifile svr3z.rfile"
4655 else
4656 tm_file=i386/svr3gas.h
4657 extra_parts="crtbegin.o crtend.o"
4658 tmake_file=i386/t-crtstuff
4660 else
4661 tm_file=i386/sysv3.h
4662 extra_parts="crtbegin.o crtend.o"
4663 tmake_file=i386/t-crtstuff
4665 tmake_file="$tmake_file i386/t-crtpic"
4667 i386-*-vsta) # Intel 80386's running VSTa kernel
4668 xm_file="${xm_file} i386/xm-vsta.h"
4669 tm_file=i386/vsta.h
4670 tmake_file=i386/t-vsta
4671 xmake_file=i386/x-vsta
4673 i[34567]86-*-win32)
4674 xm_file="${xm_file} i386/xm-cygwin.h"
4675 tmake_file=i386/t-cygwin
4676 tm_file=i386/win32.h
4677 xmake_file=i386/x-cygwin
4678 extra_objs=winnt.o
4679 if test x$enable_threads = xyes; then
4680 thread_file='win32'
4682 exeext=.exe
4684 i[34567]86-*-pe | i[34567]86-*-cygwin*)
4685 xm_file="${xm_file} i386/xm-cygwin.h"
4686 tmake_file=i386/t-cygwin
4687 tm_file=i386/cygwin.h
4688 xmake_file=i386/x-cygwin
4689 extra_objs=winnt.o
4690 if test x$enable_threads = xyes; then
4691 thread_file='win32'
4693 exeext=.exe
4695 i[34567]86-*-mingw32*)
4696 tm_file=i386/mingw32.h
4697 xm_file="${xm_file} i386/xm-mingw32.h"
4698 tmake_file="i386/t-cygwin i386/t-mingw32"
4699 extra_objs=winnt.o
4700 xmake_file=i386/x-cygwin
4701 if test x$enable_threads = xyes; then
4702 thread_file='win32'
4704 exeext=.exe
4705 case $machine in
4706 *mingw32msv*)
4708 *minwg32crt* | *mingw32*)
4709 tm_file="${tm_file} i386/crtdll.h"
4711 esac
4713 i[34567]86-*-uwin*)
4714 tm_file=i386/uwin.h
4715 xm_file="${xm_file} i386/xm-uwin.h"
4716 xm_defines="USG NO_STAB_H"
4717 tmake_file="i386/t-cygwin i386/t-uwin"
4718 extra_objs=winnt.o
4719 xmake_file=i386/x-cygwin
4720 if test x$enable_threads = xyes; then
4721 thread_file='win32'
4723 exeext=.exe
4725 i[34567]86-*-interix*)
4726 tm_file="i386/i386-interix.h interix.h"
4727 xm_file="i386/xm-i386-interix.h xm-interix.h"
4728 xm_defines="USG"
4729 tmake_file="i386/t-interix"
4730 extra_objs=interix.o
4731 xmake_file=x-interix
4732 if test x$enable_threads = xyes ; then
4733 thread_file='posix'
4735 if test x$stabs = xyes ; then
4736 tm_file="${tm_file} dbxcoff.h"
4739 i[34567]86-*-winnt3*)
4740 tm_file=i386/win-nt.h
4741 out_file=i386/i386.c
4742 xm_file="xm-winnt.h ${xm_file}"
4743 xmake_file=winnt/x-winnt
4744 tmake_file=i386/t-winnt
4745 extra_host_objs="winnt.o oldnames.o"
4746 extra_gcc_objs="spawnv.o oldnames.o"
4747 if test x$gnu_ld != xyes
4748 then
4749 extra_programs=ld.exe
4751 if test x$enable_threads = xyes; then
4752 thread_file='win32'
4755 i[34567]86-dg-dgux*)
4756 xm_file="xm-alloca.h ${xm_file}"
4757 xm_defines="USG POSIX"
4758 out_file=i386/dgux.c
4759 tm_file=i386/dgux.h
4760 tmake_file=i386/t-dgux
4761 xmake_file=i386/x-dgux
4762 install_headers_dir=install-headers-cpio
4764 i860-alliant-*) # Alliant FX/2800
4765 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
4766 xm_file="${xm_file}"
4767 xmake_file=i860/x-fx2800
4768 tmake_file=i860/t-fx2800
4769 extra_parts="crtbegin.o crtend.o"
4771 i860-*-bsd*)
4772 tm_file="${tm_file} i860/bsd.h"
4773 if test x$gas = xyes
4774 then
4775 tm_file="${tm_file} i860/bsd-gas.h"
4777 use_collect2=yes
4779 i860-*-mach*)
4780 tm_file="${tm_file} i860/mach.h"
4781 tmake_file=t-libc-ok
4783 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
4784 tm_file="${tm_file} svr3.h i860/paragon.h"
4785 xm_defines="USG SVR3"
4786 tmake_file=t-osf
4788 i860-*-sysv3*)
4789 tm_file="${tm_file} svr3.h i860/sysv3.h"
4790 xm_defines="USG SVR3"
4791 xmake_file=i860/x-sysv3
4792 extra_parts="crtbegin.o crtend.o"
4794 i860-*-sysv4*)
4795 tm_file="${tm_file} svr4.h i860/sysv4.h"
4796 xm_defines="USG SVR3"
4797 xmake_file=i860/x-sysv4
4798 tmake_file=t-svr4
4799 extra_parts="crtbegin.o crtend.o"
4801 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
4802 tm_file="${tm_file} i960/vx960.h"
4803 tmake_file=i960/t-vxworks960
4804 use_collect2=yes
4805 thread_file='vxworks'
4807 i960-wrs-vxworks5* | i960-wrs-vxworks)
4808 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
4809 tmake_file=i960/t-vxworks960
4810 use_collect2=yes
4811 thread_file='vxworks'
4813 i960-wrs-vxworks*)
4814 tm_file="${tm_file} i960/vx960.h"
4815 tmake_file=i960/t-vxworks960
4816 use_collect2=yes
4817 thread_file='vxworks'
4819 i960-*-coff*)
4820 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
4821 tmake_file=i960/t-960bare
4822 use_collect2=yes
4824 i960-*-rtems)
4825 tmake_file="i960/t-960bare t-rtems"
4826 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
4827 use_collect2=yes
4829 i960-*-*) # Default i960 environment.
4830 use_collect2=yes
4832 ia64*-*-elf*)
4833 tm_file=ia64/elf.h
4834 tmake_file="ia64/t-ia64"
4835 target_cpu_default="0"
4836 if test x$gas = xyes
4837 then
4838 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
4840 if test x$gnu_ld = xyes
4841 then
4842 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
4845 ia64*-*-linux*)
4846 tm_file=ia64/linux.h
4847 tmake_file="t-linux ia64/t-ia64"
4848 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
4849 if test x$enable_threads = xyes; then
4850 thread_file='posix'
4853 m32r-*-elf*)
4854 extra_parts="crtinit.o crtfini.o"
4856 m68000-convergent-sysv*)
4857 tm_file=m68k/ctix.h
4858 xm_file="m68k/xm-3b1.h ${xm_file}"
4859 xm_defines=USG
4860 use_collect2=yes
4861 extra_headers=math-68881.h
4863 m68000-hp-bsd*) # HP 9000/200 running BSD
4864 tm_file=m68k/hp2bsd.h
4865 xmake_file=m68k/x-hp2bsd
4866 use_collect2=yes
4867 extra_headers=math-68881.h
4869 m68000-hp-hpux*) # HP 9000 series 300
4870 xm_file="xm-alloca.h ${xm_file}"
4871 xm_defines="USG"
4872 if test x$gas = xyes
4873 then
4874 xmake_file=m68k/x-hp320g
4875 tm_file=m68k/hp310g.h
4876 else
4877 xmake_file=m68k/x-hp320
4878 tm_file=m68k/hp310.h
4880 install_headers_dir=install-headers-cpio
4881 use_collect2=yes
4882 extra_headers=math-68881.h
4884 m68000-sun-sunos3*)
4885 tm_file=m68k/sun2.h
4886 use_collect2=yes
4887 extra_headers=math-68881.h
4889 m68000-sun-sunos4*)
4890 tm_file=m68k/sun2o4.h
4891 use_collect2=yes
4892 extra_headers=math-68881.h
4894 m68000-att-sysv*)
4895 xm_file="m68k/xm-3b1.h ${xm_file}"
4896 xm_defines=USG
4897 if test x$gas = xyes
4898 then
4899 tm_file=m68k/3b1g.h
4900 else
4901 tm_file=m68k/3b1.h
4903 use_collect2=yes
4904 extra_headers=math-68881.h
4906 m68k-apple-aux*) # Apple Macintosh running A/UX
4907 xm_defines="USG AUX"
4908 tmake_file=m68k/t-aux
4909 install_headers_dir=install-headers-cpio
4910 extra_headers=math-68881.h
4911 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
4912 tm_file=
4913 if test "$gnu_ld" = yes
4914 then
4915 tm_file="${tm_file} m68k/auxgld.h"
4916 else
4917 tm_file="${tm_file} m68k/auxld.h"
4919 if test "$gas" = yes
4920 then
4921 tm_file="${tm_file} m68k/auxgas.h"
4922 else
4923 tm_file="${tm_file} m68k/auxas.h"
4925 tm_file="${tm_file} m68k/a-ux.h"
4926 float_format=m68k
4928 m68k-apollo-*)
4929 tm_file=m68k/apollo68.h
4930 xmake_file=m68k/x-apollo68
4931 use_collect2=yes
4932 extra_headers=math-68881.h
4933 float_format=m68k
4935 m68k-altos-sysv*) # Altos 3068
4936 if test x$gas = xyes
4937 then
4938 tm_file=m68k/altos3068.h
4939 xm_defines=USG
4940 else
4941 echo "The Altos is supported only with the GNU assembler" 1>&2
4942 exit 1
4944 extra_headers=math-68881.h
4946 m68k-bull-sysv*) # Bull DPX/2
4947 if test x$gas = xyes
4948 then
4949 if test x$stabs = xyes
4950 then
4951 tm_file=m68k/dpx2cdbx.h
4952 else
4953 tm_file=m68k/dpx2g.h
4955 else
4956 tm_file=m68k/dpx2.h
4958 xm_file="xm-alloca.h ${xm_file}"
4959 xm_defines=USG
4960 xmake_file=m68k/x-dpx2
4961 use_collect2=yes
4962 extra_headers=math-68881.h
4964 m68k-atari-sysv4*) # Atari variant of V.4.
4965 tm_file=m68k/atari.h
4966 xm_file="xm-alloca.h ${xm_file}"
4967 xm_defines="USG FULL_PROTOTYPES"
4968 tmake_file=t-svr4
4969 extra_parts="crtbegin.o crtend.o"
4970 extra_headers=math-68881.h
4971 float_format=m68k
4973 m68k-motorola-sysv*)
4974 tm_file=m68k/mot3300.h
4975 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
4976 if test x$gas = xyes
4977 then
4978 xmake_file=m68k/x-mot3300-gas
4979 if test x$gnu_ld = xyes
4980 then
4981 tmake_file=m68k/t-mot3300-gald
4982 else
4983 tmake_file=m68k/t-mot3300-gas
4984 use_collect2=yes
4986 else
4987 xmake_file=m68k/x-mot3300
4988 if test x$gnu_ld = xyes
4989 then
4990 tmake_file=m68k/t-mot3300-gld
4991 else
4992 tmake_file=m68k/t-mot3300
4993 use_collect2=yes
4996 gdb_needs_out_file_path=yes
4997 extra_parts="crt0.o mcrt0.o"
4998 extra_headers=math-68881.h
4999 float_format=m68k
5001 m68k-ncr-sysv*) # NCR Tower 32 SVR3
5002 tm_file=m68k/tower-as.h
5003 xm_defines="USG SVR3"
5004 xmake_file=m68k/x-tower
5005 extra_parts="crtbegin.o crtend.o"
5006 extra_headers=math-68881.h
5008 m68k-plexus-sysv*)
5009 tm_file=m68k/plexus.h
5010 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
5011 xm_defines=USG
5012 use_collect2=yes
5013 extra_headers=math-68881.h
5015 m68k-tti-*)
5016 tm_file=m68k/pbb.h
5017 xm_file="xm-alloca.h ${xm_file}"
5018 xm_defines=USG
5019 extra_headers=math-68881.h
5021 m68k-crds-unos*)
5022 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
5023 xm_defines="USG unos"
5024 xmake_file=m68k/x-crds
5025 tm_file=m68k/crds.h
5026 use_collect2=yes
5027 extra_headers=math-68881.h
5029 m68k-cbm-sysv4*) # Commodore variant of V.4.
5030 tm_file=m68k/amix.h
5031 xm_file="xm-alloca.h ${xm_file}"
5032 xm_defines="USG FULL_PROTOTYPES"
5033 xmake_file=m68k/x-amix
5034 tmake_file=t-svr4
5035 extra_parts="crtbegin.o crtend.o"
5036 extra_headers=math-68881.h
5037 float_format=m68k
5039 m68k-ccur-rtu)
5040 tm_file=m68k/ccur-GAS.h
5041 xmake_file=m68k/x-ccur
5042 extra_headers=math-68881.h
5043 use_collect2=yes
5044 float_format=m68k
5046 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
5047 tm_file=m68k/hp3bsd44.h
5048 xmake_file=m68k/x-hp3bsd44
5049 use_collect2=yes
5050 extra_headers=math-68881.h
5051 float_format=m68k
5053 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
5054 tm_file=m68k/hp3bsd.h
5055 use_collect2=yes
5056 extra_headers=math-68881.h
5057 float_format=m68k
5059 m68k-isi-bsd*)
5060 if test x$with_fp = xno
5061 then
5062 tm_file=m68k/isi-nfp.h
5063 else
5064 tm_file=m68k/isi.h
5065 float_format=m68k
5067 use_collect2=yes
5068 extra_headers=math-68881.h
5070 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
5071 xm_file="xm-alloca.h ${xm_file}"
5072 xm_defines="USG"
5073 if test x$gas = xyes
5074 then
5075 xmake_file=m68k/x-hp320g
5076 tm_file=m68k/hp320g.h
5077 else
5078 xmake_file=m68k/x-hp320
5079 tm_file=m68k/hpux7.h
5081 install_headers_dir=install-headers-cpio
5082 use_collect2=yes
5083 extra_headers=math-68881.h
5084 float_format=m68k
5086 m68k-hp-hpux*) # HP 9000 series 300
5087 xm_file="xm-alloca.h ${xm_file}"
5088 xm_defines="USG"
5089 if test x$gas = xyes
5090 then
5091 xmake_file=m68k/x-hp320g
5092 tm_file=m68k/hp320g.h
5093 else
5094 xmake_file=m68k/x-hp320
5095 tm_file=m68k/hp320.h
5097 install_headers_dir=install-headers-cpio
5098 use_collect2=yes
5099 extra_headers=math-68881.h
5100 float_format=m68k
5102 m68k-sun-mach*)
5103 tm_file=m68k/sun3mach.h
5104 use_collect2=yes
5105 extra_headers=math-68881.h
5106 float_format=m68k
5108 m68k-sony-newsos3*)
5109 if test x$gas = xyes
5110 then
5111 tm_file=m68k/news3gas.h
5112 else
5113 tm_file=m68k/news3.h
5115 use_collect2=yes
5116 extra_headers=math-68881.h
5117 float_format=m68k
5119 m68k-sony-bsd* | m68k-sony-newsos*)
5120 if test x$gas = xyes
5121 then
5122 tm_file=m68k/newsgas.h
5123 else
5124 tm_file=m68k/news.h
5126 use_collect2=yes
5127 extra_headers=math-68881.h
5128 float_format=m68k
5130 m68k-next-nextstep2*)
5131 tm_file=m68k/next21.h
5132 xm_file="m68k/xm-next.h ${xm_file}"
5133 tmake_file=m68k/t-next
5134 xmake_file=m68k/x-next
5135 extra_objs=nextstep.o
5136 extra_headers=math-68881.h
5137 use_collect2=yes
5138 float_format=m68k
5140 m68k-next-nextstep[34]*)
5141 tm_file=m68k/next.h
5142 xm_file="m68k/xm-next.h ${xm_file}"
5143 tmake_file=m68k/t-next
5144 xmake_file=m68k/x-next
5145 extra_objs=nextstep.o
5146 extra_parts="crtbegin.o crtend.o"
5147 extra_headers=math-68881.h
5148 float_format=m68k
5149 if test x$enable_threads = xyes; then
5150 thread_file='mach'
5153 m68k-sun-sunos3*)
5154 if test x$with_fp = xno
5155 then
5156 tm_file=m68k/sun3n3.h
5157 else
5158 tm_file=m68k/sun3o3.h
5159 float_format=m68k
5161 use_collect2=yes
5162 extra_headers=math-68881.h
5164 m68k-sun-sunos*) # For SunOS 4 (the default).
5165 if test x$with_fp = xno
5166 then
5167 tm_file=m68k/sun3n.h
5168 else
5169 tm_file=m68k/sun3.h
5170 float_format=m68k
5172 use_collect2=yes
5173 extra_headers=math-68881.h
5175 m68k-wrs-vxworks*)
5176 tm_file=m68k/vxm68k.h
5177 tmake_file=m68k/t-vxworks68
5178 extra_headers=math-68881.h
5179 thread_file='vxworks'
5180 float_format=m68k
5182 m68k-*-aout*)
5183 tmake_file=m68k/t-m68kbare
5184 tm_file="m68k/m68k-aout.h libgloss.h"
5185 extra_headers=math-68881.h
5186 float_format=m68k
5188 m68k-*-coff*)
5189 tmake_file=m68k/t-m68kbare
5190 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
5191 extra_headers=math-68881.h
5192 float_format=m68k
5194 m68020-*-elf* | m68k-*-elf*)
5195 tm_file="m68k/m68020-elf.h"
5196 xm_file=m68k/xm-m68kv.h
5197 tmake_file=m68k/t-m68kelf
5198 header_files=math-68881.h
5200 m68k-*-lynxos*)
5201 if test x$gas = xyes
5202 then
5203 tm_file=m68k/lynx.h
5204 else
5205 tm_file=m68k/lynx-ng.h
5207 xm_file=m68k/xm-lynx.h
5208 xmake_file=x-lynx
5209 tmake_file=m68k/t-lynx
5210 extra_headers=math-68881.h
5211 float_format=m68k
5213 m68k*-*-netbsd*)
5214 tm_file=m68k/netbsd.h
5215 tmake_file=t-netbsd
5216 float_format=m68k
5217 use_collect2=yes
5219 m68k*-*-openbsd*)
5220 float_format=m68k
5221 # we need collect2 until our bug is fixed...
5222 use_collect2=yes
5224 m68k-*-sysv3*) # Motorola m68k's running system V.3
5225 xm_file="xm-alloca.h ${xm_file}"
5226 xm_defines=USG
5227 xmake_file=m68k/x-m68kv
5228 extra_parts="crtbegin.o crtend.o"
5229 extra_headers=math-68881.h
5230 float_format=m68k
5232 m68k-*-sysv4*) # Motorola m68k's running system V.4
5233 tm_file=m68k/m68kv4.h
5234 xm_file="xm-alloca.h ${xm_file}"
5235 xm_defines=USG
5236 tmake_file=t-svr4
5237 extra_parts="crtbegin.o crtend.o"
5238 extra_headers=math-68881.h
5239 float_format=m68k
5241 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
5242 # with a.out format
5243 xmake_file=x-linux
5244 tm_file=m68k/linux-aout.h
5245 tmake_file="t-linux-aout m68k/t-linux-aout"
5246 extra_headers=math-68881.h
5247 float_format=m68k
5248 gnu_ld=yes
5250 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
5251 # with ELF format using the
5252 # GNU/Linux C library 5
5253 xmake_file=x-linux
5254 tm_file=m68k/linux.h
5255 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
5256 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5257 extra_headers=math-68881.h
5258 float_format=m68k
5259 gnu_ld=yes
5261 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
5262 # with ELF format using glibc 2
5263 # aka the GNU/Linux C library 6.
5264 xmake_file=x-linux
5265 tm_file=m68k/linux.h
5266 tmake_file="t-linux m68k/t-linux"
5267 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5268 extra_headers=math-68881.h
5269 float_format=m68k
5270 gnu_ld=yes
5271 if test x$enable_threads = xyes; then
5272 thread_file='posix'
5275 m68k-*-psos*)
5276 tmake_file=m68k/t-m68kbare
5277 tm_file=m68k/m68k-psos.h
5278 extra_headers=math-68881.h
5279 float_format=m68k
5281 m68k-*-rtemscoff*)
5282 tmake_file="m68k/t-m68kbare t-rtems"
5283 tm_file=m68k/rtems.h
5284 extra_headers=math-68881.h
5285 float_format=m68k
5287 m68k-*-rtemself*|m68k-*-rtems*)
5288 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
5289 tm_file=m68k/rtemself.h
5290 extra_headers=math-68881.h
5291 float_format=m68k
5293 m88k-dg-dgux*)
5294 case $machine in
5295 m88k-dg-dguxbcs*)
5296 tm_file=m88k/dguxbcs.h
5297 tmake_file=m88k/t-dguxbcs
5300 tm_file=m88k/dgux.h
5301 tmake_file=m88k/t-dgux
5303 esac
5304 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
5305 xmake_file=m88k/x-dgux
5306 if test x$gas = xyes
5307 then
5308 tmake_file=m88k/t-dgux-gas
5311 m88k-dolphin-sysv3*)
5312 tm_file=m88k/dolph.h
5313 extra_parts="crtbegin.o crtend.o"
5314 xm_file="m88k/xm-sysv3.h ${xm_file}"
5315 xmake_file=m88k/x-dolph
5316 if test x$gas = xyes
5317 then
5318 tmake_file=m88k/t-m88k-gas
5321 m88k-tektronix-sysv3)
5322 tm_file=m88k/tekXD88.h
5323 extra_parts="crtbegin.o crtend.o"
5324 xm_file="m88k/xm-sysv3.h ${xm_file}"
5325 xmake_file=m88k/x-tekXD88
5326 if test x$gas = xyes
5327 then
5328 tmake_file=m88k/t-m88k-gas
5331 m88k-*-aout*)
5332 tm_file=m88k/m88k-aout.h
5334 m88k-*-coff*)
5335 tm_file=m88k/m88k-coff.h
5336 tmake_file=m88k/t-bug
5338 m88k-*-luna*)
5339 tm_file=m88k/luna.h
5340 extra_parts="crtbegin.o crtend.o"
5341 if test x$gas = xyes
5342 then
5343 tmake_file=m88k/t-luna-gas
5344 else
5345 tmake_file=m88k/t-luna
5348 m88k-*-openbsd*)
5349 tmake_file="${tmake_file} m88k/t-luna-gas"
5351 m88k-*-sysv3*)
5352 tm_file=m88k/sysv3.h
5353 extra_parts="crtbegin.o crtend.o"
5354 xm_file="m88k/xm-sysv3.h ${xm_file}"
5355 xmake_file=m88k/x-sysv3
5356 if test x$gas = xyes
5357 then
5358 tmake_file=m88k/t-m88k-gas
5361 m88k-*-sysv4*)
5362 tm_file=m88k/sysv4.h
5363 extra_parts="crtbegin.o crtend.o"
5364 xmake_file=m88k/x-sysv4
5365 tmake_file=m88k/t-sysv4
5367 mcore-*-elf)
5368 tm_file=mcore/mcore-elf.h
5369 tmake_file=mcore/t-mcore
5371 mcore-*-pe*)
5372 tm_file=mcore/mcore-pe.h
5373 tmake_file=mcore/t-mcore-pe
5375 mips-sgi-irix6*) # SGI System V.4., IRIX 6
5376 if test "x$gnu_ld" = xyes
5377 then
5378 tm_file="mips/iris6.h mips/iris6gld.h"
5379 else
5380 tm_file=mips/iris6.h
5382 tmake_file=mips/t-iris6
5383 xm_file=mips/xm-iris6.h
5384 xmake_file=mips/x-iris6
5385 # if test x$enable_threads = xyes; then
5386 # thread_file='irix'
5387 # fi
5389 mips-wrs-vxworks)
5390 tm_file="mips/elf.h mips/vxworks.h"
5391 tmake_file=mips/t-ecoff
5392 gas=yes
5393 gnu_ld=yes
5394 extra_parts="crtbegin.o crtend.o"
5395 thread_file='vxworks'
5397 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
5398 tm_file="mips/iris6.h mips/cross64.h"
5399 xm_defines=USG
5400 xm_file="mips/xm-iris5.h"
5401 xmake_file=mips/x-iris
5402 tmake_file=mips/t-cross64
5403 # See comment in mips/iris[56].h files.
5404 use_collect2=yes
5405 # if test x$enable_threads = xyes; then
5406 # thread_file='irix'
5407 # fi
5409 mips-sni-sysv4)
5410 if test x$gas = xyes
5411 then
5412 if test x$stabs = xyes
5413 then
5414 tm_file=mips/iris5gdb.h
5415 else
5416 tm_file="mips/sni-svr4.h mips/sni-gas.h"
5418 else
5419 tm_file=mips/sni-svr4.h
5421 xm_defines=USG
5422 xmake_file=mips/x-sni-svr4
5423 tmake_file=mips/t-mips-gas
5424 if test x$gnu_ld != xyes
5425 then
5426 use_collect2=yes
5429 mips-sgi-irix5*) # SGI System V.4., IRIX 5
5430 if test x$gas = xyes
5431 then
5432 tm_file="mips/iris5.h mips/iris5gas.h"
5433 if test x$stabs = xyes
5434 then
5435 tm_file="${tm_file} dbx.h"
5437 else
5438 tm_file=mips/iris5.h
5440 xm_defines=USG
5441 xm_file="mips/xm-iris5.h"
5442 xmake_file=mips/x-iris
5443 # mips-tfile doesn't work yet
5444 tmake_file=mips/t-mips-gas
5445 # See comment in mips/iris5.h file.
5446 use_collect2=yes
5447 # if test x$enable_threads = xyes; then
5448 # thread_file='irix'
5449 # fi
5451 mips-sgi-irix4loser*) # Mostly like a MIPS.
5452 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
5453 if test x$stabs = xyes; then
5454 tm_file="${tm_file} dbx.h"
5456 xm_defines=USG
5457 xmake_file=mips/x-iris
5458 if test x$gas = xyes
5459 then
5460 tmake_file=mips/t-mips-gas
5461 else
5462 extra_passes="mips-tfile mips-tdump"
5464 if test x$gnu_ld != xyes
5465 then
5466 use_collect2=yes
5468 # if test x$enable_threads = xyes; then
5469 # thread_file='irix'
5470 # fi
5472 mips-sgi-irix4*) # Mostly like a MIPS.
5473 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
5474 if test x$stabs = xyes; then
5475 tm_file="${tm_file} dbx.h"
5477 xm_defines=USG
5478 xmake_file=mips/x-iris
5479 if test x$gas = xyes
5480 then
5481 tmake_file=mips/t-mips-gas
5482 else
5483 extra_passes="mips-tfile mips-tdump"
5485 if test x$gnu_ld != xyes
5486 then
5487 use_collect2=yes
5489 # if test x$enable_threads = xyes; then
5490 # thread_file='irix'
5491 # fi
5493 mips-sgi-*) # Mostly like a MIPS.
5494 tm_file="mips/iris3.h ${tm_file}"
5495 if test x$stabs = xyes; then
5496 tm_file="${tm_file} dbx.h"
5498 xm_defines=USG
5499 xmake_file=mips/x-iris3
5500 if test x$gas = xyes
5501 then
5502 tmake_file=mips/t-mips-gas
5503 else
5504 extra_passes="mips-tfile mips-tdump"
5506 if test x$gnu_ld != xyes
5507 then
5508 use_collect2=yes
5511 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
5512 tm_file="mips/osfrose.h ${tm_file}"
5513 xmake_file=mips/x-osfrose
5514 tmake_file=mips/t-osfrose
5515 extra_objs=halfpic.o
5516 use_collect2=yes
5518 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
5519 tm_file=mips/dec-osf1.h
5520 if test x$stabs = xyes; then
5521 tm_file="${tm_file} dbx.h"
5523 xmake_file=mips/x-dec-osf1
5524 if test x$gas = xyes
5525 then
5526 tmake_file=mips/t-mips-gas
5527 else
5528 tmake_file=mips/t-ultrix
5529 extra_passes="mips-tfile mips-tdump"
5531 if test x$gnu_ld != xyes
5532 then
5533 use_collect2=yes
5536 mips-dec-bsd*) # Decstation running 4.4 BSD
5537 tm_file=mips/dec-bsd.h
5538 if test x$gas = xyes
5539 then
5540 tmake_file=mips/t-mips-gas
5541 else
5542 tmake_file=mips/t-ultrix
5543 extra_passes="mips-tfile mips-tdump"
5545 if test x$gnu_ld != xyes
5546 then
5547 use_collect2=yes
5550 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
5551 tm_file=mips/netbsd.h
5552 # On NetBSD, the headers are already okay, except for math.h.
5553 tmake_file=t-netbsd
5555 mips*-*-linux*) # Linux MIPS, either endian.
5556 xmake_file=x-linux
5557 case $machine in
5558 mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;;
5559 *) tm_file="mips/elf.h mips/linux.h" ;;
5560 esac
5561 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5562 gnu_ld=yes
5563 gas=yes
5564 if test x$enable_threads = xyes; then
5565 thread_file='posix'
5568 mips*el-*-openbsd*) # mips little endian
5569 target_cpu_default="MASK_GAS|MASK_ABICALLS"
5571 mips*-*-openbsd*) # mips big endian
5572 target_cpu_default="MASK_GAS|MASK_ABICALLS"
5573 tm_file="mips/openbsd-be.h ${tm_file}"
5575 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
5576 tm_file="mips/news4.h ${tm_file}"
5577 if test x$stabs = xyes; then
5578 tm_file="${tm_file} dbx.h"
5580 if test x$gas = xyes
5581 then
5582 tmake_file=mips/t-mips-gas
5583 else
5584 extra_passes="mips-tfile mips-tdump"
5586 if test x$gnu_ld != xyes
5587 then
5588 use_collect2=yes
5590 xmake_file=mips/x-sony
5592 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
5593 # That is based on svr4.
5594 # t-svr4 is not right because this system doesn't use ELF.
5595 tm_file="mips/news5.h ${tm_file}"
5596 if test x$stabs = xyes; then
5597 tm_file="${tm_file} dbx.h"
5599 xm_defines=USG
5600 if test x$gas = xyes
5601 then
5602 tmake_file=mips/t-mips-gas
5603 else
5604 extra_passes="mips-tfile mips-tdump"
5606 if test x$gnu_ld != xyes
5607 then
5608 use_collect2=yes
5611 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
5612 tm_file="mips/svr4-5.h mips/svr4-t.h"
5613 if test x$stabs = xyes; then
5614 tm_file="${tm_file} dbx.h"
5616 xm_defines=USG
5617 xmake_file=mips/x-sysv
5618 if test x$gas = xyes
5619 then
5620 tmake_file=mips/t-mips-gas
5621 extra_parts="crtbegin.o crtend.o"
5622 else
5623 tmake_file=mips/t-mips
5624 extra_passes="mips-tfile mips-tdump"
5626 if test x$gnu_ld != xyes
5627 then
5628 use_collect2=yes
5631 mips-*-ultrix* | mips-dec-mach3) # Decstation.
5632 tm_file="mips/ultrix.h ${tm_file}"
5633 if test x$stabs = xyes; then
5634 tm_file="${tm_file} dbx.h"
5636 xmake_file=mips/x-ultrix
5637 if test x$gas = xyes
5638 then
5639 tmake_file=mips/t-mips-gas
5640 else
5641 tmake_file=mips/t-ultrix
5642 extra_passes="mips-tfile mips-tdump"
5644 if test x$gnu_ld != xyes
5645 then
5646 use_collect2=yes
5649 mips-*-riscos[56789]bsd*)
5650 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
5651 if test x$stabs = xyes; then
5652 tm_file="${tm_file} dbx.h"
5654 if test x$gas = xyes
5655 then
5656 tmake_file=mips/t-bsd-gas
5657 else
5658 tmake_file=mips/t-bsd
5659 extra_passes="mips-tfile mips-tdump"
5661 if test x$gnu_ld != xyes
5662 then
5663 use_collect2=yes
5666 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
5667 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
5668 if test x$stabs = xyes; then
5669 tm_file="${tm_file} dbx.h"
5671 if test x$gas = xyes
5672 then
5673 tmake_file=mips/t-bsd-gas
5674 else
5675 tmake_file=mips/t-bsd
5676 extra_passes="mips-tfile mips-tdump"
5678 if test x$gnu_ld != xyes
5679 then
5680 use_collect2=yes
5683 mips-*-riscos[56789]sysv4*)
5684 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
5685 if test x$stabs = xyes; then
5686 tm_file="${tm_file} dbx.h"
5688 xmake_file=mips/x-sysv
5689 if test x$gas = xyes
5690 then
5691 tmake_file=mips/t-svr4-gas
5692 else
5693 tmake_file=mips/t-svr4
5694 extra_passes="mips-tfile mips-tdump"
5696 if test x$gnu_ld != xyes
5697 then
5698 use_collect2=yes
5701 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
5702 tm_file="mips/svr4-4.h ${tm_file}"
5703 if test x$stabs = xyes; then
5704 tm_file="${tm_file} dbx.h"
5706 xm_defines=USG
5707 xmake_file=mips/x-sysv
5708 if test x$gas = xyes
5709 then
5710 tmake_file=mips/t-svr4-gas
5711 else
5712 tmake_file=mips/t-svr4
5713 extra_passes="mips-tfile mips-tdump"
5715 if test x$gnu_ld != xyes
5716 then
5717 use_collect2=yes
5720 mips-*-riscos[56789]sysv*)
5721 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
5722 if test x$stabs = xyes; then
5723 tm_file="${tm_file} dbx.h"
5725 xm_defines=USG
5726 xmake_file=mips/x-sysv
5727 if test x$gas = xyes
5728 then
5729 tmake_file=mips/t-svr3-gas
5730 else
5731 tmake_file=mips/t-svr3
5732 extra_passes="mips-tfile mips-tdump"
5734 if test x$gnu_ld != xyes
5735 then
5736 use_collect2=yes
5739 mips-*-sysv* | mips-*-riscos*sysv*)
5740 tm_file="mips/svr3-4.h ${tm_file}"
5741 if test x$stabs = xyes; then
5742 tm_file="${tm_file} dbx.h"
5744 xm_defines=USG
5745 xmake_file=mips/x-sysv
5746 if test x$gas = xyes
5747 then
5748 tmake_file=mips/t-svr3-gas
5749 else
5750 tmake_file=mips/t-svr3
5751 extra_passes="mips-tfile mips-tdump"
5753 if test x$gnu_ld != xyes
5754 then
5755 use_collect2=yes
5758 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
5759 tm_file=mips/mips-5.h
5760 if test x$stabs = xyes; then
5761 tm_file="${tm_file} dbx.h"
5763 if test x$gas = xyes
5764 then
5765 tmake_file=mips/t-mips-gas
5766 else
5767 extra_passes="mips-tfile mips-tdump"
5769 if test x$gnu_ld != xyes
5770 then
5771 use_collect2=yes
5774 mips-*-gnu*)
5776 mipsel-*-ecoff*)
5777 tm_file=mips/ecoffl.h
5778 if test x$stabs = xyes; then
5779 tm_file="${tm_file} dbx.h"
5781 tmake_file=mips/t-ecoff
5783 mips-*-ecoff*)
5784 tm_file="gofast.h mips/ecoff.h"
5785 if test x$stabs = xyes; then
5786 tm_file="${tm_file} dbx.h"
5788 tmake_file=mips/t-ecoff
5790 mipsel-*-elf*)
5791 tm_file="mips/elfl.h"
5792 tmake_file=mips/t-elf
5794 mips-*-elf*)
5795 tm_file="mips/elf.h"
5796 tmake_file=mips/t-elf
5798 mips64el-*-elf*)
5799 tm_file="mips/elfl64.h"
5800 tmake_file=mips/t-elf
5802 mips64orionel-*-elf*)
5803 tm_file="mips/elforion.h mips/elfl64.h"
5804 tmake_file=mips/t-elf
5806 mips64-*-elf*)
5807 tm_file="mips/elf64.h"
5808 tmake_file=mips/t-elf
5810 mips64orion-*-elf*)
5811 tm_file="mips/elforion.h mips/elf64.h"
5812 tmake_file=mips/t-elf
5814 mips64orion-*-rtems*)
5815 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
5816 tmake_file="mips/t-elf t-rtems"
5818 mipstx39el-*-elf*)
5819 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
5820 tmake_file=mips/t-r3900
5822 mipstx39-*-elf*)
5823 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
5824 tmake_file=mips/t-r3900
5826 mips-*-*) # Default MIPS RISC-OS 4.0.
5827 if test x$stabs = xyes; then
5828 tm_file="${tm_file} dbx.h"
5830 if test x$gas = xyes
5831 then
5832 tmake_file=mips/t-mips-gas
5833 else
5834 extra_passes="mips-tfile mips-tdump"
5836 if test x$gnu_ld != xyes
5837 then
5838 use_collect2=yes
5841 mn10200-*-*)
5842 float_format=i32
5843 cpu_type=mn10200
5844 tm_file="mn10200/mn10200.h"
5845 if test x$stabs = xyes
5846 then
5847 tm_file="${tm_file} dbx.h"
5849 use_collect2=no
5851 mn10300-*-*)
5852 cpu_type=mn10300
5853 tm_file="mn10300/mn10300.h"
5854 if test x$stabs = xyes
5855 then
5856 tm_file="${tm_file} dbx.h"
5858 use_collect2=no
5860 ns32k-encore-bsd*)
5861 tm_file=ns32k/encore.h
5862 use_collect2=yes
5864 ns32k-sequent-bsd*)
5865 tm_file=ns32k/sequent.h
5866 use_collect2=yes
5868 ns32k-tek6100-bsd*)
5869 tm_file=ns32k/tek6100.h
5870 use_collect2=yes
5872 ns32k-tek6200-bsd*)
5873 tm_file=ns32k/tek6200.h
5874 use_collect2=yes
5876 # This has not been updated to GCC 2.
5877 # ns32k-ns-genix*)
5878 # xm_defines=USG
5879 # xmake_file=ns32k/x-genix
5880 # tm_file=ns32k/genix.h
5881 # use_collect2=yes
5882 # ;;
5883 ns32k-merlin-*)
5884 tm_file=ns32k/merlin.h
5885 use_collect2=yes
5887 ns32k-pc532-mach*)
5888 tm_file=ns32k/pc532-mach.h
5889 use_collect2=yes
5891 ns32k-pc532-minix*)
5892 tm_file=ns32k/pc532-min.h
5893 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
5894 xm_defines=USG
5895 use_collect2=yes
5897 ns32k-*-netbsd*)
5898 tm_file=ns32k/netbsd.h
5899 xm_file="ns32k/xm-netbsd.h ${xm_file}"
5900 # On NetBSD, the headers are already okay, except for math.h.
5901 tmake_file=t-netbsd
5902 use_collect2=yes
5904 pdp11-*-bsd)
5905 tm_file="${tm_file} pdp11/2bsd.h"
5907 pdp11-*-*)
5909 avr-*-*)
5911 ns32k-*-openbsd*)
5912 # Nothing special
5914 # This has not been updated to GCC 2.
5915 # pyramid-*-*)
5916 # cpu_type=pyr
5917 # xmake_file=pyr/x-pyr
5918 # use_collect2=yes
5919 # ;;
5921 pj*-linux*)
5922 tm_file="svr4.h pj/linux.h ${tm_file}"
5924 pj-*)
5926 pjl-*)
5927 tm_file="svr4.h pj/pjl.h ${tm_file}"
5930 romp-*-aos*)
5931 use_collect2=yes
5933 romp-*-mach*)
5934 xmake_file=romp/x-mach
5935 use_collect2=yes
5937 romp-*-openbsd*)
5938 # Nothing special
5940 powerpc-*-openbsd*)
5941 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
5943 powerpc-*-beos*)
5944 cpu_type=rs6000
5945 tm_file=rs6000/beos.h
5946 xm_file=rs6000/xm-beos.h
5947 tmake_file=rs6000/t-beos
5948 xmake_file=rs6000/x-beos
5950 powerpc-*-sysv*)
5951 tm_file=rs6000/sysv4.h
5952 xm_file="rs6000/xm-sysv4.h"
5953 xm_defines="USG POSIX"
5954 extra_headers=ppc-asm.h
5955 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5956 xmake_file=rs6000/x-sysv4
5958 powerpc-*-eabiaix*)
5959 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
5960 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5961 extra_headers=ppc-asm.h
5963 powerpc-*-eabisim*)
5964 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
5965 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5966 extra_headers=ppc-asm.h
5968 powerpc-*-elf*)
5969 tm_file="rs6000/sysv4.h"
5970 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5971 extra_headers=ppc-asm.h
5973 powerpc-*-eabi*)
5974 tm_file="rs6000/sysv4.h rs6000/eabi.h"
5975 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5976 extra_headers=ppc-asm.h
5978 powerpc-*-rtems*)
5979 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
5980 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
5981 extra_headers=ppc-asm.h
5983 powerpc-*-linux-gnulibc1)
5984 tm_file="rs6000/sysv4.h rs6000/linux.h"
5985 xm_file=rs6000/xm-sysv4.h
5986 out_file=rs6000/rs6000.c
5987 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5988 xmake_file=x-linux
5989 extra_headers=ppc-asm.h
5990 if test x$enable_threads = xyes; then
5991 thread_file='posix'
5994 powerpc-*-linux-gnu*)
5995 tm_file="rs6000/sysv4.h rs6000/linux.h"
5996 xm_file="rs6000/xm-sysv4.h"
5997 xm_defines="USG ${xm_defines}"
5998 out_file=rs6000/rs6000.c
5999 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
6000 xmake_file=x-linux
6001 extra_headers=ppc-asm.h
6002 if test x$enable_threads = xyes; then
6003 thread_file='posix'
6006 powerpc-wrs-vxworks*)
6007 cpu_type=rs6000
6008 xm_file="rs6000/xm-sysv4.h"
6009 xm_defines="USG POSIX"
6010 tm_file="rs6000/sysv4.h rs6000/vxppc.h"
6011 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
6012 extra_headers=ppc-asm.h
6013 thread_file='vxworks'
6015 powerpcle-wrs-vxworks*)
6016 cpu_type=rs6000
6017 xm_file="rs6000/xm-sysv4.h"
6018 xm_defines="USG POSIX"
6019 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
6020 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
6021 extra_headers=ppc-asm.h
6022 thread_file='vxworks'
6024 powerpcle-*-sysv*)
6025 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
6026 xm_file="rs6000/xm-sysv4.h"
6027 xm_defines="USG POSIX"
6028 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
6029 xmake_file=rs6000/x-sysv4
6030 extra_headers=ppc-asm.h
6032 powerpcle-*-elf*)
6033 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
6034 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
6035 extra_headers=ppc-asm.h
6037 powerpcle-*-eabisim*)
6038 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
6039 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
6040 extra_headers=ppc-asm.h
6042 powerpcle-*-eabi*)
6043 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
6044 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
6045 extra_headers=ppc-asm.h
6047 powerpcle-*-solaris2*)
6048 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
6049 xm_file="rs6000/xm-sysv4.h"
6050 xm_defines="USG POSIX"
6051 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
6052 xmake_file=rs6000/x-sysv4
6053 extra_headers=ppc-asm.h
6055 rs6000-ibm-aix3.[01]*)
6056 tm_file=rs6000/aix31.h
6057 xmake_file=rs6000/x-aix31
6058 float_format=none
6059 use_collect2=yes
6061 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
6062 tm_file=rs6000/aix3newas.h
6063 if test x$host != x$target
6064 then
6065 tmake_file=rs6000/t-xnewas
6066 else
6067 tmake_file=rs6000/t-newas
6069 float_format=none
6070 use_collect2=yes
6072 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
6073 tm_file=rs6000/aix41.h
6074 if test x$host != x$target
6075 then
6076 tmake_file=rs6000/t-xnewas
6077 else
6078 tmake_file=rs6000/t-newas
6080 if test "$gnu_ld" = yes
6081 then
6082 xmake_file=rs6000/x-aix41-gld
6083 else
6084 tmake_file="rs6000/t-newas rs6000/t-aix41"
6086 xmake_file=rs6000/x-aix41
6087 float_format=none
6088 use_collect2=yes
6090 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
6091 tm_file=rs6000/aix43.h
6092 tmake_file=rs6000/t-aix43
6093 xmake_file=rs6000/x-aix41
6094 float_format=none
6095 use_collect2=yes
6097 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
6098 tm_file=rs6000/aix43.h
6099 tmake_file=rs6000/t-aix43
6100 xmake_file=rs6000/x-aix41
6101 float_format=none
6102 use_collect2=yes
6104 rs6000-ibm-aix*)
6105 float_format=none
6106 use_collect2=yes
6108 rs6000-bull-bosx)
6109 float_format=none
6110 use_collect2=yes
6112 rs6000-*-mach*)
6113 tm_file=rs6000/mach.h
6114 xm_file="${xm_file} rs6000/xm-mach.h"
6115 xmake_file=rs6000/x-mach
6116 use_collect2=yes
6118 rs6000-*-lynxos*)
6119 tm_file=rs6000/lynx.h
6120 xm_file=rs6000/xm-lynx.h
6121 tmake_file=rs6000/t-rs6000
6122 xmake_file=rs6000/x-lynx
6123 use_collect2=yes
6125 sh-*-elf*)
6126 tm_file=sh/elf.h
6127 float_format=sh
6129 sh-*-rtemself*)
6130 tmake_file="sh/t-sh t-rtems"
6131 tm_file=sh/rtemself.h
6132 float_format=sh
6134 sh-*-rtems*)
6135 tmake_file="sh/t-sh t-rtems"
6136 tm_file=sh/rtems.h
6137 float_format=sh
6139 sh-*-*)
6140 float_format=sh
6142 sparc-tti-*)
6143 tm_file=sparc/pbd.h
6144 xm_file="xm-alloca.h ${xm_file}"
6145 xm_defines=USG
6147 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
6148 tm_file=sparc/vxsparc.h
6149 tmake_file=sparc/t-vxsparc
6150 use_collect2=yes
6151 thread_file='vxworks'
6153 sparc-*-aout*)
6154 tmake_file=sparc/t-sparcbare
6155 tm_file="sparc/aout.h libgloss.h"
6157 sparc-*-netbsd*)
6158 tm_file=sparc/netbsd.h
6159 tmake_file=t-netbsd
6160 use_collect2=yes
6162 sparc-*-openbsd*)
6163 # we need collect2 until our bug is fixed...
6164 use_collect2=yes
6166 sparc-*-bsd*)
6167 tm_file=sparc/bsd.h
6169 sparc-*-elf*)
6170 tm_file=sparc/elf.h
6171 tmake_file=sparc/t-elf
6172 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
6173 #float_format=i128
6174 float_format=i64
6176 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
6177 xm_file="${xm_file} sparc/xm-linux.h"
6178 tm_file=sparc/linux-aout.h
6179 xmake_file=x-linux
6180 gnu_ld=yes
6182 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
6183 xm_file="${xm_file} sparc/xm-linux.h"
6184 xmake_file=x-linux
6185 tm_file=sparc/linux.h
6186 tmake_file="t-linux t-linux-gnulibc1"
6187 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6188 gnu_ld=yes
6189 float_format=sparc
6191 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
6192 xm_file="${xm_file} sparc/xm-linux.h"
6193 xmake_file=x-linux
6194 tm_file=sparc/linux.h
6195 tmake_file="t-linux"
6196 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6197 gnu_ld=yes
6198 if test x$enable_threads = xyes; then
6199 thread_file='posix'
6201 float_format=sparc
6203 sparc-*-lynxos*)
6204 if test x$gas = xyes
6205 then
6206 tm_file=sparc/lynx.h
6207 else
6208 tm_file=sparc/lynx-ng.h
6210 xm_file=sparc/xm-lynx.h
6211 tmake_file=sparc/t-sunos41
6212 xmake_file=x-lynx
6214 sparc-*-rtemsaout*)
6215 tmake_file="sparc/t-sparcbare t-rtems"
6216 tm_file=sparc/rtems.h
6218 sparc-*-rtems*|sparc-*-rtemself*)
6219 tm_file="sparc/rtemself.h"
6220 tmake_file="sparc/t-elf t-rtems"
6221 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
6222 #float_format=i128
6223 float_format=i64
6225 sparcv9-*-solaris2*)
6226 if test x$gnu_ld = xyes
6227 then
6228 tm_file=sparc/sol2-64.h
6229 else
6230 tm_file=sparc/sol2-sld-64.h
6232 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
6233 xm_defines="USG POSIX"
6234 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
6235 xmake_file=sparc/x-sysv4
6236 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
6237 float_format=none
6238 if test x${enable_threads} = x ; then
6239 enable_threads=$have_pthread_h
6240 if test x${enable_threads} = x ; then
6241 enable_threads=$have_thread_h
6244 if test x${enable_threads} = xyes ; then
6245 if test x${have_pthread_h} = xyes ; then
6246 thread_file='posix'
6247 else
6248 thread_file='solaris'
6252 sparc-hal-solaris2*)
6253 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
6254 xm_defines="USG POSIX"
6255 tm_file="sparc/sol2.h sparc/hal.h"
6256 tmake_file="sparc/t-halos sparc/t-sol2"
6257 xmake_file=sparc/x-sysv4
6258 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
6259 case $machine in
6260 *-*-solaris2.[0-4])
6261 float_format=i128
6264 float_format=none
6266 esac
6267 thread_file='solaris'
6269 sparc-*-solaris2*)
6270 if test x$gnu_ld = xyes
6271 then
6272 tm_file=sparc/sol2.h
6273 else
6274 tm_file=sparc/sol2-sld.h
6276 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
6277 xm_defines="USG POSIX"
6278 tmake_file=sparc/t-sol2
6279 xmake_file=sparc/x-sysv4
6280 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
6281 case $machine in
6282 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
6283 *-*-solaris2*)
6284 if test x$gnu_ld = xyes
6285 then
6286 tm_file=sparc/sol2-64.h
6287 else
6288 tm_file=sparc/sol2-sld-64.h
6290 tmake_file="$tmake_file sparc/t-sol2-64"
6292 esac
6293 case $machine in
6294 *-*-solaris2.[0-4])
6295 float_format=i128
6298 float_format=none
6300 esac
6301 if test x${enable_threads} = x; then
6302 enable_threads=$have_pthread_h
6303 if test x${enable_threads} = x; then
6304 enable_threads=$have_thread_h
6307 if test x${enable_threads} = xyes; then
6308 if test x${have_pthread_h} = xyes; then
6309 thread_file='posix'
6310 else
6311 thread_file='solaris'
6315 sparc-*-sunos4.0*)
6316 tm_file=sparc/sunos4.h
6317 tmake_file=sparc/t-sunos40
6318 use_collect2=yes
6320 sparc-*-sunos4*)
6321 tm_file=sparc/sunos4.h
6322 tmake_file=sparc/t-sunos41
6323 use_collect2=yes
6324 if test x$gas = xyes; then
6325 tm_file="${tm_file} sparc/sun4gas.h"
6328 sparc-*-sunos3*)
6329 tm_file=sparc/sun4o3.h
6330 use_collect2=yes
6332 sparc-*-sysv4*)
6333 tm_file=sparc/sysv4.h
6334 xm_file="sparc/xm-sysv4.h"
6335 xm_defines="USG POSIX"
6336 tmake_file=t-svr4
6337 xmake_file=sparc/x-sysv4
6338 extra_parts="crtbegin.o crtend.o"
6340 sparc-*-vxsim*)
6341 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
6342 xm_defines="USG POSIX"
6343 tm_file=sparc/vxsim.h
6344 tmake_file=sparc/t-vxsparc
6345 xmake_file=sparc/x-sysv4
6347 sparclet-*-aout*)
6348 tm_file="sparc/splet.h libgloss.h"
6349 tmake_file=sparc/t-splet
6351 sparclite-*-coff*)
6352 tm_file="sparc/litecoff.h libgloss.h"
6353 tmake_file=sparc/t-sparclite
6355 sparclite-*-aout*)
6356 tm_file="sparc/lite.h aoutos.h libgloss.h"
6357 tmake_file=sparc/t-sparclite
6359 sparclite-*-elf*)
6360 tm_file="sparc/liteelf.h"
6361 tmake_file=sparc/t-sparclite
6362 extra_parts="crtbegin.o crtend.o"
6364 sparc86x-*-aout*)
6365 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
6366 tmake_file=sparc/t-sp86x
6368 sparc86x-*-elf*)
6369 tm_file="sparc/sp86x-elf.h"
6370 tmake_file=sparc/t-sp86x
6371 extra_parts="crtbegin.o crtend.o"
6373 sparc64-*-aout*)
6374 tmake_file=sparc/t-sp64
6375 tm_file=sparc/sp64-aout.h
6377 sparc64-*-elf*)
6378 tmake_file=sparc/t-sp64
6379 tm_file=sparc/sp64-elf.h
6380 extra_parts="crtbegin.o crtend.o"
6382 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
6383 tmake_file="t-linux sparc/t-linux64"
6384 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
6385 tm_file=sparc/linux64.h
6386 xmake_file=x-linux
6387 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6388 gnu_ld=yes
6389 if test x$enable_threads = xyes; then
6390 thread_file='posix'
6392 float_format=sparc
6394 # This hasn't been upgraded to GCC 2.
6395 # tahoe-harris-*) # Harris tahoe, using COFF.
6396 # tm_file=tahoe/harris.h
6397 # ;;
6398 # tahoe-*-bsd*) # tahoe running BSD
6399 # ;;
6401 thumb*-*-*)
6402 { echo "configure: error:
6403 *** The Thumb targets have been depreciated. The equivalent
6404 *** ARM based toolchain can now generated Thumb instructions
6405 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
6407 # This hasn't been upgraded to GCC 2.
6408 # tron-*-*)
6409 # cpu_type=gmicro
6410 # use_collect2=yes
6411 # ;;
6412 v850-*-rtems*)
6413 cpu_type=v850
6414 tm_file="v850/rtems.h"
6415 xm_file="v850/xm-v850.h"
6416 tmake_file="v850/t-v850 t-rtems"
6417 if test x$stabs = xyes
6418 then
6419 tm_file="${tm_file} dbx.h"
6421 use_collect2=no
6423 v850-*-*)
6424 target_cpu_default="TARGET_CPU_generic"
6425 cpu_type=v850
6426 tm_file="v850/v850.h"
6427 xm_file="v850/xm-v850.h"
6428 tmake_file=v850/t-v850
6429 if test x$stabs = xyes
6430 then
6431 tm_file="${tm_file} dbx.h"
6433 use_collect2=no
6435 vax-*-bsd*) # vaxen running BSD
6436 use_collect2=yes
6437 float_format=vax
6439 vax-*-sysv*) # vaxen running system V
6440 tm_file="${tm_file} vax/vaxv.h"
6441 xm_defines=USG
6442 float_format=vax
6444 vax-*-netbsd*)
6445 tm_file="${tm_file} netbsd.h vax/netbsd.h"
6446 tmake_file=t-netbsd
6447 float_format=vax
6448 use_collect2=yes
6450 vax-*-openbsd*)
6451 tmake_file="${tmake_file} vax/t-openbsd"
6453 vax-*-ultrix*) # vaxen running ultrix
6454 tm_file="${tm_file} vax/ultrix.h"
6455 use_collect2=yes
6456 float_format=vax
6458 vax-*-vms*) # vaxen running VMS
6459 xm_file=vax/xm-vms.h
6460 tm_file=vax/vms.h
6461 float_format=vax
6463 vax-*-*) # vax default entry
6464 float_format=vax
6466 we32k-att-sysv*)
6467 xm_file="${xm_file} xm-svr3"
6468 use_collect2=yes
6471 echo "Configuration $machine not supported" 1>&2
6472 exit 1
6474 esac
6476 case $machine in
6477 *-*-linux-gnu*)
6478 ;; # Existing GNU/Linux systems do not use the GNU setup.
6479 *-*-gnu*)
6480 # On the GNU system, the setup is just about the same on
6481 # each different CPU. The specific machines that GNU
6482 # supports are matched above and just set $cpu_type.
6483 xm_file="xm-gnu.h ${xm_file}"
6484 tm_file=${cpu_type}/gnu.h
6485 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
6486 # GNU always uses ELF.
6487 elf=yes
6488 # GNU tools are the only tools.
6489 gnu_ld=yes
6490 gas=yes
6491 xmake_file=x-linux # These details are the same as Linux.
6492 tmake_file=t-gnu # These are not.
6494 *-*-sysv4*)
6495 xmake_try_sysv=x-sysv
6496 install_headers_dir=install-headers-cpio
6498 *-*-sysv*)
6499 install_headers_dir=install-headers-cpio
6501 esac
6503 # Distinguish i[34567]86
6504 # Also, do not run mips-tfile on MIPS if using gas.
6505 # Process --with-cpu= for PowerPC/rs6000
6506 target_cpu_default2=
6507 case $machine in
6508 i486-*-*)
6509 target_cpu_default2=1
6511 i586-*-*)
6512 case $target_alias in
6513 k6-*)
6514 target_cpu_default2=4
6517 target_cpu_default2=2
6519 esac
6521 i686-*-* | i786-*-*)
6522 target_cpu_default2=3
6524 alpha*-*-*)
6525 case $machine in
6526 alphaev6[78]*)
6527 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
6529 alphaev6*)
6530 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
6532 alphapca56*)
6533 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
6535 alphaev56*)
6536 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
6538 alphaev5*)
6539 target_cpu_default2="MASK_CPU_EV5"
6541 esac
6543 if test x$gas = xyes
6544 then
6545 if test "$target_cpu_default2" = ""
6546 then
6547 target_cpu_default2="MASK_GAS"
6548 else
6549 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
6553 arm*-*-*)
6554 case "x$with_cpu" in
6556 # The most generic
6557 target_cpu_default2="TARGET_CPU_generic"
6560 # Distinguish cores, and major variants
6561 # arm7m doesn't exist, but D & I don't affect code
6562 xarm[23678] | xarm250 | xarm[67][01]0 \
6563 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
6564 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
6565 | xstrongarm | xstrongarm110 | xstrongarm1100)
6566 target_cpu_default2="TARGET_CPU_$with_cpu"
6569 xyes | xno)
6570 echo "--with-cpu must be passed a value" 1>&2
6571 exit 1
6575 if test x$pass2done = xyes
6576 then
6577 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6578 exit 1
6581 esac
6584 mips*-*-ecoff* | mips*-*-elf*)
6585 if test x$gas = xyes
6586 then
6587 if test x$gnu_ld = xyes
6588 then
6589 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
6590 else
6591 target_cpu_default2="MASK_GAS"
6595 mips*-*-*)
6596 if test x$gas = xyes
6597 then
6598 target_cpu_default2="MASK_GAS"
6601 powerpc*-*-* | rs6000-*-*)
6602 case "x$with_cpu" in
6606 xcommon | xpower | xpower2 | xpowerpc | xrios \
6607 | xrios1 | xrios2 | xrsc | xrsc1 \
6608 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
6609 | xec603e | x740 | x750 | x401 \
6610 | x403 | x505 | x801 | x821 | x823 | x860)
6611 target_cpu_default2="\"$with_cpu\""
6614 xyes | xno)
6615 echo "--with-cpu must be passed a value" 1>&2
6616 exit 1
6620 if test x$pass2done = xyes
6621 then
6622 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6623 exit 1
6626 esac
6628 sparc*-*-*)
6629 case ".$with_cpu" in
6631 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
6633 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
6634 target_cpu_default2="TARGET_CPU_$with_cpu"
6637 if test x$pass2done = xyes
6638 then
6639 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6640 exit 1
6643 esac
6645 esac
6647 if test "$target_cpu_default2" != ""
6648 then
6649 if test "$target_cpu_default" != ""
6650 then
6651 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
6652 else
6653 target_cpu_default=$target_cpu_default2
6657 # No need for collect2 if we have the GNU linker.
6658 # Actually, there is now; GNU ld doesn't handle the EH info or
6659 # collecting for shared libraries.
6660 #case x$gnu_ld in
6661 #xyes)
6662 # use_collect2=
6663 # ;;
6664 #esac
6666 # Save data on machine being used to compile GCC in build_xm_file.
6667 # Save data on host machine in vars host_xm_file and host_xmake_file.
6668 if test x$pass1done = x
6669 then
6670 if test x"$xm_file" = x
6671 then build_xm_file=$cpu_type/xm-$cpu_type.h
6672 else build_xm_file=$xm_file
6674 build_xm_defines=$xm_defines
6675 build_install_headers_dir=$install_headers_dir
6676 build_exeext=$exeext
6677 pass1done=yes
6678 else
6679 if test x$pass2done = x
6680 then
6681 if test x"$xm_file" = x
6682 then host_xm_file=$cpu_type/xm-$cpu_type.h
6683 else host_xm_file=$xm_file
6685 host_xm_defines=$xm_defines
6686 if test x"$xmake_file" = x
6687 then xmake_file=$cpu_type/x-$cpu_type
6689 host_xmake_file="$xmake_file"
6690 host_truncate_target=$truncate_target
6691 host_extra_gcc_objs=$extra_gcc_objs
6692 host_extra_objs=$extra_host_objs
6693 host_exeext=$exeext
6694 pass2done=yes
6697 done
6699 extra_objs="${host_extra_objs} ${extra_objs}"
6701 # Default the target-machine variables that were not explicitly set.
6702 if test x"$tm_file" = x
6703 then tm_file=$cpu_type/$cpu_type.h; fi
6705 if test x$extra_headers = x
6706 then extra_headers=; fi
6708 if test x"$xm_file" = x
6709 then xm_file=$cpu_type/xm-$cpu_type.h; fi
6711 if test x$md_file = x
6712 then md_file=$cpu_type/$cpu_type.md; fi
6714 if test x$out_file = x
6715 then out_file=$cpu_type/$cpu_type.c; fi
6717 if test x"$tmake_file" = x
6718 then tmake_file=$cpu_type/t-$cpu_type
6721 if test x"$dwarf2" = xyes
6722 then tm_file="$tm_file tm-dwarf2.h"
6725 if test x$float_format = x
6726 then float_format=i64
6729 if test $float_format = none
6730 then float_h_file=Makefile.in
6731 else float_h_file=float-$float_format.h
6734 # Handle cpp installation.
6735 if test x$enable_cpp != xno
6736 then
6737 tmake_file="$tmake_file t-install-cpp"
6740 # Say what files are being used for the output code and MD file.
6741 echo "Using \`$srcdir/config/$out_file' to output insns."
6742 echo "Using \`$srcdir/config/$md_file' as machine description file."
6744 count=a
6745 for f in $tm_file; do
6746 count=${count}x
6747 done
6748 if test $count = ax; then
6749 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
6750 else
6751 echo "Using the following target machine macro files:"
6752 for f in $tm_file; do
6753 echo " $srcdir/config/$f"
6754 done
6757 count=a
6758 for f in $host_xm_file; do
6759 count=${count}x
6760 done
6761 if test $count = ax; then
6762 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
6763 else
6764 echo "Using the following host machine macro files:"
6765 for f in $host_xm_file; do
6766 echo " $srcdir/config/$f"
6767 done
6770 if test "$host_xm_file" != "$build_xm_file"; then
6771 count=a
6772 for f in $build_xm_file; do
6773 count=${count}x
6774 done
6775 if test $count = ax; then
6776 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
6777 else
6778 echo "Using the following build machine macro files:"
6779 for f in $build_xm_file; do
6780 echo " $srcdir/config/$f"
6781 done
6785 if test x$thread_file = x; then
6786 if test x$target_thread_file != x; then
6787 thread_file=$target_thread_file
6788 else
6789 thread_file='single'
6793 # Set up the header files.
6794 # $links is the list of header files to create.
6795 # $vars is the list of shell variables with file names to include.
6796 # auto-host.h is the file containing items generated by autoconf and is
6797 # the first file included by config.h.
6798 null_defines=
6799 host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
6801 # If host=build, it is correct to have hconfig include auto-host.h
6802 # as well. If host!=build, we are in error and need to do more
6803 # work to find out the build config parameters.
6804 if test x$host = x$build
6805 then
6806 build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
6807 else
6808 # We create a subdir, then run autoconf in the subdir.
6809 # To prevent recursion we set host and build for the new
6810 # invocation of configure to the build for this invocation
6811 # of configure.
6812 tempdir=build.$$
6813 rm -rf $tempdir
6814 mkdir $tempdir
6815 cd $tempdir
6816 case ${srcdir} in
6817 /*) realsrcdir=${srcdir};;
6818 *) realsrcdir=../${srcdir};;
6819 esac
6820 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
6821 --target=$target --host=$build --build=$build
6823 # We just finished tests for the build machine, so rename
6824 # the file auto-build.h in the gcc directory.
6825 mv auto-host.h ../auto-build.h
6826 cd ..
6827 rm -rf $tempdir
6828 build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
6831 xm_file="gansidecl.h ${xm_file}"
6832 tm_file="gansidecl.h ${tm_file}"
6834 vars="host_xm_file tm_file tm_p_file xm_file build_xm_file"
6835 links="config.h tm.h tm_p.h tconfig.h hconfig.h"
6836 defines="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
6838 rm -f config.bak
6839 if test -f config.status; then mv -f config.status config.bak; fi
6841 # Make the links.
6842 while test -n "$vars"
6844 set $vars; var=$1; shift; vars=$*
6845 set $links; link=$1; shift; links=$*
6846 set $defines; define=$1; shift; defines=$*
6848 rm -f $link
6849 # Make sure the file is created, even if it is empty.
6850 echo >$link
6852 # Define TARGET_CPU_DEFAULT if the system wants one.
6853 # This substitutes for lots of *.h files.
6854 if test "$target_cpu_default" != "" -a $link = tm.h
6855 then
6856 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
6859 for file in `eval echo '$'$var`; do
6860 case $file in
6861 auto-host.h | auto-build.h )
6864 echo '#ifdef IN_GCC' >>$link
6866 esac
6867 echo "#include \"$file\"" >>$link
6868 case $file in
6869 auto-host.h | auto-build.h )
6872 echo '#endif' >>$link
6874 esac
6875 done
6877 for def in `eval echo '$'$define`; do
6878 echo "#ifndef $def" >>$link
6879 echo "#define $def" >>$link
6880 echo "#endif" >>$link
6881 done
6882 done
6884 # Truncate the target if necessary
6885 if test x$host_truncate_target != x; then
6886 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
6889 # Get the version trigger filename from the toplevel
6890 if test "${with_gcc_version_trigger+set}" = set; then
6891 gcc_version_trigger=$with_gcc_version_trigger
6892 else
6893 gcc_version_trigger=${srcdir}/version.c
6895 gcc_version=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
6897 # Internationalization
6898 PACKAGE=gcc
6899 VERSION="$gcc_version"
6900 cat >> confdefs.h <<EOF
6901 #define PACKAGE "$PACKAGE"
6904 cat >> confdefs.h <<EOF
6905 #define VERSION "$VERSION"
6911 ALL_LINGUAS="en_GB"
6913 # Enable NLS support by default
6914 # Check whether --enable-nls or --disable-nls was given.
6915 if test "${enable_nls+set}" = set; then
6916 enableval="$enable_nls"
6918 else
6919 enable_nls=yes
6923 # if cross compiling, disable NLS support.
6924 # It's not worth the trouble, at least for now.
6926 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
6927 echo "configure: warning: Disabling NLS support for canadian cross compiler." 1>&2
6928 enable_nls=no
6932 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
6933 echo "configure:6934: checking for strerror in -lcposix" >&5
6934 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
6935 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6936 echo $ac_n "(cached) $ac_c" 1>&6
6937 else
6938 ac_save_LIBS="$LIBS"
6939 LIBS="-lcposix $LIBS"
6940 cat > conftest.$ac_ext <<EOF
6941 #line 6942 "configure"
6942 #include "confdefs.h"
6943 /* Override any gcc2 internal prototype to avoid an error. */
6944 /* We use char because int might match the return type of a gcc2
6945 builtin and then its argument prototype would still apply. */
6946 char strerror();
6948 int main() {
6949 strerror()
6950 ; return 0; }
6952 if { (eval echo configure:6953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6953 rm -rf conftest*
6954 eval "ac_cv_lib_$ac_lib_var=yes"
6955 else
6956 echo "configure: failed program was:" >&5
6957 cat conftest.$ac_ext >&5
6958 rm -rf conftest*
6959 eval "ac_cv_lib_$ac_lib_var=no"
6961 rm -f conftest*
6962 LIBS="$ac_save_LIBS"
6965 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6966 echo "$ac_t""yes" 1>&6
6967 LIBS="$LIBS -lcposix"
6968 else
6969 echo "$ac_t""no" 1>&6
6974 echo $ac_n "checking for working const""... $ac_c" 1>&6
6975 echo "configure:6976: checking for working const" >&5
6976 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6977 echo $ac_n "(cached) $ac_c" 1>&6
6978 else
6979 cat > conftest.$ac_ext <<EOF
6980 #line 6981 "configure"
6981 #include "confdefs.h"
6983 int main() {
6985 /* Ultrix mips cc rejects this. */
6986 typedef int charset[2]; const charset x;
6987 /* SunOS 4.1.1 cc rejects this. */
6988 char const *const *ccp;
6989 char **p;
6990 /* NEC SVR4.0.2 mips cc rejects this. */
6991 struct point {int x, y;};
6992 static struct point const zero = {0,0};
6993 /* AIX XL C 1.02.0.0 rejects this.
6994 It does not let you subtract one const X* pointer from another in an arm
6995 of an if-expression whose if-part is not a constant expression */
6996 const char *g = "string";
6997 ccp = &g + (g ? g-g : 0);
6998 /* HPUX 7.0 cc rejects these. */
6999 ++ccp;
7000 p = (char**) ccp;
7001 ccp = (char const *const *) p;
7002 { /* SCO 3.2v4 cc rejects this. */
7003 char *t;
7004 char const *s = 0 ? (char *) 0 : (char const *) 0;
7006 *t++ = 0;
7008 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7009 int x[] = {25, 17};
7010 const int *foo = &x[0];
7011 ++foo;
7013 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7014 typedef const int *iptr;
7015 iptr p = 0;
7016 ++p;
7018 { /* AIX XL C 1.02.0.0 rejects this saying
7019 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7020 struct s { int j; const int *ap[3]; };
7021 struct s *b; b->j = 5;
7023 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7024 const int foo = 10;
7027 ; return 0; }
7029 if { (eval echo configure:7030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7030 rm -rf conftest*
7031 ac_cv_c_const=yes
7032 else
7033 echo "configure: failed program was:" >&5
7034 cat conftest.$ac_ext >&5
7035 rm -rf conftest*
7036 ac_cv_c_const=no
7038 rm -f conftest*
7041 echo "$ac_t""$ac_cv_c_const" 1>&6
7042 if test $ac_cv_c_const = no; then
7043 cat >> confdefs.h <<\EOF
7044 #define const
7049 echo $ac_n "checking for off_t""... $ac_c" 1>&6
7050 echo "configure:7051: checking for off_t" >&5
7051 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
7052 echo $ac_n "(cached) $ac_c" 1>&6
7053 else
7054 cat > conftest.$ac_ext <<EOF
7055 #line 7056 "configure"
7056 #include "confdefs.h"
7057 #include <sys/types.h>
7058 #if STDC_HEADERS
7059 #include <stdlib.h>
7060 #include <stddef.h>
7061 #endif
7063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7064 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7065 rm -rf conftest*
7066 ac_cv_type_off_t=yes
7067 else
7068 rm -rf conftest*
7069 ac_cv_type_off_t=no
7071 rm -f conftest*
7074 echo "$ac_t""$ac_cv_type_off_t" 1>&6
7075 if test $ac_cv_type_off_t = no; then
7076 cat >> confdefs.h <<\EOF
7077 #define off_t long
7082 echo $ac_n "checking for size_t""... $ac_c" 1>&6
7083 echo "configure:7084: checking for size_t" >&5
7084 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
7085 echo $ac_n "(cached) $ac_c" 1>&6
7086 else
7087 cat > conftest.$ac_ext <<EOF
7088 #line 7089 "configure"
7089 #include "confdefs.h"
7090 #include <sys/types.h>
7091 #if STDC_HEADERS
7092 #include <stdlib.h>
7093 #include <stddef.h>
7094 #endif
7096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7097 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7098 rm -rf conftest*
7099 ac_cv_type_size_t=yes
7100 else
7101 rm -rf conftest*
7102 ac_cv_type_size_t=no
7104 rm -f conftest*
7107 echo "$ac_t""$ac_cv_type_size_t" 1>&6
7108 if test $ac_cv_type_size_t = no; then
7109 cat >> confdefs.h <<\EOF
7110 #define size_t unsigned
7115 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7116 # for constant arguments. Useless!
7117 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
7118 echo "configure:7119: checking for working alloca.h" >&5
7119 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
7120 echo $ac_n "(cached) $ac_c" 1>&6
7121 else
7122 cat > conftest.$ac_ext <<EOF
7123 #line 7124 "configure"
7124 #include "confdefs.h"
7125 #include <alloca.h>
7126 int main() {
7127 char *p = alloca(2 * sizeof(int));
7128 ; return 0; }
7130 if { (eval echo configure:7131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7131 rm -rf conftest*
7132 ac_cv_header_alloca_h=yes
7133 else
7134 echo "configure: failed program was:" >&5
7135 cat conftest.$ac_ext >&5
7136 rm -rf conftest*
7137 ac_cv_header_alloca_h=no
7139 rm -f conftest*
7142 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
7143 if test $ac_cv_header_alloca_h = yes; then
7144 cat >> confdefs.h <<\EOF
7145 #define HAVE_ALLOCA_H 1
7150 echo $ac_n "checking for alloca""... $ac_c" 1>&6
7151 echo "configure:7152: checking for alloca" >&5
7152 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
7153 echo $ac_n "(cached) $ac_c" 1>&6
7154 else
7155 cat > conftest.$ac_ext <<EOF
7156 #line 7157 "configure"
7157 #include "confdefs.h"
7159 #ifdef __GNUC__
7160 # define alloca __builtin_alloca
7161 #else
7162 # ifdef _MSC_VER
7163 # include <malloc.h>
7164 # define alloca _alloca
7165 # else
7166 # if HAVE_ALLOCA_H
7167 # include <alloca.h>
7168 # else
7169 # ifdef _AIX
7170 #pragma alloca
7171 # else
7172 # ifndef alloca /* predefined by HP cc +Olibcalls */
7173 char *alloca ();
7174 # endif
7175 # endif
7176 # endif
7177 # endif
7178 #endif
7180 int main() {
7181 char *p = (char *) alloca(1);
7182 ; return 0; }
7184 if { (eval echo configure:7185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7185 rm -rf conftest*
7186 ac_cv_func_alloca_works=yes
7187 else
7188 echo "configure: failed program was:" >&5
7189 cat conftest.$ac_ext >&5
7190 rm -rf conftest*
7191 ac_cv_func_alloca_works=no
7193 rm -f conftest*
7196 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
7197 if test $ac_cv_func_alloca_works = yes; then
7198 cat >> confdefs.h <<\EOF
7199 #define HAVE_ALLOCA 1
7204 if test $ac_cv_func_alloca_works = no; then
7205 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7206 # that cause trouble. Some versions do not even contain alloca or
7207 # contain a buggy version. If you still want to use their alloca,
7208 # use ar to extract alloca.o from them instead of compiling alloca.c.
7209 ALLOCA=alloca.${ac_objext}
7210 cat >> confdefs.h <<\EOF
7211 #define C_ALLOCA 1
7215 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
7216 echo "configure:7217: checking whether alloca needs Cray hooks" >&5
7217 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
7218 echo $ac_n "(cached) $ac_c" 1>&6
7219 else
7220 cat > conftest.$ac_ext <<EOF
7221 #line 7222 "configure"
7222 #include "confdefs.h"
7223 #if defined(CRAY) && ! defined(CRAY2)
7224 webecray
7225 #else
7226 wenotbecray
7227 #endif
7230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7231 egrep "webecray" >/dev/null 2>&1; then
7232 rm -rf conftest*
7233 ac_cv_os_cray=yes
7234 else
7235 rm -rf conftest*
7236 ac_cv_os_cray=no
7238 rm -f conftest*
7242 echo "$ac_t""$ac_cv_os_cray" 1>&6
7243 if test $ac_cv_os_cray = yes; then
7244 for ac_func in _getb67 GETB67 getb67; do
7245 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7246 echo "configure:7247: checking for $ac_func" >&5
7247 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7248 echo $ac_n "(cached) $ac_c" 1>&6
7249 else
7250 cat > conftest.$ac_ext <<EOF
7251 #line 7252 "configure"
7252 #include "confdefs.h"
7253 /* System header to define __stub macros and hopefully few prototypes,
7254 which can conflict with char $ac_func(); below. */
7255 #include <assert.h>
7256 /* Override any gcc2 internal prototype to avoid an error. */
7257 /* We use char because int might match the return type of a gcc2
7258 builtin and then its argument prototype would still apply. */
7259 char $ac_func();
7261 int main() {
7263 /* The GNU C library defines this for functions which it implements
7264 to always fail with ENOSYS. Some functions are actually named
7265 something starting with __ and the normal name is an alias. */
7266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7267 choke me
7268 #else
7269 $ac_func();
7270 #endif
7272 ; return 0; }
7274 if { (eval echo configure:7275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7275 rm -rf conftest*
7276 eval "ac_cv_func_$ac_func=yes"
7277 else
7278 echo "configure: failed program was:" >&5
7279 cat conftest.$ac_ext >&5
7280 rm -rf conftest*
7281 eval "ac_cv_func_$ac_func=no"
7283 rm -f conftest*
7286 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7287 echo "$ac_t""yes" 1>&6
7288 cat >> confdefs.h <<EOF
7289 #define CRAY_STACKSEG_END $ac_func
7292 break
7293 else
7294 echo "$ac_t""no" 1>&6
7297 done
7300 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7301 echo "configure:7302: checking stack direction for C alloca" >&5
7302 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
7303 echo $ac_n "(cached) $ac_c" 1>&6
7304 else
7305 if test "$cross_compiling" = yes; then
7306 ac_cv_c_stack_direction=0
7307 else
7308 cat > conftest.$ac_ext <<EOF
7309 #line 7310 "configure"
7310 #include "confdefs.h"
7311 find_stack_direction ()
7313 static char *addr = 0;
7314 auto char dummy;
7315 if (addr == 0)
7317 addr = &dummy;
7318 return find_stack_direction ();
7320 else
7321 return (&dummy > addr) ? 1 : -1;
7323 main ()
7325 exit (find_stack_direction() < 0);
7328 if { (eval echo configure:7329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7329 then
7330 ac_cv_c_stack_direction=1
7331 else
7332 echo "configure: failed program was:" >&5
7333 cat conftest.$ac_ext >&5
7334 rm -fr conftest*
7335 ac_cv_c_stack_direction=-1
7337 rm -fr conftest*
7342 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
7343 cat >> confdefs.h <<EOF
7344 #define STACK_DIRECTION $ac_cv_c_stack_direction
7350 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7351 unistd.h sys/param.h
7353 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7354 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7355 echo "configure:7356: checking for $ac_hdr" >&5
7356 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7357 echo $ac_n "(cached) $ac_c" 1>&6
7358 else
7359 cat > conftest.$ac_ext <<EOF
7360 #line 7361 "configure"
7361 #include "confdefs.h"
7362 #include <$ac_hdr>
7364 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7365 { (eval echo configure:7366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7366 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7367 if test -z "$ac_err"; then
7368 rm -rf conftest*
7369 eval "ac_cv_header_$ac_safe=yes"
7370 else
7371 echo "$ac_err" >&5
7372 echo "configure: failed program was:" >&5
7373 cat conftest.$ac_ext >&5
7374 rm -rf conftest*
7375 eval "ac_cv_header_$ac_safe=no"
7377 rm -f conftest*
7379 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7380 echo "$ac_t""yes" 1>&6
7381 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7382 cat >> confdefs.h <<EOF
7383 #define $ac_tr_hdr 1
7386 else
7387 echo "$ac_t""no" 1>&6
7389 done
7391 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7392 strdup __argz_count __argz_stringify __argz_next
7394 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7395 echo "configure:7396: checking for $ac_func" >&5
7396 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7397 echo $ac_n "(cached) $ac_c" 1>&6
7398 else
7399 cat > conftest.$ac_ext <<EOF
7400 #line 7401 "configure"
7401 #include "confdefs.h"
7402 /* System header to define __stub macros and hopefully few prototypes,
7403 which can conflict with char $ac_func(); below. */
7404 #include <assert.h>
7405 /* Override any gcc2 internal prototype to avoid an error. */
7406 /* We use char because int might match the return type of a gcc2
7407 builtin and then its argument prototype would still apply. */
7408 char $ac_func();
7410 int main() {
7412 /* The GNU C library defines this for functions which it implements
7413 to always fail with ENOSYS. Some functions are actually named
7414 something starting with __ and the normal name is an alias. */
7415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7416 choke me
7417 #else
7418 $ac_func();
7419 #endif
7421 ; return 0; }
7423 if { (eval echo configure:7424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7424 rm -rf conftest*
7425 eval "ac_cv_func_$ac_func=yes"
7426 else
7427 echo "configure: failed program was:" >&5
7428 cat conftest.$ac_ext >&5
7429 rm -rf conftest*
7430 eval "ac_cv_func_$ac_func=no"
7432 rm -f conftest*
7435 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7436 echo "$ac_t""yes" 1>&6
7437 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7438 cat >> confdefs.h <<EOF
7439 #define $ac_tr_func 1
7442 else
7443 echo "$ac_t""no" 1>&6
7445 done
7448 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7449 for ac_func in stpcpy
7451 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7452 echo "configure:7453: checking for $ac_func" >&5
7453 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7454 echo $ac_n "(cached) $ac_c" 1>&6
7455 else
7456 cat > conftest.$ac_ext <<EOF
7457 #line 7458 "configure"
7458 #include "confdefs.h"
7459 /* System header to define __stub macros and hopefully few prototypes,
7460 which can conflict with char $ac_func(); below. */
7461 #include <assert.h>
7462 /* Override any gcc2 internal prototype to avoid an error. */
7463 /* We use char because int might match the return type of a gcc2
7464 builtin and then its argument prototype would still apply. */
7465 char $ac_func();
7467 int main() {
7469 /* The GNU C library defines this for functions which it implements
7470 to always fail with ENOSYS. Some functions are actually named
7471 something starting with __ and the normal name is an alias. */
7472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7473 choke me
7474 #else
7475 $ac_func();
7476 #endif
7478 ; return 0; }
7480 if { (eval echo configure:7481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7481 rm -rf conftest*
7482 eval "ac_cv_func_$ac_func=yes"
7483 else
7484 echo "configure: failed program was:" >&5
7485 cat conftest.$ac_ext >&5
7486 rm -rf conftest*
7487 eval "ac_cv_func_$ac_func=no"
7489 rm -f conftest*
7492 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7493 echo "$ac_t""yes" 1>&6
7494 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7495 cat >> confdefs.h <<EOF
7496 #define $ac_tr_func 1
7499 else
7500 echo "$ac_t""no" 1>&6
7502 done
7505 if test "${ac_cv_func_stpcpy}" = "yes"; then
7506 cat >> confdefs.h <<\EOF
7507 #define HAVE_STPCPY 1
7512 if test $ac_cv_header_locale_h = yes; then
7513 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
7514 echo "configure:7515: checking for LC_MESSAGES" >&5
7515 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
7516 echo $ac_n "(cached) $ac_c" 1>&6
7517 else
7518 cat > conftest.$ac_ext <<EOF
7519 #line 7520 "configure"
7520 #include "confdefs.h"
7521 #include <locale.h>
7522 int main() {
7523 return LC_MESSAGES
7524 ; return 0; }
7526 if { (eval echo configure:7527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7527 rm -rf conftest*
7528 am_cv_val_LC_MESSAGES=yes
7529 else
7530 echo "configure: failed program was:" >&5
7531 cat conftest.$ac_ext >&5
7532 rm -rf conftest*
7533 am_cv_val_LC_MESSAGES=no
7535 rm -f conftest*
7538 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7539 if test $am_cv_val_LC_MESSAGES = yes; then
7540 cat >> confdefs.h <<\EOF
7541 #define HAVE_LC_MESSAGES 1
7546 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7547 echo "configure:7548: checking whether NLS is requested" >&5
7548 # Check whether --enable-nls or --disable-nls was given.
7549 if test "${enable_nls+set}" = set; then
7550 enableval="$enable_nls"
7551 USE_NLS=$enableval
7552 else
7553 USE_NLS=yes
7556 echo "$ac_t""$USE_NLS" 1>&6
7559 USE_INCLUDED_LIBINTL=no
7561 if test "$USE_NLS" = "yes"; then
7562 cat >> confdefs.h <<\EOF
7563 #define ENABLE_NLS 1
7566 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7567 echo "configure:7568: checking whether included gettext is requested" >&5
7568 # Check whether --with-included-gettext or --without-included-gettext was given.
7569 if test "${with_included_gettext+set}" = set; then
7570 withval="$with_included_gettext"
7571 nls_cv_force_use_gnu_gettext=$withval
7572 else
7573 nls_cv_force_use_gnu_gettext=yes
7576 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7578 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7579 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7580 nls_cv_header_intl=
7581 nls_cv_header_libgt=
7582 CATOBJEXT=NONE
7584 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7585 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7586 echo "configure:7587: checking for libintl.h" >&5
7587 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7588 echo $ac_n "(cached) $ac_c" 1>&6
7589 else
7590 cat > conftest.$ac_ext <<EOF
7591 #line 7592 "configure"
7592 #include "confdefs.h"
7593 #include <libintl.h>
7595 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7596 { (eval echo configure:7597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7597 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7598 if test -z "$ac_err"; then
7599 rm -rf conftest*
7600 eval "ac_cv_header_$ac_safe=yes"
7601 else
7602 echo "$ac_err" >&5
7603 echo "configure: failed program was:" >&5
7604 cat conftest.$ac_ext >&5
7605 rm -rf conftest*
7606 eval "ac_cv_header_$ac_safe=no"
7608 rm -f conftest*
7610 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7611 echo "$ac_t""yes" 1>&6
7612 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7613 echo "configure:7614: checking for gettext in libc" >&5
7614 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7615 echo $ac_n "(cached) $ac_c" 1>&6
7616 else
7617 cat > conftest.$ac_ext <<EOF
7618 #line 7619 "configure"
7619 #include "confdefs.h"
7620 #include <libintl.h>
7621 int main() {
7622 return (int) gettext ("")
7623 ; return 0; }
7625 if { (eval echo configure:7626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7626 rm -rf conftest*
7627 gt_cv_func_gettext_libc=yes
7628 else
7629 echo "configure: failed program was:" >&5
7630 cat conftest.$ac_ext >&5
7631 rm -rf conftest*
7632 gt_cv_func_gettext_libc=no
7634 rm -f conftest*
7637 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7639 if test "$gt_cv_func_gettext_libc" != "yes"; then
7640 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7641 echo "configure:7642: checking for bindtextdomain in -lintl" >&5
7642 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7643 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7644 echo $ac_n "(cached) $ac_c" 1>&6
7645 else
7646 ac_save_LIBS="$LIBS"
7647 LIBS="-lintl $LIBS"
7648 cat > conftest.$ac_ext <<EOF
7649 #line 7650 "configure"
7650 #include "confdefs.h"
7651 /* Override any gcc2 internal prototype to avoid an error. */
7652 /* We use char because int might match the return type of a gcc2
7653 builtin and then its argument prototype would still apply. */
7654 char bindtextdomain();
7656 int main() {
7657 bindtextdomain()
7658 ; return 0; }
7660 if { (eval echo configure:7661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7661 rm -rf conftest*
7662 eval "ac_cv_lib_$ac_lib_var=yes"
7663 else
7664 echo "configure: failed program was:" >&5
7665 cat conftest.$ac_ext >&5
7666 rm -rf conftest*
7667 eval "ac_cv_lib_$ac_lib_var=no"
7669 rm -f conftest*
7670 LIBS="$ac_save_LIBS"
7673 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7674 echo "$ac_t""yes" 1>&6
7675 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7676 echo "configure:7677: checking for gettext in libintl" >&5
7677 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7678 echo $ac_n "(cached) $ac_c" 1>&6
7679 else
7680 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7681 echo "configure:7682: checking for gettext in -lintl" >&5
7682 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7683 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7684 echo $ac_n "(cached) $ac_c" 1>&6
7685 else
7686 ac_save_LIBS="$LIBS"
7687 LIBS="-lintl $LIBS"
7688 cat > conftest.$ac_ext <<EOF
7689 #line 7690 "configure"
7690 #include "confdefs.h"
7691 /* Override any gcc2 internal prototype to avoid an error. */
7692 /* We use char because int might match the return type of a gcc2
7693 builtin and then its argument prototype would still apply. */
7694 char gettext();
7696 int main() {
7697 gettext()
7698 ; return 0; }
7700 if { (eval echo configure:7701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7701 rm -rf conftest*
7702 eval "ac_cv_lib_$ac_lib_var=yes"
7703 else
7704 echo "configure: failed program was:" >&5
7705 cat conftest.$ac_ext >&5
7706 rm -rf conftest*
7707 eval "ac_cv_lib_$ac_lib_var=no"
7709 rm -f conftest*
7710 LIBS="$ac_save_LIBS"
7713 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7714 echo "$ac_t""yes" 1>&6
7715 gt_cv_func_gettext_libintl=yes
7716 else
7717 echo "$ac_t""no" 1>&6
7718 gt_cv_func_gettext_libintl=no
7723 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7724 else
7725 echo "$ac_t""no" 1>&6
7730 if test "$gt_cv_func_gettext_libc" = "yes" \
7731 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7732 cat >> confdefs.h <<\EOF
7733 #define HAVE_GETTEXT 1
7736 # Extract the first word of "msgfmt", so it can be a program name with args.
7737 set dummy msgfmt; ac_word=$2
7738 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7739 echo "configure:7740: checking for $ac_word" >&5
7740 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7741 echo $ac_n "(cached) $ac_c" 1>&6
7742 else
7743 case "$MSGFMT" in
7745 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7748 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7749 for ac_dir in $PATH; do
7750 test -z "$ac_dir" && ac_dir=.
7751 if test -f $ac_dir/$ac_word; then
7752 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7753 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7754 break
7757 done
7758 IFS="$ac_save_ifs"
7759 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7761 esac
7763 MSGFMT="$ac_cv_path_MSGFMT"
7764 if test -n "$MSGFMT"; then
7765 echo "$ac_t""$MSGFMT" 1>&6
7766 else
7767 echo "$ac_t""no" 1>&6
7769 if test "$MSGFMT" != "no"; then
7770 for ac_func in dcgettext
7772 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7773 echo "configure:7774: checking for $ac_func" >&5
7774 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7775 echo $ac_n "(cached) $ac_c" 1>&6
7776 else
7777 cat > conftest.$ac_ext <<EOF
7778 #line 7779 "configure"
7779 #include "confdefs.h"
7780 /* System header to define __stub macros and hopefully few prototypes,
7781 which can conflict with char $ac_func(); below. */
7782 #include <assert.h>
7783 /* Override any gcc2 internal prototype to avoid an error. */
7784 /* We use char because int might match the return type of a gcc2
7785 builtin and then its argument prototype would still apply. */
7786 char $ac_func();
7788 int main() {
7790 /* The GNU C library defines this for functions which it implements
7791 to always fail with ENOSYS. Some functions are actually named
7792 something starting with __ and the normal name is an alias. */
7793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7794 choke me
7795 #else
7796 $ac_func();
7797 #endif
7799 ; return 0; }
7801 if { (eval echo configure:7802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7802 rm -rf conftest*
7803 eval "ac_cv_func_$ac_func=yes"
7804 else
7805 echo "configure: failed program was:" >&5
7806 cat conftest.$ac_ext >&5
7807 rm -rf conftest*
7808 eval "ac_cv_func_$ac_func=no"
7810 rm -f conftest*
7813 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7814 echo "$ac_t""yes" 1>&6
7815 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7816 cat >> confdefs.h <<EOF
7817 #define $ac_tr_func 1
7820 else
7821 echo "$ac_t""no" 1>&6
7823 done
7825 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7826 set dummy gmsgfmt; ac_word=$2
7827 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7828 echo "configure:7829: checking for $ac_word" >&5
7829 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7830 echo $ac_n "(cached) $ac_c" 1>&6
7831 else
7832 case "$GMSGFMT" in
7834 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7836 ?:/*)
7837 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7840 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7841 ac_dummy="$PATH"
7842 for ac_dir in $ac_dummy; do
7843 test -z "$ac_dir" && ac_dir=.
7844 if test -f $ac_dir/$ac_word; then
7845 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7846 break
7848 done
7849 IFS="$ac_save_ifs"
7850 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7852 esac
7854 GMSGFMT="$ac_cv_path_GMSGFMT"
7855 if test -n "$GMSGFMT"; then
7856 echo "$ac_t""$GMSGFMT" 1>&6
7857 else
7858 echo "$ac_t""no" 1>&6
7861 # Extract the first word of "xgettext", so it can be a program name with args.
7862 set dummy xgettext; ac_word=$2
7863 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7864 echo "configure:7865: checking for $ac_word" >&5
7865 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7866 echo $ac_n "(cached) $ac_c" 1>&6
7867 else
7868 case "$XGETTEXT" in
7870 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7873 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7874 for ac_dir in $PATH; do
7875 test -z "$ac_dir" && ac_dir=.
7876 if test -f $ac_dir/$ac_word; then
7877 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7878 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7879 break
7882 done
7883 IFS="$ac_save_ifs"
7884 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7886 esac
7888 XGETTEXT="$ac_cv_path_XGETTEXT"
7889 if test -n "$XGETTEXT"; then
7890 echo "$ac_t""$XGETTEXT" 1>&6
7891 else
7892 echo "$ac_t""no" 1>&6
7895 cat > conftest.$ac_ext <<EOF
7896 #line 7897 "configure"
7897 #include "confdefs.h"
7899 int main() {
7900 extern int _nl_msg_cat_cntr;
7901 return _nl_msg_cat_cntr
7902 ; return 0; }
7904 if { (eval echo configure:7905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7905 rm -rf conftest*
7906 CATOBJEXT=.gmo
7907 DATADIRNAME=share
7908 else
7909 echo "configure: failed program was:" >&5
7910 cat conftest.$ac_ext >&5
7911 rm -rf conftest*
7912 CATOBJEXT=.mo
7913 DATADIRNAME=lib
7915 rm -f conftest*
7916 INSTOBJEXT=.mo
7920 else
7921 echo "$ac_t""no" 1>&6
7925 if test "$CATOBJEXT" = "NONE"; then
7926 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
7927 echo "configure:7928: checking whether catgets can be used" >&5
7928 # Check whether --with-catgets or --without-catgets was given.
7929 if test "${with_catgets+set}" = set; then
7930 withval="$with_catgets"
7931 nls_cv_use_catgets=$withval
7932 else
7933 nls_cv_use_catgets=no
7936 echo "$ac_t""$nls_cv_use_catgets" 1>&6
7938 if test "$nls_cv_use_catgets" = "yes"; then
7939 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
7940 echo "configure:7941: checking for main in -li" >&5
7941 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
7942 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7943 echo $ac_n "(cached) $ac_c" 1>&6
7944 else
7945 ac_save_LIBS="$LIBS"
7946 LIBS="-li $LIBS"
7947 cat > conftest.$ac_ext <<EOF
7948 #line 7949 "configure"
7949 #include "confdefs.h"
7951 int main() {
7952 main()
7953 ; return 0; }
7955 if { (eval echo configure:7956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7956 rm -rf conftest*
7957 eval "ac_cv_lib_$ac_lib_var=yes"
7958 else
7959 echo "configure: failed program was:" >&5
7960 cat conftest.$ac_ext >&5
7961 rm -rf conftest*
7962 eval "ac_cv_lib_$ac_lib_var=no"
7964 rm -f conftest*
7965 LIBS="$ac_save_LIBS"
7968 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7969 echo "$ac_t""yes" 1>&6
7970 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7971 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7972 cat >> confdefs.h <<EOF
7973 #define $ac_tr_lib 1
7976 LIBS="-li $LIBS"
7978 else
7979 echo "$ac_t""no" 1>&6
7982 echo $ac_n "checking for catgets""... $ac_c" 1>&6
7983 echo "configure:7984: checking for catgets" >&5
7984 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
7985 echo $ac_n "(cached) $ac_c" 1>&6
7986 else
7987 cat > conftest.$ac_ext <<EOF
7988 #line 7989 "configure"
7989 #include "confdefs.h"
7990 /* System header to define __stub macros and hopefully few prototypes,
7991 which can conflict with char catgets(); below. */
7992 #include <assert.h>
7993 /* Override any gcc2 internal prototype to avoid an error. */
7994 /* We use char because int might match the return type of a gcc2
7995 builtin and then its argument prototype would still apply. */
7996 char catgets();
7998 int main() {
8000 /* The GNU C library defines this for functions which it implements
8001 to always fail with ENOSYS. Some functions are actually named
8002 something starting with __ and the normal name is an alias. */
8003 #if defined (__stub_catgets) || defined (__stub___catgets)
8004 choke me
8005 #else
8006 catgets();
8007 #endif
8009 ; return 0; }
8011 if { (eval echo configure:8012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8012 rm -rf conftest*
8013 eval "ac_cv_func_catgets=yes"
8014 else
8015 echo "configure: failed program was:" >&5
8016 cat conftest.$ac_ext >&5
8017 rm -rf conftest*
8018 eval "ac_cv_func_catgets=no"
8020 rm -f conftest*
8023 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
8024 echo "$ac_t""yes" 1>&6
8025 cat >> confdefs.h <<\EOF
8026 #define HAVE_CATGETS 1
8029 INTLOBJS="\$(CATOBJS)"
8030 # Extract the first word of "gencat", so it can be a program name with args.
8031 set dummy gencat; ac_word=$2
8032 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8033 echo "configure:8034: checking for $ac_word" >&5
8034 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
8035 echo $ac_n "(cached) $ac_c" 1>&6
8036 else
8037 case "$GENCAT" in
8039 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
8041 ?:/*)
8042 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
8045 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8046 ac_dummy="$PATH"
8047 for ac_dir in $ac_dummy; do
8048 test -z "$ac_dir" && ac_dir=.
8049 if test -f $ac_dir/$ac_word; then
8050 ac_cv_path_GENCAT="$ac_dir/$ac_word"
8051 break
8053 done
8054 IFS="$ac_save_ifs"
8055 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
8057 esac
8059 GENCAT="$ac_cv_path_GENCAT"
8060 if test -n "$GENCAT"; then
8061 echo "$ac_t""$GENCAT" 1>&6
8062 else
8063 echo "$ac_t""no" 1>&6
8065 if test "$GENCAT" != "no"; then
8066 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8067 set dummy gmsgfmt; ac_word=$2
8068 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8069 echo "configure:8070: checking for $ac_word" >&5
8070 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8071 echo $ac_n "(cached) $ac_c" 1>&6
8072 else
8073 case "$GMSGFMT" in
8075 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8077 ?:/*)
8078 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
8081 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8082 ac_dummy="$PATH"
8083 for ac_dir in $ac_dummy; do
8084 test -z "$ac_dir" && ac_dir=.
8085 if test -f $ac_dir/$ac_word; then
8086 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
8087 break
8089 done
8090 IFS="$ac_save_ifs"
8091 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
8093 esac
8095 GMSGFMT="$ac_cv_path_GMSGFMT"
8096 if test -n "$GMSGFMT"; then
8097 echo "$ac_t""$GMSGFMT" 1>&6
8098 else
8099 echo "$ac_t""no" 1>&6
8102 if test "$GMSGFMT" = "no"; then
8103 # Extract the first word of "msgfmt", so it can be a program name with args.
8104 set dummy msgfmt; ac_word=$2
8105 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8106 echo "configure:8107: checking for $ac_word" >&5
8107 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8108 echo $ac_n "(cached) $ac_c" 1>&6
8109 else
8110 case "$GMSGFMT" in
8112 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8115 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8116 for ac_dir in $PATH; do
8117 test -z "$ac_dir" && ac_dir=.
8118 if test -f $ac_dir/$ac_word; then
8119 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8120 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
8121 break
8124 done
8125 IFS="$ac_save_ifs"
8126 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="msgfmt"
8128 esac
8130 GMSGFMT="$ac_cv_path_GMSGFMT"
8131 if test -n "$GMSGFMT"; then
8132 echo "$ac_t""$GMSGFMT" 1>&6
8133 else
8134 echo "$ac_t""no" 1>&6
8137 if test "$GMSGFMT" = "msgfmt"; then
8138 echo "configure: warning: No program for catalog building found" 1>&2
8139 create_catalogs="no"
8142 # Extract the first word of "xgettext", so it can be a program name with args.
8143 set dummy xgettext; ac_word=$2
8144 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8145 echo "configure:8146: checking for $ac_word" >&5
8146 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8147 echo $ac_n "(cached) $ac_c" 1>&6
8148 else
8149 case "$XGETTEXT" in
8151 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8154 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8155 for ac_dir in $PATH; do
8156 test -z "$ac_dir" && ac_dir=.
8157 if test -f $ac_dir/$ac_word; then
8158 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8159 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8160 break
8163 done
8164 IFS="$ac_save_ifs"
8165 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8167 esac
8169 XGETTEXT="$ac_cv_path_XGETTEXT"
8170 if test -n "$XGETTEXT"; then
8171 echo "$ac_t""$XGETTEXT" 1>&6
8172 else
8173 echo "$ac_t""no" 1>&6
8176 USE_INCLUDED_LIBINTL=yes
8177 CATOBJEXT=.cat
8178 INSTOBJEXT=.cat
8179 DATADIRNAME=lib
8180 INTLDEPS='$(top_builddir)/intl/libintl.a'
8181 INTLLIBS=$INTLDEPS
8182 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8183 nls_cv_header_intl=intl/libintl.h
8184 nls_cv_header_libgt=intl/libgettext.h
8186 else
8187 echo "$ac_t""no" 1>&6
8193 if test "$CATOBJEXT" = "NONE"; then
8194 nls_cv_use_gnu_gettext=yes
8198 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8199 INTLOBJS="\$(GETTOBJS)"
8200 # Extract the first word of "msgfmt", so it can be a program name with args.
8201 set dummy msgfmt; ac_word=$2
8202 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8203 echo "configure:8204: checking for $ac_word" >&5
8204 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
8205 echo $ac_n "(cached) $ac_c" 1>&6
8206 else
8207 case "$MSGFMT" in
8209 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8212 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8213 for ac_dir in $PATH; do
8214 test -z "$ac_dir" && ac_dir=.
8215 if test -f $ac_dir/$ac_word; then
8216 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8217 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8218 break
8221 done
8222 IFS="$ac_save_ifs"
8223 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
8225 esac
8227 MSGFMT="$ac_cv_path_MSGFMT"
8228 if test -n "$MSGFMT"; then
8229 echo "$ac_t""$MSGFMT" 1>&6
8230 else
8231 echo "$ac_t""no" 1>&6
8234 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8235 set dummy gmsgfmt; ac_word=$2
8236 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8237 echo "configure:8238: checking for $ac_word" >&5
8238 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8239 echo $ac_n "(cached) $ac_c" 1>&6
8240 else
8241 case "$GMSGFMT" in
8243 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8245 ?:/*)
8246 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
8249 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8250 ac_dummy="$PATH"
8251 for ac_dir in $ac_dummy; do
8252 test -z "$ac_dir" && ac_dir=.
8253 if test -f $ac_dir/$ac_word; then
8254 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
8255 break
8257 done
8258 IFS="$ac_save_ifs"
8259 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8261 esac
8263 GMSGFMT="$ac_cv_path_GMSGFMT"
8264 if test -n "$GMSGFMT"; then
8265 echo "$ac_t""$GMSGFMT" 1>&6
8266 else
8267 echo "$ac_t""no" 1>&6
8270 if test "$MSGFMT" = "msgfmt" && test "$GMSGFMT" = "msgfmt"; then
8271 echo "configure: warning: Neither msgfmt nor gmsgfmt found. No catalogs will be built" 1>&2
8272 create_catalogs="no"
8274 # Extract the first word of "xgettext", so it can be a program name with args.
8275 set dummy xgettext; ac_word=$2
8276 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8277 echo "configure:8278: checking for $ac_word" >&5
8278 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8279 echo $ac_n "(cached) $ac_c" 1>&6
8280 else
8281 case "$XGETTEXT" in
8283 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8286 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8287 for ac_dir in $PATH; do
8288 test -z "$ac_dir" && ac_dir=.
8289 if test -f $ac_dir/$ac_word; then
8290 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8291 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8292 break
8295 done
8296 IFS="$ac_save_ifs"
8297 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8299 esac
8301 XGETTEXT="$ac_cv_path_XGETTEXT"
8302 if test -n "$XGETTEXT"; then
8303 echo "$ac_t""$XGETTEXT" 1>&6
8304 else
8305 echo "$ac_t""no" 1>&6
8309 USE_INCLUDED_LIBINTL=yes
8310 CATOBJEXT=.gmo
8311 INSTOBJEXT=.mo
8312 DATADIRNAME=share
8313 INTLDEPS='$(top_builddir)/intl/libintl.a'
8314 INTLLIBS=$INTLDEPS
8315 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8316 nls_cv_header_intl=intl/libintl.h
8317 nls_cv_header_libgt=intl/libgettext.h
8320 if test "$XGETTEXT" != ":"; then
8321 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8323 else
8324 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
8325 XGETTEXT=":"
8331 # We need to process the po/ directory.
8332 POSUB=po
8333 else
8334 DATADIRNAME=share
8335 nls_cv_header_intl=intl/libintl.h
8336 nls_cv_header_libgt=intl/libgettext.h
8342 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8343 # because some of the sources are only built for this goal.
8344 if test "$PACKAGE" = gettext; then
8345 USE_NLS=yes
8346 USE_INCLUDED_LIBINTL=yes
8349 for lang in $ALL_LINGUAS; do
8350 GMOFILES="$GMOFILES $lang.gmo"
8351 POFILES="$POFILES $lang.po"
8352 done
8367 if test "x$CATOBJEXT" != "x" && test "x$create_catalogs" != "xno" ; then
8368 if test "x$ALL_LINGUAS" = "x"; then
8369 LINGUAS=
8370 else
8371 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
8372 echo "configure:8373: checking for catalogs to be installed" >&5
8373 if test "x$LINGUAS" = "x"; then
8374 LINGUAS=$ALL_LINGUAS
8375 else
8376 NEW_LINGUAS=
8377 for lang in $ALL_LINGUAS; do
8378 case " $LINGUAS " in
8379 *" $lang "*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8380 esac
8381 done
8382 LINGUAS=$NEW_LINGUAS
8384 echo "$ac_t""$LINGUAS" 1>&6
8387 if test -n "$LINGUAS"; then
8388 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8392 if test $ac_cv_header_locale_h = yes; then
8393 INCLUDE_LOCALE_H="#include <locale.h>"
8394 else
8395 INCLUDE_LOCALE_H="\
8396 /* The system does not provide the header <locale.h>. Take care yourself. */"
8400 test -d intl || mkdir intl
8401 if test "$CATOBJEXT" = ".cat"; then
8402 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
8403 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
8404 echo "configure:8405: checking for linux/version.h" >&5
8405 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8406 echo $ac_n "(cached) $ac_c" 1>&6
8407 else
8408 cat > conftest.$ac_ext <<EOF
8409 #line 8410 "configure"
8410 #include "confdefs.h"
8411 #include <linux/version.h>
8413 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8414 { (eval echo configure:8415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8415 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8416 if test -z "$ac_err"; then
8417 rm -rf conftest*
8418 eval "ac_cv_header_$ac_safe=yes"
8419 else
8420 echo "$ac_err" >&5
8421 echo "configure: failed program was:" >&5
8422 cat conftest.$ac_ext >&5
8423 rm -rf conftest*
8424 eval "ac_cv_header_$ac_safe=no"
8426 rm -f conftest*
8428 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8429 echo "$ac_t""yes" 1>&6
8430 msgformat=linux
8431 else
8432 echo "$ac_t""no" 1>&6
8433 msgformat=xopen
8437 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
8439 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8440 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
8442 if test "$PACKAGE" = "gettext"; then
8443 GT_NO="#NO#"
8444 GT_YES=
8445 else
8446 GT_NO=
8447 GT_YES="#YES#"
8452 MKINSTALLDIRS=
8453 if test -n "$ac_aux_dir"; then
8454 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
8456 if test -z "$MKINSTALLDIRS"; then
8457 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8464 test -d po || mkdir po
8465 if test "x$srcdir" != "x."; then
8466 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8467 posrcprefix="$srcdir/"
8468 else
8469 posrcprefix="../$srcdir/"
8471 else
8472 posrcprefix="../"
8474 rm -f po/POTFILES
8475 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8476 < $srcdir/po/POTFILES.in > po/POTFILES
8478 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
8480 # Windows32 Registry support for specifying GCC installation paths.
8481 # Check whether --enable-win32-registry or --disable-win32-registry was given.
8482 if test "${enable_win32_registry+set}" = set; then
8483 enableval="$enable_win32_registry"
8488 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
8489 echo "configure:8490: checking whether windows registry support is requested" >&5
8490 if test x$enable_win32_registry != xno; then
8491 cat >> confdefs.h <<\EOF
8492 #define ENABLE_WIN32_REGISTRY 1
8495 echo "$ac_t""yes" 1>&6
8496 else
8497 echo "$ac_t""no" 1>&6
8500 # Check if user specified a different registry key.
8501 case x${enable_win32_registry} in
8502 x | xyes)
8503 # default.
8504 gcc_cv_win32_registry_key="$VERSION"
8506 xno)
8507 # no registry lookup.
8508 gcc_cv_win32_registry_key=''
8511 # user-specified key.
8512 gcc_cv_win32_registry_key="$enable_win32_registry"
8514 esac
8516 if test x$enable_win32_registry != xno; then
8517 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
8518 echo "configure:8519: checking registry key on windows hosts" >&5
8519 cat >> confdefs.h <<EOF
8520 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
8523 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
8526 # Get an absolute path to the GCC top-level source directory
8527 holddir=`pwd`
8528 cd $srcdir
8529 topdir=`pwd`
8530 cd $holddir
8532 # Conditionalize the makefile for this host machine.
8533 # Make-host contains the concatenation of all host makefile fragments
8534 # [there can be more than one]. This file is built by configure.frag.
8535 host_overrides=Make-host
8536 dep_host_xmake_file=
8537 for f in .. ${host_xmake_file}
8539 if test -f ${srcdir}/config/$f
8540 then
8541 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
8543 done
8545 # Conditionalize the makefile for this target machine.
8546 # Make-target contains the concatenation of all host makefile fragments
8547 # [there can be more than one]. This file is built by configure.frag.
8548 target_overrides=Make-target
8549 dep_tmake_file=
8550 for f in .. ${tmake_file}
8552 if test -f ${srcdir}/config/$f
8553 then
8554 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
8556 done
8558 # If the host doesn't support symlinks, modify CC in
8559 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
8560 # Otherwise, we can use "CC=$(CC)".
8561 rm -f symtest.tem
8562 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
8563 then
8564 cc_set_by_configure="\$(CC)"
8565 quoted_cc_set_by_configure="\$(CC)"
8566 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
8567 else
8568 rm -f symtest.tem
8569 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
8570 then
8571 symbolic_link="cp -p"
8572 else
8573 symbolic_link="cp"
8575 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
8576 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
8577 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
8579 rm -f symtest.tem
8581 out_object_file=`basename $out_file .c`.o
8583 tm_file_list=
8584 for f in $tm_file; do
8585 case $f in
8586 gansidecl.h )
8587 tm_file_list="${tm_file_list} $f" ;;
8588 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
8589 esac
8590 done
8592 host_xm_file_list=
8593 for f in $host_xm_file; do
8594 case $f in
8595 auto-host.h | gansidecl.h | hwint.h )
8596 host_xm_file_list="${host_xm_file_list} $f" ;;
8597 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
8598 esac
8599 done
8601 build_xm_file_list=
8602 for f in $build_xm_file; do
8603 case $f in
8604 auto-build.h | auto-host.h | gansidecl.h | hwint.h )
8605 build_xm_file_list="${build_xm_file_list} $f" ;;
8606 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8607 esac
8608 done
8610 # Define macro CROSS_COMPILE in compilation
8611 # if this is a cross-compiler.
8612 # Also use all.cross instead of all.internal
8613 # and add cross-make to Makefile.
8614 cross_overrides="/dev/null"
8615 if test x$host != x$target
8616 then
8617 cross_defines="CROSS=-DCROSS_COMPILE"
8618 cross_overrides="${topdir}/cross-make"
8621 # If this is a cross-compiler that does not
8622 # have its own set of headers then define
8623 # inhibit_libc
8625 # If this is using newlib, then define inhibit_libc in
8626 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
8627 # libgcc.a, but that's OK because newlib should have its own version of
8628 # assert.h.
8629 inhibit_libc=
8630 if test x$host != x$target && test x$with_headers = x; then
8631 inhibit_libc=-Dinhibit_libc
8632 else
8633 if test x$with_newlib = xyes; then
8634 inhibit_libc=-Dinhibit_libc
8639 # When building gcc with a cross-compiler, we need to fix a few things.
8640 # This must come after cross-make as we want all.build to override
8641 # all.cross.
8642 build_overrides="/dev/null"
8643 if test x$build != x$host
8644 then
8645 build_overrides="${topdir}/build-make"
8648 # Expand extra_headers to include complete path.
8649 # This substitutes for lots of t-* files.
8650 extra_headers_list=
8651 if test "x$extra_headers" = x
8652 then true
8653 else
8654 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8655 for file in $extra_headers;
8657 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8658 done
8661 if test x$use_collect2 = xno; then
8662 use_collect2=
8665 # Add a definition of USE_COLLECT2 if system wants one.
8666 # Also tell toplev.c what to do.
8667 # This substitutes for lots of t-* files.
8668 if test x$use_collect2 = x
8669 then
8670 will_use_collect2=
8671 maybe_use_collect2=
8672 else
8673 will_use_collect2="collect2"
8674 maybe_use_collect2="-DUSE_COLLECT2"
8677 # NEED TO CONVERT
8678 # Set MD_DEPS if the real md file is in md.pre-cpp.
8679 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
8680 # for line oriented comments, so we must always use a GNU cpp. If
8681 # building gcc with a cross compiler, use the cross compiler just
8682 # built. Otherwise, we can use the cpp just built.
8683 md_file_sub=
8684 if test "x$md_cppflags" = x
8685 then
8686 md_file_sub=$srcdir/config/$md_file
8687 else
8688 md_file=md
8691 # If we have gas in the build tree, make a link to it.
8692 if test -f ../gas/Makefile; then
8693 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
8696 # If we have nm in the build tree, make a link to it.
8697 if test -f ../binutils/Makefile; then
8698 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
8701 # If we have ld in the build tree, make a link to it.
8702 if test -f ../ld/Makefile; then
8703 # if test x$use_collect2 = x; then
8704 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8705 # else
8706 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
8707 # fi
8710 # Figure out what assembler alignment features are present.
8711 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
8712 echo "configure:8713: checking assembler alignment features" >&5
8713 gcc_cv_as=
8714 gcc_cv_as_alignment_features=
8715 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8716 if test -x "$DEFAULT_ASSEMBLER"; then
8717 gcc_cv_as="$DEFAULT_ASSEMBLER"
8718 elif test -x "$AS"; then
8719 gcc_cv_as="$AS"
8720 elif test -x as$host_exeext; then
8721 # Build using assembler in the current directory.
8722 gcc_cv_as=./as$host_exeext
8723 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
8724 # Single tree build which includes gas.
8725 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
8727 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
8728 if test x$gcc_cv_gas_version != x; then
8729 break
8731 done
8732 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
8733 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
8734 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
8735 # Gas version 2.6 and later support for .balign and .p2align.
8736 # bytes to skip when using .p2align.
8737 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
8738 gcc_cv_as_alignment_features=".balign and .p2align"
8739 cat >> confdefs.h <<\EOF
8740 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8744 # Gas version 2.8 and later support specifying the maximum
8745 # bytes to skip when using .p2align.
8746 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
8747 gcc_cv_as_alignment_features=".p2align including maximum skip"
8748 cat >> confdefs.h <<\EOF
8749 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8754 elif test x$host = x$target; then
8755 # Native build.
8756 # Search the same directories that the installed compiler will
8757 # search. Else we may find the wrong assembler and lose. If we
8758 # do not find a suitable assembler binary, then try the user's
8759 # path.
8761 # Also note we have to check MD_EXEC_PREFIX before checking the
8762 # user's path. Unfortunately, there is no good way to get at the
8763 # value of MD_EXEC_PREFIX here. So we do a brute force search
8764 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
8765 # to be fixed as part of the make/configure rewrite too.
8767 if test "x$exec_prefix" = xNONE; then
8768 if test "x$prefix" = xNONE; then
8769 test_prefix=/usr/local
8770 else
8771 test_prefix=$prefix
8773 else
8774 test_prefix=$exec_prefix
8777 # If the loop below does not find an assembler, then use whatever
8778 # one we can find in the users's path.
8779 # user's path.
8780 as=as$host_exeext
8782 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
8783 $test_prefix/lib/gcc-lib/$target \
8784 /usr/lib/gcc/$target/$gcc_version \
8785 /usr/lib/gcc/$target \
8786 $test_prefix/$target/bin/$target/$gcc_version \
8787 $test_prefix/$target/bin \
8788 /usr/libexec \
8789 /usr/ccs/gcc \
8790 /usr/ccs/bin \
8791 /udk/usr/ccs/bin \
8792 /bsd43/usr/lib/cmplrs/cc \
8793 /usr/cross64/usr/bin \
8794 /usr/lib/cmplrs/cc \
8795 /sysv/usr/lib/cmplrs/cc \
8796 /svr4/usr/lib/cmplrs/cc \
8797 /usr/bin"
8799 for dir in $test_dirs; do
8800 if test -f $dir/as$host_exeext; then
8801 gcc_cv_as=$dir/as$host_exeext
8802 break;
8804 done
8806 if test x$gcc_cv_as != x; then
8807 # Check if we have .balign and .p2align
8808 echo ".balign 4" > conftest.s
8809 echo ".p2align 2" >> conftest.s
8810 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8811 gcc_cv_as_alignment_features=".balign and .p2align"
8812 cat >> confdefs.h <<\EOF
8813 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8817 rm -f conftest.s conftest.o
8818 # Check if specifying the maximum bytes to skip when
8819 # using .p2align is supported.
8820 echo ".p2align 4,,7" > conftest.s
8821 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8822 gcc_cv_as_alignment_features=".p2align including maximum skip"
8823 cat >> confdefs.h <<\EOF
8824 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8828 rm -f conftest.s conftest.o
8830 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
8832 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
8833 echo "configure:8834: checking assembler subsection support" >&5
8834 gcc_cv_as_subsections=
8835 if test x$gcc_cv_as != x; then
8836 # Check if we have .subsection
8837 echo ".subsection 1" > conftest.s
8838 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8839 gcc_cv_as_subsections=".subsection"
8840 if test -x nm$host_exeext; then
8841 gcc_cv_nm=./nm$host_exeext
8842 elif test x$host = x$target; then
8843 # Native build.
8844 gcc_cv_nm=nm$host_exeext
8846 if test x$gcc_cv_nm != x; then
8847 cat > conftest.s <<EOF
8848 conftest_label1: .word 0
8849 .subsection -1
8850 conftest_label2: .word 0
8851 .previous
8853 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8854 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
8855 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
8856 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
8858 else
8859 gcc_cv_as_subsections="working .subsection -1"
8860 cat >> confdefs.h <<\EOF
8861 #define HAVE_GAS_SUBSECTION_ORDERING 1
8868 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8870 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
8872 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
8873 echo "configure:8874: checking assembler weak support" >&5
8874 gcc_cv_as_weak=
8875 if test x$gcc_cv_as != x; then
8876 # Check if we have .weak
8877 echo " .weak foobar" > conftest.s
8878 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8879 cat >> confdefs.h <<\EOF
8880 #define HAVE_GAS_WEAK 1
8883 gcc_cv_as_weak="yes"
8885 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8887 echo "$ac_t""$gcc_cv_as_weak" 1>&6
8889 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
8890 echo "configure:8891: checking assembler hidden support" >&5
8891 gcc_cv_as_hidden=
8892 if test x$gcc_cv_as != x; then
8893 # Check if we have .hidden
8894 echo " .hidden foobar" > conftest.s
8895 echo "foobar:" >> conftest.s
8896 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8897 cat >> confdefs.h <<\EOF
8898 #define HAVE_GAS_HIDDEN 1
8901 gcc_cv_as_hidden="yes"
8903 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8905 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
8907 case "$target" in
8908 sparc*-*-*)
8909 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
8910 echo "configure:8911: checking assembler .register pseudo-op support" >&5
8911 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
8912 echo $ac_n "(cached) $ac_c" 1>&6
8913 else
8915 gcc_cv_as_register_pseudo_op=unknown
8916 if test x$gcc_cv_as != x; then
8917 # Check if we have .register
8918 echo ".register %g2, #scratch" > conftest.s
8919 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8920 gcc_cv_as_register_pseudo_op=yes
8921 else
8922 gcc_cv_as_register_pseudo_op=no
8924 rm -f conftest.s conftest.o
8929 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
8930 if test "x$gcc_cv_as_register_pseudo_op" = xyes; then
8931 cat >> confdefs.h <<\EOF
8932 #define HAVE_AS_REGISTER_PSEUDO_OP 1
8937 echo $ac_n "checking assembler supports -relax""... $ac_c" 1>&6
8938 echo "configure:8939: checking assembler supports -relax" >&5
8939 if eval "test \"`echo '$''{'gcc_cv_as_relax_opt'+set}'`\" = set"; then
8940 echo $ac_n "(cached) $ac_c" 1>&6
8941 else
8943 gcc_cv_as_relax_opt=unknown
8944 if test x$gcc_cv_as != x; then
8945 # Check if gas supports -relax
8946 echo ".text" > conftest.s
8947 if $gcc_cv_as -relax -o conftest.o conftest.s > /dev/null 2>&1; then
8948 gcc_cv_as_relax_opt=yes
8949 else
8950 gcc_cv_as_relax_opt=no
8952 rm -f conftest.s conftest.o
8957 echo "$ac_t""$gcc_cv_as_relax_opt" 1>&6
8958 if test "x$gcc_cv_as_relax_opt" = xyes; then
8959 cat >> confdefs.h <<\EOF
8960 #define HAVE_AS_RELAX_OPTION 1
8965 case "$tm_file" in
8966 *64*)
8967 echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
8968 echo "configure:8969: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
8969 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
8970 echo $ac_n "(cached) $ac_c" 1>&6
8971 else
8973 if test -n "$gcc_cv_as"; then
8974 echo ".xword foo" > conftest.s
8975 gcc_cv_as_flags64=no
8976 for flag in "-xarch=v9" "-64 -Av9"; do
8977 if $gcc_cv_as $flag -o conftest.o conftest.s \
8978 > /dev/null 2>&1; then
8979 gcc_cv_as_flags64=$flag
8980 break
8982 done
8983 rm -f conftest.s conftest.o
8984 else
8985 if test "$gas" = yes; then
8986 gcc_cv_as_flags64="-64 -Av9"
8987 else
8988 gcc_cv_as_flags64="-xarch=v9"
8994 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
8995 if test "x$gcc_cv_as_flags64" = xno; then
8997 tmake_file=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
8998 dep_tmake_file=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
9000 else
9001 cat >> confdefs.h <<EOF
9002 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
9007 *) gcc_cv_as_flags64=${gcc_cv_as_flags64-no}
9009 esac
9011 if test "x$gcc_cv_as_flags64" != xno; then
9012 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
9013 echo "configure:9014: checking for assembler offsetable %lo() support" >&5
9014 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
9015 echo $ac_n "(cached) $ac_c" 1>&6
9016 else
9018 gcc_cv_as_offsetable_lo10=unknown
9019 if test "x$gcc_cv_as" != x; then
9020 # Check if assembler has offsetable %lo()
9021 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
9022 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
9023 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
9024 > /dev/null 2>&1 &&
9025 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
9026 > /dev/null 2>&1; then
9027 if cmp conftest.o conftest1.o > /dev/null 2>&1; then
9028 gcc_cv_as_offsetable_lo10=no
9029 else
9030 gcc_cv_as_offsetable_lo10=yes
9032 else
9033 gcc_cv_as_offsetable_lo10=no
9035 rm -f conftest.s conftest.o conftest1.s conftest1.o
9040 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
9041 if test "x$gcc_cv_as_offsetable_lo10" = xyes; then
9042 cat >> confdefs.h <<\EOF
9043 #define HAVE_AS_OFFSETABLE_LO10 1
9050 i[34567]86-*-*)
9051 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
9052 echo "configure:9053: checking assembler instructions" >&5
9053 gcc_cv_as_instructions=
9054 if test x$gcc_cv_as != x; then
9055 set "filds fists" "filds mem; fists mem"
9056 while test $# -gt 0
9058 echo "$2" > conftest.s
9059 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
9060 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
9061 cat >> confdefs.h <<EOF
9062 #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1
9066 shift 2
9067 done
9068 rm -f conftest.s conftest.o
9070 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
9072 esac
9074 # Figure out what language subdirectories are present.
9075 # Look if the user specified --enable-languages="..."; if not, use
9076 # the environment variable $LANGUAGES if defined. $LANGUAGES might
9077 # go away some day.
9078 if test x"${enable_languages+set}" != xset; then
9079 if test x"${LANGUAGES+set}" = xset; then
9080 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
9081 else
9082 enable_languages=all
9084 else
9085 if test x"${enable_languages}" = x; then
9086 { echo "configure: error: --enable-languages needs at least one argument" 1>&2; exit 1; }
9089 subdirs=
9090 for lang in ${srcdir}/*/config-lang.in ..
9092 case $lang in
9093 ..) ;;
9094 # The odd quoting in the next line works around
9095 # an apparent bug in bash 1.12 on linux.
9096 ${srcdir}/[*]/config-lang.in) ;;
9098 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
9099 if test "x$lang_alias" = x
9100 then
9101 echo "$lang doesn't set \$language." 1>&2
9102 exit 1
9104 if test x"${enable_languages}" = xall; then
9105 add_this_lang=yes
9106 else
9107 case "${enable_languages}" in
9108 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
9109 add_this_lang=yes
9112 add_this_lang=no
9114 esac
9116 if test x"${add_this_lang}" = xyes; then
9117 case $lang in
9118 ${srcdir}/ada/config-lang.in)
9119 if test x$gnat = xyes ; then
9120 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9124 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9126 esac
9129 esac
9130 done
9132 # Make gthr-default.h if we have a thread file.
9133 gthread_flags=
9134 if test $thread_file != single; then
9135 rm -f gthr-default.h
9136 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9137 gthread_flags=-DHAVE_GTHR_DEFAULT
9141 # Find out what GC implementation we want, or may, use.
9142 # Check whether --with-gc or --without-gc was given.
9143 if test "${with_gc+set}" = set; then
9144 withval="$with_gc"
9145 case "$withval" in
9146 simple | page)
9147 GGC=ggc-$withval
9150 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
9152 esac
9153 else
9154 if test $ac_cv_func_mmap_anywhere = yes \
9155 || test $ac_cv_func_valloc = yes; then
9156 GGC=ggc-page
9157 else
9158 GGC=ggc-simple
9163 echo "Using $GGC for garbage collection."
9165 # Build a new-abi (c++) system
9166 # Check whether --enable-new-gxx-abi or --disable-new-gxx-abi was given.
9167 if test "${enable_new_gxx_abi+set}" = set; then
9168 enableval="$enable_new_gxx_abi"
9169 cat >> confdefs.h <<\EOF
9170 #define ENABLE_NEW_GXX_ABI 1
9173 GXX_ABI_FLAG='-fnew-abi'
9174 echo "Building a new-abi g++ compiler."
9180 # Build a new-libstdc++ system (ie libstdc++-v3)
9181 echo $ac_n "checking for libstdc++ to install""... $ac_c" 1>&6
9182 echo "configure:9183: checking for libstdc++ to install" >&5
9183 # Check whether --enable-libstdcxx-v3 or --disable-libstdcxx-v3 was given.
9184 if test "${enable_libstdcxx_v3+set}" = set; then
9185 enableval="$enable_libstdcxx_v3"
9186 enable_libstdcxx_v3=yes
9187 else
9188 enable_libstdcxx_v3=no
9192 if test x$enable_libstdcxx_v3 = xyes; then
9193 echo "$ac_t""v3" 1>&6
9194 ac_esn=1
9195 else
9196 echo "$ac_t""v2" 1>&6
9197 ac_esn=0
9199 cat >> confdefs.h <<EOF
9200 #define ENABLE_STD_NAMESPACE $ac_esn
9205 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
9206 echo "configure:9207: checking whether to enable maintainer-specific portions of Makefiles" >&5
9207 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9208 if test "${enable_maintainer_mode+set}" = set; then
9209 enableval="$enable_maintainer_mode"
9210 maintainer_mode=$enableval
9211 else
9212 maintainer_mode=no
9216 echo "$ac_t""$maintainer_mode" 1>&6
9218 if test "$maintainer_mode" = "yes"; then
9219 MAINT=''
9220 else
9221 MAINT='#'
9224 # Make empty files to contain the specs and options for each language.
9225 # Then add #include lines to for a compiler that has specs and/or options.
9227 lang_specs_files=
9228 lang_options_files=
9229 lang_tree_files=
9230 rm -f specs.h options.h gencheck.h
9231 touch specs.h options.h gencheck.h
9232 for subdir in . $subdirs
9234 if test -f $srcdir/$subdir/lang-specs.h; then
9235 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
9236 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
9238 if test -f $srcdir/$subdir/lang-options.h; then
9239 echo "#include \"$subdir/lang-options.h\"" >>options.h
9240 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
9242 if test -f $srcdir/$subdir/$subdir-tree.def; then
9243 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
9244 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
9246 done
9248 # These (without "all_") are set in each config-lang.in.
9249 # `language' must be a single word so is spelled singularly.
9250 all_languages=
9251 all_boot_languages=
9252 all_compilers=
9253 all_stagestuff=
9254 all_diff_excludes=
9255 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
9256 # List of language makefile fragments.
9257 all_lang_makefiles=
9258 all_headers=
9259 all_lib2funcs=
9261 # Add the language fragments.
9262 # Languages are added via two mechanisms. Some information must be
9263 # recorded in makefile variables, these are defined in config-lang.in.
9264 # We accumulate them and plug them into the main Makefile.
9265 # The other mechanism is a set of hooks for each of the main targets
9266 # like `clean', `install', etc.
9268 language_fragments="Make-lang"
9269 language_hooks="Make-hooks"
9270 oldstyle_subdirs=
9272 for s in .. $subdirs
9274 if test $s != ".."
9275 then
9276 language=
9277 boot_language=
9278 compilers=
9279 stagestuff=
9280 diff_excludes=
9281 headers=
9282 outputs=
9283 lib2funcs=
9284 . ${srcdir}/$s/config-lang.in
9285 if test "x$language" = x
9286 then
9287 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
9288 exit 1
9290 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
9291 all_languages="$all_languages $language"
9292 if test "x$boot_language" = xyes
9293 then
9294 all_boot_languages="$all_boot_languages $language"
9296 all_compilers="$all_compilers $compilers"
9297 all_stagestuff="$all_stagestuff $stagestuff"
9298 all_diff_excludes="$all_diff_excludes $diff_excludes"
9299 all_headers="$all_headers $headers"
9300 all_outputs="$all_outputs $outputs"
9301 if test x$outputs = x
9302 then
9303 oldstyle_subdirs="$oldstyle_subdirs $s"
9305 all_lib2funcs="$all_lib2funcs $lib2funcs"
9307 done
9309 # Since we can't use `::' targets, we link each language in
9310 # with a set of hooks, reached indirectly via lang.${target}.
9312 rm -f Make-hooks
9313 touch Make-hooks
9314 target_list="all.build all.cross start.encap rest.encap \
9315 info dvi \
9316 install-normal install-common install-info install-man \
9317 uninstall distdir \
9318 mostlyclean clean distclean extraclean maintainer-clean \
9319 stage1 stage2 stage3 stage4"
9320 for t in $target_list
9323 for lang in .. $all_languages
9325 if test $lang != ".."; then
9326 x="$x $lang.$t"
9328 done
9329 echo "lang.$t: $x" >> Make-hooks
9330 done
9332 # If we're not building in srcdir, create .gdbinit.
9334 if test ! -f Makefile.in; then
9335 echo "dir ." > .gdbinit
9336 echo "dir ${srcdir}" >> .gdbinit
9337 if test x$gdb_needs_out_file_path = xyes
9338 then
9339 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
9341 if test "x$subdirs" != x; then
9342 for s in $subdirs
9344 echo "dir ${srcdir}/$s" >> .gdbinit
9345 done
9347 echo "source ${srcdir}/.gdbinit" >> .gdbinit
9350 # Define variables host_canonical and build_canonical
9351 # because some Cygnus local changes in the Makefile depend on them.
9352 build_canonical=${build}
9353 host_canonical=${host}
9354 target_subdir=
9355 if test "${host}" != "${target}" ; then
9356 target_subdir=${target}/
9362 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
9363 # absolute path for gcc_tooldir based on inserting the number of up-directory
9364 # movements required to get from $(exec_prefix) to $(prefix) into the basic
9365 # $(libsubdir)/@(unlibsubdir) based path.
9366 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
9367 # make and thus we'd get different behavior depending on where we built the
9368 # sources.
9369 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
9370 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
9371 else
9372 # An explanation of the sed strings:
9373 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
9374 # -e 's|/$||' match a trailing forward slash and eliminates it
9375 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
9376 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
9378 # (*) Note this pattern overwrites the first character of the string
9379 # with a forward slash if one is not already present. This is not a
9380 # problem because the exact names of the sub-directories concerned is
9381 # unimportant, just the number of them matters.
9383 # The practical upshot of these patterns is like this:
9385 # prefix exec_prefix result
9386 # ------ ----------- ------
9387 # /foo /foo/bar ../
9388 # /foo/ /foo/bar ../
9389 # /foo /foo/bar/ ../
9390 # /foo/ /foo/bar/ ../
9391 # /foo /foo/bar/ugg ../../
9393 dollar='$$'
9394 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
9399 # Nothing to do for FLOAT_H, float_format already handled.
9400 objdir=`pwd`
9403 # Process the language and host/target makefile fragments.
9404 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
9406 # Substitute configuration variables
9465 # Echo that links are built
9466 if test x$host = x$target
9467 then
9468 str1="native "
9469 else
9470 str1="cross-"
9471 str2=" from $host"
9474 if test x$host != x$build
9475 then
9476 str3=" on a $build system"
9479 if test "x$str2" != x || test "x$str3" != x
9480 then
9481 str4=
9484 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
9486 if test "x$str2" != x || test "x$str3" != x
9487 then
9488 echo " ${str2}${str3}." 1>&2
9491 # Truncate the target if necessary
9492 if test x$host_truncate_target != x; then
9493 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
9496 # Configure the subdirectories
9497 # AC_CONFIG_SUBDIRS($subdirs)
9499 # Create the Makefile
9500 # and configure language subdirectories
9501 trap '' 1 2 15
9502 cat > confcache <<\EOF
9503 # This file is a shell script that caches the results of configure
9504 # tests run on this system so they can be shared between configure
9505 # scripts and configure runs. It is not useful on other systems.
9506 # If it contains results you don't want to keep, you may remove or edit it.
9508 # By default, configure uses ./config.cache as the cache file,
9509 # creating it if it does not exist already. You can give configure
9510 # the --cache-file=FILE option to use a different cache file; that is
9511 # what configure does when it calls configure scripts in
9512 # subdirectories, so they share the cache.
9513 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9514 # config.status only pays attention to the cache file if you give it the
9515 # --recheck option to rerun configure.
9518 # The following way of writing the cache mishandles newlines in values,
9519 # but we know of no workaround that is simple, portable, and efficient.
9520 # So, don't put newlines in cache variables' values.
9521 # Ultrix sh set writes to stderr and can't be redirected directly,
9522 # and sets the high bit in the cache file unless we assign to the vars.
9523 (set) 2>&1 |
9524 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9525 *ac_space=\ *)
9526 # `set' does not quote correctly, so add quotes (double-quote substitution
9527 # turns \\\\ into \\, and sed turns \\ into \).
9528 sed -n \
9529 -e "s/'/'\\\\''/g" \
9530 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9533 # `set' quotes correctly as required by POSIX, so do not add quotes.
9534 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9536 esac >> confcache
9537 if cmp -s $cache_file confcache; then
9539 else
9540 if test -w $cache_file; then
9541 echo "updating cache $cache_file"
9542 cat confcache > $cache_file
9543 else
9544 echo "not updating unwritable cache $cache_file"
9547 rm -f confcache
9549 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9551 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9552 # Let make expand exec_prefix.
9553 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9555 # Any assignment to VPATH causes Sun make to only execute
9556 # the first set of double-colon rules, so remove it if not needed.
9557 # If there is a colon in the path, we need to keep it.
9558 if test "x$srcdir" = x.; then
9559 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9562 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9564 DEFS=-DHAVE_CONFIG_H
9566 # Without the "./", some shells look in PATH for config.status.
9567 : ${CONFIG_STATUS=./config.status}
9569 echo creating $CONFIG_STATUS
9570 rm -f $CONFIG_STATUS
9571 cat > $CONFIG_STATUS <<EOF
9572 #! /bin/sh
9573 # Generated automatically by configure.
9574 # Run this file to recreate the current configuration.
9575 # This directory was configured as follows,
9576 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9578 # $0 $ac_configure_args
9580 # Compiler output produced by configure, useful for debugging
9581 # configure, is in ./config.log if it exists.
9583 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9584 for ac_option
9586 case "\$ac_option" in
9587 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9588 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9589 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9590 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9591 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9592 exit 0 ;;
9593 -help | --help | --hel | --he | --h)
9594 echo "\$ac_cs_usage"; exit 0 ;;
9595 *) echo "\$ac_cs_usage"; exit 1 ;;
9596 esac
9597 done
9599 ac_given_srcdir=$srcdir
9601 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9603 cat >> $CONFIG_STATUS <<EOF
9605 # Protect against being on the right side of a sed subst in config.status.
9606 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9607 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9608 $ac_vpsub
9609 $extrasub
9610 s%@SHELL@%$SHELL%g
9611 s%@CFLAGS@%$CFLAGS%g
9612 s%@CPPFLAGS@%$CPPFLAGS%g
9613 s%@CXXFLAGS@%$CXXFLAGS%g
9614 s%@FFLAGS@%$FFLAGS%g
9615 s%@DEFS@%$DEFS%g
9616 s%@LDFLAGS@%$LDFLAGS%g
9617 s%@LIBS@%$LIBS%g
9618 s%@exec_prefix@%$exec_prefix%g
9619 s%@prefix@%$prefix%g
9620 s%@program_transform_name@%$program_transform_name%g
9621 s%@bindir@%$bindir%g
9622 s%@sbindir@%$sbindir%g
9623 s%@libexecdir@%$libexecdir%g
9624 s%@datadir@%$datadir%g
9625 s%@sysconfdir@%$sysconfdir%g
9626 s%@sharedstatedir@%$sharedstatedir%g
9627 s%@localstatedir@%$localstatedir%g
9628 s%@libdir@%$libdir%g
9629 s%@includedir@%$includedir%g
9630 s%@oldincludedir@%$oldincludedir%g
9631 s%@infodir@%$infodir%g
9632 s%@mandir@%$mandir%g
9633 s%@host@%$host%g
9634 s%@host_alias@%$host_alias%g
9635 s%@host_cpu@%$host_cpu%g
9636 s%@host_vendor@%$host_vendor%g
9637 s%@host_os@%$host_os%g
9638 s%@target@%$target%g
9639 s%@target_alias@%$target_alias%g
9640 s%@target_cpu@%$target_cpu%g
9641 s%@target_vendor@%$target_vendor%g
9642 s%@target_os@%$target_os%g
9643 s%@build@%$build%g
9644 s%@build_alias@%$build_alias%g
9645 s%@build_cpu@%$build_cpu%g
9646 s%@build_vendor@%$build_vendor%g
9647 s%@build_os@%$build_os%g
9648 s%@CC@%$CC%g
9649 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
9650 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
9651 s%@stage2_warn_cflags@%$stage2_warn_cflags%g
9652 s%@SET_MAKE@%$SET_MAKE%g
9653 s%@AWK@%$AWK%g
9654 s%@LEX@%$LEX%g
9655 s%@LEXLIB@%$LEXLIB%g
9656 s%@LN@%$LN%g
9657 s%@LN_S@%$LN_S%g
9658 s%@RANLIB@%$RANLIB%g
9659 s%@YACC@%$YACC%g
9660 s%@INSTALL@%$INSTALL%g
9661 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9662 s%@INSTALL_DATA@%$INSTALL_DATA%g
9663 s%@CPP@%$CPP%g
9664 s%@gnat@%$gnat%g
9665 s%@MAKEINFO@%$MAKEINFO%g
9666 s%@BUILD_INFO@%$BUILD_INFO%g
9667 s%@INSTALL_INFO@%$INSTALL_INFO%g
9668 s%@vfprintf@%$vfprintf%g
9669 s%@doprint@%$doprint%g
9670 s%@manext@%$manext%g
9671 s%@objext@%$objext%g
9672 s%@PACKAGE@%$PACKAGE%g
9673 s%@VERSION@%$VERSION%g
9674 s%@ALLOCA@%$ALLOCA%g
9675 s%@USE_NLS@%$USE_NLS%g
9676 s%@MSGFMT@%$MSGFMT%g
9677 s%@GMSGFMT@%$GMSGFMT%g
9678 s%@XGETTEXT@%$XGETTEXT%g
9679 s%@GENCAT@%$GENCAT%g
9680 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9681 s%@CATALOGS@%$CATALOGS%g
9682 s%@CATOBJEXT@%$CATOBJEXT%g
9683 s%@DATADIRNAME@%$DATADIRNAME%g
9684 s%@GMOFILES@%$GMOFILES%g
9685 s%@INSTOBJEXT@%$INSTOBJEXT%g
9686 s%@INTLDEPS@%$INTLDEPS%g
9687 s%@INTLLIBS@%$INTLLIBS%g
9688 s%@INTLOBJS@%$INTLOBJS%g
9689 s%@POFILES@%$POFILES%g
9690 s%@POSUB@%$POSUB%g
9691 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
9692 s%@GT_NO@%$GT_NO%g
9693 s%@GT_YES@%$GT_YES%g
9694 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9695 s%@l@%$l%g
9696 s%@inhibit_libc@%$inhibit_libc%g
9697 s%@gthread_flags@%$gthread_flags%g
9698 s%@GGC@%$GGC%g
9699 s%@GXX_ABI_FLAG@%$GXX_ABI_FLAG%g
9700 s%@MAINT@%$MAINT%g
9701 s%@build_canonical@%$build_canonical%g
9702 s%@host_canonical@%$host_canonical%g
9703 s%@target_subdir@%$target_subdir%g
9704 s%@gcc_tooldir@%$gcc_tooldir%g
9705 s%@dollar@%$dollar%g
9706 s%@objdir@%$objdir%g
9707 s%@subdirs@%$subdirs%g
9708 s%@all_boot_languages@%$all_boot_languages%g
9709 s%@all_compilers@%$all_compilers%g
9710 s%@all_diff_excludes@%$all_diff_excludes%g
9711 s%@all_headers@%$all_headers%g
9712 s%@all_lang_makefiles@%$all_lang_makefiles%g
9713 s%@all_languages@%$all_languages%g
9714 s%@all_lib2funcs@%$all_lib2funcs%g
9715 s%@all_stagestuff@%$all_stagestuff%g
9716 s%@build_exeext@%$build_exeext%g
9717 s%@build_install_headers_dir@%$build_install_headers_dir%g
9718 s%@build_xm_file_list@%$build_xm_file_list%g
9719 s%@cc_set_by_configure@%$cc_set_by_configure%g
9720 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
9721 s%@cpp_install_dir@%$cpp_install_dir%g
9722 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
9723 s%@dep_tmake_file@%$dep_tmake_file%g
9724 s%@extra_c_flags@%$extra_c_flags%g
9725 s%@extra_c_objs@%$extra_c_objs%g
9726 s%@extra_cpp_objs@%$extra_cpp_objs%g
9727 s%@extra_cxx_objs@%$extra_cxx_objs%g
9728 s%@extra_headers_list@%$extra_headers_list%g
9729 s%@extra_objs@%$extra_objs%g
9730 s%@extra_parts@%$extra_parts%g
9731 s%@extra_passes@%$extra_passes%g
9732 s%@extra_programs@%$extra_programs%g
9733 s%@float_h_file@%$float_h_file%g
9734 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
9735 s%@gcc_version@%$gcc_version%g
9736 s%@gcc_version_trigger@%$gcc_version_trigger%g
9737 s%@host_exeext@%$host_exeext%g
9738 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
9739 s%@host_xm_file_list@%$host_xm_file_list%g
9740 s%@install@%$install%g
9741 s%@lang_options_files@%$lang_options_files%g
9742 s%@lang_specs_files@%$lang_specs_files%g
9743 s%@lang_tree_files@%$lang_tree_files%g
9744 s%@local_prefix@%$local_prefix%g
9745 s%@maybe_use_collect2@%$maybe_use_collect2%g
9746 s%@md_file@%$md_file%g
9747 s%@objc_boehm_gc@%$objc_boehm_gc%g
9748 s%@out_file@%$out_file%g
9749 s%@out_object_file@%$out_object_file%g
9750 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
9751 s%@symbolic_link@%$symbolic_link%g
9752 s%@thread_file@%$thread_file%g
9753 s%@tm_file_list@%$tm_file_list%g
9754 s%@will_use_collect2@%$will_use_collect2%g
9755 /@target_overrides@/r $target_overrides
9756 s%@target_overrides@%%g
9757 /@host_overrides@/r $host_overrides
9758 s%@host_overrides@%%g
9759 s%@cross_defines@%$cross_defines%g
9760 /@cross_overrides@/r $cross_overrides
9761 s%@cross_overrides@%%g
9762 /@build_overrides@/r $build_overrides
9763 s%@build_overrides@%%g
9764 /@language_fragments@/r $language_fragments
9765 s%@language_fragments@%%g
9766 /@language_hooks@/r $language_hooks
9767 s%@language_hooks@%%g
9769 CEOF
9772 cat >> $CONFIG_STATUS <<\EOF
9774 # Split the substitutions into bite-sized pieces for seds with
9775 # small command number limits, like on Digital OSF/1 and HP-UX.
9776 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9777 ac_file=1 # Number of current file.
9778 ac_beg=1 # First line for current file.
9779 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9780 ac_more_lines=:
9781 ac_sed_cmds=""
9782 while $ac_more_lines; do
9783 if test $ac_beg -gt 1; then
9784 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9785 else
9786 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9788 if test ! -s conftest.s$ac_file; then
9789 ac_more_lines=false
9790 rm -f conftest.s$ac_file
9791 else
9792 if test -z "$ac_sed_cmds"; then
9793 ac_sed_cmds="sed -f conftest.s$ac_file"
9794 else
9795 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9797 ac_file=`expr $ac_file + 1`
9798 ac_beg=$ac_end
9799 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9801 done
9802 if test -z "$ac_sed_cmds"; then
9803 ac_sed_cmds=cat
9807 cat >> $CONFIG_STATUS <<EOF
9809 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
9811 cat >> $CONFIG_STATUS <<\EOF
9812 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9813 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9814 case "$ac_file" in
9815 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9816 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9817 *) ac_file_in="${ac_file}.in" ;;
9818 esac
9820 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9822 # Remove last slash and all that follows it. Not all systems have dirname.
9823 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9824 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9825 # The file is in a subdirectory.
9826 test ! -d "$ac_dir" && mkdir "$ac_dir"
9827 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9828 # A "../" for each directory in $ac_dir_suffix.
9829 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9830 else
9831 ac_dir_suffix= ac_dots=
9834 case "$ac_given_srcdir" in
9835 .) srcdir=.
9836 if test -z "$ac_dots"; then top_srcdir=.
9837 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9838 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9839 *) # Relative path.
9840 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9841 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9842 esac
9845 echo creating "$ac_file"
9846 rm -f "$ac_file"
9847 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9848 case "$ac_file" in
9849 *Makefile*) ac_comsub="1i\\
9850 # $configure_input" ;;
9851 *) ac_comsub= ;;
9852 esac
9854 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9855 sed -e "$ac_comsub
9856 s%@configure_input@%$configure_input%g
9857 s%@srcdir@%$srcdir%g
9858 s%@top_srcdir@%$top_srcdir%g
9859 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9860 fi; done
9861 rm -f conftest.s*
9863 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9864 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9866 # ac_d sets the value in "#define NAME VALUE" lines.
9867 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9868 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9869 ac_dC='\3'
9870 ac_dD='%g'
9871 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9872 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9873 ac_uB='\([ ]\)%\1#\2define\3'
9874 ac_uC=' '
9875 ac_uD='\4%g'
9876 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9877 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9878 ac_eB='$%\1#\2define\3'
9879 ac_eC=' '
9880 ac_eD='%g'
9882 if test "${CONFIG_HEADERS+set}" != set; then
9884 cat >> $CONFIG_STATUS <<EOF
9885 CONFIG_HEADERS="auto-host.h:config.in"
9887 cat >> $CONFIG_STATUS <<\EOF
9889 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9890 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9891 case "$ac_file" in
9892 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9893 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9894 *) ac_file_in="${ac_file}.in" ;;
9895 esac
9897 echo creating $ac_file
9899 rm -f conftest.frag conftest.in conftest.out
9900 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9901 cat $ac_file_inputs > conftest.in
9905 # Transform confdefs.h into a sed script conftest.vals that substitutes
9906 # the proper values into config.h.in to produce config.h. And first:
9907 # Protect against being on the right side of a sed subst in config.status.
9908 # Protect against being in an unquoted here document in config.status.
9909 rm -f conftest.vals
9910 cat > conftest.hdr <<\EOF
9911 s/[\\&%]/\\&/g
9912 s%[\\$`]%\\&%g
9913 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9914 s%ac_d%ac_u%gp
9915 s%ac_u%ac_e%gp
9917 sed -n -f conftest.hdr confdefs.h > conftest.vals
9918 rm -f conftest.hdr
9920 # This sed command replaces #undef with comments. This is necessary, for
9921 # example, in the case of _POSIX_SOURCE, which is predefined and required
9922 # on some systems where configure will not decide to define it.
9923 cat >> conftest.vals <<\EOF
9924 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9927 # Break up conftest.vals because some shells have a limit on
9928 # the size of here documents, and old seds have small limits too.
9930 rm -f conftest.tail
9931 while :
9933 ac_lines=`grep -c . conftest.vals`
9934 # grep -c gives empty output for an empty file on some AIX systems.
9935 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9936 # Write a limited-size here document to conftest.frag.
9937 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9938 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9939 echo 'CEOF
9940 sed -f conftest.frag conftest.in > conftest.out
9941 rm -f conftest.in
9942 mv conftest.out conftest.in
9943 ' >> $CONFIG_STATUS
9944 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9945 rm -f conftest.vals
9946 mv conftest.tail conftest.vals
9947 done
9948 rm -f conftest.vals
9950 cat >> $CONFIG_STATUS <<\EOF
9951 rm -f conftest.frag conftest.h
9952 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9953 cat conftest.in >> conftest.h
9954 rm -f conftest.in
9955 if cmp -s $ac_file conftest.h 2>/dev/null; then
9956 echo "$ac_file is unchanged"
9957 rm -f conftest.h
9958 else
9959 # Remove last slash and all that follows it. Not all systems have dirname.
9960 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9961 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9962 # The file is in a subdirectory.
9963 test ! -d "$ac_dir" && mkdir "$ac_dir"
9965 rm -f $ac_file
9966 mv conftest.h $ac_file
9968 fi; done
9972 cat >> $CONFIG_STATUS <<EOF
9973 ac_sources="$nls_cv_header_libgt"
9974 ac_dests="$nls_cv_header_intl"
9977 cat >> $CONFIG_STATUS <<\EOF
9978 srcdir=$ac_given_srcdir
9979 while test -n "$ac_sources"; do
9980 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9981 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9983 echo "linking $srcdir/$ac_source to $ac_dest"
9985 if test ! -r $srcdir/$ac_source; then
9986 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9988 rm -f $ac_dest
9990 # Make relative symlinks.
9991 # Remove last slash and all that follows it. Not all systems have dirname.
9992 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
9993 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9994 # The dest file is in a subdirectory.
9995 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9996 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
9997 # A "../" for each directory in $ac_dest_dir_suffix.
9998 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
9999 else
10000 ac_dest_dir_suffix= ac_dots=
10003 case "$srcdir" in
10004 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
10005 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
10006 esac
10008 # Make a symlink if possible; otherwise try a hard link.
10009 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
10010 ln $srcdir/$ac_source $ac_dest; then :
10011 else
10012 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
10014 done
10016 cat >> $CONFIG_STATUS <<EOF
10019 host='${host}'
10020 build='${build}'
10021 target='${target}'
10022 target_alias='${target_alias}'
10023 srcdir='${srcdir}'
10024 subdirs='${subdirs}'
10025 oldstyle_subdirs='${oldstyle_subdirs}'
10026 symbolic_link='${symbolic_link}'
10027 program_transform_set='${program_transform_set}'
10028 program_transform_name='${program_transform_name}'
10029 dep_host_xmake_file='${dep_host_xmake_file}'
10030 host_xmake_file='${host_xmake_file}'
10031 dep_tmake_file='${dep_tmake_file}'
10032 tmake_file='${tmake_file}'
10033 thread_file='${thread_file}'
10034 gcc_version='${gcc_version}'
10035 gcc_version_trigger='${gcc_version_trigger}'
10036 local_prefix='${local_prefix}'
10037 build_install_headers_dir='${build_install_headers_dir}'
10038 build_exeext='${build_exeext}'
10039 host_exeext='${host_exeext}'
10040 out_file='${out_file}'
10041 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
10042 SET_MAKE='${SET_MAKE}'
10043 target_list='${target_list}'
10044 target_overrides='${target_overrides}'
10045 host_overrides='${host_overrides}'
10046 cross_defines='${cross_defines}'
10047 cross_overrides='${cross_overrides}'
10048 build_overrides='${build_overrides}'
10049 cpp_install_dir='${cpp_install_dir}'
10052 cat >> $CONFIG_STATUS <<\EOF
10053 case "$CONFIG_FILES" in *po/Makefile.in*)
10054 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
10055 esac
10057 . $srcdir/configure.lang
10058 case x$CONFIG_HEADERS in
10059 xauto-host.h:config.in)
10060 echo > cstamp-h ;;
10061 esac
10062 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
10063 # bootstrapping and the installation procedure can still use
10064 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
10065 # FLAGS_TO_PASS has been modified to solve the problem there.
10066 # This is virtually a duplicate of what happens in configure.lang; we do
10067 # an extra check to make sure this only happens if ln -s can be used.
10068 if test "$symbolic_link" = "ln -s"; then
10069 for d in .. ${subdirs} ; do
10070 if test $d != ..; then
10071 STARTDIR=`pwd`
10072 cd $d
10073 for t in stage1 stage2 stage3 stage4 include
10075 rm -f $t
10076 $symbolic_link ../$t $t 2>/dev/null
10077 done
10078 cd $STARTDIR
10080 done
10081 else true ; fi
10082 # Avoid having to add intl to our include paths.
10083 if test -f intl/libintl.h; then
10084 echo creating libintl.h
10085 echo '#include "intl/libintl.h"' >libintl.h
10088 exit 0
10090 chmod +x $CONFIG_STATUS
10091 rm -fr confdefs* $ac_clean_files
10092 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1