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