3 # $FreeBSD: src/contrib/gcc/configure,v 1.8.2.1 2001/04/10 19:23:03 obrien Exp $
4 # $DragonFly: src/contrib/gcc/Attic/configure,v 1.2 2003/06/17 04:23:59 dillon Exp $
6 # Guess values for system-dependent variables and create Makefiles.
7 # Generated automatically using autoconf version 2.13
8 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
15 ac_default_prefix=/usr/local
16 # Any additions from configure.in:
18 --with-gnu-ld arrange to work with GNU ld."
20 --with-ld arrange to use the specified ld (full pathname)."
22 --with-gnu-as arrange to work with GNU as."
24 --with-as arrange to use the specified as (full pathname)."
26 --with-stabs arrange to use stabs instead of host debug format."
28 --with-elf arrange to use ELF instead of host debug format."
30 --with-local-prefix=DIR specifies directory to put local include."
32 --with-gxx-include-dir=DIR
33 specifies directory to put g++ header files."
35 --enable-checking enable expensive run-time checks."
37 --disable-cpp don't provide a user-visible C preprocessor."
39 --with-cpp-install-dir=DIR
40 install the user visible C preprocessor in DIR
41 (relative to PREFIX) as well as PREFIX/bin."
43 --enable-cpplib use cpplib for the C preprocessor."
45 --enable-c-cpplib link cpplib directly into C and C++ compilers
46 (EXPERIMENTAL) (implies --enable-cpplib)."
48 --enable-c-mbchar enable multibyte characters for C and C++."
50 --disable-fast-fixincludes
51 Disable the new fast fixincludes.
52 Run the old fixincludes script unconditionally"
54 --enable-haifa use the experimental scheduler.
55 --disable-haifa don't use the experimental scheduler for the
56 targets which normally enable it."
58 --enable-threads enable thread usage for target GCC.
59 --enable-threads=LIB use LIB thread package for target GCC."
61 --enable-objc-gc enable the use of Boehm's garbage collector with
62 the GNU Objective-C runtime."
64 --enable-java-gc=TYPE choose garbage collector [boehm]"
66 --enable-dwarf2 enable DWARF2 debugging as default."
68 --enable-nls use Native Language Support (disabled by default).
69 EXPERIMENTAL, see ABOUT-GCC-NLS."
71 --disable-nls do not use Native Language Support"
73 --with-included-gettext use the GNU gettext library included here"
75 --with-catgets use catgets functions if available"
77 # Initialize some variables set by options.
78 # The variables have the same names as the options, with
79 # dashes changed to underlines.
81 cache_file=./config.cache
90 program_transform_name=s,x,x,
98 bindir='${exec_prefix}/bin'
99 sbindir='${exec_prefix}/sbin'
100 libexecdir='${exec_prefix}/libexec'
101 datadir='${prefix}/share'
102 sysconfdir='${prefix}/etc'
103 sharedstatedir='${prefix}/com'
104 localstatedir='${prefix}/var'
105 libdir='${exec_prefix}/lib'
106 includedir='${prefix}/include'
107 oldincludedir='/usr/include'
108 infodir='${prefix}/info'
109 mandir='${prefix}/man'
111 # Initialize some other variables.
114 SHELL=${CONFIG_SHELL-/bin/sh}
115 # Maximum number of lines to put in a shell here document.
122 # If the previous option needs an argument, assign it.
123 if test -n "$ac_prev"; then
124 eval "$ac_prev=\$ac_option"
130 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
134 # Accept the important Cygnus configure options, so we can diagnose typos.
138 -bindir | --bindir | --bindi | --bind | --bin | --bi)
140 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
141 bindir="$ac_optarg" ;;
143 -build | --build | --buil | --bui | --bu)
145 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
146 build="$ac_optarg" ;;
148 -cache-file | --cache-file | --cache-fil | --cache-fi \
149 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
150 ac_prev=cache_file ;;
151 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
152 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
153 cache_file="$ac_optarg" ;;
155 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
157 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
159 datadir="$ac_optarg" ;;
161 -disable-* | --disable-*)
162 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
163 # Reject names that are not valid shell variable names.
164 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
165 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
167 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
168 eval "enable_${ac_feature}=no" ;;
170 -enable-* | --enable-*)
171 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
172 # Reject names that are not valid shell variable names.
173 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
174 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
176 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
181 eval "enable_${ac_feature}='$ac_optarg'" ;;
183 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
184 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
185 | --exec | --exe | --ex)
186 ac_prev=exec_prefix ;;
187 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
188 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
189 | --exec=* | --exe=* | --ex=*)
190 exec_prefix="$ac_optarg" ;;
192 -gas | --gas | --ga | --g)
193 # Obsolete; use --with-gas.
196 -help | --help | --hel | --he)
197 # Omit some internal or obsolete options to make the list less imposing.
198 # This message is too long to be a string in the A/UX 3.1 sh.
200 Usage: configure [options] [host]
201 Options: [defaults in brackets after descriptions]
203 --cache-file=FILE cache test results in FILE
204 --help print this message
205 --no-create do not create output files
206 --quiet, --silent do not print \`checking...' messages
207 --version print the version of autoconf that created configure
208 Directory and file names:
209 --prefix=PREFIX install architecture-independent files in PREFIX
211 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
213 --bindir=DIR user executables in DIR [EPREFIX/bin]
214 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
215 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
216 --datadir=DIR read-only architecture-independent data in DIR
218 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
219 --sharedstatedir=DIR modifiable architecture-independent data in DIR
221 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
222 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
223 --includedir=DIR C header files in DIR [PREFIX/include]
224 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
225 --infodir=DIR info documentation in DIR [PREFIX/info]
226 --mandir=DIR man documentation in DIR [PREFIX/man]
227 --srcdir=DIR find the sources in DIR [configure dir or ..]
228 --program-prefix=PREFIX prepend PREFIX to installed program names
229 --program-suffix=SUFFIX append SUFFIX to installed program names
230 --program-transform-name=PROGRAM
231 run sed PROGRAM on installed program names
235 --build=BUILD configure for building on BUILD [BUILD=HOST]
236 --host=HOST configure for HOST [guessed]
237 --target=TARGET configure for TARGET [TARGET=HOST]
238 Features and packages:
239 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
240 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
241 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
242 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
243 --x-includes=DIR X include files are in DIR
244 --x-libraries=DIR X library files are in DIR
246 if test -n "$ac_help"; then
247 echo "--enable and --with options recognized:$ac_help"
251 -host | --host | --hos | --ho)
253 -host=* | --host=* | --hos=* | --ho=*)
256 -includedir | --includedir | --includedi | --included | --include \
257 | --includ | --inclu | --incl | --inc)
258 ac_prev=includedir ;;
259 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
260 | --includ=* | --inclu=* | --incl=* | --inc=*)
261 includedir="$ac_optarg" ;;
263 -infodir | --infodir | --infodi | --infod | --info | --inf)
265 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
266 infodir="$ac_optarg" ;;
268 -libdir | --libdir | --libdi | --libd)
270 -libdir=* | --libdir=* | --libdi=* | --libd=*)
271 libdir="$ac_optarg" ;;
273 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
274 | --libexe | --libex | --libe)
275 ac_prev=libexecdir ;;
276 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
277 | --libexe=* | --libex=* | --libe=*)
278 libexecdir="$ac_optarg" ;;
280 -localstatedir | --localstatedir | --localstatedi | --localstated \
281 | --localstate | --localstat | --localsta | --localst \
282 | --locals | --local | --loca | --loc | --lo)
283 ac_prev=localstatedir ;;
284 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
285 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
286 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
287 localstatedir="$ac_optarg" ;;
289 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
291 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
292 mandir="$ac_optarg" ;;
295 # Obsolete; use --without-fp.
298 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
302 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
303 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
306 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
307 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
308 | --oldin | --oldi | --old | --ol | --o)
309 ac_prev=oldincludedir ;;
310 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
311 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
312 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
313 oldincludedir="$ac_optarg" ;;
315 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
317 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
318 prefix="$ac_optarg" ;;
320 -program-prefix | --program-prefix | --program-prefi | --program-pref \
321 | --program-pre | --program-pr | --program-p)
322 ac_prev=program_prefix ;;
323 -program-prefix=* | --program-prefix=* | --program-prefi=* \
324 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
325 program_prefix="$ac_optarg" ;;
327 -program-suffix | --program-suffix | --program-suffi | --program-suff \
328 | --program-suf | --program-su | --program-s)
329 ac_prev=program_suffix ;;
330 -program-suffix=* | --program-suffix=* | --program-suffi=* \
331 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
332 program_suffix="$ac_optarg" ;;
334 -program-transform-name | --program-transform-name \
335 | --program-transform-nam | --program-transform-na \
336 | --program-transform-n | --program-transform- \
337 | --program-transform | --program-transfor \
338 | --program-transfo | --program-transf \
339 | --program-trans | --program-tran \
340 | --progr-tra | --program-tr | --program-t)
341 ac_prev=program_transform_name ;;
342 -program-transform-name=* | --program-transform-name=* \
343 | --program-transform-nam=* | --program-transform-na=* \
344 | --program-transform-n=* | --program-transform-=* \
345 | --program-transform=* | --program-transfor=* \
346 | --program-transfo=* | --program-transf=* \
347 | --program-trans=* | --program-tran=* \
348 | --progr-tra=* | --program-tr=* | --program-t=*)
349 program_transform_name="$ac_optarg" ;;
351 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
352 | -silent | --silent | --silen | --sile | --sil)
355 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
357 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
359 sbindir="$ac_optarg" ;;
361 -sharedstatedir | --sharedstatedir | --sharedstatedi \
362 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
363 | --sharedst | --shareds | --shared | --share | --shar \
365 ac_prev=sharedstatedir ;;
366 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
367 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
368 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
370 sharedstatedir="$ac_optarg" ;;
372 -site | --site | --sit)
374 -site=* | --site=* | --sit=*)
377 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
379 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
380 srcdir="$ac_optarg" ;;
382 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
383 | --syscon | --sysco | --sysc | --sys | --sy)
384 ac_prev=sysconfdir ;;
385 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
386 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
387 sysconfdir="$ac_optarg" ;;
389 -target | --target | --targe | --targ | --tar | --ta | --t)
391 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
392 target="$ac_optarg" ;;
394 -v | -verbose | --verbose | --verbos | --verbo | --verb)
397 -version | --version | --versio | --versi | --vers)
398 echo "configure generated by autoconf version 2.13"
402 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
403 # Reject names that are not valid shell variable names.
404 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
405 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
407 ac_package=`echo $ac_package| sed 's/-/_/g'`
412 eval "with_${ac_package}='$ac_optarg'" ;;
414 -without-* | --without-*)
415 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
416 # Reject names that are not valid shell variable names.
417 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
418 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
420 ac_package=`echo $ac_package| sed 's/-/_/g'`
421 eval "with_${ac_package}=no" ;;
424 # Obsolete; use --with-x.
427 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
428 | --x-incl | --x-inc | --x-in | --x-i)
429 ac_prev=x_includes ;;
430 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
431 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
432 x_includes="$ac_optarg" ;;
434 -x-libraries | --x-libraries | --x-librarie | --x-librari \
435 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
436 ac_prev=x_libraries ;;
437 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
438 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
439 x_libraries="$ac_optarg" ;;
441 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
445 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
446 echo "configure: warning: $ac_option: invalid host type" 1>&2
448 if test "x$nonopt" != xNONE; then
449 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
457 if test -n "$ac_prev"; then
458 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
461 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
463 # File descriptor usage:
466 # 2 errors and warnings
467 # 3 some systems may open it to /dev/tty
468 # 4 used on the Kubota Titan
469 # 6 checking for... messages and results
470 # 5 compiler messages saved in config.log
471 if test "$silent" = yes; then
479 This file contains any messages produced by compilers while
480 running configure, to aid debugging if configure makes a mistake.
483 # Strip out --no-create and --no-recursion so they do not pile up.
484 # Also quote any args containing shell metacharacters.
489 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490 | --no-cr | --no-c) ;;
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
493 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
494 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
495 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
500 # Only set these to C if already set. These must not be set unconditionally
501 # because not all systems understand e.g. LANG=C (notably SCO).
502 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
503 # Non-C LC_CTYPE values break the ctype check.
504 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
505 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
506 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
507 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
509 # confdefs.h avoids OS command line length limits that DEFS can exceed.
510 rm -rf conftest* confdefs.h
511 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
514 # A filename unique to this package, relative to the directory that
515 # configure is in, which we can look for to find out if srcdir is correct.
516 ac_unique_file=tree.c
518 # Find the source files, if location was not specified.
519 if test -z "$srcdir"; then
520 ac_srcdir_defaulted=yes
521 # Try the directory containing this script, then its parent.
523 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
524 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
526 if test ! -r $srcdir/$ac_unique_file; then
530 ac_srcdir_defaulted=no
532 if test ! -r $srcdir/$ac_unique_file; then
533 if test "$ac_srcdir_defaulted" = yes; then
534 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
536 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
539 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
541 # Prefer explicitly selected file to automatically selected ones.
542 if test -z "$CONFIG_SITE"; then
543 if test "x$prefix" != xNONE; then
544 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
546 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
549 for ac_site_file in $CONFIG_SITE; do
550 if test -r "$ac_site_file"; then
551 echo "loading site script $ac_site_file"
556 if test -r "$cache_file"; then
557 echo "loading cache $cache_file"
560 echo "creating cache $cache_file"
565 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
566 ac_cpp='$CPP $CPPFLAGS'
567 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
568 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
569 cross_compiling=$ac_cv_prog_cc_cross
573 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
574 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
575 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
582 ac_n= ac_c='\c' ac_t=
590 symbolic_link='ln -s'
593 # Check for bogus environment variables.
594 # Test if LIBRARY_PATH contains the notation for the current directory
595 # since this would lead to problems installing/building glibc.
596 # LIBRARY_PATH contains the current directory if one of the following
598 # - one of the terminals (":" and ";") is the first or last sign
599 # - two terminals occur directly after each other
600 # - the path contains an element with a dot in it
601 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
602 echo "configure:600: checking LIBRARY_PATH variable" >&5
603 case ${LIBRARY_PATH} in
604 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
605 library_path_setting="contains current directory"
608 library_path_setting="ok"
611 echo "$ac_t""$library_path_setting" 1>&6
612 if test "$library_path_setting" != "ok"; then
613 { echo "configure: error:
614 *** LIBRARY_PATH shouldn't contain the current directory when
615 *** building gcc. Please change the environment variable
616 *** and run configure again." 1>&2; exit 1; }
619 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
620 # since this would lead to problems installing/building glibc.
621 # GCC_EXEC_PREFIX contains the current directory if one of the following
623 # - one of the terminals (":" and ";") is the first or last sign
624 # - two terminals occur directly after each other
625 # - the path contains an element with a dot in it
626 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
627 echo "configure:625: checking GCC_EXEC_PREFIX variable" >&5
628 case ${GCC_EXEC_PREFIX} in
629 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
630 gcc_exec_prefix_setting="contains current directory"
633 gcc_exec_prefix_setting="ok"
636 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
637 if test "$gcc_exec_prefix_setting" != "ok"; then
638 { echo "configure: error:
639 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
640 *** building gcc. Please change the environment variable
641 *** and run configure again." 1>&2; exit 1; }
644 # Check for additional parameters
647 # Check whether --with-gnu-ld or --without-gnu-ld was given.
648 if test "${with_gnu_ld+set}" = set; then
649 withval="$with_gnu_ld"
650 gnu_ld_flag="$with_gnu_ld"
656 # With pre-defined ld
657 # Check whether --with-ld or --without-ld was given.
658 if test "${with_ld+set}" = set; then
660 DEFAULT_LINKER="$with_ld"
663 if test x"${DEFAULT_LINKER+set}" = x"set"; then
664 if test ! -x "$DEFAULT_LINKER"; then
665 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
666 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
669 cat >> confdefs.h <<EOF
670 #define DEFAULT_LINKER "$DEFAULT_LINKER"
676 # Check whether --with-gnu-as or --without-gnu-as was given.
677 if test "${with_gnu_as+set}" = set; then
678 withval="$with_gnu_as"
679 gas_flag="$with_gnu_as"
685 # Check whether --with-as or --without-as was given.
686 if test "${with_as+set}" = set; then
688 DEFAULT_ASSEMBLER="$with_as"
691 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
692 if test ! -x "$DEFAULT_ASSEMBLER"; then
693 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
694 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
697 cat >> confdefs.h <<EOF
698 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
704 # Check whether --with-stabs or --without-stabs was given.
705 if test "${with_stabs+set}" = set; then
706 withval="$with_stabs"
714 # Check whether --with-elf or --without-elf was given.
715 if test "${with_elf+set}" = set; then
723 # Specify the local prefix
725 # Check whether --with-local-prefix or --without-local-prefix was given.
726 if test "${with_local_prefix+set}" = set; then
727 withval="$with_local_prefix"
729 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
731 *) local_prefix=$with_local_prefix ;;
736 # Default local prefix if it is empty
737 if test x$local_prefix = x; then
738 local_prefix=/usr/local
741 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
742 # passed in by the toplevel make and thus we'd get different behavior
743 # depending on where we built the sources.
745 # Specify the g++ header file directory
746 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
747 if test "${with_gxx_include_dir+set}" = set; then
748 withval="$with_gxx_include_dir"
750 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
752 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
757 if test x${gcc_gxx_include_dir} = x; then
758 if test x${enable_version_specific_runtime_libs} = xyes; then
759 gcc_gxx_include_dir='${libsubdir}/include/g++'
761 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
762 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
766 # Enable expensive internal checks
767 # Check whether --enable-checking or --disable-checking was given.
768 if test "${enable_checking+set}" = set; then
769 enableval="$enable_checking"
770 case "${enableval}" in
771 yes) cat >> confdefs.h <<\EOF
772 #define ENABLE_CHECKING 1
776 *) { echo "configure: error: bad value ${enableval} given for checking option" 1>&2; exit 1; } ;;
781 # Check whether --enable-cpp or --disable-cpp was given.
782 if test "${enable_cpp+set}" = set; then
783 enableval="$enable_cpp"
790 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
791 if test "${with_cpp_install_dir+set}" = set; then
792 withval="$with_cpp_install_dir"
793 if test x$withval = xyes; then
794 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
795 elif test x$withval != xno; then
796 cpp_install_dir=$withval
801 # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
803 # Check whether --enable-cpplib or --disable-cpplib was given.
804 if test "${enable_cpplib+set}" = set; then
805 enableval="$enable_cpplib"
806 if test x$enable_cpplib != xno; then
812 # Link cpplib into the compiler proper, for C/C++/ObjC.
813 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
814 if test "${enable_c_cpplib+set}" = set; then
815 enableval="$enable_c_cpplib"
816 if test x$enable_c_cpplib != xno; then
817 extra_c_objs="${extra_c_objs} libcpp.a"
818 extra_cxx_objs="${extra_cxx_objs} ../libcpp.a"
819 extra_c_flags="${extra_c_flags} -DUSE_CPPLIB=1"
825 # Enable Multibyte Characters for C/C++
826 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
827 if test "${enable_c_mbchar+set}" = set; then
828 enableval="$enable_c_mbchar"
829 if test x$enable_c_mbchar != xno; then
830 extra_c_flags=-DMULTIBYTE_CHARS=1
835 # Disable fast fixincludes
836 # Check whether --enable-fast-fixincludes or --disable-fast-fixincludes was given.
837 if test "${enable_fast_fixincludes+set}" = set; then
838 enableval="$enable_fast_fixincludes"
839 if test x$enable_fast_fixincludes = xno ; then
840 cp $srcdir/fixincludes ./fixinc.sh
845 # Enable Haifa scheduler.
846 # Check whether --enable-haifa or --disable-haifa was given.
847 if test "${enable_haifa+set}" = set; then
848 enableval="$enable_haifa"
854 # Pass with no value to take the default
855 # Pass with a value to specify a thread package
856 # Check whether --enable-threads or --disable-threads was given.
857 if test "${enable_threads+set}" = set; then
858 enableval="$enable_threads"
859 if test x$enable_threads = xno; then
867 enable_threads_flag=$enable_threads
868 # Check if a valid thread package
869 case x${enable_threads_flag} in
872 target_thread_file='single'
876 target_thread_file=''
878 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
879 xsolaris | xwin32 | xdce | xvxworks)
880 target_thread_file=$enable_threads_flag
883 echo "$enable_threads is an unknown thread package" 1>&2
888 # Check whether --enable-objc-gc or --disable-objc-gc was given.
889 if test "${enable_objc_gc+set}" = set; then
890 enableval="$enable_objc_gc"
891 if [ x$enable_objc_gc = xno ]; then
901 # Check whether --enable-java-gc or --disable-java-gc was given.
902 if test "${enable_java_gc+set}" = set; then
903 enableval="$enable_java_gc"
911 # Check whether --with-dwarf2 or --without-dwarf2 was given.
912 if test "${with_dwarf2+set}" = set; then
913 withval="$with_dwarf2"
914 dwarf2="$with_dwarf2"
920 # Determine the host, build, and target systems
922 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
923 if test -f $ac_dir/install-sh; then
925 ac_install_sh="$ac_aux_dir/install-sh -c"
927 elif test -f $ac_dir/install.sh; then
929 ac_install_sh="$ac_aux_dir/install.sh -c"
933 if test -z "$ac_aux_dir"; then
934 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
936 ac_config_guess=$ac_aux_dir/config.guess
937 ac_config_sub=$ac_aux_dir/config.sub
938 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
941 # Do some error checking and defaulting for the host and target type.
943 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
946 # 1. You are not allowed to specify --host, --target, and nonopt at the
948 # 2. Host defaults to nonopt.
949 # 3. If nonopt is not specified, then host defaults to the current host,
950 # as determined by config.guess.
951 # 4. Target and build default to nonopt.
952 # 5. If nonopt is not specified, then target and build default to host.
954 # The aliases save the names the user supplied, while $host etc.
955 # will get canonicalized.
956 case $host---$target---$nonopt in
957 NONE---*---* | *---NONE---* | *---*---NONE) ;;
958 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
962 # Make sure we can run config.sub.
963 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
964 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
967 echo $ac_n "checking host system type""... $ac_c" 1>&6
968 echo "configure:966: checking host system type" >&5
971 case "$host_alias" in
975 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
976 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
978 *) host_alias=$nonopt ;;
982 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
983 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
984 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
985 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
986 echo "$ac_t""$host" 1>&6
988 echo $ac_n "checking target system type""... $ac_c" 1>&6
989 echo "configure:987: checking target system type" >&5
992 case "$target_alias" in
995 NONE) target_alias=$host_alias ;;
996 *) target_alias=$nonopt ;;
1000 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1001 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1002 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1003 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1004 echo "$ac_t""$target" 1>&6
1006 echo $ac_n "checking build system type""... $ac_c" 1>&6
1007 echo "configure:1005: checking build system type" >&5
1010 case "$build_alias" in
1013 NONE) build_alias=$host_alias ;;
1014 *) build_alias=$nonopt ;;
1018 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1019 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1020 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1021 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1022 echo "$ac_t""$build" 1>&6
1024 test "$host_alias" != "$target_alias" &&
1025 test "$program_prefix$program_suffix$program_transform_name" = \
1027 program_prefix=${target_alias}-
1030 # Find the native compiler
1031 # Extract the first word of "gcc", so it can be a program name with args.
1032 set dummy gcc; ac_word=$2
1033 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1034 echo "configure:1032: checking for $ac_word" >&5
1035 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1036 echo $ac_n "(cached) $ac_c" 1>&6
1038 if test -n "$CC"; then
1039 ac_cv_prog_CC="$CC" # Let the user override the test.
1041 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1043 for ac_dir in $ac_dummy; do
1044 test -z "$ac_dir" && ac_dir=.
1045 if test -f $ac_dir/$ac_word; then
1054 if test -n "$CC"; then
1055 echo "$ac_t""$CC" 1>&6
1057 echo "$ac_t""no" 1>&6
1060 if test -z "$CC"; then
1061 # Extract the first word of "cc", so it can be a program name with args.
1062 set dummy cc; ac_word=$2
1063 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1064 echo "configure:1062: checking for $ac_word" >&5
1065 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1066 echo $ac_n "(cached) $ac_c" 1>&6
1068 if test -n "$CC"; then
1069 ac_cv_prog_CC="$CC" # Let the user override the test.
1071 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1074 for ac_dir in $ac_dummy; do
1075 test -z "$ac_dir" && ac_dir=.
1076 if test -f $ac_dir/$ac_word; then
1077 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1078 ac_prog_rejected=yes
1086 if test $ac_prog_rejected = yes; then
1087 # We found a bogon in the path, so make sure we never use it.
1088 set dummy $ac_cv_prog_CC
1090 if test $# -gt 0; then
1091 # We chose a different compiler from the bogus one.
1092 # However, it has the same basename, so the bogon will be chosen
1093 # first if we set CC to just the basename; use the full file name.
1095 set dummy "$ac_dir/$ac_word" "$@"
1103 if test -n "$CC"; then
1104 echo "$ac_t""$CC" 1>&6
1106 echo "$ac_t""no" 1>&6
1109 if test -z "$CC"; then
1110 case "`uname -s`" in
1112 # Extract the first word of "cl", so it can be a program name with args.
1113 set dummy cl; ac_word=$2
1114 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1115 echo "configure:1113: checking for $ac_word" >&5
1116 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1117 echo $ac_n "(cached) $ac_c" 1>&6
1119 if test -n "$CC"; then
1120 ac_cv_prog_CC="$CC" # Let the user override the test.
1122 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1124 for ac_dir in $ac_dummy; do
1125 test -z "$ac_dir" && ac_dir=.
1126 if test -f $ac_dir/$ac_word; then
1135 if test -n "$CC"; then
1136 echo "$ac_t""$CC" 1>&6
1138 echo "$ac_t""no" 1>&6
1143 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1146 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1147 echo "configure:1145: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1150 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1151 ac_cpp='$CPP $CPPFLAGS'
1152 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1153 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1154 cross_compiling=$ac_cv_prog_cc_cross
1156 cat > conftest.$ac_ext << EOF
1158 #line 1156 "configure"
1159 #include "confdefs.h"
1163 if { (eval echo configure:1161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1164 ac_cv_prog_cc_works=yes
1165 # If we can't run a trivial program, we are probably using a cross compiler.
1166 if (./conftest; exit) 2>/dev/null; then
1167 ac_cv_prog_cc_cross=no
1169 ac_cv_prog_cc_cross=yes
1172 echo "configure: failed program was:" >&5
1173 cat conftest.$ac_ext >&5
1174 ac_cv_prog_cc_works=no
1178 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1179 ac_cpp='$CPP $CPPFLAGS'
1180 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1181 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1182 cross_compiling=$ac_cv_prog_cc_cross
1184 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1185 if test $ac_cv_prog_cc_works = no; then
1186 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1188 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1189 echo "configure:1187: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1190 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1191 cross_compiling=$ac_cv_prog_cc_cross
1193 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1194 echo "configure:1192: checking whether we are using GNU C" >&5
1195 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1196 echo $ac_n "(cached) $ac_c" 1>&6
1198 cat > conftest.c <<EOF
1203 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1210 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1212 if test $ac_cv_prog_gcc = yes; then
1218 ac_test_CFLAGS="${CFLAGS+set}"
1219 ac_save_CFLAGS="$CFLAGS"
1221 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1222 echo "configure:1220: checking whether ${CC-cc} accepts -g" >&5
1223 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1224 echo $ac_n "(cached) $ac_c" 1>&6
1226 echo 'void f(){}' > conftest.c
1227 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1236 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1237 if test "$ac_test_CFLAGS" = set; then
1238 CFLAGS="$ac_save_CFLAGS"
1239 elif test $ac_cv_prog_cc_g = yes; then
1240 if test "$GCC" = yes; then
1246 if test "$GCC" = yes; then
1254 # If the native compiler is GCC, we can enable warnings even in stage1.
1255 # That's useful for people building cross-compilers, or just running a
1257 if test "x$GCC" = "xyes"; then
1258 stage1_warn_cflags='$(WARN_CFLAGS)'
1260 stage1_warn_cflags=""
1264 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1265 echo "configure:1263: checking whether ${MAKE-make} sets \${MAKE}" >&5
1266 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1267 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1268 echo $ac_n "(cached) $ac_c" 1>&6
1270 cat > conftestmake <<\EOF
1272 @echo 'ac_maketemp="${MAKE}"'
1274 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1275 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1276 if test -n "$ac_maketemp"; then
1277 eval ac_cv_prog_make_${ac_make}_set=yes
1279 eval ac_cv_prog_make_${ac_make}_set=no
1283 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1284 echo "$ac_t""yes" 1>&6
1287 echo "$ac_t""no" 1>&6
1288 SET_MAKE="MAKE=${MAKE-make}"
1292 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1293 echo "configure:1291: checking whether a default assembler was specified" >&5
1294 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1295 if test x"$gas_flag" = x"no"; then
1296 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1298 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1301 echo "$ac_t""no" 1>&6
1304 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1305 echo "configure:1303: checking whether a default linker was specified" >&5
1306 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1307 if test x"$gnu_ld_flag" = x"no"; then
1308 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1310 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1313 echo "$ac_t""no" 1>&6
1316 # Find some useful tools
1317 for ac_prog in gawk mawk nawk awk
1319 # Extract the first word of "$ac_prog", so it can be a program name with args.
1320 set dummy $ac_prog; ac_word=$2
1321 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1322 echo "configure:1320: checking for $ac_word" >&5
1323 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1326 if test -n "$AWK"; then
1327 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1329 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1331 for ac_dir in $ac_dummy; do
1332 test -z "$ac_dir" && ac_dir=.
1333 if test -f $ac_dir/$ac_word; then
1334 ac_cv_prog_AWK="$ac_prog"
1341 AWK="$ac_cv_prog_AWK"
1342 if test -n "$AWK"; then
1343 echo "$ac_t""$AWK" 1>&6
1345 echo "$ac_t""no" 1>&6
1348 test -n "$AWK" && break
1351 # Extract the first word of "flex", so it can be a program name with args.
1352 set dummy flex; ac_word=$2
1353 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1354 echo "configure:1352: checking for $ac_word" >&5
1355 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1356 echo $ac_n "(cached) $ac_c" 1>&6
1358 if test -n "$LEX"; then
1359 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1361 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1363 for ac_dir in $ac_dummy; do
1364 test -z "$ac_dir" && ac_dir=.
1365 if test -f $ac_dir/$ac_word; then
1366 ac_cv_prog_LEX="flex"
1371 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1374 LEX="$ac_cv_prog_LEX"
1375 if test -n "$LEX"; then
1376 echo "$ac_t""$LEX" 1>&6
1378 echo "$ac_t""no" 1>&6
1381 if test -z "$LEXLIB"
1387 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1388 echo "configure:1386: checking for yywrap in -l$ac_lib" >&5
1389 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1390 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1391 echo $ac_n "(cached) $ac_c" 1>&6
1393 ac_save_LIBS="$LIBS"
1394 LIBS="-l$ac_lib $LIBS"
1395 cat > conftest.$ac_ext <<EOF
1396 #line 1394 "configure"
1397 #include "confdefs.h"
1398 /* Override any gcc2 internal prototype to avoid an error. */
1399 /* We use char because int might match the return type of a gcc2
1400 builtin and then its argument prototype would still apply. */
1407 if { (eval echo configure:1405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1409 eval "ac_cv_lib_$ac_lib_var=yes"
1411 echo "configure: failed program was:" >&5
1412 cat conftest.$ac_ext >&5
1414 eval "ac_cv_lib_$ac_lib_var=no"
1417 LIBS="$ac_save_LIBS"
1420 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1421 echo "$ac_t""yes" 1>&6
1424 echo "$ac_t""no" 1>&6
1429 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1430 echo "configure:1428: checking whether ln works" >&5
1431 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1432 echo $ac_n "(cached) $ac_c" 1>&6
1434 rm -f conftestdata_t
1435 echo >conftestdata_f
1436 if ln conftestdata_f conftestdata_t 2>/dev/null
1440 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1442 gcc_cv_prog_LN="ln -s"
1447 rm -f conftestdata_f conftestdata_t
1450 LN="$gcc_cv_prog_LN"
1451 if test "$gcc_cv_prog_LN" = "ln"; then
1452 echo "$ac_t""yes" 1>&6
1454 if test "$gcc_cv_prog_LN" = "ln -s"; then
1455 echo "$ac_t""no, using ln -s" 1>&6
1457 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1461 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1462 echo "configure:1460: checking whether ln -s works" >&5
1463 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1464 echo $ac_n "(cached) $ac_c" 1>&6
1466 rm -f conftestdata_t
1467 echo >conftestdata_f
1468 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1470 gcc_cv_prog_LN_S="ln -s"
1472 if ln conftestdata_f conftestdata_t 2>/dev/null
1479 rm -f conftestdata_f conftestdata_t
1482 LN_S="$gcc_cv_prog_LN_S"
1483 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1484 echo "$ac_t""yes" 1>&6
1486 if test "$gcc_cv_prog_LN_S" = "ln"; then
1487 echo "$ac_t""no, using ln" 1>&6
1489 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1493 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1494 echo "configure:1492: checking for volatile" >&5
1495 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1496 echo $ac_n "(cached) $ac_c" 1>&6
1498 cat > conftest.$ac_ext <<EOF
1499 #line 1497 "configure"
1500 #include "confdefs.h"
1506 if { (eval echo configure:1504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1508 gcc_cv_c_volatile=yes
1510 echo "configure: failed program was:" >&5
1511 cat conftest.$ac_ext >&5
1513 gcc_cv_c_volatile=no
1518 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1519 if test $gcc_cv_c_volatile = yes ; then
1520 cat >> confdefs.h <<\EOF
1521 #define HAVE_VOLATILE 1
1526 # Extract the first word of "ranlib", so it can be a program name with args.
1527 set dummy ranlib; ac_word=$2
1528 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1529 echo "configure:1527: checking for $ac_word" >&5
1530 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1531 echo $ac_n "(cached) $ac_c" 1>&6
1533 if test -n "$RANLIB"; then
1534 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1536 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1538 for ac_dir in $ac_dummy; do
1539 test -z "$ac_dir" && ac_dir=.
1540 if test -f $ac_dir/$ac_word; then
1541 ac_cv_prog_RANLIB="ranlib"
1546 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1549 RANLIB="$ac_cv_prog_RANLIB"
1550 if test -n "$RANLIB"; then
1551 echo "$ac_t""$RANLIB" 1>&6
1553 echo "$ac_t""no" 1>&6
1556 for ac_prog in 'bison -y' byacc
1558 # Extract the first word of "$ac_prog", so it can be a program name with args.
1559 set dummy $ac_prog; ac_word=$2
1560 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1561 echo "configure:1559: checking for $ac_word" >&5
1562 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1563 echo $ac_n "(cached) $ac_c" 1>&6
1565 if test -n "$YACC"; then
1566 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1568 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1570 for ac_dir in $ac_dummy; do
1571 test -z "$ac_dir" && ac_dir=.
1572 if test -f $ac_dir/$ac_word; then
1573 ac_cv_prog_YACC="$ac_prog"
1580 YACC="$ac_cv_prog_YACC"
1581 if test -n "$YACC"; then
1582 echo "$ac_t""$YACC" 1>&6
1584 echo "$ac_t""no" 1>&6
1587 test -n "$YACC" && break
1589 test -n "$YACC" || YACC="yacc"
1591 # Find a good install program. We prefer a C program (faster),
1592 # so one script is as good as another. But avoid the broken or
1593 # incompatible versions:
1594 # SysV /etc/install, /usr/sbin/install
1595 # SunOS /usr/etc/install
1596 # IRIX /sbin/install
1598 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1599 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1600 # ./install, which can be erroneously created by make from ./install.sh.
1601 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1602 echo "configure:1600: checking for a BSD compatible install" >&5
1603 if test -z "$INSTALL"; then
1604 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1605 echo $ac_n "(cached) $ac_c" 1>&6
1607 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1608 for ac_dir in $PATH; do
1609 # Account for people who put trailing slashes in PATH elements.
1611 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1613 # OSF1 and SCO ODT 3.0 have their own names for install.
1614 for ac_prog in ginstall scoinst install; do
1615 if test -f $ac_dir/$ac_prog; then
1616 if test $ac_prog = install &&
1617 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1618 # AIX install. It has an incompatible calling convention.
1619 # OSF/1 installbsd also uses dspmsg, but is usable.
1622 ac_cv_path_install="$ac_dir/$ac_prog -c"
1633 if test "${ac_cv_path_install+set}" = set; then
1634 INSTALL="$ac_cv_path_install"
1636 # As a last resort, use the slow shell script. We don't cache a
1637 # path for INSTALL within a source directory, because that will
1638 # break other packages using the cache if that directory is
1639 # removed, or if the path is relative.
1640 INSTALL="$ac_install_sh"
1643 echo "$ac_t""$INSTALL" 1>&6
1645 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1646 # It thinks the first close brace ends the variable substitution.
1647 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1649 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1652 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1653 echo "configure:1651: checking how to run the C preprocessor" >&5
1654 # On Suns, sometimes $CPP names a directory.
1655 if test -n "$CPP" && test -d "$CPP"; then
1658 if test -z "$CPP"; then
1659 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1660 echo $ac_n "(cached) $ac_c" 1>&6
1662 # This must be in double quotes, not single quotes, because CPP may get
1663 # substituted into the Makefile and "${CC-cc}" will confuse make.
1665 # On the NeXT, cc -E runs the code through the compiler's parser,
1666 # not just through cpp.
1667 cat > conftest.$ac_ext <<EOF
1668 #line 1666 "configure"
1669 #include "confdefs.h"
1673 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1674 { (eval echo configure:1672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1675 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1676 if test -z "$ac_err"; then
1680 echo "configure: failed program was:" >&5
1681 cat conftest.$ac_ext >&5
1683 CPP="${CC-cc} -E -traditional-cpp"
1684 cat > conftest.$ac_ext <<EOF
1685 #line 1683 "configure"
1686 #include "confdefs.h"
1690 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1691 { (eval echo configure:1689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1692 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1693 if test -z "$ac_err"; then
1697 echo "configure: failed program was:" >&5
1698 cat conftest.$ac_ext >&5
1700 CPP="${CC-cc} -nologo -E"
1701 cat > conftest.$ac_ext <<EOF
1702 #line 1700 "configure"
1703 #include "confdefs.h"
1707 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1708 { (eval echo configure:1706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1709 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1710 if test -z "$ac_err"; then
1714 echo "configure: failed program was:" >&5
1715 cat conftest.$ac_ext >&5
1724 ac_cv_prog_CPP="$CPP"
1726 CPP="$ac_cv_prog_CPP"
1728 ac_cv_prog_CPP="$CPP"
1730 echo "$ac_t""$CPP" 1>&6
1732 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1733 echo "configure:1731: checking for ANSI C header files" >&5
1734 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1735 echo $ac_n "(cached) $ac_c" 1>&6
1737 cat > conftest.$ac_ext <<EOF
1738 #line 1736 "configure"
1739 #include "confdefs.h"
1745 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1746 { (eval echo configure:1744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1747 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1748 if test -z "$ac_err"; then
1750 ac_cv_header_stdc=yes
1753 echo "configure: failed program was:" >&5
1754 cat conftest.$ac_ext >&5
1756 ac_cv_header_stdc=no
1760 if test $ac_cv_header_stdc = yes; then
1761 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1762 cat > conftest.$ac_ext <<EOF
1763 #line 1761 "configure"
1764 #include "confdefs.h"
1767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1768 egrep "memchr" >/dev/null 2>&1; then
1772 ac_cv_header_stdc=no
1778 if test $ac_cv_header_stdc = yes; then
1779 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1780 cat > conftest.$ac_ext <<EOF
1781 #line 1779 "configure"
1782 #include "confdefs.h"
1785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1786 egrep "free" >/dev/null 2>&1; then
1790 ac_cv_header_stdc=no
1796 if test $ac_cv_header_stdc = yes; then
1797 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1798 if test "$cross_compiling" = yes; then
1801 cat > conftest.$ac_ext <<EOF
1802 #line 1800 "configure"
1803 #include "confdefs.h"
1805 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1806 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1807 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1808 int main () { int i; for (i = 0; i < 256; i++)
1809 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1813 if { (eval echo configure:1811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1817 echo "configure: failed program was:" >&5
1818 cat conftest.$ac_ext >&5
1820 ac_cv_header_stdc=no
1828 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1829 if test $ac_cv_header_stdc = yes; then
1830 cat >> confdefs.h <<\EOF
1831 #define STDC_HEADERS 1
1836 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1837 echo "configure:1835: checking whether time.h and sys/time.h may both be included" >&5
1838 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1839 echo $ac_n "(cached) $ac_c" 1>&6
1841 cat > conftest.$ac_ext <<EOF
1842 #line 1840 "configure"
1843 #include "confdefs.h"
1844 #include <sys/types.h>
1845 #include <sys/time.h>
1851 if { (eval echo configure:1849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1853 ac_cv_header_time=yes
1855 echo "configure: failed program was:" >&5
1856 cat conftest.$ac_ext >&5
1858 ac_cv_header_time=no
1863 echo "$ac_t""$ac_cv_header_time" 1>&6
1864 if test $ac_cv_header_time = yes; then
1865 cat >> confdefs.h <<\EOF
1866 #define TIME_WITH_SYS_TIME 1
1871 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
1872 echo "configure:1870: checking whether string.h and strings.h may both be included" >&5
1873 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
1874 echo $ac_n "(cached) $ac_c" 1>&6
1876 cat > conftest.$ac_ext <<EOF
1877 #line 1875 "configure"
1878 #include "confdefs.h"
1880 #include <strings.h>
1885 if { (eval echo configure:1883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1887 gcc_cv_header_string=yes
1889 echo "configure: failed program was:" >&5
1890 cat conftest.$ac_ext >&5
1892 gcc_cv_header_string=no
1897 echo "$ac_t""$gcc_cv_header_string" 1>&6
1898 if test $gcc_cv_header_string = yes; then
1899 cat >> confdefs.h <<\EOF
1900 #define STRING_WITH_STRINGS 1
1905 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1906 echo "configure:1904: checking for sys/wait.h that is POSIX.1 compatible" >&5
1907 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1908 echo $ac_n "(cached) $ac_c" 1>&6
1910 cat > conftest.$ac_ext <<EOF
1911 #line 1909 "configure"
1912 #include "confdefs.h"
1913 #include <sys/types.h>
1914 #include <sys/wait.h>
1916 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1919 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1924 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1927 if { (eval echo configure:1925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1929 ac_cv_header_sys_wait_h=yes
1931 echo "configure: failed program was:" >&5
1932 cat conftest.$ac_ext >&5
1934 ac_cv_header_sys_wait_h=no
1939 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1940 if test $ac_cv_header_sys_wait_h = yes; then
1941 cat >> confdefs.h <<\EOF
1942 #define HAVE_SYS_WAIT_H 1
1947 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
1949 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1950 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1951 echo "configure:1949: checking for $ac_hdr" >&5
1952 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1953 echo $ac_n "(cached) $ac_c" 1>&6
1955 cat > conftest.$ac_ext <<EOF
1956 #line 1954 "configure"
1957 #include "confdefs.h"
1960 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1961 { (eval echo configure:1959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1962 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1963 if test -z "$ac_err"; then
1965 eval "ac_cv_header_$ac_safe=yes"
1968 echo "configure: failed program was:" >&5
1969 cat conftest.$ac_ext >&5
1971 eval "ac_cv_header_$ac_safe=no"
1975 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1976 echo "$ac_t""yes" 1>&6
1977 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1978 cat >> confdefs.h <<EOF
1979 #define $ac_tr_hdr 1
1983 echo "$ac_t""no" 1>&6
1988 # Check for thread headers.
1989 ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'`
1990 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
1991 echo "configure:1989: checking for thread.h" >&5
1992 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1993 echo $ac_n "(cached) $ac_c" 1>&6
1995 cat > conftest.$ac_ext <<EOF
1996 #line 1994 "configure"
1997 #include "confdefs.h"
2000 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2001 { (eval echo configure:1999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2002 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2003 if test -z "$ac_err"; then
2005 eval "ac_cv_header_$ac_safe=yes"
2008 echo "configure: failed program was:" >&5
2009 cat conftest.$ac_ext >&5
2011 eval "ac_cv_header_$ac_safe=no"
2015 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2016 echo "$ac_t""yes" 1>&6
2019 echo "$ac_t""no" 1>&6
2023 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2024 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2025 echo "configure:2023: checking for pthread.h" >&5
2026 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2027 echo $ac_n "(cached) $ac_c" 1>&6
2029 cat > conftest.$ac_ext <<EOF
2030 #line 2028 "configure"
2031 #include "confdefs.h"
2032 #include <pthread.h>
2034 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2035 { (eval echo configure:2033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2036 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2037 if test -z "$ac_err"; then
2039 eval "ac_cv_header_$ac_safe=yes"
2042 echo "configure: failed program was:" >&5
2043 cat conftest.$ac_ext >&5
2045 eval "ac_cv_header_$ac_safe=no"
2049 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2050 echo "$ac_t""yes" 1>&6
2053 echo "$ac_t""no" 1>&6
2058 # See if GNAT has been installed
2059 # Extract the first word of "gnatbind", so it can be a program name with args.
2060 set dummy gnatbind; ac_word=$2
2061 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2062 echo "configure:2060: checking for $ac_word" >&5
2063 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2064 echo $ac_n "(cached) $ac_c" 1>&6
2066 if test -n "$gnat"; then
2067 ac_cv_prog_gnat="$gnat" # Let the user override the test.
2069 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2071 for ac_dir in $ac_dummy; do
2072 test -z "$ac_dir" && ac_dir=.
2073 if test -f $ac_dir/$ac_word; then
2074 ac_cv_prog_gnat="yes"
2079 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat="no"
2082 gnat="$ac_cv_prog_gnat"
2083 if test -n "$gnat"; then
2084 echo "$ac_t""$gnat" 1>&6
2086 echo "$ac_t""no" 1>&6
2090 # See if the system preprocessor understands the ANSI C preprocessor
2091 # stringification operator.
2092 echo $ac_n "checking whether cpp understands the stringify operator""... $ac_c" 1>&6
2093 echo "configure:2091: checking whether cpp understands the stringify operator" >&5
2094 if eval "test \"`echo '$''{'gcc_cv_c_have_stringify'+set}'`\" = set"; then
2095 echo $ac_n "(cached) $ac_c" 1>&6
2097 cat > conftest.$ac_ext <<EOF
2098 #line 2096 "configure"
2099 #include "confdefs.h"
2103 char *test = S(foo);
2106 if { (eval echo configure:2104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2108 gcc_cv_c_have_stringify=yes
2110 echo "configure: failed program was:" >&5
2111 cat conftest.$ac_ext >&5
2113 gcc_cv_c_have_stringify=no
2118 echo "$ac_t""$gcc_cv_c_have_stringify" 1>&6
2119 if test $gcc_cv_c_have_stringify = yes; then
2120 cat >> confdefs.h <<\EOF
2121 #define HAVE_CPP_STRINGIFY 1
2126 # Use <inttypes.h> only if it exists,
2127 # doesn't clash with <sys/types.h>, and declares intmax_t.
2128 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2129 echo "configure:2127: checking for inttypes.h" >&5
2130 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2131 echo $ac_n "(cached) $ac_c" 1>&6
2133 cat > conftest.$ac_ext <<EOF
2134 #line 2132 "configure"
2135 #include "confdefs.h"
2136 #include <sys/types.h>
2137 #include <inttypes.h>
2142 if { (eval echo configure:2140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2144 gcc_cv_header_inttypes_h=yes
2146 echo "configure: failed program was:" >&5
2147 cat conftest.$ac_ext >&5
2149 gcc_cv_header_inttypes_h=no
2154 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2155 if test $gcc_cv_header_inttypes_h = yes; then
2156 cat >> confdefs.h <<\EOF
2157 #define HAVE_INTTYPES_H 1
2162 for ac_func in strtoul bsearch strerror putenv popen bcopy bzero bcmp \
2163 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
2164 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2167 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2168 echo "configure:2166: checking for $ac_func" >&5
2169 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2170 echo $ac_n "(cached) $ac_c" 1>&6
2172 cat > conftest.$ac_ext <<EOF
2173 #line 2171 "configure"
2174 #include "confdefs.h"
2175 /* System header to define __stub macros and hopefully few prototypes,
2176 which can conflict with char $ac_func(); below. */
2178 /* Override any gcc2 internal prototype to avoid an error. */
2179 /* We use char because int might match the return type of a gcc2
2180 builtin and then its argument prototype would still apply. */
2185 /* The GNU C library defines this for functions which it implements
2186 to always fail with ENOSYS. Some functions are actually named
2187 something starting with __ and the normal name is an alias. */
2188 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2196 if { (eval echo configure:2194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2198 eval "ac_cv_func_$ac_func=yes"
2200 echo "configure: failed program was:" >&5
2201 cat conftest.$ac_ext >&5
2203 eval "ac_cv_func_$ac_func=no"
2208 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2209 echo "$ac_t""yes" 1>&6
2210 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2211 cat >> confdefs.h <<EOF
2212 #define $ac_tr_func 1
2216 echo "$ac_t""no" 1>&6
2221 # Make sure wchar_t is available
2222 #AC_CHECK_TYPE(wchar_t, unsigned int)
2224 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2225 echo "configure:2223: checking for vprintf" >&5
2226 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2227 echo $ac_n "(cached) $ac_c" 1>&6
2229 cat > conftest.$ac_ext <<EOF
2230 #line 2228 "configure"
2231 #include "confdefs.h"
2232 /* System header to define __stub macros and hopefully few prototypes,
2233 which can conflict with char vprintf(); below. */
2235 /* Override any gcc2 internal prototype to avoid an error. */
2236 /* We use char because int might match the return type of a gcc2
2237 builtin and then its argument prototype would still apply. */
2242 /* The GNU C library defines this for functions which it implements
2243 to always fail with ENOSYS. Some functions are actually named
2244 something starting with __ and the normal name is an alias. */
2245 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2253 if { (eval echo configure:2251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2255 eval "ac_cv_func_vprintf=yes"
2257 echo "configure: failed program was:" >&5
2258 cat conftest.$ac_ext >&5
2260 eval "ac_cv_func_vprintf=no"
2265 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2266 echo "$ac_t""yes" 1>&6
2267 cat >> confdefs.h <<\EOF
2268 #define HAVE_VPRINTF 1
2272 echo "$ac_t""no" 1>&6
2275 if test "$ac_cv_func_vprintf" != yes; then
2276 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2277 echo "configure:2275: checking for _doprnt" >&5
2278 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2279 echo $ac_n "(cached) $ac_c" 1>&6
2281 cat > conftest.$ac_ext <<EOF
2282 #line 2280 "configure"
2283 #include "confdefs.h"
2284 /* System header to define __stub macros and hopefully few prototypes,
2285 which can conflict with char _doprnt(); below. */
2287 /* Override any gcc2 internal prototype to avoid an error. */
2288 /* We use char because int might match the return type of a gcc2
2289 builtin and then its argument prototype would still apply. */
2294 /* The GNU C library defines this for functions which it implements
2295 to always fail with ENOSYS. Some functions are actually named
2296 something starting with __ and the normal name is an alias. */
2297 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2305 if { (eval echo configure:2303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2307 eval "ac_cv_func__doprnt=yes"
2309 echo "configure: failed program was:" >&5
2310 cat conftest.$ac_ext >&5
2312 eval "ac_cv_func__doprnt=no"
2317 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2318 echo "$ac_t""yes" 1>&6
2319 cat >> confdefs.h <<\EOF
2320 #define HAVE_DOPRNT 1
2324 echo "$ac_t""no" 1>&6
2331 if test $ac_cv_func_vprintf != yes ; then
2333 if test $ac_cv_func__doprnt != yes ; then
2340 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2341 echo "configure:2339: checking whether the printf functions support %p" >&5
2342 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2343 echo $ac_n "(cached) $ac_c" 1>&6
2345 if test "$cross_compiling" = yes; then
2346 gcc_cv_func_printf_ptr=no
2348 cat > conftest.$ac_ext <<EOF
2349 #line 2347 "configure"
2350 #include "confdefs.h"
2356 char *p = buf, *q = NULL;
2357 sprintf(buf, "%p", p);
2358 sscanf(buf, "%p", &q);
2362 if { (eval echo configure:2360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2364 gcc_cv_func_printf_ptr=yes
2366 echo "configure: failed program was:" >&5
2367 cat conftest.$ac_ext >&5
2369 gcc_cv_func_printf_ptr=no
2374 rm -f core core.* *.core
2377 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2378 if test $gcc_cv_func_printf_ptr = yes ; then
2379 cat >> confdefs.h <<\EOF
2380 #define HAVE_PRINTF_PTR 1
2388 { echo "configure: error:
2389 *** UWIN may not be used as a host platform because
2390 *** linking with posix.dll is not allowed by the GNU GPL" 1>&2; exit 1; }
2393 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2394 echo "configure:2392: checking for pid_t" >&5
2395 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2396 echo $ac_n "(cached) $ac_c" 1>&6
2398 cat > conftest.$ac_ext <<EOF
2399 #line 2397 "configure"
2400 #include "confdefs.h"
2401 #include <sys/types.h>
2407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2408 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2410 ac_cv_type_pid_t=yes
2418 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2419 if test $ac_cv_type_pid_t = no; then
2420 cat >> confdefs.h <<\EOF
2426 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2427 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2428 echo "configure:2426: checking for vfork.h" >&5
2429 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2430 echo $ac_n "(cached) $ac_c" 1>&6
2432 cat > conftest.$ac_ext <<EOF
2433 #line 2431 "configure"
2434 #include "confdefs.h"
2437 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2438 { (eval echo configure:2436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2439 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2440 if test -z "$ac_err"; then
2442 eval "ac_cv_header_$ac_safe=yes"
2445 echo "configure: failed program was:" >&5
2446 cat conftest.$ac_ext >&5
2448 eval "ac_cv_header_$ac_safe=no"
2452 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2453 echo "$ac_t""yes" 1>&6
2454 cat >> confdefs.h <<\EOF
2455 #define HAVE_VFORK_H 1
2459 echo "$ac_t""no" 1>&6
2462 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2463 echo "configure:2461: checking for working vfork" >&5
2464 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2465 echo $ac_n "(cached) $ac_c" 1>&6
2467 if test "$cross_compiling" = yes; then
2468 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2469 echo "configure:2467: checking for vfork" >&5
2470 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2471 echo $ac_n "(cached) $ac_c" 1>&6
2473 cat > conftest.$ac_ext <<EOF
2474 #line 2472 "configure"
2475 #include "confdefs.h"
2476 /* System header to define __stub macros and hopefully few prototypes,
2477 which can conflict with char vfork(); below. */
2479 /* Override any gcc2 internal prototype to avoid an error. */
2480 /* We use char because int might match the return type of a gcc2
2481 builtin and then its argument prototype would still apply. */
2486 /* The GNU C library defines this for functions which it implements
2487 to always fail with ENOSYS. Some functions are actually named
2488 something starting with __ and the normal name is an alias. */
2489 #if defined (__stub_vfork) || defined (__stub___vfork)
2497 if { (eval echo configure:2495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2499 eval "ac_cv_func_vfork=yes"
2501 echo "configure: failed program was:" >&5
2502 cat conftest.$ac_ext >&5
2504 eval "ac_cv_func_vfork=no"
2509 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2510 echo "$ac_t""yes" 1>&6
2513 echo "$ac_t""no" 1>&6
2516 ac_cv_func_vfork_works=$ac_cv_func_vfork
2518 cat > conftest.$ac_ext <<EOF
2519 #line 2517 "configure"
2520 #include "confdefs.h"
2521 /* Thanks to Paul Eggert for this test. */
2523 #include <sys/types.h>
2524 #include <sys/stat.h>
2525 #ifdef HAVE_UNISTD_H
2531 /* On some sparc systems, changes by the child to local and incoming
2532 argument registers are propagated back to the parent.
2533 The compiler is told about this with #include <vfork.h>,
2534 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2535 Test for this by using a static variable whose address
2536 is put into a register that is clobbered by the vfork. */
2539 sparc_address_test (int arg)
2541 sparc_address_test (arg) int arg;
2559 pid_t parent = getpid ();
2562 sparc_address_test ();
2567 /* Here is another test for sparc vfork register problems.
2568 This test uses lots of local variables, at least
2569 as many local variables as main has allocated so far
2570 including compiler temporaries. 4 locals are enough for
2571 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2572 A buggy compiler should reuse the register of parent
2573 for one of the local variables, since it will think that
2574 parent can't possibly be used any more in this routine.
2575 Assigning to the local variable will thus munge parent
2576 in the parent process. */
2578 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2579 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2580 /* Convince the compiler that p..p7 are live; otherwise, it might
2581 use the same hardware register for all 8 local variables. */
2582 if (p != p1 || p != p2 || p != p3 || p != p4
2583 || p != p5 || p != p6 || p != p7)
2586 /* On some systems (e.g. IRIX 3.3),
2587 vfork doesn't separate parent from child file descriptors.
2588 If the child closes a descriptor before it execs or exits,
2589 this munges the parent's descriptor as well.
2590 Test for this by closing stdout in the child. */
2591 _exit(close(fileno(stdout)) != 0);
2596 while (wait(&status) != child)
2599 /* Was there some problem with vforking? */
2602 /* Did the child fail? (This shouldn't happen.) */
2605 /* Did the vfork/compiler bug occur? */
2606 || parent != getpid()
2608 /* Did the file descriptor bug occur? */
2609 || fstat(fileno(stdout), &st) != 0
2614 if { (eval echo configure:2612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2616 ac_cv_func_vfork_works=yes
2618 echo "configure: failed program was:" >&5
2619 cat conftest.$ac_ext >&5
2621 ac_cv_func_vfork_works=no
2628 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2629 if test $ac_cv_func_vfork_works = no; then
2630 cat >> confdefs.h <<\EOF
2637 for ac_func in malloc realloc calloc free bcopy bzero bcmp \
2638 index rindex getenv atol sbrk abort atof strerror getcwd getwd \
2639 strsignal putc_unlocked fputs_unlocked strstr
2641 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2642 echo "configure:2640: checking whether $ac_func must be declared" >&5
2643 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2644 echo $ac_n "(cached) $ac_c" 1>&6
2646 cat > conftest.$ac_ext <<EOF
2647 #line 2645 "configure"
2648 #include "confdefs.h"
2651 #ifdef STRING_WITH_STRINGS
2652 # include <string.h>
2653 # include <strings.h>
2655 # ifdef HAVE_STRING_H
2656 # include <string.h>
2658 # ifdef HAVE_STRINGS_H
2659 # include <strings.h>
2663 #ifdef HAVE_STDLIB_H
2666 #ifdef HAVE_UNISTD_H
2670 #define rindex strrchr
2673 #define index strchr
2677 char *(*pfn) = (char *(*)) $ac_func
2680 if { (eval echo configure:2678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2682 eval "gcc_cv_decl_needed_$ac_func=no"
2684 echo "configure: failed program was:" >&5
2685 cat conftest.$ac_ext >&5
2687 eval "gcc_cv_decl_needed_$ac_func=yes"
2692 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2693 echo "$ac_t""yes" 1>&6
2694 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2695 cat >> confdefs.h <<EOF
2696 #define $gcc_tr_decl 1
2700 echo "$ac_t""no" 1>&6
2706 for ac_func in getrlimit setrlimit
2708 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2709 echo "configure:2707: checking whether $ac_func must be declared" >&5
2710 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2711 echo $ac_n "(cached) $ac_c" 1>&6
2713 cat > conftest.$ac_ext <<EOF
2714 #line 2712 "configure"
2715 #include "confdefs.h"
2718 #ifdef STRING_WITH_STRINGS
2719 # include <string.h>
2720 # include <strings.h>
2722 # ifdef HAVE_STRING_H
2723 # include <string.h>
2725 # ifdef HAVE_STRINGS_H
2726 # include <strings.h>
2730 #ifdef HAVE_STDLIB_H
2733 #ifdef HAVE_UNISTD_H
2737 #define rindex strrchr
2740 #define index strchr
2742 #include <sys/types.h>
2743 #ifdef HAVE_SYS_RESOURCE_H
2744 #include <sys/resource.h>
2748 char *(*pfn) = (char *(*)) $ac_func
2751 if { (eval echo configure:2749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2753 eval "gcc_cv_decl_needed_$ac_func=no"
2755 echo "configure: failed program was:" >&5
2756 cat conftest.$ac_ext >&5
2758 eval "gcc_cv_decl_needed_$ac_func=yes"
2763 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2764 echo "$ac_t""yes" 1>&6
2765 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2766 cat >> confdefs.h <<EOF
2767 #define $gcc_tr_decl 1
2771 echo "$ac_t""no" 1>&6
2777 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2778 echo "configure:2776: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2779 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2780 echo $ac_n "(cached) $ac_c" 1>&6
2782 cat > conftest.$ac_ext <<EOF
2783 #line 2781 "configure"
2784 #include "confdefs.h"
2785 #include <sys/types.h>
2787 /* NetBSD declares sys_siglist in unistd.h. */
2788 #ifdef HAVE_UNISTD_H
2792 char *msg = *(sys_siglist + 1);
2795 if { (eval echo configure:2793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2797 ac_cv_decl_sys_siglist=yes
2799 echo "configure: failed program was:" >&5
2800 cat conftest.$ac_ext >&5
2802 ac_cv_decl_sys_siglist=no
2807 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2808 if test $ac_cv_decl_sys_siglist = yes; then
2809 cat >> confdefs.h <<\EOF
2810 #define SYS_SIGLIST_DECLARED 1
2816 # mkdir takes a single argument on some systems.
2817 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
2818 echo "configure:2816: checking if mkdir takes one argument" >&5
2819 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
2820 echo $ac_n "(cached) $ac_c" 1>&6
2822 cat > conftest.$ac_ext <<EOF
2823 #line 2821 "configure"
2824 #include "confdefs.h"
2826 #include <sys/types.h>
2827 #ifdef HAVE_SYS_STAT_H
2828 # include <sys/stat.h>
2830 #ifdef HAVE_UNISTD_H
2831 # include <unistd.h>
2833 #ifdef HAVE_DIRECT_H
2834 # include <direct.h>
2840 if { (eval echo configure:2838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2842 gcc_cv_mkdir_takes_one_arg=no
2844 echo "configure: failed program was:" >&5
2845 cat conftest.$ac_ext >&5
2847 gcc_cv_mkdir_takes_one_arg=yes
2852 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
2853 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
2854 cat >> confdefs.h <<\EOF
2855 #define MKDIR_TAKES_ONE_ARG 1
2869 build_install_headers_dir=install-headers-tar
2874 host_truncate_target=
2877 # Decode the host machine, then the target machine.
2878 # For the host machine, we save the xm_file variable as host_xm_file;
2879 # then we decode the target machine and forget everything else
2880 # that came from the host machine.
2881 for machine in $build $host $target; do
2895 # Set this to force installation and use of collect2.
2897 # Set this to override the default target model.
2899 # Set this to control how the header file directory is installed.
2900 install_headers_dir=install-headers-tar
2901 # Set this to a non-empty list of args to pass to cpp if the target
2902 # wants its .md file passed through cpp.
2904 # Set this if directory names should be truncated to 14 characters.
2906 # Set this if gdb needs a dir command with `dirname $out_file`
2907 gdb_needs_out_file_path=
2908 # Set this if the build machine requires executables to have a
2911 # Set this to control which thread package will be used.
2913 # Reinitialize these from the flag values every loop pass, since some
2914 # configure entries modify them.
2916 gnu_ld="$gnu_ld_flag"
2917 enable_threads=$enable_threads_flag
2919 # Set default cpu_type, tm_file and xm_file so it can be updated in
2920 # each machine entry.
2921 cpu_type=`echo $machine | sed 's/-.*$//'`
2955 tm_file=${cpu_type}/${cpu_type}.h
2956 xm_file=${cpu_type}/xm-${cpu_type}.h
2958 # Common parts for linux-gnu and openbsd systems
2961 xm_defines="HAVE_ATEXIT POSIX BSTRING"
2964 tm_file=${cpu_type}/openbsd.h
2965 tmake_file="t-libc-ok t-openbsd"
2966 # avoid surprises, always provide an xm-openbsd file
2967 xm_file=${cpu_type}/xm-openbsd.h
2968 # don't depend on processor x-fragments as well
2970 if test x$enable_threads = xyes; then
2972 tmake_file="${tmake_file} t-openbsd-thread"
2978 # Support site-specific machine types.
2980 cpu_type=`echo $machine | sed -e 's/-.*//'`
2981 rest=`echo $machine | sed -e "s/$cpu_type-//"`
2982 xm_file=${cpu_type}/xm-$rest.h
2983 tm_file=${cpu_type}/$rest.h
2984 if test -f $srcdir/config/${cpu_type}/x-$rest; \
2985 then xmake_file=${cpu_type}/x-$rest; \
2988 if test -f $srcdir/config/${cpu_type}/t-$rest; \
2989 then tmake_file=${cpu_type}/t-$rest; \
2995 a29k-*-bsd* | a29k-*-sym1*)
2996 tm_file="${tm_file} a29k/unix.h"
2998 xmake_file=a29k/x-unix
3001 a29k-*-udi | a29k-*-coff)
3002 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
3003 tmake_file=a29k/t-a29kbare
3006 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3007 tmake_file=a29k/t-vx29k
3008 extra_parts="crtbegin.o crtend.o"
3009 thread_file='vxworks'
3011 a29k-*-*) # Default a29k environment.
3015 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
3017 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
3018 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
3020 # GAS + IEEE_CONFORMANT
3021 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
3023 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
3024 xmake_file="x-interix alpha/t-pe"
3025 tmake_file="alpha/t-interix alpha/t-ieee"
3026 if test x$enable_threads = xyes ; then
3029 if test x$stabs = xyes ; then
3030 tm_file="${tm_file} dbxcoff.h"
3032 #prefix='$$INTERIX_ROOT'/usr/contrib
3033 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3035 alpha*-*-linux-gnuecoff*)
3036 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3037 target_cpu_default="MASK_GAS"
3038 tmake_file="alpha/t-ieee"
3043 alpha*-*-linux-gnulibc1*)
3044 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3045 target_cpu_default="MASK_GAS"
3046 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe alpha/t-ieee"
3047 extra_parts="crtbegin.o crtend.o"
3050 if test x$enable_threads = xyes; then
3054 alpha*-*-linux-gnu*)
3055 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3056 target_cpu_default="MASK_GAS"
3057 tmake_file="t-linux alpha/t-linux alpha/t-crtbe alpha/t-ieee"
3058 extra_parts="crtbegin.o crtend.o"
3061 if test x$enable_threads = xyes; then
3066 tm_file="${tm_file} freebsd.h alpha/freebsd.h"
3067 xm_file="${xm_file} xm-freebsd.h"
3068 target_cpu_default="MASK_GAS"
3069 tmake_file="t-freebsd alpha/t-crtbe"
3071 fixincludes=fixinc.wrap
3075 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3076 target_cpu_default="MASK_GAS"
3077 tmake_file="alpha/t-crtbe alpha/t-ieee"
3078 extra_parts="crtbegin.o crtend.o"
3084 # default x-alpha is only appropriate for dec-osf.
3085 target_cpu_default="MASK_GAS"
3086 tmake_file="alpha/t-ieee"
3090 if test x$stabs = xyes
3092 tm_file="${tm_file} dbx.h"
3094 if test x$gas != xyes
3096 extra_passes="mips-tfile mips-tdump"
3099 tmake_file="alpha/t-ieee"
3102 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3105 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
3108 tm_file="${tm_file} alpha/osf.h"
3109 # Some versions of OSF4 (specifically X4.0-9 296.7) have
3110 # a broken tar, so we use cpio instead.
3111 install_headers_dir=install-headers-cpio
3115 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
3116 target_cpu_default=MASK_SUPPORT_ARCH
3121 tm_file="${tm_file} dbx.h alpha/vxworks.h"
3122 tmake_file="alpha/t-ieee"
3125 extra_passes="mips-tfile mips-tdump"
3128 thread_file='vxworks'
3131 tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3132 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3133 tmake_file="t-libc-ok alpha/t-ieee"
3134 xmake_file=winnt/x-winnt
3135 extra_host_objs=oldnames.o
3136 extra_gcc_objs="spawnv.o oldnames.o"
3137 if test x$gnu_ld != xyes
3139 extra_programs=ld.exe
3141 if test x$enable_threads = xyes; then
3147 xm_file="${xm_file} alpha/xm-vms.h"
3148 tmake_file="alpha/t-vms alpha/t-ieee"
3151 extra_parts="crtinit.o crtfini.o"
3153 arm-*-coff* | armel-*-coff*)
3155 tmake_file=arm/t-bare
3159 tmake_file=arm/t-bare
3160 thread_file='vxworks'
3162 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
3163 tm_file=arm/riscix1-1.h
3166 arm-*-riscix*) # Acorn RISC machine
3167 if test x$gas = xyes
3169 tm_file=arm/rix-gas.h
3171 tm_file=arm/riscix.h
3173 xmake_file=arm/x-riscix
3174 tmake_file=arm/t-riscix
3177 arm-semi-aout | armel-semi-aout)
3179 tmake_file=arm/t-semi
3181 arm-semi-aof | armel-semi-aof)
3182 tm_file=arm/semiaof.h
3183 tmake_file=arm/t-semiaof
3186 tm_file=arm/netbsd.h
3187 xm_file="arm/xm-netbsd.h ${xm_file}"
3188 tmake_file="t-netbsd arm/t-netbsd"
3191 arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
3194 tm_file=arm/linux-aout.h
3195 tmake_file=arm/t-linux
3198 arm*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker
3199 xm_file=arm/xm-linux.h
3201 tm_file="arm/linux-oldld.h arm/linux-elf.h"
3204 tm_file="arm/linux-elf26.h $tm_file"
3207 tmake_file="t-linux arm/t-linux"
3208 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3210 case x${enable_threads} in
3211 x | xyes | xpthreads | xposix)
3216 arm*-*-linux-gnu*) # ARM GNU/Linux with ELF
3217 xm_file=arm/xm-linux.h
3219 tm_file="arm/linux-elf.h"
3222 tm_file="arm/linux-elf26.h $tm_file"
3225 tmake_file="t-linux arm/t-linux"
3226 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3228 case x${enable_threads} in
3229 x | xyes | xpthreads | xposix)
3236 tmake_file=arm/t-bare
3239 tm_file=arm/ecos-elf.h
3240 tmake_file=arm/t-elf
3243 tm_file=arm/unknown-elf.h
3244 tmake_file=arm/t-arm-elf
3247 tm_file=arm/unknown-elf-oabi.h
3248 tmake_file=arm/t-arm-elf
3250 c1-convex-*) # Convex C1
3251 target_cpu_default=1
3254 c2-convex-*) # Convex C2
3255 target_cpu_default=2
3259 target_cpu_default=4
3263 target_cpu_default=8
3267 target_cpu_default=16
3272 tmake_file=c4x/t-c4x
3274 clipper-intergraph-clix*)
3275 tm_file="${tm_file} svr3.h clipper/clix.h"
3276 xm_file=clipper/xm-clix.h
3277 xmake_file=clipper/x-clix
3278 extra_headers=va-clipper.h
3279 extra_parts="crtbegin.o crtend.o"
3280 install_headers_dir=install-headers-cpio
3287 # This hasn't been upgraded to GCC 2.
3288 # fx80-alliant-*) # Alliant FX/80
3294 target_cpu_default="MASK_PA_11"
3295 tmake_file=pa/t-openbsd
3298 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
3299 xm_file=pa/xm-papro.h
3303 target_cpu_default="MASK_PA_11"
3304 tm_file="${tm_file} pa/pa-osf.h"
3308 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
3309 xm_file=pa/xm-papro.h
3313 tm_file="${tm_file} pa/pa-osf.h"
3317 target_cpu_default="MASK_PA_11"
3324 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
3325 xm_file=pa/xm-pahpux.h
3326 xmake_file=pa/x-pa-hpux
3327 if test x$gas = xyes
3329 tm_file="${tm_file} pa/gas.h"
3331 install_headers_dir=install-headers-cpio
3334 hppa1.0-*-hpux8.0[0-2]*)
3335 tm_file="${tm_file} pa/pa-hpux.h"
3336 xm_file=pa/xm-pahpux.h
3337 xmake_file=pa/x-pa-hpux
3338 if test x$gas = xyes
3340 tm_file="${tm_file} pa/pa-gas.h"
3342 tm_file="pa/pa-oldas.h ${tm_file}"
3344 install_headers_dir=install-headers-cpio
3347 hppa1.1-*-hpux8.0[0-2]*)
3348 target_cpu_default="MASK_PA_11"
3349 tm_file="${tm_file} pa/pa-hpux.h"
3350 xm_file=pa/xm-pahpux.h
3351 xmake_file=pa/x-pa-hpux
3352 if test x$gas = xyes
3354 tm_file="${tm_file} pa/pa-gas.h"
3356 tm_file="pa/pa-oldas.h ${tm_file}"
3358 install_headers_dir=install-headers-cpio
3362 target_cpu_default="MASK_PA_11"
3363 tm_file="${tm_file} pa/pa-hpux.h"
3364 xm_file=pa/xm-pahpux.h
3365 xmake_file=pa/x-pa-hpux
3366 if test x$gas = xyes
3368 tm_file="${tm_file} pa/pa-gas.h"
3370 install_headers_dir=install-headers-cpio
3374 tm_file="${tm_file} pa/pa-hpux.h"
3375 xm_file=pa/xm-pahpux.h
3376 xmake_file=pa/x-pa-hpux
3377 if test x$gas = xyes
3379 tm_file="${tm_file} pa/pa-gas.h"
3381 install_headers_dir=install-headers-cpio
3384 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
3385 target_cpu_default="MASK_PA_11"
3386 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
3387 xm_file=pa/xm-pahpux.h
3388 xmake_file=pa/x-pa-hpux
3390 if test x$gas = xyes
3392 tm_file="${tm_file} pa/pa-gas.h"
3394 if test x$enable_threads = x; then
3395 enable_threads=$have_pthread_h
3397 if test x$enable_threads = xyes; then
3399 tmake_file="${tmake_file} pa/t-dce-thr"
3401 install_headers_dir=install-headers-cpio
3405 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
3406 xm_file=pa/xm-pahpux.h
3407 xmake_file=pa/x-pa-hpux
3409 if test x$gas = xyes
3411 tm_file="${tm_file} pa/pa-gas.h"
3413 if test x$enable_threads = x; then
3414 enable_threads=$have_pthread_h
3416 if test x$enable_threads = xyes; then
3418 tmake_file="${tmake_file} pa/t-dce-thr"
3420 install_headers_dir=install-headers-cpio
3423 hppa1.1-*-hpux* | hppa2*-*-hpux*)
3424 target_cpu_default="MASK_PA_11"
3425 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
3426 xm_file=pa/xm-pahpux.h
3427 xmake_file=pa/x-pa-hpux
3428 if test x$gas = xyes
3430 tm_file="${tm_file} pa/pa-gas.h"
3432 install_headers_dir=install-headers-cpio
3436 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
3437 xm_file=pa/xm-pahpux.h
3438 xmake_file=pa/x-pa-hpux
3439 if test x$gas = xyes
3441 tm_file="${tm_file} pa/pa-gas.h"
3443 install_headers_dir=install-headers-cpio
3446 hppa1.1-*-hiux* | hppa2*-*-hiux*)
3447 target_cpu_default="MASK_PA_11"
3448 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
3449 xm_file=pa/xm-pahpux.h
3450 xmake_file=pa/x-pa-hpux
3451 if test x$gas = xyes
3453 tm_file="${tm_file} pa/pa-gas.h"
3455 install_headers_dir=install-headers-cpio
3459 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
3460 xm_file=pa/xm-pahpux.h
3461 xmake_file=pa/x-pa-hpux
3462 if test x$gas = xyes
3464 tm_file="${tm_file} pa/pa-gas.h"
3466 install_headers_dir=install-headers-cpio
3470 target_cpu_default="MASK_PA_11"
3475 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
3476 if test x$gas = xyes
3478 tm_file=i386/aix386.h
3479 extra_parts="crtbegin.o crtend.o"
3480 tmake_file=i386/t-crtstuff
3482 tm_file=i386/aix386ng.h
3485 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
3487 xmake_file=i386/x-aix
3489 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
3490 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3491 xm_defines="USG POSIX SMALL_ARG_MAX"
3492 xmake_file=i386/x-ncr3000
3493 if test x$stabs = xyes -a x$gas = xyes
3495 tm_file=i386/sysv4gdb.h
3497 tm_file=i386/sysv4.h
3499 extra_parts="crtbegin.o crtend.o"
3500 tmake_file=i386/t-crtpic
3504 xm_file=i386/xm-next.h
3505 tmake_file=i386/t-next
3506 xmake_file=i386/x-next
3507 extra_objs=nextstep.o
3508 extra_parts="crtbegin.o crtend.o"
3509 if test x$enable_threads = xyes; then
3513 i[34567]86-sequent-bsd*) # 80386 from Sequent
3515 if test x$gas = xyes
3517 tm_file=i386/seq-gas.h
3519 tm_file=i386/sequent.h
3522 i[34567]86-sequent-ptx1*)
3523 xm_defines="USG SVR3"
3524 xmake_file=i386/x-sysv3
3525 tm_file=i386/seq-sysv3.h
3526 tmake_file=i386/t-crtstuff
3527 extra_parts="crtbegin.o crtend.o"
3528 install_headers_dir=install-headers-cpio
3530 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
3531 xm_defines="USG SVR3"
3532 xmake_file=i386/x-sysv3
3533 tm_file=i386/seq2-sysv3.h
3534 tmake_file=i386/t-crtstuff
3535 extra_parts="crtbegin.o crtend.o"
3536 install_headers_dir=install-headers-cpio
3538 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
3539 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3540 xm_defines="USG POSIX SMALL_ARG_MAX"
3542 tm_file=i386/ptx4-i.h
3544 extra_parts="crtbegin.o crtend.o"
3545 install_headers_dir=install-headers-cpio
3547 i386-sun-sunos*) # Sun i386 roadrunner
3552 i[34567]86-wrs-vxworks*)
3553 tm_file=i386/vxi386.h
3554 tmake_file=i386/t-i386bare
3555 thread_file='vxworks'
3558 tm_file=i386/i386-aout.h
3559 tmake_file=i386/t-i386bare
3561 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
3562 tm_file=i386/bsd386.h
3563 # tmake_file=t-libc-ok
3566 tm_file=i386/386bsd.h
3567 # tmake_file=t-libc-ok
3568 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
3571 i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd[12] | i[34567]86-*-freebsdaout*)
3572 tm_file=i386/freebsd-aout.h
3573 # On FreeBSD, the headers are already ok, except for math.h.
3574 fixincludes=fixinc.wrap
3575 tmake_file=t-freebsd
3577 i[34567]86-*-freebsd* | i[34567]86-*-freebsd[3-9].* | i[34567]86-*-freebsd[3-9] | i[34567]86-*-freebsdelf*)
3578 tm_file="i386/i386.h i386/att.h svr4.h i386/freebsd.h i386/perform.h"
3579 # On FreeBSD, the headers are already ok, except for math.h.
3580 fixincludes=fixinc.wrap
3581 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3582 tmake_file=t-freebsd
3587 i[34567]86-*-netbsd*)
3588 tm_file=i386/netbsd.h
3592 i[34567]86-*-openbsd*)
3593 # we need collect2 until our bug is fixed...
3597 tm_file=i386/i386-coff.h
3598 tmake_file=i386/t-i386bare
3600 i[34567]86-*-isc*) # 80386 running ISC system
3601 xm_file="${xm_file} i386/xm-isc.h"
3602 xm_defines="USG SVR3"
3604 i[34567]86-*-isc[34]*)
3605 xmake_file=i386/x-isc3
3608 xmake_file=i386/x-isc
3611 if test x$gas = xyes -a x$stabs = xyes
3613 tm_file=i386/iscdbx.h
3614 tmake_file=i386/t-svr3dbx
3615 extra_parts="svr3.ifile svr3z.ifile"
3617 tm_file=i386/isccoff.h
3618 tmake_file=i386/t-crtstuff
3619 extra_parts="crtbegin.o crtend.o"
3621 install_headers_dir=install-headers-cpio
3623 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
3625 xmake_file=x-linux-aout
3626 tmake_file="t-linux-aout i386/t-crtstuff"
3627 tm_file=i386/linux-oldld.h
3631 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
3632 xmake_file=x-linux-aout
3633 tmake_file="t-linux-aout i386/t-crtstuff"
3634 tm_file=i386/linux-aout.h
3638 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
3639 # GNU/Linux C library 5
3641 tm_file=i386/linux.h
3642 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
3643 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3646 if test x$enable_threads = xyes; then
3647 thread_file='single'
3650 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
3651 # aka GNU/Linux C library 6
3653 tm_file=i386/linux.h
3654 tmake_file="t-linux i386/t-crtstuff"
3655 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3658 if test x$enable_threads = xyes; then
3665 i[34567]86-go32-msdos | i[34567]86-*-go32*)
3666 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
3669 i[34567]86-pc-msdosdjgpp*)
3670 xm_file=i386/xm-djgpp.h
3671 tm_file=i386/djgpp.h
3672 tmake_file=i386/t-djgpp
3673 xmake_file=i386/x-djgpp
3677 case $host in *pc-msdosdjgpp*)
3682 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
3684 tmake_file=t-libc-ok
3688 i[34567]86-*-lynxos*)
3689 if test x$gas = xyes
3693 tm_file=i386/lynx-ng.h
3695 xm_file=i386/xm-lynx.h
3696 tmake_file=i386/t-i386bare
3701 # tmake_file=t-libc-ok
3704 i[34567]86-*-osfrose*) # 386 using OSF/rose
3705 if test x$elf = xyes
3707 tm_file=i386/osfelf.h
3710 tm_file=i386/osfrose.h
3713 xm_file="i386/xm-osf.h ${xm_file}"
3714 xmake_file=i386/x-osfrose
3715 tmake_file=i386/t-osf
3716 extra_objs=halfpic.o
3718 i[34567]86-go32-rtems*)
3720 xm_file=i386/xm-go32.h
3721 tm_file=i386/go32-rtems.h
3722 tmake_file="i386/t-go32 t-rtems"
3724 i[34567]86-*-rtemself*)
3726 tm_file=i386/rtemself.h
3727 tmake_file="i386/t-i386bare t-rtems"
3729 i[34567]86-*-rtems*)
3731 tm_file=i386/rtems.h
3732 tmake_file="i386/t-i386bare t-rtems"
3734 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
3735 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
3736 xm_defines="USG SVR3"
3737 xmake_file=i386/x-sco5
3738 install_headers_dir=install-headers-cpio
3740 if test x$gas = xyes
3742 tm_file="i386/sco5gas.h ${tm_file}"
3743 tmake_file=i386/t-sco5gas
3745 tmake_file=i386/t-sco5
3747 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
3749 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
3750 xm_file="${xm_file} i386/xm-sco.h"
3751 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
3752 xmake_file=i386/x-sco4
3753 install_headers_dir=install-headers-cpio
3754 if test x$stabs = xyes
3756 tm_file=i386/sco4dbx.h
3757 tmake_file=i386/t-svr3dbx
3758 extra_parts="svr3.ifile svr3z.rfile"
3761 tmake_file=i386/t-crtstuff
3762 extra_parts="crtbegin.o crtend.o"
3766 i[34567]86-*-sco*) # 80386 running SCO system
3767 xm_file=i386/xm-sco.h
3768 xmake_file=i386/x-sco
3769 install_headers_dir=install-headers-cpio
3770 if test x$stabs = xyes
3772 tm_file=i386/scodbx.h
3773 tmake_file=i386/t-svr3dbx
3774 extra_parts="svr3.ifile svr3z.rfile"
3777 extra_parts="crtbegin.o crtend.o"
3778 tmake_file=i386/t-crtstuff
3782 i[34567]86-*-solaris2*)
3783 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3784 xm_defines="USG POSIX SMALL_ARG_MAX"
3786 if test x$gas = xyes; then
3787 # Only needed if gas does not support -s
3788 tm_file="i386/sol2gas.h ${tm_file}"
3790 tmake_file=i386/t-sol2
3791 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3793 if test x$enable_threads = xyes; then
3794 thread_file='solaris'
3797 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
3798 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
3799 xm_defines="USG POSIX"
3800 tm_file=i386/sysv5.h
3801 if test x$stabs = xyes
3803 tm_file="${tm_file} dbx.h"
3805 tmake_file=i386/t-crtpic
3807 extra_parts="crtbegin.o crtend.o"
3808 if test x$enable_threads = xyes; then
3812 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
3813 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3814 xm_defines="USG POSIX SMALL_ARG_MAX"
3815 tm_file=i386/sysv4.h
3816 if test x$stabs = xyes
3818 tm_file="${tm_file} dbx.h"
3820 tmake_file=i386/t-crtpic
3822 extra_parts="crtbegin.o crtend.o"
3824 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
3825 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
3826 xm_defines="USG POSIX"
3828 tmake_file="i386/t-crtpic i386/t-udk"
3830 extra_parts="crtbegin.o crtend.o"
3831 install_headers_dir=install-headers-cpio
3833 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
3835 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
3836 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
3837 if test x$stabs = xyes
3839 tm_file=i386/osf1elfgdb.h
3841 tm_file=i386/osf1elf.h
3843 tmake_file=i386/t-osf1elf
3844 xmake_file=i386/x-osf1elf
3845 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3847 i[34567]86-*-sysv*) # Intel 80386's running system V
3848 xm_defines="USG SVR3"
3849 xmake_file=i386/x-sysv3
3850 if test x$gas = xyes
3852 if test x$stabs = xyes
3854 tm_file=i386/svr3dbx.h
3855 tmake_file=i386/t-svr3dbx
3856 extra_parts="svr3.ifile svr3z.rfile"
3858 tm_file=i386/svr3gas.h
3859 extra_parts="crtbegin.o crtend.o"
3860 tmake_file=i386/t-crtstuff
3863 tm_file=i386/sysv3.h
3864 extra_parts="crtbegin.o crtend.o"
3865 tmake_file=i386/t-crtstuff
3868 i386-*-vsta) # Intel 80386's running VSTa kernel
3869 xm_file="${xm_file} i386/xm-vsta.h"
3871 tmake_file=i386/t-vsta
3872 xmake_file=i386/x-vsta
3875 xm_file="${xm_file} i386/xm-cygwin.h"
3876 tmake_file=i386/t-cygwin
3877 tm_file=i386/win32.h
3878 xmake_file=i386/x-cygwin
3880 if test x$enable_threads = xyes; then
3885 i[34567]86-*-pe | i[34567]86-*-cygwin*)
3886 xm_file="${xm_file} i386/xm-cygwin.h"
3887 tmake_file=i386/t-cygwin
3888 tm_file=i386/cygwin.h
3889 xmake_file=i386/x-cygwin
3891 if test x$enable_threads = xyes; then
3896 i[34567]86-*-mingw32*)
3897 tm_file=i386/mingw32.h
3898 xm_file="${xm_file} i386/xm-mingw32.h"
3899 tmake_file="i386/t-cygwin i386/t-mingw32"
3901 xmake_file=i386/x-cygwin
3902 if test x$enable_threads = xyes; then
3909 *minwg32crt* | *mingw32*)
3910 tm_file="${tm_file} i386/crtdll.h"
3916 tmake_file="i386/t-cygwin i386/t-uwin"
3918 xmake_file=i386/x-cygwin
3919 if test x$enable_threads = xyes; then
3924 i[34567]86-*-interix*)
3925 tm_file="i386/i386-interix.h interix.h"
3926 xm_file="i386/xm-i386-interix.h xm-interix.h"
3927 xm_defines="USG NO_SYS_SIGLIST"
3928 tmake_file="i386/t-interix"
3929 extra_objs=interix.o
3930 xmake_file=x-interix
3931 if test x$enable_threads = xyes ; then
3934 if test x$stabs = xyes ; then
3935 tm_file="${tm_file} dbxcoff.h"
3938 i[34567]86-*-winnt3*)
3939 tm_file=i386/win-nt.h
3940 out_file=i386/i386.c
3941 xm_file="xm-winnt.h ${xm_file}"
3942 xmake_file=winnt/x-winnt
3943 tmake_file=i386/t-winnt
3944 extra_host_objs="winnt.o oldnames.o"
3945 extra_gcc_objs="spawnv.o oldnames.o"
3946 if test x$gnu_ld != xyes
3948 extra_programs=ld.exe
3950 if test x$enable_threads = xyes; then
3954 i[34567]86-dg-dgux*)
3955 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
3956 xm_defines="USG POSIX"
3957 out_file=i386/dgux.c
3959 tmake_file=i386/t-dgux
3960 xmake_file=i386/x-dgux
3961 install_headers_dir=install-headers-cpio
3963 i860-alliant-*) # Alliant FX/2800
3964 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
3965 xm_file="${xm_file}"
3966 xmake_file=i860/x-fx2800
3967 tmake_file=i860/t-fx2800
3968 extra_parts="crtbegin.o crtend.o"
3971 tm_file="${tm_file} i860/bsd.h"
3972 if test x$gas = xyes
3974 tm_file="${tm_file} i860/bsd-gas.h"
3979 tm_file="${tm_file} i860/mach.h"
3980 tmake_file=t-libc-ok
3982 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
3983 tm_file="${tm_file} svr3.h i860/paragon.h"
3984 xm_defines="USG SVR3"
3988 tm_file="${tm_file} svr3.h i860/sysv3.h"
3989 xm_defines="USG SVR3"
3990 xmake_file=i860/x-sysv3
3991 extra_parts="crtbegin.o crtend.o"
3994 tm_file="${tm_file} svr4.h i860/sysv4.h"
3995 xm_defines="USG SVR3"
3996 xmake_file=i860/x-sysv4
3998 extra_parts="crtbegin.o crtend.o"
4000 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
4001 tm_file="${tm_file} i960/vx960.h"
4002 tmake_file=i960/t-vxworks960
4004 thread_file='vxworks'
4006 i960-wrs-vxworks5* | i960-wrs-vxworks)
4007 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
4008 tmake_file=i960/t-vxworks960
4010 thread_file='vxworks'
4013 tm_file="${tm_file} i960/vx960.h"
4014 tmake_file=i960/t-vxworks960
4016 thread_file='vxworks'
4019 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
4020 tmake_file=i960/t-960bare
4024 tmake_file="i960/t-960bare t-rtems"
4025 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
4028 i960-*-*) # Default i960 environment.
4032 extra_parts="crtinit.o crtfini.o"
4034 m68000-convergent-sysv*)
4036 xm_file="m68k/xm-3b1.h ${xm_file}"
4039 extra_headers=math-68881.h
4041 m68000-hp-bsd*) # HP 9000/200 running BSD
4042 tm_file=m68k/hp2bsd.h
4043 xmake_file=m68k/x-hp2bsd
4045 extra_headers=math-68881.h
4047 m68000-hp-hpux*) # HP 9000 series 300
4048 xm_file="xm-alloca.h ${xm_file}"
4049 xm_defines="USG NO_SYS_SIGLIST"
4050 if test x$gas = xyes
4052 xmake_file=m68k/x-hp320g
4053 tm_file=m68k/hp310g.h
4055 xmake_file=m68k/x-hp320
4056 tm_file=m68k/hp310.h
4058 install_headers_dir=install-headers-cpio
4060 extra_headers=math-68881.h
4065 extra_headers=math-68881.h
4068 tm_file=m68k/sun2o4.h
4070 extra_headers=math-68881.h
4073 xm_file="m68k/xm-3b1.h ${xm_file}"
4075 if test x$gas = xyes
4082 extra_headers=math-68881.h
4084 m68k-apple-aux*) # Apple Macintosh running A/UX
4085 xm_defines="USG AUX"
4086 tmake_file=m68k/t-aux
4087 install_headers_dir=install-headers-cpio
4088 extra_headers=math-68881.h
4089 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
4091 if test "$gnu_ld" = yes
4093 tm_file="${tm_file} m68k/auxgld.h"
4095 tm_file="${tm_file} m68k/auxld.h"
4097 if test "$gas" = yes
4099 tm_file="${tm_file} m68k/auxgas.h"
4101 tm_file="${tm_file} m68k/auxas.h"
4103 tm_file="${tm_file} m68k/a-ux.h"
4107 tm_file=m68k/apollo68.h
4108 xmake_file=m68k/x-apollo68
4110 extra_headers=math-68881.h
4113 m68k-altos-sysv*) # Altos 3068
4114 if test x$gas = xyes
4116 tm_file=m68k/altos3068.h
4119 echo "The Altos is supported only with the GNU assembler" 1>&2
4122 extra_headers=math-68881.h
4124 m68k-bull-sysv*) # Bull DPX/2
4125 if test x$gas = xyes
4127 if test x$stabs = xyes
4129 tm_file=m68k/dpx2cdbx.h
4131 tm_file=m68k/dpx2g.h
4136 xm_file="xm-alloca.h ${xm_file}"
4138 xmake_file=m68k/x-dpx2
4140 extra_headers=math-68881.h
4142 m68k-atari-sysv4*) # Atari variant of V.4.
4143 tm_file=m68k/atari.h
4144 xm_file="xm-alloca.h ${xm_file}"
4145 xm_defines="USG FULL_PROTOTYPES"
4147 extra_parts="crtbegin.o crtend.o"
4148 extra_headers=math-68881.h
4151 m68k-motorola-sysv*)
4152 tm_file=m68k/mot3300.h
4153 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
4154 xm_defines=NO_SYS_SIGLIST
4155 if test x$gas = xyes
4157 xmake_file=m68k/x-mot3300-gas
4158 if test x$gnu_ld = xyes
4160 tmake_file=m68k/t-mot3300-gald
4162 tmake_file=m68k/t-mot3300-gas
4166 xmake_file=m68k/x-mot3300
4167 if test x$gnu_ld = xyes
4169 tmake_file=m68k/t-mot3300-gld
4171 tmake_file=m68k/t-mot3300
4175 gdb_needs_out_file_path=yes
4176 extra_parts="crt0.o mcrt0.o"
4177 extra_headers=math-68881.h
4180 m68k-ncr-sysv*) # NCR Tower 32 SVR3
4181 tm_file=m68k/tower-as.h
4182 xm_defines="USG SVR3"
4183 xmake_file=m68k/x-tower
4184 extra_parts="crtbegin.o crtend.o"
4185 extra_headers=math-68881.h
4188 tm_file=m68k/plexus.h
4189 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
4192 extra_headers=math-68881.h
4196 xm_file="xm-alloca.h ${xm_file}"
4198 extra_headers=math-68881.h
4201 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
4202 xm_defines="USG unos"
4203 xmake_file=m68k/x-crds
4206 extra_headers=math-68881.h
4208 m68k-cbm-sysv4*) # Commodore variant of V.4.
4210 xm_file="xm-alloca.h ${xm_file}"
4211 xm_defines="USG FULL_PROTOTYPES"
4212 xmake_file=m68k/x-amix
4214 extra_parts="crtbegin.o crtend.o"
4215 extra_headers=math-68881.h
4219 tm_file=m68k/ccur-GAS.h
4220 xmake_file=m68k/x-ccur
4221 extra_headers=math-68881.h
4225 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
4226 tm_file=m68k/hp3bsd44.h
4228 extra_headers=math-68881.h
4231 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
4232 tm_file=m68k/hp3bsd.h
4234 extra_headers=math-68881.h
4238 if test x$with_fp = xno
4240 tm_file=m68k/isi-nfp.h
4246 extra_headers=math-68881.h
4248 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
4249 xm_file="xm-alloca.h ${xm_file}"
4250 xm_defines="USG NO_SYS_SIGLIST"
4251 if test x$gas = xyes
4253 xmake_file=m68k/x-hp320g
4254 tm_file=m68k/hp320g.h
4256 xmake_file=m68k/x-hp320
4257 tm_file=m68k/hpux7.h
4259 install_headers_dir=install-headers-cpio
4261 extra_headers=math-68881.h
4264 m68k-hp-hpux*) # HP 9000 series 300
4265 xm_file="xm-alloca.h ${xm_file}"
4266 xm_defines="USG NO_SYS_SIGLIST"
4267 if test x$gas = xyes
4269 xmake_file=m68k/x-hp320g
4270 tm_file=m68k/hp320g.h
4272 xmake_file=m68k/x-hp320
4273 tm_file=m68k/hp320.h
4275 install_headers_dir=install-headers-cpio
4277 extra_headers=math-68881.h
4281 tm_file=m68k/sun3mach.h
4283 extra_headers=math-68881.h
4287 if test x$gas = xyes
4289 tm_file=m68k/news3gas.h
4291 tm_file=m68k/news3.h
4294 extra_headers=math-68881.h
4297 m68k-sony-bsd* | m68k-sony-newsos*)
4298 if test x$gas = xyes
4300 tm_file=m68k/newsgas.h
4305 extra_headers=math-68881.h
4308 m68k-next-nextstep2*)
4309 tm_file=m68k/next21.h
4310 xm_file="m68k/xm-next.h ${xm_file}"
4311 tmake_file=m68k/t-next
4312 xmake_file=m68k/x-next
4313 extra_objs=nextstep.o
4314 extra_headers=math-68881.h
4318 m68k-next-nextstep3*)
4320 xm_file="m68k/xm-next.h ${xm_file}"
4321 tmake_file=m68k/t-next
4322 xmake_file=m68k/x-next
4323 extra_objs=nextstep.o
4324 extra_parts="crtbegin.o crtend.o"
4325 extra_headers=math-68881.h
4327 if test x$enable_threads = xyes; then
4332 if test x$with_fp = xno
4334 tm_file=m68k/sun3n3.h
4336 tm_file=m68k/sun3o3.h
4340 extra_headers=math-68881.h
4342 m68k-sun-sunos*) # For SunOS 4 (the default).
4343 if test x$with_fp = xno
4345 tm_file=m68k/sun3n.h
4351 extra_headers=math-68881.h
4354 tm_file=m68k/vxm68k.h
4355 tmake_file=m68k/t-vxworks68
4356 extra_headers=math-68881.h
4357 thread_file='vxworks'
4361 tmake_file=m68k/t-m68kbare
4362 tm_file="m68k/m68k-aout.h libgloss.h"
4363 extra_headers=math-68881.h
4367 tmake_file=m68k/t-m68kbare
4368 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
4369 extra_headers=math-68881.h
4372 m68020-*-elf* | m68k-*-elf*)
4373 tm_file="m68k/m68020-elf.h libgloss.h"
4374 xm_file=m68k/xm-m68kv.h
4375 tmake_file=m68k/t-m68kelf
4376 header_files=math-68881.h
4379 if test x$gas = xyes
4383 tm_file=m68k/lynx-ng.h
4385 xm_file=m68k/xm-lynx.h
4387 tmake_file=m68k/t-lynx
4388 extra_headers=math-68881.h
4392 tm_file=m68k/netbsd.h
4399 # we need collect2 until our bug is fixed...
4402 m68k-*-sysv3*) # Motorola m68k's running system V.3
4403 xm_file="xm-alloca.h ${xm_file}"
4405 xmake_file=m68k/x-m68kv
4406 extra_parts="crtbegin.o crtend.o"
4407 extra_headers=math-68881.h
4410 m68k-*-sysv4*) # Motorola m68k's running system V.4
4411 tm_file=m68k/m68kv4.h
4412 xm_file="xm-alloca.h ${xm_file}"
4415 extra_parts="crtbegin.o crtend.o"
4416 extra_headers=math-68881.h
4419 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
4422 tm_file=m68k/linux-aout.h
4423 tmake_file="t-linux-aout m68k/t-linux-aout"
4424 extra_headers=math-68881.h
4428 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
4429 # with ELF format using the
4430 # GNU/Linux C library 5
4432 tm_file=m68k/linux.h
4433 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
4434 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4435 extra_headers=math-68881.h
4439 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
4440 # with ELF format using glibc 2
4441 # aka the GNU/Linux C library 6.
4443 tm_file=m68k/linux.h
4444 tmake_file="t-linux m68k/t-linux"
4445 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4446 extra_headers=math-68881.h
4449 if test x$enable_threads = xyes; then
4454 tmake_file=m68k/t-m68kbare
4455 tm_file=m68k/m68k-psos.h
4456 extra_headers=math-68881.h
4460 tmake_file="m68k/t-m68kbare t-rtems"
4461 tm_file=m68k/rtems.h
4462 extra_headers=math-68881.h
4469 tm_file=m88k/dguxbcs.h
4470 tmake_file=m88k/t-dguxbcs
4474 tmake_file=m88k/t-dgux
4477 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
4478 xmake_file=m88k/x-dgux
4479 if test x$gas = xyes
4481 tmake_file=m88k/t-dgux-gas
4484 m88k-dolphin-sysv3*)
4485 tm_file=m88k/dolph.h
4486 extra_parts="crtbegin.o crtend.o"
4487 xm_file="m88k/xm-sysv3.h ${xm_file}"
4488 xmake_file=m88k/x-dolph
4489 if test x$gas = xyes
4491 tmake_file=m88k/t-m88k-gas
4494 m88k-tektronix-sysv3)
4495 tm_file=m88k/tekXD88.h
4496 extra_parts="crtbegin.o crtend.o"
4497 xm_file="m88k/xm-sysv3.h ${xm_file}"
4498 xmake_file=m88k/x-tekXD88
4499 if test x$gas = xyes
4501 tmake_file=m88k/t-m88k-gas
4505 tm_file=m88k/m88k-aout.h
4508 tm_file=m88k/m88k-coff.h
4509 tmake_file=m88k/t-bug
4513 extra_parts="crtbegin.o crtend.o"
4514 if test x$gas = xyes
4516 tmake_file=m88k/t-luna-gas
4518 tmake_file=m88k/t-luna
4522 tmake_file="${tmake_file} m88k/t-luna-gas"
4525 tm_file=m88k/sysv3.h
4526 extra_parts="crtbegin.o crtend.o"
4527 xm_file="m88k/xm-sysv3.h ${xm_file}"
4528 xmake_file=m88k/x-sysv3
4529 if test x$gas = xyes
4531 tmake_file=m88k/t-m88k-gas
4535 tm_file=m88k/sysv4.h
4536 extra_parts="crtbegin.o crtend.o"
4537 xmake_file=m88k/x-sysv4
4538 tmake_file=m88k/t-sysv4
4540 mips-sgi-irix6*) # SGI System V.4., IRIX 6
4541 tm_file=mips/iris6.h
4542 xm_file=mips/xm-iris6.h
4543 xmake_file=mips/x-iris6
4544 tmake_file=mips/t-iris6
4545 # if test x$enable_threads = xyes; then
4546 # thread_file='irix'
4550 tm_file="mips/elf.h libgloss.h mips/vxworks.h"
4551 tmake_file=mips/t-ecoff
4554 extra_parts="crtbegin.o crtend.o"
4555 thread_file='vxworks'
4557 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
4558 tm_file="mips/iris6.h mips/cross64.h"
4560 xm_file="mips/xm-iris5.h"
4561 xmake_file=mips/x-iris
4562 tmake_file=mips/t-cross64
4563 # See comment in mips/iris[56].h files.
4565 # if test x$enable_threads = xyes; then
4566 # thread_file='irix'
4570 if test x$gas = xyes
4572 if test x$stabs = xyes
4574 tm_file=mips/iris5gdb.h
4576 tm_file="mips/sni-svr4.h mips/sni-gas.h"
4579 tm_file=mips/sni-svr4.h
4582 xmake_file=mips/x-sni-svr4
4583 tmake_file=mips/t-mips-gas
4584 if test x$gnu_ld != xyes
4589 mips-sgi-irix5*) # SGI System V.4., IRIX 5
4590 if test x$gas = xyes
4592 tm_file="mips/iris5.h mips/iris5gas.h"
4593 if test x$stabs = xyes
4595 tm_file="${tm_file} dbx.h"
4598 tm_file=mips/iris5.h
4601 xm_file="mips/xm-iris5.h"
4602 xmake_file=mips/x-iris
4603 # mips-tfile doesn't work yet
4604 tmake_file=mips/t-mips-gas
4605 # See comment in mips/iris5.h file.
4607 # if test x$enable_threads = xyes; then
4608 # thread_file='irix'
4611 mips-sgi-irix4loser*) # Mostly like a MIPS.
4612 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
4613 if test x$stabs = xyes; then
4614 tm_file="${tm_file} dbx.h"
4617 xmake_file=mips/x-iris
4618 if test x$gas = xyes
4620 tmake_file=mips/t-mips-gas
4622 extra_passes="mips-tfile mips-tdump"
4624 if test x$gnu_ld != xyes
4628 # if test x$enable_threads = xyes; then
4629 # thread_file='irix'
4632 mips-sgi-irix4*) # Mostly like a MIPS.
4633 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
4634 if test x$stabs = xyes; then
4635 tm_file="${tm_file} dbx.h"
4638 xmake_file=mips/x-iris
4639 if test x$gas = xyes
4641 tmake_file=mips/t-mips-gas
4643 extra_passes="mips-tfile mips-tdump"
4645 if test x$gnu_ld != xyes
4649 # if test x$enable_threads = xyes; then
4650 # thread_file='irix'
4653 mips-sgi-*) # Mostly like a MIPS.
4654 tm_file="mips/iris3.h ${tm_file}"
4655 if test x$stabs = xyes; then
4656 tm_file="${tm_file} dbx.h"
4659 xmake_file=mips/x-iris3
4660 if test x$gas = xyes
4662 tmake_file=mips/t-mips-gas
4664 extra_passes="mips-tfile mips-tdump"
4666 if test x$gnu_ld != xyes
4671 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
4672 tm_file="mips/osfrose.h ${tm_file}"
4673 xmake_file=mips/x-osfrose
4674 tmake_file=mips/t-osfrose
4675 extra_objs=halfpic.o
4678 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
4679 tm_file=mips/dec-osf1.h
4680 if test x$stabs = xyes; then
4681 tm_file="${tm_file} dbx.h"
4683 xmake_file=mips/x-dec-osf1
4684 if test x$gas = xyes
4686 tmake_file=mips/t-mips-gas
4688 tmake_file=mips/t-ultrix
4689 extra_passes="mips-tfile mips-tdump"
4691 if test x$gnu_ld != xyes
4696 mips-dec-bsd*) # Decstation running 4.4 BSD
4697 tm_file=mips/dec-bsd.h
4698 if test x$gas = xyes
4700 tmake_file=mips/t-mips-gas
4702 tmake_file=mips/t-ultrix
4703 extra_passes="mips-tfile mips-tdump"
4705 if test x$gnu_ld != xyes
4710 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
4711 tm_file=mips/netbsd.h
4712 # On NetBSD, the headers are already okay, except for math.h.
4715 mips*-*-linux*) # Linux MIPS, either endian.
4717 xm_file="xm-siglist.h ${xm_file}"
4719 mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;;
4720 *) tm_file="mips/elf.h mips/linux.h" ;;
4722 extra_parts="crtbegin.o crtend.o"
4726 mips*el-*-openbsd*) # mips little endian
4727 target_cpu_default="MASK_GAS|MASK_ABICALLS"
4728 tm_file=mips/openbsd.h
4730 mips*-*-openbsd*) # mips big endian
4731 target_cpu_default="MASK_GAS|MASK_ABICALLS"
4732 tm_file=mips/openbsd-be.h
4734 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
4735 tm_file="mips/news4.h ${tm_file}"
4736 if test x$stabs = xyes; then
4737 tm_file="${tm_file} dbx.h"
4739 if test x$gas = xyes
4741 tmake_file=mips/t-mips-gas
4743 extra_passes="mips-tfile mips-tdump"
4745 if test x$gnu_ld != xyes
4749 xmake_file=mips/x-sony
4751 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
4752 # That is based on svr4.
4753 # t-svr4 is not right because this system doesn't use ELF.
4754 tm_file="mips/news5.h ${tm_file}"
4755 if test x$stabs = xyes; then
4756 tm_file="${tm_file} dbx.h"
4758 xm_file="xm-siglist.h ${xm_file}"
4760 if test x$gas = xyes
4762 tmake_file=mips/t-mips-gas
4764 extra_passes="mips-tfile mips-tdump"
4766 if test x$gnu_ld != xyes
4771 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
4772 tm_file="mips/svr4-5.h mips/svr4-t.h"
4773 if test x$stabs = xyes; then
4774 tm_file="${tm_file} dbx.h"
4776 xm_file="xm-siglist.h ${xm_file}"
4778 xmake_file=mips/x-sysv
4779 if test x$gas = xyes
4781 tmake_file=mips/t-mips-gas
4782 extra_parts="crtbegin.o crtend.o"
4784 tmake_file=mips/t-mips
4785 extra_passes="mips-tfile mips-tdump"
4787 if test x$gnu_ld != xyes
4792 mips-*-ultrix* | mips-dec-mach3) # Decstation.
4793 tm_file="mips/ultrix.h ${tm_file}"
4794 if test x$stabs = xyes; then
4795 tm_file="${tm_file} dbx.h"
4797 xmake_file=mips/x-ultrix
4798 if test x$gas = xyes
4800 tmake_file=mips/t-mips-gas
4802 tmake_file=mips/t-ultrix
4803 extra_passes="mips-tfile mips-tdump"
4805 if test x$gnu_ld != xyes
4810 mips-*-riscos[56789]bsd*)
4811 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
4812 if test x$stabs = xyes; then
4813 tm_file="${tm_file} dbx.h"
4815 if test x$gas = xyes
4817 tmake_file=mips/t-bsd-gas
4819 tmake_file=mips/t-bsd
4820 extra_passes="mips-tfile mips-tdump"
4822 if test x$gnu_ld != xyes
4827 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
4828 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
4829 if test x$stabs = xyes; then
4830 tm_file="${tm_file} dbx.h"
4832 if test x$gas = xyes
4834 tmake_file=mips/t-bsd-gas
4836 tmake_file=mips/t-bsd
4837 extra_passes="mips-tfile mips-tdump"
4839 if test x$gnu_ld != xyes
4844 mips-*-riscos[56789]sysv4*)
4845 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
4846 if test x$stabs = xyes; then
4847 tm_file="${tm_file} dbx.h"
4849 xm_file="xm-siglist.h ${xm_file}"
4850 xmake_file=mips/x-sysv
4851 if test x$gas = xyes
4853 tmake_file=mips/t-svr4-gas
4855 tmake_file=mips/t-svr4
4856 extra_passes="mips-tfile mips-tdump"
4858 if test x$gnu_ld != xyes
4863 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
4864 tm_file="mips/svr4-4.h ${tm_file}"
4865 if test x$stabs = xyes; then
4866 tm_file="${tm_file} dbx.h"
4869 xmake_file=mips/x-sysv
4870 if test x$gas = xyes
4872 tmake_file=mips/t-svr4-gas
4874 tmake_file=mips/t-svr4
4875 extra_passes="mips-tfile mips-tdump"
4877 if test x$gnu_ld != xyes
4882 mips-*-riscos[56789]sysv*)
4883 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
4884 if test x$stabs = xyes; then
4885 tm_file="${tm_file} dbx.h"
4888 xmake_file=mips/x-sysv
4889 if test x$gas = xyes
4891 tmake_file=mips/t-svr3-gas
4893 tmake_file=mips/t-svr3
4894 extra_passes="mips-tfile mips-tdump"
4896 if test x$gnu_ld != xyes
4901 mips-*-sysv* | mips-*-riscos*sysv*)
4902 tm_file="mips/svr3-4.h ${tm_file}"
4903 if test x$stabs = xyes; then
4904 tm_file="${tm_file} dbx.h"
4907 xmake_file=mips/x-sysv
4908 if test x$gas = xyes
4910 tmake_file=mips/t-svr3-gas
4912 tmake_file=mips/t-svr3
4913 extra_passes="mips-tfile mips-tdump"
4915 if test x$gnu_ld != xyes
4920 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
4921 tm_file=mips/mips-5.h
4922 if test x$stabs = xyes; then
4923 tm_file="${tm_file} dbx.h"
4925 if test x$gas = xyes
4927 tmake_file=mips/t-mips-gas
4929 extra_passes="mips-tfile mips-tdump"
4931 if test x$gnu_ld != xyes
4939 tm_file=mips/ecoffl.h
4940 if test x$stabs = xyes; then
4941 tm_file="${tm_file} dbx.h"
4943 tmake_file=mips/t-ecoff
4946 tm_file="gofast.h mips/ecoff.h"
4947 if test x$stabs = xyes; then
4948 tm_file="${tm_file} dbx.h"
4950 tmake_file=mips/t-ecoff
4953 tm_file="mips/elfl.h libgloss.h"
4954 tmake_file=mips/t-elf
4957 tm_file="mips/elf.h"
4958 tmake_file=mips/t-elf
4961 tm_file="mips/elfl64.h"
4962 tmake_file=mips/t-elf
4964 mips64orionel-*-elf*)
4965 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
4966 tmake_file=mips/t-elf
4969 tm_file="mips/elf64.h"
4970 tmake_file=mips/t-elf
4973 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
4974 tmake_file=mips/t-elf
4976 mips64orion-*-rtems*)
4977 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
4978 tmake_file="mips/t-ecoff t-rtems"
4981 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
4982 tmake_file=mips/t-r3900
4985 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
4986 tmake_file=mips/t-r3900
4988 mips-*-*) # Default MIPS RISC-OS 4.0.
4989 if test x$stabs = xyes; then
4990 tm_file="${tm_file} dbx.h"
4992 if test x$gas = xyes
4994 tmake_file=mips/t-mips-gas
4996 extra_passes="mips-tfile mips-tdump"
4998 if test x$gnu_ld != xyes
5005 tm_file="mn10200/mn10200.h"
5006 if test x$stabs = xyes
5008 tm_file="${tm_file} dbx.h"
5014 tm_file="mn10300/mn10300.h"
5015 if test x$stabs = xyes
5017 tm_file="${tm_file} dbx.h"
5022 tm_file=ns32k/encore.h
5026 tm_file=ns32k/sequent.h
5030 tm_file=ns32k/tek6100.h
5034 tm_file=ns32k/tek6200.h
5037 # This has not been updated to GCC 2.
5040 # xmake_file=ns32k/x-genix
5041 # tm_file=ns32k/genix.h
5045 tm_file=ns32k/merlin.h
5049 tm_file=ns32k/pc532-mach.h
5053 tm_file=ns32k/pc532-min.h
5054 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
5059 tm_file=ns32k/netbsd.h
5060 xm_file="ns32k/xm-netbsd.h ${xm_file}"
5061 # On NetBSD, the headers are already okay, except for math.h.
5066 tm_file="${tm_file} pdp11/2bsd.h"
5075 xmake_file=pyr/x-pyr
5082 xmake_file=romp/x-mach
5089 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
5093 tm_file=rs6000/beos.h
5094 xm_file=rs6000/xm-beos.h
5095 tmake_file=rs6000/t-beos
5096 xmake_file=rs6000/x-beos
5098 powerpc-*-sysv* | powerpc-*-elf*)
5099 tm_file=rs6000/sysv4.h
5100 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5101 xm_defines="USG POSIX"
5102 extra_headers=ppc-asm.h
5103 if test x$gas = xyes
5105 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5107 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5109 xmake_file=rs6000/x-sysv4
5112 tm_file=rs6000/eabiaix.h
5113 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5114 extra_headers=ppc-asm.h
5117 tm_file=rs6000/eabisim.h
5118 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5119 extra_headers=ppc-asm.h
5122 tm_file=rs6000/eabi.h
5123 if test x$gas = xyes
5125 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5127 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5129 extra_headers=ppc-asm.h
5132 tm_file=rs6000/rtems.h
5133 if test x$gas = xyes
5135 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
5137 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
5139 extra_headers=ppc-asm.h
5141 powerpc-*-linux-gnulibc1)
5142 tm_file=rs6000/linux.h
5143 xm_file=rs6000/xm-sysv4.h
5144 out_file=rs6000/rs6000.c
5145 if test x$gas = xyes
5147 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5149 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5152 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5153 extra_headers=ppc-asm.h
5154 if test x$enable_threads = xyes; then
5158 powerpc-*-linux-gnu*)
5159 tm_file=rs6000/linux.h
5160 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5161 xm_defines="USG ${xm_defines}"
5162 out_file=rs6000/rs6000.c
5163 if test x$gas = xyes
5165 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
5167 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
5170 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5171 extra_headers=ppc-asm.h
5172 if test x$enable_threads = xyes; then
5176 powerpc-wrs-vxworks*)
5178 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5179 xm_defines="USG POSIX"
5180 tm_file=rs6000/vxppc.h
5181 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5182 extra_headers=ppc-asm.h
5183 thread_file='vxworks'
5185 powerpcle-*-sysv* | powerpcle-*-elf*)
5186 tm_file=rs6000/sysv4le.h
5187 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5188 xm_defines="USG POSIX"
5189 if test x$gas = xyes
5191 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5193 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5195 xmake_file=rs6000/x-sysv4
5196 extra_headers=ppc-asm.h
5198 powerpcle-*-eabisim*)
5199 tm_file=rs6000/eabilesim.h
5200 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5201 extra_headers=ppc-asm.h
5204 tm_file=rs6000/eabile.h
5205 if test x$gas = xyes
5207 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5209 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5211 extra_headers=ppc-asm.h
5213 powerpcle-*-winnt* )
5214 tm_file=rs6000/win-nt.h
5215 tmake_file=rs6000/t-winnt
5217 if test x$enable_threads = xyes; then
5220 extra_headers=ppc-asm.h
5222 powerpcle-*-pe | powerpcle-*-cygwin*)
5223 tm_file=rs6000/cygwin.h
5224 xm_file="rs6000/xm-cygwin.h ${xm_file}"
5225 tmake_file=rs6000/t-winnt
5226 xmake_file=rs6000/x-cygwin
5228 if test x$enable_threads = xyes; then
5232 extra_headers=ppc-asm.h
5234 powerpcle-*-solaris2*)
5235 tm_file=rs6000/sol2.h
5236 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5237 xm_defines="USG POSIX"
5238 if test x$gas = xyes
5240 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5242 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5244 xmake_file=rs6000/x-sysv4
5245 extra_headers=ppc-asm.h
5247 rs6000-ibm-aix3.[01]*)
5248 tm_file=rs6000/aix31.h
5249 xmake_file=rs6000/x-aix31
5253 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
5254 tm_file=rs6000/aix3newas.h
5255 if test x$host != x$target
5257 tmake_file=rs6000/t-xnewas
5259 tmake_file=rs6000/t-newas
5264 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
5265 tm_file=rs6000/aix41.h
5266 if test x$host != x$target
5268 tmake_file=rs6000/t-xnewas
5270 tmake_file=rs6000/t-newas
5272 if test "$gnu_ld" = yes
5274 xmake_file=rs6000/x-aix41-gld
5276 xmake_file=rs6000/x-aix41
5281 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
5282 tm_file=rs6000/aix43.h
5283 if test x$host != x$target
5285 tmake_file=rs6000/t-xaix43
5287 tmake_file=rs6000/t-aix43
5289 xmake_file=rs6000/x-aix43
5293 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
5294 tm_file=rs6000/aix43.h
5295 if test x$host != x$target
5297 tmake_file=rs6000/t-xaix43
5299 tmake_file=rs6000/t-aix43
5301 xmake_file=rs6000/x-aix43
5314 tm_file=rs6000/mach.h
5315 xm_file="${xm_file} rs6000/xm-mach.h"
5316 xmake_file=rs6000/x-mach
5320 tm_file=rs6000/lynx.h
5321 xm_file=rs6000/xm-lynx.h
5322 tmake_file=rs6000/t-rs6000
5323 xmake_file=rs6000/x-lynx
5331 tmake_file="sh/t-sh t-rtems"
5332 tm_file=sh/rtemself.h
5336 tmake_file="sh/t-sh t-rtems"
5345 xm_file="xm-alloca.h ${xm_file}"
5348 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
5349 tm_file=sparc/vxsparc.h
5350 tmake_file=sparc/t-vxsparc
5352 thread_file='vxworks'
5355 tmake_file=sparc/t-sparcbare
5356 tm_file="sparc/aout.h libgloss.h"
5359 tm_file=sparc/netbsd.h
5364 # we need collect2 until our bug is fixed...
5372 tmake_file=sparc/t-elf
5373 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
5377 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
5378 xm_file="${xm_file} sparc/xm-linux.h"
5379 tm_file=sparc/linux-aout.h
5383 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
5384 xm_file="${xm_file} sparc/xm-linux.h"
5386 tm_file=sparc/linux.h
5387 tmake_file="t-linux t-linux-gnulibc1"
5388 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5391 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
5392 xm_file="${xm_file} sparc/xm-linux.h"
5394 tm_file=sparc/linux.h
5395 tmake_file="t-linux"
5396 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5398 if test x$enable_threads = xyes; then
5403 if test x$gas = xyes
5405 tm_file=sparc/lynx.h
5407 tm_file=sparc/lynx-ng.h
5409 xm_file=sparc/xm-lynx.h
5410 tmake_file=sparc/t-sunos41
5414 tmake_file="sparc/t-sparcbare t-rtems"
5415 tm_file=sparc/rtems.h
5417 sparcv9-*-solaris2*)
5418 tm_file=sparc/sol2-sld-64.h
5419 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
5420 xm_defines="USG POSIX"
5421 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
5422 xmake_file=sparc/x-sysv4
5423 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
5425 if test x${enable_threads} = x ; then
5426 enable_threads=$have_pthread_h
5427 if test x${enable_threads} = x ; then
5428 enable_threads=$have_thread_h
5431 if test x${enable_threads} = xyes ; then
5432 if test x${have_pthread_h} = xyes ; then
5435 thread_file='solaris'
5439 sparc-hal-solaris2*)
5440 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
5441 xm_defines="USG POSIX"
5442 tm_file="sparc/sol2.h sparc/hal.h"
5443 tmake_file="sparc/t-halos sparc/t-sol2"
5444 xmake_file=sparc/x-sysv4
5445 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
5454 thread_file='solaris'
5457 if test x$gnu_ld = xyes
5459 tm_file=sparc/sol2.h
5461 tm_file=sparc/sol2-sld.h
5463 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
5464 xm_defines="USG POSIX"
5465 tmake_file=sparc/t-sol2
5466 xmake_file=sparc/x-sysv4
5467 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
5476 if test x${enable_threads} = x; then
5477 enable_threads=$have_pthread_h
5478 if test x${enable_threads} = x; then
5479 enable_threads=$have_thread_h
5482 if test x${enable_threads} = xyes; then
5483 if test x${have_pthread_h} = xyes; then
5486 thread_file='solaris'
5491 tm_file=sparc/sunos4.h
5492 tmake_file=sparc/t-sunos40
5496 tm_file=sparc/sunos4.h
5497 tmake_file=sparc/t-sunos41
5499 if test x$gas = xyes; then
5500 tm_file="${tm_file} sparc/sun4gas.h"
5504 tm_file=sparc/sun4o3.h
5508 tm_file=sparc/sysv4.h
5509 xm_file="xm-siglist.h sparc/xm-sysv4.h"
5510 xm_defines="USG POSIX"
5512 xmake_file=sparc/x-sysv4
5513 extra_parts="crtbegin.o crtend.o"
5516 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
5517 xm_defines="USG POSIX"
5518 tm_file=sparc/vxsim.h
5519 tmake_file=sparc/t-vxsparc
5520 xmake_file=sparc/x-sysv4
5523 tm_file="sparc/splet.h libgloss.h"
5524 tmake_file=sparc/t-splet
5527 tm_file="sparc/litecoff.h libgloss.h"
5528 tmake_file=sparc/t-sparclite
5531 tm_file="sparc/lite.h aoutos.h libgloss.h"
5532 tmake_file=sparc/t-sparclite
5535 tmake_file=sparc/t-sp64
5536 tm_file=sparc/sp64-aout.h
5539 tmake_file=sparc/t-sp64
5540 tm_file=sparc/sp64-elf.h
5541 extra_parts="crtbegin.o crtend.o"
5543 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
5544 tmake_file="t-linux sparc/t-linux64"
5545 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
5546 tm_file=sparc/linux64.h
5548 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5552 tmake_file=sparc/t-sp64
5553 tm_file=sparc/sp64-elf.h
5554 xm_file="sparc/xm-sp64.h sparc/xm-freebsd.h"
5555 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5559 # This hasn't been upgraded to GCC 2.
5560 # tahoe-harris-*) # Harris tahoe, using COFF.
5561 # tm_file=tahoe/harris.h
5563 # tahoe-*-bsd*) # tahoe running BSD
5565 thumb-*-coff* | thumbel-*-coff*)
5567 out_file=arm/thumb.c
5568 xm_file=arm/xm-thumb.h
5569 md_file=arm/thumb.md
5570 tmake_file=arm/t-thumb
5574 out_file=arm/thumb.c
5575 xm_file=arm/xm-thumb.h
5576 md_file=arm/thumb.md
5577 tmake_file=arm/t-thumb
5578 thread_file='vxworks'
5580 # This hasn't been upgraded to GCC 2.
5587 tm_file="v850/v850.h"
5588 xm_file="v850/xm-v850.h"
5589 tmake_file=v850/t-v850
5590 if test x$stabs = xyes
5592 tm_file="${tm_file} dbx.h"
5596 vax-*-bsd*) # vaxen running BSD
5600 vax-*-sysv*) # vaxen running system V
5601 tm_file="${tm_file} vax/vaxv.h"
5606 tm_file="${tm_file} netbsd.h vax/netbsd.h"
5612 tmake_file="${tmake_file} vax/t-openbsd"
5614 vax-*-ultrix*) # vaxen running ultrix
5615 tm_file="${tm_file} vax/ultrix.h"
5619 vax-*-vms*) # vaxen running VMS
5620 xm_file=vax/xm-vms.h
5624 vax-*-*) # vax default entry
5628 xm_file="${xm_file} xm-svr3"
5632 echo "Configuration $machine not supported" 1>&2
5639 ;; # Existing GNU/Linux systems do not use the GNU setup.
5641 # On the GNU system, the setup is just about the same on
5642 # each different CPU. The specific machines that GNU
5643 # supports are matched above and just set $cpu_type.
5644 xm_file="xm-gnu.h ${xm_file}"
5645 tm_file=${cpu_type}/gnu.h
5646 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
5647 # GNU always uses ELF.
5649 # GNU tools are the only tools.
5652 xmake_file=x-linux # These details are the same as Linux.
5653 tmake_file=t-gnu # These are not.
5656 xmake_try_sysv=x-sysv
5657 install_headers_dir=install-headers-cpio
5660 install_headers_dir=install-headers-cpio
5664 # Distinguish i[34567]86
5665 # Also, do not run mips-tfile on MIPS if using gas.
5666 # Process --with-cpu= for PowerPC/rs6000
5667 target_cpu_default2=
5670 target_cpu_default2=1
5673 case $target_alias in
5675 target_cpu_default2=4
5678 target_cpu_default2=2
5682 i686-*-* | i786-*-*)
5683 target_cpu_default2=3
5688 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
5691 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
5694 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
5697 target_cpu_default2="MASK_CPU_EV5"
5701 if test x$gas = xyes
5703 if test "$target_cpu_default2" = ""
5705 target_cpu_default2="MASK_GAS"
5707 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
5712 case "x$with_cpu" in
5715 target_cpu_default2="TARGET_CPU_generic"
5718 # Distinguish cores, and major variants
5719 # arm7m doesn't exist, but D & I don't affect code
5720 xarm23678 | xarm250 | xarm67010 \
5721 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
5722 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
5723 | xstrongarm | xstrongarm110 | xstrongarm1100)
5724 target_cpu_default2="TARGET_CPU_$with_cpu"
5728 echo "--with-cpu must be passed a value" 1>&2
5733 if test x$pass2done = xyes
5735 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5742 mips*-*-ecoff* | mips*-*-elf*)
5743 if test x$gas = xyes
5745 if test x$gnu_ld = xyes
5747 target_cpu_default2=20
5749 target_cpu_default2=16
5754 if test x$gas = xyes
5756 target_cpu_default2=16
5759 powerpc*-*-* | rs6000-*-*)
5760 case "x$with_cpu" in
5764 xcommon | xpower | xpower2 | xpowerpc | xrios \
5765 | xrios1 | xrios2 | xrsc | xrsc1 \
5766 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
5767 | xec603e | x740 | x750 | x401 \
5768 | x403 | x505 | x801 | x821 | x823 | x860)
5769 target_cpu_default2="\"$with_cpu\""
5773 echo "--with-cpu must be passed a value" 1>&2
5778 if test x$pass2done = xyes
5780 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5787 case ".$with_cpu" in
5789 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
5791 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
5792 target_cpu_default2="TARGET_CPU_$with_cpu"
5795 if test x$pass2done = xyes
5797 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5805 if test "$target_cpu_default2" != ""
5807 if test "$target_cpu_default" != ""
5809 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
5811 target_cpu_default=$target_cpu_default2
5815 # No need for collect2 if we have the GNU linker.
5816 # Actually, there is now; GNU ld doesn't handle the EH info or
5817 # collecting for shared libraries.
5824 # Save data on machine being used to compile GCC in build_xm_file.
5825 # Save data on host machine in vars host_xm_file and host_xmake_file.
5826 if test x$pass1done = x
5828 if test x"$xm_file" = x
5829 then build_xm_file=$cpu_type/xm-$cpu_type.h
5830 else build_xm_file=$xm_file
5832 build_xm_defines=$xm_defines
5833 build_install_headers_dir=$install_headers_dir
5834 build_exeext=$exeext
5837 if test x$pass2done = x
5839 if test x"$xm_file" = x
5840 then host_xm_file=$cpu_type/xm-$cpu_type.h
5841 else host_xm_file=$xm_file
5843 host_xm_defines=$xm_defines
5844 if test x"$xmake_file" = x
5845 then xmake_file=$cpu_type/x-$cpu_type
5847 host_xmake_file="$xmake_file"
5848 host_truncate_target=$truncate_target
5849 host_extra_gcc_objs=$extra_gcc_objs
5850 host_extra_objs=$extra_host_objs
5857 extra_objs="${host_extra_objs} ${extra_objs}"
5859 # Default the target-machine variables that were not explicitly set.
5860 if test x"$tm_file" = x
5861 then tm_file=$cpu_type/$cpu_type.h; fi
5863 if test x$extra_headers = x
5864 then extra_headers=; fi
5866 if test x"$xm_file" = x
5867 then xm_file=$cpu_type/xm-$cpu_type.h; fi
5869 if test x$md_file = x
5870 then md_file=$cpu_type/$cpu_type.md; fi
5872 if test x$out_file = x
5873 then out_file=$cpu_type/$cpu_type.c; fi
5875 if test x"$tmake_file" = x
5876 then tmake_file=$cpu_type/t-$cpu_type
5879 if test x"$dwarf2" = xyes
5880 then tm_file="tm-dwarf2.h $tm_file"
5883 if test x$float_format = x
5884 then float_format=i64
5887 if test $float_format = none
5888 then float_h_file=Makefile.in
5889 else float_h_file=float-$float_format.h
5892 if test x$enable_haifa = x
5895 alpha*-* | hppa*-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
5900 # Handle cpp installation.
5901 if test x$enable_cpp != xno
5903 tmake_file="$tmake_file t-install-cpp"
5906 # Say what files are being used for the output code and MD file.
5907 echo "Using \`$srcdir/config/$out_file' to output insns."
5908 echo "Using \`$srcdir/config/$md_file' as machine description file."
5911 for f in $tm_file; do
5914 if test $count = ax; then
5915 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
5917 echo "Using the following target machine macro files:"
5918 for f in $tm_file; do
5919 echo " $srcdir/config/$f"
5924 for f in $host_xm_file; do
5927 if test $count = ax; then
5928 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
5930 echo "Using the following host machine macro files:"
5931 for f in $host_xm_file; do
5932 echo " $srcdir/config/$f"
5936 if test "$host_xm_file" != "$build_xm_file"; then
5938 for f in $build_xm_file; do
5941 if test $count = ax; then
5942 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
5944 echo "Using the following build machine macro files:"
5945 for f in $build_xm_file; do
5946 echo " $srcdir/config/$f"
5951 if test x$thread_file = x; then
5952 if test x$target_thread_file != x; then
5953 thread_file=$target_thread_file
5955 thread_file='single'
5959 # Set up the header files.
5960 # $links is the list of header files to create.
5961 # $vars is the list of shell variables with file names to include.
5962 # auto-host.h is the file containing items generated by autoconf and is
5963 # the first file included by config.h.
5965 host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
5967 # If host=build, it is correct to have hconfig include auto-host.h
5968 # as well. If host!=build, we are in error and need to do more
5969 # work to find out the build config parameters.
5970 if test x$host = x$build
5972 build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
5974 # We create a subdir, then run autoconf in the subdir.
5975 # To prevent recursion we set host and build for the new
5976 # invocation of configure to the build for this invocation
5983 /*) realsrcdir=${srcdir};;
5984 *) realsrcdir=../${srcdir};;
5986 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
5987 --target=$target --host=$build --build=$build
5989 # We just finished tests for the build machine, so rename
5990 # the file auto-build.h in the gcc directory.
5991 mv auto-host.h ../auto-build.h
5994 build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
5997 xm_file="gansidecl.h ${xm_file}"
5998 tm_file="gansidecl.h ${tm_file}"
6000 vars="host_xm_file tm_file xm_file build_xm_file"
6001 links="config.h tm.h tconfig.h hconfig.h"
6002 defines="host_xm_defines null_defines xm_defines build_xm_defines"
6005 if test -f config.status; then mv -f config.status config.bak; fi
6008 while test -n "$vars"
6010 set $vars; var=$1; shift; vars=$*
6011 set $links; link=$1; shift; links=$*
6012 set $defines; define=$1; shift; defines=$*
6016 # Define TARGET_CPU_DEFAULT if the system wants one.
6017 # This substitutes for lots of *.h files.
6018 if test "$target_cpu_default" != "" -a $link = tm.h
6020 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
6023 for file in `eval echo '$'$var`; do
6028 echo '#ifdef IN_GCC' >>$link
6031 echo "#include \"$file\"" >>$link
6036 echo '#endif' >>$link
6041 for def in `eval echo '$'$define`; do
6042 echo "#ifndef $def" >>$link
6043 echo "#define $def" >>$link
6044 echo "#endif" >>$link
6048 # Truncate the target if necessary
6049 if test x$host_truncate_target != x; then
6050 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
6053 # Get the version trigger filename from the toplevel
6054 if test "${with_gcc_version_trigger+set}" = set; then
6055 gcc_version_trigger=$with_gcc_version_trigger
6057 gcc_version_trigger=${srcdir}/version.c
6059 gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
6061 # Internationalization
6063 VERSION="$gcc_version"
6064 cat >> confdefs.h <<EOF
6065 #define PACKAGE "$PACKAGE"
6068 cat >> confdefs.h <<EOF
6069 #define VERSION "$VERSION"
6077 # NLS support is still experimental, so disable it by default for now.
6078 # Check whether --enable-nls or --disable-nls was given.
6079 if test "${enable_nls+set}" = set; then
6080 enableval="$enable_nls"
6088 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
6089 echo "configure:6066: checking for strerror in -lcposix" >&5
6090 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
6091 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6092 echo $ac_n "(cached) $ac_c" 1>&6
6094 ac_save_LIBS="$LIBS"
6095 LIBS="-lcposix $LIBS"
6096 cat > conftest.$ac_ext <<EOF
6097 #line 6074 "configure"
6098 #include "confdefs.h"
6099 /* Override any gcc2 internal prototype to avoid an error. */
6100 /* We use char because int might match the return type of a gcc2
6101 builtin and then its argument prototype would still apply. */
6108 if { (eval echo configure:6085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6110 eval "ac_cv_lib_$ac_lib_var=yes"
6112 echo "configure: failed program was:" >&5
6113 cat conftest.$ac_ext >&5
6115 eval "ac_cv_lib_$ac_lib_var=no"
6118 LIBS="$ac_save_LIBS"
6121 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6122 echo "$ac_t""yes" 1>&6
6123 LIBS="$LIBS -lcposix"
6125 echo "$ac_t""no" 1>&6
6130 echo $ac_n "checking for working const""... $ac_c" 1>&6
6131 echo "configure:6108: checking for working const" >&5
6132 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6133 echo $ac_n "(cached) $ac_c" 1>&6
6135 cat > conftest.$ac_ext <<EOF
6136 #line 6113 "configure"
6137 #include "confdefs.h"
6141 /* Ultrix mips cc rejects this. */
6142 typedef int charset[2]; const charset x;
6143 /* SunOS 4.1.1 cc rejects this. */
6144 char const *const *ccp;
6146 /* NEC SVR4.0.2 mips cc rejects this. */
6147 struct point {int x, y;};
6148 static struct point const zero = {0,0};
6149 /* AIX XL C 1.02.0.0 rejects this.
6150 It does not let you subtract one const X* pointer from another in an arm
6151 of an if-expression whose if-part is not a constant expression */
6152 const char *g = "string";
6153 ccp = &g + (g ? g-g : 0);
6154 /* HPUX 7.0 cc rejects these. */
6157 ccp = (char const *const *) p;
6158 { /* SCO 3.2v4 cc rejects this. */
6160 char const *s = 0 ? (char *) 0 : (char const *) 0;
6164 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6166 const int *foo = &x[0];
6169 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6170 typedef const int *iptr;
6174 { /* AIX XL C 1.02.0.0 rejects this saying
6175 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6176 struct s { int j; const int *ap[3]; };
6177 struct s *b; b->j = 5;
6179 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6185 if { (eval echo configure:6162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6189 echo "configure: failed program was:" >&5
6190 cat conftest.$ac_ext >&5
6197 echo "$ac_t""$ac_cv_c_const" 1>&6
6198 if test $ac_cv_c_const = no; then
6199 cat >> confdefs.h <<\EOF
6205 echo $ac_n "checking for inline""... $ac_c" 1>&6
6206 echo "configure:6183: checking for inline" >&5
6207 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6208 echo $ac_n "(cached) $ac_c" 1>&6
6211 for ac_kw in inline __inline__ __inline; do
6212 cat > conftest.$ac_ext <<EOF
6213 #line 6190 "configure"
6214 #include "confdefs.h"
6220 if { (eval echo configure:6197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6222 ac_cv_c_inline=$ac_kw; break
6224 echo "configure: failed program was:" >&5
6225 cat conftest.$ac_ext >&5
6232 echo "$ac_t""$ac_cv_c_inline" 1>&6
6233 case "$ac_cv_c_inline" in
6235 no) cat >> confdefs.h <<\EOF
6239 *) cat >> confdefs.h <<EOF
6240 #define inline $ac_cv_c_inline
6245 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6246 echo "configure:6223: checking for off_t" >&5
6247 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6248 echo $ac_n "(cached) $ac_c" 1>&6
6250 cat > conftest.$ac_ext <<EOF
6251 #line 6228 "configure"
6252 #include "confdefs.h"
6253 #include <sys/types.h>
6259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6260 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6262 ac_cv_type_off_t=yes
6270 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6271 if test $ac_cv_type_off_t = no; then
6272 cat >> confdefs.h <<\EOF
6278 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6279 echo "configure:6256: checking for size_t" >&5
6280 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6281 echo $ac_n "(cached) $ac_c" 1>&6
6283 cat > conftest.$ac_ext <<EOF
6284 #line 6261 "configure"
6285 #include "confdefs.h"
6286 #include <sys/types.h>
6292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6293 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6295 ac_cv_type_size_t=yes
6298 ac_cv_type_size_t=no
6303 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6304 if test $ac_cv_type_size_t = no; then
6305 cat >> confdefs.h <<\EOF
6306 #define size_t unsigned
6311 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6312 # for constant arguments. Useless!
6313 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6314 echo "configure:6291: checking for working alloca.h" >&5
6315 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6316 echo $ac_n "(cached) $ac_c" 1>&6
6318 cat > conftest.$ac_ext <<EOF
6319 #line 6296 "configure"
6320 #include "confdefs.h"
6323 char *p = alloca(2 * sizeof(int));
6326 if { (eval echo configure:6303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6328 ac_cv_header_alloca_h=yes
6330 echo "configure: failed program was:" >&5
6331 cat conftest.$ac_ext >&5
6333 ac_cv_header_alloca_h=no
6338 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6339 if test $ac_cv_header_alloca_h = yes; then
6340 cat >> confdefs.h <<\EOF
6341 #define HAVE_ALLOCA_H 1
6346 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6347 echo "configure:6324: checking for alloca" >&5
6348 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6349 echo $ac_n "(cached) $ac_c" 1>&6
6351 cat > conftest.$ac_ext <<EOF
6352 #line 6329 "configure"
6353 #include "confdefs.h"
6356 # define alloca __builtin_alloca
6359 # include <malloc.h>
6360 # define alloca _alloca
6363 # include <alloca.h>
6368 # ifndef alloca /* predefined by HP cc +Olibcalls */
6377 char *p = (char *) alloca(1);
6380 if { (eval echo configure:6357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6382 ac_cv_func_alloca_works=yes
6384 echo "configure: failed program was:" >&5
6385 cat conftest.$ac_ext >&5
6387 ac_cv_func_alloca_works=no
6392 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6393 if test $ac_cv_func_alloca_works = yes; then
6394 cat >> confdefs.h <<\EOF
6395 #define HAVE_ALLOCA 1
6400 if test $ac_cv_func_alloca_works = no; then
6401 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6402 # that cause trouble. Some versions do not even contain alloca or
6403 # contain a buggy version. If you still want to use their alloca,
6404 # use ar to extract alloca.o from them instead of compiling alloca.c.
6405 ALLOCA=alloca.${ac_objext}
6406 cat >> confdefs.h <<\EOF
6411 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
6412 echo "configure:6389: checking whether alloca needs Cray hooks" >&5
6413 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6414 echo $ac_n "(cached) $ac_c" 1>&6
6416 cat > conftest.$ac_ext <<EOF
6417 #line 6394 "configure"
6418 #include "confdefs.h"
6419 #if defined(CRAY) && ! defined(CRAY2)
6426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6427 egrep "webecray" >/dev/null 2>&1; then
6438 echo "$ac_t""$ac_cv_os_cray" 1>&6
6439 if test $ac_cv_os_cray = yes; then
6440 for ac_func in _getb67 GETB67 getb67; do
6441 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6442 echo "configure:6419: checking for $ac_func" >&5
6443 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6444 echo $ac_n "(cached) $ac_c" 1>&6
6446 cat > conftest.$ac_ext <<EOF
6447 #line 6424 "configure"
6448 #include "confdefs.h"
6449 /* System header to define __stub macros and hopefully few prototypes,
6450 which can conflict with char $ac_func(); below. */
6452 /* Override any gcc2 internal prototype to avoid an error. */
6453 /* We use char because int might match the return type of a gcc2
6454 builtin and then its argument prototype would still apply. */
6459 /* The GNU C library defines this for functions which it implements
6460 to always fail with ENOSYS. Some functions are actually named
6461 something starting with __ and the normal name is an alias. */
6462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6470 if { (eval echo configure:6447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6472 eval "ac_cv_func_$ac_func=yes"
6474 echo "configure: failed program was:" >&5
6475 cat conftest.$ac_ext >&5
6477 eval "ac_cv_func_$ac_func=no"
6482 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6483 echo "$ac_t""yes" 1>&6
6484 cat >> confdefs.h <<EOF
6485 #define CRAY_STACKSEG_END $ac_func
6490 echo "$ac_t""no" 1>&6
6496 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
6497 echo "configure:6474: checking stack direction for C alloca" >&5
6498 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
6499 echo $ac_n "(cached) $ac_c" 1>&6
6501 if test "$cross_compiling" = yes; then
6502 ac_cv_c_stack_direction=0
6504 cat > conftest.$ac_ext <<EOF
6505 #line 6482 "configure"
6506 #include "confdefs.h"
6507 find_stack_direction ()
6509 static char *addr = 0;
6514 return find_stack_direction ();
6517 return (&dummy > addr) ? 1 : -1;
6521 exit (find_stack_direction() < 0);
6524 if { (eval echo configure:6501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6526 ac_cv_c_stack_direction=1
6528 echo "configure: failed program was:" >&5
6529 cat conftest.$ac_ext >&5
6531 ac_cv_c_stack_direction=-1
6538 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6539 cat >> confdefs.h <<EOF
6540 #define STACK_DIRECTION $ac_cv_c_stack_direction
6545 for ac_hdr in unistd.h
6547 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6548 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6549 echo "configure:6526: checking for $ac_hdr" >&5
6550 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6551 echo $ac_n "(cached) $ac_c" 1>&6
6553 cat > conftest.$ac_ext <<EOF
6554 #line 6531 "configure"
6555 #include "confdefs.h"
6558 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6559 { (eval echo configure:6536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6560 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6561 if test -z "$ac_err"; then
6563 eval "ac_cv_header_$ac_safe=yes"
6566 echo "configure: failed program was:" >&5
6567 cat conftest.$ac_ext >&5
6569 eval "ac_cv_header_$ac_safe=no"
6573 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6574 echo "$ac_t""yes" 1>&6
6575 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6576 cat >> confdefs.h <<EOF
6577 #define $ac_tr_hdr 1
6581 echo "$ac_t""no" 1>&6
6585 for ac_func in getpagesize
6587 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6588 echo "configure:6565: checking for $ac_func" >&5
6589 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6590 echo $ac_n "(cached) $ac_c" 1>&6
6592 cat > conftest.$ac_ext <<EOF
6593 #line 6570 "configure"
6594 #include "confdefs.h"
6595 /* System header to define __stub macros and hopefully few prototypes,
6596 which can conflict with char $ac_func(); below. */
6598 /* Override any gcc2 internal prototype to avoid an error. */
6599 /* We use char because int might match the return type of a gcc2
6600 builtin and then its argument prototype would still apply. */
6605 /* The GNU C library defines this for functions which it implements
6606 to always fail with ENOSYS. Some functions are actually named
6607 something starting with __ and the normal name is an alias. */
6608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6616 if { (eval echo configure:6593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6618 eval "ac_cv_func_$ac_func=yes"
6620 echo "configure: failed program was:" >&5
6621 cat conftest.$ac_ext >&5
6623 eval "ac_cv_func_$ac_func=no"
6628 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6629 echo "$ac_t""yes" 1>&6
6630 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6631 cat >> confdefs.h <<EOF
6632 #define $ac_tr_func 1
6636 echo "$ac_t""no" 1>&6
6640 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6641 echo "configure:6618: checking for working mmap" >&5
6642 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6643 echo $ac_n "(cached) $ac_c" 1>&6
6645 if test "$cross_compiling" = yes; then
6646 ac_cv_func_mmap_fixed_mapped=no
6648 cat > conftest.$ac_ext <<EOF
6649 #line 6626 "configure"
6650 #include "confdefs.h"
6652 /* Thanks to Mike Haertel and Jim Avera for this test.
6653 Here is a matrix of mmap possibilities:
6654 mmap private not fixed
6655 mmap private fixed at somewhere currently unmapped
6656 mmap private fixed at somewhere already mapped
6657 mmap shared not fixed
6658 mmap shared fixed at somewhere currently unmapped
6659 mmap shared fixed at somewhere already mapped
6660 For private mappings, we should verify that changes cannot be read()
6661 back from the file, nor mmap's back from the file at a different
6662 address. (There have been systems where private was not correctly
6663 implemented like the infamous i386 svr4.0, and systems where the
6664 VM page cache was not coherent with the filesystem buffer cache
6665 like early versions of FreeBSD and possibly contemporary NetBSD.)
6666 For shared mappings, we should conversely verify that changes get
6667 propogated back to all the places they're supposed to be.
6669 Grep wants private fixed already mapped.
6670 The main things grep needs to know about mmap are:
6671 * does it exist and is it safe to write into the mmap'd area
6672 * how to use it (BSD variants) */
6673 #include <sys/types.h>
6675 #include <sys/mman.h>
6677 /* This mess was copied from the GNU getpagesize.h. */
6678 #ifndef HAVE_GETPAGESIZE
6679 # ifdef HAVE_UNISTD_H
6680 # include <unistd.h>
6683 /* Assume that all systems that can run configure have sys/param.h. */
6684 # ifndef HAVE_SYS_PARAM_H
6685 # define HAVE_SYS_PARAM_H 1
6688 # ifdef _SC_PAGESIZE
6689 # define getpagesize() sysconf(_SC_PAGESIZE)
6690 # else /* no _SC_PAGESIZE */
6691 # ifdef HAVE_SYS_PARAM_H
6692 # include <sys/param.h>
6693 # ifdef EXEC_PAGESIZE
6694 # define getpagesize() EXEC_PAGESIZE
6695 # else /* no EXEC_PAGESIZE */
6697 # define getpagesize() NBPG * CLSIZE
6700 # endif /* no CLSIZE */
6701 # else /* no NBPG */
6703 # define getpagesize() NBPC
6704 # else /* no NBPC */
6706 # define getpagesize() PAGESIZE
6707 # endif /* PAGESIZE */
6708 # endif /* no NBPC */
6709 # endif /* no NBPG */
6710 # endif /* no EXEC_PAGESIZE */
6711 # else /* no HAVE_SYS_PARAM_H */
6712 # define getpagesize() 8192 /* punt totally */
6713 # endif /* no HAVE_SYS_PARAM_H */
6714 # endif /* no _SC_PAGESIZE */
6716 #endif /* no HAVE_GETPAGESIZE */
6719 extern "C" { void *malloc(unsigned); }
6727 char *data, *data2, *data3;
6731 pagesize = getpagesize();
6734 * First, make a file with some known garbage in it.
6736 data = malloc(pagesize);
6739 for (i = 0; i < pagesize; ++i)
6740 *(data + i) = rand();
6742 fd = creat("conftestmmap", 0600);
6745 if (write(fd, data, pagesize) != pagesize)
6750 * Next, try to mmap the file at a fixed address which
6751 * already has something else allocated at it. If we can,
6752 * also make sure that we see the same garbage.
6754 fd = open("conftestmmap", O_RDWR);
6757 data2 = malloc(2 * pagesize);
6760 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6761 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6762 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6764 for (i = 0; i < pagesize; ++i)
6765 if (*(data + i) != *(data2 + i))
6769 * Finally, make sure that changes to the mapped area
6770 * do not percolate back to the file as seen by read().
6771 * (This is a bug on some variants of i386 svr4.0.)
6773 for (i = 0; i < pagesize; ++i)
6774 *(data2 + i) = *(data2 + i) + 1;
6775 data3 = malloc(pagesize);
6778 if (read(fd, data3, pagesize) != pagesize)
6780 for (i = 0; i < pagesize; ++i)
6781 if (*(data + i) != *(data3 + i))
6784 unlink("conftestmmap");
6789 if { (eval echo configure:6766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6791 ac_cv_func_mmap_fixed_mapped=yes
6793 echo "configure: failed program was:" >&5
6794 cat conftest.$ac_ext >&5
6796 ac_cv_func_mmap_fixed_mapped=no
6803 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6804 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6805 cat >> confdefs.h <<\EOF
6812 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6813 unistd.h sys/param.h
6815 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6816 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6817 echo "configure:6794: checking for $ac_hdr" >&5
6818 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6819 echo $ac_n "(cached) $ac_c" 1>&6
6821 cat > conftest.$ac_ext <<EOF
6822 #line 6799 "configure"
6823 #include "confdefs.h"
6826 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6827 { (eval echo configure:6804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6828 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6829 if test -z "$ac_err"; then
6831 eval "ac_cv_header_$ac_safe=yes"
6834 echo "configure: failed program was:" >&5
6835 cat conftest.$ac_ext >&5
6837 eval "ac_cv_header_$ac_safe=no"
6841 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6842 echo "$ac_t""yes" 1>&6
6843 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6844 cat >> confdefs.h <<EOF
6845 #define $ac_tr_hdr 1
6849 echo "$ac_t""no" 1>&6
6853 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
6854 strdup __argz_count __argz_stringify __argz_next
6856 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6857 echo "configure:6834: checking for $ac_func" >&5
6858 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6859 echo $ac_n "(cached) $ac_c" 1>&6
6861 cat > conftest.$ac_ext <<EOF
6862 #line 6839 "configure"
6863 #include "confdefs.h"
6864 /* System header to define __stub macros and hopefully few prototypes,
6865 which can conflict with char $ac_func(); below. */
6867 /* Override any gcc2 internal prototype to avoid an error. */
6868 /* We use char because int might match the return type of a gcc2
6869 builtin and then its argument prototype would still apply. */
6874 /* The GNU C library defines this for functions which it implements
6875 to always fail with ENOSYS. Some functions are actually named
6876 something starting with __ and the normal name is an alias. */
6877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6885 if { (eval echo configure:6862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6887 eval "ac_cv_func_$ac_func=yes"
6889 echo "configure: failed program was:" >&5
6890 cat conftest.$ac_ext >&5
6892 eval "ac_cv_func_$ac_func=no"
6897 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6898 echo "$ac_t""yes" 1>&6
6899 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6900 cat >> confdefs.h <<EOF
6901 #define $ac_tr_func 1
6905 echo "$ac_t""no" 1>&6
6910 if test "${ac_cv_func_stpcpy+set}" != "set"; then
6911 for ac_func in stpcpy
6913 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6914 echo "configure:6891: checking for $ac_func" >&5
6915 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6916 echo $ac_n "(cached) $ac_c" 1>&6
6918 cat > conftest.$ac_ext <<EOF
6919 #line 6896 "configure"
6920 #include "confdefs.h"
6921 /* System header to define __stub macros and hopefully few prototypes,
6922 which can conflict with char $ac_func(); below. */
6924 /* Override any gcc2 internal prototype to avoid an error. */
6925 /* We use char because int might match the return type of a gcc2
6926 builtin and then its argument prototype would still apply. */
6931 /* The GNU C library defines this for functions which it implements
6932 to always fail with ENOSYS. Some functions are actually named
6933 something starting with __ and the normal name is an alias. */
6934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6942 if { (eval echo configure:6919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6944 eval "ac_cv_func_$ac_func=yes"
6946 echo "configure: failed program was:" >&5
6947 cat conftest.$ac_ext >&5
6949 eval "ac_cv_func_$ac_func=no"
6954 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6955 echo "$ac_t""yes" 1>&6
6956 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6957 cat >> confdefs.h <<EOF
6958 #define $ac_tr_func 1
6962 echo "$ac_t""no" 1>&6
6967 if test "${ac_cv_func_stpcpy}" = "yes"; then
6968 cat >> confdefs.h <<\EOF
6969 #define HAVE_STPCPY 1
6974 if test $ac_cv_header_locale_h = yes; then
6975 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
6976 echo "configure:6953: checking for LC_MESSAGES" >&5
6977 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
6978 echo $ac_n "(cached) $ac_c" 1>&6
6980 cat > conftest.$ac_ext <<EOF
6981 #line 6958 "configure"
6982 #include "confdefs.h"
6988 if { (eval echo configure:6965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6990 am_cv_val_LC_MESSAGES=yes
6992 echo "configure: failed program was:" >&5
6993 cat conftest.$ac_ext >&5
6995 am_cv_val_LC_MESSAGES=no
7000 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7001 if test $am_cv_val_LC_MESSAGES = yes; then
7002 cat >> confdefs.h <<\EOF
7003 #define HAVE_LC_MESSAGES 1
7008 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7009 echo "configure:6986: checking whether NLS is requested" >&5
7010 # Check whether --enable-nls or --disable-nls was given.
7011 if test "${enable_nls+set}" = set; then
7012 enableval="$enable_nls"
7018 echo "$ac_t""$USE_NLS" 1>&6
7021 USE_INCLUDED_LIBINTL=no
7023 if test "$USE_NLS" = "yes"; then
7024 cat >> confdefs.h <<\EOF
7025 #define ENABLE_NLS 1
7028 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7029 echo "configure:7006: checking whether included gettext is requested" >&5
7030 # Check whether --with-included-gettext or --without-included-gettext was given.
7031 if test "${with_included_gettext+set}" = set; then
7032 withval="$with_included_gettext"
7033 nls_cv_force_use_gnu_gettext=$withval
7035 nls_cv_force_use_gnu_gettext=no
7038 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7040 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7041 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7043 nls_cv_header_libgt=
7046 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7047 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7048 echo "configure:7025: checking for libintl.h" >&5
7049 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7050 echo $ac_n "(cached) $ac_c" 1>&6
7052 cat > conftest.$ac_ext <<EOF
7053 #line 7030 "configure"
7054 #include "confdefs.h"
7055 #include <libintl.h>
7057 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7058 { (eval echo configure:7035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7059 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7060 if test -z "$ac_err"; then
7062 eval "ac_cv_header_$ac_safe=yes"
7065 echo "configure: failed program was:" >&5
7066 cat conftest.$ac_ext >&5
7068 eval "ac_cv_header_$ac_safe=no"
7072 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7073 echo "$ac_t""yes" 1>&6
7074 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7075 echo "configure:7052: checking for gettext in libc" >&5
7076 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7077 echo $ac_n "(cached) $ac_c" 1>&6
7079 cat > conftest.$ac_ext <<EOF
7080 #line 7057 "configure"
7081 #include "confdefs.h"
7082 #include <libintl.h>
7084 return (int) gettext ("")
7087 if { (eval echo configure:7064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7089 gt_cv_func_gettext_libc=yes
7091 echo "configure: failed program was:" >&5
7092 cat conftest.$ac_ext >&5
7094 gt_cv_func_gettext_libc=no
7099 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7101 if test "$gt_cv_func_gettext_libc" != "yes"; then
7102 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7103 echo "configure:7080: checking for bindtextdomain in -lintl" >&5
7104 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7105 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7106 echo $ac_n "(cached) $ac_c" 1>&6
7108 ac_save_LIBS="$LIBS"
7110 cat > conftest.$ac_ext <<EOF
7111 #line 7088 "configure"
7112 #include "confdefs.h"
7113 /* Override any gcc2 internal prototype to avoid an error. */
7114 /* We use char because int might match the return type of a gcc2
7115 builtin and then its argument prototype would still apply. */
7116 char bindtextdomain();
7122 if { (eval echo configure:7099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7124 eval "ac_cv_lib_$ac_lib_var=yes"
7126 echo "configure: failed program was:" >&5
7127 cat conftest.$ac_ext >&5
7129 eval "ac_cv_lib_$ac_lib_var=no"
7132 LIBS="$ac_save_LIBS"
7135 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7136 echo "$ac_t""yes" 1>&6
7137 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7138 echo "configure:7115: checking for gettext in libintl" >&5
7139 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7140 echo $ac_n "(cached) $ac_c" 1>&6
7142 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7143 echo "configure:7120: checking for gettext in -lintl" >&5
7144 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7145 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7146 echo $ac_n "(cached) $ac_c" 1>&6
7148 ac_save_LIBS="$LIBS"
7150 cat > conftest.$ac_ext <<EOF
7151 #line 7128 "configure"
7152 #include "confdefs.h"
7153 /* Override any gcc2 internal prototype to avoid an error. */
7154 /* We use char because int might match the return type of a gcc2
7155 builtin and then its argument prototype would still apply. */
7162 if { (eval echo configure:7139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7164 eval "ac_cv_lib_$ac_lib_var=yes"
7166 echo "configure: failed program was:" >&5
7167 cat conftest.$ac_ext >&5
7169 eval "ac_cv_lib_$ac_lib_var=no"
7172 LIBS="$ac_save_LIBS"
7175 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7176 echo "$ac_t""yes" 1>&6
7177 gt_cv_func_gettext_libintl=yes
7179 echo "$ac_t""no" 1>&6
7180 gt_cv_func_gettext_libintl=no
7185 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7187 echo "$ac_t""no" 1>&6
7192 if test "$gt_cv_func_gettext_libc" = "yes" \
7193 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7194 cat >> confdefs.h <<\EOF
7195 #define HAVE_GETTEXT 1
7198 # Extract the first word of "msgfmt", so it can be a program name with args.
7199 set dummy msgfmt; ac_word=$2
7200 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7201 echo "configure:7178: checking for $ac_word" >&5
7202 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7203 echo $ac_n "(cached) $ac_c" 1>&6
7207 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7210 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7211 for ac_dir in $PATH; do
7212 test -z "$ac_dir" && ac_dir=.
7213 if test -f $ac_dir/$ac_word; then
7214 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7215 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7221 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7225 MSGFMT="$ac_cv_path_MSGFMT"
7226 if test -n "$MSGFMT"; then
7227 echo "$ac_t""$MSGFMT" 1>&6
7229 echo "$ac_t""no" 1>&6
7231 if test "$MSGFMT" != "no"; then
7232 for ac_func in dcgettext
7234 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7235 echo "configure:7212: checking for $ac_func" >&5
7236 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7237 echo $ac_n "(cached) $ac_c" 1>&6
7239 cat > conftest.$ac_ext <<EOF
7240 #line 7217 "configure"
7241 #include "confdefs.h"
7242 /* System header to define __stub macros and hopefully few prototypes,
7243 which can conflict with char $ac_func(); below. */
7245 /* Override any gcc2 internal prototype to avoid an error. */
7246 /* We use char because int might match the return type of a gcc2
7247 builtin and then its argument prototype would still apply. */
7252 /* The GNU C library defines this for functions which it implements
7253 to always fail with ENOSYS. Some functions are actually named
7254 something starting with __ and the normal name is an alias. */
7255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7263 if { (eval echo configure:7240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7265 eval "ac_cv_func_$ac_func=yes"
7267 echo "configure: failed program was:" >&5
7268 cat conftest.$ac_ext >&5
7270 eval "ac_cv_func_$ac_func=no"
7275 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7276 echo "$ac_t""yes" 1>&6
7277 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7278 cat >> confdefs.h <<EOF
7279 #define $ac_tr_func 1
7283 echo "$ac_t""no" 1>&6
7287 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7288 set dummy gmsgfmt; ac_word=$2
7289 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7290 echo "configure:7267: checking for $ac_word" >&5
7291 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7292 echo $ac_n "(cached) $ac_c" 1>&6
7296 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7299 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7302 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7304 for ac_dir in $ac_dummy; do
7305 test -z "$ac_dir" && ac_dir=.
7306 if test -f $ac_dir/$ac_word; then
7307 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7312 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7316 GMSGFMT="$ac_cv_path_GMSGFMT"
7317 if test -n "$GMSGFMT"; then
7318 echo "$ac_t""$GMSGFMT" 1>&6
7320 echo "$ac_t""no" 1>&6
7323 # Extract the first word of "xgettext", so it can be a program name with args.
7324 set dummy xgettext; ac_word=$2
7325 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7326 echo "configure:7303: checking for $ac_word" >&5
7327 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7328 echo $ac_n "(cached) $ac_c" 1>&6
7332 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7335 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7336 for ac_dir in $PATH; do
7337 test -z "$ac_dir" && ac_dir=.
7338 if test -f $ac_dir/$ac_word; then
7339 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7340 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7346 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7350 XGETTEXT="$ac_cv_path_XGETTEXT"
7351 if test -n "$XGETTEXT"; then
7352 echo "$ac_t""$XGETTEXT" 1>&6
7354 echo "$ac_t""no" 1>&6
7357 cat > conftest.$ac_ext <<EOF
7358 #line 7335 "configure"
7359 #include "confdefs.h"
7362 extern int _nl_msg_cat_cntr;
7363 return _nl_msg_cat_cntr
7366 if { (eval echo configure:7343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7371 echo "configure: failed program was:" >&5
7372 cat conftest.$ac_ext >&5
7383 echo "$ac_t""no" 1>&6
7387 if test "$CATOBJEXT" = "NONE"; then
7388 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
7389 echo "configure:7366: checking whether catgets can be used" >&5
7390 # Check whether --with-catgets or --without-catgets was given.
7391 if test "${with_catgets+set}" = set; then
7392 withval="$with_catgets"
7393 nls_cv_use_catgets=$withval
7395 nls_cv_use_catgets=no
7398 echo "$ac_t""$nls_cv_use_catgets" 1>&6
7400 if test "$nls_cv_use_catgets" = "yes"; then
7401 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
7402 echo "configure:7379: checking for main in -li" >&5
7403 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
7404 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7405 echo $ac_n "(cached) $ac_c" 1>&6
7407 ac_save_LIBS="$LIBS"
7409 cat > conftest.$ac_ext <<EOF
7410 #line 7387 "configure"
7411 #include "confdefs.h"
7417 if { (eval echo configure:7394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7419 eval "ac_cv_lib_$ac_lib_var=yes"
7421 echo "configure: failed program was:" >&5
7422 cat conftest.$ac_ext >&5
7424 eval "ac_cv_lib_$ac_lib_var=no"
7427 LIBS="$ac_save_LIBS"
7430 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7431 echo "$ac_t""yes" 1>&6
7432 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7433 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7434 cat >> confdefs.h <<EOF
7435 #define $ac_tr_lib 1
7441 echo "$ac_t""no" 1>&6
7444 echo $ac_n "checking for catgets""... $ac_c" 1>&6
7445 echo "configure:7422: checking for catgets" >&5
7446 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
7447 echo $ac_n "(cached) $ac_c" 1>&6
7449 cat > conftest.$ac_ext <<EOF
7450 #line 7427 "configure"
7451 #include "confdefs.h"
7452 /* System header to define __stub macros and hopefully few prototypes,
7453 which can conflict with char catgets(); below. */
7455 /* Override any gcc2 internal prototype to avoid an error. */
7456 /* We use char because int might match the return type of a gcc2
7457 builtin and then its argument prototype would still apply. */
7462 /* The GNU C library defines this for functions which it implements
7463 to always fail with ENOSYS. Some functions are actually named
7464 something starting with __ and the normal name is an alias. */
7465 #if defined (__stub_catgets) || defined (__stub___catgets)
7473 if { (eval echo configure:7450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7475 eval "ac_cv_func_catgets=yes"
7477 echo "configure: failed program was:" >&5
7478 cat conftest.$ac_ext >&5
7480 eval "ac_cv_func_catgets=no"
7485 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
7486 echo "$ac_t""yes" 1>&6
7487 cat >> confdefs.h <<\EOF
7488 #define HAVE_CATGETS 1
7491 INTLOBJS="\$(CATOBJS)"
7492 # Extract the first word of "gencat", so it can be a program name with args.
7493 set dummy gencat; ac_word=$2
7494 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7495 echo "configure:7472: checking for $ac_word" >&5
7496 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
7497 echo $ac_n "(cached) $ac_c" 1>&6
7501 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
7504 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
7507 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7509 for ac_dir in $ac_dummy; do
7510 test -z "$ac_dir" && ac_dir=.
7511 if test -f $ac_dir/$ac_word; then
7512 ac_cv_path_GENCAT="$ac_dir/$ac_word"
7517 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
7521 GENCAT="$ac_cv_path_GENCAT"
7522 if test -n "$GENCAT"; then
7523 echo "$ac_t""$GENCAT" 1>&6
7525 echo "$ac_t""no" 1>&6
7527 if test "$GENCAT" != "no"; then
7528 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7529 set dummy gmsgfmt; ac_word=$2
7530 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7531 echo "configure:7508: checking for $ac_word" >&5
7532 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7533 echo $ac_n "(cached) $ac_c" 1>&6
7537 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7540 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7543 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7545 for ac_dir in $ac_dummy; do
7546 test -z "$ac_dir" && ac_dir=.
7547 if test -f $ac_dir/$ac_word; then
7548 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7553 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
7557 GMSGFMT="$ac_cv_path_GMSGFMT"
7558 if test -n "$GMSGFMT"; then
7559 echo "$ac_t""$GMSGFMT" 1>&6
7561 echo "$ac_t""no" 1>&6
7564 if test "$GMSGFMT" = "no"; then
7565 # Extract the first word of "msgfmt", so it can be a program name with args.
7566 set dummy msgfmt; ac_word=$2
7567 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7568 echo "configure:7545: checking for $ac_word" >&5
7569 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7570 echo $ac_n "(cached) $ac_c" 1>&6
7574 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7577 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7578 for ac_dir in $PATH; do
7579 test -z "$ac_dir" && ac_dir=.
7580 if test -f $ac_dir/$ac_word; then
7581 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7582 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7588 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
7592 GMSGFMT="$ac_cv_path_GMSGFMT"
7593 if test -n "$GMSGFMT"; then
7594 echo "$ac_t""$GMSGFMT" 1>&6
7596 echo "$ac_t""no" 1>&6
7600 # Extract the first word of "xgettext", so it can be a program name with args.
7601 set dummy xgettext; ac_word=$2
7602 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7603 echo "configure:7580: checking for $ac_word" >&5
7604 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7605 echo $ac_n "(cached) $ac_c" 1>&6
7609 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7612 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7613 for ac_dir in $PATH; do
7614 test -z "$ac_dir" && ac_dir=.
7615 if test -f $ac_dir/$ac_word; then
7616 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7617 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7623 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7627 XGETTEXT="$ac_cv_path_XGETTEXT"
7628 if test -n "$XGETTEXT"; then
7629 echo "$ac_t""$XGETTEXT" 1>&6
7631 echo "$ac_t""no" 1>&6
7634 USE_INCLUDED_LIBINTL=yes
7638 INTLDEPS='$(top_builddir)/intl/libintl.a'
7640 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7641 nls_cv_header_intl=intl/libintl.h
7642 nls_cv_header_libgt=intl/libgettext.h
7645 echo "$ac_t""no" 1>&6
7651 if test "$CATOBJEXT" = "NONE"; then
7652 nls_cv_use_gnu_gettext=yes
7656 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7657 INTLOBJS="\$(GETTOBJS)"
7658 # Extract the first word of "msgfmt", so it can be a program name with args.
7659 set dummy msgfmt; ac_word=$2
7660 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7661 echo "configure:7638: checking for $ac_word" >&5
7662 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7663 echo $ac_n "(cached) $ac_c" 1>&6
7667 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7670 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7671 for ac_dir in $PATH; do
7672 test -z "$ac_dir" && ac_dir=.
7673 if test -f $ac_dir/$ac_word; then
7674 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7675 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7681 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7685 MSGFMT="$ac_cv_path_MSGFMT"
7686 if test -n "$MSGFMT"; then
7687 echo "$ac_t""$MSGFMT" 1>&6
7689 echo "$ac_t""no" 1>&6
7692 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7693 set dummy gmsgfmt; ac_word=$2
7694 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7695 echo "configure:7672: checking for $ac_word" >&5
7696 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7697 echo $ac_n "(cached) $ac_c" 1>&6
7701 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7704 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7709 for ac_dir in $ac_dummy; do
7710 test -z "$ac_dir" && ac_dir=.
7711 if test -f $ac_dir/$ac_word; then
7712 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7717 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7721 GMSGFMT="$ac_cv_path_GMSGFMT"
7722 if test -n "$GMSGFMT"; then
7723 echo "$ac_t""$GMSGFMT" 1>&6
7725 echo "$ac_t""no" 1>&6
7728 # Extract the first word of "xgettext", so it can be a program name with args.
7729 set dummy xgettext; ac_word=$2
7730 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7731 echo "configure:7708: checking for $ac_word" >&5
7732 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7733 echo $ac_n "(cached) $ac_c" 1>&6
7737 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7740 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7741 for ac_dir in $PATH; do
7742 test -z "$ac_dir" && ac_dir=.
7743 if test -f $ac_dir/$ac_word; then
7744 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7745 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7751 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7755 XGETTEXT="$ac_cv_path_XGETTEXT"
7756 if test -n "$XGETTEXT"; then
7757 echo "$ac_t""$XGETTEXT" 1>&6
7759 echo "$ac_t""no" 1>&6
7763 USE_INCLUDED_LIBINTL=yes
7767 INTLDEPS='$(top_builddir)/intl/libintl.a'
7769 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7770 nls_cv_header_intl=intl/libintl.h
7771 nls_cv_header_libgt=intl/libgettext.h
7774 if test "$XGETTEXT" != ":"; then
7775 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7778 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
7783 # We need to process the po/ directory.
7787 nls_cv_header_intl=intl/libintl.h
7788 nls_cv_header_libgt=intl/libgettext.h
7794 # If this is used in GNU gettext we have to set USE_NLS to `yes'
7795 # because some of the sources are only built for this goal.
7796 if test "$PACKAGE" = gettext; then
7798 USE_INCLUDED_LIBINTL=yes
7801 for lang in $ALL_LINGUAS; do
7802 GMOFILES="$GMOFILES $lang.gmo"
7803 POFILES="$POFILES $lang.po"
7819 if test "x$CATOBJEXT" != "x"; then
7820 if test "x$ALL_LINGUAS" = "x"; then
7823 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
7824 echo "configure:7801: checking for catalogs to be installed" >&5
7826 for lang in ${LINGUAS=$ALL_LINGUAS}; do
7827 case "$ALL_LINGUAS" in
7828 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
7831 LINGUAS=$NEW_LINGUAS
7832 echo "$ac_t""$LINGUAS" 1>&6
7835 if test -n "$LINGUAS"; then
7836 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7840 if test $ac_cv_header_locale_h = yes; then
7841 INCLUDE_LOCALE_H="#include <locale.h>"
7844 /* The system does not provide the header <locale.h>. Take care yourself. */"
7848 test -d intl || mkdir intl
7849 if test "$CATOBJEXT" = ".cat"; then
7850 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
7851 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
7852 echo "configure:7829: checking for linux/version.h" >&5
7853 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7854 echo $ac_n "(cached) $ac_c" 1>&6
7856 cat > conftest.$ac_ext <<EOF
7857 #line 7834 "configure"
7858 #include "confdefs.h"
7859 #include <linux/version.h>
7861 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7862 { (eval echo configure:7839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7863 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7864 if test -z "$ac_err"; then
7866 eval "ac_cv_header_$ac_safe=yes"
7869 echo "configure: failed program was:" >&5
7870 cat conftest.$ac_ext >&5
7872 eval "ac_cv_header_$ac_safe=no"
7876 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7877 echo "$ac_t""yes" 1>&6
7880 echo "$ac_t""no" 1>&6
7885 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
7887 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
7888 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
7890 if test "$PACKAGE" = "gettext"; then
7901 if test -n "$ac_aux_dir"; then
7902 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
7904 if test -z "$MKINSTALLDIRS"; then
7905 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7912 test -d po || mkdir po
7913 if test "x$srcdir" != "x."; then
7914 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
7915 posrcprefix="$srcdir/"
7917 posrcprefix="../$srcdir/"
7923 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
7924 < $srcdir/po/POTFILES.in > po/POTFILES
7926 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
7928 # Get an absolute path to the GCC top-level source directory
7934 # Conditionalize the makefile for this host machine.
7935 # Make-host contains the concatenation of all host makefile fragments
7936 # [there can be more than one]. This file is built by configure.frag.
7937 host_overrides=Make-host
7938 dep_host_xmake_file=
7939 for f in .. ${host_xmake_file}
7941 if test -f ${srcdir}/config/$f
7943 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
7947 # Conditionalize the makefile for this target machine.
7948 # Make-target contains the concatenation of all host makefile fragments
7949 # [there can be more than one]. This file is built by configure.frag.
7950 target_overrides=Make-target
7952 for f in .. ${tmake_file}
7954 if test -f ${srcdir}/config/$f
7956 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
7960 # If the host doesn't support symlinks, modify CC in
7961 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
7962 # Otherwise, we can use "CC=$(CC)".
7964 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
7966 cc_set_by_configure="\$(CC)"
7967 quoted_cc_set_by_configure="\$(CC)"
7968 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
7971 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
7973 symbolic_link="cp -p"
7977 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
7978 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
7979 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
7983 out_object_file=`basename $out_file .c`.o
7986 for f in $tm_file; do
7989 tm_file_list="${tm_file_list} $f" ;;
7990 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
7995 for f in $host_xm_file; do
7997 auto-host.h | gansidecl.h | hwint.h )
7998 host_xm_file_list="${host_xm_file_list} $f" ;;
7999 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
8004 for f in $build_xm_file; do
8006 auto-build.h | auto-host.h | gansidecl.h | hwint.h )
8007 build_xm_file_list="${build_xm_file_list} $f" ;;
8008 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8012 # Define macro CROSS_COMPILE in compilation
8013 # if this is a cross-compiler.
8014 # Also use all.cross instead of all.internal
8015 # and add cross-make to Makefile.
8016 cross_overrides="/dev/null"
8017 if test x$host != x$target
8019 cross_defines="CROSS=-DCROSS_COMPILE"
8020 cross_overrides="${topdir}/cross-make"
8023 # When building gcc with a cross-compiler, we need to fix a few things.
8024 # This must come after cross-make as we want all.build to override
8026 build_overrides="/dev/null"
8027 if test x$build != x$host
8029 build_overrides="${topdir}/build-make"
8032 # Expand extra_headers to include complete path.
8033 # This substitutes for lots of t-* files.
8035 if test "x$extra_headers" = x
8038 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8039 for file in $extra_headers;
8041 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8045 if test x$use_collect2 = xno; then
8049 # Add a definition of USE_COLLECT2 if system wants one.
8050 # Also tell toplev.c what to do.
8051 # This substitutes for lots of t-* files.
8052 if test x$use_collect2 = x
8057 will_use_collect2="collect2"
8058 maybe_use_collect2="-DUSE_COLLECT2"
8062 # Set MD_DEPS if the real md file is in md.pre-cpp.
8063 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
8064 # for line oriented comments, so we must always use a GNU cpp. If
8065 # building gcc with a cross compiler, use the cross compiler just
8066 # built. Otherwise, we can use the cpp just built.
8068 if test "x$md_cppflags" = x
8070 md_file_sub=$srcdir/config/$md_file
8075 # If we have gas in the build tree, make a link to it.
8076 if test -f ../gas/Makefile; then
8077 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
8080 # If we have nm in the build tree, make a link to it.
8081 if test -f ../binutils/Makefile; then
8082 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
8085 # If we have ld in the build tree, make a link to it.
8086 if test -f ../ld/Makefile; then
8087 # if test x$use_collect2 = x; then
8088 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8090 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
8094 # Figure out what assembler alignment features are present.
8095 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
8096 echo "configure:8073: checking assembler alignment features" >&5
8098 gcc_cv_as_alignment_features=
8099 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8100 if test -x "$DEFAULT_ASSEMBLER"; then
8101 gcc_cv_as="$DEFAULT_ASSEMBLER"
8102 elif test -x "$AS"; then
8104 elif test -x as$host_exeext; then
8105 # Build using assembler in the current directory.
8106 gcc_cv_as=./as$host_exeext
8107 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
8108 # Single tree build which includes gas.
8109 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
8111 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
8112 if test x$gcc_cv_gas_version != x; then
8116 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
8117 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
8118 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
8119 # Gas version 2.6 and later support for .balign and .p2align.
8120 # bytes to skip when using .p2align.
8121 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
8122 gcc_cv_as_alignment_features=".balign and .p2align"
8123 cat >> confdefs.h <<\EOF
8124 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8128 # Gas version 2.8 and later support specifying the maximum
8129 # bytes to skip when using .p2align.
8130 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
8131 gcc_cv_as_alignment_features=".p2align including maximum skip"
8132 cat >> confdefs.h <<\EOF
8133 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8138 elif test x$host = x$target; then
8140 # Search the same directories that the installed compiler will
8141 # search. Else we may find the wrong assembler and lose. If we
8142 # do not find a suitable assembler binary, then try the user's
8145 # Also note we have to check MD_EXEC_PREFIX before checking the
8146 # user's path. Unfortunately, there is no good way to get at the
8147 # value of MD_EXEC_PREFIX here. So we do a brute force search
8148 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
8149 # to be fixed as part of the make/configure rewrite too.
8151 if test "x$exec_prefix" = xNONE; then
8152 if test "x$prefix" = xNONE; then
8153 test_prefix=/usr/local
8158 test_prefix=$exec_prefix
8161 # If the loop below does not find an assembler, then use whatever
8162 # one we can find in the users's path.
8166 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
8167 $test_prefix/lib/gcc-lib/$target \
8168 /usr/lib/gcc/$target/$gcc_version \
8169 /usr/lib/gcc/$target \
8170 $test_prefix/$target/bin/$target/$gcc_version \
8171 $test_prefix/$target/bin \
8176 /bsd43/usr/lib/cmplrs/cc \
8177 /usr/cross64/usr/bin \
8178 /usr/lib/cmplrs/cc \
8179 /sysv/usr/lib/cmplrs/cc \
8180 /svr4/usr/lib/cmplrs/cc \
8183 for dir in $test_dirs; do
8184 if test -f $dir/as$host_exeext; then
8185 gcc_cv_as=$dir/as$host_exeext
8190 if test x$gcc_cv_as != x; then
8191 # Check if we have .balign and .p2align
8192 echo ".balign 4" > conftest.s
8193 echo ".p2align 2" >> conftest.s
8194 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8195 gcc_cv_as_alignment_features=".balign and .p2align"
8196 cat >> confdefs.h <<\EOF
8197 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8201 rm -f conftest.s conftest.o
8202 # Check if specifying the maximum bytes to skip when
8203 # using .p2align is supported.
8204 echo ".p2align 4,,7" > conftest.s
8205 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8206 gcc_cv_as_alignment_features=".p2align including maximum skip"
8207 cat >> confdefs.h <<\EOF
8208 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8212 rm -f conftest.s conftest.o
8214 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
8216 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
8217 echo "configure:8194: checking assembler subsection support" >&5
8218 gcc_cv_as_subsections=
8219 if test x$gcc_cv_as != x; then
8220 # Check if we have .subsection
8221 echo ".subsection 1" > conftest.s
8222 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8223 gcc_cv_as_subsections=".subsection"
8224 if test -x nm$host_exeext; then
8225 gcc_cv_nm=./nm$host_exeext
8226 elif test x$host = x$target; then
8228 gcc_cv_nm=nm$host_exeext
8230 if test x$gcc_cv_nm != x; then
8231 cat > conftest.s <<EOF
8232 conftest_label1: .word 0
8234 conftest_label2: .word 0
8237 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8238 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
8239 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
8240 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
8243 gcc_cv_as_subsections="working .subsection -1"
8244 cat >> confdefs.h <<\EOF
8245 #define HAVE_GAS_SUBSECTION_ORDERING 1
8252 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8254 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
8256 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
8257 echo "configure:8234: checking assembler instructions" >&5
8258 gcc_cv_as_instructions=
8259 if test x$gcc_cv_as != x; then
8260 set "filds fists" "filds mem; fists mem"
8263 echo "$2" > conftest.s
8264 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8265 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
8266 cat >> confdefs.h <<EOF
8267 #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1
8273 rm -f conftest.s conftest.o
8275 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
8277 # Figure out what language subdirectories are present.
8278 # Look if the user specified --enable-languages="..."; if not, use
8279 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8281 if test x"${enable_languages+set}" != xset; then
8282 if test x"${LANGUAGES+set}" = xset; then
8283 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
8285 enable_languages=all
8289 for lang in ${srcdir}/*/config-lang.in ..
8293 # The odd quoting in the next line works around
8294 # an apparent bug in bash 1.12 on linux.
8295 ${srcdir}/[*]/config-lang.in) ;;
8297 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
8298 if test "x$lang_alias" = x
8300 echo "$lang doesn't set \$language." 1>&2
8303 if test x"${enable_languages}" = xall; then
8306 case "${enable_languages}" in
8307 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
8315 if test x"${add_this_lang}" = xyes; then
8317 ${srcdir}/ada/config-lang.in)
8318 if test x$gnat = xyes ; then
8319 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8323 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8331 # Make gthr-default.h if we have a thread file.
8333 if test $thread_file != single; then
8334 rm -f gthr-default.h
8335 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
8336 gthread_flags=-DHAVE_GTHR_DEFAULT
8340 # Make empty files to contain the specs and options for each language.
8341 # Then add #include lines to for a compiler that has specs and/or options.
8346 rm -f specs.h options.h gencheck.h
8347 touch specs.h options.h gencheck.h
8348 for subdir in . $subdirs
8350 if test -f $srcdir/$subdir/lang-specs.h; then
8351 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
8352 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
8354 if test -f $srcdir/$subdir/lang-options.h; then
8355 echo "#include \"$subdir/lang-options.h\"" >>options.h
8356 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
8358 if test -f $srcdir/$subdir/$subdir-tree.def; then
8359 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
8360 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
8364 # These (without "all_") are set in each config-lang.in.
8365 # `language' must be a single word so is spelled singularly.
8371 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile'
8372 # List of language makefile fragments.
8377 # Add the language fragments.
8378 # Languages are added via two mechanisms. Some information must be
8379 # recorded in makefile variables, these are defined in config-lang.in.
8380 # We accumulate them and plug them into the main Makefile.
8381 # The other mechanism is a set of hooks for each of the main targets
8382 # like `clean', `install', etc.
8384 language_fragments="Make-lang"
8385 language_hooks="Make-hooks"
8388 for s in .. $subdirs
8400 . ${srcdir}/$s/config-lang.in
8401 if test "x$language" = x
8403 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
8406 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
8407 all_languages="$all_languages $language"
8408 if test "x$boot_language" = xyes
8410 all_boot_languages="$all_boot_languages $language"
8412 all_compilers="$all_compilers $compilers"
8413 all_stagestuff="$all_stagestuff $stagestuff"
8414 all_diff_excludes="$all_diff_excludes $diff_excludes"
8415 all_headers="$all_headers $headers"
8416 all_outputs="$all_outputs $outputs"
8417 if test x$outputs = x
8419 oldstyle_subdirs="$oldstyle_subdirs $s"
8421 all_lib2funcs="$all_lib2funcs $lib2funcs"
8425 # Since we can't use `::' targets, we link each language in
8426 # with a set of hooks, reached indirectly via lang.${target}.
8430 target_list="all.build all.cross start.encap rest.encap \
8432 install-normal install-common install-info install-man \
8434 mostlyclean clean distclean extraclean maintainer-clean \
8435 stage1 stage2 stage3 stage4"
8436 for t in $target_list
8439 for lang in .. $all_languages
8441 if test $lang != ".."; then
8445 echo "lang.$t: $x" >> Make-hooks
8448 # If we're not building in srcdir, create .gdbinit.
8450 if test ! -f Makefile.in; then
8451 echo "dir ." > .gdbinit
8452 echo "dir ${srcdir}" >> .gdbinit
8453 if test x$gdb_needs_out_file_path = xyes
8455 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
8457 if test "x$subdirs" != x; then
8460 echo "dir ${srcdir}/$s" >> .gdbinit
8463 echo "source ${srcdir}/.gdbinit" >> .gdbinit
8466 # Define variables host_canonical and build_canonical
8467 # because some Cygnus local changes in the Makefile depend on them.
8468 build_canonical=${build}
8469 host_canonical=${host}
8471 if test "${host}" != "${target}" ; then
8472 target_subdir=${target}/
8478 # If this is using newlib, then define inhibit_libc in
8479 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
8480 # libgcc.a, but that's OK because newib should have its own version of
8483 if test x$with_newlib = xyes; then
8484 inhibit_libc=-Dinhibit_libc
8488 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
8491 if test x$enable_haifa = xyes; then
8492 echo "Using the Haifa scheduler."
8494 sched_cflags=-DHAIFA
8498 if test x$enable_haifa != x; then
8499 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
8500 for x in genattrtab.o toplev.o *sched.o; do
8508 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
8509 # absolute path for gcc_tooldir based on inserting the number of up-directory
8510 # movements required to get from $(exec_prefix) to $(prefix) into the basic
8511 # $(libsubdir)/@(unlibsubdir) based path.
8512 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
8513 # make and thus we'd get different behavior depending on where we built the
8515 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
8516 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
8518 # An explanation of the sed strings:
8519 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
8520 # -e 's|/$||' match a trailing forward slash and eliminates it
8521 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
8522 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
8524 # (*) Note this pattern overwrites the first character of the string
8525 # with a forward slash if one is not already present. This is not a
8526 # problem because the exact names of the sub-directories concerned is
8527 # unimportant, just the number of them matters.
8529 # The practical upshot of these patterns is like this:
8531 # prefix exec_prefix result
8532 # ------ ----------- ------
8534 # /foo/ /foo/bar ../
8535 # /foo /foo/bar/ ../
8536 # /foo/ /foo/bar/ ../
8537 # /foo /foo/bar/ugg ../../
8540 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
8545 # Nothing to do for FLOAT_H, float_format already handled.
8549 # Process the language and host/target makefile fragments.
8550 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
8552 # Substitute configuration variables
8614 # Echo that links are built
8615 if test x$host = x$target
8623 if test x$host != x$build
8625 str3=" on a $build system"
8628 if test "x$str2" != x || test "x$str3" != x
8633 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
8635 if test "x$str2" != x || test "x$str3" != x
8637 echo " ${str2}${str3}." 1>&2
8640 # Truncate the target if necessary
8641 if test x$host_truncate_target != x; then
8642 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
8645 # Configure the subdirectories
8646 # AC_CONFIG_SUBDIRS($subdirs)
8648 # Create the Makefile
8649 # and configure language subdirectories
8651 cat > confcache <<\EOF
8652 # This file is a shell script that caches the results of configure
8653 # tests run on this system so they can be shared between configure
8654 # scripts and configure runs. It is not useful on other systems.
8655 # If it contains results you don't want to keep, you may remove or edit it.
8657 # By default, configure uses ./config.cache as the cache file,
8658 # creating it if it does not exist already. You can give configure
8659 # the --cache-file=FILE option to use a different cache file; that is
8660 # what configure does when it calls configure scripts in
8661 # subdirectories, so they share the cache.
8662 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8663 # config.status only pays attention to the cache file if you give it the
8664 # --recheck option to rerun configure.
8667 # The following way of writing the cache mishandles newlines in values,
8668 # but we know of no workaround that is simple, portable, and efficient.
8669 # So, don't put newlines in cache variables' values.
8670 # Ultrix sh set writes to stderr and can't be redirected directly,
8671 # and sets the high bit in the cache file unless we assign to the vars.
8673 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8675 # `set' does not quote correctly, so add quotes (double-quote substitution
8676 # turns \\\\ into \\, and sed turns \\ into \).
8678 -e "s/'/'\\\\''/g" \
8679 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8682 # `set' quotes correctly as required by POSIX, so do not add quotes.
8683 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8686 if cmp -s $cache_file confcache; then
8689 if test -w $cache_file; then
8690 echo "updating cache $cache_file"
8691 cat confcache > $cache_file
8693 echo "not updating unwritable cache $cache_file"
8698 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8700 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8701 # Let make expand exec_prefix.
8702 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8704 # Any assignment to VPATH causes Sun make to only execute
8705 # the first set of double-colon rules, so remove it if not needed.
8706 # If there is a colon in the path, we need to keep it.
8707 if test "x$srcdir" = x.; then
8708 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8711 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8713 DEFS=-DHAVE_CONFIG_H
8715 # Without the "./", some shells look in PATH for config.status.
8716 : ${CONFIG_STATUS=./config.status}
8718 echo creating $CONFIG_STATUS
8719 rm -f $CONFIG_STATUS
8720 cat > $CONFIG_STATUS <<EOF
8722 # Generated automatically by configure.
8723 # Run this file to recreate the current configuration.
8724 # This directory was configured as follows,
8725 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8727 # $0 $ac_configure_args
8729 # Compiler output produced by configure, useful for debugging
8730 # configure, is in ./config.log if it exists.
8732 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8735 case "\$ac_option" in
8736 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8737 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8738 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8739 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8740 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8742 -help | --help | --hel | --he | --h)
8743 echo "\$ac_cs_usage"; exit 0 ;;
8744 *) echo "\$ac_cs_usage"; exit 1 ;;
8748 ac_given_srcdir=$srcdir
8750 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8752 cat >> $CONFIG_STATUS <<EOF
8754 # Protect against being on the right side of a sed subst in config.status.
8755 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8756 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8760 s%@CFLAGS@%$CFLAGS%g
8761 s%@CPPFLAGS@%$CPPFLAGS%g
8762 s%@CXXFLAGS@%$CXXFLAGS%g
8763 s%@FFLAGS@%$FFLAGS%g
8765 s%@LDFLAGS@%$LDFLAGS%g
8767 s%@exec_prefix@%$exec_prefix%g
8768 s%@prefix@%$prefix%g
8769 s%@program_transform_name@%$program_transform_name%g
8770 s%@bindir@%$bindir%g
8771 s%@sbindir@%$sbindir%g
8772 s%@libexecdir@%$libexecdir%g
8773 s%@datadir@%$datadir%g
8774 s%@sysconfdir@%$sysconfdir%g
8775 s%@sharedstatedir@%$sharedstatedir%g
8776 s%@localstatedir@%$localstatedir%g
8777 s%@libdir@%$libdir%g
8778 s%@includedir@%$includedir%g
8779 s%@oldincludedir@%$oldincludedir%g
8780 s%@infodir@%$infodir%g
8781 s%@mandir@%$mandir%g
8783 s%@host_alias@%$host_alias%g
8784 s%@host_cpu@%$host_cpu%g
8785 s%@host_vendor@%$host_vendor%g
8786 s%@host_os@%$host_os%g
8787 s%@target@%$target%g
8788 s%@target_alias@%$target_alias%g
8789 s%@target_cpu@%$target_cpu%g
8790 s%@target_vendor@%$target_vendor%g
8791 s%@target_os@%$target_os%g
8793 s%@build_alias@%$build_alias%g
8794 s%@build_cpu@%$build_cpu%g
8795 s%@build_vendor@%$build_vendor%g
8796 s%@build_os@%$build_os%g
8798 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
8799 s%@SET_MAKE@%$SET_MAKE%g
8802 s%@LEXLIB@%$LEXLIB%g
8805 s%@RANLIB@%$RANLIB%g
8807 s%@INSTALL@%$INSTALL%g
8808 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8809 s%@INSTALL_DATA@%$INSTALL_DATA%g
8812 s%@vfprintf@%$vfprintf%g
8813 s%@doprint@%$doprint%g
8814 s%@manext@%$manext%g
8815 s%@objext@%$objext%g
8816 s%@PACKAGE@%$PACKAGE%g
8817 s%@VERSION@%$VERSION%g
8818 s%@ALLOCA@%$ALLOCA%g
8819 s%@USE_NLS@%$USE_NLS%g
8820 s%@MSGFMT@%$MSGFMT%g
8821 s%@GMSGFMT@%$GMSGFMT%g
8822 s%@XGETTEXT@%$XGETTEXT%g
8823 s%@GENCAT@%$GENCAT%g
8824 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8825 s%@CATALOGS@%$CATALOGS%g
8826 s%@CATOBJEXT@%$CATOBJEXT%g
8827 s%@DATADIRNAME@%$DATADIRNAME%g
8828 s%@GMOFILES@%$GMOFILES%g
8829 s%@INSTOBJEXT@%$INSTOBJEXT%g
8830 s%@INTLDEPS@%$INTLDEPS%g
8831 s%@INTLLIBS@%$INTLLIBS%g
8832 s%@INTLOBJS@%$INTLOBJS%g
8833 s%@POFILES@%$POFILES%g
8835 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
8837 s%@GT_YES@%$GT_YES%g
8838 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8840 s%@gthread_flags@%$gthread_flags%g
8841 s%@build_canonical@%$build_canonical%g
8842 s%@host_canonical@%$host_canonical%g
8843 s%@target_subdir@%$target_subdir%g
8844 s%@inhibit_libc@%$inhibit_libc%g
8845 s%@sched_prefix@%$sched_prefix%g
8846 s%@sched_cflags@%$sched_cflags%g
8847 s%@gcc_tooldir@%$gcc_tooldir%g
8848 s%@dollar@%$dollar%g
8849 s%@objdir@%$objdir%g
8850 s%@subdirs@%$subdirs%g
8851 s%@all_boot_languages@%$all_boot_languages%g
8852 s%@all_compilers@%$all_compilers%g
8853 s%@all_diff_excludes@%$all_diff_excludes%g
8854 s%@all_headers@%$all_headers%g
8855 s%@all_lang_makefiles@%$all_lang_makefiles%g
8856 s%@all_languages@%$all_languages%g
8857 s%@all_lib2funcs@%$all_lib2funcs%g
8858 s%@all_stagestuff@%$all_stagestuff%g
8859 s%@build_exeext@%$build_exeext%g
8860 s%@build_install_headers_dir@%$build_install_headers_dir%g
8861 s%@build_xm_file_list@%$build_xm_file_list%g
8862 s%@cc_set_by_configure@%$cc_set_by_configure%g
8863 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
8864 s%@cpp_install_dir@%$cpp_install_dir%g
8865 s%@cpp_main@%$cpp_main%g
8866 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
8867 s%@dep_tmake_file@%$dep_tmake_file%g
8868 s%@extra_c_flags@%$extra_c_flags%g
8869 s%@extra_c_objs@%$extra_c_objs%g
8870 s%@extra_cpp_objs@%$extra_cpp_objs%g
8871 s%@extra_cxx_objs@%$extra_cxx_objs%g
8872 s%@extra_headers_list@%$extra_headers_list%g
8873 s%@extra_objs@%$extra_objs%g
8874 s%@extra_parts@%$extra_parts%g
8875 s%@extra_passes@%$extra_passes%g
8876 s%@extra_programs@%$extra_programs%g
8877 s%@fixinc_defs@%$fixinc_defs%g
8878 s%@float_h_file@%$float_h_file%g
8879 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
8880 s%@gcc_version@%$gcc_version%g
8881 s%@gcc_version_trigger@%$gcc_version_trigger%g
8882 s%@host_exeext@%$host_exeext%g
8883 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
8884 s%@host_xm_file_list@%$host_xm_file_list%g
8885 s%@install@%$install%g
8886 s%@JAVAGC@%$JAVAGC%g
8887 s%@lang_options_files@%$lang_options_files%g
8888 s%@lang_specs_files@%$lang_specs_files%g
8889 s%@lang_tree_files@%$lang_tree_files%g
8890 s%@local_prefix@%$local_prefix%g
8891 s%@maybe_use_collect2@%$maybe_use_collect2%g
8892 s%@md_file@%$md_file%g
8893 s%@objc_boehm_gc@%$objc_boehm_gc%g
8894 s%@out_file@%$out_file%g
8895 s%@out_object_file@%$out_object_file%g
8896 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
8897 s%@symbolic_link@%$symbolic_link%g
8898 s%@thread_file@%$thread_file%g
8899 s%@tm_file_list@%$tm_file_list%g
8900 s%@will_use_collect2@%$will_use_collect2%g
8901 /@target_overrides@/r $target_overrides
8902 s%@target_overrides@%%g
8903 /@host_overrides@/r $host_overrides
8904 s%@host_overrides@%%g
8905 s%@cross_defines@%$cross_defines%g
8906 /@cross_overrides@/r $cross_overrides
8907 s%@cross_overrides@%%g
8908 /@build_overrides@/r $build_overrides
8909 s%@build_overrides@%%g
8910 /@language_fragments@/r $language_fragments
8911 s%@language_fragments@%%g
8912 /@language_hooks@/r $language_hooks
8913 s%@language_hooks@%%g
8918 cat >> $CONFIG_STATUS <<\EOF
8920 # Split the substitutions into bite-sized pieces for seds with
8921 # small command number limits, like on Digital OSF/1 and HP-UX.
8922 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8923 ac_file=1 # Number of current file.
8924 ac_beg=1 # First line for current file.
8925 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8928 while $ac_more_lines; do
8929 if test $ac_beg -gt 1; then
8930 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8932 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8934 if test ! -s conftest.s$ac_file; then
8936 rm -f conftest.s$ac_file
8938 if test -z "$ac_sed_cmds"; then
8939 ac_sed_cmds="sed -f conftest.s$ac_file"
8941 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8943 ac_file=`expr $ac_file + 1`
8945 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8948 if test -z "$ac_sed_cmds"; then
8953 cat >> $CONFIG_STATUS <<EOF
8955 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
8957 cat >> $CONFIG_STATUS <<\EOF
8958 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8959 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8961 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8962 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8963 *) ac_file_in="${ac_file}.in" ;;
8966 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8968 # Remove last slash and all that follows it. Not all systems have dirname.
8969 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8970 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8971 # The file is in a subdirectory.
8972 test ! -d "$ac_dir" && mkdir "$ac_dir"
8973 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8974 # A "../" for each directory in $ac_dir_suffix.
8975 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8977 ac_dir_suffix= ac_dots=
8980 case "$ac_given_srcdir" in
8982 if test -z "$ac_dots"; then top_srcdir=.
8983 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8984 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8986 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8987 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8991 echo creating "$ac_file"
8993 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8995 *Makefile*) ac_comsub="1i\\
8996 # $configure_input" ;;
9000 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9002 s%@configure_input@%$configure_input%g
9003 s%@srcdir@%$srcdir%g
9004 s%@top_srcdir@%$top_srcdir%g
9005 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9009 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9010 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9012 # ac_d sets the value in "#define NAME VALUE" lines.
9013 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9014 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9017 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9018 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9019 ac_uB='\([ ]\)%\1#\2define\3'
9022 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9023 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9024 ac_eB='$%\1#\2define\3'
9028 if test "${CONFIG_HEADERS+set}" != set; then
9030 cat >> $CONFIG_STATUS <<EOF
9031 CONFIG_HEADERS="auto-host.h:config.in"
9033 cat >> $CONFIG_STATUS <<\EOF
9035 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9036 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9038 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9039 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9040 *) ac_file_in="${ac_file}.in" ;;
9043 echo creating $ac_file
9045 rm -f conftest.frag conftest.in conftest.out
9046 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9047 cat $ac_file_inputs > conftest.in
9051 # Transform confdefs.h into a sed script conftest.vals that substitutes
9052 # the proper values into config.h.in to produce config.h. And first:
9053 # Protect against being on the right side of a sed subst in config.status.
9054 # Protect against being in an unquoted here document in config.status.
9056 cat > conftest.hdr <<\EOF
9059 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9063 sed -n -f conftest.hdr confdefs.h > conftest.vals
9066 # This sed command replaces #undef with comments. This is necessary, for
9067 # example, in the case of _POSIX_SOURCE, which is predefined and required
9068 # on some systems where configure will not decide to define it.
9069 cat >> conftest.vals <<\EOF
9070 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9073 # Break up conftest.vals because some shells have a limit on
9074 # the size of here documents, and old seds have small limits too.
9079 ac_lines=`grep -c . conftest.vals`
9080 # grep -c gives empty output for an empty file on some AIX systems.
9081 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9082 # Write a limited-size here document to conftest.frag.
9083 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9084 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9086 sed -f conftest.frag conftest.in > conftest.out
9088 mv conftest.out conftest.in
9090 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9092 mv conftest.tail conftest.vals
9096 cat >> $CONFIG_STATUS <<\EOF
9097 rm -f conftest.frag conftest.h
9098 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9099 cat conftest.in >> conftest.h
9101 if cmp -s $ac_file conftest.h 2>/dev/null; then
9102 echo "$ac_file is unchanged"
9105 # Remove last slash and all that follows it. Not all systems have dirname.
9106 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9107 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9108 # The file is in a subdirectory.
9109 test ! -d "$ac_dir" && mkdir "$ac_dir"
9112 mv conftest.h $ac_file
9118 cat >> $CONFIG_STATUS <<EOF
9119 ac_sources="$nls_cv_header_libgt"
9120 ac_dests="$nls_cv_header_intl"
9123 cat >> $CONFIG_STATUS <<\EOF
9124 srcdir=$ac_given_srcdir
9125 while test -n "$ac_sources"; do
9126 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9127 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9129 echo "linking $srcdir/$ac_source to $ac_dest"
9131 if test ! -r $srcdir/$ac_source; then
9132 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9136 # Make relative symlinks.
9137 # Remove last slash and all that follows it. Not all systems have dirname.
9138 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
9139 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9140 # The dest file is in a subdirectory.
9141 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9142 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
9143 # A "../" for each directory in $ac_dest_dir_suffix.
9144 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
9146 ac_dest_dir_suffix= ac_dots=
9150 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9151 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9154 # Make a symlink if possible; otherwise try a hard link.
9155 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9156 ln $srcdir/$ac_source $ac_dest; then :
9158 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9162 cat >> $CONFIG_STATUS <<EOF
9168 target_alias='${target_alias}'
9170 subdirs='${subdirs}'
9171 oldstyle_subdirs='${oldstyle_subdirs}'
9172 symbolic_link='${symbolic_link}'
9173 program_transform_set='${program_transform_set}'
9174 program_transform_name='${program_transform_name}'
9175 dep_host_xmake_file='${dep_host_xmake_file}'
9176 host_xmake_file='${host_xmake_file}'
9177 dep_tmake_file='${dep_tmake_file}'
9178 tmake_file='${tmake_file}'
9179 thread_file='${thread_file}'
9180 gcc_version='${gcc_version}'
9181 gcc_version_trigger='${gcc_version_trigger}'
9182 local_prefix='${local_prefix}'
9183 build_install_headers_dir='${build_install_headers_dir}'
9184 build_exeext='${build_exeext}'
9185 host_exeext='${host_exeext}'
9186 out_file='${out_file}'
9187 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
9188 SET_MAKE='${SET_MAKE}'
9189 target_list='${target_list}'
9190 target_overrides='${target_overrides}'
9191 host_overrides='${host_overrides}'
9192 cross_defines='${cross_defines}'
9193 cross_overrides='${cross_overrides}'
9194 build_overrides='${build_overrides}'
9195 cpp_install_dir='${cpp_install_dir}'
9198 cat >> $CONFIG_STATUS <<\EOF
9199 case "$CONFIG_FILES" in *po/Makefile.in*)
9200 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
9203 . $srcdir/configure.lang
9204 case x$CONFIG_HEADERS in
9205 xauto-host.h:config.in)
9208 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
9209 # bootstrapping and the installation procedure can still use
9210 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
9211 # FLAGS_TO_PASS has been modified to solve the problem there.
9212 # This is virtually a duplicate of what happens in configure.lang; we do
9213 # an extra check to make sure this only happens if ln -s can be used.
9214 if test "$symbolic_link" = "ln -s"; then
9215 for d in .. ${subdirs} ; do
9216 if test $d != ..; then
9219 for t in stage1 stage2 stage3 stage4 include
9222 $symbolic_link ../$t $t 2>/dev/null
9228 # Avoid having to add intl to our include paths.
9229 if test -f intl/libintl.h; then
9230 echo creating libintl.h
9231 echo '#include "intl/libintl.h"' >libintl.h
9236 chmod +x $CONFIG_STATUS
9237 rm -fr confdefs* $ac_clean_files
9238 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1