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