configure.in: Fix checks for assembler features when using a one-tree assembler that...
[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 gawk mawk 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 # This hasn't been upgraded to GCC 2.
4152 # fx80-alliant-*) # Alliant FX/80
4153 # ;;
4154 h8300-*-*)
4155 float_format=i32
4156 ;;
4157 hppa*-*-linux*)
4158 target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
4159 tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
4160 tmake_file="t-linux pa/t-linux"
4161 extra_parts="crtbegin.o crtend.o"
4162 xmake_file=none
4163 gas=yes gnu_ld=yes
4164 if test x$enable_threads = xyes; then
4165 thread_file='posix'
4166 fi
4167 ;;
4168 hppa*-*-openbsd*)
4169 target_cpu_default="MASK_PA_11"
4170 tmake_file=pa/t-openbsd
4171 ;;
4172 hppa1.1-*-pro*)
4173 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
4174 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
4175 xm_file=pa/xm-papro.h
4176 tmake_file=pa/t-pro
4177 ;;
4178 hppa1.1-*-osf*)
4179 target_cpu_default="MASK_PA_11"
4180 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
4181 use_collect2=yes
4182 ;;
4183 hppa1.1-*-rtems*)
4184 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
4185 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
4186 xm_file=pa/xm-papro.h
4187 tmake_file=pa/t-pro
4188 ;;
4189 hppa1.0-*-osf*)
4190 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
4191 use_collect2=yes
4192 ;;
4193 hppa1.1-*-bsd*)
4194 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
4195 target_cpu_default="MASK_PA_11"
4196 use_collect2=yes
4197 ;;
4198 hppa1.0-*-bsd*)
4199 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
4200 use_collect2=yes
4201 ;;
4202 hppa1.0-*-hpux7*)
4203 tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
4204 xm_file=pa/xm-pahpux.h
4205 xmake_file=pa/x-pa-hpux
4206 if test x$gas = xyes
4207 then
4208 tm_file="${tm_file} pa/gas.h"
4209 fi
4210 install_headers_dir=install-headers-cpio
4211 use_collect2=yes
4212 ;;
4213 hppa1.0-*-hpux8.0[0-2]*)
4214 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4215 xm_file=pa/xm-pahpux.h
4216 xmake_file=pa/x-pa-hpux
4217 if test x$gas = xyes
4218 then
4219 tm_file="${tm_file} pa/pa-gas.h"
4220 else
4221 tm_file="pa/pa-oldas.h ${tm_file}"
4222 fi
4223 install_headers_dir=install-headers-cpio
4224 use_collect2=yes
4225 ;;
4226 hppa1.1-*-hpux8.0[0-2]*)
4227 target_cpu_default="MASK_PA_11"
4228 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4229 xm_file=pa/xm-pahpux.h
4230 xmake_file=pa/x-pa-hpux
4231 if test x$gas = xyes
4232 then
4233 tm_file="${tm_file} pa/pa-gas.h"
4234 else
4235 tm_file="pa/pa-oldas.h ${tm_file}"
4236 fi
4237 install_headers_dir=install-headers-cpio
4238 use_collect2=yes
4239 ;;
4240 hppa1.1-*-hpux8*)
4241 target_cpu_default="MASK_PA_11"
4242 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4243 xm_file=pa/xm-pahpux.h
4244 xmake_file=pa/x-pa-hpux
4245 if test x$gas = xyes
4246 then
4247 tm_file="${tm_file} pa/pa-gas.h"
4248 fi
4249 install_headers_dir=install-headers-cpio
4250 use_collect2=yes
4251 ;;
4252 hppa1.0-*-hpux8*)
4253 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4254 xm_file=pa/xm-pahpux.h
4255 xmake_file=pa/x-pa-hpux
4256 if test x$gas = xyes
4257 then
4258 tm_file="${tm_file} pa/pa-gas.h"
4259 fi
4260 install_headers_dir=install-headers-cpio
4261 use_collect2=yes
4262 ;;
4263 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
4264 target_cpu_default="MASK_PA_11"
4265 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
4266 float_format=i128
4267 xm_file=pa/xm-pahpux.h
4268 xmake_file=pa/x-pa-hpux
4269 tmake_file=pa/t-pa
4270 if test x$gas = xyes
4271 then
4272 tm_file="${tm_file} pa/pa-gas.h"
4273 fi
4274 if test x$enable_threads = x; then
4275 enable_threads=$have_pthread_h
4276 fi
4277 case x${enable_threads} in
4278 xyes | xdce)
4279 tmake_file="${tmake_file} pa/t-dce-thr"
4280 ;;
4281 esac
4282 install_headers_dir=install-headers-cpio
4283 use_collect2=yes
4284 ;;
4285 hppa1.0-*-hpux10*)
4286 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
4287 float_format=i128
4288 xm_file=pa/xm-pahpux.h
4289 xmake_file=pa/x-pa-hpux
4290 tmake_file=pa/t-pa
4291 if test x$gas = xyes
4292 then
4293 tm_file="${tm_file} pa/pa-gas.h"
4294 fi
4295 if test x$enable_threads = x; then
4296 enable_threads=$have_pthread_h
4297 fi
4298 case x${enable_threads} in
4299 xyes | xdce)
4300 tmake_file="${tmake_file} pa/t-dce-thr"
4301 ;;
4302 esac
4303 install_headers_dir=install-headers-cpio
4304 use_collect2=yes
4305 ;;
4306 hppa*64*-*-hpux11*)
4307 target_cpu_default="MASK_PA_11"
4308 xm_file=pa/xm-pa64hpux.h
4309 xmake_file=pa/x-pa-hpux
4310 tmake_file=pa/t-pa
4311 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"
4312 float_format=i128
4313 tmake_file=pa/t-pa64
4314 target_cpu_default="(MASK_PA_11|MASK_PA_20)"
4315
4316 if [ x$gas = xyes ]
4317 then
4318 tm_file="${tm_file} pa/pa-gas.h"
4319 fi
4320 # if [[ x$enable_threads = x ]]; then
4321 # enable_threads=$have_pthread_h
4322 # fi
4323 # if [[ x$enable_threads = xyes ]]; then
4324 # thread_file='dce'
4325 # tmake_file="${tmake_file} pa/t-dce-thr"
4326 # fi
4327 install_headers_dir=install-headers-cpio
4328 use_collect2=yes
4329 ;;
4330 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
4331 target_cpu_default="MASK_PA_11"
4332 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
4333 float_format=i128
4334 xm_file=pa/xm-pahpux.h
4335 xmake_file=pa/x-pa-hpux
4336 tmake_file=pa/t-pa
4337 if test x$gas = xyes
4338 then
4339 tm_file="${tm_file} pa/pa-gas.h"
4340 fi
4341 # if test x$enable_threads = x; then
4342 # enable_threads=$have_pthread_h
4343 # fi
4344 # if test x$enable_threads = xyes; then
4345 # thread_file='dce'
4346 # tmake_file="${tmake_file} pa/t-dce-thr"
4347 # fi
4348 install_headers_dir=install-headers-cpio
4349 use_collect2=yes
4350 ;;
4351 hppa1.0-*-hpux11*)
4352 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
4353 float_format=i128
4354 xm_file=pa/xm-pahpux.h
4355 xmake_file=pa/x-pa-hpux
4356 if test x$gas = xyes
4357 then
4358 tm_file="${tm_file} pa/pa-gas.h"
4359 fi
4360 # if test x$enable_threads = x; then
4361 # enable_threads=$have_pthread_h
4362 # fi
4363 # if test x$enable_threads = xyes; then
4364 # thread_file='dce'
4365 # tmake_file="${tmake_file} pa/t-dce-thr"
4366 # fi
4367 install_headers_dir=install-headers-cpio
4368 use_collect2=yes
4369 ;;
4370 hppa1.1-*-hpux* | hppa2*-*-hpux*)
4371 target_cpu_default="MASK_PA_11"
4372 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
4373 xm_file=pa/xm-pahpux.h
4374 xmake_file=pa/x-pa-hpux
4375 if test x$gas = xyes
4376 then
4377 tm_file="${tm_file} pa/pa-gas.h"
4378 fi
4379 install_headers_dir=install-headers-cpio
4380 use_collect2=yes
4381 ;;
4382 hppa1.0-*-hpux*)
4383 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
4384 xm_file=pa/xm-pahpux.h
4385 xmake_file=pa/x-pa-hpux
4386 if test x$gas = xyes
4387 then
4388 tm_file="${tm_file} pa/pa-gas.h"
4389 fi
4390 install_headers_dir=install-headers-cpio
4391 use_collect2=yes
4392 ;;
4393 hppa1.1-*-hiux* | hppa2*-*-hiux*)
4394 target_cpu_default="MASK_PA_11"
4395 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
4396 xm_file=pa/xm-pahpux.h
4397 xmake_file=pa/x-pa-hpux
4398 if test x$gas = xyes
4399 then
4400 tm_file="${tm_file} pa/pa-gas.h"
4401 fi
4402 install_headers_dir=install-headers-cpio
4403 use_collect2=yes
4404 ;;
4405 hppa1.0-*-hiux*)
4406 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
4407 xm_file=pa/xm-pahpux.h
4408 xmake_file=pa/x-pa-hpux
4409 if test x$gas = xyes
4410 then
4411 tm_file="${tm_file} pa/pa-gas.h"
4412 fi
4413 install_headers_dir=install-headers-cpio
4414 use_collect2=yes
4415 ;;
4416 hppa*-*-lites*)
4417 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
4418 target_cpu_default="MASK_PA_11"
4419 use_collect2=yes
4420 ;;
4421 hppa*-*-mpeix*)
4422 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
4423 xm_file=pa/xm-pampeix.h
4424 xmake_file=pa/x-pa-mpeix
4425 echo "You must use gas. Assuming it is already installed."
4426 install_headers_dir=install-headers-tar
4427 use_collect2=yes
4428 ;;
4429 i370-*-opened*) # IBM 360/370/390 Architecture
4430 xm_file=i370/xm-oe.h
4431 tm_file=i370/oe.h
4432 xmake_file=i370/x-oe
4433 tmake_file=i370/t-oe
4434 ;;
4435 i370-*-mvs*)
4436 xm_file=i370/xm-mvs.h
4437 tm_file=i370/mvs.h
4438 tmake_file=i370/t-mvs
4439 ;;
4440 i370-*-linux*)
4441 xm_file="xm-linux.h i370/xm-linux.h"
4442 xmake_file=x-linux
4443 tm_file="i370/linux.h ${tm_file}"
4444 tmake_file="t-linux i370/t-linux"
4445 # broken_install=yes
4446 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4447 # extra_parts="crtbegin.o crtend.o"
4448 gnu_ld=yes
4449 gas=yes
4450 elf=yes
4451 if test x$enable_threads = xyes; then
4452 thread_file='posix'
4453 fi
4454 ;;
4455 i[34567]86-*-elf*)
4456 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
4457 tm_file=i386/i386elf.h
4458 tmake_file=i386/t-i386elf
4459 xmake_file=x-svr4
4460 ;;
4461 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
4462 if test x$gas = xyes
4463 then
4464 tm_file=i386/aix386.h
4465 extra_parts="crtbegin.o crtend.o"
4466 tmake_file=i386/t-crtstuff
4467 else
4468 tm_file=i386/aix386ng.h
4469 use_collect2=yes
4470 fi
4471 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
4472 xm_defines=USG
4473 xmake_file=i386/x-aix
4474 ;;
4475 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
4476 xm_file="xm-alloca.h ${xm_file}"
4477 xm_defines="USG POSIX SMALL_ARG_MAX"
4478 xmake_file=i386/x-ncr3000
4479 if test x$stabs = xyes -a x$gas = xyes
4480 then
4481 tm_file=i386/sysv4gdb.h
4482 else
4483 tm_file=i386/sysv4.h
4484 fi
4485 extra_parts="crtbegin.o crtend.o"
4486 tmake_file=i386/t-crtpic
4487 ;;
4488 i[34567]86-next-*)
4489 tm_file=i386/next.h
4490 xm_file=i386/xm-next.h
4491 tmake_file=i386/t-next
4492 xmake_file=i386/x-next
4493 extra_objs=nextstep.o
4494 extra_parts="crtbegin.o crtend.o"
4495 if test x$enable_threads = xyes; then
4496 thread_file='mach'
4497 fi
4498 ;;
4499 i[34567]86-sequent-bsd*) # 80386 from Sequent
4500 use_collect2=yes
4501 if test x$gas = xyes
4502 then
4503 tm_file=i386/seq-gas.h
4504 else
4505 tm_file=i386/sequent.h
4506 fi
4507 ;;
4508 i[34567]86-sequent-ptx1*)
4509 xm_defines="USG SVR3"
4510 xmake_file=i386/x-sysv3
4511 tm_file=i386/seq-sysv3.h
4512 tmake_file=i386/t-crtstuff
4513 extra_parts="crtbegin.o crtend.o"
4514 install_headers_dir=install-headers-cpio
4515 ;;
4516 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
4517 xm_defines="USG SVR3"
4518 xmake_file=i386/x-sysv3
4519 tm_file=i386/seq2-sysv3.h
4520 tmake_file=i386/t-crtstuff
4521 extra_parts="crtbegin.o crtend.o"
4522 install_headers_dir=install-headers-cpio
4523 ;;
4524 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
4525 xm_file="xm-alloca.h ${xm_file}"
4526 xm_defines="USG POSIX SMALL_ARG_MAX"
4527 xmake_file=x-svr4
4528 tm_file=i386/ptx4-i.h
4529 tmake_file=t-svr4
4530 extra_parts="crtbegin.o crtend.o"
4531 install_headers_dir=install-headers-cpio
4532 ;;
4533 i386-sun-sunos*) # Sun i386 roadrunner
4534 xm_defines=USG
4535 tm_file=i386/sun.h
4536 use_collect2=yes
4537 ;;
4538 i[34567]86-wrs-vxworks*)
4539 tm_file=i386/vxi386.h
4540 tmake_file=i386/t-i386bare
4541 thread_file='vxworks'
4542 ;;
4543 i[34567]86-*-aout*)
4544 tm_file=i386/i386-aout.h
4545 tmake_file=i386/t-i386bare
4546 ;;
4547 i[34567]86-*-beoself* | i[34567]86-*-beos*)
4548 xm_file=i386/xm-beos.h
4549 tmake_file='i386/t-beos i386/t-crtpic'
4550 tm_file=i386/beos-elf.h
4551 xmake_file=i386/x-beos
4552 extra_parts='crtbegin.o crtend.o'
4553 ;;
4554 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
4555 tm_file=i386/bsd386.h
4556 # tmake_file=t-libc-ok
4557 ;;
4558 i[34567]86-*-bsd*)
4559 tm_file=i386/386bsd.h
4560 # tmake_file=t-libc-ok
4561 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
4562 # use_collect2=yes
4563 ;;
4564 i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aout*)
4565 tm_file="i386/freebsd.h i386/perform.h"
4566 tmake_file=t-freebsd
4567 ;;
4568 i[34567]86-*-freebsd*)
4569 tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
4570 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4571 tmake_file=t-freebsd
4572 gas=yes
4573 gnu_ld=yes
4574 stabs=yes
4575 case x${enable_threads} in
4576 xyes | xpthreads | xposix)
4577 thread_file='posix'
4578 tmake_file="${tmake_file} t-freebsd-thread"
4579 ;;
4580 esac
4581 ;;
4582 i[34567]86-*-netbsd*)
4583 tm_file=i386/netbsd.h
4584 tmake_file=t-netbsd
4585 use_collect2=yes
4586 ;;
4587 i[34567]86-*-openbsd*)
4588 # we need collect2 until our bug is fixed...
4589 use_collect2=yes
4590 ;;
4591 i[34567]86-*-coff*)
4592 tm_file=i386/i386-coff.h
4593 tmake_file=i386/t-i386bare
4594 ;;
4595 i[34567]86-*-isc*) # 80386 running ISC system
4596 xm_file="${xm_file} i386/xm-isc.h"
4597 xm_defines="USG SVR3"
4598 case $machine in
4599 i[34567]86-*-isc[34]*)
4600 xmake_file=i386/x-isc3
4601 ;;
4602 *)
4603 xmake_file=i386/x-isc
4604 ;;
4605 esac
4606 if test x$gas = xyes -a x$stabs = xyes
4607 then
4608 tm_file=i386/iscdbx.h
4609 tmake_file=i386/t-svr3dbx
4610 extra_parts="svr3.ifile svr3z.ifile"
4611 else
4612 tm_file=i386/isccoff.h
4613 tmake_file=i386/t-crtstuff
4614 extra_parts="crtbegin.o crtend.o"
4615 fi
4616 tmake_file="$tmake_file i386/t-i386bare"
4617 install_headers_dir=install-headers-cpio
4618 ;;
4619 i[34567]86-*-linux*oldld*) # Intel 80386's running GNU/Linux
4620 # pre BFD linkers
4621 xmake_file=x-linux-aout
4622 tmake_file="t-linux-aout i386/t-crtstuff"
4623 tm_file=i386/linux-oldld.h
4624 gnu_ld=yes
4625 float_format=i386
4626 ;;
4627 i[34567]86-*-linux*aout*) # Intel 80386's running GNU/Linux
4628 xmake_file=x-linux-aout
4629 tmake_file="t-linux-aout i386/t-crtstuff"
4630 tm_file=i386/linux-aout.h
4631 gnu_ld=yes
4632 float_format=i386
4633 ;;
4634 i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux
4635 # GNU/Linux C library 5
4636 xmake_file=x-linux
4637 tm_file=i386/linux.h
4638 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
4639 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4640 gnu_ld=yes
4641 float_format=i386
4642 if test x$enable_threads = xyes; then
4643 thread_file='single'
4644 fi
4645 ;;
4646 i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
4647 # aka GNU/Linux C library 6
4648 xmake_file=x-linux
4649 tm_file=i386/linux.h
4650 tmake_file="t-linux i386/t-crtstuff"
4651 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4652 gnu_ld=yes
4653 float_format=i386
4654 if test x$enable_threads = xyes; then
4655 thread_file='posix'
4656 fi
4657 ;;
4658 i[34567]86-*-gnu*)
4659 float_format=i386
4660 ;;
4661 i[34567]86-go32-msdos | i[34567]86-*-go32*)
4662 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
4663 exit 1
4664 ;;
4665 i[34567]86-pc-msdosdjgpp*)
4666 xm_file=i386/xm-djgpp.h
4667 tm_file=i386/djgpp.h
4668 tmake_file=i386/t-djgpp
4669 xmake_file=i386/x-djgpp
4670 gnu_ld=yes
4671 gas=yes
4672 exeext=.exe
4673 float_format=none
4674 case $host in *pc-msdosdjgpp*)
4675 target_alias=djgpp
4676 ;;
4677 esac
4678 ;;
4679 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
4680 tm_file=i386/moss.h
4681 tmake_file=t-libc-ok
4682 gnu_ld=yes
4683 gas=yes
4684 ;;
4685 i[34567]86-*-lynxos*)
4686 if test x$gas = xyes
4687 then
4688 tm_file=i386/lynx.h
4689 else
4690 tm_file=i386/lynx-ng.h
4691 fi
4692 xm_file=i386/xm-lynx.h
4693 tmake_file=i386/t-i386bare
4694 xmake_file=x-lynx
4695 ;;
4696 i[34567]86-*-mach*)
4697 tm_file=i386/mach.h
4698 # tmake_file=t-libc-ok
4699 use_collect2=yes
4700 ;;
4701 i[34567]86-*-osfrose*) # 386 using OSF/rose
4702 if test x$elf = xyes
4703 then
4704 tm_file=i386/osfelf.h
4705 use_collect2=
4706 else
4707 tm_file=i386/osfrose.h
4708 use_collect2=yes
4709 fi
4710 xm_file="i386/xm-osf.h ${xm_file}"
4711 xmake_file=i386/x-osfrose
4712 tmake_file=i386/t-osf
4713 extra_objs=halfpic.o
4714 ;;
4715 i[34567]86-go32-rtems*)
4716 cpu_type=i386
4717 xm_file=i386/xm-go32.h
4718 tm_file=i386/go32-rtems.h
4719 tmake_file="i386/t-go32 t-rtems"
4720 ;;
4721 i[34567]86-*-rtemscoff*)
4722 cpu_type=i386
4723 tm_file=i386/rtems.h
4724 tmake_file="i386/t-i386bare t-rtems"
4725 ;;
4726 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
4727 cpu_type=i386
4728 tm_file=i386/rtemself.h
4729 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
4730 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
4731 ;;
4732 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
4733 xm_file="xm-alloca.h ${xm_file} i386/xm-sco5.h"
4734 xm_defines="USG SVR3"
4735 xmake_file=i386/x-sco5
4736 install_headers_dir=install-headers-cpio
4737 tm_file=i386/sco5.h
4738 if test x$gas = xyes
4739 then
4740 tm_file="i386/sco5gas.h ${tm_file}"
4741 tmake_file=i386/t-sco5gas
4742 else
4743 tmake_file=i386/t-sco5
4744 fi
4745 tmake_file="$tmake_file i386/t-i386bare"
4746 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
4747 ;;
4748 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
4749 xm_file="${xm_file} i386/xm-sco.h"
4750 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
4751 xmake_file=i386/x-sco4
4752 install_headers_dir=install-headers-cpio
4753 if test x$stabs = xyes
4754 then
4755 tm_file=i386/sco4dbx.h
4756 tmake_file=i386/t-svr3dbx
4757 extra_parts="svr3.ifile svr3z.rfile"
4758 else
4759 tm_file=i386/sco4.h
4760 tmake_file=i386/t-crtstuff
4761 extra_parts="crtbegin.o crtend.o"
4762 fi
4763 tmake_file="$tmake_file i386/t-i386bare"
4764 # The default EAFS filesystem supports long file names.
4765 # Truncating the target makes $host != $target which
4766 # makes gcc think it is doing a cross-compile.
4767 # truncate_target=yes
4768 ;;
4769 i[34567]86-*-sco*) # 80386 running SCO system
4770 xm_file=i386/xm-sco.h
4771 xmake_file=i386/x-sco
4772 install_headers_dir=install-headers-cpio
4773 if test x$stabs = xyes
4774 then
4775 tm_file=i386/scodbx.h
4776 tmake_file=i386/t-svr3dbx
4777 extra_parts="svr3.ifile svr3z.rfile"
4778 else
4779 tm_file=i386/sco.h
4780 extra_parts="crtbegin.o crtend.o"
4781 tmake_file=i386/t-crtstuff
4782 fi
4783 tmake_file="$tmake_file i386/t-i386bare"
4784 truncate_target=yes
4785 ;;
4786 i[34567]86-*-solaris2*)
4787 xm_file="xm-alloca.h ${xm_file}"
4788 xm_defines="USG POSIX SMALL_ARG_MAX"
4789 tm_file=i386/sol2.h
4790 if test x$gas = xyes; then
4791 # Only needed if gas does not support -s
4792 tm_file="i386/sol2gas.h ${tm_file}"
4793 fi
4794 tmake_file="i386/t-i386bare i386/t-sol2"
4795 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4796 xmake_file=x-svr4
4797 if test x${enable_threads} = x; then
4798 enable_threads=$have_pthread_h
4799 if test x${enable_threads} = x; then
4800 enable_threads=$have_thread_h
4801 fi
4802 fi
4803 if test x${enable_threads} = xyes; then
4804 if test x${have_pthread_h} = xyes; then
4805 thread_file='posix'
4806 else
4807 thread_file='solaris'
4808 fi
4809 fi
4810 ;;
4811 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
4812 xm_file="xm-alloca.h ${xm_file}"
4813 xm_defines="USG POSIX"
4814 tm_file=i386/sysv5.h
4815 if test x$stabs = xyes
4816 then
4817 tm_file="${tm_file} dbx.h"
4818 fi
4819 tmake_file="i386/t-i386bare i386/t-crtpic"
4820 xmake_file=x-svr4
4821 extra_parts="crtbegin.o crtend.o"
4822 if test x$enable_threads = xyes; then
4823 thread_file='posix'
4824 fi
4825 ;;
4826 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
4827 xm_file="xm-alloca.h ${xm_file}"
4828 xm_defines="USG POSIX SMALL_ARG_MAX"
4829 tm_file=i386/sysv4.h
4830 if test x$stabs = xyes
4831 then
4832 tm_file="${tm_file} dbx.h"
4833 fi
4834 tmake_file="i386/t-i386bare i386/t-crtpic"
4835 xmake_file=x-svr4
4836 extra_parts="crtbegin.o crtend.o"
4837 ;;
4838 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
4839 xm_file="xm-alloca.h ${xm_file}"
4840 xm_defines="USG POSIX"
4841 tm_file=i386/udk.h
4842 tmake_file="i386/t-i386bare i386/t-crtpic i386/t-udk"
4843 xmake_file=x-svr4
4844 extra_parts="crtbegin.o crtend.o"
4845 install_headers_dir=install-headers-cpio
4846 ;;
4847 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
4848 cpu_type=i386
4849 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
4850 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
4851 if test x$stabs = xyes
4852 then
4853 tm_file=i386/osf1elfgdb.h
4854 else
4855 tm_file=i386/osf1elf.h
4856 fi
4857 tmake_file=i386/t-osf1elf
4858 xmake_file=i386/x-osf1elf
4859 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
4860 ;;
4861 i[34567]86-*-sysv*) # Intel 80386's running system V
4862 xm_defines="USG SVR3"
4863 xmake_file=i386/x-sysv3
4864 if test x$gas = xyes
4865 then
4866 if test x$stabs = xyes
4867 then
4868 tm_file=i386/svr3dbx.h
4869 tmake_file=i386/t-svr3dbx
4870 extra_parts="svr3.ifile svr3z.rfile"
4871 else
4872 tm_file=i386/svr3gas.h
4873 extra_parts="crtbegin.o crtend.o"
4874 tmake_file=i386/t-crtstuff
4875 fi
4876 else
4877 tm_file=i386/sysv3.h
4878 extra_parts="crtbegin.o crtend.o"
4879 tmake_file=i386/t-crtstuff
4880 fi
4881 tmake_file="$tmake_file i386/t-crtpic"
4882 ;;
4883 i386-*-vsta) # Intel 80386's running VSTa kernel
4884 xm_file="${xm_file} i386/xm-vsta.h"
4885 tm_file=i386/vsta.h
4886 tmake_file=i386/t-vsta
4887 xmake_file=i386/x-vsta
4888 ;;
4889 i[34567]86-*-win32)
4890 xm_file="${xm_file} i386/xm-cygwin.h"
4891 tmake_file=i386/t-cygwin
4892 tm_file=i386/win32.h
4893 xmake_file=i386/x-cygwin
4894 extra_objs=winnt.o
4895 if test x$enable_threads = xyes; then
4896 thread_file='win32'
4897 fi
4898 exeext=.exe
4899 ;;
4900 i[34567]86-*-pe | i[34567]86-*-cygwin*)
4901 xm_file="${xm_file} i386/xm-cygwin.h"
4902 tmake_file=i386/t-cygwin
4903 tm_file=i386/cygwin.h
4904 xmake_file=i386/x-cygwin
4905 extra_objs=winnt.o
4906 if test x$enable_threads = xyes; then
4907 thread_file='win32'
4908 fi
4909 exeext=.exe
4910 ;;
4911 i[34567]86-*-mingw32*)
4912 tm_file=i386/mingw32.h
4913 xm_file="${xm_file} i386/xm-mingw32.h"
4914 tmake_file="i386/t-cygwin i386/t-mingw32"
4915 extra_objs=winnt.o
4916 xmake_file=i386/x-cygwin
4917 if test x$enable_threads = xyes; then
4918 thread_file='win32'
4919 fi
4920 exeext=.exe
4921 case $machine in
4922 *mingw32msv*)
4923 ;;
4924 *minwg32crt* | *mingw32*)
4925 tm_file="${tm_file} i386/crtdll.h"
4926 ;;
4927 esac
4928 ;;
4929 i[34567]86-*-uwin*)
4930 tm_file=i386/uwin.h
4931 xm_file="${xm_file} i386/xm-uwin.h"
4932 xm_defines="USG NO_STAB_H"
4933 tmake_file="i386/t-cygwin i386/t-uwin"
4934 extra_objs=winnt.o
4935 xmake_file=i386/x-cygwin
4936 if test x$enable_threads = xyes; then
4937 thread_file='win32'
4938 fi
4939 exeext=.exe
4940 ;;
4941 i[34567]86-*-interix*)
4942 tm_file="i386/i386-interix.h interix.h"
4943 xm_file="i386/xm-i386-interix.h xm-interix.h"
4944 xm_defines="USG"
4945 tmake_file="i386/t-interix"
4946 extra_objs=interix.o
4947 xmake_file=x-interix
4948 if test x$enable_threads = xyes ; then
4949 thread_file='posix'
4950 fi
4951 if test x$stabs = xyes ; then
4952 tm_file="${tm_file} dbxcoff.h"
4953 fi
4954 ;;
4955 i[34567]86-*-winnt3*)
4956 tm_file=i386/win-nt.h
4957 out_file=i386/i386.c
4958 xm_file="xm-winnt.h ${xm_file}"
4959 xmake_file=winnt/x-winnt
4960 tmake_file=i386/t-winnt
4961 extra_host_objs="winnt.o oldnames.o"
4962 extra_gcc_objs="spawnv.o oldnames.o"
4963 if test x$gnu_ld != xyes
4964 then
4965 extra_programs=ld.exe
4966 fi
4967 if test x$enable_threads = xyes; then
4968 thread_file='win32'
4969 fi
4970 ;;
4971 i[34567]86-dg-dgux*)
4972 xm_file="xm-alloca.h ${xm_file}"
4973 xm_defines="USG POSIX"
4974 out_file=i386/dgux.c
4975 tm_file=i386/dgux.h
4976 tmake_file=i386/t-dgux
4977 xmake_file=i386/x-dgux
4978 install_headers_dir=install-headers-cpio
4979 ;;
4980 i860-alliant-*) # Alliant FX/2800
4981 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
4982 xm_file="${xm_file}"
4983 xmake_file=i860/x-fx2800
4984 tmake_file=i860/t-fx2800
4985 extra_parts="crtbegin.o crtend.o"
4986 ;;
4987 i860-*-bsd*)
4988 tm_file="${tm_file} i860/bsd.h"
4989 if test x$gas = xyes
4990 then
4991 tm_file="${tm_file} i860/bsd-gas.h"
4992 fi
4993 use_collect2=yes
4994 ;;
4995 i860-*-mach*)
4996 tm_file="${tm_file} i860/mach.h"
4997 tmake_file=t-libc-ok
4998 ;;
4999 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
5000 tm_file="${tm_file} svr3.h i860/paragon.h"
5001 xm_defines="USG SVR3"
5002 tmake_file=t-osf
5003 ;;
5004 i860-*-sysv3*)
5005 tm_file="${tm_file} svr3.h i860/sysv3.h"
5006 xm_defines="USG SVR3"
5007 xmake_file=i860/x-sysv3
5008 extra_parts="crtbegin.o crtend.o"
5009 ;;
5010 i860-*-sysv4*)
5011 tm_file="${tm_file} svr4.h i860/sysv4.h"
5012 xm_defines="USG SVR3"
5013 xmake_file=i860/x-sysv4
5014 tmake_file=t-svr4
5015 extra_parts="crtbegin.o crtend.o"
5016 ;;
5017 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
5018 tm_file="${tm_file} i960/vx960.h"
5019 tmake_file=i960/t-vxworks960
5020 use_collect2=yes
5021 thread_file='vxworks'
5022 ;;
5023 i960-wrs-vxworks5* | i960-wrs-vxworks)
5024 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
5025 tmake_file=i960/t-vxworks960
5026 use_collect2=yes
5027 thread_file='vxworks'
5028 ;;
5029 i960-wrs-vxworks*)
5030 tm_file="${tm_file} i960/vx960.h"
5031 tmake_file=i960/t-vxworks960
5032 use_collect2=yes
5033 thread_file='vxworks'
5034 ;;
5035 i960-*-coff*)
5036 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
5037 tmake_file=i960/t-960bare
5038 use_collect2=yes
5039 ;;
5040 i960-*-rtems)
5041 tmake_file="i960/t-960bare t-rtems"
5042 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
5043 use_collect2=yes
5044 ;;
5045 i960-*-*) # Default i960 environment.
5046 use_collect2=yes
5047 ;;
5048 ia64*-*-elf*)
5049 tm_file=ia64/elf.h
5050 tmake_file="ia64/t-ia64"
5051 target_cpu_default="0"
5052 if test x$gas = xyes
5053 then
5054 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
5055 fi
5056 if test x$gnu_ld = xyes
5057 then
5058 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
5059 fi
5060 float_format=i386
5061 ;;
5062 ia64*-*-linux*)
5063 tm_file=ia64/linux.h
5064 tmake_file="t-linux ia64/t-ia64"
5065 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
5066 if test x$enable_threads = xyes; then
5067 thread_file='posix'
5068 fi
5069 float_format=i386
5070 ;;
5071 m32r-*-elf*)
5072 extra_parts="crtinit.o crtfini.o"
5073 ;;
5074 # m68hc11 and m68hc12 share the same machine description.
5075 m68hc11-*-*|m6811-*-*)
5076 tm_file="m68hc11/m68hc11.h"
5077 xm_file="m68hc11/xm-m68hc11.h"
5078 tm_p_file="m68hc11/m68hc11-protos.h"
5079 md_file="m68hc11/m68hc11.md"
5080 out_file="m68hc11/m68hc11.c"
5081 tmake_file="m68hc11/t-m68hc11-gas"
5082 ;;
5083 m68hc12-*-*|m6812-*-*)
5084 tm_file="m68hc11/m68hc12.h"
5085 tm_p_file="m68hc11/m68hc11-protos.h"
5086 xm_file="m68hc11/xm-m68hc11.h"
5087 md_file="m68hc11/m68hc11.md"
5088 out_file="m68hc11/m68hc11.c"
5089 tmake_file="m68hc11/t-m68hc11-gas"
5090 ;;
5091 m68000-convergent-sysv*)
5092 tm_file=m68k/ctix.h
5093 xm_file="m68k/xm-3b1.h ${xm_file}"
5094 xm_defines=USG
5095 use_collect2=yes
5096 extra_headers=math-68881.h
5097 ;;
5098 m68000-hp-bsd*) # HP 9000/200 running BSD
5099 tm_file=m68k/hp2bsd.h
5100 xmake_file=m68k/x-hp2bsd
5101 use_collect2=yes
5102 extra_headers=math-68881.h
5103 ;;
5104 m68000-hp-hpux*) # HP 9000 series 300
5105 xm_file="xm-alloca.h ${xm_file}"
5106 xm_defines="USG"
5107 if test x$gas = xyes
5108 then
5109 xmake_file=m68k/x-hp320g
5110 tm_file=m68k/hp310g.h
5111 else
5112 xmake_file=m68k/x-hp320
5113 tm_file=m68k/hp310.h
5114 fi
5115 install_headers_dir=install-headers-cpio
5116 use_collect2=yes
5117 extra_headers=math-68881.h
5118 ;;
5119 m68000-sun-sunos3*)
5120 tm_file=m68k/sun2.h
5121 use_collect2=yes
5122 extra_headers=math-68881.h
5123 ;;
5124 m68000-sun-sunos4*)
5125 tm_file=m68k/sun2o4.h
5126 use_collect2=yes
5127 extra_headers=math-68881.h
5128 ;;
5129 m68000-att-sysv*)
5130 xm_file="m68k/xm-3b1.h ${xm_file}"
5131 xm_defines=USG
5132 if test x$gas = xyes
5133 then
5134 tm_file=m68k/3b1g.h
5135 else
5136 tm_file=m68k/3b1.h
5137 fi
5138 use_collect2=yes
5139 extra_headers=math-68881.h
5140 ;;
5141 m68k-apple-aux*) # Apple Macintosh running A/UX
5142 xm_defines="USG AUX"
5143 tmake_file=m68k/t-aux
5144 install_headers_dir=install-headers-cpio
5145 extra_headers=math-68881.h
5146 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
5147 tm_file=
5148 if test "$gnu_ld" = yes
5149 then
5150 tm_file="${tm_file} m68k/auxgld.h"
5151 else
5152 tm_file="${tm_file} m68k/auxld.h"
5153 fi
5154 if test "$gas" = yes
5155 then
5156 tm_file="${tm_file} m68k/auxgas.h"
5157 else
5158 tm_file="${tm_file} m68k/auxas.h"
5159 fi
5160 tm_file="${tm_file} m68k/a-ux.h"
5161 float_format=m68k
5162 ;;
5163 m68k-apollo-*)
5164 tm_file=m68k/apollo68.h
5165 xmake_file=m68k/x-apollo68
5166 use_collect2=yes
5167 extra_headers=math-68881.h
5168 float_format=m68k
5169 ;;
5170 m68k-altos-sysv*) # Altos 3068
5171 if test x$gas = xyes
5172 then
5173 tm_file=m68k/altos3068.h
5174 xm_defines=USG
5175 else
5176 echo "The Altos is supported only with the GNU assembler" 1>&2
5177 exit 1
5178 fi
5179 extra_headers=math-68881.h
5180 ;;
5181 m68k-bull-sysv*) # Bull DPX/2
5182 if test x$gas = xyes
5183 then
5184 if test x$stabs = xyes
5185 then
5186 tm_file=m68k/dpx2cdbx.h
5187 else
5188 tm_file=m68k/dpx2g.h
5189 fi
5190 else
5191 tm_file=m68k/dpx2.h
5192 fi
5193 xm_file="xm-alloca.h ${xm_file}"
5194 xm_defines=USG
5195 xmake_file=m68k/x-dpx2
5196 use_collect2=yes
5197 extra_headers=math-68881.h
5198 ;;
5199 m68k-atari-sysv4*) # Atari variant of V.4.
5200 tm_file=m68k/atari.h
5201 xm_file="xm-alloca.h ${xm_file}"
5202 xm_defines="USG FULL_PROTOTYPES"
5203 tmake_file=t-svr4
5204 extra_parts="crtbegin.o crtend.o"
5205 extra_headers=math-68881.h
5206 float_format=m68k
5207 ;;
5208 m68k-motorola-sysv*)
5209 tm_file=m68k/mot3300.h
5210 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
5211 if test x$gas = xyes
5212 then
5213 xmake_file=m68k/x-mot3300-gas
5214 if test x$gnu_ld = xyes
5215 then
5216 tmake_file=m68k/t-mot3300-gald
5217 else
5218 tmake_file=m68k/t-mot3300-gas
5219 use_collect2=yes
5220 fi
5221 else
5222 xmake_file=m68k/x-mot3300
5223 if test x$gnu_ld = xyes
5224 then
5225 tmake_file=m68k/t-mot3300-gld
5226 else
5227 tmake_file=m68k/t-mot3300
5228 use_collect2=yes
5229 fi
5230 fi
5231 gdb_needs_out_file_path=yes
5232 extra_parts="crt0.o mcrt0.o"
5233 extra_headers=math-68881.h
5234 float_format=m68k
5235 ;;
5236 m68k-ncr-sysv*) # NCR Tower 32 SVR3
5237 tm_file=m68k/tower-as.h
5238 xm_defines="USG SVR3"
5239 xmake_file=m68k/x-tower
5240 extra_parts="crtbegin.o crtend.o"
5241 extra_headers=math-68881.h
5242 ;;
5243 m68k-plexus-sysv*)
5244 tm_file=m68k/plexus.h
5245 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
5246 xm_defines=USG
5247 use_collect2=yes
5248 extra_headers=math-68881.h
5249 ;;
5250 m68k-tti-*)
5251 tm_file=m68k/pbb.h
5252 xm_file="xm-alloca.h ${xm_file}"
5253 xm_defines=USG
5254 extra_headers=math-68881.h
5255 ;;
5256 m68k-crds-unos*)
5257 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
5258 xm_defines="USG unos"
5259 xmake_file=m68k/x-crds
5260 tm_file=m68k/crds.h
5261 use_collect2=yes
5262 extra_headers=math-68881.h
5263 ;;
5264 m68k-cbm-sysv4*) # Commodore variant of V.4.
5265 tm_file=m68k/amix.h
5266 xm_file="xm-alloca.h ${xm_file}"
5267 xm_defines="USG FULL_PROTOTYPES"
5268 xmake_file=m68k/x-amix
5269 tmake_file=t-svr4
5270 extra_parts="crtbegin.o crtend.o"
5271 extra_headers=math-68881.h
5272 float_format=m68k
5273 ;;
5274 m68k-ccur-rtu)
5275 tm_file=m68k/ccur-GAS.h
5276 xmake_file=m68k/x-ccur
5277 extra_headers=math-68881.h
5278 use_collect2=yes
5279 float_format=m68k
5280 ;;
5281 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
5282 tm_file=m68k/hp3bsd44.h
5283 xmake_file=m68k/x-hp3bsd44
5284 use_collect2=yes
5285 extra_headers=math-68881.h
5286 float_format=m68k
5287 ;;
5288 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
5289 tm_file=m68k/hp3bsd.h
5290 use_collect2=yes
5291 extra_headers=math-68881.h
5292 float_format=m68k
5293 ;;
5294 m68k-isi-bsd*)
5295 if test x$with_fp = xno
5296 then
5297 tm_file=m68k/isi-nfp.h
5298 else
5299 tm_file=m68k/isi.h
5300 float_format=m68k
5301 fi
5302 use_collect2=yes
5303 extra_headers=math-68881.h
5304 ;;
5305 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
5306 xm_file="xm-alloca.h ${xm_file}"
5307 xm_defines="USG"
5308 if test x$gas = xyes
5309 then
5310 xmake_file=m68k/x-hp320g
5311 tm_file=m68k/hp320g.h
5312 else
5313 xmake_file=m68k/x-hp320
5314 tm_file=m68k/hpux7.h
5315 fi
5316 install_headers_dir=install-headers-cpio
5317 use_collect2=yes
5318 extra_headers=math-68881.h
5319 float_format=m68k
5320 ;;
5321 m68k-hp-hpux*) # HP 9000 series 300
5322 xm_file="xm-alloca.h ${xm_file}"
5323 xm_defines="USG"
5324 if test x$gas = xyes
5325 then
5326 xmake_file=m68k/x-hp320g
5327 tm_file=m68k/hp320g.h
5328 else
5329 xmake_file=m68k/x-hp320
5330 tm_file=m68k/hp320.h
5331 fi
5332 install_headers_dir=install-headers-cpio
5333 use_collect2=yes
5334 extra_headers=math-68881.h
5335 float_format=m68k
5336 ;;
5337 m68k-sun-mach*)
5338 tm_file=m68k/sun3mach.h
5339 use_collect2=yes
5340 extra_headers=math-68881.h
5341 float_format=m68k
5342 ;;
5343 m68k-sony-newsos3*)
5344 if test x$gas = xyes
5345 then
5346 tm_file=m68k/news3gas.h
5347 else
5348 tm_file=m68k/news3.h
5349 fi
5350 use_collect2=yes
5351 extra_headers=math-68881.h
5352 float_format=m68k
5353 ;;
5354 m68k-sony-bsd* | m68k-sony-newsos*)
5355 if test x$gas = xyes
5356 then
5357 tm_file=m68k/newsgas.h
5358 else
5359 tm_file=m68k/news.h
5360 fi
5361 use_collect2=yes
5362 extra_headers=math-68881.h
5363 float_format=m68k
5364 ;;
5365 m68k-next-nextstep2*)
5366 tm_file=m68k/next21.h
5367 xm_file="m68k/xm-next.h ${xm_file}"
5368 tmake_file=m68k/t-next
5369 xmake_file=m68k/x-next
5370 extra_objs=nextstep.o
5371 extra_headers=math-68881.h
5372 use_collect2=yes
5373 float_format=m68k
5374 ;;
5375 m68k-next-nextstep[34]*)
5376 tm_file=m68k/next.h
5377 xm_file="m68k/xm-next.h ${xm_file}"
5378 tmake_file=m68k/t-next
5379 xmake_file=m68k/x-next
5380 extra_objs=nextstep.o
5381 extra_parts="crtbegin.o crtend.o"
5382 extra_headers=math-68881.h
5383 float_format=m68k
5384 if test x$enable_threads = xyes; then
5385 thread_file='mach'
5386 fi
5387 ;;
5388 m68k-sun-sunos3*)
5389 if test x$with_fp = xno
5390 then
5391 tm_file=m68k/sun3n3.h
5392 else
5393 tm_file=m68k/sun3o3.h
5394 float_format=m68k
5395 fi
5396 use_collect2=yes
5397 extra_headers=math-68881.h
5398 ;;
5399 m68k-sun-sunos*) # For SunOS 4 (the default).
5400 if test x$with_fp = xno
5401 then
5402 tm_file=m68k/sun3n.h
5403 else
5404 tm_file=m68k/sun3.h
5405 float_format=m68k
5406 fi
5407 use_collect2=yes
5408 extra_headers=math-68881.h
5409 ;;
5410 m68k-wrs-vxworks*)
5411 tm_file=m68k/vxm68k.h
5412 tmake_file=m68k/t-vxworks68
5413 extra_headers=math-68881.h
5414 thread_file='vxworks'
5415 float_format=m68k
5416 ;;
5417 m68k-*-aout*)
5418 tmake_file=m68k/t-m68kbare
5419 tm_file="m68k/m68k-aout.h libgloss.h"
5420 extra_headers=math-68881.h
5421 float_format=m68k
5422 ;;
5423 m68k-*-coff*)
5424 tmake_file=m68k/t-m68kbare
5425 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
5426 extra_headers=math-68881.h
5427 float_format=m68k
5428 ;;
5429 m68020-*-elf* | m68k-*-elf*)
5430 tm_file="m68k/m68020-elf.h"
5431 xm_file=m68k/xm-m68kv.h
5432 tmake_file=m68k/t-m68kelf
5433 header_files=math-68881.h
5434 ;;
5435 m68k-*-lynxos*)
5436 if test x$gas = xyes
5437 then
5438 tm_file=m68k/lynx.h
5439 else
5440 tm_file=m68k/lynx-ng.h
5441 fi
5442 xm_file=m68k/xm-lynx.h
5443 xmake_file=x-lynx
5444 tmake_file=m68k/t-lynx
5445 extra_headers=math-68881.h
5446 float_format=m68k
5447 ;;
5448 m68k*-*-netbsd*)
5449 tm_file=m68k/netbsd.h
5450 tmake_file=t-netbsd
5451 float_format=m68k
5452 use_collect2=yes
5453 ;;
5454 m68k*-*-openbsd*)
5455 float_format=m68k
5456 # we need collect2 until our bug is fixed...
5457 use_collect2=yes
5458 ;;
5459 m68k-*-sysv3*) # Motorola m68k's running system V.3
5460 xm_file="xm-alloca.h ${xm_file}"
5461 xm_defines=USG
5462 xmake_file=m68k/x-m68kv
5463 extra_parts="crtbegin.o crtend.o"
5464 extra_headers=math-68881.h
5465 float_format=m68k
5466 ;;
5467 m68k-*-sysv4*) # Motorola m68k's running system V.4
5468 tm_file=m68k/m68kv4.h
5469 xm_file="xm-alloca.h ${xm_file}"
5470 xm_defines=USG
5471 tmake_file=t-svr4
5472 extra_parts="crtbegin.o crtend.o"
5473 extra_headers=math-68881.h
5474 float_format=m68k
5475 ;;
5476 m68k-*-linux*aout*) # Motorola m68k's running GNU/Linux
5477 # with a.out format
5478 xmake_file=x-linux
5479 tm_file=m68k/linux-aout.h
5480 tmake_file="t-linux-aout m68k/t-linux-aout"
5481 extra_headers=math-68881.h
5482 float_format=m68k
5483 gnu_ld=yes
5484 ;;
5485 m68k-*-linux*libc1) # Motorola m68k's running GNU/Linux
5486 # with ELF format using the
5487 # GNU/Linux C library 5
5488 xmake_file=x-linux
5489 tm_file=m68k/linux.h
5490 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
5491 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5492 extra_headers=math-68881.h
5493 float_format=m68k
5494 gnu_ld=yes
5495 ;;
5496 m68k-*-linux*) # Motorola m68k's running GNU/Linux
5497 # with ELF format using glibc 2
5498 # aka the GNU/Linux C library 6.
5499 xmake_file=x-linux
5500 tm_file=m68k/linux.h
5501 tmake_file="t-linux m68k/t-linux"
5502 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5503 extra_headers=math-68881.h
5504 float_format=m68k
5505 gnu_ld=yes
5506 if test x$enable_threads = xyes; then
5507 thread_file='posix'
5508 fi
5509 ;;
5510 m68k-*-psos*)
5511 tmake_file=m68k/t-m68kbare
5512 tm_file=m68k/m68k-psos.h
5513 extra_headers=math-68881.h
5514 float_format=m68k
5515 ;;
5516 m68k-*-rtemscoff*)
5517 tmake_file="m68k/t-m68kbare t-rtems"
5518 tm_file=m68k/rtems.h
5519 extra_headers=math-68881.h
5520 float_format=m68k
5521 ;;
5522 m68k-*-rtemself*|m68k-*-rtems*)
5523 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
5524 tm_file=m68k/rtemself.h
5525 extra_headers=math-68881.h
5526 float_format=m68k
5527 ;;
5528 m88k-dg-dgux*)
5529 case $machine in
5530 m88k-dg-dguxbcs*)
5531 tm_file=m88k/dguxbcs.h
5532 tmake_file=m88k/t-dguxbcs
5533 ;;
5534 *)
5535 tm_file=m88k/dgux.h
5536 tmake_file=m88k/t-dgux
5537 ;;
5538 esac
5539 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
5540 xmake_file=m88k/x-dgux
5541 if test x$gas = xyes
5542 then
5543 tmake_file=m88k/t-dgux-gas
5544 fi
5545 ;;
5546 m88k-dolphin-sysv3*)
5547 tm_file=m88k/dolph.h
5548 extra_parts="crtbegin.o crtend.o"
5549 xm_file="m88k/xm-sysv3.h ${xm_file}"
5550 xmake_file=m88k/x-dolph
5551 if test x$gas = xyes
5552 then
5553 tmake_file=m88k/t-m88k-gas
5554 fi
5555 ;;
5556 m88k-tektronix-sysv3)
5557 tm_file=m88k/tekXD88.h
5558 extra_parts="crtbegin.o crtend.o"
5559 xm_file="m88k/xm-sysv3.h ${xm_file}"
5560 xmake_file=m88k/x-tekXD88
5561 if test x$gas = xyes
5562 then
5563 tmake_file=m88k/t-m88k-gas
5564 fi
5565 ;;
5566 m88k-*-aout*)
5567 tm_file=m88k/m88k-aout.h
5568 ;;
5569 m88k-*-coff*)
5570 tm_file=m88k/m88k-coff.h
5571 tmake_file=m88k/t-bug
5572 ;;
5573 m88k-*-luna*)
5574 tm_file=m88k/luna.h
5575 extra_parts="crtbegin.o crtend.o"
5576 if test x$gas = xyes
5577 then
5578 tmake_file=m88k/t-luna-gas
5579 else
5580 tmake_file=m88k/t-luna
5581 fi
5582 ;;
5583 m88k-*-openbsd*)
5584 tmake_file="${tmake_file} m88k/t-luna-gas"
5585 tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
5586 xm_file="xm-openbsd.h m88k/xm-m88k.h ${xm_file}"
5587 ;;
5588 m88k-*-sysv3*)
5589 tm_file=m88k/sysv3.h
5590 extra_parts="crtbegin.o crtend.o"
5591 xm_file="m88k/xm-sysv3.h ${xm_file}"
5592 xmake_file=m88k/x-sysv3
5593 if test x$gas = xyes
5594 then
5595 tmake_file=m88k/t-m88k-gas
5596 fi
5597 ;;
5598 m88k-*-sysv4*)
5599 tm_file=m88k/sysv4.h
5600 extra_parts="crtbegin.o crtend.o"
5601 xmake_file=m88k/x-sysv4
5602 tmake_file=m88k/t-sysv4
5603 ;;
5604 mcore-*-elf)
5605 tm_file=mcore/mcore-elf.h
5606 tmake_file=mcore/t-mcore
5607 ;;
5608 mcore-*-pe*)
5609 tm_file=mcore/mcore-pe.h
5610 tmake_file=mcore/t-mcore-pe
5611 ;;
5612 mips-sgi-irix6*) # SGI System V.4., IRIX 6
5613 if test "x$gnu_ld" = xyes
5614 then
5615 tm_file="mips/iris6.h mips/iris6gld.h"
5616 else
5617 tm_file=mips/iris6.h
5618 fi
5619 tmake_file=mips/t-iris6
5620 xm_file=mips/xm-iris6.h
5621 xmake_file=mips/x-iris6
5622 # if test x$enable_threads = xyes; then
5623 # thread_file='irix'
5624 # fi
5625 ;;
5626 mips-wrs-vxworks)
5627 tm_file="mips/elf.h mips/vxworks.h"
5628 tmake_file=mips/t-ecoff
5629 gas=yes
5630 gnu_ld=yes
5631 extra_parts="crtbegin.o crtend.o"
5632 thread_file='vxworks'
5633 ;;
5634 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
5635 tm_file="mips/iris6.h mips/cross64.h"
5636 xm_defines=USG
5637 xm_file="mips/xm-iris5.h"
5638 xmake_file=mips/x-iris
5639 tmake_file=mips/t-cross64
5640 # See comment in mips/iris[56].h files.
5641 use_collect2=yes
5642 # if test x$enable_threads = xyes; then
5643 # thread_file='irix'
5644 # fi
5645 ;;
5646 mips-sni-sysv4)
5647 if test x$gas = xyes
5648 then
5649 if test x$stabs = xyes
5650 then
5651 tm_file=mips/iris5gdb.h
5652 else
5653 tm_file="mips/sni-svr4.h mips/sni-gas.h"
5654 fi
5655 else
5656 tm_file=mips/sni-svr4.h
5657 fi
5658 xm_defines=USG
5659 xmake_file=mips/x-sni-svr4
5660 tmake_file=mips/t-mips-gas
5661 if test x$gnu_ld != xyes
5662 then
5663 use_collect2=yes
5664 fi
5665 ;;
5666 mips-sgi-irix5*) # SGI System V.4., IRIX 5
5667 if test x$gas = xyes
5668 then
5669 tm_file="mips/iris5.h mips/iris5gas.h"
5670 if test x$stabs = xyes
5671 then
5672 tm_file="${tm_file} dbx.h"
5673 fi
5674 else
5675 tm_file=mips/iris5.h
5676 fi
5677 xm_defines=USG
5678 xm_file="mips/xm-iris5.h"
5679 xmake_file=mips/x-iris
5680 # mips-tfile doesn't work yet
5681 tmake_file=mips/t-mips-gas
5682 # See comment in mips/iris5.h file.
5683 use_collect2=yes
5684 # if test x$enable_threads = xyes; then
5685 # thread_file='irix'
5686 # fi
5687 ;;
5688 mips-sgi-irix4loser*) # Mostly like a MIPS.
5689 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
5690 if test x$stabs = xyes; then
5691 tm_file="${tm_file} dbx.h"
5692 fi
5693 xm_defines=USG
5694 xmake_file=mips/x-iris
5695 if test x$gas = xyes
5696 then
5697 tmake_file=mips/t-mips-gas
5698 else
5699 extra_passes="mips-tfile mips-tdump"
5700 fi
5701 if test x$gnu_ld != xyes
5702 then
5703 use_collect2=yes
5704 fi
5705 # if test x$enable_threads = xyes; then
5706 # thread_file='irix'
5707 # fi
5708 ;;
5709 mips-sgi-irix4*) # Mostly like a MIPS.
5710 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
5711 if test x$stabs = xyes; then
5712 tm_file="${tm_file} dbx.h"
5713 fi
5714 xm_defines=USG
5715 xmake_file=mips/x-iris
5716 if test x$gas = xyes
5717 then
5718 tmake_file=mips/t-mips-gas
5719 else
5720 extra_passes="mips-tfile mips-tdump"
5721 fi
5722 if test x$gnu_ld != xyes
5723 then
5724 use_collect2=yes
5725 fi
5726 # if test x$enable_threads = xyes; then
5727 # thread_file='irix'
5728 # fi
5729 ;;
5730 mips-sgi-*) # Mostly like a MIPS.
5731 tm_file="mips/iris3.h ${tm_file}"
5732 if test x$stabs = xyes; then
5733 tm_file="${tm_file} dbx.h"
5734 fi
5735 xm_defines=USG
5736 xmake_file=mips/x-iris3
5737 if test x$gas = xyes
5738 then
5739 tmake_file=mips/t-mips-gas
5740 else
5741 extra_passes="mips-tfile mips-tdump"
5742 fi
5743 if test x$gnu_ld != xyes
5744 then
5745 use_collect2=yes
5746 fi
5747 ;;
5748 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
5749 tm_file="mips/osfrose.h ${tm_file}"
5750 xmake_file=mips/x-osfrose
5751 tmake_file=mips/t-osfrose
5752 extra_objs=halfpic.o
5753 use_collect2=yes
5754 ;;
5755 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
5756 tm_file=mips/dec-osf1.h
5757 if test x$stabs = xyes; then
5758 tm_file="${tm_file} dbx.h"
5759 fi
5760 xmake_file=mips/x-dec-osf1
5761 if test x$gas = xyes
5762 then
5763 tmake_file=mips/t-mips-gas
5764 else
5765 tmake_file=mips/t-ultrix
5766 extra_passes="mips-tfile mips-tdump"
5767 fi
5768 if test x$gnu_ld != xyes
5769 then
5770 use_collect2=yes
5771 fi
5772 ;;
5773 mips-dec-bsd*) # Decstation running 4.4 BSD
5774 tm_file=mips/dec-bsd.h
5775 if test x$gas = xyes
5776 then
5777 tmake_file=mips/t-mips-gas
5778 else
5779 tmake_file=mips/t-ultrix
5780 extra_passes="mips-tfile mips-tdump"
5781 fi
5782 if test x$gnu_ld != xyes
5783 then
5784 use_collect2=yes
5785 fi
5786 ;;
5787 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
5788 tm_file=mips/netbsd.h
5789 # On NetBSD, the headers are already okay, except for math.h.
5790 tmake_file=t-netbsd
5791 ;;
5792 mips*-*-linux*) # Linux MIPS, either endian.
5793 xmake_file=x-linux
5794 case $machine in
5795 mips*el-*) tm_file="mips/elfl.h mips/linux.h" ;;
5796 *) tm_file="mips/elf.h mips/linux.h" ;;
5797 esac
5798 tmake_file=t-linux
5799 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5800 gnu_ld=yes
5801 gas=yes
5802 if test x$enable_threads = xyes; then
5803 thread_file='posix'
5804 fi
5805 ;;
5806 mips*el-*-openbsd*) # mips little endian
5807 target_cpu_default="MASK_GAS|MASK_ABICALLS"
5808 ;;
5809 mips*-*-openbsd*) # mips big endian
5810 target_cpu_default="MASK_GAS|MASK_ABICALLS"
5811 tm_file="mips/openbsd-be.h ${tm_file}"
5812 ;;
5813 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
5814 tm_file="mips/news4.h ${tm_file}"
5815 if test x$stabs = xyes; then
5816 tm_file="${tm_file} dbx.h"
5817 fi
5818 if test x$gas = xyes
5819 then
5820 tmake_file=mips/t-mips-gas
5821 else
5822 extra_passes="mips-tfile mips-tdump"
5823 fi
5824 if test x$gnu_ld != xyes
5825 then
5826 use_collect2=yes
5827 fi
5828 xmake_file=mips/x-sony
5829 ;;
5830 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
5831 # That is based on svr4.
5832 # t-svr4 is not right because this system doesn't use ELF.
5833 tm_file="mips/news5.h ${tm_file}"
5834 if test x$stabs = xyes; then
5835 tm_file="${tm_file} dbx.h"
5836 fi
5837 xm_defines=USG
5838 if test x$gas = xyes
5839 then
5840 tmake_file=mips/t-mips-gas
5841 else
5842 extra_passes="mips-tfile mips-tdump"
5843 fi
5844 if test x$gnu_ld != xyes
5845 then
5846 use_collect2=yes
5847 fi
5848 ;;
5849 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
5850 tm_file="mips/svr4-5.h mips/svr4-t.h"
5851 if test x$stabs = xyes; then
5852 tm_file="${tm_file} dbx.h"
5853 fi
5854 xm_defines=USG
5855 xmake_file=mips/x-sysv
5856 if test x$gas = xyes
5857 then
5858 tmake_file=mips/t-mips-gas
5859 extra_parts="crtbegin.o crtend.o"
5860 else
5861 tmake_file=mips/t-mips
5862 extra_passes="mips-tfile mips-tdump"
5863 fi
5864 if test x$gnu_ld != xyes
5865 then
5866 use_collect2=yes
5867 fi
5868 ;;
5869 mips-*-ultrix* | mips-dec-mach3) # Decstation.
5870 tm_file="mips/ultrix.h ${tm_file}"
5871 if test x$stabs = xyes; then
5872 tm_file="${tm_file} dbx.h"
5873 fi
5874 xmake_file=mips/x-ultrix
5875 if test x$gas = xyes
5876 then
5877 tmake_file=mips/t-mips-gas
5878 else
5879 tmake_file=mips/t-ultrix
5880 extra_passes="mips-tfile mips-tdump"
5881 fi
5882 if test x$gnu_ld != xyes
5883 then
5884 use_collect2=yes
5885 fi
5886 ;;
5887 mips-*-riscos[56789]bsd*)
5888 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
5889 if test x$stabs = xyes; then
5890 tm_file="${tm_file} dbx.h"
5891 fi
5892 if test x$gas = xyes
5893 then
5894 tmake_file=mips/t-bsd-gas
5895 else
5896 tmake_file=mips/t-bsd
5897 extra_passes="mips-tfile mips-tdump"
5898 fi
5899 if test x$gnu_ld != xyes
5900 then
5901 use_collect2=yes
5902 fi
5903 ;;
5904 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
5905 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
5906 if test x$stabs = xyes; then
5907 tm_file="${tm_file} dbx.h"
5908 fi
5909 if test x$gas = xyes
5910 then
5911 tmake_file=mips/t-bsd-gas
5912 else
5913 tmake_file=mips/t-bsd
5914 extra_passes="mips-tfile mips-tdump"
5915 fi
5916 if test x$gnu_ld != xyes
5917 then
5918 use_collect2=yes
5919 fi
5920 ;;
5921 mips-*-riscos[56789]sysv4*)
5922 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
5923 if test x$stabs = xyes; then
5924 tm_file="${tm_file} dbx.h"
5925 fi
5926 xmake_file=mips/x-sysv
5927 if test x$gas = xyes
5928 then
5929 tmake_file=mips/t-svr4-gas
5930 else
5931 tmake_file=mips/t-svr4
5932 extra_passes="mips-tfile mips-tdump"
5933 fi
5934 if test x$gnu_ld != xyes
5935 then
5936 use_collect2=yes
5937 fi
5938 ;;
5939 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
5940 tm_file="mips/svr4-4.h ${tm_file}"
5941 if test x$stabs = xyes; then
5942 tm_file="${tm_file} dbx.h"
5943 fi
5944 xm_defines=USG
5945 xmake_file=mips/x-sysv
5946 if test x$gas = xyes
5947 then
5948 tmake_file=mips/t-svr4-gas
5949 else
5950 tmake_file=mips/t-svr4
5951 extra_passes="mips-tfile mips-tdump"
5952 fi
5953 if test x$gnu_ld != xyes
5954 then
5955 use_collect2=yes
5956 fi
5957 ;;
5958 mips-*-riscos[56789]sysv*)
5959 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
5960 if test x$stabs = xyes; then
5961 tm_file="${tm_file} dbx.h"
5962 fi
5963 xm_defines=USG
5964 xmake_file=mips/x-sysv
5965 if test x$gas = xyes
5966 then
5967 tmake_file=mips/t-svr3-gas
5968 else
5969 tmake_file=mips/t-svr3
5970 extra_passes="mips-tfile mips-tdump"
5971 fi
5972 if test x$gnu_ld != xyes
5973 then
5974 use_collect2=yes
5975 fi
5976 ;;
5977 mips-*-sysv* | mips-*-riscos*sysv*)
5978 tm_file="mips/svr3-4.h ${tm_file}"
5979 if test x$stabs = xyes; then
5980 tm_file="${tm_file} dbx.h"
5981 fi
5982 xm_defines=USG
5983 xmake_file=mips/x-sysv
5984 if test x$gas = xyes
5985 then
5986 tmake_file=mips/t-svr3-gas
5987 else
5988 tmake_file=mips/t-svr3
5989 extra_passes="mips-tfile mips-tdump"
5990 fi
5991 if test x$gnu_ld != xyes
5992 then
5993 use_collect2=yes
5994 fi
5995 ;;
5996 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
5997 tm_file=mips/mips-5.h
5998 if test x$stabs = xyes; then
5999 tm_file="${tm_file} dbx.h"
6000 fi
6001 if test x$gas = xyes
6002 then
6003 tmake_file=mips/t-mips-gas
6004 else
6005 extra_passes="mips-tfile mips-tdump"
6006 fi
6007 if test x$gnu_ld != xyes
6008 then
6009 use_collect2=yes
6010 fi
6011 ;;
6012 mips-*-gnu*)
6013 ;;
6014 mipsel-*-ecoff*)
6015 tm_file=mips/ecoffl.h
6016 if test x$stabs = xyes; then
6017 tm_file="${tm_file} dbx.h"
6018 fi
6019 tmake_file=mips/t-ecoff
6020 ;;
6021 mips-*-ecoff*)
6022 tm_file="gofast.h mips/ecoff.h"
6023 if test x$stabs = xyes; then
6024 tm_file="${tm_file} dbx.h"
6025 fi
6026 tmake_file=mips/t-ecoff
6027 ;;
6028 mipsel-*-elf*)
6029 tm_file="mips/elfl.h"
6030 tmake_file=mips/t-elf
6031 ;;
6032 mips-*-elf*)
6033 tm_file="mips/elf.h"
6034 tmake_file=mips/t-elf
6035 ;;
6036 mips64el-*-elf*)
6037 tm_file="mips/elfl64.h"
6038 tmake_file=mips/t-elf
6039 ;;
6040 mips64orionel-*-elf*)
6041 tm_file="mips/elforion.h mips/elfl64.h"
6042 tmake_file=mips/t-elf
6043 ;;
6044 mips64-*-elf*)
6045 tm_file="mips/elf64.h"
6046 tmake_file=mips/t-elf
6047 ;;
6048 mips64orion-*-elf*)
6049 tm_file="mips/elforion.h mips/elf64.h"
6050 tmake_file=mips/t-elf
6051 ;;
6052 mips64orion-*-rtems*)
6053 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
6054 tmake_file="mips/t-elf t-rtems"
6055 ;;
6056 mipstx39el-*-elf*)
6057 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
6058 tmake_file=mips/t-r3900
6059 ;;
6060 mipstx39-*-elf*)
6061 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
6062 tmake_file=mips/t-r3900
6063 ;;
6064 mips-*-*) # Default MIPS RISC-OS 4.0.
6065 if test x$stabs = xyes; then
6066 tm_file="${tm_file} dbx.h"
6067 fi
6068 if test x$gas = xyes
6069 then
6070 tmake_file=mips/t-mips-gas
6071 else
6072 extra_passes="mips-tfile mips-tdump"
6073 fi
6074 if test x$gnu_ld != xyes
6075 then
6076 use_collect2=yes
6077 fi
6078 ;;
6079 mn10200-*-*)
6080 float_format=i32
6081 cpu_type=mn10200
6082 tm_file="mn10200/mn10200.h"
6083 if test x$stabs = xyes
6084 then
6085 tm_file="${tm_file} dbx.h"
6086 fi
6087 use_collect2=no
6088 ;;
6089 mn10300-*-*)
6090 cpu_type=mn10300
6091 tm_file="mn10300/mn10300.h"
6092 if test x$stabs = xyes
6093 then
6094 tm_file="${tm_file} dbx.h"
6095 fi
6096 use_collect2=no
6097 ;;
6098 ns32k-encore-bsd*)
6099 tm_file=ns32k/encore.h
6100 use_collect2=yes
6101 ;;
6102 ns32k-sequent-bsd*)
6103 tm_file=ns32k/sequent.h
6104 use_collect2=yes
6105 ;;
6106 ns32k-tek6100-bsd*)
6107 tm_file=ns32k/tek6100.h
6108 use_collect2=yes
6109 ;;
6110 ns32k-tek6200-bsd*)
6111 tm_file=ns32k/tek6200.h
6112 use_collect2=yes
6113 ;;
6114 # This has not been updated to GCC 2.
6115 # ns32k-ns-genix*)
6116 # xm_defines=USG
6117 # xmake_file=ns32k/x-genix
6118 # tm_file=ns32k/genix.h
6119 # use_collect2=yes
6120 # ;;
6121 ns32k-merlin-*)
6122 tm_file=ns32k/merlin.h
6123 use_collect2=yes
6124 ;;
6125 ns32k-pc532-mach*)
6126 tm_file=ns32k/pc532-mach.h
6127 use_collect2=yes
6128 ;;
6129 ns32k-pc532-minix*)
6130 tm_file=ns32k/pc532-min.h
6131 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
6132 xm_defines=USG
6133 use_collect2=yes
6134 ;;
6135 ns32k-*-netbsd*)
6136 tm_file=ns32k/netbsd.h
6137 xm_file="ns32k/xm-netbsd.h ${xm_file}"
6138 # On NetBSD, the headers are already okay, except for math.h.
6139 tmake_file=t-netbsd
6140 use_collect2=yes
6141 ;;
6142 pdp11-*-bsd)
6143 tm_file="${tm_file} pdp11/2bsd.h"
6144 ;;
6145 pdp11-*-*)
6146 ;;
6147 avr-*-*)
6148 ;;
6149 ns32k-*-openbsd*)
6150 # Nothing special
6151 ;;
6152 # This has not been updated to GCC 2.
6153 # pyramid-*-*)
6154 # cpu_type=pyr
6155 # xmake_file=pyr/x-pyr
6156 # use_collect2=yes
6157 # ;;
6158
6159 pj*-linux*)
6160 tm_file="svr4.h pj/linux.h ${tm_file}"
6161 ;;
6162 pj-*)
6163 ;;
6164 pjl-*)
6165 tm_file="svr4.h pj/pjl.h ${tm_file}"
6166 ;;
6167
6168 romp-*-aos*)
6169 use_collect2=yes
6170 ;;
6171 romp-*-mach*)
6172 xmake_file=romp/x-mach
6173 use_collect2=yes
6174 ;;
6175 romp-*-openbsd*)
6176 # Nothing special
6177 ;;
6178 powerpc-*-openbsd*)
6179 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
6180 ;;
6181 powerpc-*-beos*)
6182 cpu_type=rs6000
6183 tm_file=rs6000/beos.h
6184 xm_file=rs6000/xm-beos.h
6185 tmake_file=rs6000/t-beos
6186 xmake_file=rs6000/x-beos
6187 ;;
6188 powerpc-*-sysv*)
6189 tm_file=rs6000/sysv4.h
6190 xm_file="rs6000/xm-sysv4.h"
6191 xm_defines="USG POSIX"
6192 extra_headers=ppc-asm.h
6193 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
6194 xmake_file=rs6000/x-sysv4
6195 ;;
6196 powerpc-*-eabiaix*)
6197 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
6198 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
6199 extra_headers=ppc-asm.h
6200 ;;
6201 powerpc-*-eabisim*)
6202 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
6203 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
6204 extra_headers=ppc-asm.h
6205 ;;
6206 powerpc-*-elf*)
6207 tm_file="rs6000/sysv4.h"
6208 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
6209 extra_headers=ppc-asm.h
6210 ;;
6211 powerpc-*-eabi*)
6212 tm_file="rs6000/sysv4.h rs6000/eabi.h"
6213 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
6214 extra_headers=ppc-asm.h
6215 ;;
6216 powerpc-*-rtems*)
6217 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
6218 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
6219 extra_headers=ppc-asm.h
6220 ;;
6221 powerpc-*-linux*libc1)
6222 tm_file="rs6000/sysv4.h rs6000/linux.h"
6223 xm_file=rs6000/xm-sysv4.h
6224 out_file=rs6000/rs6000.c
6225 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
6226 xmake_file=x-linux
6227 extra_headers=ppc-asm.h
6228 if test x$enable_threads = xyes; then
6229 thread_file='posix'
6230 fi
6231 ;;
6232 powerpc-*-linux*)
6233 tm_file="rs6000/sysv4.h rs6000/linux.h"
6234 xm_file="rs6000/xm-sysv4.h"
6235 xm_defines="USG ${xm_defines}"
6236 out_file=rs6000/rs6000.c
6237 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
6238 xmake_file=x-linux
6239 extra_headers=ppc-asm.h
6240 if test x$enable_threads = xyes; then
6241 thread_file='posix'
6242 fi
6243 ;;
6244 powerpc-wrs-vxworks*)
6245 cpu_type=rs6000
6246 xm_file="rs6000/xm-sysv4.h"
6247 xm_defines="USG POSIX"
6248 tm_file="rs6000/sysv4.h rs6000/vxppc.h"
6249 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
6250 extra_headers=ppc-asm.h
6251 thread_file='vxworks'
6252 ;;
6253 powerpcle-wrs-vxworks*)
6254 cpu_type=rs6000
6255 xm_file="rs6000/xm-sysv4.h"
6256 xm_defines="USG POSIX"
6257 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
6258 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
6259 extra_headers=ppc-asm.h
6260 thread_file='vxworks'
6261 ;;
6262 powerpcle-*-sysv*)
6263 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
6264 xm_file="rs6000/xm-sysv4.h"
6265 xm_defines="USG POSIX"
6266 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
6267 xmake_file=rs6000/x-sysv4
6268 extra_headers=ppc-asm.h
6269 ;;
6270 powerpcle-*-elf*)
6271 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
6272 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
6273 extra_headers=ppc-asm.h
6274 ;;
6275 powerpcle-*-eabisim*)
6276 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
6277 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
6278 extra_headers=ppc-asm.h
6279 ;;
6280 powerpcle-*-eabi*)
6281 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
6282 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
6283 extra_headers=ppc-asm.h
6284 ;;
6285 powerpcle-*-solaris2*)
6286 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
6287 xm_file="rs6000/xm-sysv4.h"
6288 xm_defines="USG POSIX"
6289 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
6290 xmake_file=rs6000/x-sysv4
6291 extra_headers=ppc-asm.h
6292 ;;
6293 rs6000-ibm-aix3.[01]*)
6294 tm_file=rs6000/aix31.h
6295 xmake_file=rs6000/x-aix31
6296 float_format=none
6297 use_collect2=yes
6298 ;;
6299 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
6300 tm_file=rs6000/aix3newas.h
6301 if test x$host != x$target
6302 then
6303 tmake_file=rs6000/t-xnewas
6304 else
6305 tmake_file=rs6000/t-newas
6306 fi
6307 float_format=none
6308 use_collect2=yes
6309 ;;
6310 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
6311 tm_file=rs6000/aix41.h
6312 if test x$host != x$target
6313 then
6314 tmake_file=rs6000/t-xnewas
6315 else
6316 tmake_file=rs6000/t-newas
6317 fi
6318 if test "$gnu_ld" = yes
6319 then
6320 xmake_file=rs6000/x-aix41-gld
6321 else
6322 tmake_file='rs6000/t-newas rs6000/t-aix41'
6323 fi
6324 xmake_file=rs6000/x-aix41
6325 float_format=none
6326 use_collect2=yes
6327 ;;
6328 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
6329 tm_file=rs6000/aix43.h
6330 tmake_file=rs6000/t-aix43
6331 xmake_file=rs6000/x-aix41
6332 float_format=none
6333 use_collect2=yes
6334 thread_file='aix'
6335 ;;
6336 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
6337 tm_file=rs6000/aix43.h
6338 tmake_file=rs6000/t-aix43
6339 xmake_file=rs6000/x-aix41
6340 float_format=none
6341 use_collect2=yes
6342 thread_file='aix'
6343 ;;
6344 rs6000-ibm-aix*)
6345 float_format=none
6346 use_collect2=yes
6347 ;;
6348 rs6000-bull-bosx)
6349 float_format=none
6350 use_collect2=yes
6351 ;;
6352 rs6000-*-mach*)
6353 tm_file=rs6000/mach.h
6354 xm_file="${xm_file} rs6000/xm-mach.h"
6355 xmake_file=rs6000/x-mach
6356 use_collect2=yes
6357 ;;
6358 rs6000-*-lynxos*)
6359 tm_file=rs6000/lynx.h
6360 xm_file=rs6000/xm-lynx.h
6361 tmake_file=rs6000/t-rs6000
6362 xmake_file=rs6000/x-lynx
6363 use_collect2=yes
6364 ;;
6365 sh-*-elf*)
6366 tmake_file="sh/t-sh sh/t-elf"
6367 tm_file="sh/sh.h sh/elf.h"
6368 float_format=sh
6369 ;;
6370 sh-*-rtemself*)
6371 tmake_file="sh/t-sh sh/t-elf t-rtems"
6372 tm_file="sh/sh.h sh/elf.h sh/rtemself.h"
6373 float_format=sh
6374 ;;
6375 sh-*-rtems*)
6376 tmake_file="sh/t-sh t-rtems"
6377 tm_file="sh/sh.h sh/rtems.h"
6378 float_format=sh
6379 ;;
6380 sh-*-linux*)
6381 tm_file="sh/sh.h sh/elf.h sh/linux.h"
6382 tmake_file="sh/t-sh sh/t-elf sh/t-linux"
6383 xmake_file=x-linux
6384 gas=yes gnu_ld=yes
6385 if test x$enable_threads = xyes; then
6386 thread_file='posix'
6387 fi
6388 float_format=sh
6389 ;;
6390 sh-*-*)
6391 float_format=sh
6392 ;;
6393 sparc-tti-*)
6394 tm_file=sparc/pbd.h
6395 xm_file="xm-alloca.h ${xm_file}"
6396 xm_defines=USG
6397 ;;
6398 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
6399 tm_file=sparc/vxsparc.h
6400 tmake_file=sparc/t-vxsparc
6401 use_collect2=yes
6402 thread_file='vxworks'
6403 ;;
6404 sparc-*-aout*)
6405 tmake_file=sparc/t-sparcbare
6406 tm_file="sparc/aout.h libgloss.h"
6407 ;;
6408 sparc-*-netbsd*)
6409 tm_file=sparc/netbsd.h
6410 tmake_file=t-netbsd
6411 use_collect2=yes
6412 ;;
6413 sparc-*-openbsd*)
6414 # we need collect2 until our bug is fixed...
6415 use_collect2=yes
6416 ;;
6417 sparc-*-bsd*)
6418 tm_file=sparc/bsd.h
6419 ;;
6420 sparc-*-elf*)
6421 tm_file=sparc/elf.h
6422 tmake_file=sparc/t-elf
6423 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
6424 #float_format=i128
6425 float_format=i64
6426 ;;
6427 sparc-*-linux*aout*) # Sparc's running GNU/Linux, a.out
6428 xm_file="${xm_file} sparc/xm-linux.h"
6429 tm_file=sparc/linux-aout.h
6430 xmake_file=x-linux
6431 gnu_ld=yes
6432 ;;
6433 sparc-*-linux*libc1*) # Sparc's running GNU/Linux, libc5
6434 xm_file="${xm_file} sparc/xm-linux.h"
6435 xmake_file=x-linux
6436 tm_file=sparc/linux.h
6437 tmake_file="t-linux t-linux-gnulibc1"
6438 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6439 gnu_ld=yes
6440 float_format=sparc
6441 ;;
6442 sparc-*-linux*) # Sparc's running GNU/Linux, libc6
6443 xm_file="${xm_file} sparc/xm-linux.h"
6444 xmake_file=x-linux
6445 tm_file=sparc/linux.h
6446 tmake_file="t-linux"
6447 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6448 gnu_ld=yes
6449 if test x$enable_threads = xyes; then
6450 thread_file='posix'
6451 fi
6452 float_format=sparc
6453 ;;
6454 sparc-*-lynxos*)
6455 if test x$gas = xyes
6456 then
6457 tm_file=sparc/lynx.h
6458 else
6459 tm_file=sparc/lynx-ng.h
6460 fi
6461 xm_file=sparc/xm-lynx.h
6462 tmake_file=sparc/t-sunos41
6463 xmake_file=x-lynx
6464 ;;
6465 sparc-*-rtemsaout*)
6466 tmake_file="sparc/t-sparcbare t-rtems"
6467 tm_file=sparc/rtems.h
6468 ;;
6469 sparc-*-rtems*|sparc-*-rtemself*)
6470 tm_file="sparc/rtemself.h"
6471 tmake_file="sparc/t-elf t-rtems"
6472 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
6473 #float_format=i128
6474 float_format=i64
6475 ;;
6476 sparcv9-*-solaris2*)
6477 if test x$gnu_ld = xyes
6478 then
6479 tm_file=sparc/sol2-64.h
6480 else
6481 tm_file=sparc/sol2-sld-64.h
6482 fi
6483 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
6484 xm_defines="USG POSIX"
6485 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
6486 xmake_file=sparc/x-sysv4
6487 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
6488 float_format=none
6489 if test x${enable_threads} = x ; then
6490 enable_threads=$have_pthread_h
6491 if test x${enable_threads} = x ; then
6492 enable_threads=$have_thread_h
6493 fi
6494 fi
6495 if test x${enable_threads} = xyes ; then
6496 if test x${have_pthread_h} = xyes ; then
6497 thread_file='posix'
6498 else
6499 thread_file='solaris'
6500 fi
6501 fi
6502 ;;
6503 sparc-hal-solaris2*)
6504 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
6505 xm_defines="USG POSIX"
6506 tm_file="sparc/sol2.h sparc/hal.h"
6507 tmake_file="sparc/t-halos sparc/t-sol2"
6508 xmake_file=sparc/x-sysv4
6509 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
6510 case $machine in
6511 *-*-solaris2.[0-4])
6512 float_format=i128
6513 ;;
6514 *)
6515 float_format=none
6516 ;;
6517 esac
6518 thread_file='solaris'
6519 ;;
6520 sparc-*-solaris2*)
6521 if test x$gnu_ld = xyes
6522 then
6523 tm_file=sparc/sol2.h
6524 else
6525 tm_file=sparc/sol2-sld.h
6526 fi
6527 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
6528 xm_defines="USG POSIX"
6529 tmake_file=sparc/t-sol2
6530 xmake_file=sparc/x-sysv4
6531 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
6532 case $machine in
6533 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
6534 *-*-solaris2*)
6535 if test x$gnu_ld = xyes
6536 then
6537 tm_file=sparc/sol2-64.h
6538 else
6539 tm_file=sparc/sol2-sld-64.h
6540 fi
6541 tmake_file="$tmake_file sparc/t-sol2-64"
6542 ;;
6543 esac
6544 case $machine in
6545 *-*-solaris2.[0-4])
6546 float_format=i128
6547 ;;
6548 *)
6549 float_format=none
6550 ;;
6551 esac
6552 if test x${enable_threads} = x; then
6553 enable_threads=$have_pthread_h
6554 if test x${enable_threads} = x; then
6555 enable_threads=$have_thread_h
6556 fi
6557 fi
6558 if test x${enable_threads} = xyes; then
6559 if test x${have_pthread_h} = xyes; then
6560 thread_file='posix'
6561 else
6562 thread_file='solaris'
6563 fi
6564 fi
6565 ;;
6566 sparc-*-sunos4.0*)
6567 tm_file=sparc/sunos4.h
6568 tmake_file=sparc/t-sunos40
6569 use_collect2=yes
6570 ;;
6571 sparc-*-sunos4*)
6572 tm_file=sparc/sunos4.h
6573 tmake_file=sparc/t-sunos41
6574 use_collect2=yes
6575 if test x$gas = xyes; then
6576 tm_file="${tm_file} sparc/sun4gas.h"
6577 fi
6578 ;;
6579 sparc-*-sunos3*)
6580 tm_file=sparc/sun4o3.h
6581 use_collect2=yes
6582 ;;
6583 sparc-*-sysv4*)
6584 tm_file=sparc/sysv4.h
6585 xm_file="sparc/xm-sysv4.h"
6586 xm_defines="USG POSIX"
6587 tmake_file=t-svr4
6588 xmake_file=sparc/x-sysv4
6589 extra_parts="crtbegin.o crtend.o"
6590 ;;
6591 sparc-*-vxsim*)
6592 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
6593 xm_defines="USG POSIX"
6594 tm_file=sparc/vxsim.h
6595 tmake_file=sparc/t-vxsparc
6596 xmake_file=sparc/x-sysv4
6597 ;;
6598 sparclet-*-aout*)
6599 tm_file="sparc/splet.h libgloss.h"
6600 tmake_file=sparc/t-splet
6601 ;;
6602 sparclite-*-coff*)
6603 tm_file="sparc/litecoff.h libgloss.h"
6604 tmake_file=sparc/t-sparclite
6605 ;;
6606 sparclite-*-aout*)
6607 tm_file="sparc/lite.h aoutos.h libgloss.h"
6608 tmake_file=sparc/t-sparclite
6609 ;;
6610 sparclite-*-elf*)
6611 tm_file="sparc/liteelf.h"
6612 tmake_file=sparc/t-sparclite
6613 extra_parts="crtbegin.o crtend.o"
6614 ;;
6615 sparc86x-*-aout*)
6616 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
6617 tmake_file=sparc/t-sp86x
6618 ;;
6619 sparc86x-*-elf*)
6620 tm_file="sparc/sp86x-elf.h"
6621 tmake_file=sparc/t-sp86x
6622 extra_parts="crtbegin.o crtend.o"
6623 ;;
6624 sparc64-*-aout*)
6625 tmake_file=sparc/t-sp64
6626 tm_file=sparc/sp64-aout.h
6627 ;;
6628 sparc64-*-elf*)
6629 tmake_file=sparc/t-sp64
6630 tm_file=sparc/sp64-elf.h
6631 extra_parts="crtbegin.o crtend.o"
6632 ;;
6633 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
6634 tmake_file="t-linux sparc/t-linux64"
6635 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
6636 tm_file=sparc/linux64.h
6637 xmake_file=x-linux
6638 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6639 gnu_ld=yes
6640 if test x$enable_threads = xyes; then
6641 thread_file='posix'
6642 fi
6643 float_format=sparc
6644 ;;
6645 # This hasn't been upgraded to GCC 2.
6646 # tahoe-harris-*) # Harris tahoe, using COFF.
6647 # tm_file=tahoe/harris.h
6648 # ;;
6649 # tahoe-*-bsd*) # tahoe running BSD
6650 # ;;
6651
6652 thumb*-*-*)
6653 { echo "configure: error:
6654 *** The Thumb targets have been depreciated. The equivalent
6655 *** ARM based toolchain can now generated Thumb instructions
6656 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
6657 ;;
6658 # This hasn't been upgraded to GCC 2.
6659 # tron-*-*)
6660 # cpu_type=gmicro
6661 # use_collect2=yes
6662 # ;;
6663 v850-*-rtems*)
6664 cpu_type=v850
6665 tm_file="v850/rtems.h"
6666 xm_file="v850/xm-v850.h"
6667 tmake_file="v850/t-v850 t-rtems"
6668 if test x$stabs = xyes
6669 then
6670 tm_file="${tm_file} dbx.h"
6671 fi
6672 use_collect2=no
6673 ;;
6674 v850-*-*)
6675 target_cpu_default="TARGET_CPU_generic"
6676 cpu_type=v850
6677 tm_file="v850/v850.h"
6678 xm_file="v850/xm-v850.h"
6679 tmake_file=v850/t-v850
6680 if test x$stabs = xyes
6681 then
6682 tm_file="${tm_file} dbx.h"
6683 fi
6684 use_collect2=no
6685 ;;
6686 vax-*-bsd*) # vaxen running BSD
6687 use_collect2=yes
6688 float_format=vax
6689 ;;
6690 vax-*-sysv*) # vaxen running system V
6691 tm_file="${tm_file} vax/vaxv.h"
6692 xm_defines=USG
6693 float_format=vax
6694 ;;
6695 vax-*-netbsd*)
6696 tm_file="${tm_file} netbsd.h vax/netbsd.h"
6697 tmake_file=t-netbsd
6698 float_format=vax
6699 use_collect2=yes
6700 ;;
6701 vax-*-openbsd*)
6702 tmake_file="${tmake_file} vax/t-openbsd"
6703 tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
6704 xm_file="xm-openbsd.h vax/xm-vax.h"
6705 float_format=vax
6706 use_collect2=yes
6707 ;;
6708 vax-*-ultrix*) # vaxen running ultrix
6709 tm_file="${tm_file} vax/ultrix.h"
6710 float_format=vax
6711 ;;
6712 vax-*-vms*) # vaxen running VMS
6713 xm_file=vax/xm-vms.h
6714 tm_file=vax/vms.h
6715 float_format=vax
6716 ;;
6717 vax-*-*) # vax default entry
6718 float_format=vax
6719 ;;
6720 we32k-att-sysv*)
6721 xm_file="${xm_file} xm-svr3"
6722 use_collect2=yes
6723 ;;
6724 *)
6725 echo "Configuration $machine not supported" 1>&2
6726 exit 1
6727 ;;
6728 esac
6729
6730 case $machine in
6731 *-*-linux*)
6732 ;; # Existing GNU/Linux systems do not use the GNU setup.
6733 *-*-gnu*)
6734 # On the GNU system, the setup is just about the same on
6735 # each different CPU. The specific machines that GNU
6736 # supports are matched above and just set $cpu_type.
6737 xm_file="xm-gnu.h ${xm_file}"
6738 tm_file=${cpu_type}/gnu.h
6739 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
6740 # GNU always uses ELF.
6741 elf=yes
6742 # GNU tools are the only tools.
6743 gnu_ld=yes
6744 gas=yes
6745 xmake_file=x-linux # These details are the same as Linux.
6746 tmake_file=t-gnu # These are not.
6747 ;;
6748 *-*-sysv4*)
6749 xmake_try_sysv=x-sysv
6750 install_headers_dir=install-headers-cpio
6751 ;;
6752 *-*-sysv*)
6753 install_headers_dir=install-headers-cpio
6754 ;;
6755 esac
6756
6757 # Distinguish i[34567]86
6758 # Also, do not run mips-tfile on MIPS if using gas.
6759 # Process --with-cpu= for PowerPC/rs6000
6760 target_cpu_default2=
6761 case $machine in
6762 i486-*-*)
6763 target_cpu_default2=1
6764 ;;
6765 i586-*-*)
6766 case $target_alias in
6767 k6-*)
6768 target_cpu_default2=4
6769 ;;
6770 *)
6771 target_cpu_default2=2
6772 ;;
6773 esac
6774 ;;
6775 i686-*-* | i786-*-*)
6776 target_cpu_default2=3
6777 ;;
6778 alpha*-*-*)
6779 case $machine in
6780 alphaev6[78]*)
6781 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
6782 ;;
6783 alphaev6*)
6784 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
6785 ;;
6786 alphapca56*)
6787 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
6788 ;;
6789 alphaev56*)
6790 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
6791 ;;
6792 alphaev5*)
6793 target_cpu_default2="MASK_CPU_EV5"
6794 ;;
6795 esac
6796
6797 if test x$gas = xyes
6798 then
6799 if test "$target_cpu_default2" = ""
6800 then
6801 target_cpu_default2="MASK_GAS"
6802 else
6803 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
6804 fi
6805 fi
6806 ;;
6807 arm*-*-*)
6808 case "x$with_cpu" in
6809 x)
6810 # The most generic
6811 target_cpu_default2="TARGET_CPU_generic"
6812 ;;
6813
6814 # Distinguish cores, and major variants
6815 # arm7m doesn't exist, but D & I don't affect code
6816 xarm[23678] | xarm250 | xarm[67][01]0 \
6817 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
6818 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
6819 | xstrongarm | xstrongarm110 | xstrongarm1100)
6820 target_cpu_default2="TARGET_CPU_$with_cpu"
6821 ;;
6822
6823 xyes | xno)
6824 echo "--with-cpu must be passed a value" 1>&2
6825 exit 1
6826 ;;
6827
6828 *)
6829 if test x$pass2done = xyes
6830 then
6831 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6832 exit 1
6833 fi
6834 ;;
6835 esac
6836 ;;
6837
6838 mips*-*-ecoff* | mips*-*-elf*)
6839 if test x$gas = xyes
6840 then
6841 if test x$gnu_ld = xyes
6842 then
6843 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
6844 else
6845 target_cpu_default2="MASK_GAS"
6846 fi
6847 fi
6848 ;;
6849 mips*-*-*)
6850 if test x$gas = xyes
6851 then
6852 target_cpu_default2="MASK_GAS"
6853 fi
6854 ;;
6855 powerpc*-*-* | rs6000-*-*)
6856 case "x$with_cpu" in
6857 x)
6858 ;;
6859
6860 xcommon | xpower | xpower2 | xpowerpc | xrios \
6861 | xrios1 | xrios2 | xrsc | xrsc1 \
6862 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
6863 | xec603e | x740 | x750 | x401 \
6864 | x403 | x505 | x801 | x821 | x823 | x860)
6865 target_cpu_default2="\"$with_cpu\""
6866 ;;
6867
6868 xyes | xno)
6869 echo "--with-cpu must be passed a value" 1>&2
6870 exit 1
6871 ;;
6872
6873 *)
6874 if test x$pass2done = xyes
6875 then
6876 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6877 exit 1
6878 fi
6879 ;;
6880 esac
6881 ;;
6882 sparc*-*-*)
6883 case ".$with_cpu" in
6884 .)
6885 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
6886 ;;
6887 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
6888 target_cpu_default2="TARGET_CPU_$with_cpu"
6889 ;;
6890 *)
6891 if test x$pass2done = xyes
6892 then
6893 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6894 exit 1
6895 fi
6896 ;;
6897 esac
6898 ;;
6899 esac
6900
6901 if test "$target_cpu_default2" != ""
6902 then
6903 if test "$target_cpu_default" != ""
6904 then
6905 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
6906 else
6907 target_cpu_default=$target_cpu_default2
6908 fi
6909 fi
6910
6911 # No need for collect2 if we have the GNU linker.
6912 # Actually, there is now; GNU ld doesn't handle the EH info or
6913 # collecting for shared libraries.
6914 #case x$gnu_ld in
6915 #xyes)
6916 # use_collect2=
6917 # ;;
6918 #esac
6919
6920 # Save data on machine being used to compile GCC in build_xm_file.
6921 # Save data on host machine in vars host_xm_file and host_xmake_file.
6922 if test x$pass1done = x
6923 then
6924 if test x"$xm_file" = x
6925 then build_xm_file=$cpu_type/xm-$cpu_type.h
6926 else build_xm_file=$xm_file
6927 fi
6928 build_xm_defines=$xm_defines
6929 build_install_headers_dir=$install_headers_dir
6930 build_exeext=$exeext
6931 pass1done=yes
6932 else
6933 if test x$pass2done = x
6934 then
6935 if test x"$xm_file" = x
6936 then host_xm_file=$cpu_type/xm-$cpu_type.h
6937 else host_xm_file=$xm_file
6938 fi
6939 host_xm_defines=$xm_defines
6940 if test x"$xmake_file" = x
6941 then xmake_file=$cpu_type/x-$cpu_type
6942 fi
6943 host_xmake_file="$xmake_file"
6944 host_truncate_target=$truncate_target
6945 host_extra_gcc_objs=$extra_gcc_objs
6946 host_extra_objs=$extra_host_objs
6947 host_exeext=$exeext
6948 pass2done=yes
6949 fi
6950 fi
6951 done
6952
6953 extra_objs="${host_extra_objs} ${extra_objs}"
6954
6955 # Default the target-machine variables that were not explicitly set.
6956 if test x"$tm_file" = x
6957 then tm_file=$cpu_type/$cpu_type.h; fi
6958
6959 if test x$extra_headers = x
6960 then extra_headers=; fi
6961
6962 if test x"$xm_file" = x
6963 then xm_file=$cpu_type/xm-$cpu_type.h; fi
6964
6965 if test x$md_file = x
6966 then md_file=$cpu_type/$cpu_type.md; fi
6967
6968 if test x$out_file = x
6969 then out_file=$cpu_type/$cpu_type.c; fi
6970
6971 if test x"$tmake_file" = x
6972 then tmake_file=$cpu_type/t-$cpu_type
6973 fi
6974
6975 if test x"$dwarf2" = xyes
6976 then tm_file="$tm_file tm-dwarf2.h"
6977 fi
6978
6979 if test x$float_format = x
6980 then float_format=i64
6981 fi
6982
6983 if test $float_format = none
6984 then float_h_file=Makefile.in
6985 else float_h_file=float-$float_format.h
6986 fi
6987
6988 # Handle cpp installation.
6989 if test x$enable_cpp != xno
6990 then
6991 tmake_file="$tmake_file t-install-cpp"
6992 fi
6993
6994 # Say what files are being used for the output code and MD file.
6995 echo "Using \`$srcdir/config/$out_file' to output insns."
6996 echo "Using \`$srcdir/config/$md_file' as machine description file."
6997
6998 count=a
6999 for f in $tm_file; do
7000 count=${count}x
7001 done
7002 if test $count = ax; then
7003 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
7004 else
7005 echo "Using the following target machine macro files:"
7006 for f in $tm_file; do
7007 echo " $srcdir/config/$f"
7008 done
7009 fi
7010
7011 count=a
7012 for f in $host_xm_file; do
7013 count=${count}x
7014 done
7015 if test $count = ax; then
7016 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
7017 else
7018 echo "Using the following host machine macro files:"
7019 for f in $host_xm_file; do
7020 echo " $srcdir/config/$f"
7021 done
7022 fi
7023
7024 if test "$host_xm_file" != "$build_xm_file"; then
7025 count=a
7026 for f in $build_xm_file; do
7027 count=${count}x
7028 done
7029 if test $count = ax; then
7030 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
7031 else
7032 echo "Using the following build machine macro files:"
7033 for f in $build_xm_file; do
7034 echo " $srcdir/config/$f"
7035 done
7036 fi
7037 fi
7038
7039 if test x$thread_file = x; then
7040 if test x$target_thread_file != x; then
7041 thread_file=$target_thread_file
7042 else
7043 thread_file='single'
7044 fi
7045 fi
7046
7047 # Set up the header files.
7048 # $links is the list of header files to create.
7049 # $vars is the list of shell variables with file names to include.
7050 # auto-host.h is the file containing items generated by autoconf and is
7051 # the first file included by config.h.
7052 null_defines=
7053 host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
7054
7055 # If host=build, it is correct to have hconfig include auto-host.h
7056 # as well. If host!=build, we are in error and need to do more
7057 # work to find out the build config parameters.
7058 if test x$host = x$build
7059 then
7060 build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
7061 else
7062 # We create a subdir, then run autoconf in the subdir.
7063 # To prevent recursion we set host and build for the new
7064 # invocation of configure to the build for this invocation
7065 # of configure.
7066 tempdir=build.$$
7067 rm -rf $tempdir
7068 mkdir $tempdir
7069 cd $tempdir
7070 case ${srcdir} in
7071 /*) realsrcdir=${srcdir};;
7072 *) realsrcdir=../${srcdir};;
7073 esac
7074 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
7075 --target=$target --host=$build --build=$build
7076
7077 # We just finished tests for the build machine, so rename
7078 # the file auto-build.h in the gcc directory.
7079 mv auto-host.h ../auto-build.h
7080 cd ..
7081 rm -rf $tempdir
7082 build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
7083 fi
7084
7085 xm_file="gansidecl.h ${xm_file}"
7086 tm_file="gansidecl.h ${tm_file}"
7087
7088 vars="host_xm_file tm_file tm_p_file xm_file build_xm_file"
7089 links="config.h tm.h tm_p.h tconfig.h hconfig.h"
7090 defines="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
7091
7092 rm -f config.bak
7093 if test -f config.status; then mv -f config.status config.bak; fi
7094
7095 # Make the links.
7096 while test -n "$vars"
7097 do
7098 set $vars; var=$1; shift; vars=$*
7099 set $links; link=$1; shift; links=$*
7100 set $defines; define=$1; shift; defines=$*
7101
7102 rm -f $link
7103 # Make sure the file is created, even if it is empty.
7104 echo >$link
7105
7106 # Define TARGET_CPU_DEFAULT if the system wants one.
7107 # This substitutes for lots of *.h files.
7108 if test "$target_cpu_default" != "" -a $link = tm.h
7109 then
7110 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
7111 fi
7112
7113 for file in `eval echo '$'$var`; do
7114 case $file in
7115 auto-host.h | auto-build.h )
7116 ;;
7117 *)
7118 echo '#ifdef IN_GCC' >>$link
7119 ;;
7120 esac
7121 echo "#include \"$file\"" >>$link
7122 case $file in
7123 auto-host.h | auto-build.h )
7124 ;;
7125 *)
7126 echo '#endif' >>$link
7127 ;;
7128 esac
7129 done
7130
7131 for def in `eval echo '$'$define`; do
7132 echo "#ifndef $def" >>$link
7133 echo "#define $def" >>$link
7134 echo "#endif" >>$link
7135 done
7136 done
7137
7138 # Truncate the target if necessary
7139 if test x$host_truncate_target != x; then
7140 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
7141 fi
7142
7143 # Get the version trigger filename from the toplevel
7144 if test "${with_gcc_version_trigger+set}" = set; then
7145 gcc_version_trigger=$with_gcc_version_trigger
7146 else
7147 gcc_version_trigger=${srcdir}/version.c
7148 fi
7149 gcc_version=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
7150
7151 # Internationalization
7152 PACKAGE=gcc
7153 VERSION="$gcc_version"
7154 cat >> confdefs.h <<EOF
7155 #define PACKAGE "$PACKAGE"
7156 EOF
7157
7158 cat >> confdefs.h <<EOF
7159 #define VERSION "$VERSION"
7160 EOF
7161
7162
7163
7164
7165 ALL_LINGUAS="en_GB"
7166
7167 # Enable NLS support by default
7168 # Check whether --enable-nls or --disable-nls was given.
7169 if test "${enable_nls+set}" = set; then
7170 enableval="$enable_nls"
7171 :
7172 else
7173 enable_nls=yes
7174 fi
7175
7176
7177 # if cross compiling, disable NLS support.
7178 # It's not worth the trouble, at least for now.
7179
7180 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
7181 echo "configure: warning: Disabling NLS support for canadian cross compiler." 1>&2
7182 enable_nls=no
7183 fi
7184
7185
7186 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
7187 echo "configure:7188: checking for strerror in -lcposix" >&5
7188 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
7189 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7190 echo $ac_n "(cached) $ac_c" 1>&6
7191 else
7192 ac_save_LIBS="$LIBS"
7193 LIBS="-lcposix $LIBS"
7194 cat > conftest.$ac_ext <<EOF
7195 #line 7196 "configure"
7196 #include "confdefs.h"
7197 /* Override any gcc2 internal prototype to avoid an error. */
7198 /* We use char because int might match the return type of a gcc2
7199 builtin and then its argument prototype would still apply. */
7200 char strerror();
7201
7202 int main() {
7203 strerror()
7204 ; return 0; }
7205 EOF
7206 if { (eval echo configure:7207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7207 rm -rf conftest*
7208 eval "ac_cv_lib_$ac_lib_var=yes"
7209 else
7210 echo "configure: failed program was:" >&5
7211 cat conftest.$ac_ext >&5
7212 rm -rf conftest*
7213 eval "ac_cv_lib_$ac_lib_var=no"
7214 fi
7215 rm -f conftest*
7216 LIBS="$ac_save_LIBS"
7217
7218 fi
7219 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7220 echo "$ac_t""yes" 1>&6
7221 LIBS="$LIBS -lcposix"
7222 else
7223 echo "$ac_t""no" 1>&6
7224 fi
7225
7226
7227
7228 echo $ac_n "checking for working const""... $ac_c" 1>&6
7229 echo "configure:7230: checking for working const" >&5
7230 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
7231 echo $ac_n "(cached) $ac_c" 1>&6
7232 else
7233 cat > conftest.$ac_ext <<EOF
7234 #line 7235 "configure"
7235 #include "confdefs.h"
7236
7237 int main() {
7238
7239 /* Ultrix mips cc rejects this. */
7240 typedef int charset[2]; const charset x;
7241 /* SunOS 4.1.1 cc rejects this. */
7242 char const *const *ccp;
7243 char **p;
7244 /* NEC SVR4.0.2 mips cc rejects this. */
7245 struct point {int x, y;};
7246 static struct point const zero = {0,0};
7247 /* AIX XL C 1.02.0.0 rejects this.
7248 It does not let you subtract one const X* pointer from another in an arm
7249 of an if-expression whose if-part is not a constant expression */
7250 const char *g = "string";
7251 ccp = &g + (g ? g-g : 0);
7252 /* HPUX 7.0 cc rejects these. */
7253 ++ccp;
7254 p = (char**) ccp;
7255 ccp = (char const *const *) p;
7256 { /* SCO 3.2v4 cc rejects this. */
7257 char *t;
7258 char const *s = 0 ? (char *) 0 : (char const *) 0;
7259
7260 *t++ = 0;
7261 }
7262 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7263 int x[] = {25, 17};
7264 const int *foo = &x[0];
7265 ++foo;
7266 }
7267 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7268 typedef const int *iptr;
7269 iptr p = 0;
7270 ++p;
7271 }
7272 { /* AIX XL C 1.02.0.0 rejects this saying
7273 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7274 struct s { int j; const int *ap[3]; };
7275 struct s *b; b->j = 5;
7276 }
7277 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7278 const int foo = 10;
7279 }
7280
7281 ; return 0; }
7282 EOF
7283 if { (eval echo configure:7284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7284 rm -rf conftest*
7285 ac_cv_c_const=yes
7286 else
7287 echo "configure: failed program was:" >&5
7288 cat conftest.$ac_ext >&5
7289 rm -rf conftest*
7290 ac_cv_c_const=no
7291 fi
7292 rm -f conftest*
7293 fi
7294
7295 echo "$ac_t""$ac_cv_c_const" 1>&6
7296 if test $ac_cv_c_const = no; then
7297 cat >> confdefs.h <<\EOF
7298 #define const
7299 EOF
7300
7301 fi
7302
7303 echo $ac_n "checking for off_t""... $ac_c" 1>&6
7304 echo "configure:7305: checking for off_t" >&5
7305 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
7306 echo $ac_n "(cached) $ac_c" 1>&6
7307 else
7308 cat > conftest.$ac_ext <<EOF
7309 #line 7310 "configure"
7310 #include "confdefs.h"
7311 #include <sys/types.h>
7312 #if STDC_HEADERS
7313 #include <stdlib.h>
7314 #include <stddef.h>
7315 #endif
7316 EOF
7317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7318 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7319 rm -rf conftest*
7320 ac_cv_type_off_t=yes
7321 else
7322 rm -rf conftest*
7323 ac_cv_type_off_t=no
7324 fi
7325 rm -f conftest*
7326
7327 fi
7328 echo "$ac_t""$ac_cv_type_off_t" 1>&6
7329 if test $ac_cv_type_off_t = no; then
7330 cat >> confdefs.h <<\EOF
7331 #define off_t long
7332 EOF
7333
7334 fi
7335
7336 echo $ac_n "checking for size_t""... $ac_c" 1>&6
7337 echo "configure:7338: checking for size_t" >&5
7338 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
7339 echo $ac_n "(cached) $ac_c" 1>&6
7340 else
7341 cat > conftest.$ac_ext <<EOF
7342 #line 7343 "configure"
7343 #include "confdefs.h"
7344 #include <sys/types.h>
7345 #if STDC_HEADERS
7346 #include <stdlib.h>
7347 #include <stddef.h>
7348 #endif
7349 EOF
7350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7351 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7352 rm -rf conftest*
7353 ac_cv_type_size_t=yes
7354 else
7355 rm -rf conftest*
7356 ac_cv_type_size_t=no
7357 fi
7358 rm -f conftest*
7359
7360 fi
7361 echo "$ac_t""$ac_cv_type_size_t" 1>&6
7362 if test $ac_cv_type_size_t = no; then
7363 cat >> confdefs.h <<\EOF
7364 #define size_t unsigned
7365 EOF
7366
7367 fi
7368
7369 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7370 # for constant arguments. Useless!
7371 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
7372 echo "configure:7373: checking for working alloca.h" >&5
7373 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
7374 echo $ac_n "(cached) $ac_c" 1>&6
7375 else
7376 cat > conftest.$ac_ext <<EOF
7377 #line 7378 "configure"
7378 #include "confdefs.h"
7379 #include <alloca.h>
7380 int main() {
7381 char *p = alloca(2 * sizeof(int));
7382 ; return 0; }
7383 EOF
7384 if { (eval echo configure:7385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7385 rm -rf conftest*
7386 ac_cv_header_alloca_h=yes
7387 else
7388 echo "configure: failed program was:" >&5
7389 cat conftest.$ac_ext >&5
7390 rm -rf conftest*
7391 ac_cv_header_alloca_h=no
7392 fi
7393 rm -f conftest*
7394 fi
7395
7396 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
7397 if test $ac_cv_header_alloca_h = yes; then
7398 cat >> confdefs.h <<\EOF
7399 #define HAVE_ALLOCA_H 1
7400 EOF
7401
7402 fi
7403
7404 echo $ac_n "checking for alloca""... $ac_c" 1>&6
7405 echo "configure:7406: checking for alloca" >&5
7406 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
7407 echo $ac_n "(cached) $ac_c" 1>&6
7408 else
7409 cat > conftest.$ac_ext <<EOF
7410 #line 7411 "configure"
7411 #include "confdefs.h"
7412
7413 #ifdef __GNUC__
7414 # define alloca __builtin_alloca
7415 #else
7416 # ifdef _MSC_VER
7417 # include <malloc.h>
7418 # define alloca _alloca
7419 # else
7420 # if HAVE_ALLOCA_H
7421 # include <alloca.h>
7422 # else
7423 # ifdef _AIX
7424 #pragma alloca
7425 # else
7426 # ifndef alloca /* predefined by HP cc +Olibcalls */
7427 char *alloca ();
7428 # endif
7429 # endif
7430 # endif
7431 # endif
7432 #endif
7433
7434 int main() {
7435 char *p = (char *) alloca(1);
7436 ; return 0; }
7437 EOF
7438 if { (eval echo configure:7439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7439 rm -rf conftest*
7440 ac_cv_func_alloca_works=yes
7441 else
7442 echo "configure: failed program was:" >&5
7443 cat conftest.$ac_ext >&5
7444 rm -rf conftest*
7445 ac_cv_func_alloca_works=no
7446 fi
7447 rm -f conftest*
7448 fi
7449
7450 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
7451 if test $ac_cv_func_alloca_works = yes; then
7452 cat >> confdefs.h <<\EOF
7453 #define HAVE_ALLOCA 1
7454 EOF
7455
7456 fi
7457
7458 if test $ac_cv_func_alloca_works = no; then
7459 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7460 # that cause trouble. Some versions do not even contain alloca or
7461 # contain a buggy version. If you still want to use their alloca,
7462 # use ar to extract alloca.o from them instead of compiling alloca.c.
7463 ALLOCA=alloca.${ac_objext}
7464 cat >> confdefs.h <<\EOF
7465 #define C_ALLOCA 1
7466 EOF
7467
7468
7469 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
7470 echo "configure:7471: checking whether alloca needs Cray hooks" >&5
7471 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
7472 echo $ac_n "(cached) $ac_c" 1>&6
7473 else
7474 cat > conftest.$ac_ext <<EOF
7475 #line 7476 "configure"
7476 #include "confdefs.h"
7477 #if defined(CRAY) && ! defined(CRAY2)
7478 webecray
7479 #else
7480 wenotbecray
7481 #endif
7482
7483 EOF
7484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7485 egrep "webecray" >/dev/null 2>&1; then
7486 rm -rf conftest*
7487 ac_cv_os_cray=yes
7488 else
7489 rm -rf conftest*
7490 ac_cv_os_cray=no
7491 fi
7492 rm -f conftest*
7493
7494 fi
7495
7496 echo "$ac_t""$ac_cv_os_cray" 1>&6
7497 if test $ac_cv_os_cray = yes; then
7498 for ac_func in _getb67 GETB67 getb67; do
7499 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7500 echo "configure:7501: checking for $ac_func" >&5
7501 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7502 echo $ac_n "(cached) $ac_c" 1>&6
7503 else
7504 cat > conftest.$ac_ext <<EOF
7505 #line 7506 "configure"
7506 #include "confdefs.h"
7507 /* System header to define __stub macros and hopefully few prototypes,
7508 which can conflict with char $ac_func(); below. */
7509 #include <assert.h>
7510 /* Override any gcc2 internal prototype to avoid an error. */
7511 /* We use char because int might match the return type of a gcc2
7512 builtin and then its argument prototype would still apply. */
7513 char $ac_func();
7514
7515 int main() {
7516
7517 /* The GNU C library defines this for functions which it implements
7518 to always fail with ENOSYS. Some functions are actually named
7519 something starting with __ and the normal name is an alias. */
7520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7521 choke me
7522 #else
7523 $ac_func();
7524 #endif
7525
7526 ; return 0; }
7527 EOF
7528 if { (eval echo configure:7529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7529 rm -rf conftest*
7530 eval "ac_cv_func_$ac_func=yes"
7531 else
7532 echo "configure: failed program was:" >&5
7533 cat conftest.$ac_ext >&5
7534 rm -rf conftest*
7535 eval "ac_cv_func_$ac_func=no"
7536 fi
7537 rm -f conftest*
7538 fi
7539
7540 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7541 echo "$ac_t""yes" 1>&6
7542 cat >> confdefs.h <<EOF
7543 #define CRAY_STACKSEG_END $ac_func
7544 EOF
7545
7546 break
7547 else
7548 echo "$ac_t""no" 1>&6
7549 fi
7550
7551 done
7552 fi
7553
7554 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7555 echo "configure:7556: checking stack direction for C alloca" >&5
7556 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
7557 echo $ac_n "(cached) $ac_c" 1>&6
7558 else
7559 if test "$cross_compiling" = yes; then
7560 ac_cv_c_stack_direction=0
7561 else
7562 cat > conftest.$ac_ext <<EOF
7563 #line 7564 "configure"
7564 #include "confdefs.h"
7565 find_stack_direction ()
7566 {
7567 static char *addr = 0;
7568 auto char dummy;
7569 if (addr == 0)
7570 {
7571 addr = &dummy;
7572 return find_stack_direction ();
7573 }
7574 else
7575 return (&dummy > addr) ? 1 : -1;
7576 }
7577 main ()
7578 {
7579 exit (find_stack_direction() < 0);
7580 }
7581 EOF
7582 if { (eval echo configure:7583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7583 then
7584 ac_cv_c_stack_direction=1
7585 else
7586 echo "configure: failed program was:" >&5
7587 cat conftest.$ac_ext >&5
7588 rm -fr conftest*
7589 ac_cv_c_stack_direction=-1
7590 fi
7591 rm -fr conftest*
7592 fi
7593
7594 fi
7595
7596 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
7597 cat >> confdefs.h <<EOF
7598 #define STACK_DIRECTION $ac_cv_c_stack_direction
7599 EOF
7600
7601 fi
7602
7603
7604 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7605 unistd.h sys/param.h
7606 do
7607 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7608 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7609 echo "configure:7610: checking for $ac_hdr" >&5
7610 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7611 echo $ac_n "(cached) $ac_c" 1>&6
7612 else
7613 cat > conftest.$ac_ext <<EOF
7614 #line 7615 "configure"
7615 #include "confdefs.h"
7616 #include <$ac_hdr>
7617 EOF
7618 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7619 { (eval echo configure:7620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7620 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7621 if test -z "$ac_err"; then
7622 rm -rf conftest*
7623 eval "ac_cv_header_$ac_safe=yes"
7624 else
7625 echo "$ac_err" >&5
7626 echo "configure: failed program was:" >&5
7627 cat conftest.$ac_ext >&5
7628 rm -rf conftest*
7629 eval "ac_cv_header_$ac_safe=no"
7630 fi
7631 rm -f conftest*
7632 fi
7633 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7634 echo "$ac_t""yes" 1>&6
7635 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7636 cat >> confdefs.h <<EOF
7637 #define $ac_tr_hdr 1
7638 EOF
7639
7640 else
7641 echo "$ac_t""no" 1>&6
7642 fi
7643 done
7644
7645 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7646 strdup __argz_count __argz_stringify __argz_next
7647 do
7648 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7649 echo "configure:7650: checking for $ac_func" >&5
7650 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7651 echo $ac_n "(cached) $ac_c" 1>&6
7652 else
7653 cat > conftest.$ac_ext <<EOF
7654 #line 7655 "configure"
7655 #include "confdefs.h"
7656 /* System header to define __stub macros and hopefully few prototypes,
7657 which can conflict with char $ac_func(); below. */
7658 #include <assert.h>
7659 /* Override any gcc2 internal prototype to avoid an error. */
7660 /* We use char because int might match the return type of a gcc2
7661 builtin and then its argument prototype would still apply. */
7662 char $ac_func();
7663
7664 int main() {
7665
7666 /* The GNU C library defines this for functions which it implements
7667 to always fail with ENOSYS. Some functions are actually named
7668 something starting with __ and the normal name is an alias. */
7669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7670 choke me
7671 #else
7672 $ac_func();
7673 #endif
7674
7675 ; return 0; }
7676 EOF
7677 if { (eval echo configure:7678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7678 rm -rf conftest*
7679 eval "ac_cv_func_$ac_func=yes"
7680 else
7681 echo "configure: failed program was:" >&5
7682 cat conftest.$ac_ext >&5
7683 rm -rf conftest*
7684 eval "ac_cv_func_$ac_func=no"
7685 fi
7686 rm -f conftest*
7687 fi
7688
7689 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7690 echo "$ac_t""yes" 1>&6
7691 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7692 cat >> confdefs.h <<EOF
7693 #define $ac_tr_func 1
7694 EOF
7695
7696 else
7697 echo "$ac_t""no" 1>&6
7698 fi
7699 done
7700
7701
7702 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7703 for ac_func in stpcpy
7704 do
7705 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7706 echo "configure:7707: checking for $ac_func" >&5
7707 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7708 echo $ac_n "(cached) $ac_c" 1>&6
7709 else
7710 cat > conftest.$ac_ext <<EOF
7711 #line 7712 "configure"
7712 #include "confdefs.h"
7713 /* System header to define __stub macros and hopefully few prototypes,
7714 which can conflict with char $ac_func(); below. */
7715 #include <assert.h>
7716 /* Override any gcc2 internal prototype to avoid an error. */
7717 /* We use char because int might match the return type of a gcc2
7718 builtin and then its argument prototype would still apply. */
7719 char $ac_func();
7720
7721 int main() {
7722
7723 /* The GNU C library defines this for functions which it implements
7724 to always fail with ENOSYS. Some functions are actually named
7725 something starting with __ and the normal name is an alias. */
7726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7727 choke me
7728 #else
7729 $ac_func();
7730 #endif
7731
7732 ; return 0; }
7733 EOF
7734 if { (eval echo configure:7735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7735 rm -rf conftest*
7736 eval "ac_cv_func_$ac_func=yes"
7737 else
7738 echo "configure: failed program was:" >&5
7739 cat conftest.$ac_ext >&5
7740 rm -rf conftest*
7741 eval "ac_cv_func_$ac_func=no"
7742 fi
7743 rm -f conftest*
7744 fi
7745
7746 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7747 echo "$ac_t""yes" 1>&6
7748 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7749 cat >> confdefs.h <<EOF
7750 #define $ac_tr_func 1
7751 EOF
7752
7753 else
7754 echo "$ac_t""no" 1>&6
7755 fi
7756 done
7757
7758 fi
7759 if test "${ac_cv_func_stpcpy}" = "yes"; then
7760 cat >> confdefs.h <<\EOF
7761 #define HAVE_STPCPY 1
7762 EOF
7763
7764 fi
7765
7766 if test $ac_cv_header_locale_h = yes; then
7767 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
7768 echo "configure:7769: checking for LC_MESSAGES" >&5
7769 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
7770 echo $ac_n "(cached) $ac_c" 1>&6
7771 else
7772 cat > conftest.$ac_ext <<EOF
7773 #line 7774 "configure"
7774 #include "confdefs.h"
7775 #include <locale.h>
7776 int main() {
7777 return LC_MESSAGES
7778 ; return 0; }
7779 EOF
7780 if { (eval echo configure:7781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7781 rm -rf conftest*
7782 am_cv_val_LC_MESSAGES=yes
7783 else
7784 echo "configure: failed program was:" >&5
7785 cat conftest.$ac_ext >&5
7786 rm -rf conftest*
7787 am_cv_val_LC_MESSAGES=no
7788 fi
7789 rm -f conftest*
7790 fi
7791
7792 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7793 if test $am_cv_val_LC_MESSAGES = yes; then
7794 cat >> confdefs.h <<\EOF
7795 #define HAVE_LC_MESSAGES 1
7796 EOF
7797
7798 fi
7799 fi
7800 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7801 echo "configure:7802: checking whether NLS is requested" >&5
7802 # Check whether --enable-nls or --disable-nls was given.
7803 if test "${enable_nls+set}" = set; then
7804 enableval="$enable_nls"
7805 USE_NLS=$enableval
7806 else
7807 USE_NLS=yes
7808 fi
7809
7810 echo "$ac_t""$USE_NLS" 1>&6
7811
7812
7813 USE_INCLUDED_LIBINTL=no
7814
7815 if test "$USE_NLS" = "yes"; then
7816 cat >> confdefs.h <<\EOF
7817 #define ENABLE_NLS 1
7818 EOF
7819
7820 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7821 echo "configure:7822: checking whether included gettext is requested" >&5
7822 # Check whether --with-included-gettext or --without-included-gettext was given.
7823 if test "${with_included_gettext+set}" = set; then
7824 withval="$with_included_gettext"
7825 nls_cv_force_use_gnu_gettext=$withval
7826 else
7827 nls_cv_force_use_gnu_gettext=no
7828 fi
7829
7830 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7831
7832 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7833 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7834 nls_cv_header_intl=
7835 nls_cv_header_libgt=
7836 CATOBJEXT=NONE
7837
7838 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7839 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7840 echo "configure:7841: checking for libintl.h" >&5
7841 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7842 echo $ac_n "(cached) $ac_c" 1>&6
7843 else
7844 cat > conftest.$ac_ext <<EOF
7845 #line 7846 "configure"
7846 #include "confdefs.h"
7847 #include <libintl.h>
7848 EOF
7849 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7850 { (eval echo configure:7851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7851 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7852 if test -z "$ac_err"; then
7853 rm -rf conftest*
7854 eval "ac_cv_header_$ac_safe=yes"
7855 else
7856 echo "$ac_err" >&5
7857 echo "configure: failed program was:" >&5
7858 cat conftest.$ac_ext >&5
7859 rm -rf conftest*
7860 eval "ac_cv_header_$ac_safe=no"
7861 fi
7862 rm -f conftest*
7863 fi
7864 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7865 echo "$ac_t""yes" 1>&6
7866 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7867 echo "configure:7868: checking for gettext in libc" >&5
7868 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7869 echo $ac_n "(cached) $ac_c" 1>&6
7870 else
7871 cat > conftest.$ac_ext <<EOF
7872 #line 7873 "configure"
7873 #include "confdefs.h"
7874 #include <libintl.h>
7875 int main() {
7876 return (int) gettext ("")
7877 ; return 0; }
7878 EOF
7879 if { (eval echo configure:7880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7880 rm -rf conftest*
7881 gt_cv_func_gettext_libc=yes
7882 else
7883 echo "configure: failed program was:" >&5
7884 cat conftest.$ac_ext >&5
7885 rm -rf conftest*
7886 gt_cv_func_gettext_libc=no
7887 fi
7888 rm -f conftest*
7889 fi
7890
7891 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7892
7893 if test "$gt_cv_func_gettext_libc" != "yes"; then
7894 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7895 echo "configure:7896: checking for bindtextdomain in -lintl" >&5
7896 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7897 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7898 echo $ac_n "(cached) $ac_c" 1>&6
7899 else
7900 ac_save_LIBS="$LIBS"
7901 LIBS="-lintl $LIBS"
7902 cat > conftest.$ac_ext <<EOF
7903 #line 7904 "configure"
7904 #include "confdefs.h"
7905 /* Override any gcc2 internal prototype to avoid an error. */
7906 /* We use char because int might match the return type of a gcc2
7907 builtin and then its argument prototype would still apply. */
7908 char bindtextdomain();
7909
7910 int main() {
7911 bindtextdomain()
7912 ; return 0; }
7913 EOF
7914 if { (eval echo configure:7915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7915 rm -rf conftest*
7916 eval "ac_cv_lib_$ac_lib_var=yes"
7917 else
7918 echo "configure: failed program was:" >&5
7919 cat conftest.$ac_ext >&5
7920 rm -rf conftest*
7921 eval "ac_cv_lib_$ac_lib_var=no"
7922 fi
7923 rm -f conftest*
7924 LIBS="$ac_save_LIBS"
7925
7926 fi
7927 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7928 echo "$ac_t""yes" 1>&6
7929 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7930 echo "configure:7931: checking for gettext in libintl" >&5
7931 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7932 echo $ac_n "(cached) $ac_c" 1>&6
7933 else
7934 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7935 echo "configure:7936: checking for gettext in -lintl" >&5
7936 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7937 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7938 echo $ac_n "(cached) $ac_c" 1>&6
7939 else
7940 ac_save_LIBS="$LIBS"
7941 LIBS="-lintl $LIBS"
7942 cat > conftest.$ac_ext <<EOF
7943 #line 7944 "configure"
7944 #include "confdefs.h"
7945 /* Override any gcc2 internal prototype to avoid an error. */
7946 /* We use char because int might match the return type of a gcc2
7947 builtin and then its argument prototype would still apply. */
7948 char gettext();
7949
7950 int main() {
7951 gettext()
7952 ; return 0; }
7953 EOF
7954 if { (eval echo configure:7955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7955 rm -rf conftest*
7956 eval "ac_cv_lib_$ac_lib_var=yes"
7957 else
7958 echo "configure: failed program was:" >&5
7959 cat conftest.$ac_ext >&5
7960 rm -rf conftest*
7961 eval "ac_cv_lib_$ac_lib_var=no"
7962 fi
7963 rm -f conftest*
7964 LIBS="$ac_save_LIBS"
7965
7966 fi
7967 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7968 echo "$ac_t""yes" 1>&6
7969 gt_cv_func_gettext_libintl=yes
7970 else
7971 echo "$ac_t""no" 1>&6
7972 gt_cv_func_gettext_libintl=no
7973 fi
7974
7975 fi
7976
7977 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7978 else
7979 echo "$ac_t""no" 1>&6
7980 fi
7981
7982 fi
7983
7984 if test "$gt_cv_func_gettext_libc" = "yes" \
7985 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7986 cat >> confdefs.h <<\EOF
7987 #define HAVE_GETTEXT 1
7988 EOF
7989
7990 # Extract the first word of "msgfmt", so it can be a program name with args.
7991 set dummy msgfmt; ac_word=$2
7992 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7993 echo "configure:7994: checking for $ac_word" >&5
7994 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7995 echo $ac_n "(cached) $ac_c" 1>&6
7996 else
7997 case "$MSGFMT" in
7998 /*)
7999 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8000 ;;
8001 *)
8002 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8003 for ac_dir in $PATH; do
8004 test -z "$ac_dir" && ac_dir=.
8005 if test -f $ac_dir/$ac_word; then
8006 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8007 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8008 break
8009 fi
8010 fi
8011 done
8012 IFS="$ac_save_ifs"
8013 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
8014 ;;
8015 esac
8016 fi
8017 MSGFMT="$ac_cv_path_MSGFMT"
8018 if test -n "$MSGFMT"; then
8019 echo "$ac_t""$MSGFMT" 1>&6
8020 else
8021 echo "$ac_t""no" 1>&6
8022 fi
8023 if test "$MSGFMT" != "no"; then
8024 for ac_func in dcgettext
8025 do
8026 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8027 echo "configure:8028: checking for $ac_func" >&5
8028 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8029 echo $ac_n "(cached) $ac_c" 1>&6
8030 else
8031 cat > conftest.$ac_ext <<EOF
8032 #line 8033 "configure"
8033 #include "confdefs.h"
8034 /* System header to define __stub macros and hopefully few prototypes,
8035 which can conflict with char $ac_func(); below. */
8036 #include <assert.h>
8037 /* Override any gcc2 internal prototype to avoid an error. */
8038 /* We use char because int might match the return type of a gcc2
8039 builtin and then its argument prototype would still apply. */
8040 char $ac_func();
8041
8042 int main() {
8043
8044 /* The GNU C library defines this for functions which it implements
8045 to always fail with ENOSYS. Some functions are actually named
8046 something starting with __ and the normal name is an alias. */
8047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8048 choke me
8049 #else
8050 $ac_func();
8051 #endif
8052
8053 ; return 0; }
8054 EOF
8055 if { (eval echo configure:8056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8056 rm -rf conftest*
8057 eval "ac_cv_func_$ac_func=yes"
8058 else
8059 echo "configure: failed program was:" >&5
8060 cat conftest.$ac_ext >&5
8061 rm -rf conftest*
8062 eval "ac_cv_func_$ac_func=no"
8063 fi
8064 rm -f conftest*
8065 fi
8066
8067 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8068 echo "$ac_t""yes" 1>&6
8069 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8070 cat >> confdefs.h <<EOF
8071 #define $ac_tr_func 1
8072 EOF
8073
8074 else
8075 echo "$ac_t""no" 1>&6
8076 fi
8077 done
8078
8079 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8080 set dummy gmsgfmt; ac_word=$2
8081 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8082 echo "configure:8083: checking for $ac_word" >&5
8083 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8084 echo $ac_n "(cached) $ac_c" 1>&6
8085 else
8086 case "$GMSGFMT" in
8087 /*)
8088 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8089 ;;
8090 ?:/*)
8091 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
8092 ;;
8093 *)
8094 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8095 ac_dummy="$PATH"
8096 for ac_dir in $ac_dummy; do
8097 test -z "$ac_dir" && ac_dir=.
8098 if test -f $ac_dir/$ac_word; then
8099 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
8100 break
8101 fi
8102 done
8103 IFS="$ac_save_ifs"
8104 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8105 ;;
8106 esac
8107 fi
8108 GMSGFMT="$ac_cv_path_GMSGFMT"
8109 if test -n "$GMSGFMT"; then
8110 echo "$ac_t""$GMSGFMT" 1>&6
8111 else
8112 echo "$ac_t""no" 1>&6
8113 fi
8114
8115 # Extract the first word of "xgettext", so it can be a program name with args.
8116 set dummy xgettext; ac_word=$2
8117 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8118 echo "configure:8119: checking for $ac_word" >&5
8119 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8120 echo $ac_n "(cached) $ac_c" 1>&6
8121 else
8122 case "$XGETTEXT" in
8123 /*)
8124 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8125 ;;
8126 *)
8127 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8128 for ac_dir in $PATH; do
8129 test -z "$ac_dir" && ac_dir=.
8130 if test -f $ac_dir/$ac_word; then
8131 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8132 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8133 break
8134 fi
8135 fi
8136 done
8137 IFS="$ac_save_ifs"
8138 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8139 ;;
8140 esac
8141 fi
8142 XGETTEXT="$ac_cv_path_XGETTEXT"
8143 if test -n "$XGETTEXT"; then
8144 echo "$ac_t""$XGETTEXT" 1>&6
8145 else
8146 echo "$ac_t""no" 1>&6
8147 fi
8148
8149 cat > conftest.$ac_ext <<EOF
8150 #line 8151 "configure"
8151 #include "confdefs.h"
8152
8153 int main() {
8154 extern int _nl_msg_cat_cntr;
8155 return _nl_msg_cat_cntr
8156 ; return 0; }
8157 EOF
8158 if { (eval echo configure:8159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8159 rm -rf conftest*
8160 CATOBJEXT=.gmo
8161 DATADIRNAME=share
8162 else
8163 echo "configure: failed program was:" >&5
8164 cat conftest.$ac_ext >&5
8165 rm -rf conftest*
8166 CATOBJEXT=.mo
8167 DATADIRNAME=lib
8168 fi
8169 rm -f conftest*
8170 INSTOBJEXT=.mo
8171 fi
8172 fi
8173
8174 else
8175 echo "$ac_t""no" 1>&6
8176 fi
8177
8178
8179 if test "$CATOBJEXT" = "NONE"; then
8180 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
8181 echo "configure:8182: checking whether catgets can be used" >&5
8182 # Check whether --with-catgets or --without-catgets was given.
8183 if test "${with_catgets+set}" = set; then
8184 withval="$with_catgets"
8185 nls_cv_use_catgets=$withval
8186 else
8187 nls_cv_use_catgets=no
8188 fi
8189
8190 echo "$ac_t""$nls_cv_use_catgets" 1>&6
8191
8192 if test "$nls_cv_use_catgets" = "yes"; then
8193 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
8194 echo "configure:8195: checking for main in -li" >&5
8195 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
8196 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8197 echo $ac_n "(cached) $ac_c" 1>&6
8198 else
8199 ac_save_LIBS="$LIBS"
8200 LIBS="-li $LIBS"
8201 cat > conftest.$ac_ext <<EOF
8202 #line 8203 "configure"
8203 #include "confdefs.h"
8204
8205 int main() {
8206 main()
8207 ; return 0; }
8208 EOF
8209 if { (eval echo configure:8210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8210 rm -rf conftest*
8211 eval "ac_cv_lib_$ac_lib_var=yes"
8212 else
8213 echo "configure: failed program was:" >&5
8214 cat conftest.$ac_ext >&5
8215 rm -rf conftest*
8216 eval "ac_cv_lib_$ac_lib_var=no"
8217 fi
8218 rm -f conftest*
8219 LIBS="$ac_save_LIBS"
8220
8221 fi
8222 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8223 echo "$ac_t""yes" 1>&6
8224 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8225 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8226 cat >> confdefs.h <<EOF
8227 #define $ac_tr_lib 1
8228 EOF
8229
8230 LIBS="-li $LIBS"
8231
8232 else
8233 echo "$ac_t""no" 1>&6
8234 fi
8235
8236 echo $ac_n "checking for catgets""... $ac_c" 1>&6
8237 echo "configure:8238: checking for catgets" >&5
8238 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
8239 echo $ac_n "(cached) $ac_c" 1>&6
8240 else
8241 cat > conftest.$ac_ext <<EOF
8242 #line 8243 "configure"
8243 #include "confdefs.h"
8244 /* System header to define __stub macros and hopefully few prototypes,
8245 which can conflict with char catgets(); below. */
8246 #include <assert.h>
8247 /* Override any gcc2 internal prototype to avoid an error. */
8248 /* We use char because int might match the return type of a gcc2
8249 builtin and then its argument prototype would still apply. */
8250 char catgets();
8251
8252 int main() {
8253
8254 /* The GNU C library defines this for functions which it implements
8255 to always fail with ENOSYS. Some functions are actually named
8256 something starting with __ and the normal name is an alias. */
8257 #if defined (__stub_catgets) || defined (__stub___catgets)
8258 choke me
8259 #else
8260 catgets();
8261 #endif
8262
8263 ; return 0; }
8264 EOF
8265 if { (eval echo configure:8266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8266 rm -rf conftest*
8267 eval "ac_cv_func_catgets=yes"
8268 else
8269 echo "configure: failed program was:" >&5
8270 cat conftest.$ac_ext >&5
8271 rm -rf conftest*
8272 eval "ac_cv_func_catgets=no"
8273 fi
8274 rm -f conftest*
8275 fi
8276
8277 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
8278 echo "$ac_t""yes" 1>&6
8279 cat >> confdefs.h <<\EOF
8280 #define HAVE_CATGETS 1
8281 EOF
8282
8283 INTLOBJS="\$(CATOBJS)"
8284 # Extract the first word of "gencat", so it can be a program name with args.
8285 set dummy gencat; ac_word=$2
8286 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8287 echo "configure:8288: checking for $ac_word" >&5
8288 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
8289 echo $ac_n "(cached) $ac_c" 1>&6
8290 else
8291 case "$GENCAT" in
8292 /*)
8293 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
8294 ;;
8295 ?:/*)
8296 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
8297 ;;
8298 *)
8299 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8300 ac_dummy="$PATH"
8301 for ac_dir in $ac_dummy; do
8302 test -z "$ac_dir" && ac_dir=.
8303 if test -f $ac_dir/$ac_word; then
8304 ac_cv_path_GENCAT="$ac_dir/$ac_word"
8305 break
8306 fi
8307 done
8308 IFS="$ac_save_ifs"
8309 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
8310 ;;
8311 esac
8312 fi
8313 GENCAT="$ac_cv_path_GENCAT"
8314 if test -n "$GENCAT"; then
8315 echo "$ac_t""$GENCAT" 1>&6
8316 else
8317 echo "$ac_t""no" 1>&6
8318 fi
8319 if test "$GENCAT" != "no"; then
8320 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8321 set dummy gmsgfmt; ac_word=$2
8322 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8323 echo "configure:8324: checking for $ac_word" >&5
8324 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8325 echo $ac_n "(cached) $ac_c" 1>&6
8326 else
8327 case "$GMSGFMT" in
8328 /*)
8329 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8330 ;;
8331 ?:/*)
8332 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
8333 ;;
8334 *)
8335 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8336 ac_dummy="$PATH"
8337 for ac_dir in $ac_dummy; do
8338 test -z "$ac_dir" && ac_dir=.
8339 if test -f $ac_dir/$ac_word; then
8340 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
8341 break
8342 fi
8343 done
8344 IFS="$ac_save_ifs"
8345 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
8346 ;;
8347 esac
8348 fi
8349 GMSGFMT="$ac_cv_path_GMSGFMT"
8350 if test -n "$GMSGFMT"; then
8351 echo "$ac_t""$GMSGFMT" 1>&6
8352 else
8353 echo "$ac_t""no" 1>&6
8354 fi
8355
8356 if test "$GMSGFMT" = "no"; then
8357 # Extract the first word of "msgfmt", so it can be a program name with args.
8358 set dummy msgfmt; ac_word=$2
8359 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8360 echo "configure:8361: checking for $ac_word" >&5
8361 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8362 echo $ac_n "(cached) $ac_c" 1>&6
8363 else
8364 case "$GMSGFMT" in
8365 /*)
8366 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8367 ;;
8368 *)
8369 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8370 for ac_dir in $PATH; do
8371 test -z "$ac_dir" && ac_dir=.
8372 if test -f $ac_dir/$ac_word; then
8373 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8374 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
8375 break
8376 fi
8377 fi
8378 done
8379 IFS="$ac_save_ifs"
8380 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="msgfmt"
8381 ;;
8382 esac
8383 fi
8384 GMSGFMT="$ac_cv_path_GMSGFMT"
8385 if test -n "$GMSGFMT"; then
8386 echo "$ac_t""$GMSGFMT" 1>&6
8387 else
8388 echo "$ac_t""no" 1>&6
8389 fi
8390
8391 if test "$GMSGFMT" = "msgfmt"; then
8392 echo "configure: warning: No program for catalog building found" 1>&2
8393 create_catalogs="no"
8394 fi
8395 fi
8396 # Extract the first word of "xgettext", so it can be a program name with args.
8397 set dummy xgettext; ac_word=$2
8398 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8399 echo "configure:8400: checking for $ac_word" >&5
8400 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8401 echo $ac_n "(cached) $ac_c" 1>&6
8402 else
8403 case "$XGETTEXT" in
8404 /*)
8405 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8406 ;;
8407 *)
8408 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8409 for ac_dir in $PATH; do
8410 test -z "$ac_dir" && ac_dir=.
8411 if test -f $ac_dir/$ac_word; then
8412 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8413 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8414 break
8415 fi
8416 fi
8417 done
8418 IFS="$ac_save_ifs"
8419 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8420 ;;
8421 esac
8422 fi
8423 XGETTEXT="$ac_cv_path_XGETTEXT"
8424 if test -n "$XGETTEXT"; then
8425 echo "$ac_t""$XGETTEXT" 1>&6
8426 else
8427 echo "$ac_t""no" 1>&6
8428 fi
8429
8430 USE_INCLUDED_LIBINTL=yes
8431 CATOBJEXT=.cat
8432 INSTOBJEXT=.cat
8433 DATADIRNAME=lib
8434 INTLDEPS='$(top_builddir)/intl/libintl.a'
8435 INTLLIBS=$INTLDEPS
8436 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8437 nls_cv_header_intl=intl/libintl.h
8438 nls_cv_header_libgt=intl/libgettext.h
8439 fi
8440 else
8441 echo "$ac_t""no" 1>&6
8442 fi
8443
8444 fi
8445 fi
8446
8447 if test "$CATOBJEXT" = "NONE"; then
8448 nls_cv_use_gnu_gettext=yes
8449 fi
8450 fi
8451
8452 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8453 INTLOBJS="\$(GETTOBJS)"
8454 # Extract the first word of "msgfmt", so it can be a program name with args.
8455 set dummy msgfmt; ac_word=$2
8456 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8457 echo "configure:8458: checking for $ac_word" >&5
8458 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
8459 echo $ac_n "(cached) $ac_c" 1>&6
8460 else
8461 case "$MSGFMT" in
8462 /*)
8463 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8464 ;;
8465 *)
8466 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8467 for ac_dir in $PATH; do
8468 test -z "$ac_dir" && ac_dir=.
8469 if test -f $ac_dir/$ac_word; then
8470 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8471 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8472 break
8473 fi
8474 fi
8475 done
8476 IFS="$ac_save_ifs"
8477 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
8478 ;;
8479 esac
8480 fi
8481 MSGFMT="$ac_cv_path_MSGFMT"
8482 if test -n "$MSGFMT"; then
8483 echo "$ac_t""$MSGFMT" 1>&6
8484 else
8485 echo "$ac_t""no" 1>&6
8486 fi
8487
8488 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8489 set dummy gmsgfmt; ac_word=$2
8490 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8491 echo "configure:8492: checking for $ac_word" >&5
8492 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8493 echo $ac_n "(cached) $ac_c" 1>&6
8494 else
8495 case "$GMSGFMT" in
8496 /*)
8497 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8498 ;;
8499 ?:/*)
8500 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
8501 ;;
8502 *)
8503 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8504 ac_dummy="$PATH"
8505 for ac_dir in $ac_dummy; do
8506 test -z "$ac_dir" && ac_dir=.
8507 if test -f $ac_dir/$ac_word; then
8508 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
8509 break
8510 fi
8511 done
8512 IFS="$ac_save_ifs"
8513 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8514 ;;
8515 esac
8516 fi
8517 GMSGFMT="$ac_cv_path_GMSGFMT"
8518 if test -n "$GMSGFMT"; then
8519 echo "$ac_t""$GMSGFMT" 1>&6
8520 else
8521 echo "$ac_t""no" 1>&6
8522 fi
8523
8524 if test "$MSGFMT" = "msgfmt" && test "$GMSGFMT" = "msgfmt"; then
8525 echo "configure: warning: Neither msgfmt nor gmsgfmt found. No catalogs will be built" 1>&2
8526 create_catalogs="no"
8527 fi
8528 # Extract the first word of "xgettext", so it can be a program name with args.
8529 set dummy xgettext; ac_word=$2
8530 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8531 echo "configure:8532: checking for $ac_word" >&5
8532 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8533 echo $ac_n "(cached) $ac_c" 1>&6
8534 else
8535 case "$XGETTEXT" in
8536 /*)
8537 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8538 ;;
8539 *)
8540 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8541 for ac_dir in $PATH; do
8542 test -z "$ac_dir" && ac_dir=.
8543 if test -f $ac_dir/$ac_word; then
8544 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8545 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8546 break
8547 fi
8548 fi
8549 done
8550 IFS="$ac_save_ifs"
8551 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8552 ;;
8553 esac
8554 fi
8555 XGETTEXT="$ac_cv_path_XGETTEXT"
8556 if test -n "$XGETTEXT"; then
8557 echo "$ac_t""$XGETTEXT" 1>&6
8558 else
8559 echo "$ac_t""no" 1>&6
8560 fi
8561
8562
8563 USE_INCLUDED_LIBINTL=yes
8564 CATOBJEXT=.gmo
8565 INSTOBJEXT=.mo
8566 DATADIRNAME=share
8567 INTLDEPS='$(top_builddir)/intl/libintl.a'
8568 INTLLIBS=$INTLDEPS
8569 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8570 nls_cv_header_intl=intl/libintl.h
8571 nls_cv_header_libgt=intl/libgettext.h
8572 fi
8573
8574 if test "$XGETTEXT" != ":"; then
8575 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8576 : ;
8577 else
8578 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
8579 XGETTEXT=":"
8580 fi
8581 fi
8582
8583
8584
8585 # We need to process the po/ directory.
8586 POSUB=po
8587 else
8588 DATADIRNAME=share
8589 nls_cv_header_intl=intl/libintl.h
8590 nls_cv_header_libgt=intl/libgettext.h
8591 fi
8592
8593
8594
8595
8596 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8597 # because some of the sources are only built for this goal.
8598 if test "$PACKAGE" = gettext; then
8599 USE_NLS=yes
8600 USE_INCLUDED_LIBINTL=yes
8601 fi
8602
8603 for lang in $ALL_LINGUAS; do
8604 GMOFILES="$GMOFILES $lang.gmo"
8605 POFILES="$POFILES $lang.po"
8606 done
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621 if test "x$CATOBJEXT" != "x" && test "x$create_catalogs" != "xno" ; then
8622 if test "x$ALL_LINGUAS" = "x"; then
8623 LINGUAS=
8624 else
8625 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
8626 echo "configure:8627: checking for catalogs to be installed" >&5
8627 if test "x$LINGUAS" = "x"; then
8628 LINGUAS=$ALL_LINGUAS
8629 else
8630 NEW_LINGUAS=
8631 for lang in $ALL_LINGUAS; do
8632 case " $LINGUAS " in
8633 *" $lang "*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8634 esac
8635 done
8636 LINGUAS=$NEW_LINGUAS
8637 fi
8638 echo "$ac_t""$LINGUAS" 1>&6
8639 fi
8640
8641 if test -n "$LINGUAS"; then
8642 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8643 fi
8644 fi
8645
8646 if test $ac_cv_header_locale_h = yes; then
8647 INCLUDE_LOCALE_H="#include <locale.h>"
8648 else
8649 INCLUDE_LOCALE_H="\
8650 /* The system does not provide the header <locale.h>. Take care yourself. */"
8651 fi
8652
8653
8654 test -d intl || mkdir intl
8655 if test "$CATOBJEXT" = ".cat"; then
8656 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
8657 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
8658 echo "configure:8659: checking for linux/version.h" >&5
8659 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8660 echo $ac_n "(cached) $ac_c" 1>&6
8661 else
8662 cat > conftest.$ac_ext <<EOF
8663 #line 8664 "configure"
8664 #include "confdefs.h"
8665 #include <linux/version.h>
8666 EOF
8667 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8668 { (eval echo configure:8669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8669 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8670 if test -z "$ac_err"; then
8671 rm -rf conftest*
8672 eval "ac_cv_header_$ac_safe=yes"
8673 else
8674 echo "$ac_err" >&5
8675 echo "configure: failed program was:" >&5
8676 cat conftest.$ac_ext >&5
8677 rm -rf conftest*
8678 eval "ac_cv_header_$ac_safe=no"
8679 fi
8680 rm -f conftest*
8681 fi
8682 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8683 echo "$ac_t""yes" 1>&6
8684 msgformat=linux
8685 else
8686 echo "$ac_t""no" 1>&6
8687 msgformat=xopen
8688 fi
8689
8690
8691 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
8692 fi
8693 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8694 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
8695
8696 if test "$PACKAGE" = "gettext"; then
8697 GT_NO="#NO#"
8698 GT_YES=
8699 else
8700 GT_NO=
8701 GT_YES="#YES#"
8702 fi
8703
8704
8705
8706 MKINSTALLDIRS=
8707 if test -n "$ac_aux_dir"; then
8708 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
8709 fi
8710 if test -z "$MKINSTALLDIRS"; then
8711 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8712 fi
8713
8714
8715 l=
8716
8717
8718 test -d po || mkdir po
8719 if test "x$srcdir" != "x."; then
8720 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8721 posrcprefix="$srcdir/"
8722 else
8723 posrcprefix="../$srcdir/"
8724 fi
8725 else
8726 posrcprefix="../"
8727 fi
8728 rm -f po/POTFILES
8729 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8730 < $srcdir/po/POTFILES.in > po/POTFILES
8731
8732 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
8733
8734 # Windows32 Registry support for specifying GCC installation paths.
8735 # Check whether --enable-win32-registry or --disable-win32-registry was given.
8736 if test "${enable_win32_registry+set}" = set; then
8737 enableval="$enable_win32_registry"
8738 :
8739 fi
8740
8741
8742 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
8743 echo "configure:8744: checking whether windows registry support is requested" >&5
8744 if test x$enable_win32_registry != xno; then
8745 cat >> confdefs.h <<\EOF
8746 #define ENABLE_WIN32_REGISTRY 1
8747 EOF
8748
8749 echo "$ac_t""yes" 1>&6
8750 else
8751 echo "$ac_t""no" 1>&6
8752 fi
8753
8754 # Check if user specified a different registry key.
8755 case x${enable_win32_registry} in
8756 x | xyes)
8757 # default.
8758 gcc_cv_win32_registry_key="$VERSION"
8759 ;;
8760 xno)
8761 # no registry lookup.
8762 gcc_cv_win32_registry_key=''
8763 ;;
8764 *)
8765 # user-specified key.
8766 gcc_cv_win32_registry_key="$enable_win32_registry"
8767 ;;
8768 esac
8769
8770 if test x$enable_win32_registry != xno; then
8771 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
8772 echo "configure:8773: checking registry key on windows hosts" >&5
8773 cat >> confdefs.h <<EOF
8774 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
8775 EOF
8776
8777 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
8778 fi
8779
8780 # Get an absolute path to the GCC top-level source directory
8781 holddir=`pwd`
8782 cd $srcdir
8783 topdir=`pwd`
8784 cd $holddir
8785
8786 # Conditionalize the makefile for this host machine.
8787 # Make-host contains the concatenation of all host makefile fragments
8788 # [there can be more than one]. This file is built by configure.frag.
8789 host_overrides=Make-host
8790 dep_host_xmake_file=
8791 for f in .. ${host_xmake_file}
8792 do
8793 if test -f ${srcdir}/config/$f
8794 then
8795 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
8796 fi
8797 done
8798
8799 # Conditionalize the makefile for this target machine.
8800 # Make-target contains the concatenation of all host makefile fragments
8801 # [there can be more than one]. This file is built by configure.frag.
8802 target_overrides=Make-target
8803 dep_tmake_file=
8804 for f in .. ${tmake_file}
8805 do
8806 if test -f ${srcdir}/config/$f
8807 then
8808 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
8809 fi
8810 done
8811
8812 # If the host doesn't support symlinks, modify CC in
8813 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
8814 # Otherwise, we can use "CC=$(CC)".
8815 rm -f symtest.tem
8816 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
8817 then
8818 cc_set_by_configure="\$(CC)"
8819 quoted_cc_set_by_configure="\$(CC)"
8820 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
8821 else
8822 rm -f symtest.tem
8823 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
8824 then
8825 symbolic_link="cp -p"
8826 else
8827 symbolic_link="cp"
8828 fi
8829 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
8830 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
8831 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
8832 fi
8833 rm -f symtest.tem
8834
8835 out_object_file=`basename $out_file .c`.o
8836
8837 tm_file_list=
8838 for f in $tm_file; do
8839 case $f in
8840 gansidecl.h )
8841 tm_file_list="${tm_file_list} $f" ;;
8842 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
8843 esac
8844 done
8845
8846 host_xm_file_list=
8847 for f in $host_xm_file; do
8848 case $f in
8849 auto-host.h | gansidecl.h | hwint.h )
8850 host_xm_file_list="${host_xm_file_list} $f" ;;
8851 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
8852 esac
8853 done
8854
8855 build_xm_file_list=
8856 for f in $build_xm_file; do
8857 case $f in
8858 auto-build.h | auto-host.h | gansidecl.h | hwint.h )
8859 build_xm_file_list="${build_xm_file_list} $f" ;;
8860 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8861 esac
8862 done
8863
8864 # Define macro CROSS_COMPILE in compilation
8865 # if this is a cross-compiler.
8866 # Also use all.cross instead of all.internal
8867 # and add cross-make to Makefile.
8868 cross_overrides="/dev/null"
8869 if test x$host != x$target
8870 then
8871 cross_defines="CROSS=-DCROSS_COMPILE"
8872 cross_overrides="${topdir}/cross-make"
8873 fi
8874
8875 # If this is a cross-compiler that does not
8876 # have its own set of headers then define
8877 # inhibit_libc
8878
8879 # If this is using newlib, then define inhibit_libc in
8880 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
8881 # libgcc.a, but that's OK because newlib should have its own version of
8882 # assert.h.
8883 inhibit_libc=
8884 if test x$host != x$target && test x$with_headers = x; then
8885 inhibit_libc=-Dinhibit_libc
8886 else
8887 if test x$with_newlib = xyes; then
8888 inhibit_libc=-Dinhibit_libc
8889 fi
8890 fi
8891
8892
8893 # When building gcc with a cross-compiler, we need to fix a few things.
8894 # This must come after cross-make as we want all.build to override
8895 # all.cross.
8896 build_overrides="/dev/null"
8897 if test x$build != x$host
8898 then
8899 build_overrides="${topdir}/build-make"
8900 fi
8901
8902 # Expand extra_headers to include complete path.
8903 # This substitutes for lots of t-* files.
8904 extra_headers_list=
8905 if test "x$extra_headers" = x
8906 then true
8907 else
8908 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8909 for file in $extra_headers;
8910 do
8911 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8912 done
8913 fi
8914
8915 if test x$use_collect2 = xno; then
8916 use_collect2=
8917 fi
8918
8919 # Add a definition of USE_COLLECT2 if system wants one.
8920 # Also tell toplev.c what to do.
8921 # This substitutes for lots of t-* files.
8922 if test x$use_collect2 = x
8923 then
8924 will_use_collect2=
8925 maybe_use_collect2=
8926 else
8927 will_use_collect2="collect2"
8928 maybe_use_collect2="-DUSE_COLLECT2"
8929 fi
8930
8931 # NEED TO CONVERT
8932 # Set MD_DEPS if the real md file is in md.pre-cpp.
8933 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
8934 # for line oriented comments, so we must always use a GNU cpp. If
8935 # building gcc with a cross compiler, use the cross compiler just
8936 # built. Otherwise, we can use the cpp just built.
8937 md_file_sub=
8938 if test "x$md_cppflags" = x
8939 then
8940 md_file_sub=$srcdir/config/$md_file
8941 else
8942 md_file=md
8943 fi
8944
8945 # If we have gas in the build tree, make a link to it.
8946 if test -f ../gas/Makefile; then
8947 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
8948 fi
8949
8950 # If we have nm in the build tree, make a link to it.
8951 if test -f ../binutils/Makefile; then
8952 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
8953 fi
8954
8955 # If we have ld in the build tree, make a link to it.
8956 if test -f ../ld/Makefile; then
8957 # if test x$use_collect2 = x; then
8958 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8959 # else
8960 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
8961 # fi
8962 fi
8963
8964 # Figure out what assembler we will be using.
8965 echo $ac_n "checking what assembler to use""... $ac_c" 1>&6
8966 echo "configure:8967: checking what assembler to use" >&5
8967 gcc_cv_as=
8968 gcc_cv_gas_major_version=
8969 gcc_cv_gas_minor_version=
8970 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8971 if test -x "$DEFAULT_ASSEMBLER"; then
8972 gcc_cv_as="$DEFAULT_ASSEMBLER"
8973 elif test -x "$AS"; then
8974 gcc_cv_as="$AS"
8975 elif test -x as$host_exeext; then
8976 # Build using assembler in the current directory.
8977 gcc_cv_as=./as$host_exeext
8978 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
8979 # Single tree build which includes gas.
8980 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
8981 do
8982 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
8983 if test x$gcc_cv_gas_version != x; then
8984 break
8985 fi
8986 done
8987 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
8988 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
8989 fi
8990
8991 if test "x$gcc_cv_as" = x -a x$host = x$target; then
8992 # Native build.
8993 # Search the same directories that the installed compiler will
8994 # search. Else we may find the wrong assembler and lose. If we
8995 # do not find a suitable assembler binary, then try the user's
8996 # path.
8997 #
8998 # Also note we have to check MD_EXEC_PREFIX before checking the
8999 # user's path. Unfortunately, there is no good way to get at the
9000 # value of MD_EXEC_PREFIX here. So we do a brute force search
9001 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
9002 # to be fixed as part of the make/configure rewrite too.
9003
9004 if test "x$exec_prefix" = xNONE; then
9005 if test "x$prefix" = xNONE; then
9006 test_prefix=/usr/local
9007 else
9008 test_prefix=$prefix
9009 fi
9010 else
9011 test_prefix=$exec_prefix
9012 fi
9013
9014 # If the loop below does not find an assembler, then use whatever
9015 # one we can find in the users's path.
9016 # user's path.
9017 as=as$host_exeext
9018
9019 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
9020 $test_prefix/lib/gcc-lib/$target \
9021 /usr/lib/gcc/$target/$gcc_version \
9022 /usr/lib/gcc/$target \
9023 $test_prefix/$target/bin/$target/$gcc_version \
9024 $test_prefix/$target/bin \
9025 /usr/libexec \
9026 /usr/ccs/gcc \
9027 /usr/ccs/bin \
9028 /udk/usr/ccs/bin \
9029 /bsd43/usr/lib/cmplrs/cc \
9030 /usr/cross64/usr/bin \
9031 /usr/lib/cmplrs/cc \
9032 /sysv/usr/lib/cmplrs/cc \
9033 /svr4/usr/lib/cmplrs/cc \
9034 /usr/bin"
9035
9036 for dir in $test_dirs; do
9037 if test -f $dir/as$host_exeext; then
9038 gcc_cv_as=$dir/as$host_exeext
9039 break;
9040 fi
9041 done
9042 fi
9043 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
9044 echo "$ac_t"""newly built gas"" 1>&6
9045 else
9046 echo "$ac_t""$gcc_cv_as" 1>&6
9047 fi
9048
9049 # Figure out what nm we will be using.
9050 echo $ac_n "checking what nm to use""... $ac_c" 1>&6
9051 echo "configure:9052: checking what nm to use" >&5
9052 if test -x nm$host_exeext; then
9053 gcc_cv_nm=./nm$host_exeext
9054 elif test x$host = x$target; then
9055 # Native build.
9056 gcc_cv_nm=nm$host_exeext
9057 fi
9058 echo "$ac_t""$gcc_cv_nm" 1>&6
9059
9060 # Figure out what assembler alignment features are present.
9061 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
9062 echo "configure:9063: checking assembler alignment features" >&5
9063 gcc_cv_as_alignment_features=
9064 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
9065 # Gas version 2.6 and later support for .balign and .p2align.
9066 # bytes to skip when using .p2align.
9067 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
9068 gcc_cv_as_alignment_features=".balign and .p2align"
9069 cat >> confdefs.h <<\EOF
9070 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
9071 EOF
9072
9073 fi
9074 # Gas version 2.8 and later support specifying the maximum
9075 # bytes to skip when using .p2align.
9076 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
9077 gcc_cv_as_alignment_features=".p2align including maximum skip"
9078 cat >> confdefs.h <<\EOF
9079 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
9080 EOF
9081
9082 fi
9083 elif test x$gcc_cv_as != x; then
9084 # Check if we have .balign and .p2align
9085 echo ".balign 4" > conftest.s
9086 echo ".p2align 2" >> conftest.s
9087 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
9088 gcc_cv_as_alignment_features=".balign and .p2align"
9089 cat >> confdefs.h <<\EOF
9090 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
9091 EOF
9092
9093 fi
9094 rm -f conftest.s conftest.o
9095 # Check if specifying the maximum bytes to skip when
9096 # using .p2align is supported.
9097 echo ".p2align 4,,7" > conftest.s
9098 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
9099 gcc_cv_as_alignment_features=".p2align including maximum skip"
9100 cat >> confdefs.h <<\EOF
9101 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
9102 EOF
9103
9104 fi
9105 rm -f conftest.s conftest.o
9106 fi
9107 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
9108
9109 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
9110 echo "configure:9111: checking assembler subsection support" >&5
9111 gcc_cv_as_subsections=
9112 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
9113 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
9114 gcc_cv_as_subsections="working .subsection -1"
9115 fi
9116 elif test x$gcc_cv_as != x; then
9117 # Check if we have .subsection
9118 echo ".subsection 1" > conftest.s
9119 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
9120 gcc_cv_as_subsections=".subsection"
9121 if test x$gcc_cv_nm != x; then
9122 cat > conftest.s <<EOF
9123 conftest_label1: .word 0
9124 .subsection -1
9125 conftest_label2: .word 0
9126 .previous
9127 EOF
9128 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
9129 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
9130 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
9131 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
9132 :
9133 else
9134 gcc_cv_as_subsections="working .subsection -1"
9135 fi
9136 fi
9137 fi
9138 fi
9139 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
9140 fi
9141 if test x"$gcc_cv_as_subsections" = x"working .subsection -1"; then
9142 cat >> confdefs.h <<\EOF
9143 #define HAVE_GAS_SUBSECTION_ORDERING 1
9144 EOF
9145
9146 fi
9147 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
9148
9149 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
9150 echo "configure:9151: checking assembler weak support" >&5
9151 gcc_cv_as_weak=
9152 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
9153 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
9154 gcc_cv_as_weak="yes"
9155 fi
9156 elif test x$gcc_cv_as != x; then
9157 # Check if we have .weak
9158 echo " .weak foobar" > conftest.s
9159 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
9160 gcc_cv_as_weak="yes"
9161 fi
9162 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
9163 fi
9164 if test x"$gcc_cv_as_weak" = xyes; then
9165 cat >> confdefs.h <<\EOF
9166 #define HAVE_GAS_WEAK 1
9167 EOF
9168
9169 fi
9170 echo "$ac_t""$gcc_cv_as_weak" 1>&6
9171
9172 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
9173 echo "configure:9174: checking assembler hidden support" >&5
9174 gcc_cv_as_hidden=
9175 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
9176 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
9177 gcc_cv_as_hidden="yes"
9178 fi
9179 elif test x$gcc_cv_as != x; then
9180 # Check if we have .hidden
9181 echo " .hidden foobar" > conftest.s
9182 echo "foobar:" >> conftest.s
9183 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
9184 gcc_cv_as_hidden="yes"
9185 fi
9186 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
9187 fi
9188 if test x"$gcc_cv_as_hidden" = xyes; then
9189 cat >> confdefs.h <<\EOF
9190 #define HAVE_GAS_HIDDEN 1
9191 EOF
9192
9193 fi
9194 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
9195
9196 case "$target" in
9197 sparc*-*-*)
9198 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
9199 echo "configure:9200: checking assembler .register pseudo-op support" >&5
9200 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
9201 echo $ac_n "(cached) $ac_c" 1>&6
9202 else
9203
9204 gcc_cv_as_register_pseudo_op=unknown
9205 if test x$gcc_cv_as != x; then
9206 # Check if we have .register
9207 echo ".register %g2, #scratch" > conftest.s
9208 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
9209 gcc_cv_as_register_pseudo_op=yes
9210 else
9211 gcc_cv_as_register_pseudo_op=no
9212 fi
9213 rm -f conftest.s conftest.o
9214 fi
9215
9216 fi
9217
9218 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
9219 if test "x$gcc_cv_as_register_pseudo_op" = xyes; then
9220 cat >> confdefs.h <<\EOF
9221 #define HAVE_AS_REGISTER_PSEUDO_OP 1
9222 EOF
9223
9224 fi
9225
9226 echo $ac_n "checking assembler supports -relax""... $ac_c" 1>&6
9227 echo "configure:9228: checking assembler supports -relax" >&5
9228 if eval "test \"`echo '$''{'gcc_cv_as_relax_opt'+set}'`\" = set"; then
9229 echo $ac_n "(cached) $ac_c" 1>&6
9230 else
9231
9232 gcc_cv_as_relax_opt=unknown
9233 if test x$gcc_cv_as != x; then
9234 # Check if gas supports -relax
9235 echo ".text" > conftest.s
9236 if $gcc_cv_as -relax -o conftest.o conftest.s > /dev/null 2>&1; then
9237 gcc_cv_as_relax_opt=yes
9238 else
9239 gcc_cv_as_relax_opt=no
9240 fi
9241 rm -f conftest.s conftest.o
9242 fi
9243
9244 fi
9245
9246 echo "$ac_t""$gcc_cv_as_relax_opt" 1>&6
9247 if test "x$gcc_cv_as_relax_opt" = xyes; then
9248 cat >> confdefs.h <<\EOF
9249 #define HAVE_AS_RELAX_OPTION 1
9250 EOF
9251
9252 fi
9253
9254 case "$tm_file" in
9255 *64*)
9256 echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
9257 echo "configure:9258: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
9258 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
9259 echo $ac_n "(cached) $ac_c" 1>&6
9260 else
9261
9262 if test -n "$gcc_cv_as"; then
9263 echo ".xword foo" > conftest.s
9264 gcc_cv_as_flags64=no
9265 for flag in "-xarch=v9" "-64 -Av9"; do
9266 if $gcc_cv_as $flag -o conftest.o conftest.s \
9267 > /dev/null 2>&1; then
9268 gcc_cv_as_flags64=$flag
9269 break
9270 fi
9271 done
9272 rm -f conftest.s conftest.o
9273 else
9274 if test "$gas" = yes; then
9275 gcc_cv_as_flags64="-64 -Av9"
9276 else
9277 gcc_cv_as_flags64="-xarch=v9"
9278 fi
9279 fi
9280
9281 fi
9282
9283 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
9284 if test "x$gcc_cv_as_flags64" = xno; then
9285
9286 tmake_file=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
9287 dep_tmake_file=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
9288
9289 else
9290 cat >> confdefs.h <<EOF
9291 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
9292 EOF
9293
9294 fi
9295 ;;
9296 *) gcc_cv_as_flags64=${gcc_cv_as_flags64-no}
9297 ;;
9298 esac
9299
9300 if test "x$gcc_cv_as_flags64" != xno; then
9301 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
9302 echo "configure:9303: checking for assembler offsetable %lo() support" >&5
9303 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
9304 echo $ac_n "(cached) $ac_c" 1>&6
9305 else
9306
9307 gcc_cv_as_offsetable_lo10=unknown
9308 if test "x$gcc_cv_as" != x; then
9309 # Check if assembler has offsetable %lo()
9310 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
9311 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
9312 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
9313 > /dev/null 2>&1 &&
9314 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
9315 > /dev/null 2>&1; then
9316 if cmp conftest.o conftest1.o > /dev/null 2>&1; then
9317 gcc_cv_as_offsetable_lo10=no
9318 else
9319 gcc_cv_as_offsetable_lo10=yes
9320 fi
9321 else
9322 gcc_cv_as_offsetable_lo10=no
9323 fi
9324 rm -f conftest.s conftest.o conftest1.s conftest1.o
9325 fi
9326
9327 fi
9328
9329 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
9330 if test "x$gcc_cv_as_offsetable_lo10" = xyes; then
9331 cat >> confdefs.h <<\EOF
9332 #define HAVE_AS_OFFSETABLE_LO10 1
9333 EOF
9334
9335 fi
9336 fi
9337 ;;
9338
9339 i[34567]86-*-*)
9340 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
9341 echo "configure:9342: checking assembler instructions" >&5
9342 gcc_cv_as_instructions=
9343 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
9344 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
9345 gcc_cv_as_instructions="filds fists"
9346 fi
9347 elif test x$gcc_cv_as != x; then
9348 set "filds fists" "filds mem; fists mem"
9349 while test $# -gt 0
9350 do
9351 echo "$2" > conftest.s
9352 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
9353 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
9354 fi
9355 shift 2
9356 done
9357 rm -f conftest.s conftest.o
9358 fi
9359 if test x"$gcc_cv_as_instructions" != x; then
9360 cat >> confdefs.h <<EOF
9361 #define HAVE_GAS_`echo "$gcc_cv_as_instructions" | tr 'a-z ' 'A-Z_'` 1
9362 EOF
9363
9364 fi
9365 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
9366 ;;
9367 esac
9368
9369 # Figure out what language subdirectories are present.
9370 # Look if the user specified --enable-languages="..."; if not, use
9371 # the environment variable $LANGUAGES if defined. $LANGUAGES might
9372 # go away some day.
9373 if test x"${enable_languages+set}" != xset; then
9374 if test x"${LANGUAGES+set}" = xset; then
9375 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
9376 else
9377 enable_languages=all
9378 fi
9379 else
9380 if test x"${enable_languages}" = x; then
9381 { echo "configure: error: --enable-languages needs at least one argument" 1>&2; exit 1; }
9382 fi
9383 fi
9384 subdirs=
9385 for lang in ${srcdir}/*/config-lang.in ..
9386 do
9387 case $lang in
9388 ..) ;;
9389 # The odd quoting in the next line works around
9390 # an apparent bug in bash 1.12 on linux.
9391 ${srcdir}/[*]/config-lang.in) ;;
9392 *)
9393 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
9394 if test "x$lang_alias" = x
9395 then
9396 echo "$lang doesn't set \$language." 1>&2
9397 exit 1
9398 fi
9399 if test x"${enable_languages}" = xall; then
9400 add_this_lang=yes
9401 else
9402 case "${enable_languages}" in
9403 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
9404 add_this_lang=yes
9405 ;;
9406 * )
9407 add_this_lang=no
9408 ;;
9409 esac
9410 fi
9411 if test x"${add_this_lang}" = xyes; then
9412 case $lang in
9413 ${srcdir}/ada/config-lang.in)
9414 if test x$gnat = xyes ; then
9415 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9416 fi
9417 ;;
9418 *)
9419 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9420 ;;
9421 esac
9422 fi
9423 ;;
9424 esac
9425 done
9426
9427 # Make gthr-default.h if we have a thread file.
9428 gthread_flags=
9429 if test $thread_file != single; then
9430 rm -f gthr-default.h
9431 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9432 gthread_flags=-DHAVE_GTHR_DEFAULT
9433 fi
9434
9435
9436 # Find out what GC implementation we want, or may, use.
9437 # Check whether --with-gc or --without-gc was given.
9438 if test "${with_gc+set}" = set; then
9439 withval="$with_gc"
9440 case "$withval" in
9441 simple | page)
9442 GGC=ggc-$withval
9443 ;;
9444 *)
9445 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
9446 ;;
9447 esac
9448 else
9449 if test $ac_cv_func_mmap_anywhere = yes \
9450 || test $ac_cv_func_valloc = yes; then
9451 GGC=ggc-page
9452 else
9453 GGC=ggc-simple
9454 fi
9455 fi
9456
9457
9458 echo "Using $GGC for garbage collection."
9459
9460 # Use the system's zlib library.
9461 zlibdir=-L../../zlib
9462 zlibinc="-I\$(srcdir)/../../zlib"
9463 # Check whether --with-system-zlib or --without-system-zlib was given.
9464 if test "${with_system_zlib+set}" = set; then
9465 withval="$with_system_zlib"
9466 zlibdir=
9467 zlibinc=
9468
9469 fi
9470
9471
9472
9473
9474 # Build a new-abi (c++) system
9475 # Check whether --enable-new-gxx-abi or --disable-new-gxx-abi was given.
9476 if test "${enable_new_gxx_abi+set}" = set; then
9477 enableval="$enable_new_gxx_abi"
9478 cat >> confdefs.h <<\EOF
9479 #define ENABLE_NEW_GXX_ABI 1
9480 EOF
9481
9482 GXX_ABI_FLAG='-fnew-abi'
9483 echo "Building a new-abi g++ compiler."
9484
9485 fi
9486
9487
9488
9489 # Build a new-libstdc++ system (ie libstdc++-v3)
9490 echo $ac_n "checking for libstdc++ to install""... $ac_c" 1>&6
9491 echo "configure:9492: checking for libstdc++ to install" >&5
9492 # Check whether --enable-libstdcxx-v3 or --disable-libstdcxx-v3 was given.
9493 if test "${enable_libstdcxx_v3+set}" = set; then
9494 enableval="$enable_libstdcxx_v3"
9495 enable_libstdcxx_v3="$enableval"
9496 else
9497 enable_libstdcxx_v3=no
9498 fi
9499
9500
9501 if test x$enable_libstdcxx_v3 = xyes; then
9502 echo "$ac_t""v3" 1>&6
9503 ac_esn=1
9504 else
9505 echo "$ac_t""v2" 1>&6
9506 ac_esn=0
9507 fi
9508 cat >> confdefs.h <<EOF
9509 #define ENABLE_STD_NAMESPACE $ac_esn
9510 EOF
9511
9512
9513
9514 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
9515 echo "configure:9516: checking whether to enable maintainer-specific portions of Makefiles" >&5
9516 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9517 if test "${enable_maintainer_mode+set}" = set; then
9518 enableval="$enable_maintainer_mode"
9519 maintainer_mode=$enableval
9520 else
9521 maintainer_mode=no
9522 fi
9523
9524
9525 echo "$ac_t""$maintainer_mode" 1>&6
9526
9527 if test "$maintainer_mode" = "yes"; then
9528 MAINT=''
9529 else
9530 MAINT='#'
9531 fi
9532
9533 # Make empty files to contain the specs and options for each language.
9534 # Then add #include lines to for a compiler that has specs and/or options.
9535
9536 lang_specs_files=
9537 lang_options_files=
9538 lang_tree_files=
9539 rm -f specs.h options.h gencheck.h
9540 touch specs.h options.h gencheck.h
9541 for subdir in . $subdirs
9542 do
9543 if test -f $srcdir/$subdir/lang-specs.h; then
9544 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
9545 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
9546 fi
9547 if test -f $srcdir/$subdir/lang-options.h; then
9548 echo "#include \"$subdir/lang-options.h\"" >>options.h
9549 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
9550 fi
9551 if test -f $srcdir/$subdir/$subdir-tree.def; then
9552 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
9553 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
9554 fi
9555 done
9556
9557 # These (without "all_") are set in each config-lang.in.
9558 # `language' must be a single word so is spelled singularly.
9559 all_languages=
9560 all_boot_languages=
9561 all_compilers=
9562 all_stagestuff=
9563 all_diff_excludes=
9564 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
9565 # List of language makefile fragments.
9566 all_lang_makefiles=
9567 all_headers=
9568 all_lib2funcs=
9569
9570 # Add the language fragments.
9571 # Languages are added via two mechanisms. Some information must be
9572 # recorded in makefile variables, these are defined in config-lang.in.
9573 # We accumulate them and plug them into the main Makefile.
9574 # The other mechanism is a set of hooks for each of the main targets
9575 # like `clean', `install', etc.
9576
9577 language_fragments="Make-lang"
9578 language_hooks="Make-hooks"
9579 oldstyle_subdirs=
9580
9581 for s in .. $subdirs
9582 do
9583 if test $s != ".."
9584 then
9585 language=
9586 boot_language=
9587 compilers=
9588 stagestuff=
9589 diff_excludes=
9590 headers=
9591 outputs=
9592 lib2funcs=
9593 . ${srcdir}/$s/config-lang.in
9594 if test "x$language" = x
9595 then
9596 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
9597 exit 1
9598 fi
9599 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
9600 all_languages="$all_languages $language"
9601 if test "x$boot_language" = xyes
9602 then
9603 all_boot_languages="$all_boot_languages $language"
9604 fi
9605 all_compilers="$all_compilers $compilers"
9606 all_stagestuff="$all_stagestuff $stagestuff"
9607 all_diff_excludes="$all_diff_excludes $diff_excludes"
9608 all_headers="$all_headers $headers"
9609 all_outputs="$all_outputs $outputs"
9610 if test x$outputs = x
9611 then
9612 oldstyle_subdirs="$oldstyle_subdirs $s"
9613 fi
9614 all_lib2funcs="$all_lib2funcs $lib2funcs"
9615 fi
9616 done
9617
9618 # Since we can't use `::' targets, we link each language in
9619 # with a set of hooks, reached indirectly via lang.${target}.
9620
9621 rm -f Make-hooks
9622 touch Make-hooks
9623 target_list="all.build all.cross start.encap rest.encap \
9624 info dvi \
9625 install-normal install-common install-info install-man \
9626 uninstall distdir \
9627 mostlyclean clean distclean extraclean maintainer-clean \
9628 stage1 stage2 stage3 stage4"
9629 for t in $target_list
9630 do
9631 x=
9632 for lang in .. $all_languages
9633 do
9634 if test $lang != ".."; then
9635 x="$x $lang.$t"
9636 fi
9637 done
9638 echo "lang.$t: $x" >> Make-hooks
9639 done
9640
9641 # If we're not building in srcdir, create .gdbinit.
9642
9643 if test ! -f Makefile.in; then
9644 echo "dir ." > .gdbinit
9645 echo "dir ${srcdir}" >> .gdbinit
9646 if test x$gdb_needs_out_file_path = xyes
9647 then
9648 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
9649 fi
9650 if test "x$subdirs" != x; then
9651 for s in $subdirs
9652 do
9653 echo "dir ${srcdir}/$s" >> .gdbinit
9654 done
9655 fi
9656 echo "source ${srcdir}/.gdbinit" >> .gdbinit
9657 fi
9658
9659 # Define variables host_canonical and build_canonical
9660 # because some Cygnus local changes in the Makefile depend on them.
9661 build_canonical=${build}
9662 host_canonical=${host}
9663 target_subdir=
9664 if test "${host}" != "${target}" ; then
9665 target_subdir=${target}/
9666 fi
9667
9668
9669
9670
9671 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
9672 # absolute path for gcc_tooldir based on inserting the number of up-directory
9673 # movements required to get from $(exec_prefix) to $(prefix) into the basic
9674 # $(libsubdir)/@(unlibsubdir) based path.
9675 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
9676 # make and thus we'd get different behavior depending on where we built the
9677 # sources.
9678 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
9679 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
9680 else
9681 # An explanation of the sed strings:
9682 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
9683 # -e 's|/$||' match a trailing forward slash and eliminates it
9684 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
9685 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
9686 #
9687 # (*) Note this pattern overwrites the first character of the string
9688 # with a forward slash if one is not already present. This is not a
9689 # problem because the exact names of the sub-directories concerned is
9690 # unimportant, just the number of them matters.
9691 #
9692 # The practical upshot of these patterns is like this:
9693 #
9694 # prefix exec_prefix result
9695 # ------ ----------- ------
9696 # /foo /foo/bar ../
9697 # /foo/ /foo/bar ../
9698 # /foo /foo/bar/ ../
9699 # /foo/ /foo/bar/ ../
9700 # /foo /foo/bar/ugg ../../
9701 #
9702 dollar='$$'
9703 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
9704 fi
9705
9706
9707
9708 # Nothing to do for FLOAT_H, float_format already handled.
9709 objdir=`pwd`
9710
9711
9712 # Process the language and host/target makefile fragments.
9713 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
9714
9715 # Substitute configuration variables
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
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774 # Echo that links are built
9775 if test x$host = x$target
9776 then
9777 str1="native "
9778 else
9779 str1="cross-"
9780 str2=" from $host"
9781 fi
9782
9783 if test x$host != x$build
9784 then
9785 str3=" on a $build system"
9786 fi
9787
9788 if test "x$str2" != x || test "x$str3" != x
9789 then
9790 str4=
9791 fi
9792
9793 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
9794
9795 if test "x$str2" != x || test "x$str3" != x
9796 then
9797 echo " ${str2}${str3}." 1>&2
9798 fi
9799
9800 # Truncate the target if necessary
9801 if test x$host_truncate_target != x; then
9802 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
9803 fi
9804
9805 # Configure the subdirectories
9806 # AC_CONFIG_SUBDIRS($subdirs)
9807
9808 # Create the Makefile
9809 # and configure language subdirectories
9810 trap '' 1 2 15
9811 cat > confcache <<\EOF
9812 # This file is a shell script that caches the results of configure
9813 # tests run on this system so they can be shared between configure
9814 # scripts and configure runs. It is not useful on other systems.
9815 # If it contains results you don't want to keep, you may remove or edit it.
9816 #
9817 # By default, configure uses ./config.cache as the cache file,
9818 # creating it if it does not exist already. You can give configure
9819 # the --cache-file=FILE option to use a different cache file; that is
9820 # what configure does when it calls configure scripts in
9821 # subdirectories, so they share the cache.
9822 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9823 # config.status only pays attention to the cache file if you give it the
9824 # --recheck option to rerun configure.
9825 #
9826 EOF
9827 # The following way of writing the cache mishandles newlines in values,
9828 # but we know of no workaround that is simple, portable, and efficient.
9829 # So, don't put newlines in cache variables' values.
9830 # Ultrix sh set writes to stderr and can't be redirected directly,
9831 # and sets the high bit in the cache file unless we assign to the vars.
9832 (set) 2>&1 |
9833 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9834 *ac_space=\ *)
9835 # `set' does not quote correctly, so add quotes (double-quote substitution
9836 # turns \\\\ into \\, and sed turns \\ into \).
9837 sed -n \
9838 -e "s/'/'\\\\''/g" \
9839 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9840 ;;
9841 *)
9842 # `set' quotes correctly as required by POSIX, so do not add quotes.
9843 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9844 ;;
9845 esac >> confcache
9846 if cmp -s $cache_file confcache; then
9847 :
9848 else
9849 if test -w $cache_file; then
9850 echo "updating cache $cache_file"
9851 cat confcache > $cache_file
9852 else
9853 echo "not updating unwritable cache $cache_file"
9854 fi
9855 fi
9856 rm -f confcache
9857
9858 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9859
9860 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9861 # Let make expand exec_prefix.
9862 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9863
9864 # Any assignment to VPATH causes Sun make to only execute
9865 # the first set of double-colon rules, so remove it if not needed.
9866 # If there is a colon in the path, we need to keep it.
9867 if test "x$srcdir" = x.; then
9868 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9869 fi
9870
9871 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9872
9873 DEFS=-DHAVE_CONFIG_H
9874
9875 # Without the "./", some shells look in PATH for config.status.
9876 : ${CONFIG_STATUS=./config.status}
9877
9878 echo creating $CONFIG_STATUS
9879 rm -f $CONFIG_STATUS
9880 cat > $CONFIG_STATUS <<EOF
9881 #! /bin/sh
9882 # Generated automatically by configure.
9883 # Run this file to recreate the current configuration.
9884 # This directory was configured as follows,
9885 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9886 #
9887 # $0 $ac_configure_args
9888 #
9889 # Compiler output produced by configure, useful for debugging
9890 # configure, is in ./config.log if it exists.
9891
9892 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9893 for ac_option
9894 do
9895 case "\$ac_option" in
9896 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9897 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9898 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9899 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9900 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9901 exit 0 ;;
9902 -help | --help | --hel | --he | --h)
9903 echo "\$ac_cs_usage"; exit 0 ;;
9904 *) echo "\$ac_cs_usage"; exit 1 ;;
9905 esac
9906 done
9907
9908 ac_given_srcdir=$srcdir
9909
9910 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9911 EOF
9912 cat >> $CONFIG_STATUS <<EOF
9913
9914 # Protect against being on the right side of a sed subst in config.status.
9915 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9916 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9917 $ac_vpsub
9918 $extrasub
9919 s%@SHELL@%$SHELL%g
9920 s%@CFLAGS@%$CFLAGS%g
9921 s%@CPPFLAGS@%$CPPFLAGS%g
9922 s%@CXXFLAGS@%$CXXFLAGS%g
9923 s%@FFLAGS@%$FFLAGS%g
9924 s%@DEFS@%$DEFS%g
9925 s%@LDFLAGS@%$LDFLAGS%g
9926 s%@LIBS@%$LIBS%g
9927 s%@exec_prefix@%$exec_prefix%g
9928 s%@prefix@%$prefix%g
9929 s%@program_transform_name@%$program_transform_name%g
9930 s%@bindir@%$bindir%g
9931 s%@sbindir@%$sbindir%g
9932 s%@libexecdir@%$libexecdir%g
9933 s%@datadir@%$datadir%g
9934 s%@sysconfdir@%$sysconfdir%g
9935 s%@sharedstatedir@%$sharedstatedir%g
9936 s%@localstatedir@%$localstatedir%g
9937 s%@libdir@%$libdir%g
9938 s%@includedir@%$includedir%g
9939 s%@oldincludedir@%$oldincludedir%g
9940 s%@infodir@%$infodir%g
9941 s%@mandir@%$mandir%g
9942 s%@host@%$host%g
9943 s%@host_alias@%$host_alias%g
9944 s%@host_cpu@%$host_cpu%g
9945 s%@host_vendor@%$host_vendor%g
9946 s%@host_os@%$host_os%g
9947 s%@target@%$target%g
9948 s%@target_alias@%$target_alias%g
9949 s%@target_cpu@%$target_cpu%g
9950 s%@target_vendor@%$target_vendor%g
9951 s%@target_os@%$target_os%g
9952 s%@build@%$build%g
9953 s%@build_alias@%$build_alias%g
9954 s%@build_cpu@%$build_cpu%g
9955 s%@build_vendor@%$build_vendor%g
9956 s%@build_os@%$build_os%g
9957 s%@CC@%$CC%g
9958 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
9959 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
9960 s%@stage2_warn_cflags@%$stage2_warn_cflags%g
9961 s%@SET_MAKE@%$SET_MAKE%g
9962 s%@AWK@%$AWK%g
9963 s%@LEX@%$LEX%g
9964 s%@LEXLIB@%$LEXLIB%g
9965 s%@LN@%$LN%g
9966 s%@LN_S@%$LN_S%g
9967 s%@RANLIB@%$RANLIB%g
9968 s%@YACC@%$YACC%g
9969 s%@INSTALL@%$INSTALL%g
9970 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9971 s%@INSTALL_DATA@%$INSTALL_DATA%g
9972 s%@CPP@%$CPP%g
9973 s%@gnat@%$gnat%g
9974 s%@MAKEINFO@%$MAKEINFO%g
9975 s%@BUILD_INFO@%$BUILD_INFO%g
9976 s%@INSTALL_INFO@%$INSTALL_INFO%g
9977 s%@TARGET_GETGROUPS_T@%$TARGET_GETGROUPS_T%g
9978 s%@vfprintf@%$vfprintf%g
9979 s%@doprint@%$doprint%g
9980 s%@manext@%$manext%g
9981 s%@objext@%$objext%g
9982 s%@PACKAGE@%$PACKAGE%g
9983 s%@VERSION@%$VERSION%g
9984 s%@ALLOCA@%$ALLOCA%g
9985 s%@USE_NLS@%$USE_NLS%g
9986 s%@MSGFMT@%$MSGFMT%g
9987 s%@GMSGFMT@%$GMSGFMT%g
9988 s%@XGETTEXT@%$XGETTEXT%g
9989 s%@GENCAT@%$GENCAT%g
9990 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9991 s%@CATALOGS@%$CATALOGS%g
9992 s%@CATOBJEXT@%$CATOBJEXT%g
9993 s%@DATADIRNAME@%$DATADIRNAME%g
9994 s%@GMOFILES@%$GMOFILES%g
9995 s%@INSTOBJEXT@%$INSTOBJEXT%g
9996 s%@INTLDEPS@%$INTLDEPS%g
9997 s%@INTLLIBS@%$INTLLIBS%g
9998 s%@INTLOBJS@%$INTLOBJS%g
9999 s%@POFILES@%$POFILES%g
10000 s%@POSUB@%$POSUB%g
10001 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
10002 s%@GT_NO@%$GT_NO%g
10003 s%@GT_YES@%$GT_YES%g
10004 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
10005 s%@l@%$l%g
10006 s%@inhibit_libc@%$inhibit_libc%g
10007 s%@gthread_flags@%$gthread_flags%g
10008 s%@GGC@%$GGC%g
10009 s%@zlibdir@%$zlibdir%g
10010 s%@zlibinc@%$zlibinc%g
10011 s%@GXX_ABI_FLAG@%$GXX_ABI_FLAG%g
10012 s%@MAINT@%$MAINT%g
10013 s%@build_canonical@%$build_canonical%g
10014 s%@host_canonical@%$host_canonical%g
10015 s%@target_subdir@%$target_subdir%g
10016 s%@gcc_tooldir@%$gcc_tooldir%g
10017 s%@dollar@%$dollar%g
10018 s%@objdir@%$objdir%g
10019 s%@subdirs@%$subdirs%g
10020 s%@all_boot_languages@%$all_boot_languages%g
10021 s%@all_compilers@%$all_compilers%g
10022 s%@all_diff_excludes@%$all_diff_excludes%g
10023 s%@all_headers@%$all_headers%g
10024 s%@all_lang_makefiles@%$all_lang_makefiles%g
10025 s%@all_languages@%$all_languages%g
10026 s%@all_lib2funcs@%$all_lib2funcs%g
10027 s%@all_stagestuff@%$all_stagestuff%g
10028 s%@build_exeext@%$build_exeext%g
10029 s%@build_install_headers_dir@%$build_install_headers_dir%g
10030 s%@build_xm_file_list@%$build_xm_file_list%g
10031 s%@cc_set_by_configure@%$cc_set_by_configure%g
10032 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
10033 s%@cpp_install_dir@%$cpp_install_dir%g
10034 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
10035 s%@dep_tmake_file@%$dep_tmake_file%g
10036 s%@extra_c_flags@%$extra_c_flags%g
10037 s%@extra_c_objs@%$extra_c_objs%g
10038 s%@extra_cpp_objs@%$extra_cpp_objs%g
10039 s%@extra_cxx_objs@%$extra_cxx_objs%g
10040 s%@extra_headers_list@%$extra_headers_list%g
10041 s%@extra_objs@%$extra_objs%g
10042 s%@extra_parts@%$extra_parts%g
10043 s%@extra_passes@%$extra_passes%g
10044 s%@extra_programs@%$extra_programs%g
10045 s%@float_h_file@%$float_h_file%g
10046 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
10047 s%@gcc_version@%$gcc_version%g
10048 s%@gcc_version_trigger@%$gcc_version_trigger%g
10049 s%@host_exeext@%$host_exeext%g
10050 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
10051 s%@host_xm_file_list@%$host_xm_file_list%g
10052 s%@install@%$install%g
10053 s%@lang_options_files@%$lang_options_files%g
10054 s%@lang_specs_files@%$lang_specs_files%g
10055 s%@lang_tree_files@%$lang_tree_files%g
10056 s%@local_prefix@%$local_prefix%g
10057 s%@maybe_use_collect2@%$maybe_use_collect2%g
10058 s%@md_file@%$md_file%g
10059 s%@objc_boehm_gc@%$objc_boehm_gc%g
10060 s%@out_file@%$out_file%g
10061 s%@out_object_file@%$out_object_file%g
10062 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
10063 s%@symbolic_link@%$symbolic_link%g
10064 s%@thread_file@%$thread_file%g
10065 s%@tm_file_list@%$tm_file_list%g
10066 s%@will_use_collect2@%$will_use_collect2%g
10067 /@target_overrides@/r $target_overrides
10068 s%@target_overrides@%%g
10069 /@host_overrides@/r $host_overrides
10070 s%@host_overrides@%%g
10071 s%@cross_defines@%$cross_defines%g
10072 /@cross_overrides@/r $cross_overrides
10073 s%@cross_overrides@%%g
10074 /@build_overrides@/r $build_overrides
10075 s%@build_overrides@%%g
10076 /@language_fragments@/r $language_fragments
10077 s%@language_fragments@%%g
10078 /@language_hooks@/r $language_hooks
10079 s%@language_hooks@%%g
10080
10081 CEOF
10082 EOF
10083
10084 cat >> $CONFIG_STATUS <<\EOF
10085
10086 # Split the substitutions into bite-sized pieces for seds with
10087 # small command number limits, like on Digital OSF/1 and HP-UX.
10088 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
10089 ac_file=1 # Number of current file.
10090 ac_beg=1 # First line for current file.
10091 ac_end=$ac_max_sed_cmds # Line after last line for current file.
10092 ac_more_lines=:
10093 ac_sed_cmds=""
10094 while $ac_more_lines; do
10095 if test $ac_beg -gt 1; then
10096 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
10097 else
10098 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
10099 fi
10100 if test ! -s conftest.s$ac_file; then
10101 ac_more_lines=false
10102 rm -f conftest.s$ac_file
10103 else
10104 if test -z "$ac_sed_cmds"; then
10105 ac_sed_cmds="sed -f conftest.s$ac_file"
10106 else
10107 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10108 fi
10109 ac_file=`expr $ac_file + 1`
10110 ac_beg=$ac_end
10111 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10112 fi
10113 done
10114 if test -z "$ac_sed_cmds"; then
10115 ac_sed_cmds=cat
10116 fi
10117 EOF
10118
10119 cat >> $CONFIG_STATUS <<EOF
10120
10121 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
10122 EOF
10123 cat >> $CONFIG_STATUS <<\EOF
10124 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10125 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10126 case "$ac_file" in
10127 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10128 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10129 *) ac_file_in="${ac_file}.in" ;;
10130 esac
10131
10132 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
10133
10134 # Remove last slash and all that follows it. Not all systems have dirname.
10135 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10136 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10137 # The file is in a subdirectory.
10138 test ! -d "$ac_dir" && mkdir "$ac_dir"
10139 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10140 # A "../" for each directory in $ac_dir_suffix.
10141 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10142 else
10143 ac_dir_suffix= ac_dots=
10144 fi
10145
10146 case "$ac_given_srcdir" in
10147 .) srcdir=.
10148 if test -z "$ac_dots"; then top_srcdir=.
10149 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10150 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10151 *) # Relative path.
10152 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10153 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10154 esac
10155
10156
10157 echo creating "$ac_file"
10158 rm -f "$ac_file"
10159 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10160 case "$ac_file" in
10161 *Makefile*) ac_comsub="1i\\
10162 # $configure_input" ;;
10163 *) ac_comsub= ;;
10164 esac
10165
10166 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10167 sed -e "$ac_comsub
10168 s%@configure_input@%$configure_input%g
10169 s%@srcdir@%$srcdir%g
10170 s%@top_srcdir@%$top_srcdir%g
10171 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
10172 fi; done
10173 rm -f conftest.s*
10174
10175 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10176 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10177 #
10178 # ac_d sets the value in "#define NAME VALUE" lines.
10179 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10180 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
10181 ac_dC='\3'
10182 ac_dD='%g'
10183 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10184 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10185 ac_uB='\([ ]\)%\1#\2define\3'
10186 ac_uC=' '
10187 ac_uD='\4%g'
10188 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10189 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10190 ac_eB='$%\1#\2define\3'
10191 ac_eC=' '
10192 ac_eD='%g'
10193
10194 if test "${CONFIG_HEADERS+set}" != set; then
10195 EOF
10196 cat >> $CONFIG_STATUS <<EOF
10197 CONFIG_HEADERS="auto-host.h:config.in"
10198 EOF
10199 cat >> $CONFIG_STATUS <<\EOF
10200 fi
10201 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10202 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10203 case "$ac_file" in
10204 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10205 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10206 *) ac_file_in="${ac_file}.in" ;;
10207 esac
10208
10209 echo creating $ac_file
10210
10211 rm -f conftest.frag conftest.in conftest.out
10212 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10213 cat $ac_file_inputs > conftest.in
10214
10215 EOF
10216
10217 # Transform confdefs.h into a sed script conftest.vals that substitutes
10218 # the proper values into config.h.in to produce config.h. And first:
10219 # Protect against being on the right side of a sed subst in config.status.
10220 # Protect against being in an unquoted here document in config.status.
10221 rm -f conftest.vals
10222 cat > conftest.hdr <<\EOF
10223 s/[\\&%]/\\&/g
10224 s%[\\$`]%\\&%g
10225 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10226 s%ac_d%ac_u%gp
10227 s%ac_u%ac_e%gp
10228 EOF
10229 sed -n -f conftest.hdr confdefs.h > conftest.vals
10230 rm -f conftest.hdr
10231
10232 # This sed command replaces #undef with comments. This is necessary, for
10233 # example, in the case of _POSIX_SOURCE, which is predefined and required
10234 # on some systems where configure will not decide to define it.
10235 cat >> conftest.vals <<\EOF
10236 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10237 EOF
10238
10239 # Break up conftest.vals because some shells have a limit on
10240 # the size of here documents, and old seds have small limits too.
10241
10242 rm -f conftest.tail
10243 while :
10244 do
10245 ac_lines=`grep -c . conftest.vals`
10246 # grep -c gives empty output for an empty file on some AIX systems.
10247 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10248 # Write a limited-size here document to conftest.frag.
10249 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10250 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10251 echo 'CEOF
10252 sed -f conftest.frag conftest.in > conftest.out
10253 rm -f conftest.in
10254 mv conftest.out conftest.in
10255 ' >> $CONFIG_STATUS
10256 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10257 rm -f conftest.vals
10258 mv conftest.tail conftest.vals
10259 done
10260 rm -f conftest.vals
10261
10262 cat >> $CONFIG_STATUS <<\EOF
10263 rm -f conftest.frag conftest.h
10264 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10265 cat conftest.in >> conftest.h
10266 rm -f conftest.in
10267 if cmp -s $ac_file conftest.h 2>/dev/null; then
10268 echo "$ac_file is unchanged"
10269 rm -f conftest.h
10270 else
10271 # Remove last slash and all that follows it. Not all systems have dirname.
10272 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10273 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10274 # The file is in a subdirectory.
10275 test ! -d "$ac_dir" && mkdir "$ac_dir"
10276 fi
10277 rm -f $ac_file
10278 mv conftest.h $ac_file
10279 fi
10280 fi; done
10281
10282 EOF
10283
10284 cat >> $CONFIG_STATUS <<EOF
10285 ac_sources="$nls_cv_header_libgt"
10286 ac_dests="$nls_cv_header_intl"
10287 EOF
10288
10289 cat >> $CONFIG_STATUS <<\EOF
10290 srcdir=$ac_given_srcdir
10291 while test -n "$ac_sources"; do
10292 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
10293 set $ac_sources; ac_source=$1; shift; ac_sources=$*
10294
10295 echo "linking $srcdir/$ac_source to $ac_dest"
10296
10297 if test ! -r $srcdir/$ac_source; then
10298 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
10299 fi
10300 rm -f $ac_dest
10301
10302 # Make relative symlinks.
10303 # Remove last slash and all that follows it. Not all systems have dirname.
10304 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
10305 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
10306 # The dest file is in a subdirectory.
10307 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
10308 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
10309 # A "../" for each directory in $ac_dest_dir_suffix.
10310 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
10311 else
10312 ac_dest_dir_suffix= ac_dots=
10313 fi
10314
10315 case "$srcdir" in
10316 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
10317 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
10318 esac
10319
10320 # Make a symlink if possible; otherwise try a hard link.
10321 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
10322 ln $srcdir/$ac_source $ac_dest; then :
10323 else
10324 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
10325 fi
10326 done
10327 EOF
10328 cat >> $CONFIG_STATUS <<EOF
10329
10330
10331 host='${host}'
10332 build='${build}'
10333 target='${target}'
10334 target_alias='${target_alias}'
10335 srcdir='${srcdir}'
10336 subdirs='${subdirs}'
10337 oldstyle_subdirs='${oldstyle_subdirs}'
10338 symbolic_link='${symbolic_link}'
10339 program_transform_set='${program_transform_set}'
10340 program_transform_name='${program_transform_name}'
10341 dep_host_xmake_file='${dep_host_xmake_file}'
10342 host_xmake_file='${host_xmake_file}'
10343 dep_tmake_file='${dep_tmake_file}'
10344 tmake_file='${tmake_file}'
10345 thread_file='${thread_file}'
10346 gcc_version='${gcc_version}'
10347 gcc_version_trigger='${gcc_version_trigger}'
10348 local_prefix='${local_prefix}'
10349 build_install_headers_dir='${build_install_headers_dir}'
10350 build_exeext='${build_exeext}'
10351 host_exeext='${host_exeext}'
10352 out_file='${out_file}'
10353 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
10354 SET_MAKE='${SET_MAKE}'
10355 target_list='${target_list}'
10356 target_overrides='${target_overrides}'
10357 host_overrides='${host_overrides}'
10358 cross_defines='${cross_defines}'
10359 cross_overrides='${cross_overrides}'
10360 build_overrides='${build_overrides}'
10361 cpp_install_dir='${cpp_install_dir}'
10362
10363 EOF
10364 cat >> $CONFIG_STATUS <<\EOF
10365 case "$CONFIG_FILES" in *po/Makefile.in*)
10366 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
10367 esac
10368
10369 . $srcdir/configure.lang
10370 case x$CONFIG_HEADERS in
10371 xauto-host.h:config.in)
10372 echo > cstamp-h ;;
10373 esac
10374 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
10375 # bootstrapping and the installation procedure can still use
10376 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
10377 # FLAGS_TO_PASS has been modified to solve the problem there.
10378 # This is virtually a duplicate of what happens in configure.lang; we do
10379 # an extra check to make sure this only happens if ln -s can be used.
10380 if test "$symbolic_link" = "ln -s"; then
10381 for d in .. ${subdirs} ; do
10382 if test $d != ..; then
10383 STARTDIR=`pwd`
10384 cd $d
10385 for t in stage1 stage2 stage3 stage4 include
10386 do
10387 rm -f $t
10388 $symbolic_link ../$t $t 2>/dev/null
10389 done
10390 cd $STARTDIR
10391 fi
10392 done
10393 else true ; fi
10394 # Avoid having to add intl to our include paths.
10395 if test -f intl/libintl.h; then
10396 echo creating libintl.h
10397 echo '#include "intl/libintl.h"' >libintl.h
10398 fi
10399
10400 exit 0
10401 EOF
10402 chmod +x $CONFIG_STATUS
10403 rm -fr confdefs* $ac_clean_files
10404 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10405