Daily bump.
[official-gcc.git] / gcc / configure
blob2ae11025d02dcf8bce7362ef6c5559249fd8c07a
1 #! /bin/sh
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.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
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 enable expensive run-time checks."
33 ac_help="$ac_help
34 --disable-cpp don't provide a user-visible C preprocessor."
35 ac_help="$ac_help
36 --with-cpp-install-dir=DIR
37 install the user visible C preprocessor in DIR
38 (relative to PREFIX) as well as PREFIX/bin."
39 ac_help="$ac_help
40 --enable-cpplib use cpplib for the C preprocessor."
41 ac_help="$ac_help
42 --enable-c-cpplib link cpplib directly into C and C++ compilers
43 (EXPERIMENTAL) (implies --enable-cpplib)."
44 ac_help="$ac_help
45 --enable-c-mbchar enable multibyte characters for C and C++."
46 ac_help="$ac_help
47 --disable-fast-fixincludes
48 Disable the new fast fixincludes.
49 Run the old fixincludes script unconditionally"
50 ac_help="$ac_help
51 --enable-haifa use the experimental scheduler.
52 --disable-haifa don't use the experimental scheduler for the
53 targets which normally enable it."
54 ac_help="$ac_help
55 --enable-threads enable thread usage for target GCC.
56 --enable-threads=LIB use LIB thread package for target GCC."
57 ac_help="$ac_help
58 --enable-objc-gc enable the use of Boehm's garbage collector with
59 the GNU Objective-C runtime."
60 ac_help="$ac_help
61 --enable-java-gc=TYPE choose garbage collector [boehm]"
62 ac_help="$ac_help
63 --enable-dwarf2 enable DWARF2 debugging as default."
64 ac_help="$ac_help
65 --enable-nls use Native Language Support (disabled by default)"
66 ac_help="$ac_help
67 --disable-nls do not use Native Language Support"
68 ac_help="$ac_help
69 --with-included-gettext use the GNU gettext library included here"
70 ac_help="$ac_help
71 --with-catgets use catgets functions if available"
73 # Initialize some variables set by options.
74 # The variables have the same names as the options, with
75 # dashes changed to underlines.
76 build=NONE
77 cache_file=./config.cache
78 exec_prefix=NONE
79 host=NONE
80 no_create=
81 nonopt=NONE
82 no_recursion=
83 prefix=NONE
84 program_prefix=NONE
85 program_suffix=NONE
86 program_transform_name=s,x,x,
87 silent=
88 site=
89 srcdir=
90 target=NONE
91 verbose=
92 x_includes=NONE
93 x_libraries=NONE
94 bindir='${exec_prefix}/bin'
95 sbindir='${exec_prefix}/sbin'
96 libexecdir='${exec_prefix}/libexec'
97 datadir='${prefix}/share'
98 sysconfdir='${prefix}/etc'
99 sharedstatedir='${prefix}/com'
100 localstatedir='${prefix}/var'
101 libdir='${exec_prefix}/lib'
102 includedir='${prefix}/include'
103 oldincludedir='/usr/include'
104 infodir='${prefix}/info'
105 mandir='${prefix}/man'
107 # Initialize some other variables.
108 subdirs=
109 MFLAGS= MAKEFLAGS=
110 SHELL=${CONFIG_SHELL-/bin/sh}
111 # Maximum number of lines to put in a shell here document.
112 ac_max_here_lines=12
114 ac_prev=
115 for ac_option
118 # If the previous option needs an argument, assign it.
119 if test -n "$ac_prev"; then
120 eval "$ac_prev=\$ac_option"
121 ac_prev=
122 continue
125 case "$ac_option" in
126 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
127 *) ac_optarg= ;;
128 esac
130 # Accept the important Cygnus configure options, so we can diagnose typos.
132 case "$ac_option" in
134 -bindir | --bindir | --bindi | --bind | --bin | --bi)
135 ac_prev=bindir ;;
136 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
137 bindir="$ac_optarg" ;;
139 -build | --build | --buil | --bui | --bu)
140 ac_prev=build ;;
141 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
142 build="$ac_optarg" ;;
144 -cache-file | --cache-file | --cache-fil | --cache-fi \
145 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
146 ac_prev=cache_file ;;
147 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
148 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
149 cache_file="$ac_optarg" ;;
151 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
152 ac_prev=datadir ;;
153 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
154 | --da=*)
155 datadir="$ac_optarg" ;;
157 -disable-* | --disable-*)
158 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
159 # Reject names that are not valid shell variable names.
160 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
161 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
163 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
164 eval "enable_${ac_feature}=no" ;;
166 -enable-* | --enable-*)
167 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
168 # Reject names that are not valid shell variable names.
169 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
170 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
172 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
173 case "$ac_option" in
174 *=*) ;;
175 *) ac_optarg=yes ;;
176 esac
177 eval "enable_${ac_feature}='$ac_optarg'" ;;
179 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
180 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
181 | --exec | --exe | --ex)
182 ac_prev=exec_prefix ;;
183 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
184 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
185 | --exec=* | --exe=* | --ex=*)
186 exec_prefix="$ac_optarg" ;;
188 -gas | --gas | --ga | --g)
189 # Obsolete; use --with-gas.
190 with_gas=yes ;;
192 -help | --help | --hel | --he)
193 # Omit some internal or obsolete options to make the list less imposing.
194 # This message is too long to be a string in the A/UX 3.1 sh.
195 cat << EOF
196 Usage: configure [options] [host]
197 Options: [defaults in brackets after descriptions]
198 Configuration:
199 --cache-file=FILE cache test results in FILE
200 --help print this message
201 --no-create do not create output files
202 --quiet, --silent do not print \`checking...' messages
203 --version print the version of autoconf that created configure
204 Directory and file names:
205 --prefix=PREFIX install architecture-independent files in PREFIX
206 [$ac_default_prefix]
207 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
208 [same as prefix]
209 --bindir=DIR user executables in DIR [EPREFIX/bin]
210 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
211 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
212 --datadir=DIR read-only architecture-independent data in DIR
213 [PREFIX/share]
214 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
215 --sharedstatedir=DIR modifiable architecture-independent data in DIR
216 [PREFIX/com]
217 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
218 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
219 --includedir=DIR C header files in DIR [PREFIX/include]
220 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
221 --infodir=DIR info documentation in DIR [PREFIX/info]
222 --mandir=DIR man documentation in DIR [PREFIX/man]
223 --srcdir=DIR find the sources in DIR [configure dir or ..]
224 --program-prefix=PREFIX prepend PREFIX to installed program names
225 --program-suffix=SUFFIX append SUFFIX to installed program names
226 --program-transform-name=PROGRAM
227 run sed PROGRAM on installed program names
229 cat << EOF
230 Host type:
231 --build=BUILD configure for building on BUILD [BUILD=HOST]
232 --host=HOST configure for HOST [guessed]
233 --target=TARGET configure for TARGET [TARGET=HOST]
234 Features and packages:
235 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
236 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
237 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
238 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
239 --x-includes=DIR X include files are in DIR
240 --x-libraries=DIR X library files are in DIR
242 if test -n "$ac_help"; then
243 echo "--enable and --with options recognized:$ac_help"
245 exit 0 ;;
247 -host | --host | --hos | --ho)
248 ac_prev=host ;;
249 -host=* | --host=* | --hos=* | --ho=*)
250 host="$ac_optarg" ;;
252 -includedir | --includedir | --includedi | --included | --include \
253 | --includ | --inclu | --incl | --inc)
254 ac_prev=includedir ;;
255 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
256 | --includ=* | --inclu=* | --incl=* | --inc=*)
257 includedir="$ac_optarg" ;;
259 -infodir | --infodir | --infodi | --infod | --info | --inf)
260 ac_prev=infodir ;;
261 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
262 infodir="$ac_optarg" ;;
264 -libdir | --libdir | --libdi | --libd)
265 ac_prev=libdir ;;
266 -libdir=* | --libdir=* | --libdi=* | --libd=*)
267 libdir="$ac_optarg" ;;
269 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
270 | --libexe | --libex | --libe)
271 ac_prev=libexecdir ;;
272 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
273 | --libexe=* | --libex=* | --libe=*)
274 libexecdir="$ac_optarg" ;;
276 -localstatedir | --localstatedir | --localstatedi | --localstated \
277 | --localstate | --localstat | --localsta | --localst \
278 | --locals | --local | --loca | --loc | --lo)
279 ac_prev=localstatedir ;;
280 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
281 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
282 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
283 localstatedir="$ac_optarg" ;;
285 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
286 ac_prev=mandir ;;
287 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
288 mandir="$ac_optarg" ;;
290 -nfp | --nfp | --nf)
291 # Obsolete; use --without-fp.
292 with_fp=no ;;
294 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
295 | --no-cr | --no-c)
296 no_create=yes ;;
298 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
299 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
300 no_recursion=yes ;;
302 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
303 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
304 | --oldin | --oldi | --old | --ol | --o)
305 ac_prev=oldincludedir ;;
306 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
307 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
308 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
309 oldincludedir="$ac_optarg" ;;
311 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
312 ac_prev=prefix ;;
313 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
314 prefix="$ac_optarg" ;;
316 -program-prefix | --program-prefix | --program-prefi | --program-pref \
317 | --program-pre | --program-pr | --program-p)
318 ac_prev=program_prefix ;;
319 -program-prefix=* | --program-prefix=* | --program-prefi=* \
320 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
321 program_prefix="$ac_optarg" ;;
323 -program-suffix | --program-suffix | --program-suffi | --program-suff \
324 | --program-suf | --program-su | --program-s)
325 ac_prev=program_suffix ;;
326 -program-suffix=* | --program-suffix=* | --program-suffi=* \
327 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
328 program_suffix="$ac_optarg" ;;
330 -program-transform-name | --program-transform-name \
331 | --program-transform-nam | --program-transform-na \
332 | --program-transform-n | --program-transform- \
333 | --program-transform | --program-transfor \
334 | --program-transfo | --program-transf \
335 | --program-trans | --program-tran \
336 | --progr-tra | --program-tr | --program-t)
337 ac_prev=program_transform_name ;;
338 -program-transform-name=* | --program-transform-name=* \
339 | --program-transform-nam=* | --program-transform-na=* \
340 | --program-transform-n=* | --program-transform-=* \
341 | --program-transform=* | --program-transfor=* \
342 | --program-transfo=* | --program-transf=* \
343 | --program-trans=* | --program-tran=* \
344 | --progr-tra=* | --program-tr=* | --program-t=*)
345 program_transform_name="$ac_optarg" ;;
347 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
348 | -silent | --silent | --silen | --sile | --sil)
349 silent=yes ;;
351 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
352 ac_prev=sbindir ;;
353 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
354 | --sbi=* | --sb=*)
355 sbindir="$ac_optarg" ;;
357 -sharedstatedir | --sharedstatedir | --sharedstatedi \
358 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
359 | --sharedst | --shareds | --shared | --share | --shar \
360 | --sha | --sh)
361 ac_prev=sharedstatedir ;;
362 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
363 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
364 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
365 | --sha=* | --sh=*)
366 sharedstatedir="$ac_optarg" ;;
368 -site | --site | --sit)
369 ac_prev=site ;;
370 -site=* | --site=* | --sit=*)
371 site="$ac_optarg" ;;
373 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
374 ac_prev=srcdir ;;
375 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
376 srcdir="$ac_optarg" ;;
378 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
379 | --syscon | --sysco | --sysc | --sys | --sy)
380 ac_prev=sysconfdir ;;
381 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
382 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
383 sysconfdir="$ac_optarg" ;;
385 -target | --target | --targe | --targ | --tar | --ta | --t)
386 ac_prev=target ;;
387 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
388 target="$ac_optarg" ;;
390 -v | -verbose | --verbose | --verbos | --verbo | --verb)
391 verbose=yes ;;
393 -version | --version | --versio | --versi | --vers)
394 echo "configure generated by autoconf version 2.13"
395 exit 0 ;;
397 -with-* | --with-*)
398 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
399 # Reject names that are not valid shell variable names.
400 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
401 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
403 ac_package=`echo $ac_package| sed 's/-/_/g'`
404 case "$ac_option" in
405 *=*) ;;
406 *) ac_optarg=yes ;;
407 esac
408 eval "with_${ac_package}='$ac_optarg'" ;;
410 -without-* | --without-*)
411 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
412 # Reject names that are not valid shell variable names.
413 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
414 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
416 ac_package=`echo $ac_package| sed 's/-/_/g'`
417 eval "with_${ac_package}=no" ;;
419 --x)
420 # Obsolete; use --with-x.
421 with_x=yes ;;
423 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
424 | --x-incl | --x-inc | --x-in | --x-i)
425 ac_prev=x_includes ;;
426 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
427 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
428 x_includes="$ac_optarg" ;;
430 -x-libraries | --x-libraries | --x-librarie | --x-librari \
431 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
432 ac_prev=x_libraries ;;
433 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
434 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
435 x_libraries="$ac_optarg" ;;
437 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
441 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
442 echo "configure: warning: $ac_option: invalid host type" 1>&2
444 if test "x$nonopt" != xNONE; then
445 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
447 nonopt="$ac_option"
450 esac
451 done
453 if test -n "$ac_prev"; then
454 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
457 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
459 # File descriptor usage:
460 # 0 standard input
461 # 1 file creation
462 # 2 errors and warnings
463 # 3 some systems may open it to /dev/tty
464 # 4 used on the Kubota Titan
465 # 6 checking for... messages and results
466 # 5 compiler messages saved in config.log
467 if test "$silent" = yes; then
468 exec 6>/dev/null
469 else
470 exec 6>&1
472 exec 5>./config.log
474 echo "\
475 This file contains any messages produced by compilers while
476 running configure, to aid debugging if configure makes a mistake.
477 " 1>&5
479 # Strip out --no-create and --no-recursion so they do not pile up.
480 # Also quote any args containing shell metacharacters.
481 ac_configure_args=
482 for ac_arg
484 case "$ac_arg" in
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c) ;;
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
489 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
490 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
491 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
492 esac
493 done
495 # NLS nuisances.
496 # Only set these to C if already set. These must not be set unconditionally
497 # because not all systems understand e.g. LANG=C (notably SCO).
498 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
499 # Non-C LC_CTYPE values break the ctype check.
500 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
501 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
502 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
503 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
505 # confdefs.h avoids OS command line length limits that DEFS can exceed.
506 rm -rf conftest* confdefs.h
507 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
508 echo > confdefs.h
510 # A filename unique to this package, relative to the directory that
511 # configure is in, which we can look for to find out if srcdir is correct.
512 ac_unique_file=tree.c
514 # Find the source files, if location was not specified.
515 if test -z "$srcdir"; then
516 ac_srcdir_defaulted=yes
517 # Try the directory containing this script, then its parent.
518 ac_prog=$0
519 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
520 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
521 srcdir=$ac_confdir
522 if test ! -r $srcdir/$ac_unique_file; then
523 srcdir=..
525 else
526 ac_srcdir_defaulted=no
528 if test ! -r $srcdir/$ac_unique_file; then
529 if test "$ac_srcdir_defaulted" = yes; then
530 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
531 else
532 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
535 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
537 # Prefer explicitly selected file to automatically selected ones.
538 if test -z "$CONFIG_SITE"; then
539 if test "x$prefix" != xNONE; then
540 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
541 else
542 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
545 for ac_site_file in $CONFIG_SITE; do
546 if test -r "$ac_site_file"; then
547 echo "loading site script $ac_site_file"
548 . "$ac_site_file"
550 done
552 if test -r "$cache_file"; then
553 echo "loading cache $cache_file"
554 . $cache_file
555 else
556 echo "creating cache $cache_file"
557 > $cache_file
560 ac_ext=c
561 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
562 ac_cpp='$CPP $CPPFLAGS'
563 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
564 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
565 cross_compiling=$ac_cv_prog_cc_cross
567 ac_exeext=
568 ac_objext=o
569 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
570 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
571 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
572 ac_n= ac_c='
573 ' ac_t=' '
574 else
575 ac_n=-n ac_c= ac_t=
577 else
578 ac_n= ac_c='\c' ac_t=
584 remove=rm
585 hard_link=ln
586 symbolic_link='ln -s'
587 copy=cp
589 # Check for bogus environment variables.
590 # Test if LIBRARY_PATH contains the notation for the current directory
591 # since this would lead to problems installing/building glibc.
592 # LIBRARY_PATH contains the current directory if one of the following
593 # is true:
594 # - one of the terminals (":" and ";") is the first or last sign
595 # - two terminals occur directly after each other
596 # - the path contains an element with a dot in it
597 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
598 echo "configure:599: checking LIBRARY_PATH variable" >&5
599 case ${LIBRARY_PATH} in
600 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
601 library_path_setting="contains current directory"
604 library_path_setting="ok"
606 esac
607 echo "$ac_t""$library_path_setting" 1>&6
608 if test "$library_path_setting" != "ok"; then
609 { echo "configure: error:
610 *** LIBRARY_PATH shouldn't contain the current directory when
611 *** building gcc. Please change the environment variable
612 *** and run configure again." 1>&2; exit 1; }
615 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
616 # since this would lead to problems installing/building glibc.
617 # GCC_EXEC_PREFIX contains the current directory if one of the following
618 # is true:
619 # - one of the terminals (":" and ";") is the first or last sign
620 # - two terminals occur directly after each other
621 # - the path contains an element with a dot in it
622 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
623 echo "configure:624: checking GCC_EXEC_PREFIX variable" >&5
624 case ${GCC_EXEC_PREFIX} in
625 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
626 gcc_exec_prefix_setting="contains current directory"
629 gcc_exec_prefix_setting="ok"
631 esac
632 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
633 if test "$gcc_exec_prefix_setting" != "ok"; then
634 { echo "configure: error:
635 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
636 *** building gcc. Please change the environment variable
637 *** and run configure again." 1>&2; exit 1; }
640 # Check for additional parameters
642 # With GNU ld
643 # Check whether --with-gnu-ld or --without-gnu-ld was given.
644 if test "${with_gnu_ld+set}" = set; then
645 withval="$with_gnu_ld"
646 gnu_ld_flag="$with_gnu_ld"
647 else
648 gnu_ld_flag=no
652 # With pre-defined ld
653 # Check whether --with-ld or --without-ld was given.
654 if test "${with_ld+set}" = set; then
655 withval="$with_ld"
656 DEFAULT_LINKER="$with_ld"
659 if test x"${DEFAULT_LINKER+set}" = x"set"; then
660 if test ! -x "$DEFAULT_LINKER"; then
661 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
662 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
663 gnu_ld_flag=yes
665 cat >> confdefs.h <<EOF
666 #define DEFAULT_LINKER "$DEFAULT_LINKER"
671 # With GNU as
672 # Check whether --with-gnu-as or --without-gnu-as was given.
673 if test "${with_gnu_as+set}" = set; then
674 withval="$with_gnu_as"
675 gas_flag="$with_gnu_as"
676 else
677 gas_flag=no
681 # Check whether --with-as or --without-as was given.
682 if test "${with_as+set}" = set; then
683 withval="$with_as"
684 DEFAULT_ASSEMBLER="$with_as"
687 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
688 if test ! -x "$DEFAULT_ASSEMBLER"; then
689 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
690 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
691 gas_flag=yes
693 cat >> confdefs.h <<EOF
694 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
699 # With stabs
700 # Check whether --with-stabs or --without-stabs was given.
701 if test "${with_stabs+set}" = set; then
702 withval="$with_stabs"
703 stabs="$with_stabs"
704 else
705 stabs=no
709 # With ELF
710 # Check whether --with-elf or --without-elf was given.
711 if test "${with_elf+set}" = set; then
712 withval="$with_elf"
713 elf="$with_elf"
714 else
715 elf=no
719 # Specify the local prefix
720 local_prefix=
721 # Check whether --with-local-prefix or --without-local-prefix was given.
722 if test "${with_local_prefix+set}" = set; then
723 withval="$with_local_prefix"
724 case "${withval}" in
725 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
726 no) ;;
727 *) local_prefix=$with_local_prefix ;;
728 esac
732 # Default local prefix if it is empty
733 if test x$local_prefix = x; then
734 local_prefix=/usr/local
737 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
738 # passed in by the toplevel make and thus we'd get different behavior
739 # depending on where we built the sources.
740 gcc_gxx_include_dir=
741 # Specify the g++ header file directory
742 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
743 if test "${with_gxx_include_dir+set}" = set; then
744 withval="$with_gxx_include_dir"
745 case "${withval}" in
746 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
747 no) ;;
748 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
749 esac
753 if test x${gcc_gxx_include_dir} = x; then
754 if test x${enable_version_specific_runtime_libs} = xyes; then
755 gcc_gxx_include_dir='${libsubdir}/include/g++'
756 else
757 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
758 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
762 # Enable expensive internal checks
763 # Check whether --enable-checking or --disable-checking was given.
764 if test "${enable_checking+set}" = set; then
765 enableval="$enable_checking"
766 case "${enableval}" in
767 yes) cat >> confdefs.h <<\EOF
768 #define ENABLE_CHECKING 1
771 no) ;;
772 *) { echo "configure: error: bad value ${enableval} given for checking option" 1>&2; exit 1; } ;;
773 esac
777 # Check whether --enable-cpp or --disable-cpp was given.
778 if test "${enable_cpp+set}" = set; then
779 enableval="$enable_cpp"
781 else
782 enable_cpp=yes
786 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
787 if test "${with_cpp_install_dir+set}" = set; then
788 withval="$with_cpp_install_dir"
789 if test x$withval = xyes; then
790 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
791 elif test x$withval != xno; then
792 cpp_install_dir=$withval
797 # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
798 cpp_main=cccp
799 # Check whether --enable-cpplib or --disable-cpplib was given.
800 if test "${enable_cpplib+set}" = set; then
801 enableval="$enable_cpplib"
802 if test x$enable_cpplib != xno; then
803 cpp_main=cppmain
808 # Link cpplib into the compiler proper, for C/C++/ObjC.
809 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
810 if test "${enable_c_cpplib+set}" = set; then
811 enableval="$enable_c_cpplib"
812 if test x$enable_c_cpplib != xno; then
813 extra_c_objs="${extra_c_objs} libcpp.a"
814 extra_cxx_objs="${extra_cxx_objs} ../libcpp.a"
815 extra_c_flags="${extra_c_flags} -DUSE_CPPLIB=1"
816 cpp_main=cppmain
821 # Enable Multibyte Characters for C/C++
822 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
823 if test "${enable_c_mbchar+set}" = set; then
824 enableval="$enable_c_mbchar"
825 if test x$enable_c_mbchar != xno; then
826 extra_c_flags=-DMULTIBYTE_CHARS=1
831 # Disable fast fixincludes
832 # Check whether --enable-fast-fixincludes or --disable-fast-fixincludes was given.
833 if test "${enable_fast_fixincludes+set}" = set; then
834 enableval="$enable_fast_fixincludes"
835 if test x$enable_fast_fixincludes = xno ; then
836 cp $srcdir/fixincludes ./fixinc.sh
841 # Enable Haifa scheduler.
842 # Check whether --enable-haifa or --disable-haifa was given.
843 if test "${enable_haifa+set}" = set; then
844 enableval="$enable_haifa"
849 # Enable threads
850 # Pass with no value to take the default
851 # Pass with a value to specify a thread package
852 # Check whether --enable-threads or --disable-threads was given.
853 if test "${enable_threads+set}" = set; then
854 enableval="$enable_threads"
855 if test x$enable_threads = xno; then
856 enable_threads=''
858 else
859 enable_threads=''
863 enable_threads_flag=$enable_threads
864 # Check if a valid thread package
865 case x${enable_threads_flag} in
866 x | xno)
867 # No threads
868 target_thread_file='single'
870 xyes)
871 # default
872 target_thread_file=''
874 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
875 xsolaris | xwin32 | xdce | xvxworks)
876 target_thread_file=$enable_threads_flag
879 echo "$enable_threads is an unknown thread package" 1>&2
880 exit 1
882 esac
884 # Check whether --enable-objc-gc or --disable-objc-gc was given.
885 if test "${enable_objc_gc+set}" = set; then
886 enableval="$enable_objc_gc"
887 if [ x$enable_objc_gc = xno ]; then
888 objc_boehm_gc=''
889 else
890 objc_boehm_gc=1
892 else
893 objc_boehm_gc=''
897 # Check whether --enable-java-gc or --disable-java-gc was given.
898 if test "${enable_java_gc+set}" = set; then
899 enableval="$enable_java_gc"
901 JAVAGC=$enableval
902 else
903 JAVAGC=boehm
907 # Check whether --with-dwarf2 or --without-dwarf2 was given.
908 if test "${with_dwarf2+set}" = set; then
909 withval="$with_dwarf2"
910 dwarf2="$with_dwarf2"
911 else
912 dwarf2=no
916 # Determine the host, build, and target systems
917 ac_aux_dir=
918 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
919 if test -f $ac_dir/install-sh; then
920 ac_aux_dir=$ac_dir
921 ac_install_sh="$ac_aux_dir/install-sh -c"
922 break
923 elif test -f $ac_dir/install.sh; then
924 ac_aux_dir=$ac_dir
925 ac_install_sh="$ac_aux_dir/install.sh -c"
926 break
928 done
929 if test -z "$ac_aux_dir"; then
930 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
932 ac_config_guess=$ac_aux_dir/config.guess
933 ac_config_sub=$ac_aux_dir/config.sub
934 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
937 # Do some error checking and defaulting for the host and target type.
938 # The inputs are:
939 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
941 # The rules are:
942 # 1. You are not allowed to specify --host, --target, and nonopt at the
943 # same time.
944 # 2. Host defaults to nonopt.
945 # 3. If nonopt is not specified, then host defaults to the current host,
946 # as determined by config.guess.
947 # 4. Target and build default to nonopt.
948 # 5. If nonopt is not specified, then target and build default to host.
950 # The aliases save the names the user supplied, while $host etc.
951 # will get canonicalized.
952 case $host---$target---$nonopt in
953 NONE---*---* | *---NONE---* | *---*---NONE) ;;
954 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
955 esac
958 # Make sure we can run config.sub.
959 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
960 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
963 echo $ac_n "checking host system type""... $ac_c" 1>&6
964 echo "configure:965: checking host system type" >&5
966 host_alias=$host
967 case "$host_alias" in
968 NONE)
969 case $nonopt in
970 NONE)
971 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
972 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
973 fi ;;
974 *) host_alias=$nonopt ;;
975 esac ;;
976 esac
978 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
979 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
980 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
981 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
982 echo "$ac_t""$host" 1>&6
984 echo $ac_n "checking target system type""... $ac_c" 1>&6
985 echo "configure:986: checking target system type" >&5
987 target_alias=$target
988 case "$target_alias" in
989 NONE)
990 case $nonopt in
991 NONE) target_alias=$host_alias ;;
992 *) target_alias=$nonopt ;;
993 esac ;;
994 esac
996 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
997 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
998 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
999 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1000 echo "$ac_t""$target" 1>&6
1002 echo $ac_n "checking build system type""... $ac_c" 1>&6
1003 echo "configure:1004: checking build system type" >&5
1005 build_alias=$build
1006 case "$build_alias" in
1007 NONE)
1008 case $nonopt in
1009 NONE) build_alias=$host_alias ;;
1010 *) build_alias=$nonopt ;;
1011 esac ;;
1012 esac
1014 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1015 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1016 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1017 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1018 echo "$ac_t""$build" 1>&6
1020 test "$host_alias" != "$target_alias" &&
1021 test "$program_prefix$program_suffix$program_transform_name" = \
1022 NONENONEs,x,x, &&
1023 program_prefix=${target_alias}-
1026 # Find the native compiler
1027 # Extract the first word of "gcc", so it can be a program name with args.
1028 set dummy gcc; ac_word=$2
1029 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1030 echo "configure:1031: checking for $ac_word" >&5
1031 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1032 echo $ac_n "(cached) $ac_c" 1>&6
1033 else
1034 if test -n "$CC"; then
1035 ac_cv_prog_CC="$CC" # Let the user override the test.
1036 else
1037 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1038 ac_dummy="$PATH"
1039 for ac_dir in $ac_dummy; do
1040 test -z "$ac_dir" && ac_dir=.
1041 if test -f $ac_dir/$ac_word; then
1042 ac_cv_prog_CC="gcc"
1043 break
1045 done
1046 IFS="$ac_save_ifs"
1049 CC="$ac_cv_prog_CC"
1050 if test -n "$CC"; then
1051 echo "$ac_t""$CC" 1>&6
1052 else
1053 echo "$ac_t""no" 1>&6
1056 if test -z "$CC"; then
1057 # Extract the first word of "cc", so it can be a program name with args.
1058 set dummy cc; ac_word=$2
1059 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1060 echo "configure:1061: checking for $ac_word" >&5
1061 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1062 echo $ac_n "(cached) $ac_c" 1>&6
1063 else
1064 if test -n "$CC"; then
1065 ac_cv_prog_CC="$CC" # Let the user override the test.
1066 else
1067 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1068 ac_prog_rejected=no
1069 ac_dummy="$PATH"
1070 for ac_dir in $ac_dummy; do
1071 test -z "$ac_dir" && ac_dir=.
1072 if test -f $ac_dir/$ac_word; then
1073 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1074 ac_prog_rejected=yes
1075 continue
1077 ac_cv_prog_CC="cc"
1078 break
1080 done
1081 IFS="$ac_save_ifs"
1082 if test $ac_prog_rejected = yes; then
1083 # We found a bogon in the path, so make sure we never use it.
1084 set dummy $ac_cv_prog_CC
1085 shift
1086 if test $# -gt 0; then
1087 # We chose a different compiler from the bogus one.
1088 # However, it has the same basename, so the bogon will be chosen
1089 # first if we set CC to just the basename; use the full file name.
1090 shift
1091 set dummy "$ac_dir/$ac_word" "$@"
1092 shift
1093 ac_cv_prog_CC="$@"
1098 CC="$ac_cv_prog_CC"
1099 if test -n "$CC"; then
1100 echo "$ac_t""$CC" 1>&6
1101 else
1102 echo "$ac_t""no" 1>&6
1105 if test -z "$CC"; then
1106 case "`uname -s`" in
1107 *win32* | *WIN32*)
1108 # Extract the first word of "cl", so it can be a program name with args.
1109 set dummy cl; ac_word=$2
1110 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1111 echo "configure:1112: checking for $ac_word" >&5
1112 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1113 echo $ac_n "(cached) $ac_c" 1>&6
1114 else
1115 if test -n "$CC"; then
1116 ac_cv_prog_CC="$CC" # Let the user override the test.
1117 else
1118 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1119 ac_dummy="$PATH"
1120 for ac_dir in $ac_dummy; do
1121 test -z "$ac_dir" && ac_dir=.
1122 if test -f $ac_dir/$ac_word; then
1123 ac_cv_prog_CC="cl"
1124 break
1126 done
1127 IFS="$ac_save_ifs"
1130 CC="$ac_cv_prog_CC"
1131 if test -n "$CC"; then
1132 echo "$ac_t""$CC" 1>&6
1133 else
1134 echo "$ac_t""no" 1>&6
1137 esac
1139 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1142 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1143 echo "configure:1144: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1145 ac_ext=c
1146 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1147 ac_cpp='$CPP $CPPFLAGS'
1148 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1149 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1150 cross_compiling=$ac_cv_prog_cc_cross
1152 cat > conftest.$ac_ext << EOF
1154 #line 1155 "configure"
1155 #include "confdefs.h"
1157 main(){return(0);}
1159 if { (eval echo configure:1160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1160 ac_cv_prog_cc_works=yes
1161 # If we can't run a trivial program, we are probably using a cross compiler.
1162 if (./conftest; exit) 2>/dev/null; then
1163 ac_cv_prog_cc_cross=no
1164 else
1165 ac_cv_prog_cc_cross=yes
1167 else
1168 echo "configure: failed program was:" >&5
1169 cat conftest.$ac_ext >&5
1170 ac_cv_prog_cc_works=no
1172 rm -fr conftest*
1173 ac_ext=c
1174 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1175 ac_cpp='$CPP $CPPFLAGS'
1176 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1177 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1178 cross_compiling=$ac_cv_prog_cc_cross
1180 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1181 if test $ac_cv_prog_cc_works = no; then
1182 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1184 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1185 echo "configure:1186: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1186 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1187 cross_compiling=$ac_cv_prog_cc_cross
1189 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1190 echo "configure:1191: checking whether we are using GNU C" >&5
1191 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1192 echo $ac_n "(cached) $ac_c" 1>&6
1193 else
1194 cat > conftest.c <<EOF
1195 #ifdef __GNUC__
1196 yes;
1197 #endif
1199 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1200 ac_cv_prog_gcc=yes
1201 else
1202 ac_cv_prog_gcc=no
1206 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1208 if test $ac_cv_prog_gcc = yes; then
1209 GCC=yes
1210 else
1211 GCC=
1214 ac_test_CFLAGS="${CFLAGS+set}"
1215 ac_save_CFLAGS="$CFLAGS"
1216 CFLAGS=
1217 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1218 echo "configure:1219: checking whether ${CC-cc} accepts -g" >&5
1219 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1220 echo $ac_n "(cached) $ac_c" 1>&6
1221 else
1222 echo 'void f(){}' > conftest.c
1223 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1224 ac_cv_prog_cc_g=yes
1225 else
1226 ac_cv_prog_cc_g=no
1228 rm -f conftest*
1232 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1233 if test "$ac_test_CFLAGS" = set; then
1234 CFLAGS="$ac_save_CFLAGS"
1235 elif test $ac_cv_prog_cc_g = yes; then
1236 if test "$GCC" = yes; then
1237 CFLAGS="-g -O2"
1238 else
1239 CFLAGS="-g"
1241 else
1242 if test "$GCC" = yes; then
1243 CFLAGS="-O2"
1244 else
1245 CFLAGS=
1250 # If the native compiler is GCC, we can enable warnings even in stage1.
1251 # That's useful for people building cross-compilers, or just running a
1252 # quick `make'.
1253 if test "x$GCC" = "xyes"; then
1254 stage1_warn_cflags='$(WARN_CFLAGS)'
1255 else
1256 stage1_warn_cflags=""
1260 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1261 echo "configure:1262: checking whether ${MAKE-make} sets \${MAKE}" >&5
1262 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1263 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1264 echo $ac_n "(cached) $ac_c" 1>&6
1265 else
1266 cat > conftestmake <<\EOF
1267 all:
1268 @echo 'ac_maketemp="${MAKE}"'
1270 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1271 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1272 if test -n "$ac_maketemp"; then
1273 eval ac_cv_prog_make_${ac_make}_set=yes
1274 else
1275 eval ac_cv_prog_make_${ac_make}_set=no
1277 rm -f conftestmake
1279 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1280 echo "$ac_t""yes" 1>&6
1281 SET_MAKE=
1282 else
1283 echo "$ac_t""no" 1>&6
1284 SET_MAKE="MAKE=${MAKE-make}"
1288 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1289 echo "configure:1290: checking whether a default assembler was specified" >&5
1290 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1291 if test x"$gas_flag" = x"no"; then
1292 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1293 else
1294 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1296 else
1297 echo "$ac_t""no" 1>&6
1300 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1301 echo "configure:1302: checking whether a default linker was specified" >&5
1302 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1303 if test x"$gnu_ld_flag" = x"no"; then
1304 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1305 else
1306 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1308 else
1309 echo "$ac_t""no" 1>&6
1312 # Find some useful tools
1313 for ac_prog in mawk gawk nawk awk
1315 # Extract the first word of "$ac_prog", so it can be a program name with args.
1316 set dummy $ac_prog; ac_word=$2
1317 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1318 echo "configure:1319: checking for $ac_word" >&5
1319 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1320 echo $ac_n "(cached) $ac_c" 1>&6
1321 else
1322 if test -n "$AWK"; then
1323 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1324 else
1325 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1326 ac_dummy="$PATH"
1327 for ac_dir in $ac_dummy; do
1328 test -z "$ac_dir" && ac_dir=.
1329 if test -f $ac_dir/$ac_word; then
1330 ac_cv_prog_AWK="$ac_prog"
1331 break
1333 done
1334 IFS="$ac_save_ifs"
1337 AWK="$ac_cv_prog_AWK"
1338 if test -n "$AWK"; then
1339 echo "$ac_t""$AWK" 1>&6
1340 else
1341 echo "$ac_t""no" 1>&6
1344 test -n "$AWK" && break
1345 done
1347 # Extract the first word of "flex", so it can be a program name with args.
1348 set dummy flex; ac_word=$2
1349 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1350 echo "configure:1351: checking for $ac_word" >&5
1351 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1352 echo $ac_n "(cached) $ac_c" 1>&6
1353 else
1354 if test -n "$LEX"; then
1355 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1356 else
1357 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1358 ac_dummy="$PATH"
1359 for ac_dir in $ac_dummy; do
1360 test -z "$ac_dir" && ac_dir=.
1361 if test -f $ac_dir/$ac_word; then
1362 ac_cv_prog_LEX="flex"
1363 break
1365 done
1366 IFS="$ac_save_ifs"
1367 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1370 LEX="$ac_cv_prog_LEX"
1371 if test -n "$LEX"; then
1372 echo "$ac_t""$LEX" 1>&6
1373 else
1374 echo "$ac_t""no" 1>&6
1377 if test -z "$LEXLIB"
1378 then
1379 case "$LEX" in
1380 flex*) ac_lib=fl ;;
1381 *) ac_lib=l ;;
1382 esac
1383 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1384 echo "configure:1385: checking for yywrap in -l$ac_lib" >&5
1385 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1386 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1387 echo $ac_n "(cached) $ac_c" 1>&6
1388 else
1389 ac_save_LIBS="$LIBS"
1390 LIBS="-l$ac_lib $LIBS"
1391 cat > conftest.$ac_ext <<EOF
1392 #line 1393 "configure"
1393 #include "confdefs.h"
1394 /* Override any gcc2 internal prototype to avoid an error. */
1395 /* We use char because int might match the return type of a gcc2
1396 builtin and then its argument prototype would still apply. */
1397 char yywrap();
1399 int main() {
1400 yywrap()
1401 ; return 0; }
1403 if { (eval echo configure:1404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1404 rm -rf conftest*
1405 eval "ac_cv_lib_$ac_lib_var=yes"
1406 else
1407 echo "configure: failed program was:" >&5
1408 cat conftest.$ac_ext >&5
1409 rm -rf conftest*
1410 eval "ac_cv_lib_$ac_lib_var=no"
1412 rm -f conftest*
1413 LIBS="$ac_save_LIBS"
1416 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1417 echo "$ac_t""yes" 1>&6
1418 LEXLIB="-l$ac_lib"
1419 else
1420 echo "$ac_t""no" 1>&6
1425 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1426 echo "configure:1427: checking whether ln works" >&5
1427 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1428 echo $ac_n "(cached) $ac_c" 1>&6
1429 else
1430 rm -f conftestdata_t
1431 echo >conftestdata_f
1432 if ln conftestdata_f conftestdata_t 2>/dev/null
1433 then
1434 gcc_cv_prog_LN="ln"
1435 else
1436 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1437 then
1438 gcc_cv_prog_LN="ln -s"
1439 else
1440 gcc_cv_prog_LN=cp
1443 rm -f conftestdata_f conftestdata_t
1446 LN="$gcc_cv_prog_LN"
1447 if test "$gcc_cv_prog_LN" = "ln"; then
1448 echo "$ac_t""yes" 1>&6
1449 else
1450 if test "$gcc_cv_prog_LN" = "ln -s"; then
1451 echo "$ac_t""no, using ln -s" 1>&6
1452 else
1453 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1457 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1458 echo "configure:1459: checking whether ln -s works" >&5
1459 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1460 echo $ac_n "(cached) $ac_c" 1>&6
1461 else
1462 rm -f conftestdata_t
1463 echo >conftestdata_f
1464 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1465 then
1466 gcc_cv_prog_LN_S="ln -s"
1467 else
1468 if ln conftestdata_f conftestdata_t 2>/dev/null
1469 then
1470 gcc_cv_prog_LN_S=ln
1471 else
1472 gcc_cv_prog_LN_S=cp
1475 rm -f conftestdata_f conftestdata_t
1478 LN_S="$gcc_cv_prog_LN_S"
1479 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1480 echo "$ac_t""yes" 1>&6
1481 else
1482 if test "$gcc_cv_prog_LN_S" = "ln"; then
1483 echo "$ac_t""no, using ln" 1>&6
1484 else
1485 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1489 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1490 echo "configure:1491: checking for volatile" >&5
1491 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1492 echo $ac_n "(cached) $ac_c" 1>&6
1493 else
1494 cat > conftest.$ac_ext <<EOF
1495 #line 1496 "configure"
1496 #include "confdefs.h"
1498 int main() {
1499 volatile int foo;
1500 ; return 0; }
1502 if { (eval echo configure:1503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1503 rm -rf conftest*
1504 gcc_cv_c_volatile=yes
1505 else
1506 echo "configure: failed program was:" >&5
1507 cat conftest.$ac_ext >&5
1508 rm -rf conftest*
1509 gcc_cv_c_volatile=no
1511 rm -f conftest*
1514 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1515 if test $gcc_cv_c_volatile = yes ; then
1516 cat >> confdefs.h <<\EOF
1517 #define HAVE_VOLATILE 1
1522 # Extract the first word of "ranlib", so it can be a program name with args.
1523 set dummy ranlib; ac_word=$2
1524 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1525 echo "configure:1526: checking for $ac_word" >&5
1526 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1527 echo $ac_n "(cached) $ac_c" 1>&6
1528 else
1529 if test -n "$RANLIB"; then
1530 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1531 else
1532 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1533 ac_dummy="$PATH"
1534 for ac_dir in $ac_dummy; do
1535 test -z "$ac_dir" && ac_dir=.
1536 if test -f $ac_dir/$ac_word; then
1537 ac_cv_prog_RANLIB="ranlib"
1538 break
1540 done
1541 IFS="$ac_save_ifs"
1542 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1545 RANLIB="$ac_cv_prog_RANLIB"
1546 if test -n "$RANLIB"; then
1547 echo "$ac_t""$RANLIB" 1>&6
1548 else
1549 echo "$ac_t""no" 1>&6
1552 for ac_prog in 'bison -y' byacc
1554 # Extract the first word of "$ac_prog", so it can be a program name with args.
1555 set dummy $ac_prog; ac_word=$2
1556 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1557 echo "configure:1558: checking for $ac_word" >&5
1558 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1559 echo $ac_n "(cached) $ac_c" 1>&6
1560 else
1561 if test -n "$YACC"; then
1562 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1563 else
1564 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1565 ac_dummy="$PATH"
1566 for ac_dir in $ac_dummy; do
1567 test -z "$ac_dir" && ac_dir=.
1568 if test -f $ac_dir/$ac_word; then
1569 ac_cv_prog_YACC="$ac_prog"
1570 break
1572 done
1573 IFS="$ac_save_ifs"
1576 YACC="$ac_cv_prog_YACC"
1577 if test -n "$YACC"; then
1578 echo "$ac_t""$YACC" 1>&6
1579 else
1580 echo "$ac_t""no" 1>&6
1583 test -n "$YACC" && break
1584 done
1585 test -n "$YACC" || YACC="yacc"
1587 # Find a good install program. We prefer a C program (faster),
1588 # so one script is as good as another. But avoid the broken or
1589 # incompatible versions:
1590 # SysV /etc/install, /usr/sbin/install
1591 # SunOS /usr/etc/install
1592 # IRIX /sbin/install
1593 # AIX /bin/install
1594 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1595 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1596 # ./install, which can be erroneously created by make from ./install.sh.
1597 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1598 echo "configure:1599: checking for a BSD compatible install" >&5
1599 if test -z "$INSTALL"; then
1600 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1601 echo $ac_n "(cached) $ac_c" 1>&6
1602 else
1603 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1604 for ac_dir in $PATH; do
1605 # Account for people who put trailing slashes in PATH elements.
1606 case "$ac_dir/" in
1607 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1609 # OSF1 and SCO ODT 3.0 have their own names for install.
1610 for ac_prog in ginstall scoinst install; do
1611 if test -f $ac_dir/$ac_prog; then
1612 if test $ac_prog = install &&
1613 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1614 # AIX install. It has an incompatible calling convention.
1615 # OSF/1 installbsd also uses dspmsg, but is usable.
1617 else
1618 ac_cv_path_install="$ac_dir/$ac_prog -c"
1619 break 2
1622 done
1624 esac
1625 done
1626 IFS="$ac_save_IFS"
1629 if test "${ac_cv_path_install+set}" = set; then
1630 INSTALL="$ac_cv_path_install"
1631 else
1632 # As a last resort, use the slow shell script. We don't cache a
1633 # path for INSTALL within a source directory, because that will
1634 # break other packages using the cache if that directory is
1635 # removed, or if the path is relative.
1636 INSTALL="$ac_install_sh"
1639 echo "$ac_t""$INSTALL" 1>&6
1641 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1642 # It thinks the first close brace ends the variable substitution.
1643 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1645 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1648 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1649 echo "configure:1650: checking how to run the C preprocessor" >&5
1650 # On Suns, sometimes $CPP names a directory.
1651 if test -n "$CPP" && test -d "$CPP"; then
1652 CPP=
1654 if test -z "$CPP"; then
1655 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1656 echo $ac_n "(cached) $ac_c" 1>&6
1657 else
1658 # This must be in double quotes, not single quotes, because CPP may get
1659 # substituted into the Makefile and "${CC-cc}" will confuse make.
1660 CPP="${CC-cc} -E"
1661 # On the NeXT, cc -E runs the code through the compiler's parser,
1662 # not just through cpp.
1663 cat > conftest.$ac_ext <<EOF
1664 #line 1665 "configure"
1665 #include "confdefs.h"
1666 #include <assert.h>
1667 Syntax Error
1669 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1670 { (eval echo configure:1671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1671 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1672 if test -z "$ac_err"; then
1674 else
1675 echo "$ac_err" >&5
1676 echo "configure: failed program was:" >&5
1677 cat conftest.$ac_ext >&5
1678 rm -rf conftest*
1679 CPP="${CC-cc} -E -traditional-cpp"
1680 cat > conftest.$ac_ext <<EOF
1681 #line 1682 "configure"
1682 #include "confdefs.h"
1683 #include <assert.h>
1684 Syntax Error
1686 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1687 { (eval echo configure:1688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1688 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1689 if test -z "$ac_err"; then
1691 else
1692 echo "$ac_err" >&5
1693 echo "configure: failed program was:" >&5
1694 cat conftest.$ac_ext >&5
1695 rm -rf conftest*
1696 CPP="${CC-cc} -nologo -E"
1697 cat > conftest.$ac_ext <<EOF
1698 #line 1699 "configure"
1699 #include "confdefs.h"
1700 #include <assert.h>
1701 Syntax Error
1703 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1704 { (eval echo configure:1705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1705 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1706 if test -z "$ac_err"; then
1708 else
1709 echo "$ac_err" >&5
1710 echo "configure: failed program was:" >&5
1711 cat conftest.$ac_ext >&5
1712 rm -rf conftest*
1713 CPP=/lib/cpp
1715 rm -f conftest*
1717 rm -f conftest*
1719 rm -f conftest*
1720 ac_cv_prog_CPP="$CPP"
1722 CPP="$ac_cv_prog_CPP"
1723 else
1724 ac_cv_prog_CPP="$CPP"
1726 echo "$ac_t""$CPP" 1>&6
1728 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1729 echo "configure:1730: checking for ANSI C header files" >&5
1730 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1731 echo $ac_n "(cached) $ac_c" 1>&6
1732 else
1733 cat > conftest.$ac_ext <<EOF
1734 #line 1735 "configure"
1735 #include "confdefs.h"
1736 #include <stdlib.h>
1737 #include <stdarg.h>
1738 #include <string.h>
1739 #include <float.h>
1741 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1742 { (eval echo configure:1743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1743 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1744 if test -z "$ac_err"; then
1745 rm -rf conftest*
1746 ac_cv_header_stdc=yes
1747 else
1748 echo "$ac_err" >&5
1749 echo "configure: failed program was:" >&5
1750 cat conftest.$ac_ext >&5
1751 rm -rf conftest*
1752 ac_cv_header_stdc=no
1754 rm -f conftest*
1756 if test $ac_cv_header_stdc = yes; then
1757 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1758 cat > conftest.$ac_ext <<EOF
1759 #line 1760 "configure"
1760 #include "confdefs.h"
1761 #include <string.h>
1763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1764 egrep "memchr" >/dev/null 2>&1; then
1766 else
1767 rm -rf conftest*
1768 ac_cv_header_stdc=no
1770 rm -f conftest*
1774 if test $ac_cv_header_stdc = yes; then
1775 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1776 cat > conftest.$ac_ext <<EOF
1777 #line 1778 "configure"
1778 #include "confdefs.h"
1779 #include <stdlib.h>
1781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1782 egrep "free" >/dev/null 2>&1; then
1784 else
1785 rm -rf conftest*
1786 ac_cv_header_stdc=no
1788 rm -f conftest*
1792 if test $ac_cv_header_stdc = yes; then
1793 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1794 if test "$cross_compiling" = yes; then
1796 else
1797 cat > conftest.$ac_ext <<EOF
1798 #line 1799 "configure"
1799 #include "confdefs.h"
1800 #include <ctype.h>
1801 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1802 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1803 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1804 int main () { int i; for (i = 0; i < 256; i++)
1805 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1806 exit (0); }
1809 if { (eval echo configure:1810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1810 then
1812 else
1813 echo "configure: failed program was:" >&5
1814 cat conftest.$ac_ext >&5
1815 rm -fr conftest*
1816 ac_cv_header_stdc=no
1818 rm -fr conftest*
1824 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1825 if test $ac_cv_header_stdc = yes; then
1826 cat >> confdefs.h <<\EOF
1827 #define STDC_HEADERS 1
1832 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1833 echo "configure:1834: checking whether time.h and sys/time.h may both be included" >&5
1834 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1835 echo $ac_n "(cached) $ac_c" 1>&6
1836 else
1837 cat > conftest.$ac_ext <<EOF
1838 #line 1839 "configure"
1839 #include "confdefs.h"
1840 #include <sys/types.h>
1841 #include <sys/time.h>
1842 #include <time.h>
1843 int main() {
1844 struct tm *tp;
1845 ; return 0; }
1847 if { (eval echo configure:1848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1848 rm -rf conftest*
1849 ac_cv_header_time=yes
1850 else
1851 echo "configure: failed program was:" >&5
1852 cat conftest.$ac_ext >&5
1853 rm -rf conftest*
1854 ac_cv_header_time=no
1856 rm -f conftest*
1859 echo "$ac_t""$ac_cv_header_time" 1>&6
1860 if test $ac_cv_header_time = yes; then
1861 cat >> confdefs.h <<\EOF
1862 #define TIME_WITH_SYS_TIME 1
1867 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
1868 echo "configure:1869: checking whether string.h and strings.h may both be included" >&5
1869 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
1870 echo $ac_n "(cached) $ac_c" 1>&6
1871 else
1872 cat > conftest.$ac_ext <<EOF
1873 #line 1874 "configure"
1874 #include "confdefs.h"
1875 #include <string.h>
1876 #include <strings.h>
1877 int main() {
1879 ; return 0; }
1881 if { (eval echo configure:1882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1882 rm -rf conftest*
1883 gcc_cv_header_string=yes
1884 else
1885 echo "configure: failed program was:" >&5
1886 cat conftest.$ac_ext >&5
1887 rm -rf conftest*
1888 gcc_cv_header_string=no
1890 rm -f conftest*
1893 echo "$ac_t""$gcc_cv_header_string" 1>&6
1894 if test $gcc_cv_header_string = yes; then
1895 cat >> confdefs.h <<\EOF
1896 #define STRING_WITH_STRINGS 1
1901 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1902 echo "configure:1903: checking for sys/wait.h that is POSIX.1 compatible" >&5
1903 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1904 echo $ac_n "(cached) $ac_c" 1>&6
1905 else
1906 cat > conftest.$ac_ext <<EOF
1907 #line 1908 "configure"
1908 #include "confdefs.h"
1909 #include <sys/types.h>
1910 #include <sys/wait.h>
1911 #ifndef WEXITSTATUS
1912 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1913 #endif
1914 #ifndef WIFEXITED
1915 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1916 #endif
1917 int main() {
1918 int s;
1919 wait (&s);
1920 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1921 ; return 0; }
1923 if { (eval echo configure:1924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1924 rm -rf conftest*
1925 ac_cv_header_sys_wait_h=yes
1926 else
1927 echo "configure: failed program was:" >&5
1928 cat conftest.$ac_ext >&5
1929 rm -rf conftest*
1930 ac_cv_header_sys_wait_h=no
1932 rm -f conftest*
1935 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1936 if test $ac_cv_header_sys_wait_h = yes; then
1937 cat >> confdefs.h <<\EOF
1938 #define HAVE_SYS_WAIT_H 1
1943 for ac_hdr in limits.h stddef.h string.h strings.h stdlib.h time.h fcntl.h unistd.h stab.h sys/file.h sys/time.h sys/resource.h sys/param.h sys/times.h sys/stat.h direct.h
1945 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1946 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1947 echo "configure:1948: checking for $ac_hdr" >&5
1948 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1949 echo $ac_n "(cached) $ac_c" 1>&6
1950 else
1951 cat > conftest.$ac_ext <<EOF
1952 #line 1953 "configure"
1953 #include "confdefs.h"
1954 #include <$ac_hdr>
1956 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1957 { (eval echo configure:1958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1958 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1959 if test -z "$ac_err"; then
1960 rm -rf conftest*
1961 eval "ac_cv_header_$ac_safe=yes"
1962 else
1963 echo "$ac_err" >&5
1964 echo "configure: failed program was:" >&5
1965 cat conftest.$ac_ext >&5
1966 rm -rf conftest*
1967 eval "ac_cv_header_$ac_safe=no"
1969 rm -f conftest*
1971 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1972 echo "$ac_t""yes" 1>&6
1973 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1974 cat >> confdefs.h <<EOF
1975 #define $ac_tr_hdr 1
1978 else
1979 echo "$ac_t""no" 1>&6
1981 done
1984 # Check for thread headers.
1985 ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'`
1986 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
1987 echo "configure:1988: checking for thread.h" >&5
1988 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1989 echo $ac_n "(cached) $ac_c" 1>&6
1990 else
1991 cat > conftest.$ac_ext <<EOF
1992 #line 1993 "configure"
1993 #include "confdefs.h"
1994 #include <thread.h>
1996 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1997 { (eval echo configure:1998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1998 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1999 if test -z "$ac_err"; then
2000 rm -rf conftest*
2001 eval "ac_cv_header_$ac_safe=yes"
2002 else
2003 echo "$ac_err" >&5
2004 echo "configure: failed program was:" >&5
2005 cat conftest.$ac_ext >&5
2006 rm -rf conftest*
2007 eval "ac_cv_header_$ac_safe=no"
2009 rm -f conftest*
2011 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2012 echo "$ac_t""yes" 1>&6
2013 have_thread_h=yes
2014 else
2015 echo "$ac_t""no" 1>&6
2016 have_thread_h=
2019 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2020 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2021 echo "configure:2022: checking for pthread.h" >&5
2022 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2023 echo $ac_n "(cached) $ac_c" 1>&6
2024 else
2025 cat > conftest.$ac_ext <<EOF
2026 #line 2027 "configure"
2027 #include "confdefs.h"
2028 #include <pthread.h>
2030 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2031 { (eval echo configure:2032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2032 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2033 if test -z "$ac_err"; then
2034 rm -rf conftest*
2035 eval "ac_cv_header_$ac_safe=yes"
2036 else
2037 echo "$ac_err" >&5
2038 echo "configure: failed program was:" >&5
2039 cat conftest.$ac_ext >&5
2040 rm -rf conftest*
2041 eval "ac_cv_header_$ac_safe=no"
2043 rm -f conftest*
2045 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2046 echo "$ac_t""yes" 1>&6
2047 have_pthread_h=yes
2048 else
2049 echo "$ac_t""no" 1>&6
2050 have_pthread_h=
2054 # See if GNAT has been installed
2055 # Extract the first word of "gnatbind", so it can be a program name with args.
2056 set dummy gnatbind; ac_word=$2
2057 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2058 echo "configure:2059: checking for $ac_word" >&5
2059 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2060 echo $ac_n "(cached) $ac_c" 1>&6
2061 else
2062 if test -n "$gnat"; then
2063 ac_cv_prog_gnat="$gnat" # Let the user override the test.
2064 else
2065 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2066 ac_dummy="$PATH"
2067 for ac_dir in $ac_dummy; do
2068 test -z "$ac_dir" && ac_dir=.
2069 if test -f $ac_dir/$ac_word; then
2070 ac_cv_prog_gnat="yes"
2071 break
2073 done
2074 IFS="$ac_save_ifs"
2075 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat="no"
2078 gnat="$ac_cv_prog_gnat"
2079 if test -n "$gnat"; then
2080 echo "$ac_t""$gnat" 1>&6
2081 else
2082 echo "$ac_t""no" 1>&6
2086 # See if the system preprocessor understands the ANSI C preprocessor
2087 # stringification operator.
2088 echo $ac_n "checking whether cpp understands the stringify operator""... $ac_c" 1>&6
2089 echo "configure:2090: checking whether cpp understands the stringify operator" >&5
2090 if eval "test \"`echo '$''{'gcc_cv_c_have_stringify'+set}'`\" = set"; then
2091 echo $ac_n "(cached) $ac_c" 1>&6
2092 else
2093 cat > conftest.$ac_ext <<EOF
2094 #line 2095 "configure"
2095 #include "confdefs.h"
2097 int main() {
2098 #define S(x) #x
2099 char *test = S(foo);
2100 ; return 0; }
2102 if { (eval echo configure:2103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2103 rm -rf conftest*
2104 gcc_cv_c_have_stringify=yes
2105 else
2106 echo "configure: failed program was:" >&5
2107 cat conftest.$ac_ext >&5
2108 rm -rf conftest*
2109 gcc_cv_c_have_stringify=no
2111 rm -f conftest*
2114 echo "$ac_t""$gcc_cv_c_have_stringify" 1>&6
2115 if test $gcc_cv_c_have_stringify = yes; then
2116 cat >> confdefs.h <<\EOF
2117 #define HAVE_CPP_STRINGIFY 1
2122 # Use <inttypes.h> only if it exists,
2123 # doesn't clash with <sys/types.h>, and declares intmax_t.
2124 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2125 echo "configure:2126: checking for inttypes.h" >&5
2126 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2127 echo $ac_n "(cached) $ac_c" 1>&6
2128 else
2129 cat > conftest.$ac_ext <<EOF
2130 #line 2131 "configure"
2131 #include "confdefs.h"
2132 #include <sys/types.h>
2133 #include <inttypes.h>
2134 int main() {
2135 intmax_t i = -1;
2136 ; return 0; }
2138 if { (eval echo configure:2139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2139 rm -rf conftest*
2140 gcc_cv_header_inttypes_h=yes
2141 else
2142 echo "configure: failed program was:" >&5
2143 cat conftest.$ac_ext >&5
2144 rm -rf conftest*
2145 gcc_cv_header_inttypes_h=no
2147 rm -f conftest*
2150 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2151 if test $gcc_cv_header_inttypes_h = yes; then
2152 cat >> confdefs.h <<\EOF
2153 #define HAVE_INTTYPES_H 1
2158 for ac_func in strtoul bsearch strerror putenv popen bcopy bzero bcmp \
2159 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
2160 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2161 fputs_unlocked
2163 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2164 echo "configure:2165: checking for $ac_func" >&5
2165 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2166 echo $ac_n "(cached) $ac_c" 1>&6
2167 else
2168 cat > conftest.$ac_ext <<EOF
2169 #line 2170 "configure"
2170 #include "confdefs.h"
2171 /* System header to define __stub macros and hopefully few prototypes,
2172 which can conflict with char $ac_func(); below. */
2173 #include <assert.h>
2174 /* Override any gcc2 internal prototype to avoid an error. */
2175 /* We use char because int might match the return type of a gcc2
2176 builtin and then its argument prototype would still apply. */
2177 char $ac_func();
2179 int main() {
2181 /* The GNU C library defines this for functions which it implements
2182 to always fail with ENOSYS. Some functions are actually named
2183 something starting with __ and the normal name is an alias. */
2184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2185 choke me
2186 #else
2187 $ac_func();
2188 #endif
2190 ; return 0; }
2192 if { (eval echo configure:2193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2193 rm -rf conftest*
2194 eval "ac_cv_func_$ac_func=yes"
2195 else
2196 echo "configure: failed program was:" >&5
2197 cat conftest.$ac_ext >&5
2198 rm -rf conftest*
2199 eval "ac_cv_func_$ac_func=no"
2201 rm -f conftest*
2204 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2205 echo "$ac_t""yes" 1>&6
2206 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2207 cat >> confdefs.h <<EOF
2208 #define $ac_tr_func 1
2211 else
2212 echo "$ac_t""no" 1>&6
2214 done
2217 # Make sure wchar_t is available
2218 #AC_CHECK_TYPE(wchar_t, unsigned int)
2220 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2221 echo "configure:2222: checking for vprintf" >&5
2222 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2223 echo $ac_n "(cached) $ac_c" 1>&6
2224 else
2225 cat > conftest.$ac_ext <<EOF
2226 #line 2227 "configure"
2227 #include "confdefs.h"
2228 /* System header to define __stub macros and hopefully few prototypes,
2229 which can conflict with char vprintf(); below. */
2230 #include <assert.h>
2231 /* Override any gcc2 internal prototype to avoid an error. */
2232 /* We use char because int might match the return type of a gcc2
2233 builtin and then its argument prototype would still apply. */
2234 char vprintf();
2236 int main() {
2238 /* The GNU C library defines this for functions which it implements
2239 to always fail with ENOSYS. Some functions are actually named
2240 something starting with __ and the normal name is an alias. */
2241 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2242 choke me
2243 #else
2244 vprintf();
2245 #endif
2247 ; return 0; }
2249 if { (eval echo configure:2250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2250 rm -rf conftest*
2251 eval "ac_cv_func_vprintf=yes"
2252 else
2253 echo "configure: failed program was:" >&5
2254 cat conftest.$ac_ext >&5
2255 rm -rf conftest*
2256 eval "ac_cv_func_vprintf=no"
2258 rm -f conftest*
2261 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2262 echo "$ac_t""yes" 1>&6
2263 cat >> confdefs.h <<\EOF
2264 #define HAVE_VPRINTF 1
2267 else
2268 echo "$ac_t""no" 1>&6
2271 if test "$ac_cv_func_vprintf" != yes; then
2272 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2273 echo "configure:2274: checking for _doprnt" >&5
2274 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2275 echo $ac_n "(cached) $ac_c" 1>&6
2276 else
2277 cat > conftest.$ac_ext <<EOF
2278 #line 2279 "configure"
2279 #include "confdefs.h"
2280 /* System header to define __stub macros and hopefully few prototypes,
2281 which can conflict with char _doprnt(); below. */
2282 #include <assert.h>
2283 /* Override any gcc2 internal prototype to avoid an error. */
2284 /* We use char because int might match the return type of a gcc2
2285 builtin and then its argument prototype would still apply. */
2286 char _doprnt();
2288 int main() {
2290 /* The GNU C library defines this for functions which it implements
2291 to always fail with ENOSYS. Some functions are actually named
2292 something starting with __ and the normal name is an alias. */
2293 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2294 choke me
2295 #else
2296 _doprnt();
2297 #endif
2299 ; return 0; }
2301 if { (eval echo configure:2302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2302 rm -rf conftest*
2303 eval "ac_cv_func__doprnt=yes"
2304 else
2305 echo "configure: failed program was:" >&5
2306 cat conftest.$ac_ext >&5
2307 rm -rf conftest*
2308 eval "ac_cv_func__doprnt=no"
2310 rm -f conftest*
2313 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2314 echo "$ac_t""yes" 1>&6
2315 cat >> confdefs.h <<\EOF
2316 #define HAVE_DOPRNT 1
2319 else
2320 echo "$ac_t""no" 1>&6
2325 vfprintf=
2326 doprint=
2327 if test $ac_cv_func_vprintf != yes ; then
2328 vfprintf=vfprintf.o
2329 if test $ac_cv_func__doprnt != yes ; then
2330 doprint=doprint.o
2336 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2337 echo "configure:2338: checking whether the printf functions support %p" >&5
2338 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2339 echo $ac_n "(cached) $ac_c" 1>&6
2340 else
2341 if test "$cross_compiling" = yes; then
2342 gcc_cv_func_printf_ptr=no
2343 else
2344 cat > conftest.$ac_ext <<EOF
2345 #line 2346 "configure"
2346 #include "confdefs.h"
2347 #include <stdio.h>
2349 main()
2351 char buf[64];
2352 char *p = buf, *q = NULL;
2353 sprintf(buf, "%p", p);
2354 sscanf(buf, "%p", &q);
2355 exit (p != q);
2358 if { (eval echo configure:2359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2359 then
2360 gcc_cv_func_printf_ptr=yes
2361 else
2362 echo "configure: failed program was:" >&5
2363 cat conftest.$ac_ext >&5
2364 rm -fr conftest*
2365 gcc_cv_func_printf_ptr=no
2367 rm -fr conftest*
2370 rm -f core core.* *.core
2373 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2374 if test $gcc_cv_func_printf_ptr = yes ; then
2375 cat >> confdefs.h <<\EOF
2376 #define HAVE_PRINTF_PTR 1
2382 case "${host}" in
2383 *-*-uwin*)
2384 # Under some versions of uwin, vfork is notoriously buggy and the test
2385 # can hang configure; on other versions, vfork exists just as a stub.
2386 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2387 ac_cv_func_vfork_works=no
2389 esac
2390 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2391 echo "configure:2392: checking for pid_t" >&5
2392 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2393 echo $ac_n "(cached) $ac_c" 1>&6
2394 else
2395 cat > conftest.$ac_ext <<EOF
2396 #line 2397 "configure"
2397 #include "confdefs.h"
2398 #include <sys/types.h>
2399 #if STDC_HEADERS
2400 #include <stdlib.h>
2401 #include <stddef.h>
2402 #endif
2404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2405 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2406 rm -rf conftest*
2407 ac_cv_type_pid_t=yes
2408 else
2409 rm -rf conftest*
2410 ac_cv_type_pid_t=no
2412 rm -f conftest*
2415 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2416 if test $ac_cv_type_pid_t = no; then
2417 cat >> confdefs.h <<\EOF
2418 #define pid_t int
2423 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2424 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2425 echo "configure:2426: checking for vfork.h" >&5
2426 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2427 echo $ac_n "(cached) $ac_c" 1>&6
2428 else
2429 cat > conftest.$ac_ext <<EOF
2430 #line 2431 "configure"
2431 #include "confdefs.h"
2432 #include <vfork.h>
2434 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2435 { (eval echo configure:2436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2436 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2437 if test -z "$ac_err"; then
2438 rm -rf conftest*
2439 eval "ac_cv_header_$ac_safe=yes"
2440 else
2441 echo "$ac_err" >&5
2442 echo "configure: failed program was:" >&5
2443 cat conftest.$ac_ext >&5
2444 rm -rf conftest*
2445 eval "ac_cv_header_$ac_safe=no"
2447 rm -f conftest*
2449 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2450 echo "$ac_t""yes" 1>&6
2451 cat >> confdefs.h <<\EOF
2452 #define HAVE_VFORK_H 1
2455 else
2456 echo "$ac_t""no" 1>&6
2459 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2460 echo "configure:2461: checking for working vfork" >&5
2461 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2462 echo $ac_n "(cached) $ac_c" 1>&6
2463 else
2464 if test "$cross_compiling" = yes; then
2465 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2466 echo "configure:2467: checking for vfork" >&5
2467 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2468 echo $ac_n "(cached) $ac_c" 1>&6
2469 else
2470 cat > conftest.$ac_ext <<EOF
2471 #line 2472 "configure"
2472 #include "confdefs.h"
2473 /* System header to define __stub macros and hopefully few prototypes,
2474 which can conflict with char vfork(); below. */
2475 #include <assert.h>
2476 /* Override any gcc2 internal prototype to avoid an error. */
2477 /* We use char because int might match the return type of a gcc2
2478 builtin and then its argument prototype would still apply. */
2479 char vfork();
2481 int main() {
2483 /* The GNU C library defines this for functions which it implements
2484 to always fail with ENOSYS. Some functions are actually named
2485 something starting with __ and the normal name is an alias. */
2486 #if defined (__stub_vfork) || defined (__stub___vfork)
2487 choke me
2488 #else
2489 vfork();
2490 #endif
2492 ; return 0; }
2494 if { (eval echo configure:2495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2495 rm -rf conftest*
2496 eval "ac_cv_func_vfork=yes"
2497 else
2498 echo "configure: failed program was:" >&5
2499 cat conftest.$ac_ext >&5
2500 rm -rf conftest*
2501 eval "ac_cv_func_vfork=no"
2503 rm -f conftest*
2506 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2507 echo "$ac_t""yes" 1>&6
2509 else
2510 echo "$ac_t""no" 1>&6
2513 ac_cv_func_vfork_works=$ac_cv_func_vfork
2514 else
2515 cat > conftest.$ac_ext <<EOF
2516 #line 2517 "configure"
2517 #include "confdefs.h"
2518 /* Thanks to Paul Eggert for this test. */
2519 #include <stdio.h>
2520 #include <sys/types.h>
2521 #include <sys/stat.h>
2522 #ifdef HAVE_UNISTD_H
2523 #include <unistd.h>
2524 #endif
2525 #ifdef HAVE_VFORK_H
2526 #include <vfork.h>
2527 #endif
2528 /* On some sparc systems, changes by the child to local and incoming
2529 argument registers are propagated back to the parent.
2530 The compiler is told about this with #include <vfork.h>,
2531 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2532 Test for this by using a static variable whose address
2533 is put into a register that is clobbered by the vfork. */
2534 static
2535 #ifdef __cplusplus
2536 sparc_address_test (int arg)
2537 #else
2538 sparc_address_test (arg) int arg;
2539 #endif
2541 static pid_t child;
2542 if (!child) {
2543 child = vfork ();
2544 if (child < 0) {
2545 perror ("vfork");
2546 _exit(2);
2548 if (!child) {
2549 arg = getpid();
2550 write(-1, "", 0);
2551 _exit (arg);
2555 main() {
2556 pid_t parent = getpid ();
2557 pid_t child;
2559 sparc_address_test ();
2561 child = vfork ();
2563 if (child == 0) {
2564 /* Here is another test for sparc vfork register problems.
2565 This test uses lots of local variables, at least
2566 as many local variables as main has allocated so far
2567 including compiler temporaries. 4 locals are enough for
2568 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2569 A buggy compiler should reuse the register of parent
2570 for one of the local variables, since it will think that
2571 parent can't possibly be used any more in this routine.
2572 Assigning to the local variable will thus munge parent
2573 in the parent process. */
2574 pid_t
2575 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2576 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2577 /* Convince the compiler that p..p7 are live; otherwise, it might
2578 use the same hardware register for all 8 local variables. */
2579 if (p != p1 || p != p2 || p != p3 || p != p4
2580 || p != p5 || p != p6 || p != p7)
2581 _exit(1);
2583 /* On some systems (e.g. IRIX 3.3),
2584 vfork doesn't separate parent from child file descriptors.
2585 If the child closes a descriptor before it execs or exits,
2586 this munges the parent's descriptor as well.
2587 Test for this by closing stdout in the child. */
2588 _exit(close(fileno(stdout)) != 0);
2589 } else {
2590 int status;
2591 struct stat st;
2593 while (wait(&status) != child)
2595 exit(
2596 /* Was there some problem with vforking? */
2597 child < 0
2599 /* Did the child fail? (This shouldn't happen.) */
2600 || status
2602 /* Did the vfork/compiler bug occur? */
2603 || parent != getpid()
2605 /* Did the file descriptor bug occur? */
2606 || fstat(fileno(stdout), &st) != 0
2611 if { (eval echo configure:2612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2612 then
2613 ac_cv_func_vfork_works=yes
2614 else
2615 echo "configure: failed program was:" >&5
2616 cat conftest.$ac_ext >&5
2617 rm -fr conftest*
2618 ac_cv_func_vfork_works=no
2620 rm -fr conftest*
2625 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2626 if test $ac_cv_func_vfork_works = no; then
2627 cat >> confdefs.h <<\EOF
2628 #define vfork fork
2634 for ac_func in malloc realloc calloc free bcopy bzero bcmp \
2635 index rindex getenv atol sbrk abort atof strerror getcwd getwd \
2636 strsignal putc_unlocked fputs_unlocked strstr
2638 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2639 echo "configure:2640: checking whether $ac_func must be declared" >&5
2640 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2641 echo $ac_n "(cached) $ac_c" 1>&6
2642 else
2643 cat > conftest.$ac_ext <<EOF
2644 #line 2645 "configure"
2645 #include "confdefs.h"
2647 #include <stdio.h>
2648 #ifdef STRING_WITH_STRINGS
2649 # include <string.h>
2650 # include <strings.h>
2651 #else
2652 # ifdef HAVE_STRING_H
2653 # include <string.h>
2654 # else
2655 # ifdef HAVE_STRINGS_H
2656 # include <strings.h>
2657 # endif
2658 # endif
2659 #endif
2660 #ifdef HAVE_STDLIB_H
2661 #include <stdlib.h>
2662 #endif
2663 #ifdef HAVE_UNISTD_H
2664 #include <unistd.h>
2665 #endif
2666 #ifndef HAVE_RINDEX
2667 #define rindex strrchr
2668 #endif
2669 #ifndef HAVE_INDEX
2670 #define index strchr
2671 #endif
2673 int main() {
2674 char *(*pfn) = (char *(*)) $ac_func
2675 ; return 0; }
2677 if { (eval echo configure:2678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2678 rm -rf conftest*
2679 eval "gcc_cv_decl_needed_$ac_func=no"
2680 else
2681 echo "configure: failed program was:" >&5
2682 cat conftest.$ac_ext >&5
2683 rm -rf conftest*
2684 eval "gcc_cv_decl_needed_$ac_func=yes"
2686 rm -f conftest*
2689 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2690 echo "$ac_t""yes" 1>&6
2691 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2692 cat >> confdefs.h <<EOF
2693 #define $gcc_tr_decl 1
2696 else
2697 echo "$ac_t""no" 1>&6
2700 done
2703 for ac_func in getrlimit setrlimit
2705 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2706 echo "configure:2707: checking whether $ac_func must be declared" >&5
2707 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2708 echo $ac_n "(cached) $ac_c" 1>&6
2709 else
2710 cat > conftest.$ac_ext <<EOF
2711 #line 2712 "configure"
2712 #include "confdefs.h"
2714 #include <stdio.h>
2715 #ifdef STRING_WITH_STRINGS
2716 # include <string.h>
2717 # include <strings.h>
2718 #else
2719 # ifdef HAVE_STRING_H
2720 # include <string.h>
2721 # else
2722 # ifdef HAVE_STRINGS_H
2723 # include <strings.h>
2724 # endif
2725 # endif
2726 #endif
2727 #ifdef HAVE_STDLIB_H
2728 #include <stdlib.h>
2729 #endif
2730 #ifdef HAVE_UNISTD_H
2731 #include <unistd.h>
2732 #endif
2733 #ifndef HAVE_RINDEX
2734 #define rindex strrchr
2735 #endif
2736 #ifndef HAVE_INDEX
2737 #define index strchr
2738 #endif
2739 #include <sys/types.h>
2740 #ifdef HAVE_SYS_RESOURCE_H
2741 #include <sys/resource.h>
2742 #endif
2744 int main() {
2745 char *(*pfn) = (char *(*)) $ac_func
2746 ; return 0; }
2748 if { (eval echo configure:2749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2749 rm -rf conftest*
2750 eval "gcc_cv_decl_needed_$ac_func=no"
2751 else
2752 echo "configure: failed program was:" >&5
2753 cat conftest.$ac_ext >&5
2754 rm -rf conftest*
2755 eval "gcc_cv_decl_needed_$ac_func=yes"
2757 rm -f conftest*
2760 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2761 echo "$ac_t""yes" 1>&6
2762 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2763 cat >> confdefs.h <<EOF
2764 #define $gcc_tr_decl 1
2767 else
2768 echo "$ac_t""no" 1>&6
2771 done
2774 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2775 echo "configure:2776: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2776 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2777 echo $ac_n "(cached) $ac_c" 1>&6
2778 else
2779 cat > conftest.$ac_ext <<EOF
2780 #line 2781 "configure"
2781 #include "confdefs.h"
2782 #include <sys/types.h>
2783 #include <signal.h>
2784 /* NetBSD declares sys_siglist in unistd.h. */
2785 #ifdef HAVE_UNISTD_H
2786 #include <unistd.h>
2787 #endif
2788 int main() {
2789 char *msg = *(sys_siglist + 1);
2790 ; return 0; }
2792 if { (eval echo configure:2793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2793 rm -rf conftest*
2794 ac_cv_decl_sys_siglist=yes
2795 else
2796 echo "configure: failed program was:" >&5
2797 cat conftest.$ac_ext >&5
2798 rm -rf conftest*
2799 ac_cv_decl_sys_siglist=no
2801 rm -f conftest*
2804 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2805 if test $ac_cv_decl_sys_siglist = yes; then
2806 cat >> confdefs.h <<\EOF
2807 #define SYS_SIGLIST_DECLARED 1
2813 # mkdir takes a single argument on some systems.
2814 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
2815 echo "configure:2816: checking if mkdir takes one argument" >&5
2816 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
2817 echo $ac_n "(cached) $ac_c" 1>&6
2818 else
2819 cat > conftest.$ac_ext <<EOF
2820 #line 2821 "configure"
2821 #include "confdefs.h"
2823 #include <sys/types.h>
2824 #ifdef HAVE_SYS_STAT_H
2825 # include <sys/stat.h>
2826 #endif
2827 #ifdef HAVE_UNISTD_H
2828 # include <unistd.h>
2829 #endif
2830 #ifdef HAVE_DIRECT_H
2831 # include <direct.h>
2832 #endif
2833 int main() {
2834 mkdir ("foo", 0);
2835 ; return 0; }
2837 if { (eval echo configure:2838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2838 rm -rf conftest*
2839 gcc_cv_mkdir_takes_one_arg=no
2840 else
2841 echo "configure: failed program was:" >&5
2842 cat conftest.$ac_ext >&5
2843 rm -rf conftest*
2844 gcc_cv_mkdir_takes_one_arg=yes
2846 rm -f conftest*
2849 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
2850 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
2851 cat >> confdefs.h <<\EOF
2852 #define MKDIR_TAKES_ONE_ARG 1
2858 # File extensions
2859 manext='.1'
2860 objext='.o'
2864 build_xm_file=
2865 build_xm_defines=
2866 build_install_headers_dir=install-headers-tar
2867 build_exeext=
2868 host_xm_file=
2869 host_xm_defines=
2870 host_xmake_file=
2871 host_truncate_target=
2872 host_exeext=
2874 # Decode the host machine, then the target machine.
2875 # For the host machine, we save the xm_file variable as host_xm_file;
2876 # then we decode the target machine and forget everything else
2877 # that came from the host machine.
2878 for machine in $build $host $target; do
2880 out_file=
2881 xmake_file=
2882 tmake_file=
2883 extra_headers=
2884 extra_passes=
2885 extra_parts=
2886 extra_programs=
2887 extra_objs=
2888 extra_host_objs=
2889 extra_gcc_objs=
2890 xm_defines=
2891 float_format=
2892 # Set this to force installation and use of collect2.
2893 use_collect2=
2894 # Set this to override the default target model.
2895 target_cpu_default=
2896 # Set this to control how the header file directory is installed.
2897 install_headers_dir=install-headers-tar
2898 # Set this to a non-empty list of args to pass to cpp if the target
2899 # wants its .md file passed through cpp.
2900 md_cppflags=
2901 # Set this if directory names should be truncated to 14 characters.
2902 truncate_target=
2903 # Set this if gdb needs a dir command with `dirname $out_file`
2904 gdb_needs_out_file_path=
2905 # Set this if the build machine requires executables to have a
2906 # file name suffix.
2907 exeext=
2908 # Set this to control which thread package will be used.
2909 thread_file=
2910 # Reinitialize these from the flag values every loop pass, since some
2911 # configure entries modify them.
2912 gas="$gas_flag"
2913 gnu_ld="$gnu_ld_flag"
2914 enable_threads=$enable_threads_flag
2916 # Set default cpu_type, tm_file and xm_file so it can be updated in
2917 # each machine entry.
2918 cpu_type=`echo $machine | sed 's/-.*$//'`
2919 case $machine in
2920 alpha*-*-*)
2921 cpu_type=alpha
2923 arm*-*-*)
2924 cpu_type=arm
2926 c*-convex-*)
2927 cpu_type=convex
2929 i[34567]86-*-*)
2930 cpu_type=i386
2932 hppa*-*-*)
2933 cpu_type=pa
2935 m68000-*-*)
2936 cpu_type=m68k
2938 mips*-*-*)
2939 cpu_type=mips
2941 powerpc*-*-*)
2942 cpu_type=rs6000
2944 pyramid-*-*)
2945 cpu_type=pyr
2947 sparc*-*-*)
2948 cpu_type=sparc
2950 esac
2952 tm_file=${cpu_type}/${cpu_type}.h
2953 xm_file=${cpu_type}/xm-${cpu_type}.h
2955 # Common parts for linux-gnu and openbsd systems
2956 case $machine in
2957 *-*-linux-gnu*)
2958 xm_defines="HAVE_ATEXIT POSIX BSTRING"
2960 *-*-openbsd*)
2961 tm_file=${cpu_type}/openbsd.h
2962 tmake_file="t-libc-ok t-openbsd"
2963 # avoid surprises, always provide an xm-openbsd file
2964 xm_file=${cpu_type}/xm-openbsd.h
2965 # don't depend on processor x-fragments as well
2966 xmake_file=none
2967 if test x$enable_threads = xyes; then
2968 thread_file='posix'
2969 tmake_file="${tmake_file} t-openbsd-thread"
2972 esac
2974 case $machine in
2975 # Support site-specific machine types.
2976 *local*)
2977 cpu_type=`echo $machine | sed -e 's/-.*//'`
2978 rest=`echo $machine | sed -e "s/$cpu_type-//"`
2979 xm_file=${cpu_type}/xm-$rest.h
2980 tm_file=${cpu_type}/$rest.h
2981 if test -f $srcdir/config/${cpu_type}/x-$rest; \
2982 then xmake_file=${cpu_type}/x-$rest; \
2983 else true; \
2985 if test -f $srcdir/config/${cpu_type}/t-$rest; \
2986 then tmake_file=${cpu_type}/t-$rest; \
2987 else true; \
2990 1750a-*-*)
2992 a29k-*-bsd* | a29k-*-sym1*)
2993 tm_file="${tm_file} a29k/unix.h"
2994 xm_defines=USG
2995 xmake_file=a29k/x-unix
2996 use_collect2=yes
2998 a29k-*-udi | a29k-*-coff)
2999 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
3000 tmake_file=a29k/t-a29kbare
3002 a29k-wrs-vxworks*)
3003 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3004 tmake_file=a29k/t-vx29k
3005 extra_parts="crtbegin.o crtend.o"
3006 thread_file='vxworks'
3008 a29k-*-*) # Default a29k environment.
3009 use_collect2=yes
3011 alpha-*-interix)
3012 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
3014 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
3015 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
3017 # GAS + IEEE_CONFORMANT
3018 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
3020 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
3021 xmake_file="x-interix alpha/t-pe"
3022 tmake_file="alpha/t-interix"
3023 if test x$enable_threads = xyes ; then
3024 thread_file='posix'
3026 if test x$stabs = xyes ; then
3027 tm_file="${tm_file} dbxcoff.h"
3029 #prefix='$$INTERIX_ROOT'/usr/contrib
3030 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3032 alpha*-*-linux-gnuecoff*)
3033 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3034 target_cpu_default="MASK_GAS"
3035 gas=no
3036 xmake_file=none
3037 gas=yes gnu_ld=yes
3039 alpha*-*-linux-gnulibc1*)
3040 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3041 target_cpu_default="MASK_GAS"
3042 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
3043 extra_parts="crtbegin.o crtend.o"
3044 xmake_file=none
3045 gas=yes gnu_ld=yes
3046 if test x$enable_threads = xyes; then
3047 thread_file='posix'
3050 alpha*-*-linux-gnu*)
3051 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3052 target_cpu_default="MASK_GAS"
3053 tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
3054 extra_parts="crtbegin.o crtend.o"
3055 xmake_file=none
3056 gas=yes gnu_ld=yes
3057 if test x$enable_threads = xyes; then
3058 thread_file='posix'
3061 alpha*-*-netbsd*)
3062 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3063 target_cpu_default="MASK_GAS"
3064 tmake_file="alpha/t-crtbe"
3065 extra_parts="crtbegin.o crtend.o"
3066 xmake_file=none
3067 gas=yes gnu_ld=yes
3070 alpha*-*-openbsd*)
3071 # default x-alpha is only appropriate for dec-osf.
3072 target_cpu_default="MASK_GAS"
3075 alpha*-dec-osf*)
3076 if test x$stabs = xyes
3077 then
3078 tm_file="${tm_file} dbx.h"
3080 if test x$gas != xyes
3081 then
3082 extra_passes="mips-tfile mips-tdump"
3084 use_collect2=yes
3085 case $machine in
3086 *-*-osf1*)
3087 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3089 *-*-osf[23]*)
3090 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
3092 *-*-osf4*)
3093 tm_file="${tm_file} alpha/osf.h"
3094 # Some versions of OSF4 (specifically X4.0-9 296.7) have
3095 # a broken tar, so we use cpio instead.
3096 install_headers_dir=install-headers-cpio
3098 esac
3099 case $machine in
3100 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
3101 target_cpu_default=MASK_SUPPORT_ARCH
3103 esac
3105 alpha*-*-vxworks*)
3106 tm_file="${tm_file} dbx.h alpha/vxworks.h"
3107 if x$gas != xyes
3108 then
3109 extra_passes="mips-tfile mips-tdump"
3111 use_collect2=yes
3112 thread_file='vxworks'
3114 alpha*-*-winnt*)
3115 tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3116 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3117 tmake_file=t-libc-ok
3118 xmake_file=winnt/x-winnt
3119 extra_host_objs=oldnames.o
3120 extra_gcc_objs="spawnv.o oldnames.o"
3121 if test x$gnu_ld != xyes
3122 then
3123 extra_programs=ld.exe
3125 if test x$enable_threads = xyes; then
3126 thread_file='win32'
3129 alpha*-dec-vms*)
3130 tm_file=alpha/vms.h
3131 xm_file="${xm_file} alpha/xm-vms.h"
3132 tmake_file=alpha/t-vms
3134 arc-*-elf*)
3135 extra_parts="crtinit.o crtfini.o"
3137 arm-*-coff* | armel-*-coff*)
3138 tm_file=arm/coff.h
3139 tmake_file=arm/t-bare
3141 arm-*-vxworks*)
3142 tm_file=arm/vxarm.h
3143 tmake_file=arm/t-bare
3144 thread_file='vxworks'
3146 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
3147 tm_file=arm/riscix1-1.h
3148 use_collect2=yes
3150 arm-*-riscix*) # Acorn RISC machine
3151 if test x$gas = xyes
3152 then
3153 tm_file=arm/rix-gas.h
3154 else
3155 tm_file=arm/riscix.h
3157 xmake_file=arm/x-riscix
3158 tmake_file=arm/t-riscix
3159 use_collect2=yes
3161 arm-semi-aout | armel-semi-aout)
3162 tm_file=arm/semi.h
3163 tmake_file=arm/t-semi
3165 arm-semi-aof | armel-semi-aof)
3166 tm_file=arm/semiaof.h
3167 tmake_file=arm/t-semiaof
3169 arm*-*-netbsd*)
3170 tm_file=arm/netbsd.h
3171 xm_file="arm/xm-netbsd.h ${xm_file}"
3172 tmake_file="t-netbsd arm/t-netbsd"
3173 use_collect2=yes
3175 arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
3176 cpu_type=arm
3177 xmake_file=x-linux
3178 tm_file=arm/linux-aout.h
3179 tmake_file=arm/t-linux
3180 gnu_ld=yes
3182 arm*-*-linux-gnu*) # ARM GNU/Linux with ELF
3183 xm_file=arm/xm-linux.h
3184 xmake_file=x-linux
3185 case $machine in
3186 armv2*-*-*)
3187 tm_file=arm/linux-elf26.h
3190 tm_file=arm/linux-elf.h
3192 esac
3193 tmake_file="t-linux arm/t-linux"
3194 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3195 gnu_ld=yes
3196 case x${enable_threads} in
3197 x | xyes | xpthreads | xposix)
3198 thread_file='posix'
3200 esac
3202 arm*-*-aout)
3203 tm_file=arm/aout.h
3204 tmake_file=arm/t-bare
3206 arm*-*-ecos-elf)
3207 tm_file=arm/ecos-elf.h
3208 tmake_file=arm/t-elf
3210 arm*-*-elf)
3211 tm_file=arm/unknown-elf.h
3212 tmake_file=arm/t-arm-elf
3214 arm*-*-oabi)
3215 tm_file=arm/unknown-elf-oabi.h
3216 tmake_file=arm/t-arm-elf
3218 c1-convex-*) # Convex C1
3219 target_cpu_default=1
3220 use_collect2=yes
3222 c2-convex-*) # Convex C2
3223 target_cpu_default=2
3224 use_collect2=yes
3226 c32-convex-*)
3227 target_cpu_default=4
3228 use_collect2=yes
3230 c34-convex-*)
3231 target_cpu_default=8
3232 use_collect2=yes
3234 c38-convex-*)
3235 target_cpu_default=16
3236 use_collect2=yes
3238 c4x-*)
3239 cpu_type=c4x
3240 tmake_file=c4x/t-c4x
3242 clipper-intergraph-clix*)
3243 tm_file="${tm_file} svr3.h clipper/clix.h"
3244 xm_file=clipper/xm-clix.h
3245 xmake_file=clipper/x-clix
3246 extra_headers=va-clipper.h
3247 extra_parts="crtbegin.o crtend.o"
3248 install_headers_dir=install-headers-cpio
3250 dsp16xx-*)
3252 elxsi-elxsi-*)
3253 use_collect2=yes
3255 # This hasn't been upgraded to GCC 2.
3256 # fx80-alliant-*) # Alliant FX/80
3257 # ;;
3258 h8300-*-*)
3259 float_format=i32
3261 hppa*-*-openbsd*)
3262 target_cpu_default="MASK_PA_11"
3263 tmake_file=pa/t-openbsd
3265 hppa1.1-*-pro*)
3266 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
3267 xm_file=pa/xm-papro.h
3268 tmake_file=pa/t-pro
3270 hppa1.1-*-osf*)
3271 target_cpu_default="MASK_PA_11"
3272 tm_file="${tm_file} pa/pa-osf.h"
3273 use_collect2=yes
3275 hppa1.1-*-rtems*)
3276 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
3277 xm_file=pa/xm-papro.h
3278 tmake_file=pa/t-pro
3280 hppa1.0-*-osf*)
3281 tm_file="${tm_file} pa/pa-osf.h"
3282 use_collect2=yes
3284 hppa1.1-*-bsd*)
3285 target_cpu_default="MASK_PA_11"
3286 use_collect2=yes
3288 hppa1.0-*-bsd*)
3289 use_collect2=yes
3291 hppa1.0-*-hpux7*)
3292 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
3293 xm_file=pa/xm-pahpux.h
3294 xmake_file=pa/x-pa-hpux
3295 if test x$gas = xyes
3296 then
3297 tm_file="${tm_file} pa/gas.h"
3299 install_headers_dir=install-headers-cpio
3300 use_collect2=yes
3302 hppa1.0-*-hpux8.0[0-2]*)
3303 tm_file="${tm_file} pa/pa-hpux.h"
3304 xm_file=pa/xm-pahpux.h
3305 xmake_file=pa/x-pa-hpux
3306 if test x$gas = xyes
3307 then
3308 tm_file="${tm_file} pa/pa-gas.h"
3309 else
3310 tm_file="pa/pa-oldas.h ${tm_file}"
3312 install_headers_dir=install-headers-cpio
3313 use_collect2=yes
3315 hppa1.1-*-hpux8.0[0-2]*)
3316 target_cpu_default="MASK_PA_11"
3317 tm_file="${tm_file} pa/pa-hpux.h"
3318 xm_file=pa/xm-pahpux.h
3319 xmake_file=pa/x-pa-hpux
3320 if test x$gas = xyes
3321 then
3322 tm_file="${tm_file} pa/pa-gas.h"
3323 else
3324 tm_file="pa/pa-oldas.h ${tm_file}"
3326 install_headers_dir=install-headers-cpio
3327 use_collect2=yes
3329 hppa1.1-*-hpux8*)
3330 target_cpu_default="MASK_PA_11"
3331 tm_file="${tm_file} pa/pa-hpux.h"
3332 xm_file=pa/xm-pahpux.h
3333 xmake_file=pa/x-pa-hpux
3334 if test x$gas = xyes
3335 then
3336 tm_file="${tm_file} pa/pa-gas.h"
3338 install_headers_dir=install-headers-cpio
3339 use_collect2=yes
3341 hppa1.0-*-hpux8*)
3342 tm_file="${tm_file} pa/pa-hpux.h"
3343 xm_file=pa/xm-pahpux.h
3344 xmake_file=pa/x-pa-hpux
3345 if test x$gas = xyes
3346 then
3347 tm_file="${tm_file} pa/pa-gas.h"
3349 install_headers_dir=install-headers-cpio
3350 use_collect2=yes
3352 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
3353 target_cpu_default="MASK_PA_11"
3354 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
3355 xm_file=pa/xm-pahpux.h
3356 xmake_file=pa/x-pa-hpux
3357 tmake_file=pa/t-pa
3358 if test x$gas = xyes
3359 then
3360 tm_file="${tm_file} pa/pa-gas.h"
3362 if test x$enable_threads = x; then
3363 enable_threads=$have_pthread_h
3365 if test x$enable_threads = xyes; then
3366 thread_file='dce'
3367 tmake_file="${tmake_file} pa/t-dce-thr"
3369 install_headers_dir=install-headers-cpio
3370 use_collect2=yes
3372 hppa1.0-*-hpux10*)
3373 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
3374 xm_file=pa/xm-pahpux.h
3375 xmake_file=pa/x-pa-hpux
3376 tmake_file=pa/t-pa
3377 if test x$gas = xyes
3378 then
3379 tm_file="${tm_file} pa/pa-gas.h"
3381 if test x$enable_threads = x; then
3382 enable_threads=$have_pthread_h
3384 if test x$enable_threads = xyes; then
3385 thread_file='dce'
3386 tmake_file="${tmake_file} pa/t-dce-thr"
3388 install_headers_dir=install-headers-cpio
3389 use_collect2=yes
3391 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
3392 target_cpu_default=1
3393 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux11.h"
3394 xm_file=pa/xm-pahpux.h
3395 xmake_file=pa/x-pa-hpux
3396 tmake_file=pa/t-pa
3397 if [ x$gas = xyes ]
3398 then
3399 tm_file="${tm_file} pa/pa-gas.h"
3401 # if [[ x$enable_threads = x ]]; then
3402 # enable_threads=$have_pthread_h
3403 # fi
3404 # if [[ x$enable_threads = xyes ]]; then
3405 # thread_file='dce'
3406 # tmake_file="${tmake_file} pa/t-dce-thr"
3407 # fi
3408 install_headers_dir=install-headers-cpio
3409 use_collect2=yes
3411 hppa1.0-*-hpux11*)
3412 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux11.h"
3413 xm_file=pa/xm-pahpux.h
3414 xmake_file=pa/x-pa-hpux
3415 if [ x$gas = xyes ]
3416 then
3417 tm_file="${tm_file} pa/pa-gas.h"
3419 # if [[ x$enable_threads = x ]]; then
3420 # enable_threads=$have_pthread_h
3421 # fi
3422 # if [[ x$enable_threads = xyes ]]; then
3423 # thread_file='dce'
3424 # tmake_file="${tmake_file} pa/t-dce-thr"
3425 # fi
3426 install_headers_dir=install-headers-cpio
3427 use_collect2=yes
3429 hppa1.1-*-hpux* | hppa2*-*-hpux*)
3430 target_cpu_default="MASK_PA_11"
3431 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
3432 xm_file=pa/xm-pahpux.h
3433 xmake_file=pa/x-pa-hpux
3434 if test x$gas = xyes
3435 then
3436 tm_file="${tm_file} pa/pa-gas.h"
3438 install_headers_dir=install-headers-cpio
3439 use_collect2=yes
3441 hppa1.0-*-hpux*)
3442 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
3443 xm_file=pa/xm-pahpux.h
3444 xmake_file=pa/x-pa-hpux
3445 if test x$gas = xyes
3446 then
3447 tm_file="${tm_file} pa/pa-gas.h"
3449 install_headers_dir=install-headers-cpio
3450 use_collect2=yes
3452 hppa1.1-*-hiux* | hppa2*-*-hiux*)
3453 target_cpu_default="MASK_PA_11"
3454 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
3455 xm_file=pa/xm-pahpux.h
3456 xmake_file=pa/x-pa-hpux
3457 if test x$gas = xyes
3458 then
3459 tm_file="${tm_file} pa/pa-gas.h"
3461 install_headers_dir=install-headers-cpio
3462 use_collect2=yes
3464 hppa1.0-*-hiux*)
3465 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
3466 xm_file=pa/xm-pahpux.h
3467 xmake_file=pa/x-pa-hpux
3468 if test x$gas = xyes
3469 then
3470 tm_file="${tm_file} pa/pa-gas.h"
3472 install_headers_dir=install-headers-cpio
3473 use_collect2=yes
3475 hppa*-*-lites*)
3476 target_cpu_default="MASK_PA_11"
3477 use_collect2=yes
3479 i370-*-mvs*)
3481 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
3482 if test x$gas = xyes
3483 then
3484 tm_file=i386/aix386.h
3485 extra_parts="crtbegin.o crtend.o"
3486 tmake_file=i386/t-crtstuff
3487 else
3488 tm_file=i386/aix386ng.h
3489 use_collect2=yes
3491 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
3492 xm_defines=USG
3493 xmake_file=i386/x-aix
3495 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
3496 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3497 xm_defines="USG POSIX SMALL_ARG_MAX"
3498 xmake_file=i386/x-ncr3000
3499 if test x$stabs = xyes -a x$gas = xyes
3500 then
3501 tm_file=i386/sysv4gdb.h
3502 else
3503 tm_file=i386/sysv4.h
3505 extra_parts="crtbegin.o crtend.o"
3506 tmake_file=i386/t-crtpic
3508 i[34567]86-next-*)
3509 tm_file=i386/next.h
3510 xm_file=i386/xm-next.h
3511 tmake_file=i386/t-next
3512 xmake_file=i386/x-next
3513 extra_objs=nextstep.o
3514 extra_parts="crtbegin.o crtend.o"
3515 if test x$enable_threads = xyes; then
3516 thread_file='mach'
3519 i[34567]86-sequent-bsd*) # 80386 from Sequent
3520 use_collect2=yes
3521 if test x$gas = xyes
3522 then
3523 tm_file=i386/seq-gas.h
3524 else
3525 tm_file=i386/sequent.h
3528 i[34567]86-sequent-ptx1*)
3529 xm_defines="USG SVR3"
3530 xmake_file=i386/x-sysv3
3531 tm_file=i386/seq-sysv3.h
3532 tmake_file=i386/t-crtstuff
3533 extra_parts="crtbegin.o crtend.o"
3534 install_headers_dir=install-headers-cpio
3536 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
3537 xm_defines="USG SVR3"
3538 xmake_file=i386/x-sysv3
3539 tm_file=i386/seq2-sysv3.h
3540 tmake_file=i386/t-crtstuff
3541 extra_parts="crtbegin.o crtend.o"
3542 install_headers_dir=install-headers-cpio
3544 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
3545 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3546 xm_defines="USG POSIX SMALL_ARG_MAX"
3547 xmake_file=x-svr4
3548 tm_file=i386/ptx4-i.h
3549 tmake_file=t-svr4
3550 extra_parts="crtbegin.o crtend.o"
3551 install_headers_dir=install-headers-cpio
3553 i386-sun-sunos*) # Sun i386 roadrunner
3554 xm_defines=USG
3555 tm_file=i386/sun.h
3556 use_collect2=yes
3558 i[34567]86-wrs-vxworks*)
3559 tm_file=i386/vxi386.h
3560 tmake_file=i386/t-i386bare
3561 thread_file='vxworks'
3563 i[34567]86-*-aout*)
3564 tm_file=i386/i386-aout.h
3565 tmake_file=i386/t-i386bare
3567 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
3568 tm_file=i386/bsd386.h
3569 # tmake_file=t-libc-ok
3571 i[34567]86-*-bsd*)
3572 tm_file=i386/386bsd.h
3573 # tmake_file=t-libc-ok
3574 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
3575 # use_collect2=yes
3577 i[34567]86-*-freebsdelf*)
3578 tm_file="i386/i386.h i386/att.h svr4.h i386/freebsd-elf.h i386/perform.h"
3579 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3580 tmake_file=t-freebsd
3581 gas=yes
3582 gnu_ld=yes
3583 stabs=yes
3585 i[34567]86-*-freebsd*)
3586 tm_file=i386/freebsd.h
3587 tmake_file=t-freebsd
3589 i[34567]86-*-netbsd*)
3590 tm_file=i386/netbsd.h
3591 tmake_file=t-netbsd
3592 use_collect2=yes
3594 i[34567]86-*-openbsd*)
3595 # we need collect2 until our bug is fixed...
3596 use_collect2=yes
3598 i[34567]86-*-coff*)
3599 tm_file=i386/i386-coff.h
3600 tmake_file=i386/t-i386bare
3602 i[34567]86-*-isc*) # 80386 running ISC system
3603 xm_file="${xm_file} i386/xm-isc.h"
3604 xm_defines="USG SVR3"
3605 case $machine in
3606 i[34567]86-*-isc[34]*)
3607 xmake_file=i386/x-isc3
3610 xmake_file=i386/x-isc
3612 esac
3613 if test x$gas = xyes -a x$stabs = xyes
3614 then
3615 tm_file=i386/iscdbx.h
3616 tmake_file=i386/t-svr3dbx
3617 extra_parts="svr3.ifile svr3z.ifile"
3618 else
3619 tm_file=i386/isccoff.h
3620 tmake_file=i386/t-crtstuff
3621 extra_parts="crtbegin.o crtend.o"
3623 install_headers_dir=install-headers-cpio
3625 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
3626 # pre BFD linkers
3627 xmake_file=x-linux-aout
3628 tmake_file="t-linux-aout i386/t-crtstuff"
3629 tm_file=i386/linux-oldld.h
3630 gnu_ld=yes
3631 float_format=i386
3633 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
3634 xmake_file=x-linux-aout
3635 tmake_file="t-linux-aout i386/t-crtstuff"
3636 tm_file=i386/linux-aout.h
3637 gnu_ld=yes
3638 float_format=i386
3640 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
3641 # GNU/Linux C library 5
3642 xmake_file=x-linux
3643 tm_file=i386/linux.h
3644 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
3645 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3646 gnu_ld=yes
3647 float_format=i386
3648 if test x$enable_threads = xyes; then
3649 thread_file='single'
3652 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
3653 # aka GNU/Linux C library 6
3654 xmake_file=x-linux
3655 tm_file=i386/linux.h
3656 tmake_file="t-linux i386/t-crtstuff"
3657 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3658 gnu_ld=yes
3659 float_format=i386
3660 if test x$enable_threads = xyes; then
3661 thread_file='posix'
3664 i[34567]86-*-gnu*)
3665 float_format=i386
3667 i[34567]86-go32-msdos | i[34567]86-*-go32*)
3668 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
3669 exit 1
3671 i[34567]86-pc-msdosdjgpp*)
3672 xm_file=i386/xm-djgpp.h
3673 tm_file=i386/djgpp.h
3674 tmake_file=i386/t-djgpp
3675 xmake_file=i386/x-djgpp
3676 gnu_ld=yes
3677 gas=yes
3678 exeext=.exe
3679 case $host in *pc-msdosdjgpp*)
3680 target_alias=djgpp
3682 esac
3684 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
3685 tm_file=i386/moss.h
3686 tmake_file=t-libc-ok
3687 gnu_ld=yes
3688 gas=yes
3690 i[34567]86-*-lynxos*)
3691 if test x$gas = xyes
3692 then
3693 tm_file=i386/lynx.h
3694 else
3695 tm_file=i386/lynx-ng.h
3697 xm_file=i386/xm-lynx.h
3698 tmake_file=i386/t-i386bare
3699 xmake_file=x-lynx
3701 i[34567]86-*-mach*)
3702 tm_file=i386/mach.h
3703 # tmake_file=t-libc-ok
3704 use_collect2=yes
3706 i[34567]86-*-osfrose*) # 386 using OSF/rose
3707 if test x$elf = xyes
3708 then
3709 tm_file=i386/osfelf.h
3710 use_collect2=
3711 else
3712 tm_file=i386/osfrose.h
3713 use_collect2=yes
3715 xm_file="i386/xm-osf.h ${xm_file}"
3716 xmake_file=i386/x-osfrose
3717 tmake_file=i386/t-osf
3718 extra_objs=halfpic.o
3720 i[34567]86-go32-rtems*)
3721 cpu_type=i386
3722 xm_file=i386/xm-go32.h
3723 tm_file=i386/go32-rtems.h
3724 tmake_file="i386/t-go32 t-rtems"
3726 i[34567]86-*-rtemself*)
3727 cpu_type=i386
3728 tm_file=i386/rtemself.h
3729 tmake_file="i386/t-i386bare t-rtems"
3731 i[34567]86-*-rtems*)
3732 cpu_type=i386
3733 tm_file=i386/rtems.h
3734 tmake_file="i386/t-i386bare t-rtems"
3736 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
3737 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
3738 xm_defines="USG SVR3"
3739 xmake_file=i386/x-sco5
3740 install_headers_dir=install-headers-cpio
3741 tm_file=i386/sco5.h
3742 if test x$gas = xyes
3743 then
3744 tm_file="i386/sco5gas.h ${tm_file}"
3745 tmake_file=i386/t-sco5gas
3746 else
3747 tmake_file=i386/t-sco5
3749 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
3751 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
3752 xm_file="${xm_file} i386/xm-sco.h"
3753 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
3754 xmake_file=i386/x-sco4
3755 install_headers_dir=install-headers-cpio
3756 if test x$stabs = xyes
3757 then
3758 tm_file=i386/sco4dbx.h
3759 tmake_file=i386/t-svr3dbx
3760 extra_parts="svr3.ifile svr3z.rfile"
3761 else
3762 tm_file=i386/sco4.h
3763 tmake_file=i386/t-crtstuff
3764 extra_parts="crtbegin.o crtend.o"
3766 truncate_target=yes
3768 i[34567]86-*-sco*) # 80386 running SCO system
3769 xm_file=i386/xm-sco.h
3770 xmake_file=i386/x-sco
3771 install_headers_dir=install-headers-cpio
3772 if test x$stabs = xyes
3773 then
3774 tm_file=i386/scodbx.h
3775 tmake_file=i386/t-svr3dbx
3776 extra_parts="svr3.ifile svr3z.rfile"
3777 else
3778 tm_file=i386/sco.h
3779 extra_parts="crtbegin.o crtend.o"
3780 tmake_file=i386/t-crtstuff
3782 truncate_target=yes
3784 i[34567]86-*-solaris2*)
3785 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3786 xm_defines="USG POSIX SMALL_ARG_MAX"
3787 if test x$stabs = xyes
3788 then
3789 tm_file=i386/sol2dbg.h
3790 else
3791 tm_file=i386/sol2.h
3793 tmake_file=i386/t-sol2
3794 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3795 xmake_file=x-svr4
3796 if test x$enable_threads = xyes; then
3797 thread_file='solaris'
3800 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
3801 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
3802 xm_defines="USG POSIX"
3803 tm_file=i386/sysv5.h
3804 if test x$stabs = xyes
3805 then
3806 tm_file="${tm_file} dbx.h"
3808 tmake_file=i386/t-crtpic
3809 xmake_file=x-svr4
3810 extra_parts="crtbegin.o crtend.o"
3811 if test x$enable_threads = xyes; then
3812 thread_file='posix'
3815 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
3816 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3817 xm_defines="USG POSIX SMALL_ARG_MAX"
3818 tm_file=i386/sysv4.h
3819 if test x$stabs = xyes
3820 then
3821 tm_file="${tm_file} dbx.h"
3823 tmake_file=i386/t-crtpic
3824 xmake_file=x-svr4
3825 extra_parts="crtbegin.o crtend.o"
3827 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
3828 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
3829 xm_defines="USG POSIX"
3830 tm_file=i386/udk.h
3831 tmake_file="i386/t-crtpic i386/t-udk"
3832 xmake_file=x-svr4
3833 extra_parts="crtbegin.o crtend.o"
3834 install_headers_dir=install-headers-cpio
3836 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
3837 cpu_type=i386
3838 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
3839 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
3840 if test x$stabs = xyes
3841 then
3842 tm_file=i386/osf1elfgdb.h
3843 else
3844 tm_file=i386/osf1elf.h
3846 tmake_file=i386/t-osf1elf
3847 xmake_file=i386/x-osf1elf
3848 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3850 i[34567]86-*-sysv*) # Intel 80386's running system V
3851 xm_defines="USG SVR3"
3852 xmake_file=i386/x-sysv3
3853 if test x$gas = xyes
3854 then
3855 if test x$stabs = xyes
3856 then
3857 tm_file=i386/svr3dbx.h
3858 tmake_file=i386/t-svr3dbx
3859 extra_parts="svr3.ifile svr3z.rfile"
3860 else
3861 tm_file=i386/svr3gas.h
3862 extra_parts="crtbegin.o crtend.o"
3863 tmake_file=i386/t-crtstuff
3865 else
3866 tm_file=i386/sysv3.h
3867 extra_parts="crtbegin.o crtend.o"
3868 tmake_file=i386/t-crtstuff
3871 i386-*-vsta) # Intel 80386's running VSTa kernel
3872 xm_file="${xm_file} i386/xm-vsta.h"
3873 tm_file=i386/vsta.h
3874 tmake_file=i386/t-vsta
3875 xmake_file=i386/x-vsta
3877 i[34567]86-*-win32)
3878 xm_file="${xm_file} i386/xm-cygwin.h"
3879 tmake_file=i386/t-cygwin
3880 tm_file=i386/win32.h
3881 xmake_file=i386/x-cygwin
3882 extra_objs=winnt.o
3883 if test x$enable_threads = xyes; then
3884 thread_file='win32'
3886 exeext=.exe
3888 i[34567]86-*-pe | i[34567]86-*-cygwin*)
3889 xm_file="${xm_file} i386/xm-cygwin.h"
3890 tmake_file=i386/t-cygwin
3891 tm_file=i386/cygwin.h
3892 xmake_file=i386/x-cygwin
3893 extra_objs=winnt.o
3894 if test x$enable_threads = xyes; then
3895 thread_file='win32'
3897 exeext=.exe
3899 i[34567]86-*-mingw32*)
3900 tm_file=i386/mingw32.h
3901 xm_file="${xm_file} i386/xm-mingw32.h"
3902 tmake_file="i386/t-cygwin i386/t-mingw32"
3903 extra_objs=winnt.o
3904 xmake_file=i386/x-cygwin
3905 if test x$enable_threads = xyes; then
3906 thread_file='win32'
3908 exeext=.exe
3909 case $machine in
3910 *mingw32msv*)
3912 *minwg32crt* | *mingw32*)
3913 tm_file="${tm_file} i386/crtdll.h"
3915 esac
3917 i[34567]86-*-uwin*)
3918 tm_file=i386/uwin.h
3919 xm_file="${xm_file} i386/xm-uwin.h"
3920 xm_defines="USG NO_STAB_H NO_SYS_SIGLIST"
3921 tmake_file="i386/t-cygwin i386/t-uwin"
3922 extra_objs=winnt.o
3923 xmake_file=i386/x-cygwin
3924 if test x$enable_threads = xyes; then
3925 thread_file='win32'
3927 exeext=.exe
3929 i[34567]86-*-interix*)
3930 tm_file="i386/i386-interix.h interix.h"
3931 xm_file="i386/xm-i386-interix.h xm-interix.h"
3932 xm_defines="USG NO_SYS_SIGLIST"
3933 tmake_file="i386/t-interix"
3934 extra_objs=interix.o
3935 xmake_file=x-interix
3936 if test x$enable_threads = xyes ; then
3937 thread_file='posix'
3939 if test x$stabs = xyes ; then
3940 tm_file="${tm_file} dbxcoff.h"
3943 i[34567]86-*-winnt3*)
3944 tm_file=i386/win-nt.h
3945 out_file=i386/i386.c
3946 xm_file="xm-winnt.h ${xm_file}"
3947 xmake_file=winnt/x-winnt
3948 tmake_file=i386/t-winnt
3949 extra_host_objs="winnt.o oldnames.o"
3950 extra_gcc_objs="spawnv.o oldnames.o"
3951 if test x$gnu_ld != xyes
3952 then
3953 extra_programs=ld.exe
3955 if test x$enable_threads = xyes; then
3956 thread_file='win32'
3959 i[34567]86-dg-dgux*)
3960 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
3961 xm_defines="USG POSIX"
3962 out_file=i386/dgux.c
3963 tm_file=i386/dgux.h
3964 tmake_file=i386/t-dgux
3965 xmake_file=i386/x-dgux
3966 install_headers_dir=install-headers-cpio
3968 i860-alliant-*) # Alliant FX/2800
3969 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
3970 xm_file="${xm_file}"
3971 xmake_file=i860/x-fx2800
3972 tmake_file=i860/t-fx2800
3973 extra_parts="crtbegin.o crtend.o"
3975 i860-*-bsd*)
3976 tm_file="${tm_file} i860/bsd.h"
3977 if test x$gas = xyes
3978 then
3979 tm_file="${tm_file} i860/bsd-gas.h"
3981 use_collect2=yes
3983 i860-*-mach*)
3984 tm_file="${tm_file} i860/mach.h"
3985 tmake_file=t-libc-ok
3987 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
3988 tm_file="${tm_file} svr3.h i860/paragon.h"
3989 xm_defines="USG SVR3"
3990 tmake_file=t-osf
3992 i860-*-sysv3*)
3993 tm_file="${tm_file} svr3.h i860/sysv3.h"
3994 xm_defines="USG SVR3"
3995 xmake_file=i860/x-sysv3
3996 extra_parts="crtbegin.o crtend.o"
3998 i860-*-sysv4*)
3999 tm_file="${tm_file} svr4.h i860/sysv4.h"
4000 xm_defines="USG SVR3"
4001 xmake_file=i860/x-sysv4
4002 tmake_file=t-svr4
4003 extra_parts="crtbegin.o crtend.o"
4005 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
4006 tm_file="${tm_file} i960/vx960.h"
4007 tmake_file=i960/t-vxworks960
4008 use_collect2=yes
4009 thread_file='vxworks'
4011 i960-wrs-vxworks5* | i960-wrs-vxworks)
4012 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
4013 tmake_file=i960/t-vxworks960
4014 use_collect2=yes
4015 thread_file='vxworks'
4017 i960-wrs-vxworks*)
4018 tm_file="${tm_file} i960/vx960.h"
4019 tmake_file=i960/t-vxworks960
4020 use_collect2=yes
4021 thread_file='vxworks'
4023 i960-*-coff*)
4024 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
4025 tmake_file=i960/t-960bare
4026 use_collect2=yes
4028 i960-*-rtems)
4029 tmake_file="i960/t-960bare t-rtems"
4030 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
4031 use_collect2=yes
4033 i960-*-*) # Default i960 environment.
4034 use_collect2=yes
4036 m32r-*-elf*)
4037 extra_parts="crtinit.o crtfini.o"
4039 m68000-convergent-sysv*)
4040 tm_file=m68k/ctix.h
4041 xm_file="m68k/xm-3b1.h ${xm_file}"
4042 xm_defines=USG
4043 use_collect2=yes
4044 extra_headers=math-68881.h
4046 m68000-hp-bsd*) # HP 9000/200 running BSD
4047 tm_file=m68k/hp2bsd.h
4048 xmake_file=m68k/x-hp2bsd
4049 use_collect2=yes
4050 extra_headers=math-68881.h
4052 m68000-hp-hpux*) # HP 9000 series 300
4053 xm_file="xm_alloca.h ${xm_file}"
4054 xm_defines="USG NO_SYS_SIGLIST"
4055 if test x$gas = xyes
4056 then
4057 xmake_file=m68k/x-hp320g
4058 tm_file=m68k/hp310g.h
4059 else
4060 xmake_file=m68k/x-hp320
4061 tm_file=m68k/hp310.h
4063 install_headers_dir=install-headers-cpio
4064 use_collect2=yes
4065 extra_headers=math-68881.h
4067 m68000-sun-sunos3*)
4068 tm_file=m68k/sun2.h
4069 use_collect2=yes
4070 extra_headers=math-68881.h
4072 m68000-sun-sunos4*)
4073 tm_file=m68k/sun2o4.h
4074 use_collect2=yes
4075 extra_headers=math-68881.h
4077 m68000-att-sysv*)
4078 xm_file="m68k/xm-3b1.h ${xm_file}"
4079 xm_defines=USG
4080 if test x$gas = xyes
4081 then
4082 tm_file=m68k/3b1g.h
4083 else
4084 tm_file=m68k/3b1.h
4086 use_collect2=yes
4087 extra_headers=math-68881.h
4089 m68k-apple-aux*) # Apple Macintosh running A/UX
4090 xm_defines="USG AUX"
4091 tmake_file=m68k/t-aux
4092 install_headers_dir=install-headers-cpio
4093 extra_headers=math-68881.h
4094 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
4095 tm_file=
4096 if test "$gnu_ld" = yes
4097 then
4098 tm_file="${tm_file} m68k/auxgld.h"
4099 else
4100 tm_file="${tm_file} m68k/auxld.h"
4102 if test "$gas" = yes
4103 then
4104 tm_file="${tm_file} m68k/auxgas.h"
4105 else
4106 tm_file="${tm_file} m68k/auxas.h"
4108 tm_file="${tm_file} m68k/a-ux.h"
4109 float_format=m68k
4111 m68k-apollo-*)
4112 tm_file=m68k/apollo68.h
4113 xmake_file=m68k/x-apollo68
4114 use_collect2=yes
4115 extra_headers=math-68881.h
4116 float_format=m68k
4118 m68k-altos-sysv*) # Altos 3068
4119 if test x$gas = xyes
4120 then
4121 tm_file=m68k/altos3068.h
4122 xm_defines=USG
4123 else
4124 echo "The Altos is supported only with the GNU assembler" 1>&2
4125 exit 1
4127 extra_headers=math-68881.h
4129 m68k-bull-sysv*) # Bull DPX/2
4130 if test x$gas = xyes
4131 then
4132 if test x$stabs = xyes
4133 then
4134 tm_file=m68k/dpx2cdbx.h
4135 else
4136 tm_file=m68k/dpx2g.h
4138 else
4139 tm_file=m68k/dpx2.h
4141 xm_file="xm-alloca.h ${xm_file}"
4142 xm_defines=USG
4143 xmake_file=m68k/x-dpx2
4144 use_collect2=yes
4145 extra_headers=math-68881.h
4147 m68k-atari-sysv4*) # Atari variant of V.4.
4148 tm_file=m68k/atari.h
4149 xm_file="xm-alloca.h ${xm_file}"
4150 xm_defines="USG FULL_PROTOTYPES"
4151 tmake_file=t-svr4
4152 extra_parts="crtbegin.o crtend.o"
4153 extra_headers=math-68881.h
4154 float_format=m68k
4156 m68k-motorola-sysv*)
4157 tm_file=m68k/mot3300.h
4158 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
4159 xm_defines=NO_SYS_SIGLIST
4160 if test x$gas = xyes
4161 then
4162 xmake_file=m68k/x-mot3300-gas
4163 if test x$gnu_ld = xyes
4164 then
4165 tmake_file=m68k/t-mot3300-gald
4166 else
4167 tmake_file=m68k/t-mot3300-gas
4168 use_collect2=yes
4170 else
4171 xmake_file=m68k/x-mot3300
4172 if test x$gnu_ld = xyes
4173 then
4174 tmake_file=m68k/t-mot3300-gld
4175 else
4176 tmake_file=m68k/t-mot3300
4177 use_collect2=yes
4180 gdb_needs_out_file_path=yes
4181 extra_parts="crt0.o mcrt0.o"
4182 extra_headers=math-68881.h
4183 float_format=m68k
4185 m68k-ncr-sysv*) # NCR Tower 32 SVR3
4186 tm_file=m68k/tower-as.h
4187 xm_defines="USG SVR3"
4188 xmake_file=m68k/x-tower
4189 extra_parts="crtbegin.o crtend.o"
4190 extra_headers=math-68881.h
4192 m68k-plexus-sysv*)
4193 tm_file=m68k/plexus.h
4194 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
4195 xm_defines=USG
4196 use_collect2=yes
4197 extra_headers=math-68881.h
4199 m68k-tti-*)
4200 tm_file=m68k/pbb.h
4201 xm_file="xm-alloca.h ${xm_file}"
4202 xm_defines=USG
4203 extra_headers=math-68881.h
4205 m68k-crds-unos*)
4206 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
4207 xm_defines="USG unos"
4208 xmake_file=m68k/x-crds
4209 tm_file=m68k/crds.h
4210 use_collect2=yes
4211 extra_headers=math-68881.h
4213 m68k-cbm-sysv4*) # Commodore variant of V.4.
4214 tm_file=m68k/amix.h
4215 xm_file="xm-alloca.h ${xm_file}"
4216 xm_defines="USG FULL_PROTOTYPES"
4217 xmake_file=m68k/x-amix
4218 tmake_file=t-svr4
4219 extra_parts="crtbegin.o crtend.o"
4220 extra_headers=math-68881.h
4221 float_format=m68k
4223 m68k-ccur-rtu)
4224 tm_file=m68k/ccur-GAS.h
4225 xmake_file=m68k/x-ccur
4226 extra_headers=math-68881.h
4227 use_collect2=yes
4228 float_format=m68k
4230 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
4231 tm_file=m68k/hp3bsd44.h
4232 xmake_file=m68k/x-hp3bsd44
4233 use_collect2=yes
4234 extra_headers=math-68881.h
4235 float_format=m68k
4237 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
4238 tm_file=m68k/hp3bsd.h
4239 use_collect2=yes
4240 extra_headers=math-68881.h
4241 float_format=m68k
4243 m68k-isi-bsd*)
4244 if test x$with_fp = xno
4245 then
4246 tm_file=m68k/isi-nfp.h
4247 else
4248 tm_file=m68k/isi.h
4249 float_format=m68k
4251 use_collect2=yes
4252 extra_headers=math-68881.h
4254 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
4255 xm_file="xm_alloca.h ${xm_file}"
4256 xm_defines="USG NO_SYS_SIGLIST"
4257 if test x$gas = xyes
4258 then
4259 xmake_file=m68k/x-hp320g
4260 tm_file=m68k/hp320g.h
4261 else
4262 xmake_file=m68k/x-hp320
4263 tm_file=m68k/hpux7.h
4265 install_headers_dir=install-headers-cpio
4266 use_collect2=yes
4267 extra_headers=math-68881.h
4268 float_format=m68k
4270 m68k-hp-hpux*) # HP 9000 series 300
4271 xm_file="xm_alloca.h ${xm_file}"
4272 xm_defines="USG NO_SYS_SIGLIST"
4273 if test x$gas = xyes
4274 then
4275 xmake_file=m68k/x-hp320g
4276 tm_file=m68k/hp320g.h
4277 else
4278 xmake_file=m68k/x-hp320
4279 tm_file=m68k/hp320.h
4281 install_headers_dir=install-headers-cpio
4282 use_collect2=yes
4283 extra_headers=math-68881.h
4284 float_format=m68k
4286 m68k-sun-mach*)
4287 tm_file=m68k/sun3mach.h
4288 use_collect2=yes
4289 extra_headers=math-68881.h
4290 float_format=m68k
4292 m68k-sony-newsos3*)
4293 if test x$gas = xyes
4294 then
4295 tm_file=m68k/news3gas.h
4296 else
4297 tm_file=m68k/news3.h
4299 use_collect2=yes
4300 extra_headers=math-68881.h
4301 float_format=m68k
4303 m68k-sony-bsd* | m68k-sony-newsos*)
4304 if test x$gas = xyes
4305 then
4306 tm_file=m68k/newsgas.h
4307 else
4308 tm_file=m68k/news.h
4310 use_collect2=yes
4311 extra_headers=math-68881.h
4312 float_format=m68k
4314 m68k-next-nextstep2*)
4315 tm_file=m68k/next21.h
4316 xm_file="m68k/xm-next.h ${xm_file}"
4317 tmake_file=m68k/t-next
4318 xmake_file=m68k/x-next
4319 extra_objs=nextstep.o
4320 extra_headers=math-68881.h
4321 use_collect2=yes
4322 float_format=m68k
4324 m68k-next-nextstep3*)
4325 tm_file=m68k/next.h
4326 xm_file="m68k/xm-next.h ${xm_file}"
4327 tmake_file=m68k/t-next
4328 xmake_file=m68k/x-next
4329 extra_objs=nextstep.o
4330 extra_parts="crtbegin.o crtend.o"
4331 extra_headers=math-68881.h
4332 float_format=m68k
4333 if test x$enable_threads = xyes; then
4334 thread_file='mach'
4337 m68k-sun-sunos3*)
4338 if test x$with_fp = xno
4339 then
4340 tm_file=m68k/sun3n3.h
4341 else
4342 tm_file=m68k/sun3o3.h
4343 float_format=m68k
4345 use_collect2=yes
4346 extra_headers=math-68881.h
4348 m68k-sun-sunos*) # For SunOS 4 (the default).
4349 if test x$with_fp = xno
4350 then
4351 tm_file=m68k/sun3n.h
4352 else
4353 tm_file=m68k/sun3.h
4354 float_format=m68k
4356 use_collect2=yes
4357 extra_headers=math-68881.h
4359 m68k-wrs-vxworks*)
4360 tm_file=m68k/vxm68k.h
4361 tmake_file=m68k/t-vxworks68
4362 extra_headers=math-68881.h
4363 thread_file='vxworks'
4364 float_format=m68k
4366 m68k-*-aout*)
4367 tmake_file=m68k/t-m68kbare
4368 tm_file="m68k/m68k-aout.h libgloss.h"
4369 extra_headers=math-68881.h
4370 float_format=m68k
4372 m68k-*-coff*)
4373 tmake_file=m68k/t-m68kbare
4374 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
4375 extra_headers=math-68881.h
4376 float_format=m68k
4378 m68020-*-elf* | m68k-*-elf*)
4379 tm_file="m68k/m68020-elf.h libgloss.h"
4380 xm_file=m68k/xm-m68kv.h
4381 tmake_file=m68k/t-m68kelf
4382 header_files=math-68881.h
4384 m68k-*-lynxos*)
4385 if test x$gas = xyes
4386 then
4387 tm_file=m68k/lynx.h
4388 else
4389 tm_file=m68k/lynx-ng.h
4391 xm_file=m68k/xm-lynx.h
4392 xmake_file=x-lynx
4393 tmake_file=m68k/t-lynx
4394 extra_headers=math-68881.h
4395 float_format=m68k
4397 m68k*-*-netbsd*)
4398 tm_file=m68k/netbsd.h
4399 tmake_file=t-netbsd
4400 float_format=m68k
4401 use_collect2=yes
4403 m68k*-*-openbsd*)
4404 float_format=m68k
4405 # we need collect2 until our bug is fixed...
4406 use_collect2=yes
4408 m68k-*-sysv3*) # Motorola m68k's running system V.3
4409 xm_file="xm-alloca.h ${xm_file}"
4410 xm_defines=USG
4411 xmake_file=m68k/x-m68kv
4412 extra_parts="crtbegin.o crtend.o"
4413 extra_headers=math-68881.h
4414 float_format=m68k
4416 m68k-*-sysv4*) # Motorola m68k's running system V.4
4417 tm_file=m68k/m68kv4.h
4418 xm_file="xm-alloca.h ${xm_file}"
4419 xm_defines=USG
4420 tmake_file=t-svr4
4421 extra_parts="crtbegin.o crtend.o"
4422 extra_headers=math-68881.h
4423 float_format=m68k
4425 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
4426 # with a.out format
4427 xmake_file=x-linux
4428 tm_file=m68k/linux-aout.h
4429 tmake_file="t-linux-aout m68k/t-linux-aout"
4430 extra_headers=math-68881.h
4431 float_format=m68k
4432 gnu_ld=yes
4434 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
4435 # with ELF format using the
4436 # GNU/Linux C library 5
4437 xmake_file=x-linux
4438 tm_file=m68k/linux.h
4439 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
4440 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4441 extra_headers=math-68881.h
4442 float_format=m68k
4443 gnu_ld=yes
4445 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
4446 # with ELF format using glibc 2
4447 # aka the GNU/Linux C library 6.
4448 xmake_file=x-linux
4449 tm_file=m68k/linux.h
4450 tmake_file="t-linux m68k/t-linux"
4451 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4452 extra_headers=math-68881.h
4453 float_format=m68k
4454 gnu_ld=yes
4455 if test x$enable_threads = xyes; then
4456 thread_file='posix'
4459 m68k-*-psos*)
4460 tmake_file=m68k/t-m68kbare
4461 tm_file=m68k/m68k-psos.h
4462 extra_headers=math-68881.h
4463 float_format=m68k
4465 m68k-*-rtems*)
4466 tmake_file="m68k/t-m68kbare t-rtems"
4467 tm_file=m68k/rtems.h
4468 extra_headers=math-68881.h
4469 float_format=m68k
4472 m88k-dg-dgux*)
4473 case $machine in
4474 m88k-dg-dguxbcs*)
4475 tm_file=m88k/dguxbcs.h
4476 tmake_file=m88k/t-dguxbcs
4479 tm_file=m88k/dgux.h
4480 tmake_file=m88k/t-dgux
4482 esac
4483 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
4484 xmake_file=m88k/x-dgux
4485 if test x$gas = xyes
4486 then
4487 tmake_file=m88k/t-dgux-gas
4490 m88k-dolphin-sysv3*)
4491 tm_file=m88k/dolph.h
4492 extra_parts="crtbegin.o crtend.o"
4493 xm_file="m88k/xm-sysv3.h ${xm_file}"
4494 xmake_file=m88k/x-dolph
4495 if test x$gas = xyes
4496 then
4497 tmake_file=m88k/t-m88k-gas
4500 m88k-tektronix-sysv3)
4501 tm_file=m88k/tekXD88.h
4502 extra_parts="crtbegin.o crtend.o"
4503 xm_file="m88k/xm-sysv3.h ${xm_file}"
4504 xmake_file=m88k/x-tekXD88
4505 if test x$gas = xyes
4506 then
4507 tmake_file=m88k/t-m88k-gas
4510 m88k-*-aout*)
4511 tm_file=m88k/m88k-aout.h
4513 m88k-*-coff*)
4514 tm_file=m88k/m88k-coff.h
4515 tmake_file=m88k/t-bug
4517 m88k-*-luna*)
4518 tm_file=m88k/luna.h
4519 extra_parts="crtbegin.o crtend.o"
4520 if test x$gas = xyes
4521 then
4522 tmake_file=m88k/t-luna-gas
4523 else
4524 tmake_file=m88k/t-luna
4527 m88k-*-openbsd*)
4528 tmake_file="${tmake_file} m88k/t-luna-gas"
4530 m88k-*-sysv3*)
4531 tm_file=m88k/sysv3.h
4532 extra_parts="crtbegin.o crtend.o"
4533 xm_file="m88k/xm-sysv3.h ${xm_file}"
4534 xmake_file=m88k/x-sysv3
4535 if test x$gas = xyes
4536 then
4537 tmake_file=m88k/t-m88k-gas
4540 m88k-*-sysv4*)
4541 tm_file=m88k/sysv4.h
4542 extra_parts="crtbegin.o crtend.o"
4543 xmake_file=m88k/x-sysv4
4544 tmake_file=m88k/t-sysv4
4546 mips-sgi-irix6*) # SGI System V.4., IRIX 6
4547 tm_file=mips/iris6.h
4548 xm_file=mips/xm-iris6.h
4549 xmake_file=mips/x-iris6
4550 tmake_file=mips/t-iris6
4551 # if test x$enable_threads = xyes; then
4552 # thread_file='irix'
4553 # fi
4555 mips-wrs-vxworks)
4556 tm_file="mips/elf.h libgloss.h mips/vxworks.h"
4557 tmake_file=mips/t-ecoff
4558 gas=yes
4559 gnu_ld=yes
4560 extra_parts="crtbegin.o crtend.o"
4561 thread_file='vxworks'
4563 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
4564 tm_file="mips/iris6.h mips/cross64.h"
4565 xm_defines=USG
4566 xm_file="mips/xm-iris5.h"
4567 xmake_file=mips/x-iris
4568 tmake_file=mips/t-cross64
4569 # See comment in mips/iris[56].h files.
4570 use_collect2=yes
4571 # if test x$enable_threads = xyes; then
4572 # thread_file='irix'
4573 # fi
4575 mips-sni-sysv4)
4576 if test x$gas = xyes
4577 then
4578 if test x$stabs = xyes
4579 then
4580 tm_file=mips/iris5gdb.h
4581 else
4582 tm_file="mips/sni-svr4.h mips/sni-gas.h"
4584 else
4585 tm_file=mips/sni-svr4.h
4587 xm_defines=USG
4588 xmake_file=mips/x-sni-svr4
4589 tmake_file=mips/t-mips-gas
4590 if test x$gnu_ld != xyes
4591 then
4592 use_collect2=yes
4595 mips-sgi-irix5*) # SGI System V.4., IRIX 5
4596 if test x$gas = xyes
4597 then
4598 tm_file="mips/iris5.h mips/iris5gas.h"
4599 if test x$stabs = xyes
4600 then
4601 tm_file="${tm_file} dbx.h"
4603 else
4604 tm_file=mips/iris5.h
4606 xm_defines=USG
4607 xm_file="mips/xm-iris5.h"
4608 xmake_file=mips/x-iris
4609 # mips-tfile doesn't work yet
4610 tmake_file=mips/t-mips-gas
4611 # See comment in mips/iris5.h file.
4612 use_collect2=yes
4613 # if test x$enable_threads = xyes; then
4614 # thread_file='irix'
4615 # fi
4617 mips-sgi-irix4loser*) # Mostly like a MIPS.
4618 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
4619 if test x$stabs = xyes; then
4620 tm_file="${tm_file} dbx.h"
4622 xm_defines=USG
4623 xmake_file=mips/x-iris
4624 if test x$gas = xyes
4625 then
4626 tmake_file=mips/t-mips-gas
4627 else
4628 extra_passes="mips-tfile mips-tdump"
4630 if test x$gnu_ld != xyes
4631 then
4632 use_collect2=yes
4634 # if test x$enable_threads = xyes; then
4635 # thread_file='irix'
4636 # fi
4638 mips-sgi-irix4*) # Mostly like a MIPS.
4639 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
4640 if test x$stabs = xyes; then
4641 tm_file="${tm_file} dbx.h"
4643 xm_defines=USG
4644 xmake_file=mips/x-iris
4645 if test x$gas = xyes
4646 then
4647 tmake_file=mips/t-mips-gas
4648 else
4649 extra_passes="mips-tfile mips-tdump"
4651 if test x$gnu_ld != xyes
4652 then
4653 use_collect2=yes
4655 # if test x$enable_threads = xyes; then
4656 # thread_file='irix'
4657 # fi
4659 mips-sgi-*) # Mostly like a MIPS.
4660 tm_file="mips/iris3.h ${tm_file}"
4661 if test x$stabs = xyes; then
4662 tm_file="${tm_file} dbx.h"
4664 xm_defines=USG
4665 xmake_file=mips/x-iris3
4666 if test x$gas = xyes
4667 then
4668 tmake_file=mips/t-mips-gas
4669 else
4670 extra_passes="mips-tfile mips-tdump"
4672 if test x$gnu_ld != xyes
4673 then
4674 use_collect2=yes
4677 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
4678 tm_file="mips/osfrose.h ${tm_file}"
4679 xmake_file=mips/x-osfrose
4680 tmake_file=mips/t-osfrose
4681 extra_objs=halfpic.o
4682 use_collect2=yes
4684 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
4685 tm_file=mips/dec-osf1.h
4686 if test x$stabs = xyes; then
4687 tm_file="${tm_file} dbx.h"
4689 xmake_file=mips/x-dec-osf1
4690 if test x$gas = xyes
4691 then
4692 tmake_file=mips/t-mips-gas
4693 else
4694 tmake_file=mips/t-ultrix
4695 extra_passes="mips-tfile mips-tdump"
4697 if test x$gnu_ld != xyes
4698 then
4699 use_collect2=yes
4702 mips-dec-bsd*) # Decstation running 4.4 BSD
4703 tm_file=mips/dec-bsd.h
4704 if test x$gas = xyes
4705 then
4706 tmake_file=mips/t-mips-gas
4707 else
4708 tmake_file=mips/t-ultrix
4709 extra_passes="mips-tfile mips-tdump"
4711 if test x$gnu_ld != xyes
4712 then
4713 use_collect2=yes
4716 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
4717 tm_file=mips/netbsd.h
4718 # On NetBSD, the headers are already okay, except for math.h.
4719 tmake_file=t-netbsd
4721 mips*-*-linux*) # Linux MIPS, either endian.
4722 xmake_file=x-linux
4723 xm_file="xm-siglist.h ${xm_file}"
4724 case $machine in
4725 mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;;
4726 *) tm_file="mips/elf.h mips/linux.h" ;;
4727 esac
4728 extra_parts="crtbegin.o crtend.o"
4729 gnu_ld=yes
4730 gas=yes
4732 mips*el-*-openbsd*) # mips little endian
4733 target_cpu_default="MASK_GAS|MASK_ABICALLS"
4734 tm_file=mips/openbsd.h
4736 mips*-*-openbsd*) # mips big endian
4737 target_cpu_default="MASK_GAS|MASK_ABICALLS"
4738 tm_file=mips/openbsd-be.h
4740 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
4741 tm_file="mips/news4.h ${tm_file}"
4742 if test x$stabs = xyes; then
4743 tm_file="${tm_file} dbx.h"
4745 if test x$gas = xyes
4746 then
4747 tmake_file=mips/t-mips-gas
4748 else
4749 extra_passes="mips-tfile mips-tdump"
4751 if test x$gnu_ld != xyes
4752 then
4753 use_collect2=yes
4755 xmake_file=mips/x-sony
4757 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
4758 # That is based on svr4.
4759 # t-svr4 is not right because this system doesn't use ELF.
4760 tm_file="mips/news5.h ${tm_file}"
4761 if test x$stabs = xyes; then
4762 tm_file="${tm_file} dbx.h"
4764 xm_file="xm-siglist.h ${xm_file}"
4765 xm_defines=USG
4766 if test x$gas = xyes
4767 then
4768 tmake_file=mips/t-mips-gas
4769 else
4770 extra_passes="mips-tfile mips-tdump"
4772 if test x$gnu_ld != xyes
4773 then
4774 use_collect2=yes
4777 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
4778 tm_file="mips/svr4-5.h mips/svr4-t.h"
4779 if test x$stabs = xyes; then
4780 tm_file="${tm_file} dbx.h"
4782 xm_file="xm-siglist.h ${xm_file}"
4783 xm_defines=USG
4784 xmake_file=mips/x-sysv
4785 if test x$gas = xyes
4786 then
4787 tmake_file=mips/t-mips-gas
4788 extra_parts="crtbegin.o crtend.o"
4789 else
4790 tmake_file=mips/t-mips
4791 extra_passes="mips-tfile mips-tdump"
4793 if test x$gnu_ld != xyes
4794 then
4795 use_collect2=yes
4798 mips-*-ultrix* | mips-dec-mach3) # Decstation.
4799 tm_file="mips/ultrix.h ${tm_file}"
4800 if test x$stabs = xyes; then
4801 tm_file="${tm_file} dbx.h"
4803 xmake_file=mips/x-ultrix
4804 if test x$gas = xyes
4805 then
4806 tmake_file=mips/t-mips-gas
4807 else
4808 tmake_file=mips/t-ultrix
4809 extra_passes="mips-tfile mips-tdump"
4811 if test x$gnu_ld != xyes
4812 then
4813 use_collect2=yes
4816 mips-*-riscos[56789]bsd*)
4817 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
4818 if test x$stabs = xyes; then
4819 tm_file="${tm_file} dbx.h"
4821 if test x$gas = xyes
4822 then
4823 tmake_file=mips/t-bsd-gas
4824 else
4825 tmake_file=mips/t-bsd
4826 extra_passes="mips-tfile mips-tdump"
4828 if test x$gnu_ld != xyes
4829 then
4830 use_collect2=yes
4833 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
4834 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
4835 if test x$stabs = xyes; then
4836 tm_file="${tm_file} dbx.h"
4838 if test x$gas = xyes
4839 then
4840 tmake_file=mips/t-bsd-gas
4841 else
4842 tmake_file=mips/t-bsd
4843 extra_passes="mips-tfile mips-tdump"
4845 if test x$gnu_ld != xyes
4846 then
4847 use_collect2=yes
4850 mips-*-riscos[56789]sysv4*)
4851 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
4852 if test x$stabs = xyes; then
4853 tm_file="${tm_file} dbx.h"
4855 xm_file="xm-siglist.h ${xm_file}"
4856 xmake_file=mips/x-sysv
4857 if test x$gas = xyes
4858 then
4859 tmake_file=mips/t-svr4-gas
4860 else
4861 tmake_file=mips/t-svr4
4862 extra_passes="mips-tfile mips-tdump"
4864 if test x$gnu_ld != xyes
4865 then
4866 use_collect2=yes
4869 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
4870 tm_file="mips/svr4-4.h ${tm_file}"
4871 if test x$stabs = xyes; then
4872 tm_file="${tm_file} dbx.h"
4874 xm_defines=USG
4875 xmake_file=mips/x-sysv
4876 if test x$gas = xyes
4877 then
4878 tmake_file=mips/t-svr4-gas
4879 else
4880 tmake_file=mips/t-svr4
4881 extra_passes="mips-tfile mips-tdump"
4883 if test x$gnu_ld != xyes
4884 then
4885 use_collect2=yes
4888 mips-*-riscos[56789]sysv*)
4889 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
4890 if test x$stabs = xyes; then
4891 tm_file="${tm_file} dbx.h"
4893 xm_defines=USG
4894 xmake_file=mips/x-sysv
4895 if test x$gas = xyes
4896 then
4897 tmake_file=mips/t-svr3-gas
4898 else
4899 tmake_file=mips/t-svr3
4900 extra_passes="mips-tfile mips-tdump"
4902 if test x$gnu_ld != xyes
4903 then
4904 use_collect2=yes
4907 mips-*-sysv* | mips-*-riscos*sysv*)
4908 tm_file="mips/svr3-4.h ${tm_file}"
4909 if test x$stabs = xyes; then
4910 tm_file="${tm_file} dbx.h"
4912 xm_defines=USG
4913 xmake_file=mips/x-sysv
4914 if test x$gas = xyes
4915 then
4916 tmake_file=mips/t-svr3-gas
4917 else
4918 tmake_file=mips/t-svr3
4919 extra_passes="mips-tfile mips-tdump"
4921 if test x$gnu_ld != xyes
4922 then
4923 use_collect2=yes
4926 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
4927 tm_file=mips/mips-5.h
4928 if test x$stabs = xyes; then
4929 tm_file="${tm_file} dbx.h"
4931 if test x$gas = xyes
4932 then
4933 tmake_file=mips/t-mips-gas
4934 else
4935 extra_passes="mips-tfile mips-tdump"
4937 if test x$gnu_ld != xyes
4938 then
4939 use_collect2=yes
4942 mips-*-gnu*)
4944 mipsel-*-ecoff*)
4945 tm_file=mips/ecoffl.h
4946 if test x$stabs = xyes; then
4947 tm_file="${tm_file} dbx.h"
4949 tmake_file=mips/t-ecoff
4951 mips-*-ecoff*)
4952 tm_file="gofast.h mips/ecoff.h"
4953 if test x$stabs = xyes; then
4954 tm_file="${tm_file} dbx.h"
4956 tmake_file=mips/t-ecoff
4958 mipsel-*-elf*)
4959 tm_file="mips/elfl.h libgloss.h"
4960 tmake_file=mips/t-elf
4962 mips-*-elf*)
4963 tm_file="mips/elf.h"
4964 tmake_file=mips/t-elf
4966 mips64el-*-elf*)
4967 tm_file="mips/elfl64.h"
4968 tmake_file=mips/t-elf
4970 mips64orionel-*-elf*)
4971 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
4972 tmake_file=mips/t-elf
4974 mips64-*-elf*)
4975 tm_file="mips/elf64.h"
4976 tmake_file=mips/t-elf
4978 mips64orion-*-elf*)
4979 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
4980 tmake_file=mips/t-elf
4982 mips64orion-*-rtems*)
4983 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
4984 tmake_file="mips/t-ecoff t-rtems"
4986 mipstx39el-*-elf*)
4987 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
4988 tmake_file=mips/t-r3900
4990 mipstx39-*-elf*)
4991 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
4992 tmake_file=mips/t-r3900
4994 mips-*-*) # Default MIPS RISC-OS 4.0.
4995 if test x$stabs = xyes; then
4996 tm_file="${tm_file} dbx.h"
4998 if test x$gas = xyes
4999 then
5000 tmake_file=mips/t-mips-gas
5001 else
5002 extra_passes="mips-tfile mips-tdump"
5004 if test x$gnu_ld != xyes
5005 then
5006 use_collect2=yes
5009 mn10200-*-*)
5010 cpu_type=mn10200
5011 tm_file="mn10200/mn10200.h"
5012 if test x$stabs = xyes
5013 then
5014 tm_file="${tm_file} dbx.h"
5016 use_collect2=no
5018 mn10300-*-*)
5019 cpu_type=mn10300
5020 tm_file="mn10300/mn10300.h"
5021 if test x$stabs = xyes
5022 then
5023 tm_file="${tm_file} dbx.h"
5025 use_collect2=no
5027 ns32k-encore-bsd*)
5028 tm_file=ns32k/encore.h
5029 use_collect2=yes
5031 ns32k-sequent-bsd*)
5032 tm_file=ns32k/sequent.h
5033 use_collect2=yes
5035 ns32k-tek6100-bsd*)
5036 tm_file=ns32k/tek6100.h
5037 use_collect2=yes
5039 ns32k-tek6200-bsd*)
5040 tm_file=ns32k/tek6200.h
5041 use_collect2=yes
5043 # This has not been updated to GCC 2.
5044 # ns32k-ns-genix*)
5045 # xm_defines=USG
5046 # xmake_file=ns32k/x-genix
5047 # tm_file=ns32k/genix.h
5048 # use_collect2=yes
5049 # ;;
5050 ns32k-merlin-*)
5051 tm_file=ns32k/merlin.h
5052 use_collect2=yes
5054 ns32k-pc532-mach*)
5055 tm_file=ns32k/pc532-mach.h
5056 use_collect2=yes
5058 ns32k-pc532-minix*)
5059 tm_file=ns32k/pc532-min.h
5060 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
5061 xm_defines=USG
5062 use_collect2=yes
5064 ns32k-*-netbsd*)
5065 tm_file=ns32k/netbsd.h
5066 xm_file="ns32k/xm-netbsd.h ${xm_file}"
5067 # On NetBSD, the headers are already okay, except for math.h.
5068 tmake_file=t-netbsd
5069 use_collect2=yes
5071 pdp11-*-bsd)
5072 tm_file="${tm_file} pdp11/2bsd.h"
5074 pdp11-*-*)
5076 ns32k-*-openbsd*)
5077 # Nothing special
5079 pyramid-*-*)
5080 cpu_type=pyr
5081 xmake_file=pyr/x-pyr
5082 use_collect2=yes
5084 romp-*-aos*)
5085 use_collect2=yes
5087 romp-*-mach*)
5088 xmake_file=romp/x-mach
5089 use_collect2=yes
5091 romp-*-openbsd*)
5092 # Nothing special
5094 powerpc-*-openbsd*)
5095 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
5097 powerpc-*-beos*)
5098 cpu_type=rs6000
5099 tm_file=rs6000/beos.h
5100 xm_file=rs6000/xm-beos.h
5101 tmake_file=rs6000/t-beos
5102 xmake_file=rs6000/x-beos
5104 powerpc-*-sysv* | powerpc-*-elf*)
5105 tm_file=rs6000/sysv4.h
5106 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5107 xm_defines="USG POSIX"
5108 extra_headers=ppc-asm.h
5109 if test x$gas = xyes
5110 then
5111 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5112 else
5113 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5115 xmake_file=rs6000/x-sysv4
5117 powerpc-*-eabiaix*)
5118 tm_file=rs6000/eabiaix.h
5119 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5120 extra_headers=ppc-asm.h
5122 powerpc-*-eabisim*)
5123 tm_file=rs6000/eabisim.h
5124 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5125 extra_headers=ppc-asm.h
5127 powerpc-*-eabi*)
5128 tm_file=rs6000/eabi.h
5129 if test x$gas = xyes
5130 then
5131 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5132 else
5133 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5135 extra_headers=ppc-asm.h
5137 powerpc-*-rtems*)
5138 tm_file=rs6000/rtems.h
5139 if test x$gas = xyes
5140 then
5141 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
5142 else
5143 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
5145 extra_headers=ppc-asm.h
5147 powerpc-*-linux-gnulibc1)
5148 tm_file=rs6000/linux.h
5149 xm_file=rs6000/xm-sysv4.h
5150 out_file=rs6000/rs6000.c
5151 if test x$gas = xyes
5152 then
5153 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5154 else
5155 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5157 xmake_file=x-linux
5158 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5159 extra_headers=ppc-asm.h
5160 if test x$enable_threads = xyes; then
5161 thread_file='posix'
5164 powerpc-*-linux-gnu*)
5165 tm_file=rs6000/linux.h
5166 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5167 xm_defines="USG ${xm_defines}"
5168 out_file=rs6000/rs6000.c
5169 if test x$gas = xyes
5170 then
5171 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
5172 else
5173 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
5175 xmake_file=x-linux
5176 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5177 extra_headers=ppc-asm.h
5178 if test x$enable_threads = xyes; then
5179 thread_file='posix'
5182 powerpc-wrs-vxworks*)
5183 cpu_type=rs6000
5184 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5185 xm_defines="USG POSIX"
5186 tm_file=rs6000/vxppc.h
5187 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5188 extra_headers=ppc-asm.h
5189 thread_file='vxworks'
5191 powerpcle-*-sysv* | powerpcle-*-elf*)
5192 tm_file=rs6000/sysv4le.h
5193 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5194 xm_defines="USG POSIX"
5195 if test x$gas = xyes
5196 then
5197 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5198 else
5199 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5201 xmake_file=rs6000/x-sysv4
5202 extra_headers=ppc-asm.h
5204 powerpcle-*-eabisim*)
5205 tm_file=rs6000/eabilesim.h
5206 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5207 extra_headers=ppc-asm.h
5209 powerpcle-*-eabi*)
5210 tm_file=rs6000/eabile.h
5211 if test x$gas = xyes
5212 then
5213 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5214 else
5215 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5217 extra_headers=ppc-asm.h
5219 powerpcle-*-winnt* )
5220 tm_file=rs6000/win-nt.h
5221 tmake_file=rs6000/t-winnt
5222 # extra_objs=pe.o
5223 if test x$enable_threads = xyes; then
5224 thread_file='win32'
5226 extra_headers=ppc-asm.h
5228 powerpcle-*-pe | powerpcle-*-cygwin*)
5229 tm_file=rs6000/cygwin.h
5230 xm_file="rs6000/xm-cygwin.h ${xm_file}"
5231 tmake_file=rs6000/t-winnt
5232 xmake_file=rs6000/x-cygwin
5233 # extra_objs=pe.o
5234 if test x$enable_threads = xyes; then
5235 thread_file='win32'
5237 exeext=.exe
5238 extra_headers=ppc-asm.h
5240 powerpcle-*-solaris2*)
5241 tm_file=rs6000/sol2.h
5242 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5243 xm_defines="USG POSIX"
5244 if test x$gas = xyes
5245 then
5246 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5247 else
5248 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5250 xmake_file=rs6000/x-sysv4
5251 extra_headers=ppc-asm.h
5253 rs6000-ibm-aix3.[01]*)
5254 tm_file=rs6000/aix31.h
5255 xmake_file=rs6000/x-aix31
5256 float_format=none
5257 use_collect2=yes
5259 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
5260 tm_file=rs6000/aix3newas.h
5261 if test x$host != x$target
5262 then
5263 tmake_file=rs6000/t-xnewas
5264 else
5265 tmake_file=rs6000/t-newas
5267 float_format=none
5268 use_collect2=yes
5270 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
5271 tm_file=rs6000/aix41.h
5272 if test x$host != x$target
5273 then
5274 tmake_file=rs6000/t-xnewas
5275 else
5276 tmake_file=rs6000/t-newas
5278 if test "$gnu_ld" = yes
5279 then
5280 xmake_file=rs6000/x-aix41-gld
5281 else
5282 xmake_file=rs6000/x-aix41
5284 float_format=none
5285 use_collect2=yes
5287 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
5288 tm_file=rs6000/aix43.h
5289 if test x$host != x$target
5290 then
5291 tmake_file=rs6000/t-xaix43
5292 else
5293 tmake_file=rs6000/t-aix43
5295 xmake_file=rs6000/x-aix43
5296 float_format=none
5297 use_collect2=yes
5299 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
5300 tm_file=rs6000/aix43.h
5301 if test x$host != x$target
5302 then
5303 tmake_file=rs6000/t-xaix43
5304 else
5305 tmake_file=rs6000/t-aix43
5307 xmake_file=rs6000/x-aix43
5308 float_format=none
5309 use_collect2=yes
5311 rs6000-ibm-aix*)
5312 float_format=none
5313 use_collect2=yes
5315 rs6000-bull-bosx)
5316 float_format=none
5317 use_collect2=yes
5319 rs6000-*-mach*)
5320 tm_file=rs6000/mach.h
5321 xm_file="${xm_file} rs6000/xm-mach.h"
5322 xmake_file=rs6000/x-mach
5323 use_collect2=yes
5325 rs6000-*-lynxos*)
5326 tm_file=rs6000/lynx.h
5327 xm_file=rs6000/xm-lynx.h
5328 tmake_file=rs6000/t-rs6000
5329 xmake_file=rs6000/x-lynx
5330 use_collect2=yes
5332 sh-*-elf*)
5333 tm_file=sh/elf.h
5334 float_format=sh
5336 sh-*-rtemself*)
5337 tmake_file="sh/t-sh t-rtems"
5338 tm_file=sh/rtemself.h
5339 float_format=sh
5341 sh-*-rtems*)
5342 tmake_file="sh/t-sh t-rtems"
5343 tm_file=sh/rtems.h
5344 float_format=sh
5346 sh-*-*)
5347 float_format=sh
5349 sparc-tti-*)
5350 tm_file=sparc/pbd.h
5351 xm_file="xm-alloca.h ${xm_file}"
5352 xm_defines=USG
5354 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
5355 tm_file=sparc/vxsparc.h
5356 tmake_file=sparc/t-vxsparc
5357 use_collect2=yes
5358 thread_file='vxworks'
5360 sparc-*-aout*)
5361 tmake_file=sparc/t-sparcbare
5362 tm_file="sparc/aout.h libgloss.h"
5364 sparc-*-netbsd*)
5365 tm_file=sparc/netbsd.h
5366 tmake_file=t-netbsd
5367 use_collect2=yes
5369 sparc-*-openbsd*)
5370 # we need collect2 until our bug is fixed...
5371 use_collect2=yes
5373 sparc-*-bsd*)
5374 tm_file=sparc/bsd.h
5376 sparc-*-elf*)
5377 tm_file=sparc/elf.h
5378 tmake_file=sparc/t-elf
5379 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
5380 #float_format=i128
5381 float_format=i64
5383 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
5384 xm_file="${xm_file} sparc/xm-linux.h"
5385 tm_file=sparc/linux-aout.h
5386 xmake_file=x-linux
5387 gnu_ld=yes
5389 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
5390 xm_file="${xm_file} sparc/xm-linux.h"
5391 xmake_file=x-linux
5392 tm_file=sparc/linux.h
5393 tmake_file="t-linux t-linux-gnulibc1"
5394 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5395 gnu_ld=yes
5397 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
5398 xm_file="${xm_file} sparc/xm-linux.h"
5399 xmake_file=x-linux
5400 tm_file=sparc/linux.h
5401 tmake_file="t-linux"
5402 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5403 gnu_ld=yes
5404 if test x$enable_threads = xyes; then
5405 thread_file='posix'
5408 sparc-*-lynxos*)
5409 if test x$gas = xyes
5410 then
5411 tm_file=sparc/lynx.h
5412 else
5413 tm_file=sparc/lynx-ng.h
5415 xm_file=sparc/xm-lynx.h
5416 tmake_file=sparc/t-sunos41
5417 xmake_file=x-lynx
5419 sparc-*-rtems*)
5420 tmake_file="sparc/t-sparcbare t-rtems"
5421 tm_file=sparc/rtems.h
5423 sparcv9-*-solaris2*)
5424 tm_file=sparc/sol2-sld-64.h
5425 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
5426 xm_defines="USG POSIX"
5427 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
5428 xmake_file=sparc/x-sysv4
5429 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
5430 float_format=none
5431 if test x${enable_threads} = x ; then
5432 enable_threads=$have_pthread_h
5433 if test x${enable_threads} = x ; then
5434 enable_threads=$have_thread_h
5437 if test x${enable_threads} = xyes ; then
5438 if test x${have_pthread_h} = xyes ; then
5439 thread_file='posix'
5440 else
5441 thread_file='solaris'
5445 sparc-hal-solaris2*)
5446 xm_file=sparc/xm-sol2.h
5447 tm_file="sparc/sol2.h sparc/hal.h"
5448 tmake_file="sparc/t-halos sparc/t-sol2"
5449 xmake_file=sparc/x-sysv4
5450 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
5451 broken_install=yes
5453 sparc-*-solaris2*)
5454 if test x$gnu_ld = xyes
5455 then
5456 tm_file=sparc/sol2.h
5457 else
5458 tm_file=sparc/sol2-sld.h
5460 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
5461 xm_defines="USG POSIX"
5462 tmake_file=sparc/t-sol2
5463 xmake_file=sparc/x-sysv4
5464 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
5465 case $machine in
5466 *-*-solaris2.[0-4])
5467 float_format=i128
5470 float_format=none
5472 esac
5473 if test x${enable_threads} = x; then
5474 enable_threads=$have_pthread_h
5475 if test x${enable_threads} = x; then
5476 enable_threads=$have_thread_h
5479 if test x${enable_threads} = xyes; then
5480 if test x${have_pthread_h} = xyes; then
5481 thread_file='posix'
5482 else
5483 thread_file='solaris'
5487 sparc-*-sunos4.0*)
5488 tm_file=sparc/sunos4.h
5489 tmake_file=sparc/t-sunos40
5490 use_collect2=yes
5492 sparc-*-sunos4*)
5493 tm_file=sparc/sunos4.h
5494 tmake_file=sparc/t-sunos41
5495 use_collect2=yes
5496 if test x$gas = xyes; then
5497 tm_file="${tm_file} sparc/sun4gas.h"
5500 sparc-*-sunos3*)
5501 tm_file=sparc/sun4o3.h
5502 use_collect2=yes
5504 sparc-*-sysv4*)
5505 tm_file=sparc/sysv4.h
5506 xm_file="xm-siglist.h sparc/xm-sysv4.h"
5507 xm_defines="USG POSIX"
5508 tmake_file=t-svr4
5509 xmake_file=sparc/x-sysv4
5510 extra_parts="crtbegin.o crtend.o"
5512 sparc-*-vxsim*)
5513 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
5514 xm_defines="USG POSIX"
5515 tm_file=sparc/vxsim.h
5516 tmake_file=sparc/t-vxsparc
5517 xmake_file=sparc/x-sysv4
5519 sparclet-*-aout*)
5520 tm_file="sparc/splet.h libgloss.h"
5521 tmake_file=sparc/t-splet
5523 sparclite-*-coff*)
5524 tm_file="sparc/litecoff.h libgloss.h"
5525 tmake_file=sparc/t-sparclite
5527 sparclite-*-aout*)
5528 tm_file="sparc/lite.h aoutos.h libgloss.h"
5529 tmake_file=sparc/t-sparclite
5531 sparc64-*-aout*)
5532 tmake_file=sparc/t-sp64
5533 tm_file=sparc/sp64-aout.h
5535 sparc64-*-elf*)
5536 tmake_file=sparc/t-sp64
5537 tm_file=sparc/sp64-elf.h
5538 extra_parts="crtbegin.o crtend.o"
5540 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
5541 tmake_file="t-linux sparc/t-linux64"
5542 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
5543 tm_file=sparc/linux64.h
5544 xmake_file=x-linux
5545 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5546 gnu_ld=yes
5548 # This hasn't been upgraded to GCC 2.
5549 # tahoe-harris-*) # Harris tahoe, using COFF.
5550 # tm_file=tahoe/harris.h
5551 # ;;
5552 # tahoe-*-bsd*) # tahoe running BSD
5553 # ;;
5554 thumb-*-coff* | thumbel-*-coff*)
5555 tm_file=arm/tcoff.h
5556 out_file=arm/thumb.c
5557 xm_file=arm/xm-thumb.h
5558 md_file=arm/thumb.md
5559 tmake_file=arm/t-thumb
5561 thumb-*-elf* | thumbel-*-elf*)
5562 tm_file=arm/telf.h
5563 out_file=arm/thumb.c
5564 xm_file=arm/xm-thumb.h
5565 md_file=arm/thumb.md
5566 tmake_file=arm/t-thumb-elf
5568 thumb-wrs-vxworks)
5569 tm_file=arm/tcoff.h
5570 out_file=arm/thumb.c
5571 xm_file=arm/xm-thumb.h
5572 md_file=arm/thumb.md
5573 tmake_file=arm/t-thumb
5574 thread_file='vxworks'
5576 # This hasn't been upgraded to GCC 2.
5577 # tron-*-*)
5578 # cpu_type=gmicro
5579 # use_collect2=yes
5580 # ;;
5581 v850-*-*)
5582 cpu_type=v850
5583 tm_file="v850/v850.h"
5584 xm_file="v850/xm-v850.h"
5585 tmake_file=v850/t-v850
5586 if test x$stabs = xyes
5587 then
5588 tm_file="${tm_file} dbx.h"
5590 use_collect2=no
5592 vax-*-bsd*) # vaxen running BSD
5593 use_collect2=yes
5594 float_format=vax
5596 vax-*-sysv*) # vaxen running system V
5597 tm_file="${tm_file} vax/vaxv.h"
5598 xm_defines=USG
5599 float_format=vax
5601 vax-*-netbsd*)
5602 tm_file="${tm_file} netbsd.h vax/netbsd.h"
5603 tmake_file=t-netbsd
5604 float_format=vax
5605 use_collect2=yes
5607 vax-*-openbsd*)
5608 tmake_file="${tmake_file} vax/t-openbsd"
5610 vax-*-ultrix*) # vaxen running ultrix
5611 tm_file="${tm_file} vax/ultrix.h"
5612 use_collect2=yes
5613 float_format=vax
5615 vax-*-vms*) # vaxen running VMS
5616 xm_file=vax/xm-vms.h
5617 tm_file=vax/vms.h
5618 float_format=vax
5620 vax-*-*) # vax default entry
5621 float_format=vax
5623 we32k-att-sysv*)
5624 xm_file="${xm_file} xm-svr3"
5625 use_collect2=yes
5628 echo "Configuration $machine not supported" 1>&2
5629 exit 1
5631 esac
5633 case $machine in
5634 *-*-linux-gnu*)
5635 ;; # Existing GNU/Linux systems do not use the GNU setup.
5636 *-*-gnu*)
5637 # On the GNU system, the setup is just about the same on
5638 # each different CPU. The specific machines that GNU
5639 # supports are matched above and just set $cpu_type.
5640 xm_file="xm-gnu.h ${xm_file}"
5641 tm_file=${cpu_type}/gnu.h
5642 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
5643 # GNU always uses ELF.
5644 elf=yes
5645 # GNU tools are the only tools.
5646 gnu_ld=yes
5647 gas=yes
5648 xmake_file=x-linux # These details are the same as Linux.
5649 tmake_file=t-gnu # These are not.
5651 *-*-sysv4*)
5652 xmake_try_sysv=x-sysv
5653 install_headers_dir=install-headers-cpio
5655 *-*-sysv*)
5656 install_headers_dir=install-headers-cpio
5658 esac
5660 # Distinguish i[34567]86
5661 # Also, do not run mips-tfile on MIPS if using gas.
5662 # Process --with-cpu= for PowerPC/rs6000
5663 target_cpu_default2=
5664 case $machine in
5665 i486-*-*)
5666 target_cpu_default2=1
5668 i586-*-*)
5669 case $target_alias in
5670 k6-*)
5671 target_cpu_default2=4
5674 target_cpu_default2=2
5676 esac
5678 i686-*-* | i786-*-*)
5679 target_cpu_default2=3
5681 alpha*-*-*)
5682 case $machine in
5683 alphaev6*)
5684 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
5686 alphapca56*)
5687 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
5689 alphaev56*)
5690 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
5692 alphaev5*)
5693 target_cpu_default2="MASK_CPU_EV5"
5695 esac
5697 if test x$gas = xyes
5698 then
5699 if test "$target_cpu_default2" = ""
5700 then
5701 target_cpu_default2="MASK_GAS"
5702 else
5703 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
5707 arm*-*-*)
5708 case "x$with_cpu" in
5710 # The most generic
5711 target_cpu_default2="TARGET_CPU_generic"
5714 # Distinguish cores, and major variants
5715 # arm7m doesn't exist, but D & I don't affect code
5716 xarm23678 | xarm250 | xarm67010 \
5717 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
5718 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
5719 | xstrongarm | xstrongarm110 | xstrongarm1100)
5720 target_cpu_default2="TARGET_CPU_$with_cpu"
5723 xyes | xno)
5724 echo "--with-cpu must be passed a value" 1>&2
5725 exit 1
5729 if test x$pass2done = xyes
5730 then
5731 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5732 exit 1
5735 esac
5738 mips*-*-ecoff* | mips*-*-elf*)
5739 if test x$gas = xyes
5740 then
5741 if test x$gnu_ld = xyes
5742 then
5743 target_cpu_default2=20
5744 else
5745 target_cpu_default2=16
5749 mips*-*-*)
5750 if test x$gas = xyes
5751 then
5752 target_cpu_default2=16
5755 powerpc*-*-* | rs6000-*-*)
5756 case "x$with_cpu" in
5760 xcommon | xpower | xpower2 | xpowerpc | xrios \
5761 | xrios1 | xrios2 | xrsc | xrsc1 \
5762 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
5763 | xec603e | x740 | x750 | x401 \
5764 | x403 | x505 | x801 | x821 | x823 | x860)
5765 target_cpu_default2="\"$with_cpu\""
5768 xyes | xno)
5769 echo "--with-cpu must be passed a value" 1>&2
5770 exit 1
5774 if test x$pass2done = xyes
5775 then
5776 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5777 exit 1
5780 esac
5782 sparc*-*-*)
5783 case ".$with_cpu" in
5785 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
5787 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
5788 target_cpu_default2="TARGET_CPU_$with_cpu"
5791 if test x$pass2done = xyes
5792 then
5793 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5794 exit 1
5797 esac
5799 esac
5801 if test "$target_cpu_default2" != ""
5802 then
5803 if test "$target_cpu_default" != ""
5804 then
5805 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
5806 else
5807 target_cpu_default=$target_cpu_default2
5811 # No need for collect2 if we have the GNU linker.
5812 # Actually, there is now; GNU ld doesn't handle the EH info or
5813 # collecting for shared libraries.
5814 #case x$gnu_ld in
5815 #xyes)
5816 # use_collect2=
5817 # ;;
5818 #esac
5820 # Save data on machine being used to compile GCC in build_xm_file.
5821 # Save data on host machine in vars host_xm_file and host_xmake_file.
5822 if test x$pass1done = x
5823 then
5824 if test x"$xm_file" = x
5825 then build_xm_file=$cpu_type/xm-$cpu_type.h
5826 else build_xm_file=$xm_file
5828 build_xm_defines=$xm_defines
5829 build_install_headers_dir=$install_headers_dir
5830 build_exeext=$exeext
5831 pass1done=yes
5832 else
5833 if test x$pass2done = x
5834 then
5835 if test x"$xm_file" = x
5836 then host_xm_file=$cpu_type/xm-$cpu_type.h
5837 else host_xm_file=$xm_file
5839 host_xm_defines=$xm_defines
5840 if test x"$xmake_file" = x
5841 then xmake_file=$cpu_type/x-$cpu_type
5843 host_xmake_file="$xmake_file"
5844 host_truncate_target=$truncate_target
5845 host_extra_gcc_objs=$extra_gcc_objs
5846 host_extra_objs=$extra_host_objs
5847 host_exeext=$exeext
5848 pass2done=yes
5851 done
5853 extra_objs="${host_extra_objs} ${extra_objs}"
5855 # Default the target-machine variables that were not explicitly set.
5856 if test x"$tm_file" = x
5857 then tm_file=$cpu_type/$cpu_type.h; fi
5859 if test x$extra_headers = x
5860 then extra_headers=; fi
5862 if test x"$xm_file" = x
5863 then xm_file=$cpu_type/xm-$cpu_type.h; fi
5865 if test x$md_file = x
5866 then md_file=$cpu_type/$cpu_type.md; fi
5868 if test x$out_file = x
5869 then out_file=$cpu_type/$cpu_type.c; fi
5871 if test x"$tmake_file" = x
5872 then tmake_file=$cpu_type/t-$cpu_type
5875 if test x"$dwarf2" = xyes
5876 then tm_file="tm-dwarf2.h $tm_file"
5879 if test x$float_format = x
5880 then float_format=i64
5883 if test $float_format = none
5884 then float_h_file=Makefile.in
5885 else float_h_file=float-$float_format.h
5888 if test x$enable_haifa = x
5889 then
5890 case $target in
5891 alpha*-* | hppa*-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
5892 enable_haifa=yes;;
5893 esac
5896 # Handle cpp installation.
5897 if test x$enable_cpp != xno
5898 then
5899 tmake_file="$tmake_file t-install-cpp"
5902 # Say what files are being used for the output code and MD file.
5903 echo "Using \`$srcdir/config/$out_file' to output insns."
5904 echo "Using \`$srcdir/config/$md_file' as machine description file."
5906 count=a
5907 for f in $tm_file; do
5908 count=${count}x
5909 done
5910 if test $count = ax; then
5911 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
5912 else
5913 echo "Using the following target machine macro files:"
5914 for f in $tm_file; do
5915 echo " $srcdir/config/$f"
5916 done
5919 count=a
5920 for f in $host_xm_file; do
5921 count=${count}x
5922 done
5923 if test $count = ax; then
5924 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
5925 else
5926 echo "Using the following host machine macro files:"
5927 for f in $host_xm_file; do
5928 echo " $srcdir/config/$f"
5929 done
5932 if test "$host_xm_file" != "$build_xm_file"; then
5933 count=a
5934 for f in $build_xm_file; do
5935 count=${count}x
5936 done
5937 if test $count = ax; then
5938 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
5939 else
5940 echo "Using the following build machine macro files:"
5941 for f in $build_xm_file; do
5942 echo " $srcdir/config/$f"
5943 done
5947 if test x$thread_file = x; then
5948 if test x$target_thread_file != x; then
5949 thread_file=$target_thread_file
5950 else
5951 thread_file='single'
5955 # Set up the header files.
5956 # $links is the list of header files to create.
5957 # $vars is the list of shell variables with file names to include.
5958 # auto-host.h is the file containing items generated by autoconf and is
5959 # the first file included by config.h.
5960 null_defines=
5961 host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
5963 # If host=build, it is correct to have hconfig include auto-host.h
5964 # as well. If host!=build, we are in error and need to do more
5965 # work to find out the build config parameters.
5966 if test x$host = x$build
5967 then
5968 build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
5969 else
5970 # We create a subdir, then run autoconf in the subdir.
5971 # To prevent recursion we set host and build for the new
5972 # invocation of configure to the build for this invocation
5973 # of configure.
5974 tempdir=build.$$
5975 rm -rf $tempdir
5976 mkdir $tempdir
5977 cd $tempdir
5978 case ${srcdir} in
5979 /*) realsrcdir=${srcdir};;
5980 *) realsrcdir=../${srcdir};;
5981 esac
5982 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
5983 --target=$target --host=$build --build=$build
5985 # We just finished tests for the build machine, so rename
5986 # the file auto-build.h in the gcc directory.
5987 mv auto-host.h ../auto-build.h
5988 cd ..
5989 rm -rf $tempdir
5990 build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
5993 xm_file="gansidecl.h ${xm_file}"
5994 tm_file="gansidecl.h ${tm_file}"
5996 vars="host_xm_file tm_file xm_file build_xm_file"
5997 links="config.h tm.h tconfig.h hconfig.h"
5998 defines="host_xm_defines null_defines xm_defines build_xm_defines"
6000 rm -f config.bak
6001 if test -f config.status; then mv -f config.status config.bak; fi
6003 # Make the links.
6004 while test -n "$vars"
6006 set $vars; var=$1; shift; vars=$*
6007 set $links; link=$1; shift; links=$*
6008 set $defines; define=$1; shift; defines=$*
6010 rm -f $link
6012 # Define TARGET_CPU_DEFAULT if the system wants one.
6013 # This substitutes for lots of *.h files.
6014 if test "$target_cpu_default" != "" -a $link = tm.h
6015 then
6016 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
6019 for file in `eval echo '$'$var`; do
6020 case $file in
6021 auto-config.h)
6024 echo '#ifdef IN_GCC' >>$link
6026 esac
6027 echo "#include \"$file\"" >>$link
6028 case $file in
6029 auto-config.h)
6032 echo '#endif' >>$link
6034 esac
6035 done
6037 for def in `eval echo '$'$define`; do
6038 echo "#ifndef $def" >>$link
6039 echo "#define $def" >>$link
6040 echo "#endif" >>$link
6041 done
6042 done
6044 # Truncate the target if necessary
6045 if test x$host_truncate_target != x; then
6046 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
6049 # Get the version trigger filename from the toplevel
6050 if test "${with_gcc_version_trigger+set}" = set; then
6051 gcc_version_trigger=$with_gcc_version_trigger
6052 else
6053 gcc_version_trigger=${srcdir}/version.c
6055 gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
6057 # Internationalization
6058 PACKAGE=gcc
6059 VERSION="$gcc_version"
6060 cat >> confdefs.h <<EOF
6061 #define PACKAGE "$PACKAGE"
6064 cat >> confdefs.h <<EOF
6065 #define VERSION "$VERSION"
6071 ALL_LINGUAS="en_UK"
6073 # NLS support is still experimental, so disable it by default for now.
6074 # Check whether --enable-nls or --disable-nls was given.
6075 if test "${enable_nls+set}" = set; then
6076 enableval="$enable_nls"
6078 else
6079 enable_nls=no
6084 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
6085 echo "configure:6086: checking for strerror in -lcposix" >&5
6086 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
6087 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6088 echo $ac_n "(cached) $ac_c" 1>&6
6089 else
6090 ac_save_LIBS="$LIBS"
6091 LIBS="-lcposix $LIBS"
6092 cat > conftest.$ac_ext <<EOF
6093 #line 6094 "configure"
6094 #include "confdefs.h"
6095 /* Override any gcc2 internal prototype to avoid an error. */
6096 /* We use char because int might match the return type of a gcc2
6097 builtin and then its argument prototype would still apply. */
6098 char strerror();
6100 int main() {
6101 strerror()
6102 ; return 0; }
6104 if { (eval echo configure:6105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6105 rm -rf conftest*
6106 eval "ac_cv_lib_$ac_lib_var=yes"
6107 else
6108 echo "configure: failed program was:" >&5
6109 cat conftest.$ac_ext >&5
6110 rm -rf conftest*
6111 eval "ac_cv_lib_$ac_lib_var=no"
6113 rm -f conftest*
6114 LIBS="$ac_save_LIBS"
6117 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6118 echo "$ac_t""yes" 1>&6
6119 LIBS="$LIBS -lcposix"
6120 else
6121 echo "$ac_t""no" 1>&6
6126 echo $ac_n "checking for working const""... $ac_c" 1>&6
6127 echo "configure:6128: checking for working const" >&5
6128 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6129 echo $ac_n "(cached) $ac_c" 1>&6
6130 else
6131 cat > conftest.$ac_ext <<EOF
6132 #line 6133 "configure"
6133 #include "confdefs.h"
6135 int main() {
6137 /* Ultrix mips cc rejects this. */
6138 typedef int charset[2]; const charset x;
6139 /* SunOS 4.1.1 cc rejects this. */
6140 char const *const *ccp;
6141 char **p;
6142 /* NEC SVR4.0.2 mips cc rejects this. */
6143 struct point {int x, y;};
6144 static struct point const zero = {0,0};
6145 /* AIX XL C 1.02.0.0 rejects this.
6146 It does not let you subtract one const X* pointer from another in an arm
6147 of an if-expression whose if-part is not a constant expression */
6148 const char *g = "string";
6149 ccp = &g + (g ? g-g : 0);
6150 /* HPUX 7.0 cc rejects these. */
6151 ++ccp;
6152 p = (char**) ccp;
6153 ccp = (char const *const *) p;
6154 { /* SCO 3.2v4 cc rejects this. */
6155 char *t;
6156 char const *s = 0 ? (char *) 0 : (char const *) 0;
6158 *t++ = 0;
6160 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6161 int x[] = {25, 17};
6162 const int *foo = &x[0];
6163 ++foo;
6165 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6166 typedef const int *iptr;
6167 iptr p = 0;
6168 ++p;
6170 { /* AIX XL C 1.02.0.0 rejects this saying
6171 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6172 struct s { int j; const int *ap[3]; };
6173 struct s *b; b->j = 5;
6175 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6176 const int foo = 10;
6179 ; return 0; }
6181 if { (eval echo configure:6182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6182 rm -rf conftest*
6183 ac_cv_c_const=yes
6184 else
6185 echo "configure: failed program was:" >&5
6186 cat conftest.$ac_ext >&5
6187 rm -rf conftest*
6188 ac_cv_c_const=no
6190 rm -f conftest*
6193 echo "$ac_t""$ac_cv_c_const" 1>&6
6194 if test $ac_cv_c_const = no; then
6195 cat >> confdefs.h <<\EOF
6196 #define const
6201 echo $ac_n "checking for inline""... $ac_c" 1>&6
6202 echo "configure:6203: checking for inline" >&5
6203 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6204 echo $ac_n "(cached) $ac_c" 1>&6
6205 else
6206 ac_cv_c_inline=no
6207 for ac_kw in inline __inline__ __inline; do
6208 cat > conftest.$ac_ext <<EOF
6209 #line 6210 "configure"
6210 #include "confdefs.h"
6212 int main() {
6213 } $ac_kw foo() {
6214 ; return 0; }
6216 if { (eval echo configure:6217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6217 rm -rf conftest*
6218 ac_cv_c_inline=$ac_kw; break
6219 else
6220 echo "configure: failed program was:" >&5
6221 cat conftest.$ac_ext >&5
6223 rm -f conftest*
6224 done
6228 echo "$ac_t""$ac_cv_c_inline" 1>&6
6229 case "$ac_cv_c_inline" in
6230 inline | yes) ;;
6231 no) cat >> confdefs.h <<\EOF
6232 #define inline
6235 *) cat >> confdefs.h <<EOF
6236 #define inline $ac_cv_c_inline
6239 esac
6241 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6242 echo "configure:6243: checking for off_t" >&5
6243 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6244 echo $ac_n "(cached) $ac_c" 1>&6
6245 else
6246 cat > conftest.$ac_ext <<EOF
6247 #line 6248 "configure"
6248 #include "confdefs.h"
6249 #include <sys/types.h>
6250 #if STDC_HEADERS
6251 #include <stdlib.h>
6252 #include <stddef.h>
6253 #endif
6255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6256 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6257 rm -rf conftest*
6258 ac_cv_type_off_t=yes
6259 else
6260 rm -rf conftest*
6261 ac_cv_type_off_t=no
6263 rm -f conftest*
6266 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6267 if test $ac_cv_type_off_t = no; then
6268 cat >> confdefs.h <<\EOF
6269 #define off_t long
6274 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6275 echo "configure:6276: checking for size_t" >&5
6276 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6277 echo $ac_n "(cached) $ac_c" 1>&6
6278 else
6279 cat > conftest.$ac_ext <<EOF
6280 #line 6281 "configure"
6281 #include "confdefs.h"
6282 #include <sys/types.h>
6283 #if STDC_HEADERS
6284 #include <stdlib.h>
6285 #include <stddef.h>
6286 #endif
6288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6289 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6290 rm -rf conftest*
6291 ac_cv_type_size_t=yes
6292 else
6293 rm -rf conftest*
6294 ac_cv_type_size_t=no
6296 rm -f conftest*
6299 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6300 if test $ac_cv_type_size_t = no; then
6301 cat >> confdefs.h <<\EOF
6302 #define size_t unsigned
6307 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6308 # for constant arguments. Useless!
6309 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6310 echo "configure:6311: checking for working alloca.h" >&5
6311 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6312 echo $ac_n "(cached) $ac_c" 1>&6
6313 else
6314 cat > conftest.$ac_ext <<EOF
6315 #line 6316 "configure"
6316 #include "confdefs.h"
6317 #include <alloca.h>
6318 int main() {
6319 char *p = alloca(2 * sizeof(int));
6320 ; return 0; }
6322 if { (eval echo configure:6323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6323 rm -rf conftest*
6324 ac_cv_header_alloca_h=yes
6325 else
6326 echo "configure: failed program was:" >&5
6327 cat conftest.$ac_ext >&5
6328 rm -rf conftest*
6329 ac_cv_header_alloca_h=no
6331 rm -f conftest*
6334 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6335 if test $ac_cv_header_alloca_h = yes; then
6336 cat >> confdefs.h <<\EOF
6337 #define HAVE_ALLOCA_H 1
6342 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6343 echo "configure:6344: checking for alloca" >&5
6344 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6345 echo $ac_n "(cached) $ac_c" 1>&6
6346 else
6347 cat > conftest.$ac_ext <<EOF
6348 #line 6349 "configure"
6349 #include "confdefs.h"
6351 #ifdef __GNUC__
6352 # define alloca __builtin_alloca
6353 #else
6354 # ifdef _MSC_VER
6355 # include <malloc.h>
6356 # define alloca _alloca
6357 # else
6358 # if HAVE_ALLOCA_H
6359 # include <alloca.h>
6360 # else
6361 # ifdef _AIX
6362 #pragma alloca
6363 # else
6364 # ifndef alloca /* predefined by HP cc +Olibcalls */
6365 char *alloca ();
6366 # endif
6367 # endif
6368 # endif
6369 # endif
6370 #endif
6372 int main() {
6373 char *p = (char *) alloca(1);
6374 ; return 0; }
6376 if { (eval echo configure:6377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6377 rm -rf conftest*
6378 ac_cv_func_alloca_works=yes
6379 else
6380 echo "configure: failed program was:" >&5
6381 cat conftest.$ac_ext >&5
6382 rm -rf conftest*
6383 ac_cv_func_alloca_works=no
6385 rm -f conftest*
6388 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6389 if test $ac_cv_func_alloca_works = yes; then
6390 cat >> confdefs.h <<\EOF
6391 #define HAVE_ALLOCA 1
6396 if test $ac_cv_func_alloca_works = no; then
6397 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6398 # that cause trouble. Some versions do not even contain alloca or
6399 # contain a buggy version. If you still want to use their alloca,
6400 # use ar to extract alloca.o from them instead of compiling alloca.c.
6401 ALLOCA=alloca.${ac_objext}
6402 cat >> confdefs.h <<\EOF
6403 #define C_ALLOCA 1
6407 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
6408 echo "configure:6409: checking whether alloca needs Cray hooks" >&5
6409 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6410 echo $ac_n "(cached) $ac_c" 1>&6
6411 else
6412 cat > conftest.$ac_ext <<EOF
6413 #line 6414 "configure"
6414 #include "confdefs.h"
6415 #if defined(CRAY) && ! defined(CRAY2)
6416 webecray
6417 #else
6418 wenotbecray
6419 #endif
6422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6423 egrep "webecray" >/dev/null 2>&1; then
6424 rm -rf conftest*
6425 ac_cv_os_cray=yes
6426 else
6427 rm -rf conftest*
6428 ac_cv_os_cray=no
6430 rm -f conftest*
6434 echo "$ac_t""$ac_cv_os_cray" 1>&6
6435 if test $ac_cv_os_cray = yes; then
6436 for ac_func in _getb67 GETB67 getb67; do
6437 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6438 echo "configure:6439: checking for $ac_func" >&5
6439 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6440 echo $ac_n "(cached) $ac_c" 1>&6
6441 else
6442 cat > conftest.$ac_ext <<EOF
6443 #line 6444 "configure"
6444 #include "confdefs.h"
6445 /* System header to define __stub macros and hopefully few prototypes,
6446 which can conflict with char $ac_func(); below. */
6447 #include <assert.h>
6448 /* Override any gcc2 internal prototype to avoid an error. */
6449 /* We use char because int might match the return type of a gcc2
6450 builtin and then its argument prototype would still apply. */
6451 char $ac_func();
6453 int main() {
6455 /* The GNU C library defines this for functions which it implements
6456 to always fail with ENOSYS. Some functions are actually named
6457 something starting with __ and the normal name is an alias. */
6458 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6459 choke me
6460 #else
6461 $ac_func();
6462 #endif
6464 ; return 0; }
6466 if { (eval echo configure:6467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6467 rm -rf conftest*
6468 eval "ac_cv_func_$ac_func=yes"
6469 else
6470 echo "configure: failed program was:" >&5
6471 cat conftest.$ac_ext >&5
6472 rm -rf conftest*
6473 eval "ac_cv_func_$ac_func=no"
6475 rm -f conftest*
6478 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6479 echo "$ac_t""yes" 1>&6
6480 cat >> confdefs.h <<EOF
6481 #define CRAY_STACKSEG_END $ac_func
6484 break
6485 else
6486 echo "$ac_t""no" 1>&6
6489 done
6492 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
6493 echo "configure:6494: checking stack direction for C alloca" >&5
6494 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
6495 echo $ac_n "(cached) $ac_c" 1>&6
6496 else
6497 if test "$cross_compiling" = yes; then
6498 ac_cv_c_stack_direction=0
6499 else
6500 cat > conftest.$ac_ext <<EOF
6501 #line 6502 "configure"
6502 #include "confdefs.h"
6503 find_stack_direction ()
6505 static char *addr = 0;
6506 auto char dummy;
6507 if (addr == 0)
6509 addr = &dummy;
6510 return find_stack_direction ();
6512 else
6513 return (&dummy > addr) ? 1 : -1;
6515 main ()
6517 exit (find_stack_direction() < 0);
6520 if { (eval echo configure:6521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6521 then
6522 ac_cv_c_stack_direction=1
6523 else
6524 echo "configure: failed program was:" >&5
6525 cat conftest.$ac_ext >&5
6526 rm -fr conftest*
6527 ac_cv_c_stack_direction=-1
6529 rm -fr conftest*
6534 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6535 cat >> confdefs.h <<EOF
6536 #define STACK_DIRECTION $ac_cv_c_stack_direction
6541 for ac_hdr in unistd.h
6543 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6544 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6545 echo "configure:6546: checking for $ac_hdr" >&5
6546 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6547 echo $ac_n "(cached) $ac_c" 1>&6
6548 else
6549 cat > conftest.$ac_ext <<EOF
6550 #line 6551 "configure"
6551 #include "confdefs.h"
6552 #include <$ac_hdr>
6554 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6555 { (eval echo configure:6556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6556 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6557 if test -z "$ac_err"; then
6558 rm -rf conftest*
6559 eval "ac_cv_header_$ac_safe=yes"
6560 else
6561 echo "$ac_err" >&5
6562 echo "configure: failed program was:" >&5
6563 cat conftest.$ac_ext >&5
6564 rm -rf conftest*
6565 eval "ac_cv_header_$ac_safe=no"
6567 rm -f conftest*
6569 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6570 echo "$ac_t""yes" 1>&6
6571 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6572 cat >> confdefs.h <<EOF
6573 #define $ac_tr_hdr 1
6576 else
6577 echo "$ac_t""no" 1>&6
6579 done
6581 for ac_func in getpagesize
6583 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6584 echo "configure:6585: checking for $ac_func" >&5
6585 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6586 echo $ac_n "(cached) $ac_c" 1>&6
6587 else
6588 cat > conftest.$ac_ext <<EOF
6589 #line 6590 "configure"
6590 #include "confdefs.h"
6591 /* System header to define __stub macros and hopefully few prototypes,
6592 which can conflict with char $ac_func(); below. */
6593 #include <assert.h>
6594 /* Override any gcc2 internal prototype to avoid an error. */
6595 /* We use char because int might match the return type of a gcc2
6596 builtin and then its argument prototype would still apply. */
6597 char $ac_func();
6599 int main() {
6601 /* The GNU C library defines this for functions which it implements
6602 to always fail with ENOSYS. Some functions are actually named
6603 something starting with __ and the normal name is an alias. */
6604 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6605 choke me
6606 #else
6607 $ac_func();
6608 #endif
6610 ; return 0; }
6612 if { (eval echo configure:6613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6613 rm -rf conftest*
6614 eval "ac_cv_func_$ac_func=yes"
6615 else
6616 echo "configure: failed program was:" >&5
6617 cat conftest.$ac_ext >&5
6618 rm -rf conftest*
6619 eval "ac_cv_func_$ac_func=no"
6621 rm -f conftest*
6624 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6625 echo "$ac_t""yes" 1>&6
6626 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6627 cat >> confdefs.h <<EOF
6628 #define $ac_tr_func 1
6631 else
6632 echo "$ac_t""no" 1>&6
6634 done
6636 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6637 echo "configure:6638: checking for working mmap" >&5
6638 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6639 echo $ac_n "(cached) $ac_c" 1>&6
6640 else
6641 if test "$cross_compiling" = yes; then
6642 ac_cv_func_mmap_fixed_mapped=no
6643 else
6644 cat > conftest.$ac_ext <<EOF
6645 #line 6646 "configure"
6646 #include "confdefs.h"
6648 /* Thanks to Mike Haertel and Jim Avera for this test.
6649 Here is a matrix of mmap possibilities:
6650 mmap private not fixed
6651 mmap private fixed at somewhere currently unmapped
6652 mmap private fixed at somewhere already mapped
6653 mmap shared not fixed
6654 mmap shared fixed at somewhere currently unmapped
6655 mmap shared fixed at somewhere already mapped
6656 For private mappings, we should verify that changes cannot be read()
6657 back from the file, nor mmap's back from the file at a different
6658 address. (There have been systems where private was not correctly
6659 implemented like the infamous i386 svr4.0, and systems where the
6660 VM page cache was not coherent with the filesystem buffer cache
6661 like early versions of FreeBSD and possibly contemporary NetBSD.)
6662 For shared mappings, we should conversely verify that changes get
6663 propogated back to all the places they're supposed to be.
6665 Grep wants private fixed already mapped.
6666 The main things grep needs to know about mmap are:
6667 * does it exist and is it safe to write into the mmap'd area
6668 * how to use it (BSD variants) */
6669 #include <sys/types.h>
6670 #include <fcntl.h>
6671 #include <sys/mman.h>
6673 /* This mess was copied from the GNU getpagesize.h. */
6674 #ifndef HAVE_GETPAGESIZE
6675 # ifdef HAVE_UNISTD_H
6676 # include <unistd.h>
6677 # endif
6679 /* Assume that all systems that can run configure have sys/param.h. */
6680 # ifndef HAVE_SYS_PARAM_H
6681 # define HAVE_SYS_PARAM_H 1
6682 # endif
6684 # ifdef _SC_PAGESIZE
6685 # define getpagesize() sysconf(_SC_PAGESIZE)
6686 # else /* no _SC_PAGESIZE */
6687 # ifdef HAVE_SYS_PARAM_H
6688 # include <sys/param.h>
6689 # ifdef EXEC_PAGESIZE
6690 # define getpagesize() EXEC_PAGESIZE
6691 # else /* no EXEC_PAGESIZE */
6692 # ifdef NBPG
6693 # define getpagesize() NBPG * CLSIZE
6694 # ifndef CLSIZE
6695 # define CLSIZE 1
6696 # endif /* no CLSIZE */
6697 # else /* no NBPG */
6698 # ifdef NBPC
6699 # define getpagesize() NBPC
6700 # else /* no NBPC */
6701 # ifdef PAGESIZE
6702 # define getpagesize() PAGESIZE
6703 # endif /* PAGESIZE */
6704 # endif /* no NBPC */
6705 # endif /* no NBPG */
6706 # endif /* no EXEC_PAGESIZE */
6707 # else /* no HAVE_SYS_PARAM_H */
6708 # define getpagesize() 8192 /* punt totally */
6709 # endif /* no HAVE_SYS_PARAM_H */
6710 # endif /* no _SC_PAGESIZE */
6712 #endif /* no HAVE_GETPAGESIZE */
6714 #ifdef __cplusplus
6715 extern "C" { void *malloc(unsigned); }
6716 #else
6717 char *malloc();
6718 #endif
6721 main()
6723 char *data, *data2, *data3;
6724 int i, pagesize;
6725 int fd;
6727 pagesize = getpagesize();
6730 * First, make a file with some known garbage in it.
6732 data = malloc(pagesize);
6733 if (!data)
6734 exit(1);
6735 for (i = 0; i < pagesize; ++i)
6736 *(data + i) = rand();
6737 umask(0);
6738 fd = creat("conftestmmap", 0600);
6739 if (fd < 0)
6740 exit(1);
6741 if (write(fd, data, pagesize) != pagesize)
6742 exit(1);
6743 close(fd);
6746 * Next, try to mmap the file at a fixed address which
6747 * already has something else allocated at it. If we can,
6748 * also make sure that we see the same garbage.
6750 fd = open("conftestmmap", O_RDWR);
6751 if (fd < 0)
6752 exit(1);
6753 data2 = malloc(2 * pagesize);
6754 if (!data2)
6755 exit(1);
6756 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6757 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6758 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6759 exit(1);
6760 for (i = 0; i < pagesize; ++i)
6761 if (*(data + i) != *(data2 + i))
6762 exit(1);
6765 * Finally, make sure that changes to the mapped area
6766 * do not percolate back to the file as seen by read().
6767 * (This is a bug on some variants of i386 svr4.0.)
6769 for (i = 0; i < pagesize; ++i)
6770 *(data2 + i) = *(data2 + i) + 1;
6771 data3 = malloc(pagesize);
6772 if (!data3)
6773 exit(1);
6774 if (read(fd, data3, pagesize) != pagesize)
6775 exit(1);
6776 for (i = 0; i < pagesize; ++i)
6777 if (*(data + i) != *(data3 + i))
6778 exit(1);
6779 close(fd);
6780 unlink("conftestmmap");
6781 exit(0);
6785 if { (eval echo configure:6786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6786 then
6787 ac_cv_func_mmap_fixed_mapped=yes
6788 else
6789 echo "configure: failed program was:" >&5
6790 cat conftest.$ac_ext >&5
6791 rm -fr conftest*
6792 ac_cv_func_mmap_fixed_mapped=no
6794 rm -fr conftest*
6799 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6800 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6801 cat >> confdefs.h <<\EOF
6802 #define HAVE_MMAP 1
6808 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6809 unistd.h sys/param.h
6811 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6812 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6813 echo "configure:6814: checking for $ac_hdr" >&5
6814 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6815 echo $ac_n "(cached) $ac_c" 1>&6
6816 else
6817 cat > conftest.$ac_ext <<EOF
6818 #line 6819 "configure"
6819 #include "confdefs.h"
6820 #include <$ac_hdr>
6822 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6823 { (eval echo configure:6824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6824 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6825 if test -z "$ac_err"; then
6826 rm -rf conftest*
6827 eval "ac_cv_header_$ac_safe=yes"
6828 else
6829 echo "$ac_err" >&5
6830 echo "configure: failed program was:" >&5
6831 cat conftest.$ac_ext >&5
6832 rm -rf conftest*
6833 eval "ac_cv_header_$ac_safe=no"
6835 rm -f conftest*
6837 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6838 echo "$ac_t""yes" 1>&6
6839 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6840 cat >> confdefs.h <<EOF
6841 #define $ac_tr_hdr 1
6844 else
6845 echo "$ac_t""no" 1>&6
6847 done
6849 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
6850 strdup __argz_count __argz_stringify __argz_next
6852 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6853 echo "configure:6854: checking for $ac_func" >&5
6854 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6855 echo $ac_n "(cached) $ac_c" 1>&6
6856 else
6857 cat > conftest.$ac_ext <<EOF
6858 #line 6859 "configure"
6859 #include "confdefs.h"
6860 /* System header to define __stub macros and hopefully few prototypes,
6861 which can conflict with char $ac_func(); below. */
6862 #include <assert.h>
6863 /* Override any gcc2 internal prototype to avoid an error. */
6864 /* We use char because int might match the return type of a gcc2
6865 builtin and then its argument prototype would still apply. */
6866 char $ac_func();
6868 int main() {
6870 /* The GNU C library defines this for functions which it implements
6871 to always fail with ENOSYS. Some functions are actually named
6872 something starting with __ and the normal name is an alias. */
6873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6874 choke me
6875 #else
6876 $ac_func();
6877 #endif
6879 ; return 0; }
6881 if { (eval echo configure:6882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6882 rm -rf conftest*
6883 eval "ac_cv_func_$ac_func=yes"
6884 else
6885 echo "configure: failed program was:" >&5
6886 cat conftest.$ac_ext >&5
6887 rm -rf conftest*
6888 eval "ac_cv_func_$ac_func=no"
6890 rm -f conftest*
6893 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6894 echo "$ac_t""yes" 1>&6
6895 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6896 cat >> confdefs.h <<EOF
6897 #define $ac_tr_func 1
6900 else
6901 echo "$ac_t""no" 1>&6
6903 done
6906 if test "${ac_cv_func_stpcpy+set}" != "set"; then
6907 for ac_func in stpcpy
6909 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6910 echo "configure:6911: checking for $ac_func" >&5
6911 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6912 echo $ac_n "(cached) $ac_c" 1>&6
6913 else
6914 cat > conftest.$ac_ext <<EOF
6915 #line 6916 "configure"
6916 #include "confdefs.h"
6917 /* System header to define __stub macros and hopefully few prototypes,
6918 which can conflict with char $ac_func(); below. */
6919 #include <assert.h>
6920 /* Override any gcc2 internal prototype to avoid an error. */
6921 /* We use char because int might match the return type of a gcc2
6922 builtin and then its argument prototype would still apply. */
6923 char $ac_func();
6925 int main() {
6927 /* The GNU C library defines this for functions which it implements
6928 to always fail with ENOSYS. Some functions are actually named
6929 something starting with __ and the normal name is an alias. */
6930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6931 choke me
6932 #else
6933 $ac_func();
6934 #endif
6936 ; return 0; }
6938 if { (eval echo configure:6939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6939 rm -rf conftest*
6940 eval "ac_cv_func_$ac_func=yes"
6941 else
6942 echo "configure: failed program was:" >&5
6943 cat conftest.$ac_ext >&5
6944 rm -rf conftest*
6945 eval "ac_cv_func_$ac_func=no"
6947 rm -f conftest*
6950 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6951 echo "$ac_t""yes" 1>&6
6952 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6953 cat >> confdefs.h <<EOF
6954 #define $ac_tr_func 1
6957 else
6958 echo "$ac_t""no" 1>&6
6960 done
6963 if test "${ac_cv_func_stpcpy}" = "yes"; then
6964 cat >> confdefs.h <<\EOF
6965 #define HAVE_STPCPY 1
6970 if test $ac_cv_header_locale_h = yes; then
6971 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
6972 echo "configure:6973: checking for LC_MESSAGES" >&5
6973 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
6974 echo $ac_n "(cached) $ac_c" 1>&6
6975 else
6976 cat > conftest.$ac_ext <<EOF
6977 #line 6978 "configure"
6978 #include "confdefs.h"
6979 #include <locale.h>
6980 int main() {
6981 return LC_MESSAGES
6982 ; return 0; }
6984 if { (eval echo configure:6985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6985 rm -rf conftest*
6986 am_cv_val_LC_MESSAGES=yes
6987 else
6988 echo "configure: failed program was:" >&5
6989 cat conftest.$ac_ext >&5
6990 rm -rf conftest*
6991 am_cv_val_LC_MESSAGES=no
6993 rm -f conftest*
6996 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
6997 if test $am_cv_val_LC_MESSAGES = yes; then
6998 cat >> confdefs.h <<\EOF
6999 #define HAVE_LC_MESSAGES 1
7004 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7005 echo "configure:7006: checking whether NLS is requested" >&5
7006 # Check whether --enable-nls or --disable-nls was given.
7007 if test "${enable_nls+set}" = set; then
7008 enableval="$enable_nls"
7009 USE_NLS=$enableval
7010 else
7011 USE_NLS=yes
7014 echo "$ac_t""$USE_NLS" 1>&6
7017 USE_INCLUDED_LIBINTL=no
7019 if test "$USE_NLS" = "yes"; then
7020 cat >> confdefs.h <<\EOF
7021 #define ENABLE_NLS 1
7024 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7025 echo "configure:7026: checking whether included gettext is requested" >&5
7026 # Check whether --with-included-gettext or --without-included-gettext was given.
7027 if test "${with_included_gettext+set}" = set; then
7028 withval="$with_included_gettext"
7029 nls_cv_force_use_gnu_gettext=$withval
7030 else
7031 nls_cv_force_use_gnu_gettext=no
7034 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7036 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7037 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7038 nls_cv_header_intl=
7039 nls_cv_header_libgt=
7040 CATOBJEXT=NONE
7042 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7043 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7044 echo "configure:7045: checking for libintl.h" >&5
7045 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7046 echo $ac_n "(cached) $ac_c" 1>&6
7047 else
7048 cat > conftest.$ac_ext <<EOF
7049 #line 7050 "configure"
7050 #include "confdefs.h"
7051 #include <libintl.h>
7053 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7054 { (eval echo configure:7055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7055 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7056 if test -z "$ac_err"; then
7057 rm -rf conftest*
7058 eval "ac_cv_header_$ac_safe=yes"
7059 else
7060 echo "$ac_err" >&5
7061 echo "configure: failed program was:" >&5
7062 cat conftest.$ac_ext >&5
7063 rm -rf conftest*
7064 eval "ac_cv_header_$ac_safe=no"
7066 rm -f conftest*
7068 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7069 echo "$ac_t""yes" 1>&6
7070 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7071 echo "configure:7072: checking for gettext in libc" >&5
7072 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7073 echo $ac_n "(cached) $ac_c" 1>&6
7074 else
7075 cat > conftest.$ac_ext <<EOF
7076 #line 7077 "configure"
7077 #include "confdefs.h"
7078 #include <libintl.h>
7079 int main() {
7080 return (int) gettext ("")
7081 ; return 0; }
7083 if { (eval echo configure:7084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7084 rm -rf conftest*
7085 gt_cv_func_gettext_libc=yes
7086 else
7087 echo "configure: failed program was:" >&5
7088 cat conftest.$ac_ext >&5
7089 rm -rf conftest*
7090 gt_cv_func_gettext_libc=no
7092 rm -f conftest*
7095 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7097 if test "$gt_cv_func_gettext_libc" != "yes"; then
7098 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7099 echo "configure:7100: checking for bindtextdomain in -lintl" >&5
7100 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7101 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7102 echo $ac_n "(cached) $ac_c" 1>&6
7103 else
7104 ac_save_LIBS="$LIBS"
7105 LIBS="-lintl $LIBS"
7106 cat > conftest.$ac_ext <<EOF
7107 #line 7108 "configure"
7108 #include "confdefs.h"
7109 /* Override any gcc2 internal prototype to avoid an error. */
7110 /* We use char because int might match the return type of a gcc2
7111 builtin and then its argument prototype would still apply. */
7112 char bindtextdomain();
7114 int main() {
7115 bindtextdomain()
7116 ; return 0; }
7118 if { (eval echo configure:7119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7119 rm -rf conftest*
7120 eval "ac_cv_lib_$ac_lib_var=yes"
7121 else
7122 echo "configure: failed program was:" >&5
7123 cat conftest.$ac_ext >&5
7124 rm -rf conftest*
7125 eval "ac_cv_lib_$ac_lib_var=no"
7127 rm -f conftest*
7128 LIBS="$ac_save_LIBS"
7131 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7132 echo "$ac_t""yes" 1>&6
7133 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7134 echo "configure:7135: checking for gettext in libintl" >&5
7135 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7136 echo $ac_n "(cached) $ac_c" 1>&6
7137 else
7138 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7139 echo "configure:7140: checking for gettext in -lintl" >&5
7140 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7141 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7142 echo $ac_n "(cached) $ac_c" 1>&6
7143 else
7144 ac_save_LIBS="$LIBS"
7145 LIBS="-lintl $LIBS"
7146 cat > conftest.$ac_ext <<EOF
7147 #line 7148 "configure"
7148 #include "confdefs.h"
7149 /* Override any gcc2 internal prototype to avoid an error. */
7150 /* We use char because int might match the return type of a gcc2
7151 builtin and then its argument prototype would still apply. */
7152 char gettext();
7154 int main() {
7155 gettext()
7156 ; return 0; }
7158 if { (eval echo configure:7159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7159 rm -rf conftest*
7160 eval "ac_cv_lib_$ac_lib_var=yes"
7161 else
7162 echo "configure: failed program was:" >&5
7163 cat conftest.$ac_ext >&5
7164 rm -rf conftest*
7165 eval "ac_cv_lib_$ac_lib_var=no"
7167 rm -f conftest*
7168 LIBS="$ac_save_LIBS"
7171 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7172 echo "$ac_t""yes" 1>&6
7173 gt_cv_func_gettext_libintl=yes
7174 else
7175 echo "$ac_t""no" 1>&6
7176 gt_cv_func_gettext_libintl=no
7181 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7182 else
7183 echo "$ac_t""no" 1>&6
7188 if test "$gt_cv_func_gettext_libc" = "yes" \
7189 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7190 cat >> confdefs.h <<\EOF
7191 #define HAVE_GETTEXT 1
7194 # Extract the first word of "msgfmt", so it can be a program name with args.
7195 set dummy msgfmt; ac_word=$2
7196 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7197 echo "configure:7198: checking for $ac_word" >&5
7198 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7199 echo $ac_n "(cached) $ac_c" 1>&6
7200 else
7201 case "$MSGFMT" in
7203 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7206 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7207 for ac_dir in $PATH; do
7208 test -z "$ac_dir" && ac_dir=.
7209 if test -f $ac_dir/$ac_word; then
7210 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7211 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7212 break
7215 done
7216 IFS="$ac_save_ifs"
7217 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7219 esac
7221 MSGFMT="$ac_cv_path_MSGFMT"
7222 if test -n "$MSGFMT"; then
7223 echo "$ac_t""$MSGFMT" 1>&6
7224 else
7225 echo "$ac_t""no" 1>&6
7227 if test "$MSGFMT" != "no"; then
7228 for ac_func in dcgettext
7230 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7231 echo "configure:7232: checking for $ac_func" >&5
7232 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7233 echo $ac_n "(cached) $ac_c" 1>&6
7234 else
7235 cat > conftest.$ac_ext <<EOF
7236 #line 7237 "configure"
7237 #include "confdefs.h"
7238 /* System header to define __stub macros and hopefully few prototypes,
7239 which can conflict with char $ac_func(); below. */
7240 #include <assert.h>
7241 /* Override any gcc2 internal prototype to avoid an error. */
7242 /* We use char because int might match the return type of a gcc2
7243 builtin and then its argument prototype would still apply. */
7244 char $ac_func();
7246 int main() {
7248 /* The GNU C library defines this for functions which it implements
7249 to always fail with ENOSYS. Some functions are actually named
7250 something starting with __ and the normal name is an alias. */
7251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7252 choke me
7253 #else
7254 $ac_func();
7255 #endif
7257 ; return 0; }
7259 if { (eval echo configure:7260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7260 rm -rf conftest*
7261 eval "ac_cv_func_$ac_func=yes"
7262 else
7263 echo "configure: failed program was:" >&5
7264 cat conftest.$ac_ext >&5
7265 rm -rf conftest*
7266 eval "ac_cv_func_$ac_func=no"
7268 rm -f conftest*
7271 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7272 echo "$ac_t""yes" 1>&6
7273 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7274 cat >> confdefs.h <<EOF
7275 #define $ac_tr_func 1
7278 else
7279 echo "$ac_t""no" 1>&6
7281 done
7283 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7284 set dummy gmsgfmt; ac_word=$2
7285 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7286 echo "configure:7287: checking for $ac_word" >&5
7287 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7288 echo $ac_n "(cached) $ac_c" 1>&6
7289 else
7290 case "$GMSGFMT" in
7292 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7294 ?:/*)
7295 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7298 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7299 ac_dummy="$PATH"
7300 for ac_dir in $ac_dummy; do
7301 test -z "$ac_dir" && ac_dir=.
7302 if test -f $ac_dir/$ac_word; then
7303 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7304 break
7306 done
7307 IFS="$ac_save_ifs"
7308 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7310 esac
7312 GMSGFMT="$ac_cv_path_GMSGFMT"
7313 if test -n "$GMSGFMT"; then
7314 echo "$ac_t""$GMSGFMT" 1>&6
7315 else
7316 echo "$ac_t""no" 1>&6
7319 # Extract the first word of "xgettext", so it can be a program name with args.
7320 set dummy xgettext; ac_word=$2
7321 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7322 echo "configure:7323: checking for $ac_word" >&5
7323 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7324 echo $ac_n "(cached) $ac_c" 1>&6
7325 else
7326 case "$XGETTEXT" in
7328 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7331 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7332 for ac_dir in $PATH; do
7333 test -z "$ac_dir" && ac_dir=.
7334 if test -f $ac_dir/$ac_word; then
7335 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7336 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7337 break
7340 done
7341 IFS="$ac_save_ifs"
7342 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7344 esac
7346 XGETTEXT="$ac_cv_path_XGETTEXT"
7347 if test -n "$XGETTEXT"; then
7348 echo "$ac_t""$XGETTEXT" 1>&6
7349 else
7350 echo "$ac_t""no" 1>&6
7353 cat > conftest.$ac_ext <<EOF
7354 #line 7355 "configure"
7355 #include "confdefs.h"
7357 int main() {
7358 extern int _nl_msg_cat_cntr;
7359 return _nl_msg_cat_cntr
7360 ; return 0; }
7362 if { (eval echo configure:7363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7363 rm -rf conftest*
7364 CATOBJEXT=.gmo
7365 DATADIRNAME=share
7366 else
7367 echo "configure: failed program was:" >&5
7368 cat conftest.$ac_ext >&5
7369 rm -rf conftest*
7370 CATOBJEXT=.mo
7371 DATADIRNAME=lib
7373 rm -f conftest*
7374 INSTOBJEXT=.mo
7378 else
7379 echo "$ac_t""no" 1>&6
7383 if test "$CATOBJEXT" = "NONE"; then
7384 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
7385 echo "configure:7386: checking whether catgets can be used" >&5
7386 # Check whether --with-catgets or --without-catgets was given.
7387 if test "${with_catgets+set}" = set; then
7388 withval="$with_catgets"
7389 nls_cv_use_catgets=$withval
7390 else
7391 nls_cv_use_catgets=no
7394 echo "$ac_t""$nls_cv_use_catgets" 1>&6
7396 if test "$nls_cv_use_catgets" = "yes"; then
7397 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
7398 echo "configure:7399: checking for main in -li" >&5
7399 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
7400 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7401 echo $ac_n "(cached) $ac_c" 1>&6
7402 else
7403 ac_save_LIBS="$LIBS"
7404 LIBS="-li $LIBS"
7405 cat > conftest.$ac_ext <<EOF
7406 #line 7407 "configure"
7407 #include "confdefs.h"
7409 int main() {
7410 main()
7411 ; return 0; }
7413 if { (eval echo configure:7414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7414 rm -rf conftest*
7415 eval "ac_cv_lib_$ac_lib_var=yes"
7416 else
7417 echo "configure: failed program was:" >&5
7418 cat conftest.$ac_ext >&5
7419 rm -rf conftest*
7420 eval "ac_cv_lib_$ac_lib_var=no"
7422 rm -f conftest*
7423 LIBS="$ac_save_LIBS"
7426 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7427 echo "$ac_t""yes" 1>&6
7428 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7429 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7430 cat >> confdefs.h <<EOF
7431 #define $ac_tr_lib 1
7434 LIBS="-li $LIBS"
7436 else
7437 echo "$ac_t""no" 1>&6
7440 echo $ac_n "checking for catgets""... $ac_c" 1>&6
7441 echo "configure:7442: checking for catgets" >&5
7442 if eval "test \"`echo '$''{'ac_cv_func_catgets'+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 /* System header to define __stub macros and hopefully few prototypes,
7449 which can conflict with char catgets(); below. */
7450 #include <assert.h>
7451 /* Override any gcc2 internal prototype to avoid an error. */
7452 /* We use char because int might match the return type of a gcc2
7453 builtin and then its argument prototype would still apply. */
7454 char catgets();
7456 int main() {
7458 /* The GNU C library defines this for functions which it implements
7459 to always fail with ENOSYS. Some functions are actually named
7460 something starting with __ and the normal name is an alias. */
7461 #if defined (__stub_catgets) || defined (__stub___catgets)
7462 choke me
7463 #else
7464 catgets();
7465 #endif
7467 ; return 0; }
7469 if { (eval echo configure:7470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7470 rm -rf conftest*
7471 eval "ac_cv_func_catgets=yes"
7472 else
7473 echo "configure: failed program was:" >&5
7474 cat conftest.$ac_ext >&5
7475 rm -rf conftest*
7476 eval "ac_cv_func_catgets=no"
7478 rm -f conftest*
7481 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
7482 echo "$ac_t""yes" 1>&6
7483 cat >> confdefs.h <<\EOF
7484 #define HAVE_CATGETS 1
7487 INTLOBJS="\$(CATOBJS)"
7488 # Extract the first word of "gencat", so it can be a program name with args.
7489 set dummy gencat; ac_word=$2
7490 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7491 echo "configure:7492: checking for $ac_word" >&5
7492 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
7493 echo $ac_n "(cached) $ac_c" 1>&6
7494 else
7495 case "$GENCAT" in
7497 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
7499 ?:/*)
7500 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
7503 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7504 ac_dummy="$PATH"
7505 for ac_dir in $ac_dummy; do
7506 test -z "$ac_dir" && ac_dir=.
7507 if test -f $ac_dir/$ac_word; then
7508 ac_cv_path_GENCAT="$ac_dir/$ac_word"
7509 break
7511 done
7512 IFS="$ac_save_ifs"
7513 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
7515 esac
7517 GENCAT="$ac_cv_path_GENCAT"
7518 if test -n "$GENCAT"; then
7519 echo "$ac_t""$GENCAT" 1>&6
7520 else
7521 echo "$ac_t""no" 1>&6
7523 if test "$GENCAT" != "no"; then
7524 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7525 set dummy gmsgfmt; ac_word=$2
7526 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7527 echo "configure:7528: checking for $ac_word" >&5
7528 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7529 echo $ac_n "(cached) $ac_c" 1>&6
7530 else
7531 case "$GMSGFMT" in
7533 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7535 ?:/*)
7536 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7539 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7540 ac_dummy="$PATH"
7541 for ac_dir in $ac_dummy; do
7542 test -z "$ac_dir" && ac_dir=.
7543 if test -f $ac_dir/$ac_word; then
7544 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7545 break
7547 done
7548 IFS="$ac_save_ifs"
7549 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
7551 esac
7553 GMSGFMT="$ac_cv_path_GMSGFMT"
7554 if test -n "$GMSGFMT"; then
7555 echo "$ac_t""$GMSGFMT" 1>&6
7556 else
7557 echo "$ac_t""no" 1>&6
7560 if test "$GMSGFMT" = "no"; then
7561 # Extract the first word of "msgfmt", so it can be a program name with args.
7562 set dummy msgfmt; ac_word=$2
7563 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7564 echo "configure:7565: checking for $ac_word" >&5
7565 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7566 echo $ac_n "(cached) $ac_c" 1>&6
7567 else
7568 case "$GMSGFMT" in
7570 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7573 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7574 for ac_dir in $PATH; do
7575 test -z "$ac_dir" && ac_dir=.
7576 if test -f $ac_dir/$ac_word; then
7577 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7578 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7579 break
7582 done
7583 IFS="$ac_save_ifs"
7584 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
7586 esac
7588 GMSGFMT="$ac_cv_path_GMSGFMT"
7589 if test -n "$GMSGFMT"; then
7590 echo "$ac_t""$GMSGFMT" 1>&6
7591 else
7592 echo "$ac_t""no" 1>&6
7596 # Extract the first word of "xgettext", so it can be a program name with args.
7597 set dummy xgettext; ac_word=$2
7598 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7599 echo "configure:7600: checking for $ac_word" >&5
7600 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7601 echo $ac_n "(cached) $ac_c" 1>&6
7602 else
7603 case "$XGETTEXT" in
7605 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7608 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7609 for ac_dir in $PATH; do
7610 test -z "$ac_dir" && ac_dir=.
7611 if test -f $ac_dir/$ac_word; then
7612 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7613 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7614 break
7617 done
7618 IFS="$ac_save_ifs"
7619 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7621 esac
7623 XGETTEXT="$ac_cv_path_XGETTEXT"
7624 if test -n "$XGETTEXT"; then
7625 echo "$ac_t""$XGETTEXT" 1>&6
7626 else
7627 echo "$ac_t""no" 1>&6
7630 USE_INCLUDED_LIBINTL=yes
7631 CATOBJEXT=.cat
7632 INSTOBJEXT=.cat
7633 DATADIRNAME=lib
7634 INTLDEPS='$(top_builddir)/intl/libintl.a'
7635 INTLLIBS=$INTLDEPS
7636 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7637 nls_cv_header_intl=intl/libintl.h
7638 nls_cv_header_libgt=intl/libgettext.h
7640 else
7641 echo "$ac_t""no" 1>&6
7647 if test "$CATOBJEXT" = "NONE"; then
7648 nls_cv_use_gnu_gettext=yes
7652 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7653 INTLOBJS="\$(GETTOBJS)"
7654 # Extract the first word of "msgfmt", so it can be a program name with args.
7655 set dummy msgfmt; ac_word=$2
7656 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7657 echo "configure:7658: checking for $ac_word" >&5
7658 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7659 echo $ac_n "(cached) $ac_c" 1>&6
7660 else
7661 case "$MSGFMT" in
7663 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7666 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7667 for ac_dir in $PATH; do
7668 test -z "$ac_dir" && ac_dir=.
7669 if test -f $ac_dir/$ac_word; then
7670 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7671 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7672 break
7675 done
7676 IFS="$ac_save_ifs"
7677 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7679 esac
7681 MSGFMT="$ac_cv_path_MSGFMT"
7682 if test -n "$MSGFMT"; then
7683 echo "$ac_t""$MSGFMT" 1>&6
7684 else
7685 echo "$ac_t""no" 1>&6
7688 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7689 set dummy gmsgfmt; ac_word=$2
7690 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7691 echo "configure:7692: checking for $ac_word" >&5
7692 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7693 echo $ac_n "(cached) $ac_c" 1>&6
7694 else
7695 case "$GMSGFMT" in
7697 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7699 ?:/*)
7700 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7703 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7704 ac_dummy="$PATH"
7705 for ac_dir in $ac_dummy; do
7706 test -z "$ac_dir" && ac_dir=.
7707 if test -f $ac_dir/$ac_word; then
7708 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7709 break
7711 done
7712 IFS="$ac_save_ifs"
7713 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7715 esac
7717 GMSGFMT="$ac_cv_path_GMSGFMT"
7718 if test -n "$GMSGFMT"; then
7719 echo "$ac_t""$GMSGFMT" 1>&6
7720 else
7721 echo "$ac_t""no" 1>&6
7724 # Extract the first word of "xgettext", so it can be a program name with args.
7725 set dummy xgettext; ac_word=$2
7726 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7727 echo "configure:7728: checking for $ac_word" >&5
7728 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7729 echo $ac_n "(cached) $ac_c" 1>&6
7730 else
7731 case "$XGETTEXT" in
7733 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7736 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7737 for ac_dir in $PATH; do
7738 test -z "$ac_dir" && ac_dir=.
7739 if test -f $ac_dir/$ac_word; then
7740 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7741 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7742 break
7745 done
7746 IFS="$ac_save_ifs"
7747 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7749 esac
7751 XGETTEXT="$ac_cv_path_XGETTEXT"
7752 if test -n "$XGETTEXT"; then
7753 echo "$ac_t""$XGETTEXT" 1>&6
7754 else
7755 echo "$ac_t""no" 1>&6
7759 USE_INCLUDED_LIBINTL=yes
7760 CATOBJEXT=.gmo
7761 INSTOBJEXT=.mo
7762 DATADIRNAME=share
7763 INTLDEPS='$(top_builddir)/intl/libintl.a'
7764 INTLLIBS=$INTLDEPS
7765 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7766 nls_cv_header_intl=intl/libintl.h
7767 nls_cv_header_libgt=intl/libgettext.h
7770 if test "$XGETTEXT" != ":"; then
7771 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7773 else
7774 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
7775 XGETTEXT=":"
7779 # We need to process the po/ directory.
7780 POSUB=po
7781 else
7782 DATADIRNAME=share
7783 nls_cv_header_intl=intl/libintl.h
7784 nls_cv_header_libgt=intl/libgettext.h
7790 # If this is used in GNU gettext we have to set USE_NLS to `yes'
7791 # because some of the sources are only built for this goal.
7792 if test "$PACKAGE" = gettext; then
7793 USE_NLS=yes
7794 USE_INCLUDED_LIBINTL=yes
7797 for lang in $ALL_LINGUAS; do
7798 GMOFILES="$GMOFILES $lang.gmo"
7799 POFILES="$POFILES $lang.po"
7800 done
7815 if test "x$CATOBJEXT" != "x"; then
7816 if test "x$ALL_LINGUAS" = "x"; then
7817 LINGUAS=
7818 else
7819 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
7820 echo "configure:7821: checking for catalogs to be installed" >&5
7821 NEW_LINGUAS=
7822 for lang in ${LINGUAS=$ALL_LINGUAS}; do
7823 case "$ALL_LINGUAS" in
7824 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
7825 esac
7826 done
7827 LINGUAS=$NEW_LINGUAS
7828 echo "$ac_t""$LINGUAS" 1>&6
7831 if test -n "$LINGUAS"; then
7832 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7836 if test $ac_cv_header_locale_h = yes; then
7837 INCLUDE_LOCALE_H="#include <locale.h>"
7838 else
7839 INCLUDE_LOCALE_H="\
7840 /* The system does not provide the header <locale.h>. Take care yourself. */"
7844 test -d intl || mkdir intl
7845 if test "$CATOBJEXT" = ".cat"; then
7846 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
7847 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
7848 echo "configure:7849: checking for linux/version.h" >&5
7849 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7850 echo $ac_n "(cached) $ac_c" 1>&6
7851 else
7852 cat > conftest.$ac_ext <<EOF
7853 #line 7854 "configure"
7854 #include "confdefs.h"
7855 #include <linux/version.h>
7857 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7858 { (eval echo configure:7859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7859 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7860 if test -z "$ac_err"; then
7861 rm -rf conftest*
7862 eval "ac_cv_header_$ac_safe=yes"
7863 else
7864 echo "$ac_err" >&5
7865 echo "configure: failed program was:" >&5
7866 cat conftest.$ac_ext >&5
7867 rm -rf conftest*
7868 eval "ac_cv_header_$ac_safe=no"
7870 rm -f conftest*
7872 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7873 echo "$ac_t""yes" 1>&6
7874 msgformat=linux
7875 else
7876 echo "$ac_t""no" 1>&6
7877 msgformat=xopen
7881 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
7883 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
7884 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
7886 if test "$PACKAGE" = "gettext"; then
7887 GT_NO="#NO#"
7888 GT_YES=
7889 else
7890 GT_NO=
7891 GT_YES="#YES#"
7896 MKINSTALLDIRS=
7897 if test -n "$ac_aux_dir"; then
7898 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
7900 if test -z "$MKINSTALLDIRS"; then
7901 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7908 test -d po || mkdir po
7909 if test "x$srcdir" != "x."; then
7910 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
7911 posrcprefix="$srcdir/"
7912 else
7913 posrcprefix="../$srcdir/"
7915 else
7916 posrcprefix="../"
7918 rm -f po/POTFILES
7919 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
7920 < $srcdir/po/POTFILES.in > po/POTFILES
7922 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
7924 # Get an absolute path to the GCC top-level source directory
7925 holddir=`pwd`
7926 cd $srcdir
7927 topdir=`pwd`
7928 cd $holddir
7930 # Conditionalize the makefile for this host machine.
7931 # Make-host contains the concatenation of all host makefile fragments
7932 # [there can be more than one]. This file is built by configure.frag.
7933 host_overrides=Make-host
7934 dep_host_xmake_file=
7935 for f in .. ${host_xmake_file}
7937 if test -f ${srcdir}/config/$f
7938 then
7939 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
7941 done
7943 # Conditionalize the makefile for this target machine.
7944 # Make-target contains the concatenation of all host makefile fragments
7945 # [there can be more than one]. This file is built by configure.frag.
7946 target_overrides=Make-target
7947 dep_tmake_file=
7948 for f in .. ${tmake_file}
7950 if test -f ${srcdir}/config/$f
7951 then
7952 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
7954 done
7956 # If the host doesn't support symlinks, modify CC in
7957 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
7958 # Otherwise, we can use "CC=$(CC)".
7959 rm -f symtest.tem
7960 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
7961 then
7962 cc_set_by_configure="\$(CC)"
7963 quoted_cc_set_by_configure="\$(CC)"
7964 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
7965 else
7966 rm -f symtest.tem
7967 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
7968 then
7969 symbolic_link="cp -p"
7970 else
7971 symbolic_link="cp"
7973 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
7974 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
7975 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
7977 rm -f symtest.tem
7979 out_object_file=`basename $out_file .c`.o
7981 tm_file_list=
7982 for f in $tm_file; do
7983 case $f in
7984 gansidecl.h )
7985 tm_file_list="${tm_file_list} $f" ;;
7986 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
7987 esac
7988 done
7990 host_xm_file_list=
7991 for f in $host_xm_file; do
7992 case $f in
7993 auto-host.h | gansidecl.h | hwint.h )
7994 host_xm_file_list="${host_xm_file_list} $f" ;;
7995 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
7996 esac
7997 done
7999 build_xm_file_list=
8000 for f in $build_xm_file; do
8001 case $f in
8002 auto-build.h | auto-host.h | gansidecl.h | hwint.h )
8003 build_xm_file_list="${build_xm_file_list} $f" ;;
8004 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8005 esac
8006 done
8008 # Define macro CROSS_COMPILE in compilation
8009 # if this is a cross-compiler.
8010 # Also use all.cross instead of all.internal
8011 # and add cross-make to Makefile.
8012 cross_overrides="/dev/null"
8013 if test x$host != x$target
8014 then
8015 cross_defines="CROSS=-DCROSS_COMPILE"
8016 cross_overrides="${topdir}/cross-make"
8019 # When building gcc with a cross-compiler, we need to fix a few things.
8020 # This must come after cross-make as we want all.build to override
8021 # all.cross.
8022 build_overrides="/dev/null"
8023 if test x$build != x$host
8024 then
8025 build_overrides="${topdir}/build-make"
8028 # Expand extra_headers to include complete path.
8029 # This substitutes for lots of t-* files.
8030 extra_headers_list=
8031 if test "x$extra_headers" = x
8032 then true
8033 else
8034 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8035 for file in $extra_headers;
8037 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8038 done
8041 if test x$use_collect2 = xno; then
8042 use_collect2=
8045 # Add a definition of USE_COLLECT2 if system wants one.
8046 # Also tell toplev.c what to do.
8047 # This substitutes for lots of t-* files.
8048 if test x$use_collect2 = x
8049 then
8050 will_use_collect2=
8051 maybe_use_collect2=
8052 else
8053 will_use_collect2="collect2"
8054 maybe_use_collect2="-DUSE_COLLECT2"
8057 # NEED TO CONVERT
8058 # Set MD_DEPS if the real md file is in md.pre-cpp.
8059 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
8060 # for line oriented comments, so we must always use a GNU cpp. If
8061 # building gcc with a cross compiler, use the cross compiler just
8062 # built. Otherwise, we can use the cpp just built.
8063 md_file_sub=
8064 if test "x$md_cppflags" = x
8065 then
8066 md_file_sub=$srcdir/config/$md_file
8067 else
8068 md_file=md
8071 # If we have gas in the build tree, make a link to it.
8072 if test -f ../gas/Makefile; then
8073 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
8076 # If we have nm in the build tree, make a link to it.
8077 if test -f ../binutils/Makefile; then
8078 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
8081 # If we have ld in the build tree, make a link to it.
8082 if test -f ../ld/Makefile; then
8083 # if test x$use_collect2 = x; then
8084 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8085 # else
8086 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
8087 # fi
8090 # Figure out what assembler alignment features are present.
8091 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
8092 echo "configure:8093: checking assembler alignment features" >&5
8093 gcc_cv_as=
8094 gcc_cv_as_alignment_features=
8095 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8096 if test -x "$DEFAULT_ASSEMBLER"; then
8097 gcc_cv_as="$DEFAULT_ASSEMBLER"
8098 elif test -x "$AS"; then
8099 gcc_cv_as="$AS"
8100 elif test -x as$host_exeext; then
8101 # Build using assembler in the current directory.
8102 gcc_cv_as=./as$host_exeext
8103 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
8104 # Single tree build which includes gas.
8105 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
8107 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
8108 if test x$gcc_cv_gas_version != x; then
8109 break
8111 done
8112 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
8113 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
8114 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
8115 # Gas version 2.6 and later support for .balign and .p2align.
8116 # bytes to skip when using .p2align.
8117 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
8118 gcc_cv_as_alignment_features=".balign and .p2align"
8119 cat >> confdefs.h <<\EOF
8120 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8124 # Gas version 2.8 and later support specifying the maximum
8125 # bytes to skip when using .p2align.
8126 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
8127 gcc_cv_as_alignment_features=".p2align including maximum skip"
8128 cat >> confdefs.h <<\EOF
8129 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8134 elif test x$host = x$target; then
8135 # Native build.
8136 # Search the same directories that the installed compiler will
8137 # search. Else we may find the wrong assembler and lose. If we
8138 # do not find a suitable assembler binary, then try the user's
8139 # path.
8141 # Also note we have to check MD_EXEC_PREFIX before checking the
8142 # user's path. Unfortunately, there is no good way to get at the
8143 # value of MD_EXEC_PREFIX here. So we do a brute force search
8144 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
8145 # to be fixed as part of the make/configure rewrite too.
8147 if test "x$exec_prefix" = xNONE; then
8148 if test "x$prefix" = xNONE; then
8149 test_prefix=/usr/local
8150 else
8151 test_prefix=$prefix
8153 else
8154 test_prefix=$exec_prefix
8157 # If the loop below does not find an assembler, then use whatever
8158 # one we can find in the users's path.
8159 # user's path.
8160 as=as$host_exeext
8162 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
8163 $test_prefix/lib/gcc-lib/$target \
8164 /usr/lib/gcc/$target/$gcc_version \
8165 /usr/lib/gcc/$target \
8166 $test_prefix/$target/bin/$target/$gcc_version \
8167 $test_prefix/$target/bin \
8168 /usr/libexec \
8169 /usr/ccs/gcc \
8170 /usr/ccs/bin \
8171 /udk/usr/ccs/bin \
8172 /bsd43/usr/lib/cmplrs/cc \
8173 /usr/cross64/usr/bin \
8174 /usr/lib/cmplrs/cc \
8175 /sysv/usr/lib/cmplrs/cc \
8176 /svr4/usr/lib/cmplrs/cc \
8177 /usr/bin"
8179 for dir in $test_dirs; do
8180 if test -f $dir/as$host_exeext; then
8181 gcc_cv_as=$dir/as$host_exeext
8182 break;
8184 done
8186 if test x$gcc_cv_as != x; then
8187 # Check if we have .balign and .p2align
8188 echo ".balign 4" > conftest.s
8189 echo ".p2align 2" >> conftest.s
8190 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8191 gcc_cv_as_alignment_features=".balign and .p2align"
8192 cat >> confdefs.h <<\EOF
8193 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8197 rm -f conftest.s conftest.o
8198 # Check if specifying the maximum bytes to skip when
8199 # using .p2align is supported.
8200 echo ".p2align 4,,7" > conftest.s
8201 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8202 gcc_cv_as_alignment_features=".p2align including maximum skip"
8203 cat >> confdefs.h <<\EOF
8204 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8208 rm -f conftest.s conftest.o
8210 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
8212 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
8213 echo "configure:8214: checking assembler subsection support" >&5
8214 gcc_cv_as_subsections=
8215 if test x$gcc_cv_as != x; then
8216 # Check if we have .subsection
8217 echo ".subsection 1" > conftest.s
8218 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8219 gcc_cv_as_subsections=".subsection"
8220 if test -x nm$host_exeext; then
8221 gcc_cv_nm=./nm$host_exeext
8222 elif test x$host = x$target; then
8223 # Native build.
8224 gcc_cv_nm=nm$host_exeext
8226 if test x$gcc_cv_nm != x; then
8227 cat > conftest.s <<EOF
8228 conftest_label1: .word 0
8229 .subsection -1
8230 conftest_label2: .word 0
8231 .previous
8233 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8234 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
8235 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
8236 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
8238 else
8239 gcc_cv_as_subsections="working .subsection -1"
8240 cat >> confdefs.h <<\EOF
8241 #define HAVE_GAS_SUBSECTION_ORDERING 1
8248 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8250 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
8252 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
8253 echo "configure:8254: checking assembler instructions" >&5
8254 gcc_cv_as_instructions=
8255 if test x$gcc_cv_as != x; then
8256 set "filds fists" "filds mem; fists mem"
8257 while test $# -gt 0
8259 echo "$2" > conftest.s
8260 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8261 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
8262 cat >> confdefs.h <<EOF
8263 #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1
8267 shift 2
8268 done
8269 rm -f conftest.s conftest.o
8271 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
8273 # Figure out what language subdirectories are present.
8274 # Look if the user specified --enable-languages="..."; if not, use
8275 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8276 # go away some day.
8277 if test x"${enable_languages+set}" != xset; then
8278 if test x"${LANGUAGES+set}" = xset; then
8279 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
8280 else
8281 enable_languages=all
8284 subdirs=
8285 for lang in ${srcdir}/*/config-lang.in ..
8287 case $lang in
8288 ..) ;;
8289 # The odd quoting in the next line works around
8290 # an apparent bug in bash 1.12 on linux.
8291 ${srcdir}/[*]/config-lang.in) ;;
8293 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
8294 if test "x$lang_alias" = x
8295 then
8296 echo "$lang doesn't set \$language." 1>&2
8297 exit 1
8299 if test x"${enable_languages}" = xall; then
8300 add_this_lang=yes
8301 else
8302 case "${enable_languages}" in
8303 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
8304 add_this_lang=yes
8307 add_this_lang=no
8309 esac
8311 if test x"${add_this_lang}" = xyes; then
8312 case $lang in
8313 ${srcdir}/ada/config-lang.in)
8314 if test x$gnat = xyes ; then
8315 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8319 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8321 esac
8324 esac
8325 done
8327 # Make gthr-default.h if we have a thread file.
8328 gthread_flags=
8329 if test $thread_file != single; then
8330 rm -f gthr-default.h
8331 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
8332 gthread_flags=-DHAVE_GTHR_DEFAULT
8336 # Make empty files to contain the specs and options for each language.
8337 # Then add #include lines to for a compiler that has specs and/or options.
8339 lang_specs_files=
8340 lang_options_files=
8341 lang_tree_files=
8342 rm -f specs.h options.h gencheck.h
8343 touch specs.h options.h gencheck.h
8344 for subdir in . $subdirs
8346 if test -f $srcdir/$subdir/lang-specs.h; then
8347 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
8348 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
8350 if test -f $srcdir/$subdir/lang-options.h; then
8351 echo "#include \"$subdir/lang-options.h\"" >>options.h
8352 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
8354 if test -f $srcdir/$subdir/$subdir-tree.def; then
8355 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
8356 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
8358 done
8360 # These (without "all_") are set in each config-lang.in.
8361 # `language' must be a single word so is spelled singularly.
8362 all_languages=
8363 all_boot_languages=
8364 all_compilers=
8365 all_stagestuff=
8366 all_diff_excludes=
8367 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile'
8368 # List of language makefile fragments.
8369 all_lang_makefiles=
8370 all_headers=
8371 all_lib2funcs=
8373 # Add the language fragments.
8374 # Languages are added via two mechanisms. Some information must be
8375 # recorded in makefile variables, these are defined in config-lang.in.
8376 # We accumulate them and plug them into the main Makefile.
8377 # The other mechanism is a set of hooks for each of the main targets
8378 # like `clean', `install', etc.
8380 language_fragments="Make-lang"
8381 language_hooks="Make-hooks"
8382 oldstyle_subdirs=
8384 for s in .. $subdirs
8386 if test $s != ".."
8387 then
8388 language=
8389 boot_language=
8390 compilers=
8391 stagestuff=
8392 diff_excludes=
8393 headers=
8394 outputs=
8395 lib2funcs=
8396 . ${srcdir}/$s/config-lang.in
8397 if test "x$language" = x
8398 then
8399 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
8400 exit 1
8402 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
8403 all_languages="$all_languages $language"
8404 if test "x$boot_language" = xyes
8405 then
8406 all_boot_languages="$all_boot_languages $language"
8408 all_compilers="$all_compilers $compilers"
8409 all_stagestuff="$all_stagestuff $stagestuff"
8410 all_diff_excludes="$all_diff_excludes $diff_excludes"
8411 all_headers="$all_headers $headers"
8412 all_outputs="$all_outputs $outputs"
8413 if test x$outputs = x
8414 then
8415 oldstyle_subdirs="$oldstyle_subdirs $s"
8417 all_lib2funcs="$all_lib2funcs $lib2funcs"
8419 done
8421 # Since we can't use `::' targets, we link each language in
8422 # with a set of hooks, reached indirectly via lang.${target}.
8424 rm -f Make-hooks
8425 touch Make-hooks
8426 target_list="all.build all.cross start.encap rest.encap \
8427 info dvi \
8428 install-normal install-common install-info install-man \
8429 uninstall distdir \
8430 mostlyclean clean distclean extraclean maintainer-clean \
8431 stage1 stage2 stage3 stage4"
8432 for t in $target_list
8435 for lang in .. $all_languages
8437 if test $lang != ".."; then
8438 x="$x $lang.$t"
8440 done
8441 echo "lang.$t: $x" >> Make-hooks
8442 done
8444 # If we're not building in srcdir, create .gdbinit.
8446 if test ! -f Makefile.in; then
8447 echo "dir ." > .gdbinit
8448 echo "dir ${srcdir}" >> .gdbinit
8449 if test x$gdb_needs_out_file_path = xyes
8450 then
8451 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
8453 if test "x$subdirs" != x; then
8454 for s in $subdirs
8456 echo "dir ${srcdir}/$s" >> .gdbinit
8457 done
8459 echo "source ${srcdir}/.gdbinit" >> .gdbinit
8462 # Define variables host_canonical and build_canonical
8463 # because some Cygnus local changes in the Makefile depend on them.
8464 build_canonical=${build}
8465 host_canonical=${host}
8466 target_subdir=
8467 if test "${host}" != "${target}" ; then
8468 target_subdir=${target}/
8474 # If this is using newlib, then define inhibit_libc in
8475 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
8476 # libgcc.a, but that's OK because newib should have its own version of
8477 # assert.h.
8478 inhibit_libc=
8479 if test x$with_newlib = xyes; then
8480 inhibit_libc=-Dinhibit_libc
8484 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
8485 sched_prefix=
8486 sched_cflags=
8487 if test x$enable_haifa = xyes; then
8488 echo "Using the Haifa scheduler."
8489 sched_prefix=haifa-
8490 sched_cflags=-DHAIFA
8494 if test x$enable_haifa != x; then
8495 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
8496 for x in genattrtab.o toplev.o *sched.o; do
8497 if test -f $x; then
8498 echo "Removing $x"
8499 rm -f $x
8501 done
8504 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
8505 # absolute path for gcc_tooldir based on inserting the number of up-directory
8506 # movements required to get from $(exec_prefix) to $(prefix) into the basic
8507 # $(libsubdir)/@(unlibsubdir) based path.
8508 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
8509 # make and thus we'd get different behavior depending on where we built the
8510 # sources.
8511 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
8512 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
8513 else
8514 # An explanation of the sed strings:
8515 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
8516 # -e 's|/$||' match a trailing forward slash and eliminates it
8517 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
8518 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
8520 # (*) Note this pattern overwrites the first character of the string
8521 # with a forward slash if one is not already present. This is not a
8522 # problem because the exact names of the sub-directories concerned is
8523 # unimportant, just the number of them matters.
8525 # The practical upshot of these patterns is like this:
8527 # prefix exec_prefix result
8528 # ------ ----------- ------
8529 # /foo /foo/bar ../
8530 # /foo/ /foo/bar ../
8531 # /foo /foo/bar/ ../
8532 # /foo/ /foo/bar/ ../
8533 # /foo /foo/bar/ugg ../../
8535 dollar='$$'
8536 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
8541 # Nothing to do for FLOAT_H, float_format already handled.
8542 objdir=`pwd`
8545 # Process the language and host/target makefile fragments.
8546 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
8548 # Substitute configuration variables
8610 # Echo that links are built
8611 if test x$host = x$target
8612 then
8613 str1="native "
8614 else
8615 str1="cross-"
8616 str2=" from $host"
8619 if test x$host != x$build
8620 then
8621 str3=" on a $build system"
8624 if test "x$str2" != x || test "x$str3" != x
8625 then
8626 str4=
8629 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
8631 if test "x$str2" != x || test "x$str3" != x
8632 then
8633 echo " ${str2}${str3}." 1>&2
8636 # Truncate the target if necessary
8637 if test x$host_truncate_target != x; then
8638 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
8641 # Configure the subdirectories
8642 # AC_CONFIG_SUBDIRS($subdirs)
8644 # Create the Makefile
8645 # and configure language subdirectories
8646 trap '' 1 2 15
8647 cat > confcache <<\EOF
8648 # This file is a shell script that caches the results of configure
8649 # tests run on this system so they can be shared between configure
8650 # scripts and configure runs. It is not useful on other systems.
8651 # If it contains results you don't want to keep, you may remove or edit it.
8653 # By default, configure uses ./config.cache as the cache file,
8654 # creating it if it does not exist already. You can give configure
8655 # the --cache-file=FILE option to use a different cache file; that is
8656 # what configure does when it calls configure scripts in
8657 # subdirectories, so they share the cache.
8658 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8659 # config.status only pays attention to the cache file if you give it the
8660 # --recheck option to rerun configure.
8663 # The following way of writing the cache mishandles newlines in values,
8664 # but we know of no workaround that is simple, portable, and efficient.
8665 # So, don't put newlines in cache variables' values.
8666 # Ultrix sh set writes to stderr and can't be redirected directly,
8667 # and sets the high bit in the cache file unless we assign to the vars.
8668 (set) 2>&1 |
8669 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8670 *ac_space=\ *)
8671 # `set' does not quote correctly, so add quotes (double-quote substitution
8672 # turns \\\\ into \\, and sed turns \\ into \).
8673 sed -n \
8674 -e "s/'/'\\\\''/g" \
8675 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8678 # `set' quotes correctly as required by POSIX, so do not add quotes.
8679 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8681 esac >> confcache
8682 if cmp -s $cache_file confcache; then
8684 else
8685 if test -w $cache_file; then
8686 echo "updating cache $cache_file"
8687 cat confcache > $cache_file
8688 else
8689 echo "not updating unwritable cache $cache_file"
8692 rm -f confcache
8694 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8696 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8697 # Let make expand exec_prefix.
8698 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8700 # Any assignment to VPATH causes Sun make to only execute
8701 # the first set of double-colon rules, so remove it if not needed.
8702 # If there is a colon in the path, we need to keep it.
8703 if test "x$srcdir" = x.; then
8704 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8707 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8709 DEFS=-DHAVE_CONFIG_H
8711 # Without the "./", some shells look in PATH for config.status.
8712 : ${CONFIG_STATUS=./config.status}
8714 echo creating $CONFIG_STATUS
8715 rm -f $CONFIG_STATUS
8716 cat > $CONFIG_STATUS <<EOF
8717 #! /bin/sh
8718 # Generated automatically by configure.
8719 # Run this file to recreate the current configuration.
8720 # This directory was configured as follows,
8721 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8723 # $0 $ac_configure_args
8725 # Compiler output produced by configure, useful for debugging
8726 # configure, is in ./config.log if it exists.
8728 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8729 for ac_option
8731 case "\$ac_option" in
8732 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8733 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8734 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8735 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8736 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8737 exit 0 ;;
8738 -help | --help | --hel | --he | --h)
8739 echo "\$ac_cs_usage"; exit 0 ;;
8740 *) echo "\$ac_cs_usage"; exit 1 ;;
8741 esac
8742 done
8744 ac_given_srcdir=$srcdir
8746 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8748 cat >> $CONFIG_STATUS <<EOF
8750 # Protect against being on the right side of a sed subst in config.status.
8751 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8752 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8753 $ac_vpsub
8754 $extrasub
8755 s%@SHELL@%$SHELL%g
8756 s%@CFLAGS@%$CFLAGS%g
8757 s%@CPPFLAGS@%$CPPFLAGS%g
8758 s%@CXXFLAGS@%$CXXFLAGS%g
8759 s%@FFLAGS@%$FFLAGS%g
8760 s%@DEFS@%$DEFS%g
8761 s%@LDFLAGS@%$LDFLAGS%g
8762 s%@LIBS@%$LIBS%g
8763 s%@exec_prefix@%$exec_prefix%g
8764 s%@prefix@%$prefix%g
8765 s%@program_transform_name@%$program_transform_name%g
8766 s%@bindir@%$bindir%g
8767 s%@sbindir@%$sbindir%g
8768 s%@libexecdir@%$libexecdir%g
8769 s%@datadir@%$datadir%g
8770 s%@sysconfdir@%$sysconfdir%g
8771 s%@sharedstatedir@%$sharedstatedir%g
8772 s%@localstatedir@%$localstatedir%g
8773 s%@libdir@%$libdir%g
8774 s%@includedir@%$includedir%g
8775 s%@oldincludedir@%$oldincludedir%g
8776 s%@infodir@%$infodir%g
8777 s%@mandir@%$mandir%g
8778 s%@host@%$host%g
8779 s%@host_alias@%$host_alias%g
8780 s%@host_cpu@%$host_cpu%g
8781 s%@host_vendor@%$host_vendor%g
8782 s%@host_os@%$host_os%g
8783 s%@target@%$target%g
8784 s%@target_alias@%$target_alias%g
8785 s%@target_cpu@%$target_cpu%g
8786 s%@target_vendor@%$target_vendor%g
8787 s%@target_os@%$target_os%g
8788 s%@build@%$build%g
8789 s%@build_alias@%$build_alias%g
8790 s%@build_cpu@%$build_cpu%g
8791 s%@build_vendor@%$build_vendor%g
8792 s%@build_os@%$build_os%g
8793 s%@CC@%$CC%g
8794 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
8795 s%@SET_MAKE@%$SET_MAKE%g
8796 s%@AWK@%$AWK%g
8797 s%@LEX@%$LEX%g
8798 s%@LEXLIB@%$LEXLIB%g
8799 s%@LN@%$LN%g
8800 s%@LN_S@%$LN_S%g
8801 s%@RANLIB@%$RANLIB%g
8802 s%@YACC@%$YACC%g
8803 s%@INSTALL@%$INSTALL%g
8804 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8805 s%@INSTALL_DATA@%$INSTALL_DATA%g
8806 s%@CPP@%$CPP%g
8807 s%@gnat@%$gnat%g
8808 s%@vfprintf@%$vfprintf%g
8809 s%@doprint@%$doprint%g
8810 s%@manext@%$manext%g
8811 s%@objext@%$objext%g
8812 s%@PACKAGE@%$PACKAGE%g
8813 s%@VERSION@%$VERSION%g
8814 s%@ALLOCA@%$ALLOCA%g
8815 s%@USE_NLS@%$USE_NLS%g
8816 s%@MSGFMT@%$MSGFMT%g
8817 s%@GMSGFMT@%$GMSGFMT%g
8818 s%@XGETTEXT@%$XGETTEXT%g
8819 s%@GENCAT@%$GENCAT%g
8820 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8821 s%@CATALOGS@%$CATALOGS%g
8822 s%@CATOBJEXT@%$CATOBJEXT%g
8823 s%@DATADIRNAME@%$DATADIRNAME%g
8824 s%@GMOFILES@%$GMOFILES%g
8825 s%@INSTOBJEXT@%$INSTOBJEXT%g
8826 s%@INTLDEPS@%$INTLDEPS%g
8827 s%@INTLLIBS@%$INTLLIBS%g
8828 s%@INTLOBJS@%$INTLOBJS%g
8829 s%@POFILES@%$POFILES%g
8830 s%@POSUB@%$POSUB%g
8831 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
8832 s%@GT_NO@%$GT_NO%g
8833 s%@GT_YES@%$GT_YES%g
8834 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8835 s%@l@%$l%g
8836 s%@gthread_flags@%$gthread_flags%g
8837 s%@build_canonical@%$build_canonical%g
8838 s%@host_canonical@%$host_canonical%g
8839 s%@target_subdir@%$target_subdir%g
8840 s%@inhibit_libc@%$inhibit_libc%g
8841 s%@sched_prefix@%$sched_prefix%g
8842 s%@sched_cflags@%$sched_cflags%g
8843 s%@gcc_tooldir@%$gcc_tooldir%g
8844 s%@dollar@%$dollar%g
8845 s%@objdir@%$objdir%g
8846 s%@subdirs@%$subdirs%g
8847 s%@all_boot_languages@%$all_boot_languages%g
8848 s%@all_compilers@%$all_compilers%g
8849 s%@all_diff_excludes@%$all_diff_excludes%g
8850 s%@all_headers@%$all_headers%g
8851 s%@all_lang_makefiles@%$all_lang_makefiles%g
8852 s%@all_languages@%$all_languages%g
8853 s%@all_lib2funcs@%$all_lib2funcs%g
8854 s%@all_stagestuff@%$all_stagestuff%g
8855 s%@build_exeext@%$build_exeext%g
8856 s%@build_install_headers_dir@%$build_install_headers_dir%g
8857 s%@build_xm_file_list@%$build_xm_file_list%g
8858 s%@cc_set_by_configure@%$cc_set_by_configure%g
8859 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
8860 s%@cpp_install_dir@%$cpp_install_dir%g
8861 s%@cpp_main@%$cpp_main%g
8862 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
8863 s%@dep_tmake_file@%$dep_tmake_file%g
8864 s%@extra_c_flags@%$extra_c_flags%g
8865 s%@extra_c_objs@%$extra_c_objs%g
8866 s%@extra_cpp_objs@%$extra_cpp_objs%g
8867 s%@extra_cxx_objs@%$extra_cxx_objs%g
8868 s%@extra_headers_list@%$extra_headers_list%g
8869 s%@extra_objs@%$extra_objs%g
8870 s%@extra_parts@%$extra_parts%g
8871 s%@extra_passes@%$extra_passes%g
8872 s%@extra_programs@%$extra_programs%g
8873 s%@fixinc_defs@%$fixinc_defs%g
8874 s%@float_h_file@%$float_h_file%g
8875 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
8876 s%@gcc_version@%$gcc_version%g
8877 s%@gcc_version_trigger@%$gcc_version_trigger%g
8878 s%@host_exeext@%$host_exeext%g
8879 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
8880 s%@host_xm_file_list@%$host_xm_file_list%g
8881 s%@install@%$install%g
8882 s%@JAVAGC@%$JAVAGC%g
8883 s%@lang_options_files@%$lang_options_files%g
8884 s%@lang_specs_files@%$lang_specs_files%g
8885 s%@lang_tree_files@%$lang_tree_files%g
8886 s%@local_prefix@%$local_prefix%g
8887 s%@maybe_use_collect2@%$maybe_use_collect2%g
8888 s%@md_file@%$md_file%g
8889 s%@objc_boehm_gc@%$objc_boehm_gc%g
8890 s%@out_file@%$out_file%g
8891 s%@out_object_file@%$out_object_file%g
8892 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
8893 s%@symbolic_link@%$symbolic_link%g
8894 s%@thread_file@%$thread_file%g
8895 s%@tm_file_list@%$tm_file_list%g
8896 s%@will_use_collect2@%$will_use_collect2%g
8897 /@target_overrides@/r $target_overrides
8898 s%@target_overrides@%%g
8899 /@host_overrides@/r $host_overrides
8900 s%@host_overrides@%%g
8901 s%@cross_defines@%$cross_defines%g
8902 /@cross_overrides@/r $cross_overrides
8903 s%@cross_overrides@%%g
8904 /@build_overrides@/r $build_overrides
8905 s%@build_overrides@%%g
8906 /@language_fragments@/r $language_fragments
8907 s%@language_fragments@%%g
8908 /@language_hooks@/r $language_hooks
8909 s%@language_hooks@%%g
8911 CEOF
8914 cat >> $CONFIG_STATUS <<\EOF
8916 # Split the substitutions into bite-sized pieces for seds with
8917 # small command number limits, like on Digital OSF/1 and HP-UX.
8918 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8919 ac_file=1 # Number of current file.
8920 ac_beg=1 # First line for current file.
8921 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8922 ac_more_lines=:
8923 ac_sed_cmds=""
8924 while $ac_more_lines; do
8925 if test $ac_beg -gt 1; then
8926 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8927 else
8928 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8930 if test ! -s conftest.s$ac_file; then
8931 ac_more_lines=false
8932 rm -f conftest.s$ac_file
8933 else
8934 if test -z "$ac_sed_cmds"; then
8935 ac_sed_cmds="sed -f conftest.s$ac_file"
8936 else
8937 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8939 ac_file=`expr $ac_file + 1`
8940 ac_beg=$ac_end
8941 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8943 done
8944 if test -z "$ac_sed_cmds"; then
8945 ac_sed_cmds=cat
8949 cat >> $CONFIG_STATUS <<EOF
8951 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
8953 cat >> $CONFIG_STATUS <<\EOF
8954 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8955 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8956 case "$ac_file" in
8957 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8958 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8959 *) ac_file_in="${ac_file}.in" ;;
8960 esac
8962 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8964 # Remove last slash and all that follows it. Not all systems have dirname.
8965 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8966 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8967 # The file is in a subdirectory.
8968 test ! -d "$ac_dir" && mkdir "$ac_dir"
8969 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8970 # A "../" for each directory in $ac_dir_suffix.
8971 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8972 else
8973 ac_dir_suffix= ac_dots=
8976 case "$ac_given_srcdir" in
8977 .) srcdir=.
8978 if test -z "$ac_dots"; then top_srcdir=.
8979 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8980 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8981 *) # Relative path.
8982 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8983 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8984 esac
8987 echo creating "$ac_file"
8988 rm -f "$ac_file"
8989 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8990 case "$ac_file" in
8991 *Makefile*) ac_comsub="1i\\
8992 # $configure_input" ;;
8993 *) ac_comsub= ;;
8994 esac
8996 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8997 sed -e "$ac_comsub
8998 s%@configure_input@%$configure_input%g
8999 s%@srcdir@%$srcdir%g
9000 s%@top_srcdir@%$top_srcdir%g
9001 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9002 fi; done
9003 rm -f conftest.s*
9005 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9006 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9008 # ac_d sets the value in "#define NAME VALUE" lines.
9009 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9010 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9011 ac_dC='\3'
9012 ac_dD='%g'
9013 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9014 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9015 ac_uB='\([ ]\)%\1#\2define\3'
9016 ac_uC=' '
9017 ac_uD='\4%g'
9018 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9019 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9020 ac_eB='$%\1#\2define\3'
9021 ac_eC=' '
9022 ac_eD='%g'
9024 if test "${CONFIG_HEADERS+set}" != set; then
9026 cat >> $CONFIG_STATUS <<EOF
9027 CONFIG_HEADERS="auto-host.h:config.in"
9029 cat >> $CONFIG_STATUS <<\EOF
9031 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9032 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9033 case "$ac_file" in
9034 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9035 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9036 *) ac_file_in="${ac_file}.in" ;;
9037 esac
9039 echo creating $ac_file
9041 rm -f conftest.frag conftest.in conftest.out
9042 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9043 cat $ac_file_inputs > conftest.in
9047 # Transform confdefs.h into a sed script conftest.vals that substitutes
9048 # the proper values into config.h.in to produce config.h. And first:
9049 # Protect against being on the right side of a sed subst in config.status.
9050 # Protect against being in an unquoted here document in config.status.
9051 rm -f conftest.vals
9052 cat > conftest.hdr <<\EOF
9053 s/[\\&%]/\\&/g
9054 s%[\\$`]%\\&%g
9055 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9056 s%ac_d%ac_u%gp
9057 s%ac_u%ac_e%gp
9059 sed -n -f conftest.hdr confdefs.h > conftest.vals
9060 rm -f conftest.hdr
9062 # This sed command replaces #undef with comments. This is necessary, for
9063 # example, in the case of _POSIX_SOURCE, which is predefined and required
9064 # on some systems where configure will not decide to define it.
9065 cat >> conftest.vals <<\EOF
9066 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9069 # Break up conftest.vals because some shells have a limit on
9070 # the size of here documents, and old seds have small limits too.
9072 rm -f conftest.tail
9073 while :
9075 ac_lines=`grep -c . conftest.vals`
9076 # grep -c gives empty output for an empty file on some AIX systems.
9077 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9078 # Write a limited-size here document to conftest.frag.
9079 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9080 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9081 echo 'CEOF
9082 sed -f conftest.frag conftest.in > conftest.out
9083 rm -f conftest.in
9084 mv conftest.out conftest.in
9085 ' >> $CONFIG_STATUS
9086 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9087 rm -f conftest.vals
9088 mv conftest.tail conftest.vals
9089 done
9090 rm -f conftest.vals
9092 cat >> $CONFIG_STATUS <<\EOF
9093 rm -f conftest.frag conftest.h
9094 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9095 cat conftest.in >> conftest.h
9096 rm -f conftest.in
9097 if cmp -s $ac_file conftest.h 2>/dev/null; then
9098 echo "$ac_file is unchanged"
9099 rm -f conftest.h
9100 else
9101 # Remove last slash and all that follows it. Not all systems have dirname.
9102 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9103 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9104 # The file is in a subdirectory.
9105 test ! -d "$ac_dir" && mkdir "$ac_dir"
9107 rm -f $ac_file
9108 mv conftest.h $ac_file
9110 fi; done
9114 cat >> $CONFIG_STATUS <<EOF
9115 ac_sources="$nls_cv_header_libgt"
9116 ac_dests="$nls_cv_header_intl"
9119 cat >> $CONFIG_STATUS <<\EOF
9120 srcdir=$ac_given_srcdir
9121 while test -n "$ac_sources"; do
9122 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9123 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9125 echo "linking $srcdir/$ac_source to $ac_dest"
9127 if test ! -r $srcdir/$ac_source; then
9128 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9130 rm -f $ac_dest
9132 # Make relative symlinks.
9133 # Remove last slash and all that follows it. Not all systems have dirname.
9134 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
9135 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9136 # The dest file is in a subdirectory.
9137 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9138 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
9139 # A "../" for each directory in $ac_dest_dir_suffix.
9140 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
9141 else
9142 ac_dest_dir_suffix= ac_dots=
9145 case "$srcdir" in
9146 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9147 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9148 esac
9150 # Make a symlink if possible; otherwise try a hard link.
9151 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9152 ln $srcdir/$ac_source $ac_dest; then :
9153 else
9154 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9156 done
9158 cat >> $CONFIG_STATUS <<EOF
9161 host='${host}'
9162 build='${build}'
9163 target='${target}'
9164 target_alias='${target_alias}'
9165 srcdir='${srcdir}'
9166 subdirs='${subdirs}'
9167 oldstyle_subdirs='${oldstyle_subdirs}'
9168 symbolic_link='${symbolic_link}'
9169 program_transform_set='${program_transform_set}'
9170 program_transform_name='${program_transform_name}'
9171 dep_host_xmake_file='${dep_host_xmake_file}'
9172 host_xmake_file='${host_xmake_file}'
9173 dep_tmake_file='${dep_tmake_file}'
9174 tmake_file='${tmake_file}'
9175 thread_file='${thread_file}'
9176 gcc_version='${gcc_version}'
9177 gcc_version_trigger='${gcc_version_trigger}'
9178 local_prefix='${local_prefix}'
9179 build_install_headers_dir='${build_install_headers_dir}'
9180 build_exeext='${build_exeext}'
9181 host_exeext='${host_exeext}'
9182 out_file='${out_file}'
9183 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
9184 SET_MAKE='${SET_MAKE}'
9185 target_list='${target_list}'
9186 target_overrides='${target_overrides}'
9187 host_overrides='${host_overrides}'
9188 cross_defines='${cross_defines}'
9189 cross_overrides='${cross_overrides}'
9190 build_overrides='${build_overrides}'
9191 cpp_install_dir='${cpp_install_dir}'
9194 cat >> $CONFIG_STATUS <<\EOF
9195 case "$CONFIG_FILES" in *po/Makefile.in*)
9196 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
9197 esac
9199 . $srcdir/configure.lang
9200 case x$CONFIG_HEADERS in
9201 xauto-host.h:config.in)
9202 echo > cstamp-h ;;
9203 esac
9204 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
9205 # bootstrapping and the installation procedure can still use
9206 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
9207 # FLAGS_TO_PASS has been modified to solve the problem there.
9208 # This is virtually a duplicate of what happens in configure.lang; we do
9209 # an extra check to make sure this only happens if ln -s can be used.
9210 if test "$symbolic_link" = "ln -s"; then
9211 for d in .. ${subdirs} ; do
9212 if test $d != ..; then
9213 STARTDIR=`pwd`
9214 cd $d
9215 for t in stage1 stage2 stage3 stage4 include
9217 rm -f $t
9218 $symbolic_link ../$t $t 2>/dev/null
9219 done
9220 cd $STARTDIR
9222 done
9223 else true ; fi
9224 # Avoid having to add intl to our include paths.
9225 if test -f intl/libintl.h; then
9226 echo creating libintl.h
9227 echo '#include "intl/libintl.h"' >libintl.h
9230 exit 0
9232 chmod +x $CONFIG_STATUS
9233 rm -fr confdefs* $ac_clean_files
9234 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1