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