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