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