configure.in: Adjust FreeBSD bits to match changes to config.guess.
[gcc.git] / gcc / configure
1 #! /bin/sh
2
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.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
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,rtl"
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"
83
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'
117
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
124
125 ac_prev=
126 for ac_option
127 do
128
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
134 fi
135
136 case "$ac_option" in
137 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
138 *) ac_optarg= ;;
139 esac
140
141 # Accept the important Cygnus configure options, so we can diagnose typos.
142
143 case "$ac_option" in
144
145 -bindir | --bindir | --bindi | --bind | --bin | --bi)
146 ac_prev=bindir ;;
147 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
148 bindir="$ac_optarg" ;;
149
150 -build | --build | --buil | --bui | --bu)
151 ac_prev=build ;;
152 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
153 build="$ac_optarg" ;;
154
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" ;;
161
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" ;;
167
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; }
173 fi
174 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
175 eval "enable_${ac_feature}=no" ;;
176
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; }
182 fi
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'" ;;
189
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" ;;
198
199 -gas | --gas | --ga | --g)
200 # Obsolete; use --with-gas.
201 with_gas=yes ;;
202
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
239 EOF
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
252 EOF
253 if test -n "$ac_help"; then
254 echo "--enable and --with options recognized:$ac_help"
255 fi
256 exit 0 ;;
257
258 -host | --host | --hos | --ho)
259 ac_prev=host ;;
260 -host=* | --host=* | --hos=* | --ho=*)
261 host="$ac_optarg" ;;
262
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" ;;
269
270 -infodir | --infodir | --infodi | --infod | --info | --inf)
271 ac_prev=infodir ;;
272 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
273 infodir="$ac_optarg" ;;
274
275 -libdir | --libdir | --libdi | --libd)
276 ac_prev=libdir ;;
277 -libdir=* | --libdir=* | --libdi=* | --libd=*)
278 libdir="$ac_optarg" ;;
279
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" ;;
286
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" ;;
295
296 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
297 ac_prev=mandir ;;
298 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
299 mandir="$ac_optarg" ;;
300
301 -nfp | --nfp | --nf)
302 # Obsolete; use --without-fp.
303 with_fp=no ;;
304
305 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
306 | --no-cr | --no-c)
307 no_create=yes ;;
308
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 ;;
312
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" ;;
321
322 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
323 ac_prev=prefix ;;
324 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
325 prefix="$ac_optarg" ;;
326
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" ;;
333
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" ;;
340
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" ;;
357
358 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
359 | -silent | --silent | --silen | --sile | --sil)
360 silent=yes ;;
361
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" ;;
367
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" ;;
378
379 -site | --site | --sit)
380 ac_prev=site ;;
381 -site=* | --site=* | --sit=*)
382 site="$ac_optarg" ;;
383
384 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
385 ac_prev=srcdir ;;
386 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
387 srcdir="$ac_optarg" ;;
388
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" ;;
395
396 -target | --target | --targe | --targ | --tar | --ta | --t)
397 ac_prev=target ;;
398 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
399 target="$ac_optarg" ;;
400
401 -v | -verbose | --verbose | --verbos | --verbo | --verb)
402 verbose=yes ;;
403
404 -version | --version | --versio | --versi | --vers)
405 echo "configure generated by autoconf version 2.13"
406 exit 0 ;;
407
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; }
413 fi
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'" ;;
420
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; }
426 fi
427 ac_package=`echo $ac_package| sed 's/-/_/g'`
428 eval "with_${ac_package}=no" ;;
429
430 --x)
431 # Obsolete; use --with-x.
432 with_x=yes ;;
433
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" ;;
440
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" ;;
447
448 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
449 ;;
450
451 *)
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
454 fi
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; }
457 fi
458 nonopt="$ac_option"
459 ;;
460
461 esac
462 done
463
464 if test -n "$ac_prev"; then
465 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
466 fi
467
468 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
469
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
482 fi
483 exec 5>./config.log
484
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
489
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
494 do
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
505
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
515
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
520
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
524
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=..
535 fi
536 else
537 ac_srcdir_defaulted=no
538 fi
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; }
544 fi
545 fi
546 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
547
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"
554 fi
555 fi
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"
560 fi
561 done
562
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
569 fi
570
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
577
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=
587 fi
588 else
589 ac_n= ac_c='\c' ac_t=
590 fi
591
592
593
594
595 remove=rm
596 hard_link=ln
597 symbolic_link='ln -s'
598 copy=cp
599
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"
613 ;;
614 *)
615 library_path_setting="ok"
616 ;;
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; }
624 fi
625
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"
638 ;;
639 *)
640 gcc_exec_prefix_setting="ok"
641 ;;
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; }
649 fi
650
651 # Check for additional parameters
652
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
660 fi
661
662
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"
668 fi
669
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
675 fi
676 cat >> confdefs.h <<EOF
677 #define DEFAULT_LINKER "$DEFAULT_LINKER"
678 EOF
679
680 fi
681
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
689 fi
690
691
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"
696 fi
697
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
703 fi
704 cat >> confdefs.h <<EOF
705 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
706 EOF
707
708 fi
709
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
717 fi
718
719
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
727 fi
728
729
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
740 fi
741
742
743 # Default local prefix if it is empty
744 if test x$local_prefix = x; then
745 local_prefix=/usr/local
746 fi
747
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
761 fi
762
763
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}
770 fi
771 fi
772
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_rtl_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
789 do
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
799 ;;
800 esac
801 if test x$ac_checking != x ; then
802 cat >> confdefs.h <<\EOF
803 #define ENABLE_CHECKING 1
804 EOF
805
806 fi
807 if test x$ac_tree_checking != x ; then
808 cat >> confdefs.h <<\EOF
809 #define ENABLE_TREE_CHECKING 1
810 EOF
811
812 fi
813 if test x$ac_rtl_checking != x ; then
814 cat >> confdefs.h <<\EOF
815 #define ENABLE_RTL_CHECKING 1
816 EOF
817
818 fi
819 if test x$ac_gc_checking != x ; then
820 cat >> confdefs.h <<\EOF
821 #define ENABLE_GC_CHECKING 1
822 EOF
823
824 fi
825 if test x$ac_gc_always_collect != x ; then
826 cat >> confdefs.h <<\EOF
827 #define ENABLE_GC_ALWAYS_COLLECT 1
828 EOF
829
830 fi
831
832 fi
833
834
835 # Check whether --enable-cpp or --disable-cpp was given.
836 if test "${enable_cpp+set}" = set; then
837 enableval="$enable_cpp"
838 :
839 else
840 enable_cpp=yes
841 fi
842
843
844 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
845 if test "${with_cpp_install_dir+set}" = set; then
846 withval="$with_cpp_install_dir"
847 if test x$withval = xyes; then
848 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
849 elif test x$withval != xno; then
850 cpp_install_dir=$withval
851 fi
852 fi
853
854
855
856 # Enable Multibyte Characters for C/C++
857 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
858 if test "${enable_c_mbchar+set}" = set; then
859 enableval="$enable_c_mbchar"
860 if test x$enable_c_mbchar != xno; then
861 extra_c_flags="${extra_c_flags} -DMULTIBYTE_CHARS=1"
862 fi
863 fi
864
865
866 # Enable threads
867 # Pass with no value to take the default
868 # Pass with a value to specify a thread package
869 # Check whether --enable-threads or --disable-threads was given.
870 if test "${enable_threads+set}" = set; then
871 enableval="$enable_threads"
872 if test x$enable_threads = xno; then
873 enable_threads=''
874 fi
875 else
876 enable_threads=''
877 fi
878
879
880 enable_threads_flag=$enable_threads
881 # Check if a valid thread package
882 case x${enable_threads_flag} in
883 x | xno)
884 # No threads
885 target_thread_file='single'
886 ;;
887 xyes)
888 # default
889 target_thread_file=''
890 ;;
891 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
892 xsolaris | xwin32 | xdce | xvxworks)
893 target_thread_file=$enable_threads_flag
894 ;;
895 *)
896 echo "$enable_threads is an unknown thread package" 1>&2
897 exit 1
898 ;;
899 esac
900
901 # Check whether --enable-objc-gc or --disable-objc-gc was given.
902 if test "${enable_objc_gc+set}" = set; then
903 enableval="$enable_objc_gc"
904 if test x$enable_objc_gc = xno; then
905 objc_boehm_gc=''
906 else
907 objc_boehm_gc=1
908 fi
909 else
910 objc_boehm_gc=''
911 fi
912
913
914 # Check whether --with-dwarf2 or --without-dwarf2 was given.
915 if test "${with_dwarf2+set}" = set; then
916 withval="$with_dwarf2"
917 dwarf2="$with_dwarf2"
918 else
919 dwarf2=no
920 fi
921
922
923 # Determine the host, build, and target systems
924 ac_aux_dir=
925 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
926 if test -f $ac_dir/install-sh; then
927 ac_aux_dir=$ac_dir
928 ac_install_sh="$ac_aux_dir/install-sh -c"
929 break
930 elif 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 fi
935 done
936 if test -z "$ac_aux_dir"; then
937 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
938 fi
939 ac_config_guess=$ac_aux_dir/config.guess
940 ac_config_sub=$ac_aux_dir/config.sub
941 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
942
943
944 # Do some error checking and defaulting for the host and target type.
945 # The inputs are:
946 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
947 #
948 # The rules are:
949 # 1. You are not allowed to specify --host, --target, and nonopt at the
950 # same time.
951 # 2. Host defaults to nonopt.
952 # 3. If nonopt is not specified, then host defaults to the current host,
953 # as determined by config.guess.
954 # 4. Target and build default to nonopt.
955 # 5. If nonopt is not specified, then target and build default to host.
956
957 # The aliases save the names the user supplied, while $host etc.
958 # will get canonicalized.
959 case $host---$target---$nonopt in
960 NONE---*---* | *---NONE---* | *---*---NONE) ;;
961 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
962 esac
963
964
965 # Make sure we can run config.sub.
966 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
967 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
968 fi
969
970 echo $ac_n "checking host system type""... $ac_c" 1>&6
971 echo "configure:972: checking host system type" >&5
972
973 host_alias=$host
974 case "$host_alias" in
975 NONE)
976 case $nonopt in
977 NONE)
978 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
979 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
980 fi ;;
981 *) host_alias=$nonopt ;;
982 esac ;;
983 esac
984
985 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
986 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
987 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
988 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
989 echo "$ac_t""$host" 1>&6
990
991 echo $ac_n "checking target system type""... $ac_c" 1>&6
992 echo "configure:993: checking target system type" >&5
993
994 target_alias=$target
995 case "$target_alias" in
996 NONE)
997 case $nonopt in
998 NONE) target_alias=$host_alias ;;
999 *) target_alias=$nonopt ;;
1000 esac ;;
1001 esac
1002
1003 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1004 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1005 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1006 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1007 echo "$ac_t""$target" 1>&6
1008
1009 echo $ac_n "checking build system type""... $ac_c" 1>&6
1010 echo "configure:1011: checking build system type" >&5
1011
1012 build_alias=$build
1013 case "$build_alias" in
1014 NONE)
1015 case $nonopt in
1016 NONE) build_alias=$host_alias ;;
1017 *) build_alias=$nonopt ;;
1018 esac ;;
1019 esac
1020
1021 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1022 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1023 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1024 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1025 echo "$ac_t""$build" 1>&6
1026
1027 test "$host_alias" != "$target_alias" &&
1028 test "$program_prefix$program_suffix$program_transform_name" = \
1029 NONENONEs,x,x, &&
1030 program_prefix=${target_alias}-
1031
1032
1033 # Find the native compiler
1034 # Extract the first word of "gcc", so it can be a program name with args.
1035 set dummy gcc; ac_word=$2
1036 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1037 echo "configure:1038: checking for $ac_word" >&5
1038 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1039 echo $ac_n "(cached) $ac_c" 1>&6
1040 else
1041 if test -n "$CC"; then
1042 ac_cv_prog_CC="$CC" # Let the user override the test.
1043 else
1044 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1045 ac_dummy="$PATH"
1046 for ac_dir in $ac_dummy; do
1047 test -z "$ac_dir" && ac_dir=.
1048 if test -f $ac_dir/$ac_word; then
1049 ac_cv_prog_CC="gcc"
1050 break
1051 fi
1052 done
1053 IFS="$ac_save_ifs"
1054 fi
1055 fi
1056 CC="$ac_cv_prog_CC"
1057 if test -n "$CC"; then
1058 echo "$ac_t""$CC" 1>&6
1059 else
1060 echo "$ac_t""no" 1>&6
1061 fi
1062
1063 if test -z "$CC"; then
1064 # Extract the first word of "cc", so it can be a program name with args.
1065 set dummy cc; ac_word=$2
1066 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1067 echo "configure:1068: checking for $ac_word" >&5
1068 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1069 echo $ac_n "(cached) $ac_c" 1>&6
1070 else
1071 if test -n "$CC"; then
1072 ac_cv_prog_CC="$CC" # Let the user override the test.
1073 else
1074 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1075 ac_prog_rejected=no
1076 ac_dummy="$PATH"
1077 for ac_dir in $ac_dummy; do
1078 test -z "$ac_dir" && ac_dir=.
1079 if test -f $ac_dir/$ac_word; then
1080 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1081 ac_prog_rejected=yes
1082 continue
1083 fi
1084 ac_cv_prog_CC="cc"
1085 break
1086 fi
1087 done
1088 IFS="$ac_save_ifs"
1089 if test $ac_prog_rejected = yes; then
1090 # We found a bogon in the path, so make sure we never use it.
1091 set dummy $ac_cv_prog_CC
1092 shift
1093 if test $# -gt 0; then
1094 # We chose a different compiler from the bogus one.
1095 # However, it has the same basename, so the bogon will be chosen
1096 # first if we set CC to just the basename; use the full file name.
1097 shift
1098 set dummy "$ac_dir/$ac_word" "$@"
1099 shift
1100 ac_cv_prog_CC="$@"
1101 fi
1102 fi
1103 fi
1104 fi
1105 CC="$ac_cv_prog_CC"
1106 if test -n "$CC"; then
1107 echo "$ac_t""$CC" 1>&6
1108 else
1109 echo "$ac_t""no" 1>&6
1110 fi
1111
1112 if test -z "$CC"; then
1113 case "`uname -s`" in
1114 *win32* | *WIN32*)
1115 # Extract the first word of "cl", so it can be a program name with args.
1116 set dummy cl; ac_word=$2
1117 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1118 echo "configure:1119: checking for $ac_word" >&5
1119 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1120 echo $ac_n "(cached) $ac_c" 1>&6
1121 else
1122 if test -n "$CC"; then
1123 ac_cv_prog_CC="$CC" # Let the user override the test.
1124 else
1125 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1126 ac_dummy="$PATH"
1127 for ac_dir in $ac_dummy; do
1128 test -z "$ac_dir" && ac_dir=.
1129 if test -f $ac_dir/$ac_word; then
1130 ac_cv_prog_CC="cl"
1131 break
1132 fi
1133 done
1134 IFS="$ac_save_ifs"
1135 fi
1136 fi
1137 CC="$ac_cv_prog_CC"
1138 if test -n "$CC"; then
1139 echo "$ac_t""$CC" 1>&6
1140 else
1141 echo "$ac_t""no" 1>&6
1142 fi
1143 ;;
1144 esac
1145 fi
1146 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1147 fi
1148
1149 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1150 echo "configure:1151: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1151
1152 ac_ext=c
1153 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1154 ac_cpp='$CPP $CPPFLAGS'
1155 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1156 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1157 cross_compiling=$ac_cv_prog_cc_cross
1158
1159 cat > conftest.$ac_ext << EOF
1160
1161 #line 1162 "configure"
1162 #include "confdefs.h"
1163
1164 main(){return(0);}
1165 EOF
1166 if { (eval echo configure:1167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1167 ac_cv_prog_cc_works=yes
1168 # If we can't run a trivial program, we are probably using a cross compiler.
1169 if (./conftest; exit) 2>/dev/null; then
1170 ac_cv_prog_cc_cross=no
1171 else
1172 ac_cv_prog_cc_cross=yes
1173 fi
1174 else
1175 echo "configure: failed program was:" >&5
1176 cat conftest.$ac_ext >&5
1177 ac_cv_prog_cc_works=no
1178 fi
1179 rm -fr conftest*
1180 ac_ext=c
1181 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1182 ac_cpp='$CPP $CPPFLAGS'
1183 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1184 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1185 cross_compiling=$ac_cv_prog_cc_cross
1186
1187 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1188 if test $ac_cv_prog_cc_works = no; then
1189 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1190 fi
1191 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1192 echo "configure:1193: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1193 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1194 cross_compiling=$ac_cv_prog_cc_cross
1195
1196 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1197 echo "configure:1198: checking whether we are using GNU C" >&5
1198 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1199 echo $ac_n "(cached) $ac_c" 1>&6
1200 else
1201 cat > conftest.c <<EOF
1202 #ifdef __GNUC__
1203 yes;
1204 #endif
1205 EOF
1206 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1207 ac_cv_prog_gcc=yes
1208 else
1209 ac_cv_prog_gcc=no
1210 fi
1211 fi
1212
1213 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1214
1215 if test $ac_cv_prog_gcc = yes; then
1216 GCC=yes
1217 else
1218 GCC=
1219 fi
1220
1221 ac_test_CFLAGS="${CFLAGS+set}"
1222 ac_save_CFLAGS="$CFLAGS"
1223 CFLAGS=
1224 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1225 echo "configure:1226: checking whether ${CC-cc} accepts -g" >&5
1226 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1227 echo $ac_n "(cached) $ac_c" 1>&6
1228 else
1229 echo 'void f(){}' > conftest.c
1230 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1231 ac_cv_prog_cc_g=yes
1232 else
1233 ac_cv_prog_cc_g=no
1234 fi
1235 rm -f conftest*
1236
1237 fi
1238
1239 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1240 if test "$ac_test_CFLAGS" = set; then
1241 CFLAGS="$ac_save_CFLAGS"
1242 elif test $ac_cv_prog_cc_g = yes; then
1243 if test "$GCC" = yes; then
1244 CFLAGS="-g -O2"
1245 else
1246 CFLAGS="-g"
1247 fi
1248 else
1249 if test "$GCC" = yes; then
1250 CFLAGS="-O2"
1251 else
1252 CFLAGS=
1253 fi
1254 fi
1255
1256 if test "x$CC" != xcc; then
1257 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1258 echo "configure:1259: checking whether $CC and cc understand -c and -o together" >&5
1259 else
1260 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1261 echo "configure:1262: checking whether cc understands -c and -o together" >&5
1262 fi
1263 set dummy $CC; ac_cc="`echo $2 |
1264 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1265 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1266 echo $ac_n "(cached) $ac_c" 1>&6
1267 else
1268 echo 'foo(){}' > conftest.c
1269 # Make sure it works both with $CC and with simple cc.
1270 # We do the test twice because some compilers refuse to overwrite an
1271 # existing .o file with -o, though they will create one.
1272 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1273 if { (eval echo configure:1274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1274 test -f conftest.o && { (eval echo configure:1275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1275 then
1276 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1277 if test "x$CC" != xcc; then
1278 # Test first that cc exists at all.
1279 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1280 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1281 if { (eval echo configure:1282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1282 test -f conftest.o && { (eval echo configure:1283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1283 then
1284 # cc works too.
1285 :
1286 else
1287 # cc exists but doesn't like -o.
1288 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1289 fi
1290 fi
1291 fi
1292 else
1293 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1294 fi
1295 rm -f conftest*
1296
1297 fi
1298 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1299 echo "$ac_t""yes" 1>&6
1300 else
1301 echo "$ac_t""no" 1>&6
1302 cat >> confdefs.h <<\EOF
1303 #define NO_MINUS_C_MINUS_O 1
1304 EOF
1305
1306 fi
1307
1308 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1309 NO_MINUS_C_MINUS_O=yes
1310 fi
1311
1312
1313 echo $ac_n "checking for long double""... $ac_c" 1>&6
1314 echo "configure:1315: checking for long double" >&5
1315 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1316 echo $ac_n "(cached) $ac_c" 1>&6
1317 else
1318 if test "$GCC" = yes; then
1319 gcc_cv_c_long_double=yes
1320 else
1321 cat > conftest.$ac_ext <<EOF
1322 #line 1323 "configure"
1323 #include "confdefs.h"
1324
1325 int main() {
1326 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1327 long double foo = 0.0;
1328 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1329 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1330 ; return 0; }
1331 EOF
1332 if { (eval echo configure:1333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1333 rm -rf conftest*
1334 gcc_cv_c_long_double=yes
1335 else
1336 echo "configure: failed program was:" >&5
1337 cat conftest.$ac_ext >&5
1338 rm -rf conftest*
1339 gcc_cv_c_long_double=no
1340 fi
1341 rm -f conftest*
1342 fi
1343 fi
1344
1345 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1346 if test $gcc_cv_c_long_double = yes; then
1347 cat >> confdefs.h <<\EOF
1348 #define HAVE_LONG_DOUBLE 1
1349 EOF
1350
1351 fi
1352
1353
1354 echo $ac_n "checking whether ${CC-cc} accepts -Wno-long-long""... $ac_c" 1>&6
1355 echo "configure:1356: checking whether ${CC-cc} accepts -Wno-long-long" >&5
1356 echo 'void f(){}' > conftest.c
1357 if test -z "`${CC-cc} -Wno-long-long -c conftest.c 2>&1`"; then
1358 ac_cv_prog_cc_no_long_long=yes
1359 else
1360 ac_cv_prog_cc_no_long_long=no
1361 fi
1362 rm -f conftest*
1363 echo "$ac_t"$ac_cv_prog_cc_no_long_long 1>&6
1364
1365 # If the native compiler is GCC, we can enable warnings even in stage1.
1366 # That's useful for people building cross-compilers, or just running a
1367 # quick `make'.
1368 stage1_warn_cflags=" -W -Wall -Wtraditional -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes"
1369 stage2_warn_cflags="$stage1_warn_cflags -pedantic -Wno-long-long"
1370 if test "x$GCC" = "xyes"; then
1371 if test $ac_cv_prog_cc_no_long_long = yes; then
1372 stage1_warn_cflags="$stage1_warn_cflags -pedantic -Wno-long-long"
1373 fi
1374 else
1375 stage1_warn_cflags=""
1376 fi
1377
1378
1379
1380 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1381 echo "configure:1382: checking whether ${MAKE-make} sets \${MAKE}" >&5
1382 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1383 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1384 echo $ac_n "(cached) $ac_c" 1>&6
1385 else
1386 cat > conftestmake <<\EOF
1387 all:
1388 @echo 'ac_maketemp="${MAKE}"'
1389 EOF
1390 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1391 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1392 if test -n "$ac_maketemp"; then
1393 eval ac_cv_prog_make_${ac_make}_set=yes
1394 else
1395 eval ac_cv_prog_make_${ac_make}_set=no
1396 fi
1397 rm -f conftestmake
1398 fi
1399 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1400 echo "$ac_t""yes" 1>&6
1401 SET_MAKE=
1402 else
1403 echo "$ac_t""no" 1>&6
1404 SET_MAKE="MAKE=${MAKE-make}"
1405 fi
1406
1407
1408 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1409 echo "configure:1410: checking whether a default assembler was specified" >&5
1410 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1411 if test x"$gas_flag" = x"no"; then
1412 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1413 else
1414 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1415 fi
1416 else
1417 echo "$ac_t""no" 1>&6
1418 fi
1419
1420 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1421 echo "configure:1422: checking whether a default linker was specified" >&5
1422 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1423 if test x"$gnu_ld_flag" = x"no"; then
1424 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1425 else
1426 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1427 fi
1428 else
1429 echo "$ac_t""no" 1>&6
1430 fi
1431
1432 echo $ac_n "checking for inline""... $ac_c" 1>&6
1433 echo "configure:1434: checking for inline" >&5
1434 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1435 echo $ac_n "(cached) $ac_c" 1>&6
1436 else
1437 ac_cv_c_inline=no
1438 for ac_kw in inline __inline__ __inline; do
1439 cat > conftest.$ac_ext <<EOF
1440 #line 1441 "configure"
1441 #include "confdefs.h"
1442
1443 int main() {
1444 } $ac_kw foo() {
1445 ; return 0; }
1446 EOF
1447 if { (eval echo configure:1448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1448 rm -rf conftest*
1449 ac_cv_c_inline=$ac_kw; break
1450 else
1451 echo "configure: failed program was:" >&5
1452 cat conftest.$ac_ext >&5
1453 fi
1454 rm -f conftest*
1455 done
1456
1457 fi
1458
1459 echo "$ac_t""$ac_cv_c_inline" 1>&6
1460 case "$ac_cv_c_inline" in
1461 inline | yes) ;;
1462 no) cat >> confdefs.h <<\EOF
1463 #define inline
1464 EOF
1465 ;;
1466 *) cat >> confdefs.h <<EOF
1467 #define inline $ac_cv_c_inline
1468 EOF
1469 ;;
1470 esac
1471
1472
1473 # Find some useful tools
1474 for ac_prog in mawk gawk nawk awk
1475 do
1476 # Extract the first word of "$ac_prog", so it can be a program name with args.
1477 set dummy $ac_prog; ac_word=$2
1478 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1479 echo "configure:1480: checking for $ac_word" >&5
1480 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1481 echo $ac_n "(cached) $ac_c" 1>&6
1482 else
1483 if test -n "$AWK"; then
1484 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1485 else
1486 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1487 ac_dummy="$PATH"
1488 for ac_dir in $ac_dummy; do
1489 test -z "$ac_dir" && ac_dir=.
1490 if test -f $ac_dir/$ac_word; then
1491 ac_cv_prog_AWK="$ac_prog"
1492 break
1493 fi
1494 done
1495 IFS="$ac_save_ifs"
1496 fi
1497 fi
1498 AWK="$ac_cv_prog_AWK"
1499 if test -n "$AWK"; then
1500 echo "$ac_t""$AWK" 1>&6
1501 else
1502 echo "$ac_t""no" 1>&6
1503 fi
1504
1505 test -n "$AWK" && break
1506 done
1507
1508 # Extract the first word of "flex", so it can be a program name with args.
1509 set dummy flex; ac_word=$2
1510 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1511 echo "configure:1512: checking for $ac_word" >&5
1512 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1513 echo $ac_n "(cached) $ac_c" 1>&6
1514 else
1515 if test -n "$LEX"; then
1516 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1517 else
1518 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1519 ac_dummy="$PATH"
1520 for ac_dir in $ac_dummy; do
1521 test -z "$ac_dir" && ac_dir=.
1522 if test -f $ac_dir/$ac_word; then
1523 ac_cv_prog_LEX="flex"
1524 break
1525 fi
1526 done
1527 IFS="$ac_save_ifs"
1528 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1529 fi
1530 fi
1531 LEX="$ac_cv_prog_LEX"
1532 if test -n "$LEX"; then
1533 echo "$ac_t""$LEX" 1>&6
1534 else
1535 echo "$ac_t""no" 1>&6
1536 fi
1537
1538 if test -z "$LEXLIB"
1539 then
1540 case "$LEX" in
1541 flex*) ac_lib=fl ;;
1542 *) ac_lib=l ;;
1543 esac
1544 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1545 echo "configure:1546: checking for yywrap in -l$ac_lib" >&5
1546 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1547 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1548 echo $ac_n "(cached) $ac_c" 1>&6
1549 else
1550 ac_save_LIBS="$LIBS"
1551 LIBS="-l$ac_lib $LIBS"
1552 cat > conftest.$ac_ext <<EOF
1553 #line 1554 "configure"
1554 #include "confdefs.h"
1555 /* Override any gcc2 internal prototype to avoid an error. */
1556 /* We use char because int might match the return type of a gcc2
1557 builtin and then its argument prototype would still apply. */
1558 char yywrap();
1559
1560 int main() {
1561 yywrap()
1562 ; return 0; }
1563 EOF
1564 if { (eval echo configure:1565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1565 rm -rf conftest*
1566 eval "ac_cv_lib_$ac_lib_var=yes"
1567 else
1568 echo "configure: failed program was:" >&5
1569 cat conftest.$ac_ext >&5
1570 rm -rf conftest*
1571 eval "ac_cv_lib_$ac_lib_var=no"
1572 fi
1573 rm -f conftest*
1574 LIBS="$ac_save_LIBS"
1575
1576 fi
1577 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1578 echo "$ac_t""yes" 1>&6
1579 LEXLIB="-l$ac_lib"
1580 else
1581 echo "$ac_t""no" 1>&6
1582 fi
1583
1584 fi
1585
1586 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1587 echo "configure:1588: checking whether ln works" >&5
1588 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1589 echo $ac_n "(cached) $ac_c" 1>&6
1590 else
1591 rm -f conftestdata_t
1592 echo >conftestdata_f
1593 if ln conftestdata_f conftestdata_t 2>/dev/null
1594 then
1595 gcc_cv_prog_LN="ln"
1596 else
1597 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1598 then
1599 gcc_cv_prog_LN="ln -s"
1600 else
1601 gcc_cv_prog_LN=cp
1602 fi
1603 fi
1604 rm -f conftestdata_f conftestdata_t
1605
1606 fi
1607 LN="$gcc_cv_prog_LN"
1608 if test "$gcc_cv_prog_LN" = "ln"; then
1609 echo "$ac_t""yes" 1>&6
1610 else
1611 if test "$gcc_cv_prog_LN" = "ln -s"; then
1612 echo "$ac_t""no, using ln -s" 1>&6
1613 else
1614 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1615 fi
1616 fi
1617
1618 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1619 echo "configure:1620: checking whether ln -s works" >&5
1620 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1621 echo $ac_n "(cached) $ac_c" 1>&6
1622 else
1623 rm -f conftestdata_t
1624 echo >conftestdata_f
1625 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1626 then
1627 gcc_cv_prog_LN_S="ln -s"
1628 else
1629 if ln conftestdata_f conftestdata_t 2>/dev/null
1630 then
1631 gcc_cv_prog_LN_S=ln
1632 else
1633 gcc_cv_prog_LN_S=cp
1634 fi
1635 fi
1636 rm -f conftestdata_f conftestdata_t
1637
1638 fi
1639 LN_S="$gcc_cv_prog_LN_S"
1640 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1641 echo "$ac_t""yes" 1>&6
1642 else
1643 if test "$gcc_cv_prog_LN_S" = "ln"; then
1644 echo "$ac_t""no, using ln" 1>&6
1645 else
1646 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1647 fi
1648 fi
1649
1650 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1651 echo "configure:1652: checking for volatile" >&5
1652 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1653 echo $ac_n "(cached) $ac_c" 1>&6
1654 else
1655 cat > conftest.$ac_ext <<EOF
1656 #line 1657 "configure"
1657 #include "confdefs.h"
1658
1659 int main() {
1660 volatile int foo;
1661 ; return 0; }
1662 EOF
1663 if { (eval echo configure:1664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1664 rm -rf conftest*
1665 gcc_cv_c_volatile=yes
1666 else
1667 echo "configure: failed program was:" >&5
1668 cat conftest.$ac_ext >&5
1669 rm -rf conftest*
1670 gcc_cv_c_volatile=no
1671 fi
1672 rm -f conftest*
1673 fi
1674
1675 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1676 if test $gcc_cv_c_volatile = yes ; then
1677 cat >> confdefs.h <<\EOF
1678 #define HAVE_VOLATILE 1
1679 EOF
1680
1681 fi
1682
1683 # Extract the first word of "ranlib", so it can be a program name with args.
1684 set dummy ranlib; ac_word=$2
1685 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1686 echo "configure:1687: checking for $ac_word" >&5
1687 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1688 echo $ac_n "(cached) $ac_c" 1>&6
1689 else
1690 if test -n "$RANLIB"; then
1691 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1692 else
1693 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1694 ac_dummy="$PATH"
1695 for ac_dir in $ac_dummy; do
1696 test -z "$ac_dir" && ac_dir=.
1697 if test -f $ac_dir/$ac_word; then
1698 ac_cv_prog_RANLIB="ranlib"
1699 break
1700 fi
1701 done
1702 IFS="$ac_save_ifs"
1703 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1704 fi
1705 fi
1706 RANLIB="$ac_cv_prog_RANLIB"
1707 if test -n "$RANLIB"; then
1708 echo "$ac_t""$RANLIB" 1>&6
1709 else
1710 echo "$ac_t""no" 1>&6
1711 fi
1712
1713 for ac_prog in 'bison -y' byacc
1714 do
1715 # Extract the first word of "$ac_prog", so it can be a program name with args.
1716 set dummy $ac_prog; ac_word=$2
1717 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1718 echo "configure:1719: checking for $ac_word" >&5
1719 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1720 echo $ac_n "(cached) $ac_c" 1>&6
1721 else
1722 if test -n "$YACC"; then
1723 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1724 else
1725 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1726 ac_dummy="$PATH"
1727 for ac_dir in $ac_dummy; do
1728 test -z "$ac_dir" && ac_dir=.
1729 if test -f $ac_dir/$ac_word; then
1730 ac_cv_prog_YACC="$ac_prog"
1731 break
1732 fi
1733 done
1734 IFS="$ac_save_ifs"
1735 fi
1736 fi
1737 YACC="$ac_cv_prog_YACC"
1738 if test -n "$YACC"; then
1739 echo "$ac_t""$YACC" 1>&6
1740 else
1741 echo "$ac_t""no" 1>&6
1742 fi
1743
1744 test -n "$YACC" && break
1745 done
1746 test -n "$YACC" || YACC="yacc"
1747
1748 # Find a good install program. We prefer a C program (faster),
1749 # so one script is as good as another. But avoid the broken or
1750 # incompatible versions:
1751 # SysV /etc/install, /usr/sbin/install
1752 # SunOS /usr/etc/install
1753 # IRIX /sbin/install
1754 # AIX /bin/install
1755 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1756 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1757 # ./install, which can be erroneously created by make from ./install.sh.
1758 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1759 echo "configure:1760: checking for a BSD compatible install" >&5
1760 if test -z "$INSTALL"; then
1761 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1762 echo $ac_n "(cached) $ac_c" 1>&6
1763 else
1764 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1765 for ac_dir in $PATH; do
1766 # Account for people who put trailing slashes in PATH elements.
1767 case "$ac_dir/" in
1768 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1769 *)
1770 # OSF1 and SCO ODT 3.0 have their own names for install.
1771 for ac_prog in ginstall scoinst install; do
1772 if test -f $ac_dir/$ac_prog; then
1773 if test $ac_prog = install &&
1774 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1775 # AIX install. It has an incompatible calling convention.
1776 # OSF/1 installbsd also uses dspmsg, but is usable.
1777 :
1778 else
1779 ac_cv_path_install="$ac_dir/$ac_prog -c"
1780 break 2
1781 fi
1782 fi
1783 done
1784 ;;
1785 esac
1786 done
1787 IFS="$ac_save_IFS"
1788
1789 fi
1790 if test "${ac_cv_path_install+set}" = set; then
1791 INSTALL="$ac_cv_path_install"
1792 else
1793 # As a last resort, use the slow shell script. We don't cache a
1794 # path for INSTALL within a source directory, because that will
1795 # break other packages using the cache if that directory is
1796 # removed, or if the path is relative.
1797 INSTALL="$ac_install_sh"
1798 fi
1799 fi
1800 echo "$ac_t""$INSTALL" 1>&6
1801
1802 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1803 # It thinks the first close brace ends the variable substitution.
1804 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1805
1806 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1807
1808
1809 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1810 echo "configure:1811: checking how to run the C preprocessor" >&5
1811 # On Suns, sometimes $CPP names a directory.
1812 if test -n "$CPP" && test -d "$CPP"; then
1813 CPP=
1814 fi
1815 if test -z "$CPP"; then
1816 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1817 echo $ac_n "(cached) $ac_c" 1>&6
1818 else
1819 # This must be in double quotes, not single quotes, because CPP may get
1820 # substituted into the Makefile and "${CC-cc}" will confuse make.
1821 CPP="${CC-cc} -E"
1822 # On the NeXT, cc -E runs the code through the compiler's parser,
1823 # not just through cpp.
1824 cat > conftest.$ac_ext <<EOF
1825 #line 1826 "configure"
1826 #include "confdefs.h"
1827 #include <assert.h>
1828 Syntax Error
1829 EOF
1830 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1831 { (eval echo configure:1832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1832 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1833 if test -z "$ac_err"; then
1834 :
1835 else
1836 echo "$ac_err" >&5
1837 echo "configure: failed program was:" >&5
1838 cat conftest.$ac_ext >&5
1839 rm -rf conftest*
1840 CPP="${CC-cc} -E -traditional-cpp"
1841 cat > conftest.$ac_ext <<EOF
1842 #line 1843 "configure"
1843 #include "confdefs.h"
1844 #include <assert.h>
1845 Syntax Error
1846 EOF
1847 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1848 { (eval echo configure:1849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1849 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1850 if test -z "$ac_err"; then
1851 :
1852 else
1853 echo "$ac_err" >&5
1854 echo "configure: failed program was:" >&5
1855 cat conftest.$ac_ext >&5
1856 rm -rf conftest*
1857 CPP="${CC-cc} -nologo -E"
1858 cat > conftest.$ac_ext <<EOF
1859 #line 1860 "configure"
1860 #include "confdefs.h"
1861 #include <assert.h>
1862 Syntax Error
1863 EOF
1864 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1865 { (eval echo configure:1866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1866 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1867 if test -z "$ac_err"; then
1868 :
1869 else
1870 echo "$ac_err" >&5
1871 echo "configure: failed program was:" >&5
1872 cat conftest.$ac_ext >&5
1873 rm -rf conftest*
1874 CPP=/lib/cpp
1875 fi
1876 rm -f conftest*
1877 fi
1878 rm -f conftest*
1879 fi
1880 rm -f conftest*
1881 ac_cv_prog_CPP="$CPP"
1882 fi
1883 CPP="$ac_cv_prog_CPP"
1884 else
1885 ac_cv_prog_CPP="$CPP"
1886 fi
1887 echo "$ac_t""$CPP" 1>&6
1888
1889 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1890 echo "configure:1891: checking for ANSI C header files" >&5
1891 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1892 echo $ac_n "(cached) $ac_c" 1>&6
1893 else
1894 cat > conftest.$ac_ext <<EOF
1895 #line 1896 "configure"
1896 #include "confdefs.h"
1897 #include <stdlib.h>
1898 #include <stdarg.h>
1899 #include <string.h>
1900 #include <float.h>
1901 EOF
1902 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1903 { (eval echo configure:1904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1904 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1905 if test -z "$ac_err"; then
1906 rm -rf conftest*
1907 ac_cv_header_stdc=yes
1908 else
1909 echo "$ac_err" >&5
1910 echo "configure: failed program was:" >&5
1911 cat conftest.$ac_ext >&5
1912 rm -rf conftest*
1913 ac_cv_header_stdc=no
1914 fi
1915 rm -f conftest*
1916
1917 if test $ac_cv_header_stdc = yes; then
1918 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1919 cat > conftest.$ac_ext <<EOF
1920 #line 1921 "configure"
1921 #include "confdefs.h"
1922 #include <string.h>
1923 EOF
1924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1925 egrep "memchr" >/dev/null 2>&1; then
1926 :
1927 else
1928 rm -rf conftest*
1929 ac_cv_header_stdc=no
1930 fi
1931 rm -f conftest*
1932
1933 fi
1934
1935 if test $ac_cv_header_stdc = yes; then
1936 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1937 cat > conftest.$ac_ext <<EOF
1938 #line 1939 "configure"
1939 #include "confdefs.h"
1940 #include <stdlib.h>
1941 EOF
1942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1943 egrep "free" >/dev/null 2>&1; then
1944 :
1945 else
1946 rm -rf conftest*
1947 ac_cv_header_stdc=no
1948 fi
1949 rm -f conftest*
1950
1951 fi
1952
1953 if test $ac_cv_header_stdc = yes; then
1954 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1955 if test "$cross_compiling" = yes; then
1956 :
1957 else
1958 cat > conftest.$ac_ext <<EOF
1959 #line 1960 "configure"
1960 #include "confdefs.h"
1961 #include <ctype.h>
1962 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1963 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1964 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1965 int main () { int i; for (i = 0; i < 256; i++)
1966 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1967 exit (0); }
1968
1969 EOF
1970 if { (eval echo configure:1971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1971 then
1972 :
1973 else
1974 echo "configure: failed program was:" >&5
1975 cat conftest.$ac_ext >&5
1976 rm -fr conftest*
1977 ac_cv_header_stdc=no
1978 fi
1979 rm -fr conftest*
1980 fi
1981
1982 fi
1983 fi
1984
1985 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1986 if test $ac_cv_header_stdc = yes; then
1987 cat >> confdefs.h <<\EOF
1988 #define STDC_HEADERS 1
1989 EOF
1990
1991 fi
1992
1993 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1994 echo "configure:1995: checking whether time.h and sys/time.h may both be included" >&5
1995 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1996 echo $ac_n "(cached) $ac_c" 1>&6
1997 else
1998 cat > conftest.$ac_ext <<EOF
1999 #line 2000 "configure"
2000 #include "confdefs.h"
2001 #include <sys/types.h>
2002 #include <sys/time.h>
2003 #include <time.h>
2004 int main() {
2005 struct tm *tp;
2006 ; return 0; }
2007 EOF
2008 if { (eval echo configure:2009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2009 rm -rf conftest*
2010 ac_cv_header_time=yes
2011 else
2012 echo "configure: failed program was:" >&5
2013 cat conftest.$ac_ext >&5
2014 rm -rf conftest*
2015 ac_cv_header_time=no
2016 fi
2017 rm -f conftest*
2018 fi
2019
2020 echo "$ac_t""$ac_cv_header_time" 1>&6
2021 if test $ac_cv_header_time = yes; then
2022 cat >> confdefs.h <<\EOF
2023 #define TIME_WITH_SYS_TIME 1
2024 EOF
2025
2026 fi
2027
2028 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
2029 echo "configure:2030: checking whether string.h and strings.h may both be included" >&5
2030 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
2031 echo $ac_n "(cached) $ac_c" 1>&6
2032 else
2033 cat > conftest.$ac_ext <<EOF
2034 #line 2035 "configure"
2035 #include "confdefs.h"
2036 #include <string.h>
2037 #include <strings.h>
2038 int main() {
2039
2040 ; return 0; }
2041 EOF
2042 if { (eval echo configure:2043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2043 rm -rf conftest*
2044 gcc_cv_header_string=yes
2045 else
2046 echo "configure: failed program was:" >&5
2047 cat conftest.$ac_ext >&5
2048 rm -rf conftest*
2049 gcc_cv_header_string=no
2050 fi
2051 rm -f conftest*
2052 fi
2053
2054 echo "$ac_t""$gcc_cv_header_string" 1>&6
2055 if test $gcc_cv_header_string = yes; then
2056 cat >> confdefs.h <<\EOF
2057 #define STRING_WITH_STRINGS 1
2058 EOF
2059
2060 fi
2061
2062 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2063 echo "configure:2064: checking for sys/wait.h that is POSIX.1 compatible" >&5
2064 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2065 echo $ac_n "(cached) $ac_c" 1>&6
2066 else
2067 cat > conftest.$ac_ext <<EOF
2068 #line 2069 "configure"
2069 #include "confdefs.h"
2070 #include <sys/types.h>
2071 #include <sys/wait.h>
2072 #ifndef WEXITSTATUS
2073 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2074 #endif
2075 #ifndef WIFEXITED
2076 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2077 #endif
2078 int main() {
2079 int s;
2080 wait (&s);
2081 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2082 ; return 0; }
2083 EOF
2084 if { (eval echo configure:2085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2085 rm -rf conftest*
2086 ac_cv_header_sys_wait_h=yes
2087 else
2088 echo "configure: failed program was:" >&5
2089 cat conftest.$ac_ext >&5
2090 rm -rf conftest*
2091 ac_cv_header_sys_wait_h=no
2092 fi
2093 rm -f conftest*
2094 fi
2095
2096 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2097 if test $ac_cv_header_sys_wait_h = yes; then
2098 cat >> confdefs.h <<\EOF
2099 #define HAVE_SYS_WAIT_H 1
2100 EOF
2101
2102 fi
2103
2104 for ac_hdr in limits.h stddef.h string.h strings.h stdlib.h time.h \
2105 fcntl.h unistd.h stab.h sys/file.h sys/time.h \
2106 sys/resource.h sys/param.h sys/times.h sys/stat.h \
2107 direct.h malloc.h
2108 do
2109 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2110 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2111 echo "configure:2112: checking for $ac_hdr" >&5
2112 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2113 echo $ac_n "(cached) $ac_c" 1>&6
2114 else
2115 cat > conftest.$ac_ext <<EOF
2116 #line 2117 "configure"
2117 #include "confdefs.h"
2118 #include <$ac_hdr>
2119 EOF
2120 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2121 { (eval echo configure:2122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2122 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2123 if test -z "$ac_err"; then
2124 rm -rf conftest*
2125 eval "ac_cv_header_$ac_safe=yes"
2126 else
2127 echo "$ac_err" >&5
2128 echo "configure: failed program was:" >&5
2129 cat conftest.$ac_ext >&5
2130 rm -rf conftest*
2131 eval "ac_cv_header_$ac_safe=no"
2132 fi
2133 rm -f conftest*
2134 fi
2135 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2136 echo "$ac_t""yes" 1>&6
2137 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2138 cat >> confdefs.h <<EOF
2139 #define $ac_tr_hdr 1
2140 EOF
2141
2142 else
2143 echo "$ac_t""no" 1>&6
2144 fi
2145 done
2146
2147
2148 # Check for thread headers.
2149 ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'`
2150 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2151 echo "configure:2152: checking for thread.h" >&5
2152 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2153 echo $ac_n "(cached) $ac_c" 1>&6
2154 else
2155 cat > conftest.$ac_ext <<EOF
2156 #line 2157 "configure"
2157 #include "confdefs.h"
2158 #include <thread.h>
2159 EOF
2160 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2161 { (eval echo configure:2162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2162 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2163 if test -z "$ac_err"; then
2164 rm -rf conftest*
2165 eval "ac_cv_header_$ac_safe=yes"
2166 else
2167 echo "$ac_err" >&5
2168 echo "configure: failed program was:" >&5
2169 cat conftest.$ac_ext >&5
2170 rm -rf conftest*
2171 eval "ac_cv_header_$ac_safe=no"
2172 fi
2173 rm -f conftest*
2174 fi
2175 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2176 echo "$ac_t""yes" 1>&6
2177 have_thread_h=yes
2178 else
2179 echo "$ac_t""no" 1>&6
2180 have_thread_h=
2181 fi
2182
2183 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2184 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2185 echo "configure:2186: checking for pthread.h" >&5
2186 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2187 echo $ac_n "(cached) $ac_c" 1>&6
2188 else
2189 cat > conftest.$ac_ext <<EOF
2190 #line 2191 "configure"
2191 #include "confdefs.h"
2192 #include <pthread.h>
2193 EOF
2194 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2195 { (eval echo configure:2196: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2196 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2197 if test -z "$ac_err"; then
2198 rm -rf conftest*
2199 eval "ac_cv_header_$ac_safe=yes"
2200 else
2201 echo "$ac_err" >&5
2202 echo "configure: failed program was:" >&5
2203 cat conftest.$ac_ext >&5
2204 rm -rf conftest*
2205 eval "ac_cv_header_$ac_safe=no"
2206 fi
2207 rm -f conftest*
2208 fi
2209 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2210 echo "$ac_t""yes" 1>&6
2211 have_pthread_h=yes
2212 else
2213 echo "$ac_t""no" 1>&6
2214 have_pthread_h=
2215 fi
2216
2217
2218 # See if GNAT has been installed
2219 # Extract the first word of "gnatbind", so it can be a program name with args.
2220 set dummy gnatbind; ac_word=$2
2221 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2222 echo "configure:2223: checking for $ac_word" >&5
2223 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2224 echo $ac_n "(cached) $ac_c" 1>&6
2225 else
2226 if test -n "$gnat"; then
2227 ac_cv_prog_gnat="$gnat" # Let the user override the test.
2228 else
2229 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2230 ac_dummy="$PATH"
2231 for ac_dir in $ac_dummy; do
2232 test -z "$ac_dir" && ac_dir=.
2233 if test -f $ac_dir/$ac_word; then
2234 ac_cv_prog_gnat="yes"
2235 break
2236 fi
2237 done
2238 IFS="$ac_save_ifs"
2239 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat="no"
2240 fi
2241 fi
2242 gnat="$ac_cv_prog_gnat"
2243 if test -n "$gnat"; then
2244 echo "$ac_t""$gnat" 1>&6
2245 else
2246 echo "$ac_t""no" 1>&6
2247 fi
2248
2249
2250 # Do we have a single-tree copy of texinfo?
2251 if test -f $srcdir/../texinfo/Makefile.in; then
2252 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
2253 gcc_cv_prog_makeinfo_modern=yes
2254 echo "$ac_t""Using makeinfo from the unified source tree." 1>&6
2255 else
2256 # See if makeinfo has been installed and is modern enough
2257 # that we can use it.
2258 # Extract the first word of "makeinfo", so it can be a program name with args.
2259 set dummy makeinfo; ac_word=$2
2260 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2261 echo "configure:2262: checking for $ac_word" >&5
2262 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2263 echo $ac_n "(cached) $ac_c" 1>&6
2264 else
2265 if test -n "$MAKEINFO"; then
2266 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2267 else
2268 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2269 ac_dummy="$PATH"
2270 for ac_dir in $ac_dummy; do
2271 test -z "$ac_dir" && ac_dir=.
2272 if test -f $ac_dir/$ac_word; then
2273 ac_cv_prog_MAKEINFO="makeinfo"
2274 break
2275 fi
2276 done
2277 IFS="$ac_save_ifs"
2278 fi
2279 fi
2280 MAKEINFO="$ac_cv_prog_MAKEINFO"
2281 if test -n "$MAKEINFO"; then
2282 echo "$ac_t""$MAKEINFO" 1>&6
2283 else
2284 echo "$ac_t""no" 1>&6
2285 fi
2286
2287 if test -n "$MAKEINFO"; then
2288 # Found it, now check the version.
2289 echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6
2290 echo "configure:2291: checking for modern makeinfo" >&5
2291 if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then
2292 echo $ac_n "(cached) $ac_c" 1>&6
2293 else
2294 ac_prog_version=`$MAKEINFO --version 2>&1 |
2295 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
2296 echo "configure:2297: version of makeinfo is $ac_prog_version" >&5
2297 case $ac_prog_version in
2298 '') gcc_cv_prog_makeinfo_modern=no;;
2299 3.1[2-9] | 3.[2-9][0-9] | 4.* | 1.6[89] | 1.7[0-9])
2300 gcc_cv_prog_makeinfo_modern=yes;;
2301 *) gcc_cv_prog_makeinfo_modern=no;;
2302 esac
2303
2304 fi
2305
2306 echo "$ac_t""$gcc_cv_prog_makeinfo_modern" 1>&6
2307 else
2308 gcc_cv_prog_makeinfo_modern=no
2309 fi
2310
2311 fi
2312
2313 if test $gcc_cv_prog_makeinfo_modern = no; then
2314 echo "configure: warning:
2315 *** Makeinfo is missing or too old.
2316 *** Info documentation will not be built or installed." 1>&2
2317 BUILD_INFO=
2318 INSTALL_INFO=
2319 else
2320 BUILD_INFO=info
2321 INSTALL_INFO=install-info
2322 fi
2323
2324 # See if the stage1 system preprocessor understands the ANSI C
2325 # preprocessor stringification operator.
2326
2327
2328 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
2329 echo "configure:2330: checking for preprocessor stringizing operator" >&5
2330 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
2331 echo $ac_n "(cached) $ac_c" 1>&6
2332 else
2333 cat > conftest.$ac_ext <<EOF
2334 #line 2335 "configure"
2335 #include "confdefs.h"
2336
2337 #define x(y) #y
2338
2339 char *s = x(teststring);
2340
2341 EOF
2342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2343 egrep "#teststring" >/dev/null 2>&1; then
2344 rm -rf conftest*
2345 ac_cv_c_stringize=no
2346 else
2347 rm -rf conftest*
2348 ac_cv_c_stringize=yes
2349 fi
2350 rm -f conftest*
2351
2352 fi
2353
2354 if test "${ac_cv_c_stringize}" = yes
2355 then
2356 cat >> confdefs.h <<\EOF
2357 #define HAVE_STRINGIZE 1
2358 EOF
2359
2360 fi
2361 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
2362
2363
2364 # Use <inttypes.h> only if it exists,
2365 # doesn't clash with <sys/types.h>, and declares intmax_t.
2366 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2367 echo "configure:2368: checking for inttypes.h" >&5
2368 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2369 echo $ac_n "(cached) $ac_c" 1>&6
2370 else
2371 cat > conftest.$ac_ext <<EOF
2372 #line 2373 "configure"
2373 #include "confdefs.h"
2374 #include <sys/types.h>
2375 #include <inttypes.h>
2376 int main() {
2377 intmax_t i = -1;
2378 ; return 0; }
2379 EOF
2380 if { (eval echo configure:2381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2381 rm -rf conftest*
2382 gcc_cv_header_inttypes_h=yes
2383 else
2384 echo "configure: failed program was:" >&5
2385 cat conftest.$ac_ext >&5
2386 rm -rf conftest*
2387 gcc_cv_header_inttypes_h=no
2388 fi
2389 rm -f conftest*
2390 fi
2391
2392 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2393 if test $gcc_cv_header_inttypes_h = yes; then
2394 cat >> confdefs.h <<\EOF
2395 #define HAVE_INTTYPES_H 1
2396 EOF
2397
2398 fi
2399
2400 #
2401 # Determine if enumerated bitfields are unsigned. ISO C says they can
2402 # be either signed or unsigned.
2403 #
2404 echo $ac_n "checking for unsigned enumerated bitfields""... $ac_c" 1>&6
2405 echo "configure:2406: checking for unsigned enumerated bitfields" >&5
2406 if eval "test \"`echo '$''{'gcc_cv_enum_bf_unsigned'+set}'`\" = set"; then
2407 echo $ac_n "(cached) $ac_c" 1>&6
2408 else
2409 if test "$cross_compiling" = yes; then
2410 gcc_cv_enum_bf_unsigned=yes
2411 else
2412 cat > conftest.$ac_ext <<EOF
2413 #line 2414 "configure"
2414 #include "confdefs.h"
2415 #include <stdlib.h>
2416 enum t { BLAH = 128 } ;
2417 struct s_t { enum t member : 8; } s ;
2418 int main(void)
2419 {
2420 s.member = BLAH;
2421 if (s.member < 0) exit(1);
2422 exit(0);
2423
2424 }
2425 EOF
2426 if { (eval echo configure:2427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2427 then
2428 gcc_cv_enum_bf_unsigned=yes
2429 else
2430 echo "configure: failed program was:" >&5
2431 cat conftest.$ac_ext >&5
2432 rm -fr conftest*
2433 gcc_cv_enum_bf_unsigned=no
2434 fi
2435 rm -fr conftest*
2436 fi
2437
2438 fi
2439
2440 echo "$ac_t""$gcc_cv_enum_bf_unsigned" 1>&6
2441 if test $gcc_cv_enum_bf_unsigned = yes; then
2442 cat >> confdefs.h <<\EOF
2443 #define ENUM_BITFIELDS_ARE_UNSIGNED 1
2444 EOF
2445
2446 fi
2447
2448 for ac_func in strtoul bsearch putenv popen bcopy bzero bcmp \
2449 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
2450 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2451 fputs_unlocked getrusage valloc
2452 do
2453 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2454 echo "configure:2455: checking for $ac_func" >&5
2455 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2456 echo $ac_n "(cached) $ac_c" 1>&6
2457 else
2458 cat > conftest.$ac_ext <<EOF
2459 #line 2460 "configure"
2460 #include "confdefs.h"
2461 /* System header to define __stub macros and hopefully few prototypes,
2462 which can conflict with char $ac_func(); below. */
2463 #include <assert.h>
2464 /* Override any gcc2 internal prototype to avoid an error. */
2465 /* We use char because int might match the return type of a gcc2
2466 builtin and then its argument prototype would still apply. */
2467 char $ac_func();
2468
2469 int main() {
2470
2471 /* The GNU C library defines this for functions which it implements
2472 to always fail with ENOSYS. Some functions are actually named
2473 something starting with __ and the normal name is an alias. */
2474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2475 choke me
2476 #else
2477 $ac_func();
2478 #endif
2479
2480 ; return 0; }
2481 EOF
2482 if { (eval echo configure:2483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2483 rm -rf conftest*
2484 eval "ac_cv_func_$ac_func=yes"
2485 else
2486 echo "configure: failed program was:" >&5
2487 cat conftest.$ac_ext >&5
2488 rm -rf conftest*
2489 eval "ac_cv_func_$ac_func=no"
2490 fi
2491 rm -f conftest*
2492 fi
2493
2494 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2495 echo "$ac_t""yes" 1>&6
2496 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2497 cat >> confdefs.h <<EOF
2498 #define $ac_tr_func 1
2499 EOF
2500
2501 else
2502 echo "$ac_t""no" 1>&6
2503 fi
2504 done
2505
2506
2507 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
2508 echo "configure:2509: checking for ssize_t" >&5
2509 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
2510 echo $ac_n "(cached) $ac_c" 1>&6
2511 else
2512 cat > conftest.$ac_ext <<EOF
2513 #line 2514 "configure"
2514 #include "confdefs.h"
2515 #include <sys/types.h>
2516 #if STDC_HEADERS
2517 #include <stdlib.h>
2518 #include <stddef.h>
2519 #endif
2520 EOF
2521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2522 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2523 rm -rf conftest*
2524 ac_cv_type_ssize_t=yes
2525 else
2526 rm -rf conftest*
2527 ac_cv_type_ssize_t=no
2528 fi
2529 rm -f conftest*
2530
2531 fi
2532 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2533 if test $ac_cv_type_ssize_t = no; then
2534 cat >> confdefs.h <<\EOF
2535 #define ssize_t int
2536 EOF
2537
2538 fi
2539
2540
2541 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2542 echo "configure:2543: checking for vprintf" >&5
2543 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2544 echo $ac_n "(cached) $ac_c" 1>&6
2545 else
2546 cat > conftest.$ac_ext <<EOF
2547 #line 2548 "configure"
2548 #include "confdefs.h"
2549 /* System header to define __stub macros and hopefully few prototypes,
2550 which can conflict with char vprintf(); below. */
2551 #include <assert.h>
2552 /* Override any gcc2 internal prototype to avoid an error. */
2553 /* We use char because int might match the return type of a gcc2
2554 builtin and then its argument prototype would still apply. */
2555 char vprintf();
2556
2557 int main() {
2558
2559 /* The GNU C library defines this for functions which it implements
2560 to always fail with ENOSYS. Some functions are actually named
2561 something starting with __ and the normal name is an alias. */
2562 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2563 choke me
2564 #else
2565 vprintf();
2566 #endif
2567
2568 ; return 0; }
2569 EOF
2570 if { (eval echo configure:2571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2571 rm -rf conftest*
2572 eval "ac_cv_func_vprintf=yes"
2573 else
2574 echo "configure: failed program was:" >&5
2575 cat conftest.$ac_ext >&5
2576 rm -rf conftest*
2577 eval "ac_cv_func_vprintf=no"
2578 fi
2579 rm -f conftest*
2580 fi
2581
2582 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2583 echo "$ac_t""yes" 1>&6
2584 cat >> confdefs.h <<\EOF
2585 #define HAVE_VPRINTF 1
2586 EOF
2587
2588 else
2589 echo "$ac_t""no" 1>&6
2590 fi
2591
2592 if test "$ac_cv_func_vprintf" != yes; then
2593 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2594 echo "configure:2595: checking for _doprnt" >&5
2595 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2596 echo $ac_n "(cached) $ac_c" 1>&6
2597 else
2598 cat > conftest.$ac_ext <<EOF
2599 #line 2600 "configure"
2600 #include "confdefs.h"
2601 /* System header to define __stub macros and hopefully few prototypes,
2602 which can conflict with char _doprnt(); below. */
2603 #include <assert.h>
2604 /* Override any gcc2 internal prototype to avoid an error. */
2605 /* We use char because int might match the return type of a gcc2
2606 builtin and then its argument prototype would still apply. */
2607 char _doprnt();
2608
2609 int main() {
2610
2611 /* The GNU C library defines this for functions which it implements
2612 to always fail with ENOSYS. Some functions are actually named
2613 something starting with __ and the normal name is an alias. */
2614 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2615 choke me
2616 #else
2617 _doprnt();
2618 #endif
2619
2620 ; return 0; }
2621 EOF
2622 if { (eval echo configure:2623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2623 rm -rf conftest*
2624 eval "ac_cv_func__doprnt=yes"
2625 else
2626 echo "configure: failed program was:" >&5
2627 cat conftest.$ac_ext >&5
2628 rm -rf conftest*
2629 eval "ac_cv_func__doprnt=no"
2630 fi
2631 rm -f conftest*
2632 fi
2633
2634 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2635 echo "$ac_t""yes" 1>&6
2636 cat >> confdefs.h <<\EOF
2637 #define HAVE_DOPRNT 1
2638 EOF
2639
2640 else
2641 echo "$ac_t""no" 1>&6
2642 fi
2643
2644 fi
2645
2646 vfprintf=
2647 doprint=
2648 if test $ac_cv_func_vprintf != yes ; then
2649 vfprintf=vfprintf.o
2650 if test $ac_cv_func__doprnt != yes ; then
2651 doprint=doprint.o
2652 fi
2653 fi
2654
2655
2656
2657 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2658 echo "configure:2659: checking whether the printf functions support %p" >&5
2659 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2660 echo $ac_n "(cached) $ac_c" 1>&6
2661 else
2662 if test "$cross_compiling" = yes; then
2663 gcc_cv_func_printf_ptr=no
2664 else
2665 cat > conftest.$ac_ext <<EOF
2666 #line 2667 "configure"
2667 #include "confdefs.h"
2668 #include <stdio.h>
2669
2670 int main()
2671 {
2672 char buf[64];
2673 char *p = buf, *q = NULL;
2674 sprintf(buf, "%p", p);
2675 sscanf(buf, "%p", &q);
2676 return (p != q);
2677 }
2678 EOF
2679 if { (eval echo configure:2680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2680 then
2681 gcc_cv_func_printf_ptr=yes
2682 else
2683 echo "configure: failed program was:" >&5
2684 cat conftest.$ac_ext >&5
2685 rm -fr conftest*
2686 gcc_cv_func_printf_ptr=no
2687 fi
2688 rm -fr conftest*
2689 fi
2690
2691 rm -f core core.* *.core
2692 fi
2693
2694 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2695 if test $gcc_cv_func_printf_ptr = yes ; then
2696 cat >> confdefs.h <<\EOF
2697 #define HAVE_PRINTF_PTR 1
2698 EOF
2699
2700 fi
2701
2702
2703 case "${host}" in
2704 *-*-uwin*)
2705 # Under some versions of uwin, vfork is notoriously buggy and the test
2706 # can hang configure; on other versions, vfork exists just as a stub.
2707 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2708 ac_cv_func_vfork_works=no
2709 ;;
2710 esac
2711 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2712 echo "configure:2713: checking for pid_t" >&5
2713 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2714 echo $ac_n "(cached) $ac_c" 1>&6
2715 else
2716 cat > conftest.$ac_ext <<EOF
2717 #line 2718 "configure"
2718 #include "confdefs.h"
2719 #include <sys/types.h>
2720 #if STDC_HEADERS
2721 #include <stdlib.h>
2722 #include <stddef.h>
2723 #endif
2724 EOF
2725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2726 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2727 rm -rf conftest*
2728 ac_cv_type_pid_t=yes
2729 else
2730 rm -rf conftest*
2731 ac_cv_type_pid_t=no
2732 fi
2733 rm -f conftest*
2734
2735 fi
2736 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2737 if test $ac_cv_type_pid_t = no; then
2738 cat >> confdefs.h <<\EOF
2739 #define pid_t int
2740 EOF
2741
2742 fi
2743
2744 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2745 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2746 echo "configure:2747: checking for vfork.h" >&5
2747 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2748 echo $ac_n "(cached) $ac_c" 1>&6
2749 else
2750 cat > conftest.$ac_ext <<EOF
2751 #line 2752 "configure"
2752 #include "confdefs.h"
2753 #include <vfork.h>
2754 EOF
2755 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2756 { (eval echo configure:2757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2757 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2758 if test -z "$ac_err"; then
2759 rm -rf conftest*
2760 eval "ac_cv_header_$ac_safe=yes"
2761 else
2762 echo "$ac_err" >&5
2763 echo "configure: failed program was:" >&5
2764 cat conftest.$ac_ext >&5
2765 rm -rf conftest*
2766 eval "ac_cv_header_$ac_safe=no"
2767 fi
2768 rm -f conftest*
2769 fi
2770 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2771 echo "$ac_t""yes" 1>&6
2772 cat >> confdefs.h <<\EOF
2773 #define HAVE_VFORK_H 1
2774 EOF
2775
2776 else
2777 echo "$ac_t""no" 1>&6
2778 fi
2779
2780 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2781 echo "configure:2782: checking for working vfork" >&5
2782 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2783 echo $ac_n "(cached) $ac_c" 1>&6
2784 else
2785 if test "$cross_compiling" = yes; then
2786 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2787 echo "configure:2788: checking for vfork" >&5
2788 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2789 echo $ac_n "(cached) $ac_c" 1>&6
2790 else
2791 cat > conftest.$ac_ext <<EOF
2792 #line 2793 "configure"
2793 #include "confdefs.h"
2794 /* System header to define __stub macros and hopefully few prototypes,
2795 which can conflict with char vfork(); below. */
2796 #include <assert.h>
2797 /* Override any gcc2 internal prototype to avoid an error. */
2798 /* We use char because int might match the return type of a gcc2
2799 builtin and then its argument prototype would still apply. */
2800 char vfork();
2801
2802 int main() {
2803
2804 /* The GNU C library defines this for functions which it implements
2805 to always fail with ENOSYS. Some functions are actually named
2806 something starting with __ and the normal name is an alias. */
2807 #if defined (__stub_vfork) || defined (__stub___vfork)
2808 choke me
2809 #else
2810 vfork();
2811 #endif
2812
2813 ; return 0; }
2814 EOF
2815 if { (eval echo configure:2816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2816 rm -rf conftest*
2817 eval "ac_cv_func_vfork=yes"
2818 else
2819 echo "configure: failed program was:" >&5
2820 cat conftest.$ac_ext >&5
2821 rm -rf conftest*
2822 eval "ac_cv_func_vfork=no"
2823 fi
2824 rm -f conftest*
2825 fi
2826
2827 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2828 echo "$ac_t""yes" 1>&6
2829 :
2830 else
2831 echo "$ac_t""no" 1>&6
2832 fi
2833
2834 ac_cv_func_vfork_works=$ac_cv_func_vfork
2835 else
2836 cat > conftest.$ac_ext <<EOF
2837 #line 2838 "configure"
2838 #include "confdefs.h"
2839 /* Thanks to Paul Eggert for this test. */
2840 #include <stdio.h>
2841 #include <sys/types.h>
2842 #include <sys/stat.h>
2843 #ifdef HAVE_UNISTD_H
2844 #include <unistd.h>
2845 #endif
2846 #ifdef HAVE_VFORK_H
2847 #include <vfork.h>
2848 #endif
2849 /* On some sparc systems, changes by the child to local and incoming
2850 argument registers are propagated back to the parent.
2851 The compiler is told about this with #include <vfork.h>,
2852 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2853 Test for this by using a static variable whose address
2854 is put into a register that is clobbered by the vfork. */
2855 static
2856 #ifdef __cplusplus
2857 sparc_address_test (int arg)
2858 #else
2859 sparc_address_test (arg) int arg;
2860 #endif
2861 {
2862 static pid_t child;
2863 if (!child) {
2864 child = vfork ();
2865 if (child < 0) {
2866 perror ("vfork");
2867 _exit(2);
2868 }
2869 if (!child) {
2870 arg = getpid();
2871 write(-1, "", 0);
2872 _exit (arg);
2873 }
2874 }
2875 }
2876 main() {
2877 pid_t parent = getpid ();
2878 pid_t child;
2879
2880 sparc_address_test ();
2881
2882 child = vfork ();
2883
2884 if (child == 0) {
2885 /* Here is another test for sparc vfork register problems.
2886 This test uses lots of local variables, at least
2887 as many local variables as main has allocated so far
2888 including compiler temporaries. 4 locals are enough for
2889 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2890 A buggy compiler should reuse the register of parent
2891 for one of the local variables, since it will think that
2892 parent can't possibly be used any more in this routine.
2893 Assigning to the local variable will thus munge parent
2894 in the parent process. */
2895 pid_t
2896 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2897 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2898 /* Convince the compiler that p..p7 are live; otherwise, it might
2899 use the same hardware register for all 8 local variables. */
2900 if (p != p1 || p != p2 || p != p3 || p != p4
2901 || p != p5 || p != p6 || p != p7)
2902 _exit(1);
2903
2904 /* On some systems (e.g. IRIX 3.3),
2905 vfork doesn't separate parent from child file descriptors.
2906 If the child closes a descriptor before it execs or exits,
2907 this munges the parent's descriptor as well.
2908 Test for this by closing stdout in the child. */
2909 _exit(close(fileno(stdout)) != 0);
2910 } else {
2911 int status;
2912 struct stat st;
2913
2914 while (wait(&status) != child)
2915 ;
2916 exit(
2917 /* Was there some problem with vforking? */
2918 child < 0
2919
2920 /* Did the child fail? (This shouldn't happen.) */
2921 || status
2922
2923 /* Did the vfork/compiler bug occur? */
2924 || parent != getpid()
2925
2926 /* Did the file descriptor bug occur? */
2927 || fstat(fileno(stdout), &st) != 0
2928 );
2929 }
2930 }
2931 EOF
2932 if { (eval echo configure:2933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2933 then
2934 ac_cv_func_vfork_works=yes
2935 else
2936 echo "configure: failed program was:" >&5
2937 cat conftest.$ac_ext >&5
2938 rm -fr conftest*
2939 ac_cv_func_vfork_works=no
2940 fi
2941 rm -fr conftest*
2942 fi
2943
2944 fi
2945
2946 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2947 if test $ac_cv_func_vfork_works = no; then
2948 cat >> confdefs.h <<\EOF
2949 #define vfork fork
2950 EOF
2951
2952 fi
2953
2954 for ac_hdr in unistd.h
2955 do
2956 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2957 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2958 echo "configure:2959: checking for $ac_hdr" >&5
2959 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2960 echo $ac_n "(cached) $ac_c" 1>&6
2961 else
2962 cat > conftest.$ac_ext <<EOF
2963 #line 2964 "configure"
2964 #include "confdefs.h"
2965 #include <$ac_hdr>
2966 EOF
2967 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2968 { (eval echo configure:2969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2969 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2970 if test -z "$ac_err"; then
2971 rm -rf conftest*
2972 eval "ac_cv_header_$ac_safe=yes"
2973 else
2974 echo "$ac_err" >&5
2975 echo "configure: failed program was:" >&5
2976 cat conftest.$ac_ext >&5
2977 rm -rf conftest*
2978 eval "ac_cv_header_$ac_safe=no"
2979 fi
2980 rm -f conftest*
2981 fi
2982 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2983 echo "$ac_t""yes" 1>&6
2984 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2985 cat >> confdefs.h <<EOF
2986 #define $ac_tr_hdr 1
2987 EOF
2988
2989 else
2990 echo "$ac_t""no" 1>&6
2991 fi
2992 done
2993
2994 for ac_func in getpagesize
2995 do
2996 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2997 echo "configure:2998: checking for $ac_func" >&5
2998 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2999 echo $ac_n "(cached) $ac_c" 1>&6
3000 else
3001 cat > conftest.$ac_ext <<EOF
3002 #line 3003 "configure"
3003 #include "confdefs.h"
3004 /* System header to define __stub macros and hopefully few prototypes,
3005 which can conflict with char $ac_func(); below. */
3006 #include <assert.h>
3007 /* Override any gcc2 internal prototype to avoid an error. */
3008 /* We use char because int might match the return type of a gcc2
3009 builtin and then its argument prototype would still apply. */
3010 char $ac_func();
3011
3012 int main() {
3013
3014 /* The GNU C library defines this for functions which it implements
3015 to always fail with ENOSYS. Some functions are actually named
3016 something starting with __ and the normal name is an alias. */
3017 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3018 choke me
3019 #else
3020 $ac_func();
3021 #endif
3022
3023 ; return 0; }
3024 EOF
3025 if { (eval echo configure:3026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3026 rm -rf conftest*
3027 eval "ac_cv_func_$ac_func=yes"
3028 else
3029 echo "configure: failed program was:" >&5
3030 cat conftest.$ac_ext >&5
3031 rm -rf conftest*
3032 eval "ac_cv_func_$ac_func=no"
3033 fi
3034 rm -f conftest*
3035 fi
3036
3037 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3038 echo "$ac_t""yes" 1>&6
3039 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3040 cat >> confdefs.h <<EOF
3041 #define $ac_tr_func 1
3042 EOF
3043
3044 else
3045 echo "$ac_t""no" 1>&6
3046 fi
3047 done
3048
3049 echo $ac_n "checking for working mmap from /dev/zero""... $ac_c" 1>&6
3050 echo "configure:3051: checking for working mmap from /dev/zero" >&5
3051 if eval "test \"`echo '$''{'ac_cv_func_mmap_anywhere'+set}'`\" = set"; then
3052 echo $ac_n "(cached) $ac_c" 1>&6
3053 else
3054 if test "$cross_compiling" = yes; then
3055 ac_cv_func_mmap_anywhere=no
3056 else
3057 cat > conftest.$ac_ext <<EOF
3058 #line 3059 "configure"
3059 #include "confdefs.h"
3060
3061 /* Test by Richard Henderson and Alexandre Oliva.
3062 Check whether mmap from /dev/zero works. */
3063 #include <sys/types.h>
3064 #include <fcntl.h>
3065 #include <sys/mman.h>
3066
3067 /* This mess was copied from the GNU getpagesize.h. */
3068 #ifndef HAVE_GETPAGESIZE
3069 # ifdef HAVE_UNISTD_H
3070 # include <unistd.h>
3071 # endif
3072
3073 /* Assume that all systems that can run configure have sys/param.h. */
3074 # ifndef HAVE_SYS_PARAM_H
3075 # define HAVE_SYS_PARAM_H 1
3076 # endif
3077
3078 # ifdef _SC_PAGESIZE
3079 # define getpagesize() sysconf(_SC_PAGESIZE)
3080 # else /* no _SC_PAGESIZE */
3081 # ifdef HAVE_SYS_PARAM_H
3082 # include <sys/param.h>
3083 # ifdef EXEC_PAGESIZE
3084 # define getpagesize() EXEC_PAGESIZE
3085 # else /* no EXEC_PAGESIZE */
3086 # ifdef NBPG
3087 # define getpagesize() NBPG * CLSIZE
3088 # ifndef CLSIZE
3089 # define CLSIZE 1
3090 # endif /* no CLSIZE */
3091 # else /* no NBPG */
3092 # ifdef NBPC
3093 # define getpagesize() NBPC
3094 # else /* no NBPC */
3095 # ifdef PAGESIZE
3096 # define getpagesize() PAGESIZE
3097 # endif /* PAGESIZE */
3098 # endif /* no NBPC */
3099 # endif /* no NBPG */
3100 # endif /* no EXEC_PAGESIZE */
3101 # else /* no HAVE_SYS_PARAM_H */
3102 # define getpagesize() 8192 /* punt totally */
3103 # endif /* no HAVE_SYS_PARAM_H */
3104 # endif /* no _SC_PAGESIZE */
3105
3106 #endif /* no HAVE_GETPAGESIZE */
3107
3108 int main()
3109 {
3110 char *x;
3111 int fd, pg;
3112
3113 fd = open("/dev/zero", O_RDWR);
3114 if (fd < 0)
3115 exit(1);
3116
3117 pg = getpagesize();
3118 x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
3119 if (x == (char *) -1)
3120 exit(2);
3121
3122 *(int *)x += 1;
3123
3124 if (munmap(x, pg) < 0)
3125 exit(3);
3126
3127 exit(0);
3128 }
3129 EOF
3130 if { (eval echo configure:3131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3131 then
3132 ac_cv_func_mmap_anywhere=yes
3133 else
3134 echo "configure: failed program was:" >&5
3135 cat conftest.$ac_ext >&5
3136 rm -fr conftest*
3137 ac_cv_func_mmap_anywhere=no
3138 fi
3139 rm -fr conftest*
3140 fi
3141
3142 fi
3143
3144 echo "$ac_t""$ac_cv_func_mmap_anywhere" 1>&6
3145 if test $ac_cv_func_mmap_anywhere = yes; then
3146 cat >> confdefs.h <<\EOF
3147 #define HAVE_MMAP_ANYWHERE 1
3148 EOF
3149
3150 fi
3151
3152 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
3153 echo "configure:3154: checking for working mmap of a file" >&5
3154 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
3155 echo $ac_n "(cached) $ac_c" 1>&6
3156 else
3157 # Create a file one thousand bytes long.
3158 for i in 1 2 3 4 5 6 7 8 9 0
3159 do for j in 1 2 3 4 5 6 7 8 9 0
3160 do echo $i $j xxxxx
3161 done
3162 done > conftestdata$$
3163
3164 if test "$cross_compiling" = yes; then
3165 ac_cv_func_mmap_file=no
3166 else
3167 cat > conftest.$ac_ext <<EOF
3168 #line 3169 "configure"
3169 #include "confdefs.h"
3170
3171 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
3172 Richard Henderson and Alexandre Oliva.
3173 Check whether read-only mmap of a plain file works. */
3174 #include <sys/types.h>
3175 #include <sys/stat.h>
3176 #include <fcntl.h>
3177 #include <sys/mman.h>
3178
3179 int main()
3180 {
3181 char *x;
3182 int fd;
3183 struct stat st;
3184
3185 fd = open("conftestdata$$", O_RDONLY);
3186 if (fd < 0)
3187 exit(1);
3188
3189 if (fstat (fd, &st))
3190 exit(2);
3191
3192 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
3193 if (x == (char *) -1)
3194 exit(3);
3195
3196 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
3197 exit(4);
3198
3199 if (munmap(x, st.st_size) < 0)
3200 exit(5);
3201
3202 exit(0);
3203 }
3204 EOF
3205 if { (eval echo configure:3206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3206 then
3207 ac_cv_func_mmap_file=yes
3208 else
3209 echo "configure: failed program was:" >&5
3210 cat conftest.$ac_ext >&5
3211 rm -fr conftest*
3212 ac_cv_func_mmap_file=no
3213 fi
3214 rm -fr conftest*
3215 fi
3216
3217 fi
3218
3219 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
3220 if test $ac_cv_func_mmap_file = yes; then
3221 cat >> confdefs.h <<\EOF
3222 #define HAVE_MMAP_FILE 1
3223 EOF
3224
3225 fi
3226
3227
3228 # We will need to find libiberty.h and ansidecl.h
3229 saved_CFLAGS="$CFLAGS"
3230 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
3231 for ac_func in bcopy bzero bcmp \
3232 index rindex getenv atol sbrk abort atof getcwd getwd \
3233 strsignal putc_unlocked fputs_unlocked strstr environ \
3234 malloc realloc calloc free basename getopt
3235 do
3236 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3237 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3238 echo "configure:3239: checking whether $ac_func is declared" >&5
3239 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3240 echo $ac_n "(cached) $ac_c" 1>&6
3241 else
3242 cat > conftest.$ac_ext <<EOF
3243 #line 3244 "configure"
3244 #include "confdefs.h"
3245 #include "gansidecl.h"
3246 #include "system.h"
3247
3248 int main() {
3249 #ifndef $ac_func
3250 char *(*pfn) = (char *(*)) $ac_func ;
3251 #endif
3252 ; return 0; }
3253 EOF
3254 if { (eval echo configure:3255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3255 rm -rf conftest*
3256 eval "gcc_cv_have_decl_$ac_func=yes"
3257 else
3258 echo "configure: failed program was:" >&5
3259 cat conftest.$ac_ext >&5
3260 rm -rf conftest*
3261 eval "gcc_cv_have_decl_$ac_func=no"
3262 fi
3263 rm -f conftest*
3264 fi
3265
3266 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3267 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h <<EOF
3268 #define $ac_tr_decl 1
3269 EOF
3270
3271 else
3272 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h <<EOF
3273 #define $ac_tr_decl 0
3274 EOF
3275
3276 fi
3277
3278 done
3279 if test x = y ; then
3280 cat >> confdefs.h <<EOF
3281 #define HAVE_DECL_BCOPY 1
3282 EOF
3283 cat >> confdefs.h <<EOF
3284 #define HAVE_DECL_BZERO 1
3285 EOF
3286 cat >> confdefs.h <<EOF
3287 #define HAVE_DECL_BCMP 1
3288 EOF
3289 \
3290 cat >> confdefs.h <<EOF
3291 #define HAVE_DECL_INDEX 1
3292 EOF
3293 cat >> confdefs.h <<EOF
3294 #define HAVE_DECL_RINDEX 1
3295 EOF
3296 cat >> confdefs.h <<EOF
3297 #define HAVE_DECL_GETENV 1
3298 EOF
3299 cat >> confdefs.h <<EOF
3300 #define HAVE_DECL_ATOL 1
3301 EOF
3302 cat >> confdefs.h <<EOF
3303 #define HAVE_DECL_SBRK 1
3304 EOF
3305 cat >> confdefs.h <<EOF
3306 #define HAVE_DECL_ABORT 1
3307 EOF
3308 cat >> confdefs.h <<EOF
3309 #define HAVE_DECL_ATOF 1
3310 EOF
3311 cat >> confdefs.h <<EOF
3312 #define HAVE_DECL_GETCWD 1
3313 EOF
3314 cat >> confdefs.h <<EOF
3315 #define HAVE_DECL_GETWD 1
3316 EOF
3317 \
3318 cat >> confdefs.h <<EOF
3319 #define HAVE_DECL_STRSIGNAL 1
3320 EOF
3321 cat >> confdefs.h <<EOF
3322 #define HAVE_DECL_PUTC_UNLOCKED 1
3323 EOF
3324 cat >> confdefs.h <<EOF
3325 #define HAVE_DECL_FPUTS_UNLOCKED 1
3326 EOF
3327 cat >> confdefs.h <<EOF
3328 #define HAVE_DECL_STRSTR 1
3329 EOF
3330 cat >> confdefs.h <<EOF
3331 #define HAVE_DECL_ENVIRON 1
3332 EOF
3333 \
3334 cat >> confdefs.h <<EOF
3335 #define HAVE_DECL_MALLOC 1
3336 EOF
3337 cat >> confdefs.h <<EOF
3338 #define HAVE_DECL_REALLOC 1
3339 EOF
3340 cat >> confdefs.h <<EOF
3341 #define HAVE_DECL_CALLOC 1
3342 EOF
3343 cat >> confdefs.h <<EOF
3344 #define HAVE_DECL_FREE 1
3345 EOF
3346 cat >> confdefs.h <<EOF
3347 #define HAVE_DECL_BASENAME 1
3348 EOF
3349 cat >> confdefs.h <<EOF
3350 #define HAVE_DECL_GETOPT 1
3351 EOF
3352 fi
3353
3354
3355 for ac_func in getrlimit setrlimit getrusage
3356 do
3357 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3358 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3359 echo "configure:3360: checking whether $ac_func is declared" >&5
3360 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3361 echo $ac_n "(cached) $ac_c" 1>&6
3362 else
3363 cat > conftest.$ac_ext <<EOF
3364 #line 3365 "configure"
3365 #include "confdefs.h"
3366 #include "gansidecl.h"
3367 #include "system.h"
3368 #ifdef HAVE_SYS_RESOURCE_H
3369 #include <sys/resource.h>
3370 #endif
3371
3372
3373 int main() {
3374 #ifndef $ac_func
3375 char *(*pfn) = (char *(*)) $ac_func ;
3376 #endif
3377 ; return 0; }
3378 EOF
3379 if { (eval echo configure:3380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3380 rm -rf conftest*
3381 eval "gcc_cv_have_decl_$ac_func=yes"
3382 else
3383 echo "configure: failed program was:" >&5
3384 cat conftest.$ac_ext >&5
3385 rm -rf conftest*
3386 eval "gcc_cv_have_decl_$ac_func=no"
3387 fi
3388 rm -f conftest*
3389 fi
3390
3391 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3392 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h <<EOF
3393 #define $ac_tr_decl 1
3394 EOF
3395
3396 else
3397 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h <<EOF
3398 #define $ac_tr_decl 0
3399 EOF
3400
3401 fi
3402
3403 done
3404 if test x = y ; then
3405 cat >> confdefs.h <<EOF
3406 #define HAVE_DECL_GETRLIMIT 1
3407 EOF
3408 cat >> confdefs.h <<EOF
3409 #define HAVE_DECL_SETRLIMIT 1
3410 EOF
3411 cat >> confdefs.h <<EOF
3412 #define HAVE_DECL_GETRUSAGE 1
3413 EOF
3414 fi
3415
3416
3417 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
3418 CFLAGS="$saved_CFLAGS"
3419
3420 # mkdir takes a single argument on some systems.
3421 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
3422 echo "configure:3423: checking if mkdir takes one argument" >&5
3423 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
3424 echo $ac_n "(cached) $ac_c" 1>&6
3425 else
3426 cat > conftest.$ac_ext <<EOF
3427 #line 3428 "configure"
3428 #include "confdefs.h"
3429
3430 #include <sys/types.h>
3431 #ifdef HAVE_SYS_STAT_H
3432 # include <sys/stat.h>
3433 #endif
3434 #ifdef HAVE_UNISTD_H
3435 # include <unistd.h>
3436 #endif
3437 #ifdef HAVE_DIRECT_H
3438 # include <direct.h>
3439 #endif
3440 int main() {
3441 mkdir ("foo", 0);
3442 ; return 0; }
3443 EOF
3444 if { (eval echo configure:3445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3445 rm -rf conftest*
3446 gcc_cv_mkdir_takes_one_arg=no
3447 else
3448 echo "configure: failed program was:" >&5
3449 cat conftest.$ac_ext >&5
3450 rm -rf conftest*
3451 gcc_cv_mkdir_takes_one_arg=yes
3452 fi
3453 rm -f conftest*
3454 fi
3455
3456 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
3457 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
3458 cat >> confdefs.h <<\EOF
3459 #define MKDIR_TAKES_ONE_ARG 1
3460 EOF
3461
3462 fi
3463
3464
3465 # File extensions
3466 manext='.1'
3467 objext='.o'
3468
3469
3470
3471 build_xm_file=
3472 build_xm_defines=
3473 build_install_headers_dir=install-headers-tar
3474 build_exeext=
3475 host_xm_file=
3476 host_xm_defines=
3477 host_xmake_file=
3478 host_truncate_target=
3479 host_exeext=
3480
3481 # Decode the host machine, then the target machine.
3482 # For the host machine, we save the xm_file variable as host_xm_file;
3483 # then we decode the target machine and forget everything else
3484 # that came from the host machine.
3485 for machine in $build $host $target; do
3486
3487 out_file=
3488 xmake_file=
3489 tmake_file=
3490 extra_headers=
3491 extra_passes=
3492 extra_parts=
3493 extra_programs=
3494 extra_objs=
3495 extra_host_objs=
3496 extra_gcc_objs=
3497 xm_defines=
3498 float_format=
3499 # Set this to force installation and use of collect2.
3500 use_collect2=
3501 # Set this to override the default target model.
3502 target_cpu_default=
3503 # Set this to control how the header file directory is installed.
3504 install_headers_dir=install-headers-tar
3505 # Set this to a non-empty list of args to pass to cpp if the target
3506 # wants its .md file passed through cpp.
3507 md_cppflags=
3508 # Set this if directory names should be truncated to 14 characters.
3509 truncate_target=
3510 # Set this if gdb needs a dir command with `dirname $out_file`
3511 gdb_needs_out_file_path=
3512 # Set this if the build machine requires executables to have a
3513 # file name suffix.
3514 exeext=
3515 # Set this to control which thread package will be used.
3516 thread_file=
3517 # Reinitialize these from the flag values every loop pass, since some
3518 # configure entries modify them.
3519 gas="$gas_flag"
3520 gnu_ld="$gnu_ld_flag"
3521 enable_threads=$enable_threads_flag
3522
3523 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
3524 # updated in each machine entry.
3525 tm_p_file=
3526 cpu_type=`echo $machine | sed 's/-.*$//'`
3527 case $machine in
3528 alpha*-*-*)
3529 cpu_type=alpha
3530 ;;
3531 strongarm*-*-*)
3532 cpu_type=arm
3533 ;;
3534 arm*-*-*)
3535 cpu_type=arm
3536 ;;
3537 c*-convex-*)
3538 cpu_type=convex
3539 ;;
3540 i[34567]86-*-*)
3541 cpu_type=i386
3542 ;;
3543 hppa*-*-*)
3544 cpu_type=pa
3545 ;;
3546 m68000-*-*)
3547 cpu_type=m68k
3548 ;;
3549 mips*-*-*)
3550 cpu_type=mips
3551 ;;
3552 pj*-*-*)
3553 cpu_type=pj
3554 ;;
3555 powerpc*-*-*)
3556 cpu_type=rs6000
3557 ;;
3558 pyramid-*-*)
3559 cpu_type=pyr
3560 ;;
3561 sparc*-*-*)
3562 cpu_type=sparc
3563 ;;
3564 esac
3565
3566 tm_file=${cpu_type}/${cpu_type}.h
3567 xm_file=${cpu_type}/xm-${cpu_type}.h
3568 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h;
3569 then
3570 tm_p_file=${cpu_type}/${cpu_type}-protos.h;
3571 fi
3572 # On a.out targets, we need to use collect2.
3573 case $machine in
3574 *-*-*aout*)
3575 use_collect2=yes
3576 ;;
3577 esac
3578
3579 # Common parts for linux-gnu and openbsd systems
3580 case $machine in
3581 *-*-linux-gnu*)
3582 xm_defines="HAVE_ATEXIT POSIX BSTRING"
3583 ;;
3584 *-*-openbsd*)
3585 tm_file=${cpu_type}/openbsd.h
3586 tmake_file="t-libc-ok t-openbsd"
3587 # avoid surprises, always provide an xm-openbsd file
3588 xm_file=${cpu_type}/xm-openbsd.h
3589 # don't depend on processor x-fragments as well
3590 xmake_file=none
3591 if test x$enable_threads = xyes; then
3592 thread_file='posix'
3593 tmake_file="${tmake_file} t-openbsd-thread"
3594 fi
3595 ;;
3596 esac
3597
3598 case $machine in
3599 # Support site-specific machine types.
3600 *local*)
3601 cpu_type=`echo $machine | sed -e 's/-.*//'`
3602 rest=`echo $machine | sed -e "s/$cpu_type-//"`
3603 xm_file=${cpu_type}/xm-$rest.h
3604 tm_file=${cpu_type}/$rest.h
3605 if test -f $srcdir/config/${cpu_type}/x-$rest; \
3606 then xmake_file=${cpu_type}/x-$rest; \
3607 else true; \
3608 fi
3609 if test -f $srcdir/config/${cpu_type}/t-$rest; \
3610 then tmake_file=${cpu_type}/t-$rest; \
3611 else true; \
3612 fi
3613 ;;
3614 1750a-*-*)
3615 ;;
3616 a29k-*-bsd* | a29k-*-sym1*)
3617 tm_file="${tm_file} a29k/unix.h"
3618 xm_defines=USG
3619 xmake_file=a29k/x-unix
3620 use_collect2=yes
3621 ;;
3622 a29k-*-udi | a29k-*-coff)
3623 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
3624 tmake_file=a29k/t-a29kbare
3625 ;;
3626 a29k-wrs-vxworks*)
3627 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3628 tmake_file=a29k/t-vx29k
3629 extra_parts="crtbegin.o crtend.o"
3630 thread_file='vxworks'
3631 ;;
3632 a29k-*-*) # Default a29k environment.
3633 use_collect2=yes
3634 ;;
3635 alpha-*-interix)
3636 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
3637
3638 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
3639 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
3640
3641 # GAS + IEEE_CONFORMANT
3642 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
3643
3644 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
3645 xmake_file="x-interix alpha/t-pe"
3646 tmake_file="alpha/t-alpha alpha/t-interix alpha/t-ieee"
3647 if test x$enable_threads = xyes ; then
3648 thread_file='posix'
3649 fi
3650 if test x$stabs = xyes ; then
3651 tm_file="${tm_file} dbxcoff.h"
3652 fi
3653 #prefix='$$INTERIX_ROOT'/usr/contrib
3654 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3655 ;;
3656 alpha*-*-linux-gnuecoff*)
3657 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3658 target_cpu_default="MASK_GAS"
3659 tmake_file="alpha/t-alpha alpha/t-ieee"
3660 gas=no
3661 xmake_file=none
3662 gas=yes gnu_ld=yes
3663 ;;
3664 alpha*-*-linux-gnulibc1*)
3665 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3666 target_cpu_default="MASK_GAS"
3667 tmake_file="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
3668 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3669 xmake_file=none
3670 gas=yes gnu_ld=yes
3671 if test x$enable_threads = xyes; then
3672 thread_file='posix'
3673 fi
3674 ;;
3675 alpha*-*-linux-gnu*)
3676 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3677 target_cpu_default="MASK_GAS"
3678 tmake_file="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3679 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3680 xmake_file=none
3681 gas=yes gnu_ld=yes
3682 if test x$enable_threads = xyes; then
3683 thread_file='posix'
3684 fi
3685 ;;
3686 alpha*-*-netbsd*)
3687 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3688 target_cpu_default="MASK_GAS"
3689 tmake_file="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3690 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3691 xmake_file=none
3692 gas=yes gnu_ld=yes
3693 ;;
3694
3695 alpha*-*-openbsd*)
3696 # default x-alpha is only appropriate for dec-osf.
3697 target_cpu_default="MASK_GAS"
3698 tmake_file="alpha/t-alpha alpha/t-ieee"
3699 ;;
3700
3701 alpha*-dec-osf*)
3702 if test x$stabs = xyes
3703 then
3704 tm_file="${tm_file} dbx.h"
3705 fi
3706 if test x$gas != xyes
3707 then
3708 extra_passes="mips-tfile mips-tdump"
3709 fi
3710 use_collect2=yes
3711 tmake_file="alpha/t-alpha alpha/t-ieee"
3712 case $machine in
3713 *-*-osf1*)
3714 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3715 ;;
3716 *-*-osf[23]*)
3717 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
3718 ;;
3719 *-*-osf4*)
3720 tm_file="${tm_file} alpha/osf.h"
3721 # Some versions of OSF4 (specifically X4.0-9 296.7) have
3722 # a broken tar, so we use cpio instead.
3723 install_headers_dir=install-headers-cpio
3724 ;;
3725 *-*-osf5*)
3726 tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
3727 ;;
3728 esac
3729 case $machine in
3730 *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*)
3731 target_cpu_default=MASK_SUPPORT_ARCH
3732 ;;
3733 esac
3734 ;;
3735 alpha*-*-vxworks*)
3736 tm_file="${tm_file} dbx.h alpha/vxworks.h"
3737 tmake_file="alpha/t-alpha alpha/t-ieee"
3738 if x$gas != xyes
3739 then
3740 extra_passes="mips-tfile mips-tdump"
3741 fi
3742 use_collect2=yes
3743 thread_file='vxworks'
3744 ;;
3745 alpha*-*-winnt*)
3746 tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3747 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3748 tmake_file="t-libc-ok alpha/t-alpha alpha/t-ieee"
3749 xmake_file=winnt/x-winnt
3750 extra_host_objs=oldnames.o
3751 extra_gcc_objs="spawnv.o oldnames.o"
3752 if test x$gnu_ld != xyes
3753 then
3754 extra_programs=ld.exe
3755 fi
3756 if test x$enable_threads = xyes; then
3757 thread_file='win32'
3758 fi
3759 ;;
3760 alpha*-dec-vms*)
3761 tm_file=alpha/vms.h
3762 xm_file="${xm_file} alpha/xm-vms.h"
3763 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
3764 ;;
3765 arc-*-elf*)
3766 extra_parts="crtinit.o crtfini.o"
3767 ;;
3768 arm-*-coff* | armel-*-coff*)
3769 tm_file=arm/coff.h
3770 tmake_file=arm/t-arm-coff
3771 ;;
3772 arm-*-vxworks*)
3773 tm_file=arm/vxarm.h
3774 tmake_file=arm/t-arm-coff
3775 thread_file='vxworks'
3776 ;;
3777 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
3778 tm_file=arm/riscix1-1.h
3779 use_collect2=yes
3780 ;;
3781 arm-*-riscix*) # Acorn RISC machine
3782 if test x$gas = xyes
3783 then
3784 tm_file=arm/rix-gas.h
3785 else
3786 tm_file=arm/riscix.h
3787 fi
3788 xmake_file=arm/x-riscix
3789 tmake_file=arm/t-riscix
3790 use_collect2=yes
3791 ;;
3792 arm-semi-aout | armel-semi-aout)
3793 tm_file=arm/semi.h
3794 tmake_file=arm/t-semi
3795 ;;
3796 arm-semi-aof | armel-semi-aof)
3797 tm_file=arm/semiaof.h
3798 tmake_file=arm/t-semiaof
3799 ;;
3800 arm*-*-netbsd*)
3801 tm_file=arm/netbsd.h
3802 tmake_file="t-netbsd arm/t-netbsd"
3803 use_collect2=yes
3804 ;;
3805 arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
3806 cpu_type=arm
3807 xmake_file=x-linux
3808 tm_file=arm/linux-aout.h
3809 tmake_file=arm/t-linux
3810 gnu_ld=yes
3811 ;;
3812 arm*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker
3813 xm_file=arm/xm-linux.h
3814 xmake_file=x-linux
3815 tm_file="arm/linux-oldld.h arm/linux-elf.h"
3816 case $machine in
3817 armv2*-*-*)
3818 tm_file="arm/linux-elf26.h $tm_file"
3819 ;;
3820 esac
3821 tmake_file="t-linux arm/t-linux"
3822 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3823 gnu_ld=yes
3824 case x${enable_threads} in
3825 x | xyes | xpthreads | xposix)
3826 thread_file='posix'
3827 ;;
3828 esac
3829 ;;
3830 arm*-*-linux-gnu*) # ARM GNU/Linux with ELF
3831 xm_file=arm/xm-linux.h
3832 xmake_file=x-linux
3833 tm_file="arm/linux-elf.h"
3834 case $machine in
3835 armv2*-*-*)
3836 tm_file="arm/linux-elf26.h $tm_file"
3837 ;;
3838 esac
3839 tmake_file="t-linux arm/t-linux"
3840 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3841 gnu_ld=yes
3842 case x${enable_threads} in
3843 x | xyes | xpthreads | xposix)
3844 thread_file='posix'
3845 ;;
3846 esac
3847 ;;
3848 arm*-*-uclinux*) # ARM ucLinux
3849 tm_file=arm/uclinux-elf.h
3850 tmake_file=arm/t-arm-elf
3851 ;;
3852 arm*-*-aout)
3853 tm_file=arm/aout.h
3854 tmake_file=arm/t-arm-aout
3855 ;;
3856 arm*-*-ecos-elf)
3857 tm_file=arm/ecos-elf.h
3858 tmake_file=arm/t-arm-elf
3859 ;;
3860 arm*-*-elf)
3861 tm_file=arm/unknown-elf.h
3862 tmake_file=arm/t-arm-elf
3863 ;;
3864 arm*-*-conix*)
3865 tm_file=arm/conix-elf.h
3866 tmake_file=arm/t-arm-elf
3867 ;;
3868 arm*-*-oabi)
3869 tm_file=arm/unknown-elf-oabi.h
3870 tmake_file=arm/t-arm-elf
3871 ;;
3872 arm-*-pe*)
3873 tm_file=arm/pe.h
3874 tmake_file=arm/t-pe
3875 extra_objs="pe.o"
3876 ;;
3877 avr-*-*)
3878 ;;
3879 c1-convex-*) # Convex C1
3880 target_cpu_default=1
3881 use_collect2=yes
3882 ;;
3883 c2-convex-*) # Convex C2
3884 target_cpu_default=2
3885 use_collect2=yes
3886 ;;
3887 c32-convex-*)
3888 target_cpu_default=4
3889 use_collect2=yes
3890 ;;
3891 c34-convex-*)
3892 target_cpu_default=8
3893 use_collect2=yes
3894 ;;
3895 c38-convex-*)
3896 target_cpu_default=16
3897 use_collect2=yes
3898 ;;
3899 c4x-*)
3900 cpu_type=c4x
3901 tmake_file=c4x/t-c4x
3902 ;;
3903 clipper-intergraph-clix*)
3904 tm_file="${tm_file} svr3.h clipper/clix.h"
3905 xm_file=clipper/xm-clix.h
3906 xmake_file=clipper/x-clix
3907 extra_headers=va-clipper.h
3908 extra_parts="crtbegin.o crtend.o"
3909 install_headers_dir=install-headers-cpio
3910 ;;
3911 d30v-*)
3912 float_format=i64
3913 ;;
3914 dsp16xx-*)
3915 ;;
3916 elxsi-elxsi-*)
3917 use_collect2=yes
3918 ;;
3919 fr30-*-elf)
3920 tm_file="fr30/fr30.h"
3921 tmake_file=fr30/t-fr30
3922 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3923 ;;
3924 # This hasn't been upgraded to GCC 2.
3925 # fx80-alliant-*) # Alliant FX/80
3926 # ;;
3927 h8300-*-*)
3928 float_format=i32
3929 ;;
3930 hppa*-*-linux*)
3931 target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
3932 tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
3933 tmake_file="t-linux pa/t-linux"
3934 extra_parts="crtbegin.o crtend.o"
3935 xmake_file=none
3936 gas=yes gnu_ld=yes
3937 if test x$enable_threads = xyes; then
3938 thread_file='posix'
3939 fi
3940 ;;
3941 hppa*-*-openbsd*)
3942 target_cpu_default="MASK_PA_11"
3943 tmake_file=pa/t-openbsd
3944 ;;
3945 hppa1.1-*-pro*)
3946 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3947 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
3948 xm_file=pa/xm-papro.h
3949 tmake_file=pa/t-pro
3950 ;;
3951 hppa1.1-*-osf*)
3952 target_cpu_default="MASK_PA_11"
3953 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
3954 use_collect2=yes
3955 ;;
3956 hppa1.1-*-rtems*)
3957 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3958 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
3959 xm_file=pa/xm-papro.h
3960 tmake_file=pa/t-pro
3961 ;;
3962 hppa1.0-*-osf*)
3963 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
3964 use_collect2=yes
3965 ;;
3966 hppa1.1-*-bsd*)
3967 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
3968 target_cpu_default="MASK_PA_11"
3969 use_collect2=yes
3970 ;;
3971 hppa1.0-*-bsd*)
3972 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
3973 use_collect2=yes
3974 ;;
3975 hppa1.0-*-hpux7*)
3976 tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
3977 xm_file=pa/xm-pahpux.h
3978 xmake_file=pa/x-pa-hpux
3979 if test x$gas = xyes
3980 then
3981 tm_file="${tm_file} pa/gas.h"
3982 fi
3983 install_headers_dir=install-headers-cpio
3984 use_collect2=yes
3985 ;;
3986 hppa1.0-*-hpux8.0[0-2]*)
3987 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3988 xm_file=pa/xm-pahpux.h
3989 xmake_file=pa/x-pa-hpux
3990 if test x$gas = xyes
3991 then
3992 tm_file="${tm_file} pa/pa-gas.h"
3993 else
3994 tm_file="pa/pa-oldas.h ${tm_file}"
3995 fi
3996 install_headers_dir=install-headers-cpio
3997 use_collect2=yes
3998 ;;
3999 hppa1.1-*-hpux8.0[0-2]*)
4000 target_cpu_default="MASK_PA_11"
4001 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4002 xm_file=pa/xm-pahpux.h
4003 xmake_file=pa/x-pa-hpux
4004 if test x$gas = xyes
4005 then
4006 tm_file="${tm_file} pa/pa-gas.h"
4007 else
4008 tm_file="pa/pa-oldas.h ${tm_file}"
4009 fi
4010 install_headers_dir=install-headers-cpio
4011 use_collect2=yes
4012 ;;
4013 hppa1.1-*-hpux8*)
4014 target_cpu_default="MASK_PA_11"
4015 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4016 xm_file=pa/xm-pahpux.h
4017 xmake_file=pa/x-pa-hpux
4018 if test x$gas = xyes
4019 then
4020 tm_file="${tm_file} pa/pa-gas.h"
4021 fi
4022 install_headers_dir=install-headers-cpio
4023 use_collect2=yes
4024 ;;
4025 hppa1.0-*-hpux8*)
4026 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4027 xm_file=pa/xm-pahpux.h
4028 xmake_file=pa/x-pa-hpux
4029 if test x$gas = xyes
4030 then
4031 tm_file="${tm_file} pa/pa-gas.h"
4032 fi
4033 install_headers_dir=install-headers-cpio
4034 use_collect2=yes
4035 ;;
4036 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
4037 target_cpu_default="MASK_PA_11"
4038 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
4039 float_format=i128
4040 xm_file=pa/xm-pahpux.h
4041 xmake_file=pa/x-pa-hpux
4042 tmake_file=pa/t-pa
4043 if test x$gas = xyes
4044 then
4045 tm_file="${tm_file} pa/pa-gas.h"
4046 fi
4047 if test x$enable_threads = x; then
4048 enable_threads=$have_pthread_h
4049 fi
4050 if test x$enable_threads = xyes; then
4051 thread_file='dce'
4052 tmake_file="${tmake_file} pa/t-dce-thr"
4053 fi
4054 install_headers_dir=install-headers-cpio
4055 use_collect2=yes
4056 ;;
4057 hppa1.0-*-hpux10*)
4058 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
4059 float_format=i128
4060 xm_file=pa/xm-pahpux.h
4061 xmake_file=pa/x-pa-hpux
4062 tmake_file=pa/t-pa
4063 if test x$gas = xyes
4064 then
4065 tm_file="${tm_file} pa/pa-gas.h"
4066 fi
4067 if test x$enable_threads = x; then
4068 enable_threads=$have_pthread_h
4069 fi
4070 if test x$enable_threads = xyes; then
4071 thread_file='dce'
4072 tmake_file="${tmake_file} pa/t-dce-thr"
4073 fi
4074 install_headers_dir=install-headers-cpio
4075 use_collect2=yes
4076 ;;
4077 hppa*64*-*-hpux11*)
4078 target_cpu_default="MASK_PA_11"
4079 xm_file=pa/xm-pa64hpux.h
4080 xmake_file=pa/x-pa-hpux
4081 tmake_file=pa/t-pa
4082 tm_file="pa/pa64-start.h ${tm_file} pa/pa64-regs.h pa/long_double.h pa/elf.h pa/pa-hpux.h pa/pa-hpux11.h pa/pa-64.h"
4083 float_format=i128
4084 tmake_file=pa/t-pa64
4085 target_cpu_default="(MASK_PA_11|MASK_PA_20)"
4086
4087 if [ x$gas = xyes ]
4088 then
4089 tm_file="${tm_file} pa/pa-gas.h"
4090 fi
4091 # if [[ x$enable_threads = x ]]; then
4092 # enable_threads=$have_pthread_h
4093 # fi
4094 # if [[ x$enable_threads = xyes ]]; then
4095 # thread_file='dce'
4096 # tmake_file="${tmake_file} pa/t-dce-thr"
4097 # fi
4098 install_headers_dir=install-headers-cpio
4099 use_collect2=yes
4100 ;;
4101 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
4102 target_cpu_default="MASK_PA_11"
4103 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
4104 float_format=i128
4105 xm_file=pa/xm-pahpux.h
4106 xmake_file=pa/x-pa-hpux
4107 tmake_file=pa/t-pa
4108 if test x$gas = xyes
4109 then
4110 tm_file="${tm_file} pa/pa-gas.h"
4111 fi
4112 # if test x$enable_threads = x; then
4113 # enable_threads=$have_pthread_h
4114 # fi
4115 # if test x$enable_threads = xyes; then
4116 # thread_file='dce'
4117 # tmake_file="${tmake_file} pa/t-dce-thr"
4118 # fi
4119 install_headers_dir=install-headers-cpio
4120 use_collect2=yes
4121 ;;
4122 hppa1.0-*-hpux11*)
4123 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
4124 float_format=i128
4125 xm_file=pa/xm-pahpux.h
4126 xmake_file=pa/x-pa-hpux
4127 if test x$gas = xyes
4128 then
4129 tm_file="${tm_file} pa/pa-gas.h"
4130 fi
4131 # if test x$enable_threads = x; then
4132 # enable_threads=$have_pthread_h
4133 # fi
4134 # if test x$enable_threads = xyes; then
4135 # thread_file='dce'
4136 # tmake_file="${tmake_file} pa/t-dce-thr"
4137 # fi
4138 install_headers_dir=install-headers-cpio
4139 use_collect2=yes
4140 ;;
4141 hppa1.1-*-hpux* | hppa2*-*-hpux*)
4142 target_cpu_default="MASK_PA_11"
4143 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
4144 xm_file=pa/xm-pahpux.h
4145 xmake_file=pa/x-pa-hpux
4146 if test x$gas = xyes
4147 then
4148 tm_file="${tm_file} pa/pa-gas.h"
4149 fi
4150 install_headers_dir=install-headers-cpio
4151 use_collect2=yes
4152 ;;
4153 hppa1.0-*-hpux*)
4154 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
4155 xm_file=pa/xm-pahpux.h
4156 xmake_file=pa/x-pa-hpux
4157 if test x$gas = xyes
4158 then
4159 tm_file="${tm_file} pa/pa-gas.h"
4160 fi
4161 install_headers_dir=install-headers-cpio
4162 use_collect2=yes
4163 ;;
4164 hppa1.1-*-hiux* | hppa2*-*-hiux*)
4165 target_cpu_default="MASK_PA_11"
4166 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
4167 xm_file=pa/xm-pahpux.h
4168 xmake_file=pa/x-pa-hpux
4169 if test x$gas = xyes
4170 then
4171 tm_file="${tm_file} pa/pa-gas.h"
4172 fi
4173 install_headers_dir=install-headers-cpio
4174 use_collect2=yes
4175 ;;
4176 hppa1.0-*-hiux*)
4177 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
4178 xm_file=pa/xm-pahpux.h
4179 xmake_file=pa/x-pa-hpux
4180 if test x$gas = xyes
4181 then
4182 tm_file="${tm_file} pa/pa-gas.h"
4183 fi
4184 install_headers_dir=install-headers-cpio
4185 use_collect2=yes
4186 ;;
4187 hppa*-*-lites*)
4188 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
4189 target_cpu_default="MASK_PA_11"
4190 use_collect2=yes
4191 ;;
4192 hppa*-*-mpeix*)
4193 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
4194 xm_file=pa/xm-pampeix.h
4195 xmake_file=pa/x-pa-mpeix
4196 echo "You must use gas. Assuming it is already installed."
4197 install_headers_dir=install-headers-tar
4198 use_collect2=yes
4199 ;;
4200 i370-*-opened*) # IBM 360/370/390 Architecture
4201 xm_file=i370/xm-oe.h
4202 tm_file=i370/oe.h
4203 xmake_file=i370/x-oe
4204 tmake_file=i370/t-oe
4205 ;;
4206 i370-*-mvs*)
4207 xm_file=i370/xm-mvs.h
4208 tm_file=i370/mvs.h
4209 tmake_file=i370/t-mvs
4210 ;;
4211 i370-*-linux*)
4212 xm_file="xm-linux.h i370/xm-linux.h"
4213 xmake_file=x-linux
4214 tm_file="i370/linux.h ${tm_file}"
4215 tmake_file="t-linux i370/t-linux"
4216 # broken_install=yes
4217 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4218 # extra_parts="crtbegin.o crtend.o"
4219 gnu_ld=yes
4220 gas=yes
4221 elf=yes
4222 if test x$enable_threads = xyes; then
4223 thread_file='posix'
4224 fi
4225 ;;
4226 i[34567]86-*-elf*)
4227 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
4228 tm_file=i386/i386elf.h
4229 tmake_file=i386/t-i386elf
4230 xmake_file=x-svr4
4231 ;;
4232 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
4233 if test x$gas = xyes
4234 then
4235 tm_file=i386/aix386.h
4236 extra_parts="crtbegin.o crtend.o"
4237 tmake_file=i386/t-crtstuff
4238 else
4239 tm_file=i386/aix386ng.h
4240 use_collect2=yes
4241 fi
4242 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
4243 xm_defines=USG
4244 xmake_file=i386/x-aix
4245 ;;
4246 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
4247 xm_file="xm-alloca.h ${xm_file}"
4248 xm_defines="USG POSIX SMALL_ARG_MAX"
4249 xmake_file=i386/x-ncr3000
4250 if test x$stabs = xyes -a x$gas = xyes
4251 then
4252 tm_file=i386/sysv4gdb.h
4253 else
4254 tm_file=i386/sysv4.h
4255 fi
4256 extra_parts="crtbegin.o crtend.o"
4257 tmake_file=i386/t-crtpic
4258 ;;
4259 i[34567]86-next-*)
4260 tm_file=i386/next.h
4261 xm_file=i386/xm-next.h
4262 tmake_file=i386/t-next
4263 xmake_file=i386/x-next
4264 extra_objs=nextstep.o
4265 extra_parts="crtbegin.o crtend.o"
4266 if test x$enable_threads = xyes; then
4267 thread_file='mach'
4268 fi
4269 ;;
4270 i[34567]86-sequent-bsd*) # 80386 from Sequent
4271 use_collect2=yes
4272 if test x$gas = xyes
4273 then
4274 tm_file=i386/seq-gas.h
4275 else
4276 tm_file=i386/sequent.h
4277 fi
4278 ;;
4279 i[34567]86-sequent-ptx1*)
4280 xm_defines="USG SVR3"
4281 xmake_file=i386/x-sysv3
4282 tm_file=i386/seq-sysv3.h
4283 tmake_file=i386/t-crtstuff
4284 extra_parts="crtbegin.o crtend.o"
4285 install_headers_dir=install-headers-cpio
4286 ;;
4287 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
4288 xm_defines="USG SVR3"
4289 xmake_file=i386/x-sysv3
4290 tm_file=i386/seq2-sysv3.h
4291 tmake_file=i386/t-crtstuff
4292 extra_parts="crtbegin.o crtend.o"
4293 install_headers_dir=install-headers-cpio
4294 ;;
4295 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
4296 xm_file="xm-alloca.h ${xm_file}"
4297 xm_defines="USG POSIX SMALL_ARG_MAX"
4298 xmake_file=x-svr4
4299 tm_file=i386/ptx4-i.h
4300 tmake_file=t-svr4
4301 extra_parts="crtbegin.o crtend.o"
4302 install_headers_dir=install-headers-cpio
4303 ;;
4304 i386-sun-sunos*) # Sun i386 roadrunner
4305 xm_defines=USG
4306 tm_file=i386/sun.h
4307 use_collect2=yes
4308 ;;
4309 i[34567]86-wrs-vxworks*)
4310 tm_file=i386/vxi386.h
4311 tmake_file=i386/t-i386bare
4312 thread_file='vxworks'
4313 ;;
4314 i[34567]86-*-aout*)
4315 tm_file=i386/i386-aout.h
4316 tmake_file=i386/t-i386bare
4317 ;;
4318 i[34567]86-*-beospe*)
4319 xm_file=i386/xm-beos.h
4320 xm_defines="USE_C_ALLOCA"
4321 tmake_file=i386/t-beos
4322 tm_file=i386/beos-pe.h
4323 xmake_file=i386/x-beos
4324 extra_objs=winnt.o
4325 ;;
4326 i[34567]86-*-beoself* | i[34567]86-*-beos*)
4327 xm_file=i386/xm-beos.h
4328 tmake_file='i386/t-beos i386/t-crtpic'
4329 tm_file=i386/beos-elf.h
4330 xmake_file=i386/x-beos
4331 extra_objs=winnt.o
4332 extra_parts='crtbegin.o crtend.o'
4333 ;;
4334 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
4335 tm_file=i386/bsd386.h
4336 # tmake_file=t-libc-ok
4337 ;;
4338 i[34567]86-*-bsd*)
4339 tm_file=i386/386bsd.h
4340 # tmake_file=t-libc-ok
4341 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
4342 # use_collect2=yes
4343 ;;
4344 i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aout*)
4345 tm_file="i386/freebsd.h i386/perform.h"
4346 tmake_file=t-freebsd
4347 ;;
4348 i[34567]86-*-freebsd*)
4349 tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
4350 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4351 tmake_file=t-freebsd
4352 gas=yes
4353 gnu_ld=yes
4354 stabs=yes
4355 case x${enable_threads} in
4356 xyes | xpthreads | xposix)
4357 thread_file='posix'
4358 tmake_file="${tmake_file} t-freebsd-thread"
4359 ;;
4360 esac
4361 ;;
4362 i[34567]86-*-netbsd*)
4363 tm_file=i386/netbsd.h
4364 tmake_file=t-netbsd
4365 use_collect2=yes
4366 ;;
4367 i[34567]86-*-openbsd*)
4368 # we need collect2 until our bug is fixed...
4369 use_collect2=yes
4370 ;;
4371 i[34567]86-*-coff*)
4372 tm_file=i386/i386-coff.h
4373 tmake_file=i386/t-i386bare
4374 ;;
4375 i[34567]86-*-isc*) # 80386 running ISC system
4376 xm_file="${xm_file} i386/xm-isc.h"
4377 xm_defines="USG SVR3"
4378 case $machine in
4379 i[34567]86-*-isc[34]*)
4380 xmake_file=i386/x-isc3
4381 ;;
4382 *)
4383 xmake_file=i386/x-isc
4384 ;;
4385 esac
4386 if test x$gas = xyes -a x$stabs = xyes
4387 then
4388 tm_file=i386/iscdbx.h
4389 tmake_file=i386/t-svr3dbx
4390 extra_parts="svr3.ifile svr3z.ifile"
4391 else
4392 tm_file=i386/isccoff.h
4393 tmake_file=i386/t-crtstuff
4394 extra_parts="crtbegin.o crtend.o"
4395 fi
4396 tmake_file="$tmake_file i386/t-i386bare"
4397 install_headers_dir=install-headers-cpio
4398 ;;
4399 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
4400 # pre BFD linkers
4401 xmake_file=x-linux-aout
4402 tmake_file="t-linux-aout i386/t-crtstuff"
4403 tm_file=i386/linux-oldld.h
4404 gnu_ld=yes
4405 float_format=i386
4406 ;;
4407 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
4408 xmake_file=x-linux-aout
4409 tmake_file="t-linux-aout i386/t-crtstuff"
4410 tm_file=i386/linux-aout.h
4411 gnu_ld=yes
4412 float_format=i386
4413 ;;
4414 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
4415 # GNU/Linux C library 5
4416 xmake_file=x-linux
4417 tm_file=i386/linux.h
4418 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
4419 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4420 gnu_ld=yes
4421 float_format=i386
4422 if test x$enable_threads = xyes; then
4423 thread_file='single'
4424 fi
4425 ;;
4426 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
4427 # aka GNU/Linux C library 6
4428 xmake_file=x-linux
4429 tm_file=i386/linux.h
4430 tmake_file="t-linux i386/t-crtstuff"
4431 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4432 gnu_ld=yes
4433 float_format=i386
4434 if test x$enable_threads = xyes; then
4435 thread_file='posix'
4436 fi
4437 ;;
4438 i[34567]86-*-gnu*)
4439 float_format=i386
4440 ;;
4441 i[34567]86-go32-msdos | i[34567]86-*-go32*)
4442 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
4443 exit 1
4444 ;;
4445 i[34567]86-pc-msdosdjgpp*)
4446 xm_file=i386/xm-djgpp.h
4447 tm_file=i386/djgpp.h
4448 tmake_file=i386/t-djgpp
4449 xmake_file=i386/x-djgpp
4450 gnu_ld=yes
4451 gas=yes
4452 exeext=.exe
4453 float_format=none
4454 case $host in *pc-msdosdjgpp*)
4455 target_alias=djgpp
4456 ;;
4457 esac
4458 ;;
4459 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
4460 tm_file=i386/moss.h
4461 tmake_file=t-libc-ok
4462 gnu_ld=yes
4463 gas=yes
4464 ;;
4465 i[34567]86-*-lynxos*)
4466 if test x$gas = xyes
4467 then
4468 tm_file=i386/lynx.h
4469 else
4470 tm_file=i386/lynx-ng.h
4471 fi
4472 xm_file=i386/xm-lynx.h
4473 tmake_file=i386/t-i386bare
4474 xmake_file=x-lynx
4475 ;;
4476 i[34567]86-*-mach*)
4477 tm_file=i386/mach.h
4478 # tmake_file=t-libc-ok
4479 use_collect2=yes
4480 ;;
4481 i[34567]86-*-osfrose*) # 386 using OSF/rose
4482 if test x$elf = xyes
4483 then
4484 tm_file=i386/osfelf.h
4485 use_collect2=
4486 else
4487 tm_file=i386/osfrose.h
4488 use_collect2=yes
4489 fi
4490 xm_file="i386/xm-osf.h ${xm_file}"
4491 xmake_file=i386/x-osfrose
4492 tmake_file=i386/t-osf
4493 extra_objs=halfpic.o
4494 ;;
4495 i[34567]86-go32-rtems*)
4496 cpu_type=i386
4497 xm_file=i386/xm-go32.h
4498 tm_file=i386/go32-rtems.h
4499 tmake_file="i386/t-go32 t-rtems"
4500 ;;
4501 i[34567]86-*-rtemscoff*)
4502 cpu_type=i386
4503 tm_file=i386/rtems.h
4504 tmake_file="i386/t-i386bare t-rtems"
4505 ;;
4506 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
4507 cpu_type=i386
4508 tm_file=i386/rtemself.h
4509 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
4510 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
4511 ;;
4512 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
4513 xm_file="xm-alloca.h ${xm_file} i386/xm-sco5.h"
4514 xm_defines="USG SVR3"
4515 xmake_file=i386/x-sco5
4516 install_headers_dir=install-headers-cpio
4517 tm_file=i386/sco5.h
4518 if test x$gas = xyes
4519 then
4520 tm_file="i386/sco5gas.h ${tm_file}"
4521 tmake_file=i386/t-sco5gas
4522 else
4523 tmake_file=i386/t-sco5
4524 fi
4525 tmake_file="$tmake_file i386/t-i386bare"
4526 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
4527 ;;
4528 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
4529 xm_file="${xm_file} i386/xm-sco.h"
4530 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
4531 xmake_file=i386/x-sco4
4532 install_headers_dir=install-headers-cpio
4533 if test x$stabs = xyes
4534 then
4535 tm_file=i386/sco4dbx.h
4536 tmake_file=i386/t-svr3dbx
4537 extra_parts="svr3.ifile svr3z.rfile"
4538 else
4539 tm_file=i386/sco4.h
4540 tmake_file=i386/t-crtstuff
4541 extra_parts="crtbegin.o crtend.o"
4542 fi
4543 tmake_file="$tmake_file i386/t-i386bare"
4544 # The default EAFS filesystem supports long file names.
4545 # Truncating the target makes $host != $target which
4546 # makes gcc think it is doing a cross-compile.
4547 # truncate_target=yes
4548 ;;
4549 i[34567]86-*-sco*) # 80386 running SCO system
4550 xm_file=i386/xm-sco.h
4551 xmake_file=i386/x-sco
4552 install_headers_dir=install-headers-cpio
4553 if test x$stabs = xyes
4554 then
4555 tm_file=i386/scodbx.h
4556 tmake_file=i386/t-svr3dbx
4557 extra_parts="svr3.ifile svr3z.rfile"
4558 else
4559 tm_file=i386/sco.h
4560 extra_parts="crtbegin.o crtend.o"
4561 tmake_file=i386/t-crtstuff
4562 fi
4563 tmake_file="$tmake_file i386/t-i386bare"
4564 truncate_target=yes
4565 ;;
4566 i[34567]86-*-solaris2*)
4567 xm_file="xm-alloca.h ${xm_file}"
4568 xm_defines="USG POSIX SMALL_ARG_MAX"
4569 tm_file=i386/sol2.h
4570 if test x$gas = xyes; then
4571 # Only needed if gas does not support -s
4572 tm_file="i386/sol2gas.h ${tm_file}"
4573 fi
4574 tmake_file="i386/t-i386bare i386/t-sol2"
4575 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4576 xmake_file=x-svr4
4577 if test x${enable_threads} = x; then
4578 enable_threads=$have_pthread_h
4579 if test x${enable_threads} = x; then
4580 enable_threads=$have_thread_h
4581 fi
4582 fi
4583 if test x${enable_threads} = xyes; then
4584 if test x${have_pthread_h} = xyes; then
4585 thread_file='posix'
4586 else
4587 thread_file='solaris'
4588 fi
4589 fi
4590 ;;
4591 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
4592 xm_file="xm-alloca.h ${xm_file}"
4593 xm_defines="USG POSIX"
4594 tm_file=i386/sysv5.h
4595 if test x$stabs = xyes
4596 then
4597 tm_file="${tm_file} dbx.h"
4598 fi
4599 tmake_file="i386/t-i386bare i386/t-crtpic"
4600 xmake_file=x-svr4
4601 extra_parts="crtbegin.o crtend.o"
4602 if test x$enable_threads = xyes; then
4603 thread_file='posix'
4604 fi
4605 ;;
4606 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
4607 xm_file="xm-alloca.h ${xm_file}"
4608 xm_defines="USG POSIX SMALL_ARG_MAX"
4609 tm_file=i386/sysv4.h
4610 if test x$stabs = xyes
4611 then
4612 tm_file="${tm_file} dbx.h"
4613 fi
4614 tmake_file="i386/t-i386bare i386/t-crtpic"
4615 xmake_file=x-svr4
4616 extra_parts="crtbegin.o crtend.o"
4617 ;;
4618 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
4619 xm_file="xm-alloca.h ${xm_file}"
4620 xm_defines="USG POSIX"
4621 tm_file=i386/udk.h
4622 tmake_file="i386/t-i386bare i386/t-crtpic i386/t-udk"
4623 xmake_file=x-svr4
4624 extra_parts="crtbegin.o crtend.o"
4625 install_headers_dir=install-headers-cpio
4626 ;;
4627 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
4628 cpu_type=i386
4629 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
4630 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
4631 if test x$stabs = xyes
4632 then
4633 tm_file=i386/osf1elfgdb.h
4634 else
4635 tm_file=i386/osf1elf.h
4636 fi
4637 tmake_file=i386/t-osf1elf
4638 xmake_file=i386/x-osf1elf
4639 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
4640 ;;
4641 i[34567]86-*-sysv*) # Intel 80386's running system V
4642 xm_defines="USG SVR3"
4643 xmake_file=i386/x-sysv3
4644 if test x$gas = xyes
4645 then
4646 if test x$stabs = xyes
4647 then
4648 tm_file=i386/svr3dbx.h
4649 tmake_file=i386/t-svr3dbx
4650 extra_parts="svr3.ifile svr3z.rfile"
4651 else
4652 tm_file=i386/svr3gas.h
4653 extra_parts="crtbegin.o crtend.o"
4654 tmake_file=i386/t-crtstuff
4655 fi
4656 else
4657 tm_file=i386/sysv3.h
4658 extra_parts="crtbegin.o crtend.o"
4659 tmake_file=i386/t-crtstuff
4660 fi
4661 tmake_file="$tmake_file i386/t-crtpic"
4662 ;;
4663 i386-*-vsta) # Intel 80386's running VSTa kernel
4664 xm_file="${xm_file} i386/xm-vsta.h"
4665 tm_file=i386/vsta.h
4666 tmake_file=i386/t-vsta
4667 xmake_file=i386/x-vsta
4668 ;;
4669 i[34567]86-*-win32)
4670 xm_file="${xm_file} i386/xm-cygwin.h"
4671 tmake_file=i386/t-cygwin
4672 tm_file=i386/win32.h
4673 xmake_file=i386/x-cygwin
4674 extra_objs=winnt.o
4675 if test x$enable_threads = xyes; then
4676 thread_file='win32'
4677 fi
4678 exeext=.exe
4679 ;;
4680 i[34567]86-*-pe | i[34567]86-*-cygwin*)
4681 xm_file="${xm_file} i386/xm-cygwin.h"
4682 tmake_file=i386/t-cygwin
4683 tm_file=i386/cygwin.h
4684 xmake_file=i386/x-cygwin
4685 extra_objs=winnt.o
4686 if test x$enable_threads = xyes; then
4687 thread_file='win32'
4688 fi
4689 exeext=.exe
4690 ;;
4691 i[34567]86-*-mingw32*)
4692 tm_file=i386/mingw32.h
4693 xm_file="${xm_file} i386/xm-mingw32.h"
4694 tmake_file="i386/t-cygwin i386/t-mingw32"
4695 extra_objs=winnt.o
4696 xmake_file=i386/x-cygwin
4697 if test x$enable_threads = xyes; then
4698 thread_file='win32'
4699 fi
4700 exeext=.exe
4701 case $machine in
4702 *mingw32msv*)
4703 ;;
4704 *minwg32crt* | *mingw32*)
4705 tm_file="${tm_file} i386/crtdll.h"
4706 ;;
4707 esac
4708 ;;
4709 i[34567]86-*-uwin*)
4710 tm_file=i386/uwin.h
4711 xm_file="${xm_file} i386/xm-uwin.h"
4712 xm_defines="USG NO_STAB_H"
4713 tmake_file="i386/t-cygwin i386/t-uwin"
4714 extra_objs=winnt.o
4715 xmake_file=i386/x-cygwin
4716 if test x$enable_threads = xyes; then
4717 thread_file='win32'
4718 fi
4719 exeext=.exe
4720 ;;
4721 i[34567]86-*-interix*)
4722 tm_file="i386/i386-interix.h interix.h"
4723 xm_file="i386/xm-i386-interix.h xm-interix.h"
4724 xm_defines="USG"
4725 tmake_file="i386/t-interix"
4726 extra_objs=interix.o
4727 xmake_file=x-interix
4728 if test x$enable_threads = xyes ; then
4729 thread_file='posix'
4730 fi
4731 if test x$stabs = xyes ; then
4732 tm_file="${tm_file} dbxcoff.h"
4733 fi
4734 ;;
4735 i[34567]86-*-winnt3*)
4736 tm_file=i386/win-nt.h
4737 out_file=i386/i386.c
4738 xm_file="xm-winnt.h ${xm_file}"
4739 xmake_file=winnt/x-winnt
4740 tmake_file=i386/t-winnt
4741 extra_host_objs="winnt.o oldnames.o"
4742 extra_gcc_objs="spawnv.o oldnames.o"
4743 if test x$gnu_ld != xyes
4744 then
4745 extra_programs=ld.exe
4746 fi
4747 if test x$enable_threads = xyes; then
4748 thread_file='win32'
4749 fi
4750 ;;
4751 i[34567]86-dg-dgux*)
4752 xm_file="xm-alloca.h ${xm_file}"
4753 xm_defines="USG POSIX"
4754 out_file=i386/dgux.c
4755 tm_file=i386/dgux.h
4756 tmake_file=i386/t-dgux
4757 xmake_file=i386/x-dgux
4758 install_headers_dir=install-headers-cpio
4759 ;;
4760 i860-alliant-*) # Alliant FX/2800
4761 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
4762 xm_file="${xm_file}"
4763 xmake_file=i860/x-fx2800
4764 tmake_file=i860/t-fx2800
4765 extra_parts="crtbegin.o crtend.o"
4766 ;;
4767 i860-*-bsd*)
4768 tm_file="${tm_file} i860/bsd.h"
4769 if test x$gas = xyes
4770 then
4771 tm_file="${tm_file} i860/bsd-gas.h"
4772 fi
4773 use_collect2=yes
4774 ;;
4775 i860-*-mach*)
4776 tm_file="${tm_file} i860/mach.h"
4777 tmake_file=t-libc-ok
4778 ;;
4779 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
4780 tm_file="${tm_file} svr3.h i860/paragon.h"
4781 xm_defines="USG SVR3"
4782 tmake_file=t-osf
4783 ;;
4784 i860-*-sysv3*)
4785 tm_file="${tm_file} svr3.h i860/sysv3.h"
4786 xm_defines="USG SVR3"
4787 xmake_file=i860/x-sysv3
4788 extra_parts="crtbegin.o crtend.o"
4789 ;;
4790 i860-*-sysv4*)
4791 tm_file="${tm_file} svr4.h i860/sysv4.h"
4792 xm_defines="USG SVR3"
4793 xmake_file=i860/x-sysv4
4794 tmake_file=t-svr4
4795 extra_parts="crtbegin.o crtend.o"
4796 ;;
4797 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
4798 tm_file="${tm_file} i960/vx960.h"
4799 tmake_file=i960/t-vxworks960
4800 use_collect2=yes
4801 thread_file='vxworks'
4802 ;;
4803 i960-wrs-vxworks5* | i960-wrs-vxworks)
4804 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
4805 tmake_file=i960/t-vxworks960
4806 use_collect2=yes
4807 thread_file='vxworks'
4808 ;;
4809 i960-wrs-vxworks*)
4810 tm_file="${tm_file} i960/vx960.h"
4811 tmake_file=i960/t-vxworks960
4812 use_collect2=yes
4813 thread_file='vxworks'
4814 ;;
4815 i960-*-coff*)
4816 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
4817 tmake_file=i960/t-960bare
4818 use_collect2=yes
4819 ;;
4820 i960-*-rtems)
4821 tmake_file="i960/t-960bare t-rtems"
4822 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
4823 use_collect2=yes
4824 ;;
4825 i960-*-*) # Default i960 environment.
4826 use_collect2=yes
4827 ;;
4828 ia64*-*-elf*)
4829 tm_file=ia64/elf.h
4830 tmake_file="ia64/t-ia64"
4831 target_cpu_default="0"
4832 if test x$gas = xyes
4833 then
4834 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
4835 fi
4836 if test x$gnu_ld = xyes
4837 then
4838 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
4839 fi
4840 ;;
4841 ia64*-*-linux*)
4842 tm_file=ia64/linux.h
4843 tmake_file="t-linux ia64/t-ia64"
4844 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
4845 if test x$enable_threads = xyes; then
4846 thread_file='posix'
4847 fi
4848 ;;
4849 m32r-*-elf*)
4850 extra_parts="crtinit.o crtfini.o"
4851 ;;
4852 m68000-convergent-sysv*)
4853 tm_file=m68k/ctix.h
4854 xm_file="m68k/xm-3b1.h ${xm_file}"
4855 xm_defines=USG
4856 use_collect2=yes
4857 extra_headers=math-68881.h
4858 ;;
4859 m68000-hp-bsd*) # HP 9000/200 running BSD
4860 tm_file=m68k/hp2bsd.h
4861 xmake_file=m68k/x-hp2bsd
4862 use_collect2=yes
4863 extra_headers=math-68881.h
4864 ;;
4865 m68000-hp-hpux*) # HP 9000 series 300
4866 xm_file="xm-alloca.h ${xm_file}"
4867 xm_defines="USG"
4868 if test x$gas = xyes
4869 then
4870 xmake_file=m68k/x-hp320g
4871 tm_file=m68k/hp310g.h
4872 else
4873 xmake_file=m68k/x-hp320
4874 tm_file=m68k/hp310.h
4875 fi
4876 install_headers_dir=install-headers-cpio
4877 use_collect2=yes
4878 extra_headers=math-68881.h
4879 ;;
4880 m68000-sun-sunos3*)
4881 tm_file=m68k/sun2.h
4882 use_collect2=yes
4883 extra_headers=math-68881.h
4884 ;;
4885 m68000-sun-sunos4*)
4886 tm_file=m68k/sun2o4.h
4887 use_collect2=yes
4888 extra_headers=math-68881.h
4889 ;;
4890 m68000-att-sysv*)
4891 xm_file="m68k/xm-3b1.h ${xm_file}"
4892 xm_defines=USG
4893 if test x$gas = xyes
4894 then
4895 tm_file=m68k/3b1g.h
4896 else
4897 tm_file=m68k/3b1.h
4898 fi
4899 use_collect2=yes
4900 extra_headers=math-68881.h
4901 ;;
4902 m68k-apple-aux*) # Apple Macintosh running A/UX
4903 xm_defines="USG AUX"
4904 tmake_file=m68k/t-aux
4905 install_headers_dir=install-headers-cpio
4906 extra_headers=math-68881.h
4907 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
4908 tm_file=
4909 if test "$gnu_ld" = yes
4910 then
4911 tm_file="${tm_file} m68k/auxgld.h"
4912 else
4913 tm_file="${tm_file} m68k/auxld.h"
4914 fi
4915 if test "$gas" = yes
4916 then
4917 tm_file="${tm_file} m68k/auxgas.h"
4918 else
4919 tm_file="${tm_file} m68k/auxas.h"
4920 fi
4921 tm_file="${tm_file} m68k/a-ux.h"
4922 float_format=m68k
4923 ;;
4924 m68k-apollo-*)
4925 tm_file=m68k/apollo68.h
4926 xmake_file=m68k/x-apollo68
4927 use_collect2=yes
4928 extra_headers=math-68881.h
4929 float_format=m68k
4930 ;;
4931 m68k-altos-sysv*) # Altos 3068
4932 if test x$gas = xyes
4933 then
4934 tm_file=m68k/altos3068.h
4935 xm_defines=USG
4936 else
4937 echo "The Altos is supported only with the GNU assembler" 1>&2
4938 exit 1
4939 fi
4940 extra_headers=math-68881.h
4941 ;;
4942 m68k-bull-sysv*) # Bull DPX/2
4943 if test x$gas = xyes
4944 then
4945 if test x$stabs = xyes
4946 then
4947 tm_file=m68k/dpx2cdbx.h
4948 else
4949 tm_file=m68k/dpx2g.h
4950 fi
4951 else
4952 tm_file=m68k/dpx2.h
4953 fi
4954 xm_file="xm-alloca.h ${xm_file}"
4955 xm_defines=USG
4956 xmake_file=m68k/x-dpx2
4957 use_collect2=yes
4958 extra_headers=math-68881.h
4959 ;;
4960 m68k-atari-sysv4*) # Atari variant of V.4.
4961 tm_file=m68k/atari.h
4962 xm_file="xm-alloca.h ${xm_file}"
4963 xm_defines="USG FULL_PROTOTYPES"
4964 tmake_file=t-svr4
4965 extra_parts="crtbegin.o crtend.o"
4966 extra_headers=math-68881.h
4967 float_format=m68k
4968 ;;
4969 m68k-motorola-sysv*)
4970 tm_file=m68k/mot3300.h
4971 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
4972 if test x$gas = xyes
4973 then
4974 xmake_file=m68k/x-mot3300-gas
4975 if test x$gnu_ld = xyes
4976 then
4977 tmake_file=m68k/t-mot3300-gald
4978 else
4979 tmake_file=m68k/t-mot3300-gas
4980 use_collect2=yes
4981 fi
4982 else
4983 xmake_file=m68k/x-mot3300
4984 if test x$gnu_ld = xyes
4985 then
4986 tmake_file=m68k/t-mot3300-gld
4987 else
4988 tmake_file=m68k/t-mot3300
4989 use_collect2=yes
4990 fi
4991 fi
4992 gdb_needs_out_file_path=yes
4993 extra_parts="crt0.o mcrt0.o"
4994 extra_headers=math-68881.h
4995 float_format=m68k
4996 ;;
4997 m68k-ncr-sysv*) # NCR Tower 32 SVR3
4998 tm_file=m68k/tower-as.h
4999 xm_defines="USG SVR3"
5000 xmake_file=m68k/x-tower
5001 extra_parts="crtbegin.o crtend.o"
5002 extra_headers=math-68881.h
5003 ;;
5004 m68k-plexus-sysv*)
5005 tm_file=m68k/plexus.h
5006 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
5007 xm_defines=USG
5008 use_collect2=yes
5009 extra_headers=math-68881.h
5010 ;;
5011 m68k-tti-*)
5012 tm_file=m68k/pbb.h
5013 xm_file="xm-alloca.h ${xm_file}"
5014 xm_defines=USG
5015 extra_headers=math-68881.h
5016 ;;
5017 m68k-crds-unos*)
5018 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
5019 xm_defines="USG unos"
5020 xmake_file=m68k/x-crds
5021 tm_file=m68k/crds.h
5022 use_collect2=yes
5023 extra_headers=math-68881.h
5024 ;;
5025 m68k-cbm-sysv4*) # Commodore variant of V.4.
5026 tm_file=m68k/amix.h
5027 xm_file="xm-alloca.h ${xm_file}"
5028 xm_defines="USG FULL_PROTOTYPES"
5029 xmake_file=m68k/x-amix
5030 tmake_file=t-svr4
5031 extra_parts="crtbegin.o crtend.o"
5032 extra_headers=math-68881.h
5033 float_format=m68k
5034 ;;
5035 m68k-ccur-rtu)
5036 tm_file=m68k/ccur-GAS.h
5037 xmake_file=m68k/x-ccur
5038 extra_headers=math-68881.h
5039 use_collect2=yes
5040 float_format=m68k
5041 ;;
5042 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
5043 tm_file=m68k/hp3bsd44.h
5044 xmake_file=m68k/x-hp3bsd44
5045 use_collect2=yes
5046 extra_headers=math-68881.h
5047 float_format=m68k
5048 ;;
5049 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
5050 tm_file=m68k/hp3bsd.h
5051 use_collect2=yes
5052 extra_headers=math-68881.h
5053 float_format=m68k
5054 ;;
5055 m68k-isi-bsd*)
5056 if test x$with_fp = xno
5057 then
5058 tm_file=m68k/isi-nfp.h
5059 else
5060 tm_file=m68k/isi.h
5061 float_format=m68k
5062 fi
5063 use_collect2=yes
5064 extra_headers=math-68881.h
5065 ;;
5066 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
5067 xm_file="xm-alloca.h ${xm_file}"
5068 xm_defines="USG"
5069 if test x$gas = xyes
5070 then
5071 xmake_file=m68k/x-hp320g
5072 tm_file=m68k/hp320g.h
5073 else
5074 xmake_file=m68k/x-hp320
5075 tm_file=m68k/hpux7.h
5076 fi
5077 install_headers_dir=install-headers-cpio
5078 use_collect2=yes
5079 extra_headers=math-68881.h
5080 float_format=m68k
5081 ;;
5082 m68k-hp-hpux*) # HP 9000 series 300
5083 xm_file="xm-alloca.h ${xm_file}"
5084 xm_defines="USG"
5085 if test x$gas = xyes
5086 then
5087 xmake_file=m68k/x-hp320g
5088 tm_file=m68k/hp320g.h
5089 else
5090 xmake_file=m68k/x-hp320
5091 tm_file=m68k/hp320.h
5092 fi
5093 install_headers_dir=install-headers-cpio
5094 use_collect2=yes
5095 extra_headers=math-68881.h
5096 float_format=m68k
5097 ;;
5098 m68k-sun-mach*)
5099 tm_file=m68k/sun3mach.h
5100 use_collect2=yes
5101 extra_headers=math-68881.h
5102 float_format=m68k
5103 ;;
5104 m68k-sony-newsos3*)
5105 if test x$gas = xyes
5106 then
5107 tm_file=m68k/news3gas.h
5108 else
5109 tm_file=m68k/news3.h
5110 fi
5111 use_collect2=yes
5112 extra_headers=math-68881.h
5113 float_format=m68k
5114 ;;
5115 m68k-sony-bsd* | m68k-sony-newsos*)
5116 if test x$gas = xyes
5117 then
5118 tm_file=m68k/newsgas.h
5119 else
5120 tm_file=m68k/news.h
5121 fi
5122 use_collect2=yes
5123 extra_headers=math-68881.h
5124 float_format=m68k
5125 ;;
5126 m68k-next-nextstep2*)
5127 tm_file=m68k/next21.h
5128 xm_file="m68k/xm-next.h ${xm_file}"
5129 tmake_file=m68k/t-next
5130 xmake_file=m68k/x-next
5131 extra_objs=nextstep.o
5132 extra_headers=math-68881.h
5133 use_collect2=yes
5134 float_format=m68k
5135 ;;
5136 m68k-next-nextstep[34]*)
5137 tm_file=m68k/next.h
5138 xm_file="m68k/xm-next.h ${xm_file}"
5139 tmake_file=m68k/t-next
5140 xmake_file=m68k/x-next
5141 extra_objs=nextstep.o
5142 extra_parts="crtbegin.o crtend.o"
5143 extra_headers=math-68881.h
5144 float_format=m68k
5145 if test x$enable_threads = xyes; then
5146 thread_file='mach'
5147 fi
5148 ;;
5149 m68k-sun-sunos3*)
5150 if test x$with_fp = xno
5151 then
5152 tm_file=m68k/sun3n3.h
5153 else
5154 tm_file=m68k/sun3o3.h
5155 float_format=m68k
5156 fi
5157 use_collect2=yes
5158 extra_headers=math-68881.h
5159 ;;
5160 m68k-sun-sunos*) # For SunOS 4 (the default).
5161 if test x$with_fp = xno
5162 then
5163 tm_file=m68k/sun3n.h
5164 else
5165 tm_file=m68k/sun3.h
5166 float_format=m68k
5167 fi
5168 use_collect2=yes
5169 extra_headers=math-68881.h
5170 ;;
5171 m68k-wrs-vxworks*)
5172 tm_file=m68k/vxm68k.h
5173 tmake_file=m68k/t-vxworks68
5174 extra_headers=math-68881.h
5175 thread_file='vxworks'
5176 float_format=m68k
5177 ;;
5178 m68k-*-aout*)
5179 tmake_file=m68k/t-m68kbare
5180 tm_file="m68k/m68k-aout.h libgloss.h"
5181 extra_headers=math-68881.h
5182 float_format=m68k
5183 ;;
5184 m68k-*-coff*)
5185 tmake_file=m68k/t-m68kbare
5186 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
5187 extra_headers=math-68881.h
5188 float_format=m68k
5189 ;;
5190 m68020-*-elf* | m68k-*-elf*)
5191 tm_file="m68k/m68020-elf.h"
5192 xm_file=m68k/xm-m68kv.h
5193 tmake_file=m68k/t-m68kelf
5194 header_files=math-68881.h
5195 ;;
5196 m68k-*-lynxos*)
5197 if test x$gas = xyes
5198 then
5199 tm_file=m68k/lynx.h
5200 else
5201 tm_file=m68k/lynx-ng.h
5202 fi
5203 xm_file=m68k/xm-lynx.h
5204 xmake_file=x-lynx
5205 tmake_file=m68k/t-lynx
5206 extra_headers=math-68881.h
5207 float_format=m68k
5208 ;;
5209 m68k*-*-netbsd*)
5210 tm_file=m68k/netbsd.h
5211 tmake_file=t-netbsd
5212 float_format=m68k
5213 use_collect2=yes
5214 ;;
5215 m68k*-*-openbsd*)
5216 float_format=m68k
5217 # we need collect2 until our bug is fixed...
5218 use_collect2=yes
5219 ;;
5220 m68k-*-sysv3*) # Motorola m68k's running system V.3
5221 xm_file="xm-alloca.h ${xm_file}"
5222 xm_defines=USG
5223 xmake_file=m68k/x-m68kv
5224 extra_parts="crtbegin.o crtend.o"
5225 extra_headers=math-68881.h
5226 float_format=m68k
5227 ;;
5228 m68k-*-sysv4*) # Motorola m68k's running system V.4
5229 tm_file=m68k/m68kv4.h
5230 xm_file="xm-alloca.h ${xm_file}"
5231 xm_defines=USG
5232 tmake_file=t-svr4
5233 extra_parts="crtbegin.o crtend.o"
5234 extra_headers=math-68881.h
5235 float_format=m68k
5236 ;;
5237 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
5238 # with a.out format
5239 xmake_file=x-linux
5240 tm_file=m68k/linux-aout.h
5241 tmake_file="t-linux-aout m68k/t-linux-aout"
5242 extra_headers=math-68881.h
5243 float_format=m68k
5244 gnu_ld=yes
5245 ;;
5246 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
5247 # with ELF format using the
5248 # GNU/Linux C library 5
5249 xmake_file=x-linux
5250 tm_file=m68k/linux.h
5251 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
5252 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5253 extra_headers=math-68881.h
5254 float_format=m68k
5255 gnu_ld=yes
5256 ;;
5257 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
5258 # with ELF format using glibc 2
5259 # aka the GNU/Linux C library 6.
5260 xmake_file=x-linux
5261 tm_file=m68k/linux.h
5262 tmake_file="t-linux m68k/t-linux"
5263 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5264 extra_headers=math-68881.h
5265 float_format=m68k
5266 gnu_ld=yes
5267 if test x$enable_threads = xyes; then
5268 thread_file='posix'
5269 fi
5270 ;;
5271 m68k-*-psos*)
5272 tmake_file=m68k/t-m68kbare
5273 tm_file=m68k/m68k-psos.h
5274 extra_headers=math-68881.h
5275 float_format=m68k
5276 ;;
5277 m68k-*-rtemscoff*)
5278 tmake_file="m68k/t-m68kbare t-rtems"
5279 tm_file=m68k/rtems.h
5280 extra_headers=math-68881.h
5281 float_format=m68k
5282 ;;
5283 m68k-*-rtemself*|m68k-*-rtems*)
5284 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
5285 tm_file=m68k/rtemself.h
5286 extra_headers=math-68881.h
5287 float_format=m68k
5288 ;;
5289 m88k-dg-dgux*)
5290 case $machine in
5291 m88k-dg-dguxbcs*)
5292 tm_file=m88k/dguxbcs.h
5293 tmake_file=m88k/t-dguxbcs
5294 ;;
5295 *)
5296 tm_file=m88k/dgux.h
5297 tmake_file=m88k/t-dgux
5298 ;;
5299 esac
5300 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
5301 xmake_file=m88k/x-dgux
5302 if test x$gas = xyes
5303 then
5304 tmake_file=m88k/t-dgux-gas
5305 fi
5306 ;;
5307 m88k-dolphin-sysv3*)
5308 tm_file=m88k/dolph.h
5309 extra_parts="crtbegin.o crtend.o"
5310 xm_file="m88k/xm-sysv3.h ${xm_file}"
5311 xmake_file=m88k/x-dolph
5312 if test x$gas = xyes
5313 then
5314 tmake_file=m88k/t-m88k-gas
5315 fi
5316 ;;
5317 m88k-tektronix-sysv3)
5318 tm_file=m88k/tekXD88.h
5319 extra_parts="crtbegin.o crtend.o"
5320 xm_file="m88k/xm-sysv3.h ${xm_file}"
5321 xmake_file=m88k/x-tekXD88
5322 if test x$gas = xyes
5323 then
5324 tmake_file=m88k/t-m88k-gas
5325 fi
5326 ;;
5327 m88k-*-aout*)
5328 tm_file=m88k/m88k-aout.h
5329 ;;
5330 m88k-*-coff*)
5331 tm_file=m88k/m88k-coff.h
5332 tmake_file=m88k/t-bug
5333 ;;
5334 m88k-*-luna*)
5335 tm_file=m88k/luna.h
5336 extra_parts="crtbegin.o crtend.o"
5337 if test x$gas = xyes
5338 then
5339 tmake_file=m88k/t-luna-gas
5340 else
5341 tmake_file=m88k/t-luna
5342 fi
5343 ;;
5344 m88k-*-openbsd*)
5345 tmake_file="${tmake_file} m88k/t-luna-gas"
5346 ;;
5347 m88k-*-sysv3*)
5348 tm_file=m88k/sysv3.h
5349 extra_parts="crtbegin.o crtend.o"
5350 xm_file="m88k/xm-sysv3.h ${xm_file}"
5351 xmake_file=m88k/x-sysv3
5352 if test x$gas = xyes
5353 then
5354 tmake_file=m88k/t-m88k-gas
5355 fi
5356 ;;
5357 m88k-*-sysv4*)
5358 tm_file=m88k/sysv4.h
5359 extra_parts="crtbegin.o crtend.o"
5360 xmake_file=m88k/x-sysv4
5361 tmake_file=m88k/t-sysv4
5362 ;;
5363 mcore-*-elf)
5364 tm_file=mcore/mcore-elf.h
5365 tmake_file=mcore/t-mcore
5366 ;;
5367 mcore-*-pe*)
5368 tm_file=mcore/mcore-pe.h
5369 tmake_file=mcore/t-mcore-pe
5370 ;;
5371 mips-sgi-irix6*) # SGI System V.4., IRIX 6
5372 if test "x$gnu_ld" = xyes
5373 then
5374 tm_file="mips/iris6.h mips/iris6gld.h"
5375 else
5376 tm_file=mips/iris6.h
5377 fi
5378 tmake_file=mips/t-iris6
5379 xm_file=mips/xm-iris6.h
5380 xmake_file=mips/x-iris6
5381 # if test x$enable_threads = xyes; then
5382 # thread_file='irix'
5383 # fi
5384 ;;
5385 mips-wrs-vxworks)
5386 tm_file="mips/elf.h mips/vxworks.h"
5387 tmake_file=mips/t-ecoff
5388 gas=yes
5389 gnu_ld=yes
5390 extra_parts="crtbegin.o crtend.o"
5391 thread_file='vxworks'
5392 ;;
5393 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
5394 tm_file="mips/iris6.h mips/cross64.h"
5395 xm_defines=USG
5396 xm_file="mips/xm-iris5.h"
5397 xmake_file=mips/x-iris
5398 tmake_file=mips/t-cross64
5399 # See comment in mips/iris[56].h files.
5400 use_collect2=yes
5401 # if test x$enable_threads = xyes; then
5402 # thread_file='irix'
5403 # fi
5404 ;;
5405 mips-sni-sysv4)
5406 if test x$gas = xyes
5407 then
5408 if test x$stabs = xyes
5409 then
5410 tm_file=mips/iris5gdb.h
5411 else
5412 tm_file="mips/sni-svr4.h mips/sni-gas.h"
5413 fi
5414 else
5415 tm_file=mips/sni-svr4.h
5416 fi
5417 xm_defines=USG
5418 xmake_file=mips/x-sni-svr4
5419 tmake_file=mips/t-mips-gas
5420 if test x$gnu_ld != xyes
5421 then
5422 use_collect2=yes
5423 fi
5424 ;;
5425 mips-sgi-irix5*) # SGI System V.4., IRIX 5
5426 if test x$gas = xyes
5427 then
5428 tm_file="mips/iris5.h mips/iris5gas.h"
5429 if test x$stabs = xyes
5430 then
5431 tm_file="${tm_file} dbx.h"
5432 fi
5433 else
5434 tm_file=mips/iris5.h
5435 fi
5436 xm_defines=USG
5437 xm_file="mips/xm-iris5.h"
5438 xmake_file=mips/x-iris
5439 # mips-tfile doesn't work yet
5440 tmake_file=mips/t-mips-gas
5441 # See comment in mips/iris5.h file.
5442 use_collect2=yes
5443 # if test x$enable_threads = xyes; then
5444 # thread_file='irix'
5445 # fi
5446 ;;
5447 mips-sgi-irix4loser*) # Mostly like a MIPS.
5448 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
5449 if test x$stabs = xyes; then
5450 tm_file="${tm_file} dbx.h"
5451 fi
5452 xm_defines=USG
5453 xmake_file=mips/x-iris
5454 if test x$gas = xyes
5455 then
5456 tmake_file=mips/t-mips-gas
5457 else
5458 extra_passes="mips-tfile mips-tdump"
5459 fi
5460 if test x$gnu_ld != xyes
5461 then
5462 use_collect2=yes
5463 fi
5464 # if test x$enable_threads = xyes; then
5465 # thread_file='irix'
5466 # fi
5467 ;;
5468 mips-sgi-irix4*) # Mostly like a MIPS.
5469 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
5470 if test x$stabs = xyes; then
5471 tm_file="${tm_file} dbx.h"
5472 fi
5473 xm_defines=USG
5474 xmake_file=mips/x-iris
5475 if test x$gas = xyes
5476 then
5477 tmake_file=mips/t-mips-gas
5478 else
5479 extra_passes="mips-tfile mips-tdump"
5480 fi
5481 if test x$gnu_ld != xyes
5482 then
5483 use_collect2=yes
5484 fi
5485 # if test x$enable_threads = xyes; then
5486 # thread_file='irix'
5487 # fi
5488 ;;
5489 mips-sgi-*) # Mostly like a MIPS.
5490 tm_file="mips/iris3.h ${tm_file}"
5491 if test x$stabs = xyes; then
5492 tm_file="${tm_file} dbx.h"
5493 fi
5494 xm_defines=USG
5495 xmake_file=mips/x-iris3
5496 if test x$gas = xyes
5497 then
5498 tmake_file=mips/t-mips-gas
5499 else
5500 extra_passes="mips-tfile mips-tdump"
5501 fi
5502 if test x$gnu_ld != xyes
5503 then
5504 use_collect2=yes
5505 fi
5506 ;;
5507 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
5508 tm_file="mips/osfrose.h ${tm_file}"
5509 xmake_file=mips/x-osfrose
5510 tmake_file=mips/t-osfrose
5511 extra_objs=halfpic.o
5512 use_collect2=yes
5513 ;;
5514 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
5515 tm_file=mips/dec-osf1.h
5516 if test x$stabs = xyes; then
5517 tm_file="${tm_file} dbx.h"
5518 fi
5519 xmake_file=mips/x-dec-osf1
5520 if test x$gas = xyes
5521 then
5522 tmake_file=mips/t-mips-gas
5523 else
5524 tmake_file=mips/t-ultrix
5525 extra_passes="mips-tfile mips-tdump"
5526 fi
5527 if test x$gnu_ld != xyes
5528 then
5529 use_collect2=yes
5530 fi
5531 ;;
5532 mips-dec-bsd*) # Decstation running 4.4 BSD
5533 tm_file=mips/dec-bsd.h
5534 if test x$gas = xyes
5535 then
5536 tmake_file=mips/t-mips-gas
5537 else
5538 tmake_file=mips/t-ultrix
5539 extra_passes="mips-tfile mips-tdump"
5540 fi
5541 if test x$gnu_ld != xyes
5542 then
5543 use_collect2=yes
5544 fi
5545 ;;
5546 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
5547 tm_file=mips/netbsd.h
5548 # On NetBSD, the headers are already okay, except for math.h.
5549 tmake_file=t-netbsd
5550 ;;
5551 mips*-*-linux*) # Linux MIPS, either endian.
5552 xmake_file=x-linux
5553 case $machine in
5554 mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;;
5555 *) tm_file="mips/elf.h mips/linux.h" ;;
5556 esac
5557 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5558 gnu_ld=yes
5559 gas=yes
5560 if test x$enable_threads = xyes; then
5561 thread_file='posix'
5562 fi
5563 ;;
5564 mips*el-*-openbsd*) # mips little endian
5565 target_cpu_default="MASK_GAS|MASK_ABICALLS"
5566 ;;
5567 mips*-*-openbsd*) # mips big endian
5568 target_cpu_default="MASK_GAS|MASK_ABICALLS"
5569 tm_file="mips/openbsd-be.h ${tm_file}"
5570 ;;
5571 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
5572 tm_file="mips/news4.h ${tm_file}"
5573 if test x$stabs = xyes; then
5574 tm_file="${tm_file} dbx.h"
5575 fi
5576 if test x$gas = xyes
5577 then
5578 tmake_file=mips/t-mips-gas
5579 else
5580 extra_passes="mips-tfile mips-tdump"
5581 fi
5582 if test x$gnu_ld != xyes
5583 then
5584 use_collect2=yes
5585 fi
5586 xmake_file=mips/x-sony
5587 ;;
5588 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
5589 # That is based on svr4.
5590 # t-svr4 is not right because this system doesn't use ELF.
5591 tm_file="mips/news5.h ${tm_file}"
5592 if test x$stabs = xyes; then
5593 tm_file="${tm_file} dbx.h"
5594 fi
5595 xm_defines=USG
5596 if test x$gas = xyes
5597 then
5598 tmake_file=mips/t-mips-gas
5599 else
5600 extra_passes="mips-tfile mips-tdump"
5601 fi
5602 if test x$gnu_ld != xyes
5603 then
5604 use_collect2=yes
5605 fi
5606 ;;
5607 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
5608 tm_file="mips/svr4-5.h mips/svr4-t.h"
5609 if test x$stabs = xyes; then
5610 tm_file="${tm_file} dbx.h"
5611 fi
5612 xm_defines=USG
5613 xmake_file=mips/x-sysv
5614 if test x$gas = xyes
5615 then
5616 tmake_file=mips/t-mips-gas
5617 extra_parts="crtbegin.o crtend.o"
5618 else
5619 tmake_file=mips/t-mips
5620 extra_passes="mips-tfile mips-tdump"
5621 fi
5622 if test x$gnu_ld != xyes
5623 then
5624 use_collect2=yes
5625 fi
5626 ;;
5627 mips-*-ultrix* | mips-dec-mach3) # Decstation.
5628 tm_file="mips/ultrix.h ${tm_file}"
5629 if test x$stabs = xyes; then
5630 tm_file="${tm_file} dbx.h"
5631 fi
5632 xmake_file=mips/x-ultrix
5633 if test x$gas = xyes
5634 then
5635 tmake_file=mips/t-mips-gas
5636 else
5637 tmake_file=mips/t-ultrix
5638 extra_passes="mips-tfile mips-tdump"
5639 fi
5640 if test x$gnu_ld != xyes
5641 then
5642 use_collect2=yes
5643 fi
5644 ;;
5645 mips-*-riscos[56789]bsd*)
5646 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
5647 if test x$stabs = xyes; then
5648 tm_file="${tm_file} dbx.h"
5649 fi
5650 if test x$gas = xyes
5651 then
5652 tmake_file=mips/t-bsd-gas
5653 else
5654 tmake_file=mips/t-bsd
5655 extra_passes="mips-tfile mips-tdump"
5656 fi
5657 if test x$gnu_ld != xyes
5658 then
5659 use_collect2=yes
5660 fi
5661 ;;
5662 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
5663 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
5664 if test x$stabs = xyes; then
5665 tm_file="${tm_file} dbx.h"
5666 fi
5667 if test x$gas = xyes
5668 then
5669 tmake_file=mips/t-bsd-gas
5670 else
5671 tmake_file=mips/t-bsd
5672 extra_passes="mips-tfile mips-tdump"
5673 fi
5674 if test x$gnu_ld != xyes
5675 then
5676 use_collect2=yes
5677 fi
5678 ;;
5679 mips-*-riscos[56789]sysv4*)
5680 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
5681 if test x$stabs = xyes; then
5682 tm_file="${tm_file} dbx.h"
5683 fi
5684 xmake_file=mips/x-sysv
5685 if test x$gas = xyes
5686 then
5687 tmake_file=mips/t-svr4-gas
5688 else
5689 tmake_file=mips/t-svr4
5690 extra_passes="mips-tfile mips-tdump"
5691 fi
5692 if test x$gnu_ld != xyes
5693 then
5694 use_collect2=yes
5695 fi
5696 ;;
5697 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
5698 tm_file="mips/svr4-4.h ${tm_file}"
5699 if test x$stabs = xyes; then
5700 tm_file="${tm_file} dbx.h"
5701 fi
5702 xm_defines=USG
5703 xmake_file=mips/x-sysv
5704 if test x$gas = xyes
5705 then
5706 tmake_file=mips/t-svr4-gas
5707 else
5708 tmake_file=mips/t-svr4
5709 extra_passes="mips-tfile mips-tdump"
5710 fi
5711 if test x$gnu_ld != xyes
5712 then
5713 use_collect2=yes
5714 fi
5715 ;;
5716 mips-*-riscos[56789]sysv*)
5717 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
5718 if test x$stabs = xyes; then
5719 tm_file="${tm_file} dbx.h"
5720 fi
5721 xm_defines=USG
5722 xmake_file=mips/x-sysv
5723 if test x$gas = xyes
5724 then
5725 tmake_file=mips/t-svr3-gas
5726 else
5727 tmake_file=mips/t-svr3
5728 extra_passes="mips-tfile mips-tdump"
5729 fi
5730 if test x$gnu_ld != xyes
5731 then
5732 use_collect2=yes
5733 fi
5734 ;;
5735 mips-*-sysv* | mips-*-riscos*sysv*)
5736 tm_file="mips/svr3-4.h ${tm_file}"
5737 if test x$stabs = xyes; then
5738 tm_file="${tm_file} dbx.h"
5739 fi
5740 xm_defines=USG
5741 xmake_file=mips/x-sysv
5742 if test x$gas = xyes
5743 then
5744 tmake_file=mips/t-svr3-gas
5745 else
5746 tmake_file=mips/t-svr3
5747 extra_passes="mips-tfile mips-tdump"
5748 fi
5749 if test x$gnu_ld != xyes
5750 then
5751 use_collect2=yes
5752 fi
5753 ;;
5754 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
5755 tm_file=mips/mips-5.h
5756 if test x$stabs = xyes; then
5757 tm_file="${tm_file} dbx.h"
5758 fi
5759 if test x$gas = xyes
5760 then
5761 tmake_file=mips/t-mips-gas
5762 else
5763 extra_passes="mips-tfile mips-tdump"
5764 fi
5765 if test x$gnu_ld != xyes
5766 then
5767 use_collect2=yes
5768 fi
5769 ;;
5770 mips-*-gnu*)
5771 ;;
5772 mipsel-*-ecoff*)
5773 tm_file=mips/ecoffl.h
5774 if test x$stabs = xyes; then
5775 tm_file="${tm_file} dbx.h"
5776 fi
5777 tmake_file=mips/t-ecoff
5778 ;;
5779 mips-*-ecoff*)
5780 tm_file="gofast.h mips/ecoff.h"
5781 if test x$stabs = xyes; then
5782 tm_file="${tm_file} dbx.h"
5783 fi
5784 tmake_file=mips/t-ecoff
5785 ;;
5786 mipsel-*-elf*)
5787 tm_file="mips/elfl.h"
5788 tmake_file=mips/t-elf
5789 ;;
5790 mips-*-elf*)
5791 tm_file="mips/elf.h"
5792 tmake_file=mips/t-elf
5793 ;;
5794 mips64el-*-elf*)
5795 tm_file="mips/elfl64.h"
5796 tmake_file=mips/t-elf
5797 ;;
5798 mips64orionel-*-elf*)
5799 tm_file="mips/elforion.h mips/elfl64.h"
5800 tmake_file=mips/t-elf
5801 ;;
5802 mips64-*-elf*)
5803 tm_file="mips/elf64.h"
5804 tmake_file=mips/t-elf
5805 ;;
5806 mips64orion-*-elf*)
5807 tm_file="mips/elforion.h mips/elf64.h"
5808 tmake_file=mips/t-elf
5809 ;;
5810 mips64orion-*-rtems*)
5811 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
5812 tmake_file="mips/t-elf t-rtems"
5813 ;;
5814 mipstx39el-*-elf*)
5815 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
5816 tmake_file=mips/t-r3900
5817 ;;
5818 mipstx39-*-elf*)
5819 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
5820 tmake_file=mips/t-r3900
5821 ;;
5822 mips-*-*) # Default MIPS RISC-OS 4.0.
5823 if test x$stabs = xyes; then
5824 tm_file="${tm_file} dbx.h"
5825 fi
5826 if test x$gas = xyes
5827 then
5828 tmake_file=mips/t-mips-gas
5829 else
5830 extra_passes="mips-tfile mips-tdump"
5831 fi
5832 if test x$gnu_ld != xyes
5833 then
5834 use_collect2=yes
5835 fi
5836 ;;
5837 mn10200-*-*)
5838 float_format=i32
5839 cpu_type=mn10200
5840 tm_file="mn10200/mn10200.h"
5841 if test x$stabs = xyes
5842 then
5843 tm_file="${tm_file} dbx.h"
5844 fi
5845 use_collect2=no
5846 ;;
5847 mn10300-*-*)
5848 cpu_type=mn10300
5849 tm_file="mn10300/mn10300.h"
5850 if test x$stabs = xyes
5851 then
5852 tm_file="${tm_file} dbx.h"
5853 fi
5854 use_collect2=no
5855 ;;
5856 ns32k-encore-bsd*)
5857 tm_file=ns32k/encore.h
5858 use_collect2=yes
5859 ;;
5860 ns32k-sequent-bsd*)
5861 tm_file=ns32k/sequent.h
5862 use_collect2=yes
5863 ;;
5864 ns32k-tek6100-bsd*)
5865 tm_file=ns32k/tek6100.h
5866 use_collect2=yes
5867 ;;
5868 ns32k-tek6200-bsd*)
5869 tm_file=ns32k/tek6200.h
5870 use_collect2=yes
5871 ;;
5872 # This has not been updated to GCC 2.
5873 # ns32k-ns-genix*)
5874 # xm_defines=USG
5875 # xmake_file=ns32k/x-genix
5876 # tm_file=ns32k/genix.h
5877 # use_collect2=yes
5878 # ;;
5879 ns32k-merlin-*)
5880 tm_file=ns32k/merlin.h
5881 use_collect2=yes
5882 ;;
5883 ns32k-pc532-mach*)
5884 tm_file=ns32k/pc532-mach.h
5885 use_collect2=yes
5886 ;;
5887 ns32k-pc532-minix*)
5888 tm_file=ns32k/pc532-min.h
5889 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
5890 xm_defines=USG
5891 use_collect2=yes
5892 ;;
5893 ns32k-*-netbsd*)
5894 tm_file=ns32k/netbsd.h
5895 xm_file="ns32k/xm-netbsd.h ${xm_file}"
5896 # On NetBSD, the headers are already okay, except for math.h.
5897 tmake_file=t-netbsd
5898 use_collect2=yes
5899 ;;
5900 pdp11-*-bsd)
5901 tm_file="${tm_file} pdp11/2bsd.h"
5902 ;;
5903 pdp11-*-*)
5904 ;;
5905 avr-*-*)
5906 ;;
5907 ns32k-*-openbsd*)
5908 # Nothing special
5909 ;;
5910 # This has not been updated to GCC 2.
5911 # pyramid-*-*)
5912 # cpu_type=pyr
5913 # xmake_file=pyr/x-pyr
5914 # use_collect2=yes
5915 # ;;
5916
5917 pj*-linux*)
5918 tm_file="svr4.h pj/linux.h ${tm_file}"
5919 ;;
5920 pj-*)
5921 ;;
5922 pjl-*)
5923 tm_file="svr4.h pj/pjl.h ${tm_file}"
5924 ;;
5925
5926 romp-*-aos*)
5927 use_collect2=yes
5928 ;;
5929 romp-*-mach*)
5930 xmake_file=romp/x-mach
5931 use_collect2=yes
5932 ;;
5933 romp-*-openbsd*)
5934 # Nothing special
5935 ;;
5936 powerpc-*-openbsd*)
5937 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
5938 ;;
5939 powerpc-*-beos*)
5940 cpu_type=rs6000
5941 tm_file=rs6000/beos.h
5942 xm_file=rs6000/xm-beos.h
5943 tmake_file=rs6000/t-beos
5944 xmake_file=rs6000/x-beos
5945 ;;
5946 powerpc-*-sysv*)
5947 tm_file=rs6000/sysv4.h
5948 xm_file="rs6000/xm-sysv4.h"
5949 xm_defines="USG POSIX"
5950 extra_headers=ppc-asm.h
5951 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5952 xmake_file=rs6000/x-sysv4
5953 ;;
5954 powerpc-*-eabiaix*)
5955 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
5956 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5957 extra_headers=ppc-asm.h
5958 ;;
5959 powerpc-*-eabisim*)
5960 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
5961 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5962 extra_headers=ppc-asm.h
5963 ;;
5964 powerpc-*-elf*)
5965 tm_file="rs6000/sysv4.h"
5966 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5967 extra_headers=ppc-asm.h
5968 ;;
5969 powerpc-*-eabi*)
5970 tm_file="rs6000/sysv4.h rs6000/eabi.h"
5971 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5972 extra_headers=ppc-asm.h
5973 ;;
5974 powerpc-*-rtems*)
5975 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
5976 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
5977 extra_headers=ppc-asm.h
5978 ;;
5979 powerpc-*-linux-gnulibc1)
5980 tm_file="rs6000/sysv4.h rs6000/linux.h"
5981 xm_file=rs6000/xm-sysv4.h
5982 out_file=rs6000/rs6000.c
5983 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5984 xmake_file=x-linux
5985 extra_headers=ppc-asm.h
5986 if test x$enable_threads = xyes; then
5987 thread_file='posix'
5988 fi
5989 ;;
5990 powerpc-*-linux-gnu*)
5991 tm_file="rs6000/sysv4.h rs6000/linux.h"
5992 xm_file="rs6000/xm-sysv4.h"
5993 xm_defines="USG ${xm_defines}"
5994 out_file=rs6000/rs6000.c
5995 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
5996 xmake_file=x-linux
5997 extra_headers=ppc-asm.h
5998 if test x$enable_threads = xyes; then
5999 thread_file='posix'
6000 fi
6001 ;;
6002 powerpc-wrs-vxworks*)
6003 cpu_type=rs6000
6004 xm_file="rs6000/xm-sysv4.h"
6005 xm_defines="USG POSIX"
6006 tm_file="rs6000/sysv4.h rs6000/vxppc.h"
6007 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
6008 extra_headers=ppc-asm.h
6009 thread_file='vxworks'
6010 ;;
6011 powerpcle-wrs-vxworks*)
6012 cpu_type=rs6000
6013 xm_file="rs6000/xm-sysv4.h"
6014 xm_defines="USG POSIX"
6015 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
6016 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
6017 extra_headers=ppc-asm.h
6018 thread_file='vxworks'
6019 ;;
6020 powerpcle-*-sysv*)
6021 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
6022 xm_file="rs6000/xm-sysv4.h"
6023 xm_defines="USG POSIX"
6024 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
6025 xmake_file=rs6000/x-sysv4
6026 extra_headers=ppc-asm.h
6027 ;;
6028 powerpcle-*-elf*)
6029 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
6030 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
6031 extra_headers=ppc-asm.h
6032 ;;
6033 powerpcle-*-eabisim*)
6034 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
6035 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
6036 extra_headers=ppc-asm.h
6037 ;;
6038 powerpcle-*-eabi*)
6039 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
6040 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
6041 extra_headers=ppc-asm.h
6042 ;;
6043 powerpcle-*-solaris2*)
6044 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
6045 xm_file="rs6000/xm-sysv4.h"
6046 xm_defines="USG POSIX"
6047 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
6048 xmake_file=rs6000/x-sysv4
6049 extra_headers=ppc-asm.h
6050 ;;
6051 rs6000-ibm-aix3.[01]*)
6052 tm_file=rs6000/aix31.h
6053 xmake_file=rs6000/x-aix31
6054 float_format=none
6055 use_collect2=yes
6056 ;;
6057 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
6058 tm_file=rs6000/aix3newas.h
6059 if test x$host != x$target
6060 then
6061 tmake_file=rs6000/t-xnewas
6062 else
6063 tmake_file=rs6000/t-newas
6064 fi
6065 float_format=none
6066 use_collect2=yes
6067 ;;
6068 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
6069 tm_file=rs6000/aix41.h
6070 if test x$host != x$target
6071 then
6072 tmake_file=rs6000/t-xnewas
6073 else
6074 tmake_file=rs6000/t-newas
6075 fi
6076 if test "$gnu_ld" = yes
6077 then
6078 xmake_file=rs6000/x-aix41-gld
6079 else
6080 tmake_file="rs6000/t-newas rs6000/t-aix41"
6081 fi
6082 xmake_file=rs6000/x-aix41
6083 float_format=none
6084 use_collect2=yes
6085 ;;
6086 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
6087 tm_file=rs6000/aix43.h
6088 tmake_file=rs6000/t-aix43
6089 xmake_file=rs6000/x-aix41
6090 float_format=none
6091 use_collect2=yes
6092 ;;
6093 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
6094 tm_file=rs6000/aix43.h
6095 tmake_file=rs6000/t-aix43
6096 xmake_file=rs6000/x-aix41
6097 float_format=none
6098 use_collect2=yes
6099 ;;
6100 rs6000-ibm-aix*)
6101 float_format=none
6102 use_collect2=yes
6103 ;;
6104 rs6000-bull-bosx)
6105 float_format=none
6106 use_collect2=yes
6107 ;;
6108 rs6000-*-mach*)
6109 tm_file=rs6000/mach.h
6110 xm_file="${xm_file} rs6000/xm-mach.h"
6111 xmake_file=rs6000/x-mach
6112 use_collect2=yes
6113 ;;
6114 rs6000-*-lynxos*)
6115 tm_file=rs6000/lynx.h
6116 xm_file=rs6000/xm-lynx.h
6117 tmake_file=rs6000/t-rs6000
6118 xmake_file=rs6000/x-lynx
6119 use_collect2=yes
6120 ;;
6121 sh-*-elf*)
6122 tm_file=sh/elf.h
6123 float_format=sh
6124 ;;
6125 sh-*-rtemself*)
6126 tmake_file="sh/t-sh t-rtems"
6127 tm_file=sh/rtemself.h
6128 float_format=sh
6129 ;;
6130 sh-*-rtems*)
6131 tmake_file="sh/t-sh t-rtems"
6132 tm_file=sh/rtems.h
6133 float_format=sh
6134 ;;
6135 sh-*-*)
6136 float_format=sh
6137 ;;
6138 sparc-tti-*)
6139 tm_file=sparc/pbd.h
6140 xm_file="xm-alloca.h ${xm_file}"
6141 xm_defines=USG
6142 ;;
6143 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
6144 tm_file=sparc/vxsparc.h
6145 tmake_file=sparc/t-vxsparc
6146 use_collect2=yes
6147 thread_file='vxworks'
6148 ;;
6149 sparc-*-aout*)
6150 tmake_file=sparc/t-sparcbare
6151 tm_file="sparc/aout.h libgloss.h"
6152 ;;
6153 sparc-*-netbsd*)
6154 tm_file=sparc/netbsd.h
6155 tmake_file=t-netbsd
6156 use_collect2=yes
6157 ;;
6158 sparc-*-openbsd*)
6159 # we need collect2 until our bug is fixed...
6160 use_collect2=yes
6161 ;;
6162 sparc-*-bsd*)
6163 tm_file=sparc/bsd.h
6164 ;;
6165 sparc-*-elf*)
6166 tm_file=sparc/elf.h
6167 tmake_file=sparc/t-elf
6168 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
6169 #float_format=i128
6170 float_format=i64
6171 ;;
6172 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
6173 xm_file="${xm_file} sparc/xm-linux.h"
6174 tm_file=sparc/linux-aout.h
6175 xmake_file=x-linux
6176 gnu_ld=yes
6177 ;;
6178 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
6179 xm_file="${xm_file} sparc/xm-linux.h"
6180 xmake_file=x-linux
6181 tm_file=sparc/linux.h
6182 tmake_file="t-linux t-linux-gnulibc1"
6183 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6184 gnu_ld=yes
6185 float_format=sparc
6186 ;;
6187 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
6188 xm_file="${xm_file} sparc/xm-linux.h"
6189 xmake_file=x-linux
6190 tm_file=sparc/linux.h
6191 tmake_file="t-linux"
6192 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6193 gnu_ld=yes
6194 if test x$enable_threads = xyes; then
6195 thread_file='posix'
6196 fi
6197 float_format=sparc
6198 ;;
6199 sparc-*-lynxos*)
6200 if test x$gas = xyes
6201 then
6202 tm_file=sparc/lynx.h
6203 else
6204 tm_file=sparc/lynx-ng.h
6205 fi
6206 xm_file=sparc/xm-lynx.h
6207 tmake_file=sparc/t-sunos41
6208 xmake_file=x-lynx
6209 ;;
6210 sparc-*-rtemsaout*)
6211 tmake_file="sparc/t-sparcbare t-rtems"
6212 tm_file=sparc/rtems.h
6213 ;;
6214 sparc-*-rtems*|sparc-*-rtemself*)
6215 tm_file="sparc/rtemself.h"
6216 tmake_file="sparc/t-elf t-rtems"
6217 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
6218 #float_format=i128
6219 float_format=i64
6220 ;;
6221 sparcv9-*-solaris2*)
6222 if test x$gnu_ld = xyes
6223 then
6224 tm_file=sparc/sol2-64.h
6225 else
6226 tm_file=sparc/sol2-sld-64.h
6227 fi
6228 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
6229 xm_defines="USG POSIX"
6230 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
6231 xmake_file=sparc/x-sysv4
6232 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
6233 float_format=none
6234 if test x${enable_threads} = x ; then
6235 enable_threads=$have_pthread_h
6236 if test x${enable_threads} = x ; then
6237 enable_threads=$have_thread_h
6238 fi
6239 fi
6240 if test x${enable_threads} = xyes ; then
6241 if test x${have_pthread_h} = xyes ; then
6242 thread_file='posix'
6243 else
6244 thread_file='solaris'
6245 fi
6246 fi
6247 ;;
6248 sparc-hal-solaris2*)
6249 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
6250 xm_defines="USG POSIX"
6251 tm_file="sparc/sol2.h sparc/hal.h"
6252 tmake_file="sparc/t-halos sparc/t-sol2"
6253 xmake_file=sparc/x-sysv4
6254 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
6255 case $machine in
6256 *-*-solaris2.[0-4])
6257 float_format=i128
6258 ;;
6259 *)
6260 float_format=none
6261 ;;
6262 esac
6263 thread_file='solaris'
6264 ;;
6265 sparc-*-solaris2*)
6266 if test x$gnu_ld = xyes
6267 then
6268 tm_file=sparc/sol2.h
6269 else
6270 tm_file=sparc/sol2-sld.h
6271 fi
6272 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
6273 xm_defines="USG POSIX"
6274 tmake_file=sparc/t-sol2
6275 xmake_file=sparc/x-sysv4
6276 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
6277 case $machine in
6278 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
6279 *-*-solaris2*)
6280 if test x$gnu_ld = xyes
6281 then
6282 tm_file=sparc/sol2-64.h
6283 else
6284 tm_file=sparc/sol2-sld-64.h
6285 fi
6286 tmake_file="$tmake_file sparc/t-sol2-64"
6287 ;;
6288 esac
6289 case $machine in
6290 *-*-solaris2.[0-4])
6291 float_format=i128
6292 ;;
6293 *)
6294 float_format=none
6295 ;;
6296 esac
6297 if test x${enable_threads} = x; then
6298 enable_threads=$have_pthread_h
6299 if test x${enable_threads} = x; then
6300 enable_threads=$have_thread_h
6301 fi
6302 fi
6303 if test x${enable_threads} = xyes; then
6304 if test x${have_pthread_h} = xyes; then
6305 thread_file='posix'
6306 else
6307 thread_file='solaris'
6308 fi
6309 fi
6310 ;;
6311 sparc-*-sunos4.0*)
6312 tm_file=sparc/sunos4.h
6313 tmake_file=sparc/t-sunos40
6314 use_collect2=yes
6315 ;;
6316 sparc-*-sunos4*)
6317 tm_file=sparc/sunos4.h
6318 tmake_file=sparc/t-sunos41
6319 use_collect2=yes
6320 if test x$gas = xyes; then
6321 tm_file="${tm_file} sparc/sun4gas.h"
6322 fi
6323 ;;
6324 sparc-*-sunos3*)
6325 tm_file=sparc/sun4o3.h
6326 use_collect2=yes
6327 ;;
6328 sparc-*-sysv4*)
6329 tm_file=sparc/sysv4.h
6330 xm_file="sparc/xm-sysv4.h"
6331 xm_defines="USG POSIX"
6332 tmake_file=t-svr4
6333 xmake_file=sparc/x-sysv4
6334 extra_parts="crtbegin.o crtend.o"
6335 ;;
6336 sparc-*-vxsim*)
6337 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
6338 xm_defines="USG POSIX"
6339 tm_file=sparc/vxsim.h
6340 tmake_file=sparc/t-vxsparc
6341 xmake_file=sparc/x-sysv4
6342 ;;
6343 sparclet-*-aout*)
6344 tm_file="sparc/splet.h libgloss.h"
6345 tmake_file=sparc/t-splet
6346 ;;
6347 sparclite-*-coff*)
6348 tm_file="sparc/litecoff.h libgloss.h"
6349 tmake_file=sparc/t-sparclite
6350 ;;
6351 sparclite-*-aout*)
6352 tm_file="sparc/lite.h aoutos.h libgloss.h"
6353 tmake_file=sparc/t-sparclite
6354 ;;
6355 sparclite-*-elf*)
6356 tm_file="sparc/liteelf.h"
6357 tmake_file=sparc/t-sparclite
6358 extra_parts="crtbegin.o crtend.o"
6359 ;;
6360 sparc86x-*-aout*)
6361 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
6362 tmake_file=sparc/t-sp86x
6363 ;;
6364 sparc86x-*-elf*)
6365 tm_file="sparc/sp86x-elf.h"
6366 tmake_file=sparc/t-sp86x
6367 extra_parts="crtbegin.o crtend.o"
6368 ;;
6369 sparc64-*-aout*)
6370 tmake_file=sparc/t-sp64
6371 tm_file=sparc/sp64-aout.h
6372 ;;
6373 sparc64-*-elf*)
6374 tmake_file=sparc/t-sp64
6375 tm_file=sparc/sp64-elf.h
6376 extra_parts="crtbegin.o crtend.o"
6377 ;;
6378 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
6379 tmake_file="t-linux sparc/t-linux64"
6380 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
6381 tm_file=sparc/linux64.h
6382 xmake_file=x-linux
6383 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6384 gnu_ld=yes
6385 if test x$enable_threads = xyes; then
6386 thread_file='posix'
6387 fi
6388 float_format=sparc
6389 ;;
6390 # This hasn't been upgraded to GCC 2.
6391 # tahoe-harris-*) # Harris tahoe, using COFF.
6392 # tm_file=tahoe/harris.h
6393 # ;;
6394 # tahoe-*-bsd*) # tahoe running BSD
6395 # ;;
6396
6397 thumb*-*-*)
6398 { echo "configure: error:
6399 *** The Thumb targets have been depreciated. The equivalent
6400 *** ARM based toolchain can now generated Thumb instructions
6401 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
6402 ;;
6403 # This hasn't been upgraded to GCC 2.
6404 # tron-*-*)
6405 # cpu_type=gmicro
6406 # use_collect2=yes
6407 # ;;
6408 v850-*-rtems*)
6409 cpu_type=v850
6410 tm_file="v850/rtems.h"
6411 xm_file="v850/xm-v850.h"
6412 tmake_file="v850/t-v850 t-rtems"
6413 if test x$stabs = xyes
6414 then
6415 tm_file="${tm_file} dbx.h"
6416 fi
6417 use_collect2=no
6418 ;;
6419 v850-*-*)
6420 target_cpu_default="TARGET_CPU_generic"
6421 cpu_type=v850
6422 tm_file="v850/v850.h"
6423 xm_file="v850/xm-v850.h"
6424 tmake_file=v850/t-v850
6425 if test x$stabs = xyes
6426 then
6427 tm_file="${tm_file} dbx.h"
6428 fi
6429 use_collect2=no
6430 ;;
6431 vax-*-bsd*) # vaxen running BSD
6432 use_collect2=yes
6433 float_format=vax
6434 ;;
6435 vax-*-sysv*) # vaxen running system V
6436 tm_file="${tm_file} vax/vaxv.h"
6437 xm_defines=USG
6438 float_format=vax
6439 ;;
6440 vax-*-netbsd*)
6441 tm_file="${tm_file} netbsd.h vax/netbsd.h"
6442 tmake_file=t-netbsd
6443 float_format=vax
6444 use_collect2=yes
6445 ;;
6446 vax-*-openbsd*)
6447 tmake_file="${tmake_file} vax/t-openbsd"
6448 ;;
6449 vax-*-ultrix*) # vaxen running ultrix
6450 tm_file="${tm_file} vax/ultrix.h"
6451 use_collect2=yes
6452 float_format=vax
6453 ;;
6454 vax-*-vms*) # vaxen running VMS
6455 xm_file=vax/xm-vms.h
6456 tm_file=vax/vms.h
6457 float_format=vax
6458 ;;
6459 vax-*-*) # vax default entry
6460 float_format=vax
6461 ;;
6462 we32k-att-sysv*)
6463 xm_file="${xm_file} xm-svr3"
6464 use_collect2=yes
6465 ;;
6466 *)
6467 echo "Configuration $machine not supported" 1>&2
6468 exit 1
6469 ;;
6470 esac
6471
6472 case $machine in
6473 *-*-linux-gnu*)
6474 ;; # Existing GNU/Linux systems do not use the GNU setup.
6475 *-*-gnu*)
6476 # On the GNU system, the setup is just about the same on
6477 # each different CPU. The specific machines that GNU
6478 # supports are matched above and just set $cpu_type.
6479 xm_file="xm-gnu.h ${xm_file}"
6480 tm_file=${cpu_type}/gnu.h
6481 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
6482 # GNU always uses ELF.
6483 elf=yes
6484 # GNU tools are the only tools.
6485 gnu_ld=yes
6486 gas=yes
6487 xmake_file=x-linux # These details are the same as Linux.
6488 tmake_file=t-gnu # These are not.
6489 ;;
6490 *-*-sysv4*)
6491 xmake_try_sysv=x-sysv
6492 install_headers_dir=install-headers-cpio
6493 ;;
6494 *-*-sysv*)
6495 install_headers_dir=install-headers-cpio
6496 ;;
6497 esac
6498
6499 # Distinguish i[34567]86
6500 # Also, do not run mips-tfile on MIPS if using gas.
6501 # Process --with-cpu= for PowerPC/rs6000
6502 target_cpu_default2=
6503 case $machine in
6504 i486-*-*)
6505 target_cpu_default2=1
6506 ;;
6507 i586-*-*)
6508 case $target_alias in
6509 k6-*)
6510 target_cpu_default2=4
6511 ;;
6512 *)
6513 target_cpu_default2=2
6514 ;;
6515 esac
6516 ;;
6517 i686-*-* | i786-*-*)
6518 target_cpu_default2=3
6519 ;;
6520 alpha*-*-*)
6521 case $machine in
6522 alphaev6[78]*)
6523 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
6524 ;;
6525 alphaev6*)
6526 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
6527 ;;
6528 alphapca56*)
6529 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
6530 ;;
6531 alphaev56*)
6532 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
6533 ;;
6534 alphaev5*)
6535 target_cpu_default2="MASK_CPU_EV5"
6536 ;;
6537 esac
6538
6539 if test x$gas = xyes
6540 then
6541 if test "$target_cpu_default2" = ""
6542 then
6543 target_cpu_default2="MASK_GAS"
6544 else
6545 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
6546 fi
6547 fi
6548 ;;
6549 arm*-*-*)
6550 case "x$with_cpu" in
6551 x)
6552 # The most generic
6553 target_cpu_default2="TARGET_CPU_generic"
6554 ;;
6555
6556 # Distinguish cores, and major variants
6557 # arm7m doesn't exist, but D & I don't affect code
6558 xarm[23678] | xarm250 | xarm[67][01]0 \
6559 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
6560 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
6561 | xstrongarm | xstrongarm110 | xstrongarm1100)
6562 target_cpu_default2="TARGET_CPU_$with_cpu"
6563 ;;
6564
6565 xyes | xno)
6566 echo "--with-cpu must be passed a value" 1>&2
6567 exit 1
6568 ;;
6569
6570 *)
6571 if test x$pass2done = xyes
6572 then
6573 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6574 exit 1
6575 fi
6576 ;;
6577 esac
6578 ;;
6579
6580 mips*-*-ecoff* | mips*-*-elf*)
6581 if test x$gas = xyes
6582 then
6583 if test x$gnu_ld = xyes
6584 then
6585 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
6586 else
6587 target_cpu_default2="MASK_GAS"
6588 fi
6589 fi
6590 ;;
6591 mips*-*-*)
6592 if test x$gas = xyes
6593 then
6594 target_cpu_default2="MASK_GAS"
6595 fi
6596 ;;
6597 powerpc*-*-* | rs6000-*-*)
6598 case "x$with_cpu" in
6599 x)
6600 ;;
6601
6602 xcommon | xpower | xpower2 | xpowerpc | xrios \
6603 | xrios1 | xrios2 | xrsc | xrsc1 \
6604 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
6605 | xec603e | x740 | x750 | x401 \
6606 | x403 | x505 | x801 | x821 | x823 | x860)
6607 target_cpu_default2="\"$with_cpu\""
6608 ;;
6609
6610 xyes | xno)
6611 echo "--with-cpu must be passed a value" 1>&2
6612 exit 1
6613 ;;
6614
6615 *)
6616 if test x$pass2done = xyes
6617 then
6618 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6619 exit 1
6620 fi
6621 ;;
6622 esac
6623 ;;
6624 sparc*-*-*)
6625 case ".$with_cpu" in
6626 .)
6627 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
6628 ;;
6629 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
6630 target_cpu_default2="TARGET_CPU_$with_cpu"
6631 ;;
6632 *)
6633 if test x$pass2done = xyes
6634 then
6635 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6636 exit 1
6637 fi
6638 ;;
6639 esac
6640 ;;
6641 esac
6642
6643 if test "$target_cpu_default2" != ""
6644 then
6645 if test "$target_cpu_default" != ""
6646 then
6647 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
6648 else
6649 target_cpu_default=$target_cpu_default2
6650 fi
6651 fi
6652
6653 # No need for collect2 if we have the GNU linker.
6654 # Actually, there is now; GNU ld doesn't handle the EH info or
6655 # collecting for shared libraries.
6656 #case x$gnu_ld in
6657 #xyes)
6658 # use_collect2=
6659 # ;;
6660 #esac
6661
6662 # Save data on machine being used to compile GCC in build_xm_file.
6663 # Save data on host machine in vars host_xm_file and host_xmake_file.
6664 if test x$pass1done = x
6665 then
6666 if test x"$xm_file" = x
6667 then build_xm_file=$cpu_type/xm-$cpu_type.h
6668 else build_xm_file=$xm_file
6669 fi
6670 build_xm_defines=$xm_defines
6671 build_install_headers_dir=$install_headers_dir
6672 build_exeext=$exeext
6673 pass1done=yes
6674 else
6675 if test x$pass2done = x
6676 then
6677 if test x"$xm_file" = x
6678 then host_xm_file=$cpu_type/xm-$cpu_type.h
6679 else host_xm_file=$xm_file
6680 fi
6681 host_xm_defines=$xm_defines
6682 if test x"$xmake_file" = x
6683 then xmake_file=$cpu_type/x-$cpu_type
6684 fi
6685 host_xmake_file="$xmake_file"
6686 host_truncate_target=$truncate_target
6687 host_extra_gcc_objs=$extra_gcc_objs
6688 host_extra_objs=$extra_host_objs
6689 host_exeext=$exeext
6690 pass2done=yes
6691 fi
6692 fi
6693 done
6694
6695 extra_objs="${host_extra_objs} ${extra_objs}"
6696
6697 # Default the target-machine variables that were not explicitly set.
6698 if test x"$tm_file" = x
6699 then tm_file=$cpu_type/$cpu_type.h; fi
6700
6701 if test x$extra_headers = x
6702 then extra_headers=; fi
6703
6704 if test x"$xm_file" = x
6705 then xm_file=$cpu_type/xm-$cpu_type.h; fi
6706
6707 if test x$md_file = x
6708 then md_file=$cpu_type/$cpu_type.md; fi
6709
6710 if test x$out_file = x
6711 then out_file=$cpu_type/$cpu_type.c; fi
6712
6713 if test x"$tmake_file" = x
6714 then tmake_file=$cpu_type/t-$cpu_type
6715 fi
6716
6717 if test x"$dwarf2" = xyes
6718 then tm_file="$tm_file tm-dwarf2.h"
6719 fi
6720
6721 if test x$float_format = x
6722 then float_format=i64
6723 fi
6724
6725 if test $float_format = none
6726 then float_h_file=Makefile.in
6727 else float_h_file=float-$float_format.h
6728 fi
6729
6730 # Handle cpp installation.
6731 if test x$enable_cpp != xno
6732 then
6733 tmake_file="$tmake_file t-install-cpp"
6734 fi
6735
6736 # Say what files are being used for the output code and MD file.
6737 echo "Using \`$srcdir/config/$out_file' to output insns."
6738 echo "Using \`$srcdir/config/$md_file' as machine description file."
6739
6740 count=a
6741 for f in $tm_file; do
6742 count=${count}x
6743 done
6744 if test $count = ax; then
6745 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
6746 else
6747 echo "Using the following target machine macro files:"
6748 for f in $tm_file; do
6749 echo " $srcdir/config/$f"
6750 done
6751 fi
6752
6753 count=a
6754 for f in $host_xm_file; do
6755 count=${count}x
6756 done
6757 if test $count = ax; then
6758 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
6759 else
6760 echo "Using the following host machine macro files:"
6761 for f in $host_xm_file; do
6762 echo " $srcdir/config/$f"
6763 done
6764 fi
6765
6766 if test "$host_xm_file" != "$build_xm_file"; then
6767 count=a
6768 for f in $build_xm_file; do
6769 count=${count}x
6770 done
6771 if test $count = ax; then
6772 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
6773 else
6774 echo "Using the following build machine macro files:"
6775 for f in $build_xm_file; do
6776 echo " $srcdir/config/$f"
6777 done
6778 fi
6779 fi
6780
6781 if test x$thread_file = x; then
6782 if test x$target_thread_file != x; then
6783 thread_file=$target_thread_file
6784 else
6785 thread_file='single'
6786 fi
6787 fi
6788
6789 # Set up the header files.
6790 # $links is the list of header files to create.
6791 # $vars is the list of shell variables with file names to include.
6792 # auto-host.h is the file containing items generated by autoconf and is
6793 # the first file included by config.h.
6794 null_defines=
6795 host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
6796
6797 # If host=build, it is correct to have hconfig include auto-host.h
6798 # as well. If host!=build, we are in error and need to do more
6799 # work to find out the build config parameters.
6800 if test x$host = x$build
6801 then
6802 build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
6803 else
6804 # We create a subdir, then run autoconf in the subdir.
6805 # To prevent recursion we set host and build for the new
6806 # invocation of configure to the build for this invocation
6807 # of configure.
6808 tempdir=build.$$
6809 rm -rf $tempdir
6810 mkdir $tempdir
6811 cd $tempdir
6812 case ${srcdir} in
6813 /*) realsrcdir=${srcdir};;
6814 *) realsrcdir=../${srcdir};;
6815 esac
6816 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
6817 --target=$target --host=$build --build=$build
6818
6819 # We just finished tests for the build machine, so rename
6820 # the file auto-build.h in the gcc directory.
6821 mv auto-host.h ../auto-build.h
6822 cd ..
6823 rm -rf $tempdir
6824 build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
6825 fi
6826
6827 xm_file="gansidecl.h ${xm_file}"
6828 tm_file="gansidecl.h ${tm_file}"
6829
6830 vars="host_xm_file tm_file tm_p_file xm_file build_xm_file"
6831 links="config.h tm.h tm_p.h tconfig.h hconfig.h"
6832 defines="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
6833
6834 rm -f config.bak
6835 if test -f config.status; then mv -f config.status config.bak; fi
6836
6837 # Make the links.
6838 while test -n "$vars"
6839 do
6840 set $vars; var=$1; shift; vars=$*
6841 set $links; link=$1; shift; links=$*
6842 set $defines; define=$1; shift; defines=$*
6843
6844 rm -f $link
6845 # Make sure the file is created, even if it is empty.
6846 echo >$link
6847
6848 # Define TARGET_CPU_DEFAULT if the system wants one.
6849 # This substitutes for lots of *.h files.
6850 if test "$target_cpu_default" != "" -a $link = tm.h
6851 then
6852 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
6853 fi
6854
6855 for file in `eval echo '$'$var`; do
6856 case $file in
6857 auto-host.h | auto-build.h )
6858 ;;
6859 *)
6860 echo '#ifdef IN_GCC' >>$link
6861 ;;
6862 esac
6863 echo "#include \"$file\"" >>$link
6864 case $file in
6865 auto-host.h | auto-build.h )
6866 ;;
6867 *)
6868 echo '#endif' >>$link
6869 ;;
6870 esac
6871 done
6872
6873 for def in `eval echo '$'$define`; do
6874 echo "#ifndef $def" >>$link
6875 echo "#define $def" >>$link
6876 echo "#endif" >>$link
6877 done
6878 done
6879
6880 # Truncate the target if necessary
6881 if test x$host_truncate_target != x; then
6882 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
6883 fi
6884
6885 # Get the version trigger filename from the toplevel
6886 if test "${with_gcc_version_trigger+set}" = set; then
6887 gcc_version_trigger=$with_gcc_version_trigger
6888 else
6889 gcc_version_trigger=${srcdir}/version.c
6890 fi
6891 gcc_version=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
6892
6893 # Internationalization
6894 PACKAGE=gcc
6895 VERSION="$gcc_version"
6896 cat >> confdefs.h <<EOF
6897 #define PACKAGE "$PACKAGE"
6898 EOF
6899
6900 cat >> confdefs.h <<EOF
6901 #define VERSION "$VERSION"
6902 EOF
6903
6904
6905
6906
6907 ALL_LINGUAS="en_UK"
6908
6909 # Enable NLS support by default
6910 # Check whether --enable-nls or --disable-nls was given.
6911 if test "${enable_nls+set}" = set; then
6912 enableval="$enable_nls"
6913 :
6914 else
6915 enable_nls=yes
6916 fi
6917
6918
6919 # if cross compiling, disable NLS support.
6920 # It's not worth the trouble, at least for now.
6921
6922 if test "${build}" != "${host}" && test "x$enable_nls" == "xyes"; then
6923 echo "configure: warning: Disabling NLS support for canadian cross compiler." 1>&2
6924 enable_nls=no
6925 fi
6926
6927
6928 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
6929 echo "configure:6930: checking for strerror in -lcposix" >&5
6930 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
6931 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6932 echo $ac_n "(cached) $ac_c" 1>&6
6933 else
6934 ac_save_LIBS="$LIBS"
6935 LIBS="-lcposix $LIBS"
6936 cat > conftest.$ac_ext <<EOF
6937 #line 6938 "configure"
6938 #include "confdefs.h"
6939 /* Override any gcc2 internal prototype to avoid an error. */
6940 /* We use char because int might match the return type of a gcc2
6941 builtin and then its argument prototype would still apply. */
6942 char strerror();
6943
6944 int main() {
6945 strerror()
6946 ; return 0; }
6947 EOF
6948 if { (eval echo configure:6949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6949 rm -rf conftest*
6950 eval "ac_cv_lib_$ac_lib_var=yes"
6951 else
6952 echo "configure: failed program was:" >&5
6953 cat conftest.$ac_ext >&5
6954 rm -rf conftest*
6955 eval "ac_cv_lib_$ac_lib_var=no"
6956 fi
6957 rm -f conftest*
6958 LIBS="$ac_save_LIBS"
6959
6960 fi
6961 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6962 echo "$ac_t""yes" 1>&6
6963 LIBS="$LIBS -lcposix"
6964 else
6965 echo "$ac_t""no" 1>&6
6966 fi
6967
6968
6969
6970 echo $ac_n "checking for working const""... $ac_c" 1>&6
6971 echo "configure:6972: checking for working const" >&5
6972 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6973 echo $ac_n "(cached) $ac_c" 1>&6
6974 else
6975 cat > conftest.$ac_ext <<EOF
6976 #line 6977 "configure"
6977 #include "confdefs.h"
6978
6979 int main() {
6980
6981 /* Ultrix mips cc rejects this. */
6982 typedef int charset[2]; const charset x;
6983 /* SunOS 4.1.1 cc rejects this. */
6984 char const *const *ccp;
6985 char **p;
6986 /* NEC SVR4.0.2 mips cc rejects this. */
6987 struct point {int x, y;};
6988 static struct point const zero = {0,0};
6989 /* AIX XL C 1.02.0.0 rejects this.
6990 It does not let you subtract one const X* pointer from another in an arm
6991 of an if-expression whose if-part is not a constant expression */
6992 const char *g = "string";
6993 ccp = &g + (g ? g-g : 0);
6994 /* HPUX 7.0 cc rejects these. */
6995 ++ccp;
6996 p = (char**) ccp;
6997 ccp = (char const *const *) p;
6998 { /* SCO 3.2v4 cc rejects this. */
6999 char *t;
7000 char const *s = 0 ? (char *) 0 : (char const *) 0;
7001
7002 *t++ = 0;
7003 }
7004 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7005 int x[] = {25, 17};
7006 const int *foo = &x[0];
7007 ++foo;
7008 }
7009 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7010 typedef const int *iptr;
7011 iptr p = 0;
7012 ++p;
7013 }
7014 { /* AIX XL C 1.02.0.0 rejects this saying
7015 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7016 struct s { int j; const int *ap[3]; };
7017 struct s *b; b->j = 5;
7018 }
7019 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7020 const int foo = 10;
7021 }
7022
7023 ; return 0; }
7024 EOF
7025 if { (eval echo configure:7026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7026 rm -rf conftest*
7027 ac_cv_c_const=yes
7028 else
7029 echo "configure: failed program was:" >&5
7030 cat conftest.$ac_ext >&5
7031 rm -rf conftest*
7032 ac_cv_c_const=no
7033 fi
7034 rm -f conftest*
7035 fi
7036
7037 echo "$ac_t""$ac_cv_c_const" 1>&6
7038 if test $ac_cv_c_const = no; then
7039 cat >> confdefs.h <<\EOF
7040 #define const
7041 EOF
7042
7043 fi
7044
7045 echo $ac_n "checking for off_t""... $ac_c" 1>&6
7046 echo "configure:7047: checking for off_t" >&5
7047 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
7048 echo $ac_n "(cached) $ac_c" 1>&6
7049 else
7050 cat > conftest.$ac_ext <<EOF
7051 #line 7052 "configure"
7052 #include "confdefs.h"
7053 #include <sys/types.h>
7054 #if STDC_HEADERS
7055 #include <stdlib.h>
7056 #include <stddef.h>
7057 #endif
7058 EOF
7059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7060 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7061 rm -rf conftest*
7062 ac_cv_type_off_t=yes
7063 else
7064 rm -rf conftest*
7065 ac_cv_type_off_t=no
7066 fi
7067 rm -f conftest*
7068
7069 fi
7070 echo "$ac_t""$ac_cv_type_off_t" 1>&6
7071 if test $ac_cv_type_off_t = no; then
7072 cat >> confdefs.h <<\EOF
7073 #define off_t long
7074 EOF
7075
7076 fi
7077
7078 echo $ac_n "checking for size_t""... $ac_c" 1>&6
7079 echo "configure:7080: checking for size_t" >&5
7080 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
7081 echo $ac_n "(cached) $ac_c" 1>&6
7082 else
7083 cat > conftest.$ac_ext <<EOF
7084 #line 7085 "configure"
7085 #include "confdefs.h"
7086 #include <sys/types.h>
7087 #if STDC_HEADERS
7088 #include <stdlib.h>
7089 #include <stddef.h>
7090 #endif
7091 EOF
7092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7093 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7094 rm -rf conftest*
7095 ac_cv_type_size_t=yes
7096 else
7097 rm -rf conftest*
7098 ac_cv_type_size_t=no
7099 fi
7100 rm -f conftest*
7101
7102 fi
7103 echo "$ac_t""$ac_cv_type_size_t" 1>&6
7104 if test $ac_cv_type_size_t = no; then
7105 cat >> confdefs.h <<\EOF
7106 #define size_t unsigned
7107 EOF
7108
7109 fi
7110
7111 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7112 # for constant arguments. Useless!
7113 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
7114 echo "configure:7115: checking for working alloca.h" >&5
7115 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
7116 echo $ac_n "(cached) $ac_c" 1>&6
7117 else
7118 cat > conftest.$ac_ext <<EOF
7119 #line 7120 "configure"
7120 #include "confdefs.h"
7121 #include <alloca.h>
7122 int main() {
7123 char *p = alloca(2 * sizeof(int));
7124 ; return 0; }
7125 EOF
7126 if { (eval echo configure:7127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7127 rm -rf conftest*
7128 ac_cv_header_alloca_h=yes
7129 else
7130 echo "configure: failed program was:" >&5
7131 cat conftest.$ac_ext >&5
7132 rm -rf conftest*
7133 ac_cv_header_alloca_h=no
7134 fi
7135 rm -f conftest*
7136 fi
7137
7138 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
7139 if test $ac_cv_header_alloca_h = yes; then
7140 cat >> confdefs.h <<\EOF
7141 #define HAVE_ALLOCA_H 1
7142 EOF
7143
7144 fi
7145
7146 echo $ac_n "checking for alloca""... $ac_c" 1>&6
7147 echo "configure:7148: checking for alloca" >&5
7148 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
7149 echo $ac_n "(cached) $ac_c" 1>&6
7150 else
7151 cat > conftest.$ac_ext <<EOF
7152 #line 7153 "configure"
7153 #include "confdefs.h"
7154
7155 #ifdef __GNUC__
7156 # define alloca __builtin_alloca
7157 #else
7158 # ifdef _MSC_VER
7159 # include <malloc.h>
7160 # define alloca _alloca
7161 # else
7162 # if HAVE_ALLOCA_H
7163 # include <alloca.h>
7164 # else
7165 # ifdef _AIX
7166 #pragma alloca
7167 # else
7168 # ifndef alloca /* predefined by HP cc +Olibcalls */
7169 char *alloca ();
7170 # endif
7171 # endif
7172 # endif
7173 # endif
7174 #endif
7175
7176 int main() {
7177 char *p = (char *) alloca(1);
7178 ; return 0; }
7179 EOF
7180 if { (eval echo configure:7181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7181 rm -rf conftest*
7182 ac_cv_func_alloca_works=yes
7183 else
7184 echo "configure: failed program was:" >&5
7185 cat conftest.$ac_ext >&5
7186 rm -rf conftest*
7187 ac_cv_func_alloca_works=no
7188 fi
7189 rm -f conftest*
7190 fi
7191
7192 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
7193 if test $ac_cv_func_alloca_works = yes; then
7194 cat >> confdefs.h <<\EOF
7195 #define HAVE_ALLOCA 1
7196 EOF
7197
7198 fi
7199
7200 if test $ac_cv_func_alloca_works = no; then
7201 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7202 # that cause trouble. Some versions do not even contain alloca or
7203 # contain a buggy version. If you still want to use their alloca,
7204 # use ar to extract alloca.o from them instead of compiling alloca.c.
7205 ALLOCA=alloca.${ac_objext}
7206 cat >> confdefs.h <<\EOF
7207 #define C_ALLOCA 1
7208 EOF
7209
7210
7211 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
7212 echo "configure:7213: checking whether alloca needs Cray hooks" >&5
7213 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
7214 echo $ac_n "(cached) $ac_c" 1>&6
7215 else
7216 cat > conftest.$ac_ext <<EOF
7217 #line 7218 "configure"
7218 #include "confdefs.h"
7219 #if defined(CRAY) && ! defined(CRAY2)
7220 webecray
7221 #else
7222 wenotbecray
7223 #endif
7224
7225 EOF
7226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7227 egrep "webecray" >/dev/null 2>&1; then
7228 rm -rf conftest*
7229 ac_cv_os_cray=yes
7230 else
7231 rm -rf conftest*
7232 ac_cv_os_cray=no
7233 fi
7234 rm -f conftest*
7235
7236 fi
7237
7238 echo "$ac_t""$ac_cv_os_cray" 1>&6
7239 if test $ac_cv_os_cray = yes; then
7240 for ac_func in _getb67 GETB67 getb67; do
7241 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7242 echo "configure:7243: checking for $ac_func" >&5
7243 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7244 echo $ac_n "(cached) $ac_c" 1>&6
7245 else
7246 cat > conftest.$ac_ext <<EOF
7247 #line 7248 "configure"
7248 #include "confdefs.h"
7249 /* System header to define __stub macros and hopefully few prototypes,
7250 which can conflict with char $ac_func(); below. */
7251 #include <assert.h>
7252 /* Override any gcc2 internal prototype to avoid an error. */
7253 /* We use char because int might match the return type of a gcc2
7254 builtin and then its argument prototype would still apply. */
7255 char $ac_func();
7256
7257 int main() {
7258
7259 /* The GNU C library defines this for functions which it implements
7260 to always fail with ENOSYS. Some functions are actually named
7261 something starting with __ and the normal name is an alias. */
7262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7263 choke me
7264 #else
7265 $ac_func();
7266 #endif
7267
7268 ; return 0; }
7269 EOF
7270 if { (eval echo configure:7271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7271 rm -rf conftest*
7272 eval "ac_cv_func_$ac_func=yes"
7273 else
7274 echo "configure: failed program was:" >&5
7275 cat conftest.$ac_ext >&5
7276 rm -rf conftest*
7277 eval "ac_cv_func_$ac_func=no"
7278 fi
7279 rm -f conftest*
7280 fi
7281
7282 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7283 echo "$ac_t""yes" 1>&6
7284 cat >> confdefs.h <<EOF
7285 #define CRAY_STACKSEG_END $ac_func
7286 EOF
7287
7288 break
7289 else
7290 echo "$ac_t""no" 1>&6
7291 fi
7292
7293 done
7294 fi
7295
7296 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7297 echo "configure:7298: checking stack direction for C alloca" >&5
7298 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
7299 echo $ac_n "(cached) $ac_c" 1>&6
7300 else
7301 if test "$cross_compiling" = yes; then
7302 ac_cv_c_stack_direction=0
7303 else
7304 cat > conftest.$ac_ext <<EOF
7305 #line 7306 "configure"
7306 #include "confdefs.h"
7307 find_stack_direction ()
7308 {
7309 static char *addr = 0;
7310 auto char dummy;
7311 if (addr == 0)
7312 {
7313 addr = &dummy;
7314 return find_stack_direction ();
7315 }
7316 else
7317 return (&dummy > addr) ? 1 : -1;
7318 }
7319 main ()
7320 {
7321 exit (find_stack_direction() < 0);
7322 }
7323 EOF
7324 if { (eval echo configure:7325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7325 then
7326 ac_cv_c_stack_direction=1
7327 else
7328 echo "configure: failed program was:" >&5
7329 cat conftest.$ac_ext >&5
7330 rm -fr conftest*
7331 ac_cv_c_stack_direction=-1
7332 fi
7333 rm -fr conftest*
7334 fi
7335
7336 fi
7337
7338 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
7339 cat >> confdefs.h <<EOF
7340 #define STACK_DIRECTION $ac_cv_c_stack_direction
7341 EOF
7342
7343 fi
7344
7345
7346 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7347 unistd.h sys/param.h
7348 do
7349 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7350 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7351 echo "configure:7352: checking for $ac_hdr" >&5
7352 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7353 echo $ac_n "(cached) $ac_c" 1>&6
7354 else
7355 cat > conftest.$ac_ext <<EOF
7356 #line 7357 "configure"
7357 #include "confdefs.h"
7358 #include <$ac_hdr>
7359 EOF
7360 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7361 { (eval echo configure:7362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7362 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7363 if test -z "$ac_err"; then
7364 rm -rf conftest*
7365 eval "ac_cv_header_$ac_safe=yes"
7366 else
7367 echo "$ac_err" >&5
7368 echo "configure: failed program was:" >&5
7369 cat conftest.$ac_ext >&5
7370 rm -rf conftest*
7371 eval "ac_cv_header_$ac_safe=no"
7372 fi
7373 rm -f conftest*
7374 fi
7375 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7376 echo "$ac_t""yes" 1>&6
7377 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7378 cat >> confdefs.h <<EOF
7379 #define $ac_tr_hdr 1
7380 EOF
7381
7382 else
7383 echo "$ac_t""no" 1>&6
7384 fi
7385 done
7386
7387 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7388 strdup __argz_count __argz_stringify __argz_next
7389 do
7390 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7391 echo "configure:7392: checking for $ac_func" >&5
7392 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7393 echo $ac_n "(cached) $ac_c" 1>&6
7394 else
7395 cat > conftest.$ac_ext <<EOF
7396 #line 7397 "configure"
7397 #include "confdefs.h"
7398 /* System header to define __stub macros and hopefully few prototypes,
7399 which can conflict with char $ac_func(); below. */
7400 #include <assert.h>
7401 /* Override any gcc2 internal prototype to avoid an error. */
7402 /* We use char because int might match the return type of a gcc2
7403 builtin and then its argument prototype would still apply. */
7404 char $ac_func();
7405
7406 int main() {
7407
7408 /* The GNU C library defines this for functions which it implements
7409 to always fail with ENOSYS. Some functions are actually named
7410 something starting with __ and the normal name is an alias. */
7411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7412 choke me
7413 #else
7414 $ac_func();
7415 #endif
7416
7417 ; return 0; }
7418 EOF
7419 if { (eval echo configure:7420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7420 rm -rf conftest*
7421 eval "ac_cv_func_$ac_func=yes"
7422 else
7423 echo "configure: failed program was:" >&5
7424 cat conftest.$ac_ext >&5
7425 rm -rf conftest*
7426 eval "ac_cv_func_$ac_func=no"
7427 fi
7428 rm -f conftest*
7429 fi
7430
7431 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7432 echo "$ac_t""yes" 1>&6
7433 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7434 cat >> confdefs.h <<EOF
7435 #define $ac_tr_func 1
7436 EOF
7437
7438 else
7439 echo "$ac_t""no" 1>&6
7440 fi
7441 done
7442
7443
7444 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7445 for ac_func in stpcpy
7446 do
7447 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7448 echo "configure:7449: checking for $ac_func" >&5
7449 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7450 echo $ac_n "(cached) $ac_c" 1>&6
7451 else
7452 cat > conftest.$ac_ext <<EOF
7453 #line 7454 "configure"
7454 #include "confdefs.h"
7455 /* System header to define __stub macros and hopefully few prototypes,
7456 which can conflict with char $ac_func(); below. */
7457 #include <assert.h>
7458 /* Override any gcc2 internal prototype to avoid an error. */
7459 /* We use char because int might match the return type of a gcc2
7460 builtin and then its argument prototype would still apply. */
7461 char $ac_func();
7462
7463 int main() {
7464
7465 /* The GNU C library defines this for functions which it implements
7466 to always fail with ENOSYS. Some functions are actually named
7467 something starting with __ and the normal name is an alias. */
7468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7469 choke me
7470 #else
7471 $ac_func();
7472 #endif
7473
7474 ; return 0; }
7475 EOF
7476 if { (eval echo configure:7477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7477 rm -rf conftest*
7478 eval "ac_cv_func_$ac_func=yes"
7479 else
7480 echo "configure: failed program was:" >&5
7481 cat conftest.$ac_ext >&5
7482 rm -rf conftest*
7483 eval "ac_cv_func_$ac_func=no"
7484 fi
7485 rm -f conftest*
7486 fi
7487
7488 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7489 echo "$ac_t""yes" 1>&6
7490 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7491 cat >> confdefs.h <<EOF
7492 #define $ac_tr_func 1
7493 EOF
7494
7495 else
7496 echo "$ac_t""no" 1>&6
7497 fi
7498 done
7499
7500 fi
7501 if test "${ac_cv_func_stpcpy}" = "yes"; then
7502 cat >> confdefs.h <<\EOF
7503 #define HAVE_STPCPY 1
7504 EOF
7505
7506 fi
7507
7508 if test $ac_cv_header_locale_h = yes; then
7509 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
7510 echo "configure:7511: checking for LC_MESSAGES" >&5
7511 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
7512 echo $ac_n "(cached) $ac_c" 1>&6
7513 else
7514 cat > conftest.$ac_ext <<EOF
7515 #line 7516 "configure"
7516 #include "confdefs.h"
7517 #include <locale.h>
7518 int main() {
7519 return LC_MESSAGES
7520 ; return 0; }
7521 EOF
7522 if { (eval echo configure:7523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7523 rm -rf conftest*
7524 am_cv_val_LC_MESSAGES=yes
7525 else
7526 echo "configure: failed program was:" >&5
7527 cat conftest.$ac_ext >&5
7528 rm -rf conftest*
7529 am_cv_val_LC_MESSAGES=no
7530 fi
7531 rm -f conftest*
7532 fi
7533
7534 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7535 if test $am_cv_val_LC_MESSAGES = yes; then
7536 cat >> confdefs.h <<\EOF
7537 #define HAVE_LC_MESSAGES 1
7538 EOF
7539
7540 fi
7541 fi
7542 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7543 echo "configure:7544: checking whether NLS is requested" >&5
7544 # Check whether --enable-nls or --disable-nls was given.
7545 if test "${enable_nls+set}" = set; then
7546 enableval="$enable_nls"
7547 USE_NLS=$enableval
7548 else
7549 USE_NLS=yes
7550 fi
7551
7552 echo "$ac_t""$USE_NLS" 1>&6
7553
7554
7555 USE_INCLUDED_LIBINTL=no
7556
7557 if test "$USE_NLS" = "yes"; then
7558 cat >> confdefs.h <<\EOF
7559 #define ENABLE_NLS 1
7560 EOF
7561
7562 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7563 echo "configure:7564: checking whether included gettext is requested" >&5
7564 # Check whether --with-included-gettext or --without-included-gettext was given.
7565 if test "${with_included_gettext+set}" = set; then
7566 withval="$with_included_gettext"
7567 nls_cv_force_use_gnu_gettext=$withval
7568 else
7569 nls_cv_force_use_gnu_gettext=yes
7570 fi
7571
7572 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7573
7574 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7575 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7576 nls_cv_header_intl=
7577 nls_cv_header_libgt=
7578 CATOBJEXT=NONE
7579
7580 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7581 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7582 echo "configure:7583: checking for libintl.h" >&5
7583 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7584 echo $ac_n "(cached) $ac_c" 1>&6
7585 else
7586 cat > conftest.$ac_ext <<EOF
7587 #line 7588 "configure"
7588 #include "confdefs.h"
7589 #include <libintl.h>
7590 EOF
7591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7592 { (eval echo configure:7593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7593 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7594 if test -z "$ac_err"; then
7595 rm -rf conftest*
7596 eval "ac_cv_header_$ac_safe=yes"
7597 else
7598 echo "$ac_err" >&5
7599 echo "configure: failed program was:" >&5
7600 cat conftest.$ac_ext >&5
7601 rm -rf conftest*
7602 eval "ac_cv_header_$ac_safe=no"
7603 fi
7604 rm -f conftest*
7605 fi
7606 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7607 echo "$ac_t""yes" 1>&6
7608 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7609 echo "configure:7610: checking for gettext in libc" >&5
7610 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7611 echo $ac_n "(cached) $ac_c" 1>&6
7612 else
7613 cat > conftest.$ac_ext <<EOF
7614 #line 7615 "configure"
7615 #include "confdefs.h"
7616 #include <libintl.h>
7617 int main() {
7618 return (int) gettext ("")
7619 ; return 0; }
7620 EOF
7621 if { (eval echo configure:7622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7622 rm -rf conftest*
7623 gt_cv_func_gettext_libc=yes
7624 else
7625 echo "configure: failed program was:" >&5
7626 cat conftest.$ac_ext >&5
7627 rm -rf conftest*
7628 gt_cv_func_gettext_libc=no
7629 fi
7630 rm -f conftest*
7631 fi
7632
7633 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7634
7635 if test "$gt_cv_func_gettext_libc" != "yes"; then
7636 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7637 echo "configure:7638: checking for bindtextdomain in -lintl" >&5
7638 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7639 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7640 echo $ac_n "(cached) $ac_c" 1>&6
7641 else
7642 ac_save_LIBS="$LIBS"
7643 LIBS="-lintl $LIBS"
7644 cat > conftest.$ac_ext <<EOF
7645 #line 7646 "configure"
7646 #include "confdefs.h"
7647 /* Override any gcc2 internal prototype to avoid an error. */
7648 /* We use char because int might match the return type of a gcc2
7649 builtin and then its argument prototype would still apply. */
7650 char bindtextdomain();
7651
7652 int main() {
7653 bindtextdomain()
7654 ; return 0; }
7655 EOF
7656 if { (eval echo configure:7657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7657 rm -rf conftest*
7658 eval "ac_cv_lib_$ac_lib_var=yes"
7659 else
7660 echo "configure: failed program was:" >&5
7661 cat conftest.$ac_ext >&5
7662 rm -rf conftest*
7663 eval "ac_cv_lib_$ac_lib_var=no"
7664 fi
7665 rm -f conftest*
7666 LIBS="$ac_save_LIBS"
7667
7668 fi
7669 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7670 echo "$ac_t""yes" 1>&6
7671 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7672 echo "configure:7673: checking for gettext in libintl" >&5
7673 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7674 echo $ac_n "(cached) $ac_c" 1>&6
7675 else
7676 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7677 echo "configure:7678: checking for gettext in -lintl" >&5
7678 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7679 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7680 echo $ac_n "(cached) $ac_c" 1>&6
7681 else
7682 ac_save_LIBS="$LIBS"
7683 LIBS="-lintl $LIBS"
7684 cat > conftest.$ac_ext <<EOF
7685 #line 7686 "configure"
7686 #include "confdefs.h"
7687 /* Override any gcc2 internal prototype to avoid an error. */
7688 /* We use char because int might match the return type of a gcc2
7689 builtin and then its argument prototype would still apply. */
7690 char gettext();
7691
7692 int main() {
7693 gettext()
7694 ; return 0; }
7695 EOF
7696 if { (eval echo configure:7697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7697 rm -rf conftest*
7698 eval "ac_cv_lib_$ac_lib_var=yes"
7699 else
7700 echo "configure: failed program was:" >&5
7701 cat conftest.$ac_ext >&5
7702 rm -rf conftest*
7703 eval "ac_cv_lib_$ac_lib_var=no"
7704 fi
7705 rm -f conftest*
7706 LIBS="$ac_save_LIBS"
7707
7708 fi
7709 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7710 echo "$ac_t""yes" 1>&6
7711 gt_cv_func_gettext_libintl=yes
7712 else
7713 echo "$ac_t""no" 1>&6
7714 gt_cv_func_gettext_libintl=no
7715 fi
7716
7717 fi
7718
7719 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7720 else
7721 echo "$ac_t""no" 1>&6
7722 fi
7723
7724 fi
7725
7726 if test "$gt_cv_func_gettext_libc" = "yes" \
7727 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7728 cat >> confdefs.h <<\EOF
7729 #define HAVE_GETTEXT 1
7730 EOF
7731
7732 # Extract the first word of "msgfmt", so it can be a program name with args.
7733 set dummy msgfmt; ac_word=$2
7734 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7735 echo "configure:7736: checking for $ac_word" >&5
7736 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7737 echo $ac_n "(cached) $ac_c" 1>&6
7738 else
7739 case "$MSGFMT" in
7740 /*)
7741 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7742 ;;
7743 *)
7744 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7745 for ac_dir in $PATH; do
7746 test -z "$ac_dir" && ac_dir=.
7747 if test -f $ac_dir/$ac_word; then
7748 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7749 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7750 break
7751 fi
7752 fi
7753 done
7754 IFS="$ac_save_ifs"
7755 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7756 ;;
7757 esac
7758 fi
7759 MSGFMT="$ac_cv_path_MSGFMT"
7760 if test -n "$MSGFMT"; then
7761 echo "$ac_t""$MSGFMT" 1>&6
7762 else
7763 echo "$ac_t""no" 1>&6
7764 fi
7765 if test "$MSGFMT" != "no"; then
7766 for ac_func in dcgettext
7767 do
7768 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7769 echo "configure:7770: checking for $ac_func" >&5
7770 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7771 echo $ac_n "(cached) $ac_c" 1>&6
7772 else
7773 cat > conftest.$ac_ext <<EOF
7774 #line 7775 "configure"
7775 #include "confdefs.h"
7776 /* System header to define __stub macros and hopefully few prototypes,
7777 which can conflict with char $ac_func(); below. */
7778 #include <assert.h>
7779 /* Override any gcc2 internal prototype to avoid an error. */
7780 /* We use char because int might match the return type of a gcc2
7781 builtin and then its argument prototype would still apply. */
7782 char $ac_func();
7783
7784 int main() {
7785
7786 /* The GNU C library defines this for functions which it implements
7787 to always fail with ENOSYS. Some functions are actually named
7788 something starting with __ and the normal name is an alias. */
7789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7790 choke me
7791 #else
7792 $ac_func();
7793 #endif
7794
7795 ; return 0; }
7796 EOF
7797 if { (eval echo configure:7798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7798 rm -rf conftest*
7799 eval "ac_cv_func_$ac_func=yes"
7800 else
7801 echo "configure: failed program was:" >&5
7802 cat conftest.$ac_ext >&5
7803 rm -rf conftest*
7804 eval "ac_cv_func_$ac_func=no"
7805 fi
7806 rm -f conftest*
7807 fi
7808
7809 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7810 echo "$ac_t""yes" 1>&6
7811 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7812 cat >> confdefs.h <<EOF
7813 #define $ac_tr_func 1
7814 EOF
7815
7816 else
7817 echo "$ac_t""no" 1>&6
7818 fi
7819 done
7820
7821 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7822 set dummy gmsgfmt; ac_word=$2
7823 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7824 echo "configure:7825: checking for $ac_word" >&5
7825 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7826 echo $ac_n "(cached) $ac_c" 1>&6
7827 else
7828 case "$GMSGFMT" in
7829 /*)
7830 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7831 ;;
7832 ?:/*)
7833 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7834 ;;
7835 *)
7836 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7837 ac_dummy="$PATH"
7838 for ac_dir in $ac_dummy; do
7839 test -z "$ac_dir" && ac_dir=.
7840 if test -f $ac_dir/$ac_word; then
7841 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7842 break
7843 fi
7844 done
7845 IFS="$ac_save_ifs"
7846 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7847 ;;
7848 esac
7849 fi
7850 GMSGFMT="$ac_cv_path_GMSGFMT"
7851 if test -n "$GMSGFMT"; then
7852 echo "$ac_t""$GMSGFMT" 1>&6
7853 else
7854 echo "$ac_t""no" 1>&6
7855 fi
7856
7857 # Extract the first word of "xgettext", so it can be a program name with args.
7858 set dummy xgettext; ac_word=$2
7859 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7860 echo "configure:7861: checking for $ac_word" >&5
7861 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7862 echo $ac_n "(cached) $ac_c" 1>&6
7863 else
7864 case "$XGETTEXT" in
7865 /*)
7866 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7867 ;;
7868 *)
7869 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7870 for ac_dir in $PATH; do
7871 test -z "$ac_dir" && ac_dir=.
7872 if test -f $ac_dir/$ac_word; then
7873 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7874 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7875 break
7876 fi
7877 fi
7878 done
7879 IFS="$ac_save_ifs"
7880 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7881 ;;
7882 esac
7883 fi
7884 XGETTEXT="$ac_cv_path_XGETTEXT"
7885 if test -n "$XGETTEXT"; then
7886 echo "$ac_t""$XGETTEXT" 1>&6
7887 else
7888 echo "$ac_t""no" 1>&6
7889 fi
7890
7891 cat > conftest.$ac_ext <<EOF
7892 #line 7893 "configure"
7893 #include "confdefs.h"
7894
7895 int main() {
7896 extern int _nl_msg_cat_cntr;
7897 return _nl_msg_cat_cntr
7898 ; return 0; }
7899 EOF
7900 if { (eval echo configure:7901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7901 rm -rf conftest*
7902 CATOBJEXT=.gmo
7903 DATADIRNAME=share
7904 else
7905 echo "configure: failed program was:" >&5
7906 cat conftest.$ac_ext >&5
7907 rm -rf conftest*
7908 CATOBJEXT=.mo
7909 DATADIRNAME=lib
7910 fi
7911 rm -f conftest*
7912 INSTOBJEXT=.mo
7913 fi
7914 fi
7915
7916 else
7917 echo "$ac_t""no" 1>&6
7918 fi
7919
7920
7921 if test "$CATOBJEXT" = "NONE"; then
7922 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
7923 echo "configure:7924: checking whether catgets can be used" >&5
7924 # Check whether --with-catgets or --without-catgets was given.
7925 if test "${with_catgets+set}" = set; then
7926 withval="$with_catgets"
7927 nls_cv_use_catgets=$withval
7928 else
7929 nls_cv_use_catgets=no
7930 fi
7931
7932 echo "$ac_t""$nls_cv_use_catgets" 1>&6
7933
7934 if test "$nls_cv_use_catgets" = "yes"; then
7935 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
7936 echo "configure:7937: checking for main in -li" >&5
7937 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
7938 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7939 echo $ac_n "(cached) $ac_c" 1>&6
7940 else
7941 ac_save_LIBS="$LIBS"
7942 LIBS="-li $LIBS"
7943 cat > conftest.$ac_ext <<EOF
7944 #line 7945 "configure"
7945 #include "confdefs.h"
7946
7947 int main() {
7948 main()
7949 ; return 0; }
7950 EOF
7951 if { (eval echo configure:7952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7952 rm -rf conftest*
7953 eval "ac_cv_lib_$ac_lib_var=yes"
7954 else
7955 echo "configure: failed program was:" >&5
7956 cat conftest.$ac_ext >&5
7957 rm -rf conftest*
7958 eval "ac_cv_lib_$ac_lib_var=no"
7959 fi
7960 rm -f conftest*
7961 LIBS="$ac_save_LIBS"
7962
7963 fi
7964 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7965 echo "$ac_t""yes" 1>&6
7966 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7967 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7968 cat >> confdefs.h <<EOF
7969 #define $ac_tr_lib 1
7970 EOF
7971
7972 LIBS="-li $LIBS"
7973
7974 else
7975 echo "$ac_t""no" 1>&6
7976 fi
7977
7978 echo $ac_n "checking for catgets""... $ac_c" 1>&6
7979 echo "configure:7980: checking for catgets" >&5
7980 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
7981 echo $ac_n "(cached) $ac_c" 1>&6
7982 else
7983 cat > conftest.$ac_ext <<EOF
7984 #line 7985 "configure"
7985 #include "confdefs.h"
7986 /* System header to define __stub macros and hopefully few prototypes,
7987 which can conflict with char catgets(); below. */
7988 #include <assert.h>
7989 /* Override any gcc2 internal prototype to avoid an error. */
7990 /* We use char because int might match the return type of a gcc2
7991 builtin and then its argument prototype would still apply. */
7992 char catgets();
7993
7994 int main() {
7995
7996 /* The GNU C library defines this for functions which it implements
7997 to always fail with ENOSYS. Some functions are actually named
7998 something starting with __ and the normal name is an alias. */
7999 #if defined (__stub_catgets) || defined (__stub___catgets)
8000 choke me
8001 #else
8002 catgets();
8003 #endif
8004
8005 ; return 0; }
8006 EOF
8007 if { (eval echo configure:8008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8008 rm -rf conftest*
8009 eval "ac_cv_func_catgets=yes"
8010 else
8011 echo "configure: failed program was:" >&5
8012 cat conftest.$ac_ext >&5
8013 rm -rf conftest*
8014 eval "ac_cv_func_catgets=no"
8015 fi
8016 rm -f conftest*
8017 fi
8018
8019 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
8020 echo "$ac_t""yes" 1>&6
8021 cat >> confdefs.h <<\EOF
8022 #define HAVE_CATGETS 1
8023 EOF
8024
8025 INTLOBJS="\$(CATOBJS)"
8026 # Extract the first word of "gencat", so it can be a program name with args.
8027 set dummy gencat; ac_word=$2
8028 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8029 echo "configure:8030: checking for $ac_word" >&5
8030 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
8031 echo $ac_n "(cached) $ac_c" 1>&6
8032 else
8033 case "$GENCAT" in
8034 /*)
8035 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
8036 ;;
8037 ?:/*)
8038 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
8039 ;;
8040 *)
8041 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8042 ac_dummy="$PATH"
8043 for ac_dir in $ac_dummy; do
8044 test -z "$ac_dir" && ac_dir=.
8045 if test -f $ac_dir/$ac_word; then
8046 ac_cv_path_GENCAT="$ac_dir/$ac_word"
8047 break
8048 fi
8049 done
8050 IFS="$ac_save_ifs"
8051 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
8052 ;;
8053 esac
8054 fi
8055 GENCAT="$ac_cv_path_GENCAT"
8056 if test -n "$GENCAT"; then
8057 echo "$ac_t""$GENCAT" 1>&6
8058 else
8059 echo "$ac_t""no" 1>&6
8060 fi
8061 if test "$GENCAT" != "no"; then
8062 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8063 set dummy gmsgfmt; ac_word=$2
8064 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8065 echo "configure:8066: checking for $ac_word" >&5
8066 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8067 echo $ac_n "(cached) $ac_c" 1>&6
8068 else
8069 case "$GMSGFMT" in
8070 /*)
8071 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8072 ;;
8073 ?:/*)
8074 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
8075 ;;
8076 *)
8077 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8078 ac_dummy="$PATH"
8079 for ac_dir in $ac_dummy; do
8080 test -z "$ac_dir" && ac_dir=.
8081 if test -f $ac_dir/$ac_word; then
8082 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
8083 break
8084 fi
8085 done
8086 IFS="$ac_save_ifs"
8087 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
8088 ;;
8089 esac
8090 fi
8091 GMSGFMT="$ac_cv_path_GMSGFMT"
8092 if test -n "$GMSGFMT"; then
8093 echo "$ac_t""$GMSGFMT" 1>&6
8094 else
8095 echo "$ac_t""no" 1>&6
8096 fi
8097
8098 if test "$GMSGFMT" = "no"; then
8099 # Extract the first word of "msgfmt", so it can be a program name with args.
8100 set dummy msgfmt; ac_word=$2
8101 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8102 echo "configure:8103: checking for $ac_word" >&5
8103 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8104 echo $ac_n "(cached) $ac_c" 1>&6
8105 else
8106 case "$GMSGFMT" in
8107 /*)
8108 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8109 ;;
8110 *)
8111 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8112 for ac_dir in $PATH; do
8113 test -z "$ac_dir" && ac_dir=.
8114 if test -f $ac_dir/$ac_word; then
8115 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8116 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
8117 break
8118 fi
8119 fi
8120 done
8121 IFS="$ac_save_ifs"
8122 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
8123 ;;
8124 esac
8125 fi
8126 GMSGFMT="$ac_cv_path_GMSGFMT"
8127 if test -n "$GMSGFMT"; then
8128 echo "$ac_t""$GMSGFMT" 1>&6
8129 else
8130 echo "$ac_t""no" 1>&6
8131 fi
8132
8133 fi
8134 # Extract the first word of "xgettext", so it can be a program name with args.
8135 set dummy xgettext; ac_word=$2
8136 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8137 echo "configure:8138: checking for $ac_word" >&5
8138 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8139 echo $ac_n "(cached) $ac_c" 1>&6
8140 else
8141 case "$XGETTEXT" in
8142 /*)
8143 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8144 ;;
8145 *)
8146 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8147 for ac_dir in $PATH; do
8148 test -z "$ac_dir" && ac_dir=.
8149 if test -f $ac_dir/$ac_word; then
8150 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8151 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8152 break
8153 fi
8154 fi
8155 done
8156 IFS="$ac_save_ifs"
8157 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8158 ;;
8159 esac
8160 fi
8161 XGETTEXT="$ac_cv_path_XGETTEXT"
8162 if test -n "$XGETTEXT"; then
8163 echo "$ac_t""$XGETTEXT" 1>&6
8164 else
8165 echo "$ac_t""no" 1>&6
8166 fi
8167
8168 USE_INCLUDED_LIBINTL=yes
8169 CATOBJEXT=.cat
8170 INSTOBJEXT=.cat
8171 DATADIRNAME=lib
8172 INTLDEPS='$(top_builddir)/intl/libintl.a'
8173 INTLLIBS=$INTLDEPS
8174 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8175 nls_cv_header_intl=intl/libintl.h
8176 nls_cv_header_libgt=intl/libgettext.h
8177 fi
8178 else
8179 echo "$ac_t""no" 1>&6
8180 fi
8181
8182 fi
8183 fi
8184
8185 if test "$CATOBJEXT" = "NONE"; then
8186 nls_cv_use_gnu_gettext=yes
8187 fi
8188 fi
8189
8190 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8191 INTLOBJS="\$(GETTOBJS)"
8192 # Extract the first word of "msgfmt", so it can be a program name with args.
8193 set dummy msgfmt; ac_word=$2
8194 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8195 echo "configure:8196: checking for $ac_word" >&5
8196 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
8197 echo $ac_n "(cached) $ac_c" 1>&6
8198 else
8199 case "$MSGFMT" in
8200 /*)
8201 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8202 ;;
8203 *)
8204 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8205 for ac_dir in $PATH; do
8206 test -z "$ac_dir" && ac_dir=.
8207 if test -f $ac_dir/$ac_word; then
8208 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8209 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8210 break
8211 fi
8212 fi
8213 done
8214 IFS="$ac_save_ifs"
8215 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
8216 ;;
8217 esac
8218 fi
8219 MSGFMT="$ac_cv_path_MSGFMT"
8220 if test -n "$MSGFMT"; then
8221 echo "$ac_t""$MSGFMT" 1>&6
8222 else
8223 echo "$ac_t""no" 1>&6
8224 fi
8225
8226 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8227 set dummy gmsgfmt; ac_word=$2
8228 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8229 echo "configure:8230: checking for $ac_word" >&5
8230 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8231 echo $ac_n "(cached) $ac_c" 1>&6
8232 else
8233 case "$GMSGFMT" in
8234 /*)
8235 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8236 ;;
8237 ?:/*)
8238 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
8239 ;;
8240 *)
8241 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8242 ac_dummy="$PATH"
8243 for ac_dir in $ac_dummy; do
8244 test -z "$ac_dir" && ac_dir=.
8245 if test -f $ac_dir/$ac_word; then
8246 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
8247 break
8248 fi
8249 done
8250 IFS="$ac_save_ifs"
8251 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8252 ;;
8253 esac
8254 fi
8255 GMSGFMT="$ac_cv_path_GMSGFMT"
8256 if test -n "$GMSGFMT"; then
8257 echo "$ac_t""$GMSGFMT" 1>&6
8258 else
8259 echo "$ac_t""no" 1>&6
8260 fi
8261
8262 # Extract the first word of "xgettext", so it can be a program name with args.
8263 set dummy xgettext; ac_word=$2
8264 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8265 echo "configure:8266: checking for $ac_word" >&5
8266 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8267 echo $ac_n "(cached) $ac_c" 1>&6
8268 else
8269 case "$XGETTEXT" in
8270 /*)
8271 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8272 ;;
8273 *)
8274 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8275 for ac_dir in $PATH; do
8276 test -z "$ac_dir" && ac_dir=.
8277 if test -f $ac_dir/$ac_word; then
8278 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8279 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8280 break
8281 fi
8282 fi
8283 done
8284 IFS="$ac_save_ifs"
8285 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8286 ;;
8287 esac
8288 fi
8289 XGETTEXT="$ac_cv_path_XGETTEXT"
8290 if test -n "$XGETTEXT"; then
8291 echo "$ac_t""$XGETTEXT" 1>&6
8292 else
8293 echo "$ac_t""no" 1>&6
8294 fi
8295
8296
8297 USE_INCLUDED_LIBINTL=yes
8298 CATOBJEXT=.gmo
8299 INSTOBJEXT=.mo
8300 DATADIRNAME=share
8301 INTLDEPS='$(top_builddir)/intl/libintl.a'
8302 INTLLIBS=$INTLDEPS
8303 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8304 nls_cv_header_intl=intl/libintl.h
8305 nls_cv_header_libgt=intl/libgettext.h
8306 fi
8307
8308 if test "$XGETTEXT" != ":"; then
8309 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8310 : ;
8311 else
8312 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
8313 XGETTEXT=":"
8314 fi
8315 fi
8316
8317 # We need to process the po/ directory.
8318 POSUB=po
8319 else
8320 DATADIRNAME=share
8321 nls_cv_header_intl=intl/libintl.h
8322 nls_cv_header_libgt=intl/libgettext.h
8323 fi
8324
8325
8326
8327
8328 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8329 # because some of the sources are only built for this goal.
8330 if test "$PACKAGE" = gettext; then
8331 USE_NLS=yes
8332 USE_INCLUDED_LIBINTL=yes
8333 fi
8334
8335 for lang in $ALL_LINGUAS; do
8336 GMOFILES="$GMOFILES $lang.gmo"
8337 POFILES="$POFILES $lang.po"
8338 done
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353 if test "x$CATOBJEXT" != "x"; then
8354 if test "x$ALL_LINGUAS" = "x"; then
8355 LINGUAS=
8356 else
8357 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
8358 echo "configure:8359: checking for catalogs to be installed" >&5
8359 NEW_LINGUAS=
8360 for lang in $ALL_LINGUAS; do
8361 case " $LINGUAS " in
8362 *" $lang "*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8363 esac
8364 done
8365 LINGUAS=$NEW_LINGUAS
8366 echo "$ac_t""$LINGUAS" 1>&6
8367 fi
8368
8369 if test -n "$LINGUAS"; then
8370 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8371 fi
8372 fi
8373
8374 if test $ac_cv_header_locale_h = yes; then
8375 INCLUDE_LOCALE_H="#include <locale.h>"
8376 else
8377 INCLUDE_LOCALE_H="\
8378 /* The system does not provide the header <locale.h>. Take care yourself. */"
8379 fi
8380
8381
8382 test -d intl || mkdir intl
8383 if test "$CATOBJEXT" = ".cat"; then
8384 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
8385 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
8386 echo "configure:8387: checking for linux/version.h" >&5
8387 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8388 echo $ac_n "(cached) $ac_c" 1>&6
8389 else
8390 cat > conftest.$ac_ext <<EOF
8391 #line 8392 "configure"
8392 #include "confdefs.h"
8393 #include <linux/version.h>
8394 EOF
8395 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8396 { (eval echo configure:8397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8397 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8398 if test -z "$ac_err"; then
8399 rm -rf conftest*
8400 eval "ac_cv_header_$ac_safe=yes"
8401 else
8402 echo "$ac_err" >&5
8403 echo "configure: failed program was:" >&5
8404 cat conftest.$ac_ext >&5
8405 rm -rf conftest*
8406 eval "ac_cv_header_$ac_safe=no"
8407 fi
8408 rm -f conftest*
8409 fi
8410 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8411 echo "$ac_t""yes" 1>&6
8412 msgformat=linux
8413 else
8414 echo "$ac_t""no" 1>&6
8415 msgformat=xopen
8416 fi
8417
8418
8419 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
8420 fi
8421 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8422 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
8423
8424 if test "$PACKAGE" = "gettext"; then
8425 GT_NO="#NO#"
8426 GT_YES=
8427 else
8428 GT_NO=
8429 GT_YES="#YES#"
8430 fi
8431
8432
8433
8434 MKINSTALLDIRS=
8435 if test -n "$ac_aux_dir"; then
8436 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
8437 fi
8438 if test -z "$MKINSTALLDIRS"; then
8439 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8440 fi
8441
8442
8443 l=
8444
8445
8446 test -d po || mkdir po
8447 if test "x$srcdir" != "x."; then
8448 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8449 posrcprefix="$srcdir/"
8450 else
8451 posrcprefix="../$srcdir/"
8452 fi
8453 else
8454 posrcprefix="../"
8455 fi
8456 rm -f po/POTFILES
8457 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8458 < $srcdir/po/POTFILES.in > po/POTFILES
8459
8460 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
8461
8462 # Windows32 Registry support for specifying GCC installation paths.
8463 # Check whether --enable-win32-registry or --disable-win32-registry was given.
8464 if test "${enable_win32_registry+set}" = set; then
8465 enableval="$enable_win32_registry"
8466 :
8467 fi
8468
8469
8470 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
8471 echo "configure:8472: checking whether windows registry support is requested" >&5
8472 if test x$enable_win32_registry != xno; then
8473 cat >> confdefs.h <<\EOF
8474 #define ENABLE_WIN32_REGISTRY 1
8475 EOF
8476
8477 echo "$ac_t""yes" 1>&6
8478 else
8479 echo "$ac_t""no" 1>&6
8480 fi
8481
8482 # Check if user specified a different registry key.
8483 case x${enable_win32_registry} in
8484 x | xyes)
8485 # default.
8486 gcc_cv_win32_registry_key="$VERSION"
8487 ;;
8488 xno)
8489 # no registry lookup.
8490 gcc_cv_win32_registry_key=''
8491 ;;
8492 *)
8493 # user-specified key.
8494 gcc_cv_win32_registry_key="$enable_win32_registry"
8495 ;;
8496 esac
8497
8498 if test x$enable_win32_registry != xno; then
8499 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
8500 echo "configure:8501: checking registry key on windows hosts" >&5
8501 cat >> confdefs.h <<EOF
8502 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
8503 EOF
8504
8505 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
8506 fi
8507
8508 # Get an absolute path to the GCC top-level source directory
8509 holddir=`pwd`
8510 cd $srcdir
8511 topdir=`pwd`
8512 cd $holddir
8513
8514 # Conditionalize the makefile for this host machine.
8515 # Make-host contains the concatenation of all host makefile fragments
8516 # [there can be more than one]. This file is built by configure.frag.
8517 host_overrides=Make-host
8518 dep_host_xmake_file=
8519 for f in .. ${host_xmake_file}
8520 do
8521 if test -f ${srcdir}/config/$f
8522 then
8523 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
8524 fi
8525 done
8526
8527 # Conditionalize the makefile for this target machine.
8528 # Make-target contains the concatenation of all host makefile fragments
8529 # [there can be more than one]. This file is built by configure.frag.
8530 target_overrides=Make-target
8531 dep_tmake_file=
8532 for f in .. ${tmake_file}
8533 do
8534 if test -f ${srcdir}/config/$f
8535 then
8536 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
8537 fi
8538 done
8539
8540 # If the host doesn't support symlinks, modify CC in
8541 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
8542 # Otherwise, we can use "CC=$(CC)".
8543 rm -f symtest.tem
8544 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
8545 then
8546 cc_set_by_configure="\$(CC)"
8547 quoted_cc_set_by_configure="\$(CC)"
8548 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
8549 else
8550 rm -f symtest.tem
8551 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
8552 then
8553 symbolic_link="cp -p"
8554 else
8555 symbolic_link="cp"
8556 fi
8557 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
8558 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
8559 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
8560 fi
8561 rm -f symtest.tem
8562
8563 out_object_file=`basename $out_file .c`.o
8564
8565 tm_file_list=
8566 for f in $tm_file; do
8567 case $f in
8568 gansidecl.h )
8569 tm_file_list="${tm_file_list} $f" ;;
8570 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
8571 esac
8572 done
8573
8574 host_xm_file_list=
8575 for f in $host_xm_file; do
8576 case $f in
8577 auto-host.h | gansidecl.h | hwint.h )
8578 host_xm_file_list="${host_xm_file_list} $f" ;;
8579 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
8580 esac
8581 done
8582
8583 build_xm_file_list=
8584 for f in $build_xm_file; do
8585 case $f in
8586 auto-build.h | auto-host.h | gansidecl.h | hwint.h )
8587 build_xm_file_list="${build_xm_file_list} $f" ;;
8588 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8589 esac
8590 done
8591
8592 # Define macro CROSS_COMPILE in compilation
8593 # if this is a cross-compiler.
8594 # Also use all.cross instead of all.internal
8595 # and add cross-make to Makefile.
8596 cross_overrides="/dev/null"
8597 if test x$host != x$target
8598 then
8599 cross_defines="CROSS=-DCROSS_COMPILE"
8600 cross_overrides="${topdir}/cross-make"
8601 fi
8602
8603 # If this is a cross-compiler that does not
8604 # have its own set of headers then define
8605 # inhibit_libc
8606
8607 # If this is using newlib, then define inhibit_libc in
8608 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
8609 # libgcc.a, but that's OK because newlib should have its own version of
8610 # assert.h.
8611 inhibit_libc=
8612 if test x$host != x$target && test x$with_headers = x; then
8613 inhibit_libc=-Dinhibit_libc
8614 else
8615 if test x$with_newlib = xyes; then
8616 inhibit_libc=-Dinhibit_libc
8617 fi
8618 fi
8619
8620
8621 # When building gcc with a cross-compiler, we need to fix a few things.
8622 # This must come after cross-make as we want all.build to override
8623 # all.cross.
8624 build_overrides="/dev/null"
8625 if test x$build != x$host
8626 then
8627 build_overrides="${topdir}/build-make"
8628 fi
8629
8630 # Expand extra_headers to include complete path.
8631 # This substitutes for lots of t-* files.
8632 extra_headers_list=
8633 if test "x$extra_headers" = x
8634 then true
8635 else
8636 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8637 for file in $extra_headers;
8638 do
8639 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8640 done
8641 fi
8642
8643 if test x$use_collect2 = xno; then
8644 use_collect2=
8645 fi
8646
8647 # Add a definition of USE_COLLECT2 if system wants one.
8648 # Also tell toplev.c what to do.
8649 # This substitutes for lots of t-* files.
8650 if test x$use_collect2 = x
8651 then
8652 will_use_collect2=
8653 maybe_use_collect2=
8654 else
8655 will_use_collect2="collect2"
8656 maybe_use_collect2="-DUSE_COLLECT2"
8657 fi
8658
8659 # NEED TO CONVERT
8660 # Set MD_DEPS if the real md file is in md.pre-cpp.
8661 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
8662 # for line oriented comments, so we must always use a GNU cpp. If
8663 # building gcc with a cross compiler, use the cross compiler just
8664 # built. Otherwise, we can use the cpp just built.
8665 md_file_sub=
8666 if test "x$md_cppflags" = x
8667 then
8668 md_file_sub=$srcdir/config/$md_file
8669 else
8670 md_file=md
8671 fi
8672
8673 # If we have gas in the build tree, make a link to it.
8674 if test -f ../gas/Makefile; then
8675 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
8676 fi
8677
8678 # If we have nm in the build tree, make a link to it.
8679 if test -f ../binutils/Makefile; then
8680 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
8681 fi
8682
8683 # If we have ld in the build tree, make a link to it.
8684 if test -f ../ld/Makefile; then
8685 # if test x$use_collect2 = x; then
8686 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8687 # else
8688 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
8689 # fi
8690 fi
8691
8692 # Figure out what assembler alignment features are present.
8693 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
8694 echo "configure:8695: checking assembler alignment features" >&5
8695 gcc_cv_as=
8696 gcc_cv_as_alignment_features=
8697 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8698 if test -x "$DEFAULT_ASSEMBLER"; then
8699 gcc_cv_as="$DEFAULT_ASSEMBLER"
8700 elif test -x "$AS"; then
8701 gcc_cv_as="$AS"
8702 elif test -x as$host_exeext; then
8703 # Build using assembler in the current directory.
8704 gcc_cv_as=./as$host_exeext
8705 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
8706 # Single tree build which includes gas.
8707 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
8708 do
8709 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
8710 if test x$gcc_cv_gas_version != x; then
8711 break
8712 fi
8713 done
8714 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
8715 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
8716 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
8717 # Gas version 2.6 and later support for .balign and .p2align.
8718 # bytes to skip when using .p2align.
8719 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 6 -o "$gcc_cv_gas_major_version" -gt 2; then
8720 gcc_cv_as_alignment_features=".balign and .p2align"
8721 cat >> confdefs.h <<\EOF
8722 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8723 EOF
8724
8725 fi
8726 # Gas version 2.8 and later support specifying the maximum
8727 # bytes to skip when using .p2align.
8728 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 8 -o "$gcc_cv_gas_major_version" -gt 2; then
8729 gcc_cv_as_alignment_features=".p2align including maximum skip"
8730 cat >> confdefs.h <<\EOF
8731 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8732 EOF
8733
8734 fi
8735 fi
8736 elif test x$host = x$target; then
8737 # Native build.
8738 # Search the same directories that the installed compiler will
8739 # search. Else we may find the wrong assembler and lose. If we
8740 # do not find a suitable assembler binary, then try the user's
8741 # path.
8742 #
8743 # Also note we have to check MD_EXEC_PREFIX before checking the
8744 # user's path. Unfortunately, there is no good way to get at the
8745 # value of MD_EXEC_PREFIX here. So we do a brute force search
8746 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
8747 # to be fixed as part of the make/configure rewrite too.
8748
8749 if test "x$exec_prefix" = xNONE; then
8750 if test "x$prefix" = xNONE; then
8751 test_prefix=/usr/local
8752 else
8753 test_prefix=$prefix
8754 fi
8755 else
8756 test_prefix=$exec_prefix
8757 fi
8758
8759 # If the loop below does not find an assembler, then use whatever
8760 # one we can find in the users's path.
8761 # user's path.
8762 as=as$host_exeext
8763
8764 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
8765 $test_prefix/lib/gcc-lib/$target \
8766 /usr/lib/gcc/$target/$gcc_version \
8767 /usr/lib/gcc/$target \
8768 $test_prefix/$target/bin/$target/$gcc_version \
8769 $test_prefix/$target/bin \
8770 /usr/libexec \
8771 /usr/ccs/gcc \
8772 /usr/ccs/bin \
8773 /udk/usr/ccs/bin \
8774 /bsd43/usr/lib/cmplrs/cc \
8775 /usr/cross64/usr/bin \
8776 /usr/lib/cmplrs/cc \
8777 /sysv/usr/lib/cmplrs/cc \
8778 /svr4/usr/lib/cmplrs/cc \
8779 /usr/bin"
8780
8781 for dir in $test_dirs; do
8782 if test -f $dir/as$host_exeext; then
8783 gcc_cv_as=$dir/as$host_exeext
8784 break;
8785 fi
8786 done
8787 fi
8788 if test x$gcc_cv_as != x; then
8789 # Check if we have .balign and .p2align
8790 echo ".balign 4" > conftest.s
8791 echo ".p2align 2" >> conftest.s
8792 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8793 gcc_cv_as_alignment_features=".balign and .p2align"
8794 cat >> confdefs.h <<\EOF
8795 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8796 EOF
8797
8798 fi
8799 rm -f conftest.s conftest.o
8800 # Check if specifying the maximum bytes to skip when
8801 # using .p2align is supported.
8802 echo ".p2align 4,,7" > conftest.s
8803 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8804 gcc_cv_as_alignment_features=".p2align including maximum skip"
8805 cat >> confdefs.h <<\EOF
8806 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8807 EOF
8808
8809 fi
8810 rm -f conftest.s conftest.o
8811 fi
8812 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
8813
8814 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
8815 echo "configure:8816: checking assembler subsection support" >&5
8816 gcc_cv_as_subsections=
8817 if test x$gcc_cv_as != x; then
8818 # Check if we have .subsection
8819 echo ".subsection 1" > conftest.s
8820 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8821 gcc_cv_as_subsections=".subsection"
8822 if test -x nm$host_exeext; then
8823 gcc_cv_nm=./nm$host_exeext
8824 elif test x$host = x$target; then
8825 # Native build.
8826 gcc_cv_nm=nm$host_exeext
8827 fi
8828 if test x$gcc_cv_nm != x; then
8829 cat > conftest.s <<EOF
8830 conftest_label1: .word 0
8831 .subsection -1
8832 conftest_label2: .word 0
8833 .previous
8834 EOF
8835 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8836 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
8837 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
8838 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
8839 :
8840 else
8841 gcc_cv_as_subsections="working .subsection -1"
8842 cat >> confdefs.h <<\EOF
8843 #define HAVE_GAS_SUBSECTION_ORDERING 1
8844 EOF
8845
8846 fi
8847 fi
8848 fi
8849 fi
8850 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8851 fi
8852 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
8853
8854 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
8855 echo "configure:8856: checking assembler weak support" >&5
8856 gcc_cv_as_weak=
8857 if test x$gcc_cv_as != x; then
8858 # Check if we have .weak
8859 echo " .weak foobar" > conftest.s
8860 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8861 cat >> confdefs.h <<\EOF
8862 #define HAVE_GAS_WEAK 1
8863 EOF
8864
8865 gcc_cv_as_weak="yes"
8866 fi
8867 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8868 fi
8869 echo "$ac_t""$gcc_cv_as_weak" 1>&6
8870
8871 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
8872 echo "configure:8873: checking assembler hidden support" >&5
8873 gcc_cv_as_hidden=
8874 if test x$gcc_cv_as != x; then
8875 # Check if we have .hidden
8876 echo " .hidden foobar" > conftest.s
8877 echo "foobar:" >> conftest.s
8878 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8879 cat >> confdefs.h <<\EOF
8880 #define HAVE_GAS_HIDDEN 1
8881 EOF
8882
8883 gcc_cv_as_hidden="yes"
8884 fi
8885 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8886 fi
8887 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
8888
8889 case "$target" in
8890 sparc*-*-*)
8891 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
8892 echo "configure:8893: checking assembler .register pseudo-op support" >&5
8893 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
8894 echo $ac_n "(cached) $ac_c" 1>&6
8895 else
8896
8897 gcc_cv_as_register_pseudo_op=unknown
8898 if test x$gcc_cv_as != x; then
8899 # Check if we have .register
8900 echo ".register %g2, #scratch" > conftest.s
8901 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8902 gcc_cv_as_register_pseudo_op=yes
8903 else
8904 gcc_cv_as_register_pseudo_op=no
8905 fi
8906 rm -f conftest.s conftest.o
8907 fi
8908
8909 fi
8910
8911 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
8912 if test "x$gcc_cv_as_register_pseudo_op" = xyes; then
8913 cat >> confdefs.h <<\EOF
8914 #define HAVE_AS_REGISTER_PSEUDO_OP 1
8915 EOF
8916
8917 fi
8918
8919 echo $ac_n "checking assembler supports -relax""... $ac_c" 1>&6
8920 echo "configure:8921: checking assembler supports -relax" >&5
8921 if eval "test \"`echo '$''{'gcc_cv_as_relax_opt'+set}'`\" = set"; then
8922 echo $ac_n "(cached) $ac_c" 1>&6
8923 else
8924
8925 gcc_cv_as_relax_opt=unknown
8926 if test x$gcc_cv_as != x; then
8927 # Check if gas supports -relax
8928 echo ".text" > conftest.s
8929 if $gcc_cv_as -relax -o conftest.o conftest.s > /dev/null 2>&1; then
8930 gcc_cv_as_relax_opt=yes
8931 else
8932 gcc_cv_as_relax_opt=no
8933 fi
8934 rm -f conftest.s conftest.o
8935 fi
8936
8937 fi
8938
8939 echo "$ac_t""$gcc_cv_as_relax_opt" 1>&6
8940 if test "x$gcc_cv_as_relax_opt" = xyes; then
8941 cat >> confdefs.h <<\EOF
8942 #define HAVE_AS_RELAX_OPTION 1
8943 EOF
8944
8945 fi
8946
8947 case "$tm_file" in
8948 *64*)
8949 echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
8950 echo "configure:8951: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
8951 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
8952 echo $ac_n "(cached) $ac_c" 1>&6
8953 else
8954
8955 if test -n "$gcc_cv_as"; then
8956 echo ".xword foo" > conftest.s
8957 gcc_cv_as_flags64=no
8958 for flag in "-xarch=v9" "-64 -Av9"; do
8959 if $gcc_cv_as $flag -o conftest.o conftest.s \
8960 > /dev/null 2>&1; then
8961 gcc_cv_as_flags64=$flag
8962 break
8963 fi
8964 done
8965 rm -f conftest.s conftest.o
8966 else
8967 if test "$gas" = yes; then
8968 gcc_cv_as_flags64="-64 -Av9"
8969 else
8970 gcc_cv_as_flags64="-xarch=v9"
8971 fi
8972 fi
8973
8974 fi
8975
8976 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
8977 if test "x$gcc_cv_as_flags64" = xno; then
8978
8979 tmake_file=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
8980 dep_tmake_file=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
8981
8982 else
8983 cat >> confdefs.h <<EOF
8984 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
8985 EOF
8986
8987 fi
8988 ;;
8989 *) gcc_cv_as_flags64=${gcc_cv_as_flags64-no}
8990 ;;
8991 esac
8992
8993 if test "x$gcc_cv_as_flags64" != xno; then
8994 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
8995 echo "configure:8996: checking for assembler offsetable %lo() support" >&5
8996 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
8997 echo $ac_n "(cached) $ac_c" 1>&6
8998 else
8999
9000 gcc_cv_as_offsetable_lo10=unknown
9001 if test "x$gcc_cv_as" != x; then
9002 # Check if assembler has offsetable %lo()
9003 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
9004 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
9005 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
9006 > /dev/null 2>&1 &&
9007 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
9008 > /dev/null 2>&1; then
9009 if cmp conftest.o conftest1.o > /dev/null 2>&1; then
9010 gcc_cv_as_offsetable_lo10=no
9011 else
9012 gcc_cv_as_offsetable_lo10=yes
9013 fi
9014 else
9015 gcc_cv_as_offsetable_lo10=no
9016 fi
9017 rm -f conftest.s conftest.o conftest1.s conftest1.o
9018 fi
9019
9020 fi
9021
9022 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
9023 if test "x$gcc_cv_as_offsetable_lo10" = xyes; then
9024 cat >> confdefs.h <<\EOF
9025 #define HAVE_AS_OFFSETABLE_LO10 1
9026 EOF
9027
9028 fi
9029 fi
9030 ;;
9031
9032 i[34567]86-*-*)
9033 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
9034 echo "configure:9035: checking assembler instructions" >&5
9035 gcc_cv_as_instructions=
9036 if test x$gcc_cv_as != x; then
9037 set "filds fists" "filds mem; fists mem"
9038 while test $# -gt 0
9039 do
9040 echo "$2" > conftest.s
9041 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
9042 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
9043 cat >> confdefs.h <<EOF
9044 #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1
9045 EOF
9046
9047 fi
9048 shift 2
9049 done
9050 rm -f conftest.s conftest.o
9051 fi
9052 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
9053 ;;
9054 esac
9055
9056 # Figure out what language subdirectories are present.
9057 # Look if the user specified --enable-languages="..."; if not, use
9058 # the environment variable $LANGUAGES if defined. $LANGUAGES might
9059 # go away some day.
9060 if test x"${enable_languages+set}" != xset; then
9061 if test x"${LANGUAGES+set}" = xset; then
9062 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
9063 else
9064 enable_languages=all
9065 fi
9066 else
9067 if test x"${enable_languages}" = x; then
9068 { echo "configure: error: --enable-languages needs at least one argument" 1>&2; exit 1; }
9069 fi
9070 fi
9071 subdirs=
9072 for lang in ${srcdir}/*/config-lang.in ..
9073 do
9074 case $lang in
9075 ..) ;;
9076 # The odd quoting in the next line works around
9077 # an apparent bug in bash 1.12 on linux.
9078 ${srcdir}/[*]/config-lang.in) ;;
9079 *)
9080 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
9081 if test "x$lang_alias" = x
9082 then
9083 echo "$lang doesn't set \$language." 1>&2
9084 exit 1
9085 fi
9086 if test x"${enable_languages}" = xall; then
9087 add_this_lang=yes
9088 else
9089 case "${enable_languages}" in
9090 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
9091 add_this_lang=yes
9092 ;;
9093 * )
9094 add_this_lang=no
9095 ;;
9096 esac
9097 fi
9098 if test x"${add_this_lang}" = xyes; then
9099 case $lang in
9100 ${srcdir}/ada/config-lang.in)
9101 if test x$gnat = xyes ; then
9102 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9103 fi
9104 ;;
9105 *)
9106 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9107 ;;
9108 esac
9109 fi
9110 ;;
9111 esac
9112 done
9113
9114 # Make gthr-default.h if we have a thread file.
9115 gthread_flags=
9116 if test $thread_file != single; then
9117 rm -f gthr-default.h
9118 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9119 gthread_flags=-DHAVE_GTHR_DEFAULT
9120 fi
9121
9122
9123 # Find out what GC implementation we want, or may, use.
9124 # Check whether --with-gc or --without-gc was given.
9125 if test "${with_gc+set}" = set; then
9126 withval="$with_gc"
9127 case "$withval" in
9128 simple | page)
9129 GGC=ggc-$withval
9130 ;;
9131 *)
9132 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
9133 ;;
9134 esac
9135 else
9136 if test $ac_cv_func_mmap_anywhere = yes \
9137 || test $ac_cv_func_valloc = yes; then
9138 GGC=ggc-page
9139 else
9140 GGC=ggc-simple
9141 fi
9142 fi
9143
9144
9145 echo "Using $GGC for garbage collection."
9146
9147 # Build a new-abi (c++) system
9148 # Check whether --enable-new-gxx-abi or --disable-new-gxx-abi was given.
9149 if test "${enable_new_gxx_abi+set}" = set; then
9150 enableval="$enable_new_gxx_abi"
9151 cat >> confdefs.h <<\EOF
9152 #define ENABLE_NEW_GXX_ABI 1
9153 EOF
9154
9155 GXX_ABI_FLAG='-fnew-abi'
9156 echo "Building a new-abi g++ compiler."
9157
9158 fi
9159
9160
9161
9162 # Build a new-libstdc++ system (ie libstdc++-v3)
9163 echo $ac_n "checking for libstdc++ to install""... $ac_c" 1>&6
9164 echo "configure:9165: checking for libstdc++ to install" >&5
9165 # Check whether --enable-libstdcxx-v3 or --disable-libstdcxx-v3 was given.
9166 if test "${enable_libstdcxx_v3+set}" = set; then
9167 enableval="$enable_libstdcxx_v3"
9168 enable_libstdcxx_v3=yes
9169 else
9170 enable_libstdcxx_v3=no
9171 fi
9172
9173
9174 if test x$enable_libstdcxx_v3 = xyes; then
9175 echo "$ac_t""v3" 1>&6
9176 ac_esn=1
9177 else
9178 echo "$ac_t""v2" 1>&6
9179 ac_esn=0
9180 fi
9181 cat >> confdefs.h <<EOF
9182 #define ENABLE_STD_NAMESPACE $ac_esn
9183 EOF
9184
9185
9186
9187 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
9188 echo "configure:9189: checking whether to enable maintainer-specific portions of Makefiles" >&5
9189 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9190 if test "${enable_maintainer_mode+set}" = set; then
9191 enableval="$enable_maintainer_mode"
9192 maintainer_mode=$enableval
9193 else
9194 maintainer_mode=no
9195 fi
9196
9197
9198 echo "$ac_t""$maintainer_mode" 1>&6
9199
9200 if test "$maintainer_mode" = "yes"; then
9201 MAINT=''
9202 else
9203 MAINT='#'
9204 fi
9205
9206 # Make empty files to contain the specs and options for each language.
9207 # Then add #include lines to for a compiler that has specs and/or options.
9208
9209 lang_specs_files=
9210 lang_options_files=
9211 lang_tree_files=
9212 rm -f specs.h options.h gencheck.h
9213 touch specs.h options.h gencheck.h
9214 for subdir in . $subdirs
9215 do
9216 if test -f $srcdir/$subdir/lang-specs.h; then
9217 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
9218 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
9219 fi
9220 if test -f $srcdir/$subdir/lang-options.h; then
9221 echo "#include \"$subdir/lang-options.h\"" >>options.h
9222 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
9223 fi
9224 if test -f $srcdir/$subdir/$subdir-tree.def; then
9225 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
9226 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
9227 fi
9228 done
9229
9230 # These (without "all_") are set in each config-lang.in.
9231 # `language' must be a single word so is spelled singularly.
9232 all_languages=
9233 all_boot_languages=
9234 all_compilers=
9235 all_stagestuff=
9236 all_diff_excludes=
9237 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
9238 # List of language makefile fragments.
9239 all_lang_makefiles=
9240 all_headers=
9241 all_lib2funcs=
9242
9243 # Add the language fragments.
9244 # Languages are added via two mechanisms. Some information must be
9245 # recorded in makefile variables, these are defined in config-lang.in.
9246 # We accumulate them and plug them into the main Makefile.
9247 # The other mechanism is a set of hooks for each of the main targets
9248 # like `clean', `install', etc.
9249
9250 language_fragments="Make-lang"
9251 language_hooks="Make-hooks"
9252 oldstyle_subdirs=
9253
9254 for s in .. $subdirs
9255 do
9256 if test $s != ".."
9257 then
9258 language=
9259 boot_language=
9260 compilers=
9261 stagestuff=
9262 diff_excludes=
9263 headers=
9264 outputs=
9265 lib2funcs=
9266 . ${srcdir}/$s/config-lang.in
9267 if test "x$language" = x
9268 then
9269 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
9270 exit 1
9271 fi
9272 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
9273 all_languages="$all_languages $language"
9274 if test "x$boot_language" = xyes
9275 then
9276 all_boot_languages="$all_boot_languages $language"
9277 fi
9278 all_compilers="$all_compilers $compilers"
9279 all_stagestuff="$all_stagestuff $stagestuff"
9280 all_diff_excludes="$all_diff_excludes $diff_excludes"
9281 all_headers="$all_headers $headers"
9282 all_outputs="$all_outputs $outputs"
9283 if test x$outputs = x
9284 then
9285 oldstyle_subdirs="$oldstyle_subdirs $s"
9286 fi
9287 all_lib2funcs="$all_lib2funcs $lib2funcs"
9288 fi
9289 done
9290
9291 # Since we can't use `::' targets, we link each language in
9292 # with a set of hooks, reached indirectly via lang.${target}.
9293
9294 rm -f Make-hooks
9295 touch Make-hooks
9296 target_list="all.build all.cross start.encap rest.encap \
9297 info dvi \
9298 install-normal install-common install-info install-man \
9299 uninstall distdir \
9300 mostlyclean clean distclean extraclean maintainer-clean \
9301 stage1 stage2 stage3 stage4"
9302 for t in $target_list
9303 do
9304 x=
9305 for lang in .. $all_languages
9306 do
9307 if test $lang != ".."; then
9308 x="$x $lang.$t"
9309 fi
9310 done
9311 echo "lang.$t: $x" >> Make-hooks
9312 done
9313
9314 # If we're not building in srcdir, create .gdbinit.
9315
9316 if test ! -f Makefile.in; then
9317 echo "dir ." > .gdbinit
9318 echo "dir ${srcdir}" >> .gdbinit
9319 if test x$gdb_needs_out_file_path = xyes
9320 then
9321 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
9322 fi
9323 if test "x$subdirs" != x; then
9324 for s in $subdirs
9325 do
9326 echo "dir ${srcdir}/$s" >> .gdbinit
9327 done
9328 fi
9329 echo "source ${srcdir}/.gdbinit" >> .gdbinit
9330 fi
9331
9332 # Define variables host_canonical and build_canonical
9333 # because some Cygnus local changes in the Makefile depend on them.
9334 build_canonical=${build}
9335 host_canonical=${host}
9336 target_subdir=
9337 if test "${host}" != "${target}" ; then
9338 target_subdir=${target}/
9339 fi
9340
9341
9342
9343
9344 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
9345 # absolute path for gcc_tooldir based on inserting the number of up-directory
9346 # movements required to get from $(exec_prefix) to $(prefix) into the basic
9347 # $(libsubdir)/@(unlibsubdir) based path.
9348 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
9349 # make and thus we'd get different behavior depending on where we built the
9350 # sources.
9351 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
9352 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
9353 else
9354 # An explanation of the sed strings:
9355 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
9356 # -e 's|/$||' match a trailing forward slash and eliminates it
9357 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
9358 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
9359 #
9360 # (*) Note this pattern overwrites the first character of the string
9361 # with a forward slash if one is not already present. This is not a
9362 # problem because the exact names of the sub-directories concerned is
9363 # unimportant, just the number of them matters.
9364 #
9365 # The practical upshot of these patterns is like this:
9366 #
9367 # prefix exec_prefix result
9368 # ------ ----------- ------
9369 # /foo /foo/bar ../
9370 # /foo/ /foo/bar ../
9371 # /foo /foo/bar/ ../
9372 # /foo/ /foo/bar/ ../
9373 # /foo /foo/bar/ugg ../../
9374 #
9375 dollar='$$'
9376 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
9377 fi
9378
9379
9380
9381 # Nothing to do for FLOAT_H, float_format already handled.
9382 objdir=`pwd`
9383
9384
9385 # Process the language and host/target makefile fragments.
9386 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
9387
9388 # Substitute configuration variables
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447 # Echo that links are built
9448 if test x$host = x$target
9449 then
9450 str1="native "
9451 else
9452 str1="cross-"
9453 str2=" from $host"
9454 fi
9455
9456 if test x$host != x$build
9457 then
9458 str3=" on a $build system"
9459 fi
9460
9461 if test "x$str2" != x || test "x$str3" != x
9462 then
9463 str4=
9464 fi
9465
9466 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
9467
9468 if test "x$str2" != x || test "x$str3" != x
9469 then
9470 echo " ${str2}${str3}." 1>&2
9471 fi
9472
9473 # Truncate the target if necessary
9474 if test x$host_truncate_target != x; then
9475 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
9476 fi
9477
9478 # Configure the subdirectories
9479 # AC_CONFIG_SUBDIRS($subdirs)
9480
9481 # Create the Makefile
9482 # and configure language subdirectories
9483 trap '' 1 2 15
9484 cat > confcache <<\EOF
9485 # This file is a shell script that caches the results of configure
9486 # tests run on this system so they can be shared between configure
9487 # scripts and configure runs. It is not useful on other systems.
9488 # If it contains results you don't want to keep, you may remove or edit it.
9489 #
9490 # By default, configure uses ./config.cache as the cache file,
9491 # creating it if it does not exist already. You can give configure
9492 # the --cache-file=FILE option to use a different cache file; that is
9493 # what configure does when it calls configure scripts in
9494 # subdirectories, so they share the cache.
9495 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9496 # config.status only pays attention to the cache file if you give it the
9497 # --recheck option to rerun configure.
9498 #
9499 EOF
9500 # The following way of writing the cache mishandles newlines in values,
9501 # but we know of no workaround that is simple, portable, and efficient.
9502 # So, don't put newlines in cache variables' values.
9503 # Ultrix sh set writes to stderr and can't be redirected directly,
9504 # and sets the high bit in the cache file unless we assign to the vars.
9505 (set) 2>&1 |
9506 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9507 *ac_space=\ *)
9508 # `set' does not quote correctly, so add quotes (double-quote substitution
9509 # turns \\\\ into \\, and sed turns \\ into \).
9510 sed -n \
9511 -e "s/'/'\\\\''/g" \
9512 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9513 ;;
9514 *)
9515 # `set' quotes correctly as required by POSIX, so do not add quotes.
9516 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9517 ;;
9518 esac >> confcache
9519 if cmp -s $cache_file confcache; then
9520 :
9521 else
9522 if test -w $cache_file; then
9523 echo "updating cache $cache_file"
9524 cat confcache > $cache_file
9525 else
9526 echo "not updating unwritable cache $cache_file"
9527 fi
9528 fi
9529 rm -f confcache
9530
9531 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9532
9533 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9534 # Let make expand exec_prefix.
9535 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9536
9537 # Any assignment to VPATH causes Sun make to only execute
9538 # the first set of double-colon rules, so remove it if not needed.
9539 # If there is a colon in the path, we need to keep it.
9540 if test "x$srcdir" = x.; then
9541 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9542 fi
9543
9544 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9545
9546 DEFS=-DHAVE_CONFIG_H
9547
9548 # Without the "./", some shells look in PATH for config.status.
9549 : ${CONFIG_STATUS=./config.status}
9550
9551 echo creating $CONFIG_STATUS
9552 rm -f $CONFIG_STATUS
9553 cat > $CONFIG_STATUS <<EOF
9554 #! /bin/sh
9555 # Generated automatically by configure.
9556 # Run this file to recreate the current configuration.
9557 # This directory was configured as follows,
9558 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9559 #
9560 # $0 $ac_configure_args
9561 #
9562 # Compiler output produced by configure, useful for debugging
9563 # configure, is in ./config.log if it exists.
9564
9565 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9566 for ac_option
9567 do
9568 case "\$ac_option" in
9569 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9570 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9571 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9572 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9573 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9574 exit 0 ;;
9575 -help | --help | --hel | --he | --h)
9576 echo "\$ac_cs_usage"; exit 0 ;;
9577 *) echo "\$ac_cs_usage"; exit 1 ;;
9578 esac
9579 done
9580
9581 ac_given_srcdir=$srcdir
9582
9583 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9584 EOF
9585 cat >> $CONFIG_STATUS <<EOF
9586
9587 # Protect against being on the right side of a sed subst in config.status.
9588 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9589 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9590 $ac_vpsub
9591 $extrasub
9592 s%@SHELL@%$SHELL%g
9593 s%@CFLAGS@%$CFLAGS%g
9594 s%@CPPFLAGS@%$CPPFLAGS%g
9595 s%@CXXFLAGS@%$CXXFLAGS%g
9596 s%@FFLAGS@%$FFLAGS%g
9597 s%@DEFS@%$DEFS%g
9598 s%@LDFLAGS@%$LDFLAGS%g
9599 s%@LIBS@%$LIBS%g
9600 s%@exec_prefix@%$exec_prefix%g
9601 s%@prefix@%$prefix%g
9602 s%@program_transform_name@%$program_transform_name%g
9603 s%@bindir@%$bindir%g
9604 s%@sbindir@%$sbindir%g
9605 s%@libexecdir@%$libexecdir%g
9606 s%@datadir@%$datadir%g
9607 s%@sysconfdir@%$sysconfdir%g
9608 s%@sharedstatedir@%$sharedstatedir%g
9609 s%@localstatedir@%$localstatedir%g
9610 s%@libdir@%$libdir%g
9611 s%@includedir@%$includedir%g
9612 s%@oldincludedir@%$oldincludedir%g
9613 s%@infodir@%$infodir%g
9614 s%@mandir@%$mandir%g
9615 s%@host@%$host%g
9616 s%@host_alias@%$host_alias%g
9617 s%@host_cpu@%$host_cpu%g
9618 s%@host_vendor@%$host_vendor%g
9619 s%@host_os@%$host_os%g
9620 s%@target@%$target%g
9621 s%@target_alias@%$target_alias%g
9622 s%@target_cpu@%$target_cpu%g
9623 s%@target_vendor@%$target_vendor%g
9624 s%@target_os@%$target_os%g
9625 s%@build@%$build%g
9626 s%@build_alias@%$build_alias%g
9627 s%@build_cpu@%$build_cpu%g
9628 s%@build_vendor@%$build_vendor%g
9629 s%@build_os@%$build_os%g
9630 s%@CC@%$CC%g
9631 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
9632 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
9633 s%@stage2_warn_cflags@%$stage2_warn_cflags%g
9634 s%@SET_MAKE@%$SET_MAKE%g
9635 s%@AWK@%$AWK%g
9636 s%@LEX@%$LEX%g
9637 s%@LEXLIB@%$LEXLIB%g
9638 s%@LN@%$LN%g
9639 s%@LN_S@%$LN_S%g
9640 s%@RANLIB@%$RANLIB%g
9641 s%@YACC@%$YACC%g
9642 s%@INSTALL@%$INSTALL%g
9643 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9644 s%@INSTALL_DATA@%$INSTALL_DATA%g
9645 s%@CPP@%$CPP%g
9646 s%@gnat@%$gnat%g
9647 s%@MAKEINFO@%$MAKEINFO%g
9648 s%@BUILD_INFO@%$BUILD_INFO%g
9649 s%@INSTALL_INFO@%$INSTALL_INFO%g
9650 s%@vfprintf@%$vfprintf%g
9651 s%@doprint@%$doprint%g
9652 s%@manext@%$manext%g
9653 s%@objext@%$objext%g
9654 s%@PACKAGE@%$PACKAGE%g
9655 s%@VERSION@%$VERSION%g
9656 s%@ALLOCA@%$ALLOCA%g
9657 s%@USE_NLS@%$USE_NLS%g
9658 s%@MSGFMT@%$MSGFMT%g
9659 s%@GMSGFMT@%$GMSGFMT%g
9660 s%@XGETTEXT@%$XGETTEXT%g
9661 s%@GENCAT@%$GENCAT%g
9662 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9663 s%@CATALOGS@%$CATALOGS%g
9664 s%@CATOBJEXT@%$CATOBJEXT%g
9665 s%@DATADIRNAME@%$DATADIRNAME%g
9666 s%@GMOFILES@%$GMOFILES%g
9667 s%@INSTOBJEXT@%$INSTOBJEXT%g
9668 s%@INTLDEPS@%$INTLDEPS%g
9669 s%@INTLLIBS@%$INTLLIBS%g
9670 s%@INTLOBJS@%$INTLOBJS%g
9671 s%@POFILES@%$POFILES%g
9672 s%@POSUB@%$POSUB%g
9673 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
9674 s%@GT_NO@%$GT_NO%g
9675 s%@GT_YES@%$GT_YES%g
9676 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9677 s%@l@%$l%g
9678 s%@inhibit_libc@%$inhibit_libc%g
9679 s%@gthread_flags@%$gthread_flags%g
9680 s%@GGC@%$GGC%g
9681 s%@GXX_ABI_FLAG@%$GXX_ABI_FLAG%g
9682 s%@MAINT@%$MAINT%g
9683 s%@build_canonical@%$build_canonical%g
9684 s%@host_canonical@%$host_canonical%g
9685 s%@target_subdir@%$target_subdir%g
9686 s%@gcc_tooldir@%$gcc_tooldir%g
9687 s%@dollar@%$dollar%g
9688 s%@objdir@%$objdir%g
9689 s%@subdirs@%$subdirs%g
9690 s%@all_boot_languages@%$all_boot_languages%g
9691 s%@all_compilers@%$all_compilers%g
9692 s%@all_diff_excludes@%$all_diff_excludes%g
9693 s%@all_headers@%$all_headers%g
9694 s%@all_lang_makefiles@%$all_lang_makefiles%g
9695 s%@all_languages@%$all_languages%g
9696 s%@all_lib2funcs@%$all_lib2funcs%g
9697 s%@all_stagestuff@%$all_stagestuff%g
9698 s%@build_exeext@%$build_exeext%g
9699 s%@build_install_headers_dir@%$build_install_headers_dir%g
9700 s%@build_xm_file_list@%$build_xm_file_list%g
9701 s%@cc_set_by_configure@%$cc_set_by_configure%g
9702 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
9703 s%@cpp_install_dir@%$cpp_install_dir%g
9704 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
9705 s%@dep_tmake_file@%$dep_tmake_file%g
9706 s%@extra_c_flags@%$extra_c_flags%g
9707 s%@extra_c_objs@%$extra_c_objs%g
9708 s%@extra_cpp_objs@%$extra_cpp_objs%g
9709 s%@extra_cxx_objs@%$extra_cxx_objs%g
9710 s%@extra_headers_list@%$extra_headers_list%g
9711 s%@extra_objs@%$extra_objs%g
9712 s%@extra_parts@%$extra_parts%g
9713 s%@extra_passes@%$extra_passes%g
9714 s%@extra_programs@%$extra_programs%g
9715 s%@float_h_file@%$float_h_file%g
9716 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
9717 s%@gcc_version@%$gcc_version%g
9718 s%@gcc_version_trigger@%$gcc_version_trigger%g
9719 s%@host_exeext@%$host_exeext%g
9720 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
9721 s%@host_xm_file_list@%$host_xm_file_list%g
9722 s%@install@%$install%g
9723 s%@lang_options_files@%$lang_options_files%g
9724 s%@lang_specs_files@%$lang_specs_files%g
9725 s%@lang_tree_files@%$lang_tree_files%g
9726 s%@local_prefix@%$local_prefix%g
9727 s%@maybe_use_collect2@%$maybe_use_collect2%g
9728 s%@md_file@%$md_file%g
9729 s%@objc_boehm_gc@%$objc_boehm_gc%g
9730 s%@out_file@%$out_file%g
9731 s%@out_object_file@%$out_object_file%g
9732 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
9733 s%@symbolic_link@%$symbolic_link%g
9734 s%@thread_file@%$thread_file%g
9735 s%@tm_file_list@%$tm_file_list%g
9736 s%@will_use_collect2@%$will_use_collect2%g
9737 /@target_overrides@/r $target_overrides
9738 s%@target_overrides@%%g
9739 /@host_overrides@/r $host_overrides
9740 s%@host_overrides@%%g
9741 s%@cross_defines@%$cross_defines%g
9742 /@cross_overrides@/r $cross_overrides
9743 s%@cross_overrides@%%g
9744 /@build_overrides@/r $build_overrides
9745 s%@build_overrides@%%g
9746 /@language_fragments@/r $language_fragments
9747 s%@language_fragments@%%g
9748 /@language_hooks@/r $language_hooks
9749 s%@language_hooks@%%g
9750
9751 CEOF
9752 EOF
9753
9754 cat >> $CONFIG_STATUS <<\EOF
9755
9756 # Split the substitutions into bite-sized pieces for seds with
9757 # small command number limits, like on Digital OSF/1 and HP-UX.
9758 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9759 ac_file=1 # Number of current file.
9760 ac_beg=1 # First line for current file.
9761 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9762 ac_more_lines=:
9763 ac_sed_cmds=""
9764 while $ac_more_lines; do
9765 if test $ac_beg -gt 1; then
9766 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9767 else
9768 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9769 fi
9770 if test ! -s conftest.s$ac_file; then
9771 ac_more_lines=false
9772 rm -f conftest.s$ac_file
9773 else
9774 if test -z "$ac_sed_cmds"; then
9775 ac_sed_cmds="sed -f conftest.s$ac_file"
9776 else
9777 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9778 fi
9779 ac_file=`expr $ac_file + 1`
9780 ac_beg=$ac_end
9781 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9782 fi
9783 done
9784 if test -z "$ac_sed_cmds"; then
9785 ac_sed_cmds=cat
9786 fi
9787 EOF
9788
9789 cat >> $CONFIG_STATUS <<EOF
9790
9791 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
9792 EOF
9793 cat >> $CONFIG_STATUS <<\EOF
9794 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9795 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9796 case "$ac_file" in
9797 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9798 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9799 *) ac_file_in="${ac_file}.in" ;;
9800 esac
9801
9802 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9803
9804 # Remove last slash and all that follows it. Not all systems have dirname.
9805 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9806 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9807 # The file is in a subdirectory.
9808 test ! -d "$ac_dir" && mkdir "$ac_dir"
9809 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9810 # A "../" for each directory in $ac_dir_suffix.
9811 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9812 else
9813 ac_dir_suffix= ac_dots=
9814 fi
9815
9816 case "$ac_given_srcdir" in
9817 .) srcdir=.
9818 if test -z "$ac_dots"; then top_srcdir=.
9819 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9820 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9821 *) # Relative path.
9822 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9823 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9824 esac
9825
9826
9827 echo creating "$ac_file"
9828 rm -f "$ac_file"
9829 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9830 case "$ac_file" in
9831 *Makefile*) ac_comsub="1i\\
9832 # $configure_input" ;;
9833 *) ac_comsub= ;;
9834 esac
9835
9836 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9837 sed -e "$ac_comsub
9838 s%@configure_input@%$configure_input%g
9839 s%@srcdir@%$srcdir%g
9840 s%@top_srcdir@%$top_srcdir%g
9841 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9842 fi; done
9843 rm -f conftest.s*
9844
9845 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9846 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9847 #
9848 # ac_d sets the value in "#define NAME VALUE" lines.
9849 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9850 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9851 ac_dC='\3'
9852 ac_dD='%g'
9853 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9854 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9855 ac_uB='\([ ]\)%\1#\2define\3'
9856 ac_uC=' '
9857 ac_uD='\4%g'
9858 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9859 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9860 ac_eB='$%\1#\2define\3'
9861 ac_eC=' '
9862 ac_eD='%g'
9863
9864 if test "${CONFIG_HEADERS+set}" != set; then
9865 EOF
9866 cat >> $CONFIG_STATUS <<EOF
9867 CONFIG_HEADERS="auto-host.h:config.in"
9868 EOF
9869 cat >> $CONFIG_STATUS <<\EOF
9870 fi
9871 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9872 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9873 case "$ac_file" in
9874 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9875 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9876 *) ac_file_in="${ac_file}.in" ;;
9877 esac
9878
9879 echo creating $ac_file
9880
9881 rm -f conftest.frag conftest.in conftest.out
9882 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9883 cat $ac_file_inputs > conftest.in
9884
9885 EOF
9886
9887 # Transform confdefs.h into a sed script conftest.vals that substitutes
9888 # the proper values into config.h.in to produce config.h. And first:
9889 # Protect against being on the right side of a sed subst in config.status.
9890 # Protect against being in an unquoted here document in config.status.
9891 rm -f conftest.vals
9892 cat > conftest.hdr <<\EOF
9893 s/[\\&%]/\\&/g
9894 s%[\\$`]%\\&%g
9895 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9896 s%ac_d%ac_u%gp
9897 s%ac_u%ac_e%gp
9898 EOF
9899 sed -n -f conftest.hdr confdefs.h > conftest.vals
9900 rm -f conftest.hdr
9901
9902 # This sed command replaces #undef with comments. This is necessary, for
9903 # example, in the case of _POSIX_SOURCE, which is predefined and required
9904 # on some systems where configure will not decide to define it.
9905 cat >> conftest.vals <<\EOF
9906 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9907 EOF
9908
9909 # Break up conftest.vals because some shells have a limit on
9910 # the size of here documents, and old seds have small limits too.
9911
9912 rm -f conftest.tail
9913 while :
9914 do
9915 ac_lines=`grep -c . conftest.vals`
9916 # grep -c gives empty output for an empty file on some AIX systems.
9917 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9918 # Write a limited-size here document to conftest.frag.
9919 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9920 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9921 echo 'CEOF
9922 sed -f conftest.frag conftest.in > conftest.out
9923 rm -f conftest.in
9924 mv conftest.out conftest.in
9925 ' >> $CONFIG_STATUS
9926 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9927 rm -f conftest.vals
9928 mv conftest.tail conftest.vals
9929 done
9930 rm -f conftest.vals
9931
9932 cat >> $CONFIG_STATUS <<\EOF
9933 rm -f conftest.frag conftest.h
9934 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9935 cat conftest.in >> conftest.h
9936 rm -f conftest.in
9937 if cmp -s $ac_file conftest.h 2>/dev/null; then
9938 echo "$ac_file is unchanged"
9939 rm -f conftest.h
9940 else
9941 # Remove last slash and all that follows it. Not all systems have dirname.
9942 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9943 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9944 # The file is in a subdirectory.
9945 test ! -d "$ac_dir" && mkdir "$ac_dir"
9946 fi
9947 rm -f $ac_file
9948 mv conftest.h $ac_file
9949 fi
9950 fi; done
9951
9952 EOF
9953
9954 cat >> $CONFIG_STATUS <<EOF
9955 ac_sources="$nls_cv_header_libgt"
9956 ac_dests="$nls_cv_header_intl"
9957 EOF
9958
9959 cat >> $CONFIG_STATUS <<\EOF
9960 srcdir=$ac_given_srcdir
9961 while test -n "$ac_sources"; do
9962 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9963 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9964
9965 echo "linking $srcdir/$ac_source to $ac_dest"
9966
9967 if test ! -r $srcdir/$ac_source; then
9968 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9969 fi
9970 rm -f $ac_dest
9971
9972 # Make relative symlinks.
9973 # Remove last slash and all that follows it. Not all systems have dirname.
9974 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
9975 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9976 # The dest file is in a subdirectory.
9977 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9978 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
9979 # A "../" for each directory in $ac_dest_dir_suffix.
9980 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
9981 else
9982 ac_dest_dir_suffix= ac_dots=
9983 fi
9984
9985 case "$srcdir" in
9986 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9987 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9988 esac
9989
9990 # Make a symlink if possible; otherwise try a hard link.
9991 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9992 ln $srcdir/$ac_source $ac_dest; then :
9993 else
9994 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9995 fi
9996 done
9997 EOF
9998 cat >> $CONFIG_STATUS <<EOF
9999
10000
10001 host='${host}'
10002 build='${build}'
10003 target='${target}'
10004 target_alias='${target_alias}'
10005 srcdir='${srcdir}'
10006 subdirs='${subdirs}'
10007 oldstyle_subdirs='${oldstyle_subdirs}'
10008 symbolic_link='${symbolic_link}'
10009 program_transform_set='${program_transform_set}'
10010 program_transform_name='${program_transform_name}'
10011 dep_host_xmake_file='${dep_host_xmake_file}'
10012 host_xmake_file='${host_xmake_file}'
10013 dep_tmake_file='${dep_tmake_file}'
10014 tmake_file='${tmake_file}'
10015 thread_file='${thread_file}'
10016 gcc_version='${gcc_version}'
10017 gcc_version_trigger='${gcc_version_trigger}'
10018 local_prefix='${local_prefix}'
10019 build_install_headers_dir='${build_install_headers_dir}'
10020 build_exeext='${build_exeext}'
10021 host_exeext='${host_exeext}'
10022 out_file='${out_file}'
10023 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
10024 SET_MAKE='${SET_MAKE}'
10025 target_list='${target_list}'
10026 target_overrides='${target_overrides}'
10027 host_overrides='${host_overrides}'
10028 cross_defines='${cross_defines}'
10029 cross_overrides='${cross_overrides}'
10030 build_overrides='${build_overrides}'
10031 cpp_install_dir='${cpp_install_dir}'
10032
10033 EOF
10034 cat >> $CONFIG_STATUS <<\EOF
10035 case "$CONFIG_FILES" in *po/Makefile.in*)
10036 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
10037 esac
10038
10039 . $srcdir/configure.lang
10040 case x$CONFIG_HEADERS in
10041 xauto-host.h:config.in)
10042 echo > cstamp-h ;;
10043 esac
10044 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
10045 # bootstrapping and the installation procedure can still use
10046 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
10047 # FLAGS_TO_PASS has been modified to solve the problem there.
10048 # This is virtually a duplicate of what happens in configure.lang; we do
10049 # an extra check to make sure this only happens if ln -s can be used.
10050 if test "$symbolic_link" = "ln -s"; then
10051 for d in .. ${subdirs} ; do
10052 if test $d != ..; then
10053 STARTDIR=`pwd`
10054 cd $d
10055 for t in stage1 stage2 stage3 stage4 include
10056 do
10057 rm -f $t
10058 $symbolic_link ../$t $t 2>/dev/null
10059 done
10060 cd $STARTDIR
10061 fi
10062 done
10063 else true ; fi
10064 # Avoid having to add intl to our include paths.
10065 if test -f intl/libintl.h; then
10066 echo creating libintl.h
10067 echo '#include "intl/libintl.h"' >libintl.h
10068 fi
10069
10070 exit 0
10071 EOF
10072 chmod +x $CONFIG_STATUS
10073 rm -fr confdefs* $ac_clean_files
10074 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10075