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