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