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