3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-gnu-ld arrange to work with GNU ld."
17 --with-ld arrange to use the specified ld (full pathname)."
19 --with-gnu-as arrange to work with GNU as."
21 --with-as arrange to use the specified as (full pathname)."
23 --with-stabs arrange to use stabs instead of host debug format."
25 --with-elf arrange to use ELF instead of host debug format."
27 --with-local-prefix=DIR specifies directory to put local include."
29 --with-gxx-include-dir=DIR
30 specifies directory to put g++ header files."
32 --enable-checking[=LIST]
33 enable expensive run-time checks. With LIST,
34 enable only specific categories of checks.
35 Categories are: misc,tree,rtl,gc,gcac; default
38 --disable-cpp don't provide a user-visible C preprocessor."
40 --with-cpp-install-dir=DIR
41 install the user visible C preprocessor in DIR
42 (relative to PREFIX) as well as PREFIX/bin."
44 --enable-cpplib use cpplib for the C preprocessor."
46 --enable-c-cpplib link cpplib directly into C and C++ compilers
47 (EXPERIMENTAL) (implies --enable-cpplib)."
49 --disable-fast-fixincludes
50 Disable the new fast fixincludes.
51 Run the old fixincludes script unconditionally"
53 --enable-c-mbchar Enable multibyte characters for C and C++."
55 --enable-threads enable thread usage for target GCC.
56 --enable-threads=LIB use LIB thread package for target GCC."
58 --enable-objc-gc enable the use of Boehm's garbage collector with
59 the GNU Objective-C runtime."
61 --enable-dwarf2 enable DWARF2 debugging as default."
63 --enable-nls use Native Language Support (disabled by default)"
65 --disable-nls do not use Native Language Support"
67 --with-included-gettext use the GNU gettext library included here"
69 --with-catgets use catgets functions if available"
71 --disable-win32-registry
72 Disable lookup of installation paths in the
73 Registry on Windows hosts.
74 --enable-win32-registry Enable registry lookup (default).
75 --enable-win32-registry=KEY
76 Use KEY instead of GCC version as the last portion
79 --with-gc={simple,page} Choose the garbage collection mechanism to use
82 # Initialize some variables set by options.
83 # The variables have the same names as the options, with
84 # dashes changed to underlines.
86 cache_file=./config.cache
95 program_transform_name=s,x,x,
103 bindir='${exec_prefix}/bin'
104 sbindir='${exec_prefix}/sbin'
105 libexecdir='${exec_prefix}/libexec'
106 datadir='${prefix}/share'
107 sysconfdir='${prefix}/etc'
108 sharedstatedir='${prefix}/com'
109 localstatedir='${prefix}/var'
110 libdir='${exec_prefix}/lib'
111 includedir='${prefix}/include'
112 oldincludedir='/usr/include'
113 infodir='${prefix}/info'
114 mandir='${prefix}/man'
116 # Initialize some other variables.
119 SHELL=${CONFIG_SHELL-/bin/sh}
120 # Maximum number of lines to put in a shell here document.
127 # If the previous option needs an argument, assign it.
128 if test -n "$ac_prev"; then
129 eval "$ac_prev=\$ac_option"
135 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
139 # Accept the important Cygnus configure options, so we can diagnose typos.
143 -bindir | --bindir | --bindi | --bind | --bin | --bi)
145 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
146 bindir="$ac_optarg" ;;
148 -build | --build | --buil | --bui | --bu)
150 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
151 build="$ac_optarg" ;;
153 -cache-file | --cache-file | --cache-fil | --cache-fi \
154 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
155 ac_prev=cache_file ;;
156 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
157 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
158 cache_file="$ac_optarg" ;;
160 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
162 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
164 datadir="$ac_optarg" ;;
166 -disable-* | --disable-*)
167 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
168 # Reject names that are not valid shell variable names.
169 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
170 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
172 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
173 eval "enable_${ac_feature}=no" ;;
175 -enable-* | --enable-*)
176 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
177 # Reject names that are not valid shell variable names.
178 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
179 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
181 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
186 eval "enable_${ac_feature}='$ac_optarg'" ;;
188 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
189 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
190 | --exec | --exe | --ex)
191 ac_prev=exec_prefix ;;
192 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
193 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
194 | --exec=* | --exe=* | --ex=*)
195 exec_prefix="$ac_optarg" ;;
197 -gas | --gas | --ga | --g)
198 # Obsolete; use --with-gas.
201 -help | --help | --hel | --he)
202 # Omit some internal or obsolete options to make the list less imposing.
203 # This message is too long to be a string in the A/UX 3.1 sh.
205 Usage: configure [options] [host]
206 Options: [defaults in brackets after descriptions]
208 --cache-file=FILE cache test results in FILE
209 --help print this message
210 --no-create do not create output files
211 --quiet, --silent do not print \`checking...' messages
212 --version print the version of autoconf that created configure
213 Directory and file names:
214 --prefix=PREFIX install architecture-independent files in PREFIX
216 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
218 --bindir=DIR user executables in DIR [EPREFIX/bin]
219 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
220 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
221 --datadir=DIR read-only architecture-independent data in DIR
223 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
224 --sharedstatedir=DIR modifiable architecture-independent data in DIR
226 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
227 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
228 --includedir=DIR C header files in DIR [PREFIX/include]
229 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
230 --infodir=DIR info documentation in DIR [PREFIX/info]
231 --mandir=DIR man documentation in DIR [PREFIX/man]
232 --srcdir=DIR find the sources in DIR [configure dir or ..]
233 --program-prefix=PREFIX prepend PREFIX to installed program names
234 --program-suffix=SUFFIX append SUFFIX to installed program names
235 --program-transform-name=PROGRAM
236 run sed PROGRAM on installed program names
240 --build=BUILD configure for building on BUILD [BUILD=HOST]
241 --host=HOST configure for HOST [guessed]
242 --target=TARGET configure for TARGET [TARGET=HOST]
243 Features and packages:
244 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
245 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
246 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
247 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
248 --x-includes=DIR X include files are in DIR
249 --x-libraries=DIR X library files are in DIR
251 if test -n "$ac_help"; then
252 echo "--enable and --with options recognized:$ac_help"
256 -host | --host | --hos | --ho)
258 -host=* | --host=* | --hos=* | --ho=*)
261 -includedir | --includedir | --includedi | --included | --include \
262 | --includ | --inclu | --incl | --inc)
263 ac_prev=includedir ;;
264 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
265 | --includ=* | --inclu=* | --incl=* | --inc=*)
266 includedir="$ac_optarg" ;;
268 -infodir | --infodir | --infodi | --infod | --info | --inf)
270 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
271 infodir="$ac_optarg" ;;
273 -libdir | --libdir | --libdi | --libd)
275 -libdir=* | --libdir=* | --libdi=* | --libd=*)
276 libdir="$ac_optarg" ;;
278 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
279 | --libexe | --libex | --libe)
280 ac_prev=libexecdir ;;
281 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
282 | --libexe=* | --libex=* | --libe=*)
283 libexecdir="$ac_optarg" ;;
285 -localstatedir | --localstatedir | --localstatedi | --localstated \
286 | --localstate | --localstat | --localsta | --localst \
287 | --locals | --local | --loca | --loc | --lo)
288 ac_prev=localstatedir ;;
289 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
290 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
291 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
292 localstatedir="$ac_optarg" ;;
294 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
296 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
297 mandir="$ac_optarg" ;;
300 # Obsolete; use --without-fp.
303 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
307 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
308 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
311 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
312 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
313 | --oldin | --oldi | --old | --ol | --o)
314 ac_prev=oldincludedir ;;
315 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
316 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
317 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
318 oldincludedir="$ac_optarg" ;;
320 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
322 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
323 prefix="$ac_optarg" ;;
325 -program-prefix | --program-prefix | --program-prefi | --program-pref \
326 | --program-pre | --program-pr | --program-p)
327 ac_prev=program_prefix ;;
328 -program-prefix=* | --program-prefix=* | --program-prefi=* \
329 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
330 program_prefix="$ac_optarg" ;;
332 -program-suffix | --program-suffix | --program-suffi | --program-suff \
333 | --program-suf | --program-su | --program-s)
334 ac_prev=program_suffix ;;
335 -program-suffix=* | --program-suffix=* | --program-suffi=* \
336 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
337 program_suffix="$ac_optarg" ;;
339 -program-transform-name | --program-transform-name \
340 | --program-transform-nam | --program-transform-na \
341 | --program-transform-n | --program-transform- \
342 | --program-transform | --program-transfor \
343 | --program-transfo | --program-transf \
344 | --program-trans | --program-tran \
345 | --progr-tra | --program-tr | --program-t)
346 ac_prev=program_transform_name ;;
347 -program-transform-name=* | --program-transform-name=* \
348 | --program-transform-nam=* | --program-transform-na=* \
349 | --program-transform-n=* | --program-transform-=* \
350 | --program-transform=* | --program-transfor=* \
351 | --program-transfo=* | --program-transf=* \
352 | --program-trans=* | --program-tran=* \
353 | --progr-tra=* | --program-tr=* | --program-t=*)
354 program_transform_name="$ac_optarg" ;;
356 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
357 | -silent | --silent | --silen | --sile | --sil)
360 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
362 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
364 sbindir="$ac_optarg" ;;
366 -sharedstatedir | --sharedstatedir | --sharedstatedi \
367 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
368 | --sharedst | --shareds | --shared | --share | --shar \
370 ac_prev=sharedstatedir ;;
371 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
372 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
373 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
375 sharedstatedir="$ac_optarg" ;;
377 -site | --site | --sit)
379 -site=* | --site=* | --sit=*)
382 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
384 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
385 srcdir="$ac_optarg" ;;
387 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
388 | --syscon | --sysco | --sysc | --sys | --sy)
389 ac_prev=sysconfdir ;;
390 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
391 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
392 sysconfdir="$ac_optarg" ;;
394 -target | --target | --targe | --targ | --tar | --ta | --t)
396 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
397 target="$ac_optarg" ;;
399 -v | -verbose | --verbose | --verbos | --verbo | --verb)
402 -version | --version | --versio | --versi | --vers)
403 echo "configure generated by autoconf version 2.13"
407 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
408 # Reject names that are not valid shell variable names.
409 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
410 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
412 ac_package=`echo $ac_package| sed 's/-/_/g'`
417 eval "with_${ac_package}='$ac_optarg'" ;;
419 -without-* | --without-*)
420 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
421 # Reject names that are not valid shell variable names.
422 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
423 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
425 ac_package=`echo $ac_package| sed 's/-/_/g'`
426 eval "with_${ac_package}=no" ;;
429 # Obsolete; use --with-x.
432 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
433 | --x-incl | --x-inc | --x-in | --x-i)
434 ac_prev=x_includes ;;
435 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
436 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
437 x_includes="$ac_optarg" ;;
439 -x-libraries | --x-libraries | --x-librarie | --x-librari \
440 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
441 ac_prev=x_libraries ;;
442 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
443 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
444 x_libraries="$ac_optarg" ;;
446 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
450 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
451 echo "configure: warning: $ac_option: invalid host type" 1>&2
453 if test "x$nonopt" != xNONE; then
454 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
462 if test -n "$ac_prev"; then
463 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
466 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
468 # File descriptor usage:
471 # 2 errors and warnings
472 # 3 some systems may open it to /dev/tty
473 # 4 used on the Kubota Titan
474 # 6 checking for... messages and results
475 # 5 compiler messages saved in config.log
476 if test "$silent" = yes; then
484 This file contains any messages produced by compilers while
485 running configure, to aid debugging if configure makes a mistake.
488 # Strip out --no-create and --no-recursion so they do not pile up.
489 # Also quote any args containing shell metacharacters.
494 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
495 | --no-cr | --no-c) ;;
496 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
497 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
498 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
499 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
500 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
505 # Only set these to C if already set. These must not be set unconditionally
506 # because not all systems understand e.g. LANG=C (notably SCO).
507 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
508 # Non-C LC_CTYPE values break the ctype check.
509 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
510 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
511 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
512 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
514 # confdefs.h avoids OS command line length limits that DEFS can exceed.
515 rm -rf conftest* confdefs.h
516 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
519 # A filename unique to this package, relative to the directory that
520 # configure is in, which we can look for to find out if srcdir is correct.
521 ac_unique_file=tree.c
523 # Find the source files, if location was not specified.
524 if test -z "$srcdir"; then
525 ac_srcdir_defaulted=yes
526 # Try the directory containing this script, then its parent.
528 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
529 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
531 if test ! -r $srcdir/$ac_unique_file; then
535 ac_srcdir_defaulted=no
537 if test ! -r $srcdir/$ac_unique_file; then
538 if test "$ac_srcdir_defaulted" = yes; then
539 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
541 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
544 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
546 # Prefer explicitly selected file to automatically selected ones.
547 if test -z "$CONFIG_SITE"; then
548 if test "x$prefix" != xNONE; then
549 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
551 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
554 for ac_site_file in $CONFIG_SITE; do
555 if test -r "$ac_site_file"; then
556 echo "loading site script $ac_site_file"
561 if test -r "$cache_file"; then
562 echo "loading cache $cache_file"
565 echo "creating cache $cache_file"
570 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
571 ac_cpp='$CPP $CPPFLAGS'
572 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
573 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
574 cross_compiling=$ac_cv_prog_cc_cross
578 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
579 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
580 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
587 ac_n= ac_c='\c' ac_t=
595 symbolic_link='ln -s'
598 # Check for bogus environment variables.
599 # Test if LIBRARY_PATH contains the notation for the current directory
600 # since this would lead to problems installing/building glibc.
601 # LIBRARY_PATH contains the current directory if one of the following
603 # - one of the terminals (":" and ";") is the first or last sign
604 # - two terminals occur directly after each other
605 # - the path contains an element with a dot in it
606 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
607 echo "configure:608: checking LIBRARY_PATH variable" >&5
608 case ${LIBRARY_PATH} in
609 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
610 library_path_setting="contains current directory"
613 library_path_setting="ok"
616 echo "$ac_t""$library_path_setting" 1>&6
617 if test "$library_path_setting" != "ok"; then
618 { echo "configure: error:
619 *** LIBRARY_PATH shouldn't contain the current directory when
620 *** building gcc. Please change the environment variable
621 *** and run configure again." 1>&2; exit 1; }
624 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
625 # since this would lead to problems installing/building glibc.
626 # GCC_EXEC_PREFIX contains the current directory if one of the following
628 # - one of the terminals (":" and ";") is the first or last sign
629 # - two terminals occur directly after each other
630 # - the path contains an element with a dot in it
631 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
632 echo "configure:633: checking GCC_EXEC_PREFIX variable" >&5
633 case ${GCC_EXEC_PREFIX} in
634 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
635 gcc_exec_prefix_setting="contains current directory"
638 gcc_exec_prefix_setting="ok"
641 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
642 if test "$gcc_exec_prefix_setting" != "ok"; then
643 { echo "configure: error:
644 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
645 *** building gcc. Please change the environment variable
646 *** and run configure again." 1>&2; exit 1; }
649 # Check for additional parameters
652 # Check whether --with-gnu-ld or --without-gnu-ld was given.
653 if test "${with_gnu_ld+set}" = set; then
654 withval="$with_gnu_ld"
655 gnu_ld_flag="$with_gnu_ld"
661 # With pre-defined ld
662 # Check whether --with-ld or --without-ld was given.
663 if test "${with_ld+set}" = set; then
665 DEFAULT_LINKER="$with_ld"
668 if test x"${DEFAULT_LINKER+set}" = x"set"; then
669 if test ! -x "$DEFAULT_LINKER"; then
670 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
671 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
674 cat >> confdefs.h <<EOF
675 #define DEFAULT_LINKER "$DEFAULT_LINKER"
681 # Check whether --with-gnu-as or --without-gnu-as was given.
682 if test "${with_gnu_as+set}" = set; then
683 withval="$with_gnu_as"
684 gas_flag="$with_gnu_as"
690 # Check whether --with-as or --without-as was given.
691 if test "${with_as+set}" = set; then
693 DEFAULT_ASSEMBLER="$with_as"
696 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
697 if test ! -x "$DEFAULT_ASSEMBLER"; then
698 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
699 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
702 cat >> confdefs.h <<EOF
703 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
709 # Check whether --with-stabs or --without-stabs was given.
710 if test "${with_stabs+set}" = set; then
711 withval="$with_stabs"
719 # Check whether --with-elf or --without-elf was given.
720 if test "${with_elf+set}" = set; then
728 # Specify the local prefix
730 # Check whether --with-local-prefix or --without-local-prefix was given.
731 if test "${with_local_prefix+set}" = set; then
732 withval="$with_local_prefix"
734 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
736 *) local_prefix=$with_local_prefix ;;
741 # Default local prefix if it is empty
742 if test x$local_prefix = x; then
743 local_prefix=/usr/local
746 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
747 # passed in by the toplevel make and thus we'd get different behavior
748 # depending on where we built the sources.
750 # Specify the g++ header file directory
751 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
752 if test "${with_gxx_include_dir+set}" = set; then
753 withval="$with_gxx_include_dir"
755 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
757 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
762 if test x${gcc_gxx_include_dir} = x; then
763 if test x${enable_version_specific_runtime_libs} = xyes; then
764 gcc_gxx_include_dir='${libsubdir}/include/g++'
766 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
767 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
771 # Enable expensive internal checks
772 # Check whether --enable-checking or --disable-checking was given.
773 if test "${enable_checking+set}" = set; then
774 enableval="$enable_checking"
775 case "${enableval}" in
776 yes) cat >> confdefs.h <<\EOF
777 #define ENABLE_CHECKING 1
780 cat >> confdefs.h <<\EOF
781 #define ENABLE_TREE_CHECKING 1
784 cat >> confdefs.h <<\EOF
785 #define ENABLE_RTL_CHECKING 1
789 *) ac_save_IFS="$IFS" IFS="$IFS,"
790 set fnord $enableval; shift
795 misc) cat >> confdefs.h <<\EOF
796 #define ENABLE_CHECKING 1
799 tree) cat >> confdefs.h <<\EOF
800 #define ENABLE_TREE_CHECKING 1
803 rtl) cat >> confdefs.h <<\EOF
804 #define ENABLE_RTL_CHECKING 1
807 gc) cat >> confdefs.h <<\EOF
808 #define ENABLE_GC_CHECKING 1
811 gcac) cat >> confdefs.h <<\EOF
812 #define ENABLE_GC_ALWAYS_COLLECT 1
815 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
823 # Check whether --enable-cpp or --disable-cpp was given.
824 if test "${enable_cpp+set}" = set; then
825 enableval="$enable_cpp"
832 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
833 if test "${with_cpp_install_dir+set}" = set; then
834 withval="$with_cpp_install_dir"
835 if test x$withval = xyes; then
836 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
837 elif test x$withval != xno; then
838 cpp_install_dir=$withval
843 # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
845 # Check whether --enable-cpplib or --disable-cpplib was given.
846 if test "${enable_cpplib+set}" = set; then
847 enableval="$enable_cpplib"
848 if test x$enable_cpplib != xno; then
854 # Link cpplib into the compiler proper, for C/C++/ObjC.
855 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
856 if test "${enable_c_cpplib+set}" = set; then
857 enableval="$enable_c_cpplib"
858 if test x$enable_c_cpplib != xno; then
859 extra_c_objs="${extra_c_objs} libcpp.a"
860 extra_cxx_objs="${extra_cxx_objs} ../libcpp.a"
861 extra_c_flags="${extra_c_flags} -DUSE_CPPLIB=1"
867 # Disable fast fixincludes
868 # Check whether --enable-fast-fixincludes or --disable-fast-fixincludes was given.
869 if test "${enable_fast_fixincludes+set}" = set; then
870 enableval="$enable_fast_fixincludes"
871 if test x$enable_fast_fixincludes = xno ; then
872 cp $srcdir/fixincludes ./fixinc.sh
877 # Enable Multibyte Characters for C/C++
878 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
879 if test "${enable_c_mbchar+set}" = set; then
880 enableval="$enable_c_mbchar"
881 if test x$enable_c_mbchar != xno; then
882 extra_c_flags="${extra_c_flags} -DMULTIBYTE_CHARS=1"
888 # Pass with no value to take the default
889 # Pass with a value to specify a thread package
890 # Check whether --enable-threads or --disable-threads was given.
891 if test "${enable_threads+set}" = set; then
892 enableval="$enable_threads"
893 if test x$enable_threads = xno; then
901 enable_threads_flag=$enable_threads
902 # Check if a valid thread package
903 case x${enable_threads_flag} in
906 target_thread_file='single'
910 target_thread_file=''
912 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
913 xsolaris | xwin32 | xdce | xvxworks)
914 target_thread_file=$enable_threads_flag
917 echo "$enable_threads is an unknown thread package" 1>&2
922 # Check whether --enable-objc-gc or --disable-objc-gc was given.
923 if test "${enable_objc_gc+set}" = set; then
924 enableval="$enable_objc_gc"
925 if test x$enable_objc_gc = xno; then
935 # Check whether --with-dwarf2 or --without-dwarf2 was given.
936 if test "${with_dwarf2+set}" = set; then
937 withval="$with_dwarf2"
938 dwarf2="$with_dwarf2"
944 # Determine the host, build, and target systems
946 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
947 if test -f $ac_dir/install-sh; then
949 ac_install_sh="$ac_aux_dir/install-sh -c"
951 elif test -f $ac_dir/install.sh; then
953 ac_install_sh="$ac_aux_dir/install.sh -c"
957 if test -z "$ac_aux_dir"; then
958 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
960 ac_config_guess=$ac_aux_dir/config.guess
961 ac_config_sub=$ac_aux_dir/config.sub
962 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
965 # Do some error checking and defaulting for the host and target type.
967 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
970 # 1. You are not allowed to specify --host, --target, and nonopt at the
972 # 2. Host defaults to nonopt.
973 # 3. If nonopt is not specified, then host defaults to the current host,
974 # as determined by config.guess.
975 # 4. Target and build default to nonopt.
976 # 5. If nonopt is not specified, then target and build default to host.
978 # The aliases save the names the user supplied, while $host etc.
979 # will get canonicalized.
980 case $host---$target---$nonopt in
981 NONE---*---* | *---NONE---* | *---*---NONE) ;;
982 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
986 # Make sure we can run config.sub.
987 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
988 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
991 echo $ac_n "checking host system type""... $ac_c" 1>&6
992 echo "configure:993: checking host system type" >&5
995 case "$host_alias" in
999 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1000 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1002 *) host_alias=$nonopt ;;
1006 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1007 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1008 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1009 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1010 echo "$ac_t""$host" 1>&6
1012 echo $ac_n "checking target system type""... $ac_c" 1>&6
1013 echo "configure:1014: checking target system type" >&5
1015 target_alias=$target
1016 case "$target_alias" in
1019 NONE) target_alias=$host_alias ;;
1020 *) target_alias=$nonopt ;;
1024 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1025 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1026 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1027 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1028 echo "$ac_t""$target" 1>&6
1030 echo $ac_n "checking build system type""... $ac_c" 1>&6
1031 echo "configure:1032: checking build system type" >&5
1034 case "$build_alias" in
1037 NONE) build_alias=$host_alias ;;
1038 *) build_alias=$nonopt ;;
1042 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1043 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1044 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1045 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1046 echo "$ac_t""$build" 1>&6
1048 test "$host_alias" != "$target_alias" &&
1049 test "$program_prefix$program_suffix$program_transform_name" = \
1051 program_prefix=${target_alias}-
1054 # Find the native compiler
1055 # Extract the first word of "gcc", so it can be a program name with args.
1056 set dummy gcc; ac_word=$2
1057 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1058 echo "configure:1059: checking for $ac_word" >&5
1059 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1060 echo $ac_n "(cached) $ac_c" 1>&6
1062 if test -n "$CC"; then
1063 ac_cv_prog_CC="$CC" # Let the user override the test.
1065 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1067 for ac_dir in $ac_dummy; do
1068 test -z "$ac_dir" && ac_dir=.
1069 if test -f $ac_dir/$ac_word; then
1078 if test -n "$CC"; then
1079 echo "$ac_t""$CC" 1>&6
1081 echo "$ac_t""no" 1>&6
1084 if test -z "$CC"; then
1085 # Extract the first word of "cc", so it can be a program name with args.
1086 set dummy cc; ac_word=$2
1087 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1088 echo "configure:1089: checking for $ac_word" >&5
1089 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1090 echo $ac_n "(cached) $ac_c" 1>&6
1092 if test -n "$CC"; then
1093 ac_cv_prog_CC="$CC" # Let the user override the test.
1095 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1098 for ac_dir in $ac_dummy; do
1099 test -z "$ac_dir" && ac_dir=.
1100 if test -f $ac_dir/$ac_word; then
1101 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1102 ac_prog_rejected=yes
1110 if test $ac_prog_rejected = yes; then
1111 # We found a bogon in the path, so make sure we never use it.
1112 set dummy $ac_cv_prog_CC
1114 if test $# -gt 0; then
1115 # We chose a different compiler from the bogus one.
1116 # However, it has the same basename, so the bogon will be chosen
1117 # first if we set CC to just the basename; use the full file name.
1119 set dummy "$ac_dir/$ac_word" "$@"
1127 if test -n "$CC"; then
1128 echo "$ac_t""$CC" 1>&6
1130 echo "$ac_t""no" 1>&6
1133 if test -z "$CC"; then
1134 case "`uname -s`" in
1136 # Extract the first word of "cl", so it can be a program name with args.
1137 set dummy cl; ac_word=$2
1138 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1139 echo "configure:1140: checking for $ac_word" >&5
1140 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1141 echo $ac_n "(cached) $ac_c" 1>&6
1143 if test -n "$CC"; then
1144 ac_cv_prog_CC="$CC" # Let the user override the test.
1146 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1148 for ac_dir in $ac_dummy; do
1149 test -z "$ac_dir" && ac_dir=.
1150 if test -f $ac_dir/$ac_word; then
1159 if test -n "$CC"; then
1160 echo "$ac_t""$CC" 1>&6
1162 echo "$ac_t""no" 1>&6
1167 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1170 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1171 echo "configure:1172: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1174 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1175 ac_cpp='$CPP $CPPFLAGS'
1176 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1177 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1178 cross_compiling=$ac_cv_prog_cc_cross
1180 cat > conftest.$ac_ext << EOF
1182 #line 1183 "configure"
1183 #include "confdefs.h"
1187 if { (eval echo configure:1188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1188 ac_cv_prog_cc_works=yes
1189 # If we can't run a trivial program, we are probably using a cross compiler.
1190 if (./conftest; exit) 2>/dev/null; then
1191 ac_cv_prog_cc_cross=no
1193 ac_cv_prog_cc_cross=yes
1196 echo "configure: failed program was:" >&5
1197 cat conftest.$ac_ext >&5
1198 ac_cv_prog_cc_works=no
1202 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1203 ac_cpp='$CPP $CPPFLAGS'
1204 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1205 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1206 cross_compiling=$ac_cv_prog_cc_cross
1208 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1209 if test $ac_cv_prog_cc_works = no; then
1210 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1212 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1213 echo "configure:1214: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1214 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1215 cross_compiling=$ac_cv_prog_cc_cross
1217 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1218 echo "configure:1219: checking whether we are using GNU C" >&5
1219 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1220 echo $ac_n "(cached) $ac_c" 1>&6
1222 cat > conftest.c <<EOF
1227 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1234 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1236 if test $ac_cv_prog_gcc = yes; then
1242 ac_test_CFLAGS="${CFLAGS+set}"
1243 ac_save_CFLAGS="$CFLAGS"
1245 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1246 echo "configure:1247: checking whether ${CC-cc} accepts -g" >&5
1247 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1248 echo $ac_n "(cached) $ac_c" 1>&6
1250 echo 'void f(){}' > conftest.c
1251 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1260 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1261 if test "$ac_test_CFLAGS" = set; then
1262 CFLAGS="$ac_save_CFLAGS"
1263 elif test $ac_cv_prog_cc_g = yes; then
1264 if test "$GCC" = yes; then
1270 if test "$GCC" = yes; then
1277 echo $ac_n "checking for long double""... $ac_c" 1>&6
1278 echo "configure:1279: checking for long double" >&5
1279 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1280 echo $ac_n "(cached) $ac_c" 1>&6
1282 if test "$GCC" = yes; then
1283 gcc_cv_c_long_double=yes
1285 cat > conftest.$ac_ext <<EOF
1286 #line 1287 "configure"
1287 #include "confdefs.h"
1290 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1291 long double foo = 0.0;
1292 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1293 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1296 if { (eval echo configure:1297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1298 gcc_cv_c_long_double=yes
1300 echo "configure: failed program was:" >&5
1301 cat conftest.$ac_ext >&5
1303 gcc_cv_c_long_double=no
1309 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1310 if test $gcc_cv_c_long_double = yes; then
1311 cat >> confdefs.h <<\EOF
1312 #define HAVE_LONG_DOUBLE 1
1318 # If the native compiler is GCC, we can enable warnings even in stage1.
1319 # That's useful for people building cross-compilers, or just running a
1321 if test "x$GCC" = "xyes"; then
1322 stage1_warn_cflags='$(WARN_CFLAGS)'
1324 stage1_warn_cflags=""
1328 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1329 echo "configure:1330: checking whether ${MAKE-make} sets \${MAKE}" >&5
1330 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1331 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1332 echo $ac_n "(cached) $ac_c" 1>&6
1334 cat > conftestmake <<\EOF
1336 @echo 'ac_maketemp="${MAKE}"'
1338 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1339 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1340 if test -n "$ac_maketemp"; then
1341 eval ac_cv_prog_make_${ac_make}_set=yes
1343 eval ac_cv_prog_make_${ac_make}_set=no
1347 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1348 echo "$ac_t""yes" 1>&6
1351 echo "$ac_t""no" 1>&6
1352 SET_MAKE="MAKE=${MAKE-make}"
1356 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1357 echo "configure:1358: checking whether a default assembler was specified" >&5
1358 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1359 if test x"$gas_flag" = x"no"; then
1360 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1362 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1365 echo "$ac_t""no" 1>&6
1368 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1369 echo "configure:1370: checking whether a default linker was specified" >&5
1370 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1371 if test x"$gnu_ld_flag" = x"no"; then
1372 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1374 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1377 echo "$ac_t""no" 1>&6
1380 # Find some useful tools
1381 for ac_prog in mawk gawk nawk awk
1383 # Extract the first word of "$ac_prog", so it can be a program name with args.
1384 set dummy $ac_prog; ac_word=$2
1385 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1386 echo "configure:1387: checking for $ac_word" >&5
1387 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1388 echo $ac_n "(cached) $ac_c" 1>&6
1390 if test -n "$AWK"; then
1391 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1393 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1395 for ac_dir in $ac_dummy; do
1396 test -z "$ac_dir" && ac_dir=.
1397 if test -f $ac_dir/$ac_word; then
1398 ac_cv_prog_AWK="$ac_prog"
1405 AWK="$ac_cv_prog_AWK"
1406 if test -n "$AWK"; then
1407 echo "$ac_t""$AWK" 1>&6
1409 echo "$ac_t""no" 1>&6
1412 test -n "$AWK" && break
1415 # Extract the first word of "flex", so it can be a program name with args.
1416 set dummy flex; ac_word=$2
1417 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1418 echo "configure:1419: checking for $ac_word" >&5
1419 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1420 echo $ac_n "(cached) $ac_c" 1>&6
1422 if test -n "$LEX"; then
1423 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1425 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1427 for ac_dir in $ac_dummy; do
1428 test -z "$ac_dir" && ac_dir=.
1429 if test -f $ac_dir/$ac_word; then
1430 ac_cv_prog_LEX="flex"
1435 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1438 LEX="$ac_cv_prog_LEX"
1439 if test -n "$LEX"; then
1440 echo "$ac_t""$LEX" 1>&6
1442 echo "$ac_t""no" 1>&6
1445 if test -z "$LEXLIB"
1451 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1452 echo "configure:1453: checking for yywrap in -l$ac_lib" >&5
1453 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1454 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1455 echo $ac_n "(cached) $ac_c" 1>&6
1457 ac_save_LIBS="$LIBS"
1458 LIBS="-l$ac_lib $LIBS"
1459 cat > conftest.$ac_ext <<EOF
1460 #line 1461 "configure"
1461 #include "confdefs.h"
1462 /* Override any gcc2 internal prototype to avoid an error. */
1463 /* We use char because int might match the return type of a gcc2
1464 builtin and then its argument prototype would still apply. */
1471 if { (eval echo configure:1472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1473 eval "ac_cv_lib_$ac_lib_var=yes"
1475 echo "configure: failed program was:" >&5
1476 cat conftest.$ac_ext >&5
1478 eval "ac_cv_lib_$ac_lib_var=no"
1481 LIBS="$ac_save_LIBS"
1484 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1485 echo "$ac_t""yes" 1>&6
1488 echo "$ac_t""no" 1>&6
1493 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1494 echo "configure:1495: checking whether ln works" >&5
1495 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1496 echo $ac_n "(cached) $ac_c" 1>&6
1498 rm -f conftestdata_t
1499 echo >conftestdata_f
1500 if ln conftestdata_f conftestdata_t 2>/dev/null
1504 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1506 gcc_cv_prog_LN="ln -s"
1511 rm -f conftestdata_f conftestdata_t
1514 LN="$gcc_cv_prog_LN"
1515 if test "$gcc_cv_prog_LN" = "ln"; then
1516 echo "$ac_t""yes" 1>&6
1518 if test "$gcc_cv_prog_LN" = "ln -s"; then
1519 echo "$ac_t""no, using ln -s" 1>&6
1521 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1525 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1526 echo "configure:1527: checking whether ln -s works" >&5
1527 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1528 echo $ac_n "(cached) $ac_c" 1>&6
1530 rm -f conftestdata_t
1531 echo >conftestdata_f
1532 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1534 gcc_cv_prog_LN_S="ln -s"
1536 if ln conftestdata_f conftestdata_t 2>/dev/null
1543 rm -f conftestdata_f conftestdata_t
1546 LN_S="$gcc_cv_prog_LN_S"
1547 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1548 echo "$ac_t""yes" 1>&6
1550 if test "$gcc_cv_prog_LN_S" = "ln"; then
1551 echo "$ac_t""no, using ln" 1>&6
1553 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1557 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1558 echo "configure:1559: checking for volatile" >&5
1559 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1560 echo $ac_n "(cached) $ac_c" 1>&6
1562 cat > conftest.$ac_ext <<EOF
1563 #line 1564 "configure"
1564 #include "confdefs.h"
1570 if { (eval echo configure:1571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1572 gcc_cv_c_volatile=yes
1574 echo "configure: failed program was:" >&5
1575 cat conftest.$ac_ext >&5
1577 gcc_cv_c_volatile=no
1582 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1583 if test $gcc_cv_c_volatile = yes ; then
1584 cat >> confdefs.h <<\EOF
1585 #define HAVE_VOLATILE 1
1590 # Extract the first word of "ranlib", so it can be a program name with args.
1591 set dummy ranlib; ac_word=$2
1592 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1593 echo "configure:1594: checking for $ac_word" >&5
1594 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1595 echo $ac_n "(cached) $ac_c" 1>&6
1597 if test -n "$RANLIB"; then
1598 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1600 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1602 for ac_dir in $ac_dummy; do
1603 test -z "$ac_dir" && ac_dir=.
1604 if test -f $ac_dir/$ac_word; then
1605 ac_cv_prog_RANLIB="ranlib"
1610 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1613 RANLIB="$ac_cv_prog_RANLIB"
1614 if test -n "$RANLIB"; then
1615 echo "$ac_t""$RANLIB" 1>&6
1617 echo "$ac_t""no" 1>&6
1620 for ac_prog in 'bison -y' byacc
1622 # Extract the first word of "$ac_prog", so it can be a program name with args.
1623 set dummy $ac_prog; ac_word=$2
1624 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1625 echo "configure:1626: checking for $ac_word" >&5
1626 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1627 echo $ac_n "(cached) $ac_c" 1>&6
1629 if test -n "$YACC"; then
1630 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1632 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1634 for ac_dir in $ac_dummy; do
1635 test -z "$ac_dir" && ac_dir=.
1636 if test -f $ac_dir/$ac_word; then
1637 ac_cv_prog_YACC="$ac_prog"
1644 YACC="$ac_cv_prog_YACC"
1645 if test -n "$YACC"; then
1646 echo "$ac_t""$YACC" 1>&6
1648 echo "$ac_t""no" 1>&6
1651 test -n "$YACC" && break
1653 test -n "$YACC" || YACC="yacc"
1655 # Find a good install program. We prefer a C program (faster),
1656 # so one script is as good as another. But avoid the broken or
1657 # incompatible versions:
1658 # SysV /etc/install, /usr/sbin/install
1659 # SunOS /usr/etc/install
1660 # IRIX /sbin/install
1662 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1663 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1664 # ./install, which can be erroneously created by make from ./install.sh.
1665 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1666 echo "configure:1667: checking for a BSD compatible install" >&5
1667 if test -z "$INSTALL"; then
1668 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1669 echo $ac_n "(cached) $ac_c" 1>&6
1671 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1672 for ac_dir in $PATH; do
1673 # Account for people who put trailing slashes in PATH elements.
1675 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1677 # OSF1 and SCO ODT 3.0 have their own names for install.
1678 for ac_prog in ginstall scoinst install; do
1679 if test -f $ac_dir/$ac_prog; then
1680 if test $ac_prog = install &&
1681 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1682 # AIX install. It has an incompatible calling convention.
1683 # OSF/1 installbsd also uses dspmsg, but is usable.
1686 ac_cv_path_install="$ac_dir/$ac_prog -c"
1697 if test "${ac_cv_path_install+set}" = set; then
1698 INSTALL="$ac_cv_path_install"
1700 # As a last resort, use the slow shell script. We don't cache a
1701 # path for INSTALL within a source directory, because that will
1702 # break other packages using the cache if that directory is
1703 # removed, or if the path is relative.
1704 INSTALL="$ac_install_sh"
1707 echo "$ac_t""$INSTALL" 1>&6
1709 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1710 # It thinks the first close brace ends the variable substitution.
1711 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1713 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1716 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1717 echo "configure:1718: checking how to run the C preprocessor" >&5
1718 # On Suns, sometimes $CPP names a directory.
1719 if test -n "$CPP" && test -d "$CPP"; then
1722 if test -z "$CPP"; then
1723 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1724 echo $ac_n "(cached) $ac_c" 1>&6
1726 # This must be in double quotes, not single quotes, because CPP may get
1727 # substituted into the Makefile and "${CC-cc}" will confuse make.
1729 # On the NeXT, cc -E runs the code through the compiler's parser,
1730 # not just through cpp.
1731 cat > conftest.$ac_ext <<EOF
1732 #line 1733 "configure"
1733 #include "confdefs.h"
1737 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1738 { (eval echo configure:1739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1739 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1740 if test -z "$ac_err"; then
1744 echo "configure: failed program was:" >&5
1745 cat conftest.$ac_ext >&5
1747 CPP="${CC-cc} -E -traditional-cpp"
1748 cat > conftest.$ac_ext <<EOF
1749 #line 1750 "configure"
1750 #include "confdefs.h"
1754 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1755 { (eval echo configure:1756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1756 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1757 if test -z "$ac_err"; then
1761 echo "configure: failed program was:" >&5
1762 cat conftest.$ac_ext >&5
1764 CPP="${CC-cc} -nologo -E"
1765 cat > conftest.$ac_ext <<EOF
1766 #line 1767 "configure"
1767 #include "confdefs.h"
1771 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1772 { (eval echo configure:1773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1773 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1774 if test -z "$ac_err"; then
1778 echo "configure: failed program was:" >&5
1779 cat conftest.$ac_ext >&5
1788 ac_cv_prog_CPP="$CPP"
1790 CPP="$ac_cv_prog_CPP"
1792 ac_cv_prog_CPP="$CPP"
1794 echo "$ac_t""$CPP" 1>&6
1796 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1797 echo "configure:1798: checking for ANSI C header files" >&5
1798 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1799 echo $ac_n "(cached) $ac_c" 1>&6
1801 cat > conftest.$ac_ext <<EOF
1802 #line 1803 "configure"
1803 #include "confdefs.h"
1809 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1810 { (eval echo configure:1811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1811 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1812 if test -z "$ac_err"; then
1814 ac_cv_header_stdc=yes
1817 echo "configure: failed program was:" >&5
1818 cat conftest.$ac_ext >&5
1820 ac_cv_header_stdc=no
1824 if test $ac_cv_header_stdc = yes; then
1825 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1826 cat > conftest.$ac_ext <<EOF
1827 #line 1828 "configure"
1828 #include "confdefs.h"
1831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1832 egrep "memchr" >/dev/null 2>&1; then
1836 ac_cv_header_stdc=no
1842 if test $ac_cv_header_stdc = yes; then
1843 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1844 cat > conftest.$ac_ext <<EOF
1845 #line 1846 "configure"
1846 #include "confdefs.h"
1849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1850 egrep "free" >/dev/null 2>&1; then
1854 ac_cv_header_stdc=no
1860 if test $ac_cv_header_stdc = yes; then
1861 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1862 if test "$cross_compiling" = yes; then
1865 cat > conftest.$ac_ext <<EOF
1866 #line 1867 "configure"
1867 #include "confdefs.h"
1869 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1870 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1871 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1872 int main () { int i; for (i = 0; i < 256; i++)
1873 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1877 if { (eval echo configure:1878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1881 echo "configure: failed program was:" >&5
1882 cat conftest.$ac_ext >&5
1884 ac_cv_header_stdc=no
1892 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1893 if test $ac_cv_header_stdc = yes; then
1894 cat >> confdefs.h <<\EOF
1895 #define STDC_HEADERS 1
1900 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1901 echo "configure:1902: checking whether time.h and sys/time.h may both be included" >&5
1902 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1903 echo $ac_n "(cached) $ac_c" 1>&6
1905 cat > conftest.$ac_ext <<EOF
1906 #line 1907 "configure"
1907 #include "confdefs.h"
1908 #include <sys/types.h>
1909 #include <sys/time.h>
1915 if { (eval echo configure:1916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1917 ac_cv_header_time=yes
1919 echo "configure: failed program was:" >&5
1920 cat conftest.$ac_ext >&5
1922 ac_cv_header_time=no
1927 echo "$ac_t""$ac_cv_header_time" 1>&6
1928 if test $ac_cv_header_time = yes; then
1929 cat >> confdefs.h <<\EOF
1930 #define TIME_WITH_SYS_TIME 1
1935 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
1936 echo "configure:1937: checking whether string.h and strings.h may both be included" >&5
1937 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
1938 echo $ac_n "(cached) $ac_c" 1>&6
1940 cat > conftest.$ac_ext <<EOF
1941 #line 1942 "configure"
1942 #include "confdefs.h"
1944 #include <strings.h>
1949 if { (eval echo configure:1950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1951 gcc_cv_header_string=yes
1953 echo "configure: failed program was:" >&5
1954 cat conftest.$ac_ext >&5
1956 gcc_cv_header_string=no
1961 echo "$ac_t""$gcc_cv_header_string" 1>&6
1962 if test $gcc_cv_header_string = yes; then
1963 cat >> confdefs.h <<\EOF
1964 #define STRING_WITH_STRINGS 1
1969 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1970 echo "configure:1971: checking for sys/wait.h that is POSIX.1 compatible" >&5
1971 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1972 echo $ac_n "(cached) $ac_c" 1>&6
1974 cat > conftest.$ac_ext <<EOF
1975 #line 1976 "configure"
1976 #include "confdefs.h"
1977 #include <sys/types.h>
1978 #include <sys/wait.h>
1980 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1983 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1988 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1991 if { (eval echo configure:1992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1993 ac_cv_header_sys_wait_h=yes
1995 echo "configure: failed program was:" >&5
1996 cat conftest.$ac_ext >&5
1998 ac_cv_header_sys_wait_h=no
2003 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2004 if test $ac_cv_header_sys_wait_h = yes; then
2005 cat >> confdefs.h <<\EOF
2006 #define HAVE_SYS_WAIT_H 1
2011 for ac_hdr in limits.h stddef.h string.h strings.h stdlib.h time.h \
2012 fcntl.h unistd.h stab.h sys/file.h sys/time.h \
2013 sys/resource.h sys/param.h sys/times.h sys/stat.h \
2016 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2017 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2018 echo "configure:2019: checking for $ac_hdr" >&5
2019 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2020 echo $ac_n "(cached) $ac_c" 1>&6
2022 cat > conftest.$ac_ext <<EOF
2023 #line 2024 "configure"
2024 #include "confdefs.h"
2027 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2028 { (eval echo configure:2029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2029 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2030 if test -z "$ac_err"; then
2032 eval "ac_cv_header_$ac_safe=yes"
2035 echo "configure: failed program was:" >&5
2036 cat conftest.$ac_ext >&5
2038 eval "ac_cv_header_$ac_safe=no"
2042 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2043 echo "$ac_t""yes" 1>&6
2044 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2045 cat >> confdefs.h <<EOF
2046 #define $ac_tr_hdr 1
2050 echo "$ac_t""no" 1>&6
2055 # Check for thread headers.
2056 ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'`
2057 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2058 echo "configure:2059: checking for thread.h" >&5
2059 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2060 echo $ac_n "(cached) $ac_c" 1>&6
2062 cat > conftest.$ac_ext <<EOF
2063 #line 2064 "configure"
2064 #include "confdefs.h"
2067 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2068 { (eval echo configure:2069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2069 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2070 if test -z "$ac_err"; then
2072 eval "ac_cv_header_$ac_safe=yes"
2075 echo "configure: failed program was:" >&5
2076 cat conftest.$ac_ext >&5
2078 eval "ac_cv_header_$ac_safe=no"
2082 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2083 echo "$ac_t""yes" 1>&6
2086 echo "$ac_t""no" 1>&6
2090 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2091 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2092 echo "configure:2093: checking for pthread.h" >&5
2093 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2094 echo $ac_n "(cached) $ac_c" 1>&6
2096 cat > conftest.$ac_ext <<EOF
2097 #line 2098 "configure"
2098 #include "confdefs.h"
2099 #include <pthread.h>
2101 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2102 { (eval echo configure:2103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2103 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2104 if test -z "$ac_err"; then
2106 eval "ac_cv_header_$ac_safe=yes"
2109 echo "configure: failed program was:" >&5
2110 cat conftest.$ac_ext >&5
2112 eval "ac_cv_header_$ac_safe=no"
2116 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2117 echo "$ac_t""yes" 1>&6
2120 echo "$ac_t""no" 1>&6
2125 # See if GNAT has been installed
2126 # Extract the first word of "gnatbind", so it can be a program name with args.
2127 set dummy gnatbind; ac_word=$2
2128 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2129 echo "configure:2130: checking for $ac_word" >&5
2130 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2131 echo $ac_n "(cached) $ac_c" 1>&6
2133 if test -n "$gnat"; then
2134 ac_cv_prog_gnat="$gnat" # Let the user override the test.
2136 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2138 for ac_dir in $ac_dummy; do
2139 test -z "$ac_dir" && ac_dir=.
2140 if test -f $ac_dir/$ac_word; then
2141 ac_cv_prog_gnat="yes"
2146 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat="no"
2149 gnat="$ac_cv_prog_gnat"
2150 if test -n "$gnat"; then
2151 echo "$ac_t""$gnat" 1>&6
2153 echo "$ac_t""no" 1>&6
2157 # See if the stage1 system preprocessor understands the ANSI C
2158 # preprocessor stringification operator.
2161 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
2162 echo "configure:2163: checking for preprocessor stringizing operator" >&5
2163 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
2164 echo $ac_n "(cached) $ac_c" 1>&6
2166 cat > conftest.$ac_ext <<EOF
2167 #line 2168 "configure"
2168 #include "confdefs.h"
2172 char *s = x(teststring);
2175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2176 egrep "#teststring" >/dev/null 2>&1; then
2178 ac_cv_c_stringize=no
2181 ac_cv_c_stringize=yes
2187 if test "${ac_cv_c_stringize}" = yes
2189 cat >> confdefs.h <<\EOF
2190 #define HAVE_STRINGIZE 1
2194 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
2197 # Use <inttypes.h> only if it exists,
2198 # doesn't clash with <sys/types.h>, and declares intmax_t.
2199 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2200 echo "configure:2201: checking for inttypes.h" >&5
2201 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2202 echo $ac_n "(cached) $ac_c" 1>&6
2204 cat > conftest.$ac_ext <<EOF
2205 #line 2206 "configure"
2206 #include "confdefs.h"
2207 #include <sys/types.h>
2208 #include <inttypes.h>
2213 if { (eval echo configure:2214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2215 gcc_cv_header_inttypes_h=yes
2217 echo "configure: failed program was:" >&5
2218 cat conftest.$ac_ext >&5
2220 gcc_cv_header_inttypes_h=no
2225 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2226 if test $gcc_cv_header_inttypes_h = yes; then
2227 cat >> confdefs.h <<\EOF
2228 #define HAVE_INTTYPES_H 1
2233 for ac_func in strtoul bsearch strerror putenv popen bcopy bzero bcmp \
2234 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
2235 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2236 fputs_unlocked getrusage valloc
2238 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2239 echo "configure:2240: checking for $ac_func" >&5
2240 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2241 echo $ac_n "(cached) $ac_c" 1>&6
2243 cat > conftest.$ac_ext <<EOF
2244 #line 2245 "configure"
2245 #include "confdefs.h"
2246 /* System header to define __stub macros and hopefully few prototypes,
2247 which can conflict with char $ac_func(); below. */
2249 /* Override any gcc2 internal prototype to avoid an error. */
2250 /* We use char because int might match the return type of a gcc2
2251 builtin and then its argument prototype would still apply. */
2256 /* The GNU C library defines this for functions which it implements
2257 to always fail with ENOSYS. Some functions are actually named
2258 something starting with __ and the normal name is an alias. */
2259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2267 if { (eval echo configure:2268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2269 eval "ac_cv_func_$ac_func=yes"
2271 echo "configure: failed program was:" >&5
2272 cat conftest.$ac_ext >&5
2274 eval "ac_cv_func_$ac_func=no"
2279 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2280 echo "$ac_t""yes" 1>&6
2281 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2282 cat >> confdefs.h <<EOF
2283 #define $ac_tr_func 1
2287 echo "$ac_t""no" 1>&6
2292 # Make sure wchar_t is available
2293 #AC_CHECK_TYPE(wchar_t, unsigned int)
2295 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2296 echo "configure:2297: checking for vprintf" >&5
2297 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2298 echo $ac_n "(cached) $ac_c" 1>&6
2300 cat > conftest.$ac_ext <<EOF
2301 #line 2302 "configure"
2302 #include "confdefs.h"
2303 /* System header to define __stub macros and hopefully few prototypes,
2304 which can conflict with char vprintf(); below. */
2306 /* Override any gcc2 internal prototype to avoid an error. */
2307 /* We use char because int might match the return type of a gcc2
2308 builtin and then its argument prototype would still apply. */
2313 /* The GNU C library defines this for functions which it implements
2314 to always fail with ENOSYS. Some functions are actually named
2315 something starting with __ and the normal name is an alias. */
2316 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2324 if { (eval echo configure:2325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2326 eval "ac_cv_func_vprintf=yes"
2328 echo "configure: failed program was:" >&5
2329 cat conftest.$ac_ext >&5
2331 eval "ac_cv_func_vprintf=no"
2336 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2337 echo "$ac_t""yes" 1>&6
2338 cat >> confdefs.h <<\EOF
2339 #define HAVE_VPRINTF 1
2343 echo "$ac_t""no" 1>&6
2346 if test "$ac_cv_func_vprintf" != yes; then
2347 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2348 echo "configure:2349: checking for _doprnt" >&5
2349 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2350 echo $ac_n "(cached) $ac_c" 1>&6
2352 cat > conftest.$ac_ext <<EOF
2353 #line 2354 "configure"
2354 #include "confdefs.h"
2355 /* System header to define __stub macros and hopefully few prototypes,
2356 which can conflict with char _doprnt(); below. */
2358 /* Override any gcc2 internal prototype to avoid an error. */
2359 /* We use char because int might match the return type of a gcc2
2360 builtin and then its argument prototype would still apply. */
2365 /* The GNU C library defines this for functions which it implements
2366 to always fail with ENOSYS. Some functions are actually named
2367 something starting with __ and the normal name is an alias. */
2368 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2376 if { (eval echo configure:2377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2378 eval "ac_cv_func__doprnt=yes"
2380 echo "configure: failed program was:" >&5
2381 cat conftest.$ac_ext >&5
2383 eval "ac_cv_func__doprnt=no"
2388 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2389 echo "$ac_t""yes" 1>&6
2390 cat >> confdefs.h <<\EOF
2391 #define HAVE_DOPRNT 1
2395 echo "$ac_t""no" 1>&6
2402 if test $ac_cv_func_vprintf != yes ; then
2404 if test $ac_cv_func__doprnt != yes ; then
2411 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2412 echo "configure:2413: checking whether the printf functions support %p" >&5
2413 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2414 echo $ac_n "(cached) $ac_c" 1>&6
2416 if test "$cross_compiling" = yes; then
2417 gcc_cv_func_printf_ptr=no
2419 cat > conftest.$ac_ext <<EOF
2420 #line 2421 "configure"
2421 #include "confdefs.h"
2427 char *p = buf, *q = NULL;
2428 sprintf(buf, "%p", p);
2429 sscanf(buf, "%p", &q);
2433 if { (eval echo configure:2434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2435 gcc_cv_func_printf_ptr=yes
2437 echo "configure: failed program was:" >&5
2438 cat conftest.$ac_ext >&5
2440 gcc_cv_func_printf_ptr=no
2445 rm -f core core.* *.core
2448 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2449 if test $gcc_cv_func_printf_ptr = yes ; then
2450 cat >> confdefs.h <<\EOF
2451 #define HAVE_PRINTF_PTR 1
2459 # Under some versions of uwin, vfork is notoriously buggy and the test
2460 # can hang configure; on other versions, vfork exists just as a stub.
2461 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2462 ac_cv_func_vfork_works=no
2465 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2466 echo "configure:2467: checking for pid_t" >&5
2467 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2468 echo $ac_n "(cached) $ac_c" 1>&6
2470 cat > conftest.$ac_ext <<EOF
2471 #line 2472 "configure"
2472 #include "confdefs.h"
2473 #include <sys/types.h>
2479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2480 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2482 ac_cv_type_pid_t=yes
2490 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2491 if test $ac_cv_type_pid_t = no; then
2492 cat >> confdefs.h <<\EOF
2498 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2499 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2500 echo "configure:2501: checking for vfork.h" >&5
2501 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2502 echo $ac_n "(cached) $ac_c" 1>&6
2504 cat > conftest.$ac_ext <<EOF
2505 #line 2506 "configure"
2506 #include "confdefs.h"
2509 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2510 { (eval echo configure:2511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2511 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2512 if test -z "$ac_err"; then
2514 eval "ac_cv_header_$ac_safe=yes"
2517 echo "configure: failed program was:" >&5
2518 cat conftest.$ac_ext >&5
2520 eval "ac_cv_header_$ac_safe=no"
2524 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2525 echo "$ac_t""yes" 1>&6
2526 cat >> confdefs.h <<\EOF
2527 #define HAVE_VFORK_H 1
2531 echo "$ac_t""no" 1>&6
2534 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2535 echo "configure:2536: checking for working vfork" >&5
2536 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2537 echo $ac_n "(cached) $ac_c" 1>&6
2539 if test "$cross_compiling" = yes; then
2540 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2541 echo "configure:2542: checking for vfork" >&5
2542 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2543 echo $ac_n "(cached) $ac_c" 1>&6
2545 cat > conftest.$ac_ext <<EOF
2546 #line 2547 "configure"
2547 #include "confdefs.h"
2548 /* System header to define __stub macros and hopefully few prototypes,
2549 which can conflict with char vfork(); below. */
2551 /* Override any gcc2 internal prototype to avoid an error. */
2552 /* We use char because int might match the return type of a gcc2
2553 builtin and then its argument prototype would still apply. */
2558 /* The GNU C library defines this for functions which it implements
2559 to always fail with ENOSYS. Some functions are actually named
2560 something starting with __ and the normal name is an alias. */
2561 #if defined (__stub_vfork) || defined (__stub___vfork)
2569 if { (eval echo configure:2570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2571 eval "ac_cv_func_vfork=yes"
2573 echo "configure: failed program was:" >&5
2574 cat conftest.$ac_ext >&5
2576 eval "ac_cv_func_vfork=no"
2581 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2582 echo "$ac_t""yes" 1>&6
2585 echo "$ac_t""no" 1>&6
2588 ac_cv_func_vfork_works=$ac_cv_func_vfork
2590 cat > conftest.$ac_ext <<EOF
2591 #line 2592 "configure"
2592 #include "confdefs.h"
2593 /* Thanks to Paul Eggert for this test. */
2595 #include <sys/types.h>
2596 #include <sys/stat.h>
2597 #ifdef HAVE_UNISTD_H
2603 /* On some sparc systems, changes by the child to local and incoming
2604 argument registers are propagated back to the parent.
2605 The compiler is told about this with #include <vfork.h>,
2606 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2607 Test for this by using a static variable whose address
2608 is put into a register that is clobbered by the vfork. */
2611 sparc_address_test (int arg)
2613 sparc_address_test (arg) int arg;
2631 pid_t parent = getpid ();
2634 sparc_address_test ();
2639 /* Here is another test for sparc vfork register problems.
2640 This test uses lots of local variables, at least
2641 as many local variables as main has allocated so far
2642 including compiler temporaries. 4 locals are enough for
2643 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2644 A buggy compiler should reuse the register of parent
2645 for one of the local variables, since it will think that
2646 parent can't possibly be used any more in this routine.
2647 Assigning to the local variable will thus munge parent
2648 in the parent process. */
2650 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2651 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2652 /* Convince the compiler that p..p7 are live; otherwise, it might
2653 use the same hardware register for all 8 local variables. */
2654 if (p != p1 || p != p2 || p != p3 || p != p4
2655 || p != p5 || p != p6 || p != p7)
2658 /* On some systems (e.g. IRIX 3.3),
2659 vfork doesn't separate parent from child file descriptors.
2660 If the child closes a descriptor before it execs or exits,
2661 this munges the parent's descriptor as well.
2662 Test for this by closing stdout in the child. */
2663 _exit(close(fileno(stdout)) != 0);
2668 while (wait(&status) != child)
2671 /* Was there some problem with vforking? */
2674 /* Did the child fail? (This shouldn't happen.) */
2677 /* Did the vfork/compiler bug occur? */
2678 || parent != getpid()
2680 /* Did the file descriptor bug occur? */
2681 || fstat(fileno(stdout), &st) != 0
2686 if { (eval echo configure:2687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2688 ac_cv_func_vfork_works=yes
2690 echo "configure: failed program was:" >&5
2691 cat conftest.$ac_ext >&5
2693 ac_cv_func_vfork_works=no
2700 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2701 if test $ac_cv_func_vfork_works = no; then
2702 cat >> confdefs.h <<\EOF
2708 for ac_hdr in unistd.h
2710 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2711 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2712 echo "configure:2713: checking for $ac_hdr" >&5
2713 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2714 echo $ac_n "(cached) $ac_c" 1>&6
2716 cat > conftest.$ac_ext <<EOF
2717 #line 2718 "configure"
2718 #include "confdefs.h"
2721 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2722 { (eval echo configure:2723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2723 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2724 if test -z "$ac_err"; then
2726 eval "ac_cv_header_$ac_safe=yes"
2729 echo "configure: failed program was:" >&5
2730 cat conftest.$ac_ext >&5
2732 eval "ac_cv_header_$ac_safe=no"
2736 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2737 echo "$ac_t""yes" 1>&6
2738 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2739 cat >> confdefs.h <<EOF
2740 #define $ac_tr_hdr 1
2744 echo "$ac_t""no" 1>&6
2748 for ac_func in getpagesize
2750 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2751 echo "configure:2752: checking for $ac_func" >&5
2752 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2753 echo $ac_n "(cached) $ac_c" 1>&6
2755 cat > conftest.$ac_ext <<EOF
2756 #line 2757 "configure"
2757 #include "confdefs.h"
2758 /* System header to define __stub macros and hopefully few prototypes,
2759 which can conflict with char $ac_func(); below. */
2761 /* Override any gcc2 internal prototype to avoid an error. */
2762 /* We use char because int might match the return type of a gcc2
2763 builtin and then its argument prototype would still apply. */
2768 /* The GNU C library defines this for functions which it implements
2769 to always fail with ENOSYS. Some functions are actually named
2770 something starting with __ and the normal name is an alias. */
2771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2779 if { (eval echo configure:2780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2781 eval "ac_cv_func_$ac_func=yes"
2783 echo "configure: failed program was:" >&5
2784 cat conftest.$ac_ext >&5
2786 eval "ac_cv_func_$ac_func=no"
2791 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2792 echo "$ac_t""yes" 1>&6
2793 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2794 cat >> confdefs.h <<EOF
2795 #define $ac_tr_func 1
2799 echo "$ac_t""no" 1>&6
2803 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2804 echo "configure:2805: checking for working mmap" >&5
2805 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2806 echo $ac_n "(cached) $ac_c" 1>&6
2808 if test "$cross_compiling" = yes; then
2809 ac_cv_func_mmap_fixed_mapped=no
2811 cat > conftest.$ac_ext <<EOF
2812 #line 2813 "configure"
2813 #include "confdefs.h"
2815 /* Thanks to Mike Haertel and Jim Avera for this test.
2816 Here is a matrix of mmap possibilities:
2817 mmap private not fixed
2818 mmap private fixed at somewhere currently unmapped
2819 mmap private fixed at somewhere already mapped
2820 mmap shared not fixed
2821 mmap shared fixed at somewhere currently unmapped
2822 mmap shared fixed at somewhere already mapped
2823 For private mappings, we should verify that changes cannot be read()
2824 back from the file, nor mmap's back from the file at a different
2825 address. (There have been systems where private was not correctly
2826 implemented like the infamous i386 svr4.0, and systems where the
2827 VM page cache was not coherent with the filesystem buffer cache
2828 like early versions of FreeBSD and possibly contemporary NetBSD.)
2829 For shared mappings, we should conversely verify that changes get
2830 propogated back to all the places they're supposed to be.
2832 Grep wants private fixed already mapped.
2833 The main things grep needs to know about mmap are:
2834 * does it exist and is it safe to write into the mmap'd area
2835 * how to use it (BSD variants) */
2836 #include <sys/types.h>
2838 #include <sys/mman.h>
2840 /* This mess was copied from the GNU getpagesize.h. */
2841 #ifndef HAVE_GETPAGESIZE
2842 # ifdef HAVE_UNISTD_H
2843 # include <unistd.h>
2846 /* Assume that all systems that can run configure have sys/param.h. */
2847 # ifndef HAVE_SYS_PARAM_H
2848 # define HAVE_SYS_PARAM_H 1
2851 # ifdef _SC_PAGESIZE
2852 # define getpagesize() sysconf(_SC_PAGESIZE)
2853 # else /* no _SC_PAGESIZE */
2854 # ifdef HAVE_SYS_PARAM_H
2855 # include <sys/param.h>
2856 # ifdef EXEC_PAGESIZE
2857 # define getpagesize() EXEC_PAGESIZE
2858 # else /* no EXEC_PAGESIZE */
2860 # define getpagesize() NBPG * CLSIZE
2863 # endif /* no CLSIZE */
2864 # else /* no NBPG */
2866 # define getpagesize() NBPC
2867 # else /* no NBPC */
2869 # define getpagesize() PAGESIZE
2870 # endif /* PAGESIZE */
2871 # endif /* no NBPC */
2872 # endif /* no NBPG */
2873 # endif /* no EXEC_PAGESIZE */
2874 # else /* no HAVE_SYS_PARAM_H */
2875 # define getpagesize() 8192 /* punt totally */
2876 # endif /* no HAVE_SYS_PARAM_H */
2877 # endif /* no _SC_PAGESIZE */
2879 #endif /* no HAVE_GETPAGESIZE */
2882 extern "C" { void *malloc(unsigned); }
2890 char *data, *data2, *data3;
2894 pagesize = getpagesize();
2897 * First, make a file with some known garbage in it.
2899 data = malloc(pagesize);
2902 for (i = 0; i < pagesize; ++i)
2903 *(data + i) = rand();
2905 fd = creat("conftestmmap", 0600);
2908 if (write(fd, data, pagesize) != pagesize)
2913 * Next, try to mmap the file at a fixed address which
2914 * already has something else allocated at it. If we can,
2915 * also make sure that we see the same garbage.
2917 fd = open("conftestmmap", O_RDWR);
2920 data2 = malloc(2 * pagesize);
2923 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2924 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2925 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2927 for (i = 0; i < pagesize; ++i)
2928 if (*(data + i) != *(data2 + i))
2932 * Finally, make sure that changes to the mapped area
2933 * do not percolate back to the file as seen by read().
2934 * (This is a bug on some variants of i386 svr4.0.)
2936 for (i = 0; i < pagesize; ++i)
2937 *(data2 + i) = *(data2 + i) + 1;
2938 data3 = malloc(pagesize);
2941 if (read(fd, data3, pagesize) != pagesize)
2943 for (i = 0; i < pagesize; ++i)
2944 if (*(data + i) != *(data3 + i))
2947 unlink("conftestmmap");
2952 if { (eval echo configure:2953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2954 ac_cv_func_mmap_fixed_mapped=yes
2956 echo "configure: failed program was:" >&5
2957 cat conftest.$ac_ext >&5
2959 ac_cv_func_mmap_fixed_mapped=no
2966 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2967 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2968 cat >> confdefs.h <<\EOF
2975 for ac_func in bcopy bzero bcmp \
2976 index rindex getenv atol sbrk abort atof strerror getcwd getwd \
2977 strsignal putc_unlocked fputs_unlocked strstr
2979 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2980 echo "configure:2981: checking whether $ac_func must be declared" >&5
2981 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2982 echo $ac_n "(cached) $ac_c" 1>&6
2984 cat > conftest.$ac_ext <<EOF
2985 #line 2986 "configure"
2986 #include "confdefs.h"
2989 #ifdef STRING_WITH_STRINGS
2990 # include <string.h>
2991 # include <strings.h>
2993 # ifdef HAVE_STRING_H
2994 # include <string.h>
2996 # ifdef HAVE_STRINGS_H
2997 # include <strings.h>
3001 #ifdef HAVE_STDLIB_H
3004 #ifdef HAVE_UNISTD_H
3008 #define rindex strrchr
3011 #define index strchr
3015 char *(*pfn) = (char *(*)) $ac_func
3018 if { (eval echo configure:3019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3020 eval "gcc_cv_decl_needed_$ac_func=no"
3022 echo "configure: failed program was:" >&5
3023 cat conftest.$ac_ext >&5
3025 eval "gcc_cv_decl_needed_$ac_func=yes"
3030 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
3031 echo "$ac_t""yes" 1>&6
3032 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3033 cat >> confdefs.h <<EOF
3034 #define $gcc_tr_decl 1
3038 echo "$ac_t""no" 1>&6
3044 for ac_func in malloc realloc calloc free
3046 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
3047 echo "configure:3048: checking whether $ac_func must be declared" >&5
3048 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
3049 echo $ac_n "(cached) $ac_c" 1>&6
3051 cat > conftest.$ac_ext <<EOF
3052 #line 3053 "configure"
3053 #include "confdefs.h"
3056 #ifdef STRING_WITH_STRINGS
3057 # include <string.h>
3058 # include <strings.h>
3060 # ifdef HAVE_STRING_H
3061 # include <string.h>
3063 # ifdef HAVE_STRINGS_H
3064 # include <strings.h>
3068 #ifdef HAVE_STDLIB_H
3071 #ifdef HAVE_UNISTD_H
3075 #define rindex strrchr
3078 #define index strchr
3080 #ifdef HAVE_MALLOC_H
3085 char *(*pfn) = (char *(*)) $ac_func
3088 if { (eval echo configure:3089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3090 eval "gcc_cv_decl_needed_$ac_func=no"
3092 echo "configure: failed program was:" >&5
3093 cat conftest.$ac_ext >&5
3095 eval "gcc_cv_decl_needed_$ac_func=yes"
3100 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
3101 echo "$ac_t""yes" 1>&6
3102 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3103 cat >> confdefs.h <<EOF
3104 #define $gcc_tr_decl 1
3108 echo "$ac_t""no" 1>&6
3114 for ac_func in getrlimit setrlimit getrusage
3116 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
3117 echo "configure:3118: checking whether $ac_func must be declared" >&5
3118 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
3119 echo $ac_n "(cached) $ac_c" 1>&6
3121 cat > conftest.$ac_ext <<EOF
3122 #line 3123 "configure"
3123 #include "confdefs.h"
3126 #ifdef STRING_WITH_STRINGS
3127 # include <string.h>
3128 # include <strings.h>
3130 # ifdef HAVE_STRING_H
3131 # include <string.h>
3133 # ifdef HAVE_STRINGS_H
3134 # include <strings.h>
3138 #ifdef HAVE_STDLIB_H
3141 #ifdef HAVE_UNISTD_H
3145 #define rindex strrchr
3148 #define index strchr
3150 #include <sys/types.h>
3151 #ifdef HAVE_SYS_RESOURCE_H
3152 #include <sys/resource.h>
3156 char *(*pfn) = (char *(*)) $ac_func
3159 if { (eval echo configure:3160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3161 eval "gcc_cv_decl_needed_$ac_func=no"
3163 echo "configure: failed program was:" >&5
3164 cat conftest.$ac_ext >&5
3166 eval "gcc_cv_decl_needed_$ac_func=yes"
3171 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
3172 echo "$ac_t""yes" 1>&6
3173 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3174 cat >> confdefs.h <<EOF
3175 #define $gcc_tr_decl 1
3179 echo "$ac_t""no" 1>&6
3185 # mkdir takes a single argument on some systems.
3186 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
3187 echo "configure:3188: checking if mkdir takes one argument" >&5
3188 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
3189 echo $ac_n "(cached) $ac_c" 1>&6
3191 cat > conftest.$ac_ext <<EOF
3192 #line 3193 "configure"
3193 #include "confdefs.h"
3195 #include <sys/types.h>
3196 #ifdef HAVE_SYS_STAT_H
3197 # include <sys/stat.h>
3199 #ifdef HAVE_UNISTD_H
3200 # include <unistd.h>
3202 #ifdef HAVE_DIRECT_H
3203 # include <direct.h>
3209 if { (eval echo configure:3210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3211 gcc_cv_mkdir_takes_one_arg=no
3213 echo "configure: failed program was:" >&5
3214 cat conftest.$ac_ext >&5
3216 gcc_cv_mkdir_takes_one_arg=yes
3221 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
3222 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
3223 cat >> confdefs.h <<\EOF
3224 #define MKDIR_TAKES_ONE_ARG 1
3238 build_install_headers_dir=install-headers-tar
3243 host_truncate_target=
3246 # Decode the host machine, then the target machine.
3247 # For the host machine, we save the xm_file variable as host_xm_file;
3248 # then we decode the target machine and forget everything else
3249 # that came from the host machine.
3250 for machine in $build $host $target; do
3264 # Set this to force installation and use of collect2.
3266 # Set this to override the default target model.
3268 # Set this to control how the header file directory is installed.
3269 install_headers_dir=install-headers-tar
3270 # Set this to a non-empty list of args to pass to cpp if the target
3271 # wants its .md file passed through cpp.
3273 # Set this if directory names should be truncated to 14 characters.
3275 # Set this if gdb needs a dir command with `dirname $out_file`
3276 gdb_needs_out_file_path=
3277 # Set this if the build machine requires executables to have a
3280 # Set this to control which thread package will be used.
3282 # Reinitialize these from the flag values every loop pass, since some
3283 # configure entries modify them.
3285 gnu_ld="$gnu_ld_flag"
3286 enable_threads=$enable_threads_flag
3288 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
3289 # updated in each machine entry.
3291 cpu_type=`echo $machine | sed 's/-.*$//'`
3325 tm_file=${cpu_type}/${cpu_type}.h
3326 xm_file=${cpu_type}/xm-${cpu_type}.h
3327 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h;
3329 tm_p_file=${cpu_type}/${cpu_type}-protos.h;
3331 # On a.out targets, we need to use collect2.
3338 # Common parts for linux-gnu and openbsd systems
3341 xm_defines="HAVE_ATEXIT POSIX BSTRING"
3344 tm_file=${cpu_type}/openbsd.h
3345 tmake_file="t-libc-ok t-openbsd"
3346 # avoid surprises, always provide an xm-openbsd file
3347 xm_file=${cpu_type}/xm-openbsd.h
3348 # don't depend on processor x-fragments as well
3350 if test x$enable_threads = xyes; then
3352 tmake_file="${tmake_file} t-openbsd-thread"
3358 # Support site-specific machine types.
3360 cpu_type=`echo $machine | sed -e 's/-.*//'`
3361 rest=`echo $machine | sed -e "s/$cpu_type-//"`
3362 xm_file=${cpu_type}/xm-$rest.h
3363 tm_file=${cpu_type}/$rest.h
3364 if test -f $srcdir/config/${cpu_type}/x-$rest; \
3365 then xmake_file=${cpu_type}/x-$rest; \
3368 if test -f $srcdir/config/${cpu_type}/t-$rest; \
3369 then tmake_file=${cpu_type}/t-$rest; \
3375 a29k-*-bsd* | a29k-*-sym1*)
3376 tm_file="${tm_file} a29k/unix.h"
3378 xmake_file=a29k/x-unix
3381 a29k-*-udi | a29k-*-coff)
3382 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
3383 tmake_file=a29k/t-a29kbare
3386 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3387 tmake_file=a29k/t-vx29k
3388 extra_parts="crtbegin.o crtend.o"
3389 thread_file='vxworks'
3391 a29k-*-*) # Default a29k environment.
3395 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
3397 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
3398 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
3400 # GAS + IEEE_CONFORMANT
3401 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
3403 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
3404 xmake_file="x-interix alpha/t-pe"
3405 tmake_file="alpha/t-interix alpha/t-ieee"
3406 if test x$enable_threads = xyes ; then
3409 if test x$stabs = xyes ; then
3410 tm_file="${tm_file} dbxcoff.h"
3412 #prefix='$$INTERIX_ROOT'/usr/contrib
3413 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3415 alpha*-*-linux-gnuecoff*)
3416 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3417 target_cpu_default="MASK_GAS"
3418 tmake_file="alpha/t-ieee"
3423 alpha*-*-linux-gnulibc1*)
3424 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3425 target_cpu_default="MASK_GAS"
3426 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe alpha/t-ieee"
3427 extra_parts="crtbegin.o crtend.o"
3430 if test x$enable_threads = xyes; then
3434 alpha*-*-linux-gnu*)
3435 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3436 target_cpu_default="MASK_GAS"
3437 tmake_file="t-linux alpha/t-linux alpha/t-crtbe alpha/t-ieee"
3438 extra_parts="crtbegin.o crtend.o"
3441 if test x$enable_threads = xyes; then
3446 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3447 target_cpu_default="MASK_GAS"
3448 tmake_file="alpha/t-crtbe alpha/t-ieee"
3449 extra_parts="crtbegin.o crtend.o"
3455 # default x-alpha is only appropriate for dec-osf.
3456 target_cpu_default="MASK_GAS"
3457 tmake_file="alpha/t-ieee"
3461 if test x$stabs = xyes
3463 tm_file="${tm_file} dbx.h"
3465 if test x$gas != xyes
3467 extra_passes="mips-tfile mips-tdump"
3470 tmake_file="alpha/t-ieee"
3473 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3476 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
3479 tm_file="${tm_file} alpha/osf.h"
3480 # Some versions of OSF4 (specifically X4.0-9 296.7) have
3481 # a broken tar, so we use cpio instead.
3482 install_headers_dir=install-headers-cpio
3485 tm_file="${tm_file} alpha/osf.h"
3489 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
3490 target_cpu_default=MASK_SUPPORT_ARCH
3495 tm_file="${tm_file} dbx.h alpha/vxworks.h"
3496 tmake_file="alpha/t-ieee"
3499 extra_passes="mips-tfile mips-tdump"
3502 thread_file='vxworks'
3505 tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3506 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3507 tmake_file="t-libc-ok alpha/t-ieee"
3508 xmake_file=winnt/x-winnt
3509 extra_host_objs=oldnames.o
3510 extra_gcc_objs="spawnv.o oldnames.o"
3511 if test x$gnu_ld != xyes
3513 extra_programs=ld.exe
3515 if test x$enable_threads = xyes; then
3521 xm_file="${xm_file} alpha/xm-vms.h"
3522 tmake_file="alpha/t-vms alpha/t-ieee"
3525 extra_parts="crtinit.o crtfini.o"
3527 arm-*-coff* | armel-*-coff*)
3529 tmake_file=arm/t-bare
3533 tmake_file=arm/t-bare
3534 thread_file='vxworks'
3536 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
3537 tm_file=arm/riscix1-1.h
3540 arm-*-riscix*) # Acorn RISC machine
3541 if test x$gas = xyes
3543 tm_file=arm/rix-gas.h
3545 tm_file=arm/riscix.h
3547 xmake_file=arm/x-riscix
3548 tmake_file=arm/t-riscix
3551 arm-semi-aout | armel-semi-aout)
3553 tmake_file=arm/t-semi
3555 arm-semi-aof | armel-semi-aof)
3556 tm_file=arm/semiaof.h
3557 tmake_file=arm/t-semiaof
3560 tm_file=arm/netbsd.h
3561 tmake_file="t-netbsd arm/t-netbsd"
3564 arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
3567 tm_file=arm/linux-aout.h
3568 tmake_file=arm/t-linux
3571 arm*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker
3572 xm_file=arm/xm-linux.h
3574 tm_file="arm/linux-oldld.h arm/linux-elf.h"
3577 tm_file="arm/linux-elf26.h $tm_file"
3580 tmake_file="t-linux arm/t-linux"
3581 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3583 case x${enable_threads} in
3584 x | xyes | xpthreads | xposix)
3589 arm*-*-linux-gnu*) # ARM GNU/Linux with ELF
3590 xm_file=arm/xm-linux.h
3592 tm_file="arm/linux-elf.h"
3595 tm_file="arm/linux-elf26.h $tm_file"
3598 tmake_file="t-linux arm/t-linux"
3599 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3601 case x${enable_threads} in
3602 x | xyes | xpthreads | xposix)
3607 arm*-*-uclinux*) # ARM ucLinux
3608 tm_file=arm/uclinux-elf.h
3609 tmake_file=arm/t-arm-elf
3613 tmake_file=arm/t-bare
3616 tm_file=arm/ecos-elf.h
3617 tmake_file=arm/t-elf
3620 tm_file=arm/unknown-elf.h
3621 tmake_file=arm/t-arm-elf
3624 tm_file=arm/unknown-elf-oabi.h
3625 tmake_file=arm/t-arm-elf
3632 c1-convex-*) # Convex C1
3633 target_cpu_default=1
3636 c2-convex-*) # Convex C2
3637 target_cpu_default=2
3641 target_cpu_default=4
3645 target_cpu_default=8
3649 target_cpu_default=16
3654 tmake_file=c4x/t-c4x
3656 clipper-intergraph-clix*)
3657 tm_file="${tm_file} svr3.h clipper/clix.h"
3658 xm_file=clipper/xm-clix.h
3659 xmake_file=clipper/x-clix
3660 extra_headers=va-clipper.h
3661 extra_parts="crtbegin.o crtend.o"
3662 install_headers_dir=install-headers-cpio
3670 tm_file="fr30/fr30.h"
3671 tmake_file=fr30/t-fr30
3672 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3674 # This hasn't been upgraded to GCC 2.
3675 # fx80-alliant-*) # Alliant FX/80
3681 target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
3682 tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
3683 tmake_file="t-linux pa/t-linux"
3684 extra_parts="crtbegin.o crtend.o"
3687 if test x$enable_threads = xyes; then
3692 target_cpu_default="MASK_PA_11"
3693 tmake_file=pa/t-openbsd
3696 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3697 tm_file="${tm_file} elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
3698 xm_file=pa/xm-papro.h
3702 target_cpu_default="MASK_PA_11"
3703 tm_file="${tm_file} pa/som.h pa/pa-osf.h"
3707 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3708 tm_file="${tm_file} elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
3709 xm_file=pa/xm-papro.h
3713 tm_file="${tm_file} pa/som.h pa/pa-osf.h"
3717 tm_file="${tm_file} pa/som.h"
3718 target_cpu_default="MASK_PA_11"
3722 tm_file="${tm_file} pa/som.h"
3726 tm_file="pa/pa-oldas.h ${tm_file} pa/som.h pa/pa-hpux7.h"
3727 xm_file=pa/xm-pahpux.h
3728 xmake_file=pa/x-pa-hpux
3729 if test x$gas = xyes
3731 tm_file="${tm_file} pa/gas.h"
3733 install_headers_dir=install-headers-cpio
3736 hppa1.0-*-hpux8.0[0-2]*)
3737 tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
3738 xm_file=pa/xm-pahpux.h
3739 xmake_file=pa/x-pa-hpux
3740 if test x$gas = xyes
3742 tm_file="${tm_file} pa/pa-gas.h"
3744 tm_file="pa/pa-oldas.h ${tm_file}"
3746 install_headers_dir=install-headers-cpio
3749 hppa1.1-*-hpux8.0[0-2]*)
3750 target_cpu_default="MASK_PA_11"
3751 tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
3752 xm_file=pa/xm-pahpux.h
3753 xmake_file=pa/x-pa-hpux
3754 if test x$gas = xyes
3756 tm_file="${tm_file} pa/pa-gas.h"
3758 tm_file="pa/pa-oldas.h ${tm_file}"
3760 install_headers_dir=install-headers-cpio
3764 target_cpu_default="MASK_PA_11"
3765 tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
3766 xm_file=pa/xm-pahpux.h
3767 xmake_file=pa/x-pa-hpux
3768 if test x$gas = xyes
3770 tm_file="${tm_file} pa/pa-gas.h"
3772 install_headers_dir=install-headers-cpio
3776 tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
3777 xm_file=pa/xm-pahpux.h
3778 xmake_file=pa/x-pa-hpux
3779 if test x$gas = xyes
3781 tm_file="${tm_file} pa/pa-gas.h"
3783 install_headers_dir=install-headers-cpio
3786 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
3787 target_cpu_default="MASK_PA_11"
3788 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3789 xm_file=pa/xm-pahpux.h
3790 xmake_file=pa/x-pa-hpux
3792 if test x$gas = xyes
3794 tm_file="${tm_file} pa/pa-gas.h"
3796 if test x$enable_threads = x; then
3797 enable_threads=$have_pthread_h
3799 if test x$enable_threads = xyes; then
3801 tmake_file="${tmake_file} pa/t-dce-thr"
3803 install_headers_dir=install-headers-cpio
3807 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3808 xm_file=pa/xm-pahpux.h
3809 xmake_file=pa/x-pa-hpux
3811 if test x$gas = xyes
3813 tm_file="${tm_file} pa/pa-gas.h"
3815 if test x$enable_threads = x; then
3816 enable_threads=$have_pthread_h
3818 if test x$enable_threads = xyes; then
3820 tmake_file="${tmake_file} pa/t-dce-thr"
3822 install_headers_dir=install-headers-cpio
3825 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
3826 target_cpu_default="MASK_PA_11"
3827 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
3828 xm_file=pa/xm-pahpux.h
3829 xmake_file=pa/x-pa-hpux
3831 if test x$gas = xyes
3833 tm_file="${tm_file} pa/pa-gas.h"
3835 # if test x$enable_threads = x; then
3836 # enable_threads=$have_pthread_h
3838 # if test x$enable_threads = xyes; then
3840 # tmake_file="${tmake_file} pa/t-dce-thr"
3842 install_headers_dir=install-headers-cpio
3846 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
3847 xm_file=pa/xm-pahpux.h
3848 xmake_file=pa/x-pa-hpux
3849 if test x$gas = xyes
3851 tm_file="${tm_file} pa/pa-gas.h"
3853 # if test x$enable_threads = x; then
3854 # enable_threads=$have_pthread_h
3856 # if test x$enable_threads = xyes; then
3858 # tmake_file="${tmake_file} pa/t-dce-thr"
3860 install_headers_dir=install-headers-cpio
3863 hppa1.1-*-hpux* | hppa2*-*-hpux*)
3864 target_cpu_default="MASK_PA_11"
3865 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
3866 xm_file=pa/xm-pahpux.h
3867 xmake_file=pa/x-pa-hpux
3868 if test x$gas = xyes
3870 tm_file="${tm_file} pa/pa-gas.h"
3872 install_headers_dir=install-headers-cpio
3876 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
3877 xm_file=pa/xm-pahpux.h
3878 xmake_file=pa/x-pa-hpux
3879 if test x$gas = xyes
3881 tm_file="${tm_file} pa/pa-gas.h"
3883 install_headers_dir=install-headers-cpio
3886 hppa1.1-*-hiux* | hppa2*-*-hiux*)
3887 target_cpu_default="MASK_PA_11"
3888 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
3889 xm_file=pa/xm-pahpux.h
3890 xmake_file=pa/x-pa-hpux
3891 if test x$gas = xyes
3893 tm_file="${tm_file} pa/pa-gas.h"
3895 install_headers_dir=install-headers-cpio
3899 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
3900 xm_file=pa/xm-pahpux.h
3901 xmake_file=pa/x-pa-hpux
3902 if test x$gas = xyes
3904 tm_file="${tm_file} pa/pa-gas.h"
3906 install_headers_dir=install-headers-cpio
3910 tm_file="${tm_file} elfos.h pa/elf.h"
3911 target_cpu_default="MASK_PA_11"
3915 tm_file="${tm_file} pa/pa-mpeix.h"
3916 xm_file=pa/xm-pampeix.h
3917 xmake_file=pa/x-pa-mpeix
3918 echo "You must use gas. Assuming it is already installed."
3919 install_headers_dir=install-headers-tar
3920 fixincludes=Makefile.in
3923 i370-*-opened*) # IBM 360/370/390 Architecture
3924 xm_file=i370/xm-oe.h
3926 xmake_file=i370/x-oe
3927 tmake_file=i370/t-oe
3928 fixincludes=Makefile.in # Headers are wierd, don't mess with
3931 xm_file=i370/xm-mvs.h
3933 tmake_file=i370/t-mvs
3934 fixincludes=Makefile.in # Headers are wierd, don't mess with
3937 xm_file="xm-linux.h i370/xm-linux.h"
3939 tm_file="i370/linux.h ${tm_file}"
3940 tmake_file="t-linux i370/t-linux"
3941 fixincludes=Makefile.in # The headers are ok already.
3942 # broken_install=yes
3943 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3944 # extra_parts="crtbegin.o crtend.o"
3948 if test x$enable_threads = xyes; then
3953 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
3954 tm_file=i386/i386elf.h
3955 tmake_file=i386/t-i386elf
3958 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
3959 if test x$gas = xyes
3961 tm_file=i386/aix386.h
3962 extra_parts="crtbegin.o crtend.o"
3963 tmake_file=i386/t-crtstuff
3965 tm_file=i386/aix386ng.h
3968 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
3970 xmake_file=i386/x-aix
3972 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
3973 xm_file="xm-alloca.h ${xm_file}"
3974 xm_defines="USG POSIX SMALL_ARG_MAX"
3975 xmake_file=i386/x-ncr3000
3976 if test x$stabs = xyes -a x$gas = xyes
3978 tm_file=i386/sysv4gdb.h
3980 tm_file=i386/sysv4.h
3982 extra_parts="crtbegin.o crtend.o"
3983 tmake_file=i386/t-crtpic
3987 xm_file=i386/xm-next.h
3988 tmake_file=i386/t-next
3989 xmake_file=i386/x-next
3990 extra_objs=nextstep.o
3991 extra_parts="crtbegin.o crtend.o"
3992 if test x$enable_threads = xyes; then
3996 i[34567]86-sequent-bsd*) # 80386 from Sequent
3998 if test x$gas = xyes
4000 tm_file=i386/seq-gas.h
4002 tm_file=i386/sequent.h
4005 i[34567]86-sequent-ptx1*)
4006 xm_defines="USG SVR3"
4007 xmake_file=i386/x-sysv3
4008 tm_file=i386/seq-sysv3.h
4009 tmake_file=i386/t-crtstuff
4010 extra_parts="crtbegin.o crtend.o"
4011 install_headers_dir=install-headers-cpio
4013 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
4014 xm_defines="USG SVR3"
4015 xmake_file=i386/x-sysv3
4016 tm_file=i386/seq2-sysv3.h
4017 tmake_file=i386/t-crtstuff
4018 extra_parts="crtbegin.o crtend.o"
4019 install_headers_dir=install-headers-cpio
4021 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
4022 xm_file="xm-alloca.h ${xm_file}"
4023 xm_defines="USG POSIX SMALL_ARG_MAX"
4025 tm_file=i386/ptx4-i.h
4027 extra_parts="crtbegin.o crtend.o"
4028 install_headers_dir=install-headers-cpio
4030 i386-sun-sunos*) # Sun i386 roadrunner
4035 i[34567]86-wrs-vxworks*)
4036 tm_file=i386/vxi386.h
4037 tmake_file=i386/t-i386bare
4038 thread_file='vxworks'
4041 tm_file=i386/i386-aout.h
4042 tmake_file=i386/t-i386bare
4044 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
4045 tm_file=i386/bsd386.h
4046 # tmake_file=t-libc-ok
4049 tm_file=i386/386bsd.h
4050 # tmake_file=t-libc-ok
4051 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
4054 i[34567]86-*-freebsdelf*)
4055 tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
4056 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4057 tmake_file=t-freebsd
4061 case x${enable_threads} in
4062 xyes | xpthreads | xposix)
4064 tmake_file="${tmake_file} t-freebsd-thread"
4068 i[34567]86-*-freebsd*)
4069 tm_file="i386/freebsd.h i386/perform.h"
4070 tmake_file=t-freebsd
4072 i[34567]86-*-netbsd*)
4073 tm_file=i386/netbsd.h
4077 i[34567]86-*-openbsd*)
4078 # we need collect2 until our bug is fixed...
4082 tm_file=i386/i386-coff.h
4083 tmake_file=i386/t-i386bare
4085 i[34567]86-*-isc*) # 80386 running ISC system
4086 xm_file="${xm_file} i386/xm-isc.h"
4087 xm_defines="USG SVR3"
4089 i[34567]86-*-isc[34]*)
4090 xmake_file=i386/x-isc3
4093 xmake_file=i386/x-isc
4096 if test x$gas = xyes -a x$stabs = xyes
4098 tm_file=i386/iscdbx.h
4099 tmake_file=i386/t-svr3dbx
4100 extra_parts="svr3.ifile svr3z.ifile"
4102 tm_file=i386/isccoff.h
4103 tmake_file=i386/t-crtstuff
4104 extra_parts="crtbegin.o crtend.o"
4106 install_headers_dir=install-headers-cpio
4108 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
4110 xmake_file=x-linux-aout
4111 tmake_file="t-linux-aout i386/t-crtstuff"
4112 tm_file=i386/linux-oldld.h
4116 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
4117 xmake_file=x-linux-aout
4118 tmake_file="t-linux-aout i386/t-crtstuff"
4119 tm_file=i386/linux-aout.h
4123 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
4124 # GNU/Linux C library 5
4126 tm_file=i386/linux.h
4127 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
4128 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4131 if test x$enable_threads = xyes; then
4132 thread_file='single'
4135 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
4136 # aka GNU/Linux C library 6
4138 tm_file=i386/linux.h
4139 tmake_file="t-linux i386/t-crtstuff"
4140 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4143 if test x$enable_threads = xyes; then
4150 i[34567]86-go32-msdos | i[34567]86-*-go32*)
4151 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
4154 i[34567]86-pc-msdosdjgpp*)
4155 xm_file=i386/xm-djgpp.h
4156 tm_file=i386/djgpp.h
4157 tmake_file=i386/t-djgpp
4158 xmake_file=i386/x-djgpp
4162 case $host in *pc-msdosdjgpp*)
4167 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
4169 tmake_file=t-libc-ok
4173 i[34567]86-*-lynxos*)
4174 if test x$gas = xyes
4178 tm_file=i386/lynx-ng.h
4180 xm_file=i386/xm-lynx.h
4181 tmake_file=i386/t-i386bare
4186 # tmake_file=t-libc-ok
4189 i[34567]86-*-osfrose*) # 386 using OSF/rose
4190 if test x$elf = xyes
4192 tm_file=i386/osfelf.h
4195 tm_file=i386/osfrose.h
4198 xm_file="i386/xm-osf.h ${xm_file}"
4199 xmake_file=i386/x-osfrose
4200 tmake_file=i386/t-osf
4201 extra_objs=halfpic.o
4203 i[34567]86-go32-rtems*)
4205 xm_file=i386/xm-go32.h
4206 tm_file=i386/go32-rtems.h
4207 tmake_file="i386/t-go32 t-rtems"
4209 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
4211 tm_file=i386/rtemself.h
4212 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
4213 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
4215 i[34567]86-*-rtemscoff*)
4217 tm_file=i386/rtems.h
4218 tmake_file="i386/t-i386bare t-rtems"
4220 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
4221 xm_file="xm-alloca.h ${xm_file} i386/xm-sco5.h"
4222 xm_defines="USG SVR3"
4223 xmake_file=i386/x-sco5
4224 install_headers_dir=install-headers-cpio
4226 if test x$gas = xyes
4228 tm_file="i386/sco5gas.h ${tm_file}"
4229 tmake_file=i386/t-sco5gas
4231 tmake_file=i386/t-sco5
4233 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
4235 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
4236 xm_file="${xm_file} i386/xm-sco.h"
4237 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
4238 xmake_file=i386/x-sco4
4239 install_headers_dir=install-headers-cpio
4240 if test x$stabs = xyes
4242 tm_file=i386/sco4dbx.h
4243 tmake_file=i386/t-svr3dbx
4244 extra_parts="svr3.ifile svr3z.rfile"
4247 tmake_file=i386/t-crtstuff
4248 extra_parts="crtbegin.o crtend.o"
4250 # The default EAFS filesystem supports long file names.
4251 # Truncating the target makes $host != $target which
4252 # makes gcc think it is doing a cross-compile.
4253 # truncate_target=yes
4255 i[34567]86-*-sco*) # 80386 running SCO system
4256 xm_file=i386/xm-sco.h
4257 xmake_file=i386/x-sco
4258 install_headers_dir=install-headers-cpio
4259 if test x$stabs = xyes
4261 tm_file=i386/scodbx.h
4262 tmake_file=i386/t-svr3dbx
4263 extra_parts="svr3.ifile svr3z.rfile"
4266 extra_parts="crtbegin.o crtend.o"
4267 tmake_file=i386/t-crtstuff
4271 i[34567]86-*-solaris2*)
4272 xm_file="xm-alloca.h ${xm_file}"
4273 xm_defines="USG POSIX SMALL_ARG_MAX"
4275 if test x$gas = xyes; then
4276 # Only needed if gas does not support -s
4277 tm_file="i386/sol2gas.h ${tm_file}"
4279 tmake_file=i386/t-sol2
4280 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4282 if test x${enable_threads} = x; then
4283 enable_threads=$have_pthread_h
4284 if test x${enable_threads} = x; then
4285 enable_threads=$have_thread_h
4288 if test x${enable_threads} = xyes; then
4289 if test x${have_pthread_h} = xyes; then
4292 thread_file='solaris'
4296 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
4297 xm_file="xm-alloca.h ${xm_file}"
4298 xm_defines="USG POSIX"
4299 tm_file=i386/sysv5.h
4300 if test x$stabs = xyes
4302 tm_file="${tm_file} dbx.h"
4304 tmake_file=i386/t-crtpic
4306 extra_parts="crtbegin.o crtend.o"
4307 if test x$enable_threads = xyes; then
4311 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
4312 xm_file="xm-alloca.h ${xm_file}"
4313 xm_defines="USG POSIX SMALL_ARG_MAX"
4314 tm_file=i386/sysv4.h
4315 if test x$stabs = xyes
4317 tm_file="${tm_file} dbx.h"
4319 tmake_file=i386/t-crtpic
4321 extra_parts="crtbegin.o crtend.o"
4323 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
4324 xm_file="xm-alloca.h ${xm_file}"
4325 xm_defines="USG POSIX"
4327 tmake_file="i386/t-crtpic i386/t-udk"
4329 extra_parts="crtbegin.o crtend.o"
4330 install_headers_dir=install-headers-cpio
4332 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
4334 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
4335 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
4336 if test x$stabs = xyes
4338 tm_file=i386/osf1elfgdb.h
4340 tm_file=i386/osf1elf.h
4342 tmake_file=i386/t-osf1elf
4343 xmake_file=i386/x-osf1elf
4344 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
4346 i[34567]86-*-sysv*) # Intel 80386's running system V
4347 xm_defines="USG SVR3"
4348 xmake_file=i386/x-sysv3
4349 if test x$gas = xyes
4351 if test x$stabs = xyes
4353 tm_file=i386/svr3dbx.h
4354 tmake_file=i386/t-svr3dbx
4355 extra_parts="svr3.ifile svr3z.rfile"
4357 tm_file=i386/svr3gas.h
4358 extra_parts="crtbegin.o crtend.o"
4359 tmake_file=i386/t-crtstuff
4362 tm_file=i386/sysv3.h
4363 extra_parts="crtbegin.o crtend.o"
4364 tmake_file=i386/t-crtstuff
4367 i386-*-vsta) # Intel 80386's running VSTa kernel
4368 xm_file="${xm_file} i386/xm-vsta.h"
4370 tmake_file=i386/t-vsta
4371 xmake_file=i386/x-vsta
4374 xm_file="${xm_file} i386/xm-cygwin.h"
4375 tmake_file=i386/t-cygwin
4376 tm_file=i386/win32.h
4377 xmake_file=i386/x-cygwin
4379 if test x$enable_threads = xyes; then
4384 i[34567]86-*-pe | i[34567]86-*-cygwin*)
4385 xm_file="${xm_file} i386/xm-cygwin.h"
4386 tmake_file=i386/t-cygwin
4387 tm_file=i386/cygwin.h
4388 xmake_file=i386/x-cygwin
4390 if test x$enable_threads = xyes; then
4395 i[34567]86-*-mingw32*)
4396 tm_file=i386/mingw32.h
4397 xm_file="${xm_file} i386/xm-mingw32.h"
4398 tmake_file="i386/t-cygwin i386/t-mingw32"
4400 xmake_file=i386/x-cygwin
4401 if test x$enable_threads = xyes; then
4408 *minwg32crt* | *mingw32*)
4409 tm_file="${tm_file} i386/crtdll.h"
4415 xm_file="${xm_file} i386/xm-uwin.h"
4416 xm_defines="USG NO_STAB_H"
4417 tmake_file="i386/t-cygwin i386/t-uwin"
4419 xmake_file=i386/x-cygwin
4420 if test x$enable_threads = xyes; then
4425 i[34567]86-*-interix*)
4426 tm_file="i386/i386-interix.h interix.h"
4427 xm_file="i386/xm-i386-interix.h xm-interix.h"
4429 tmake_file="i386/t-interix"
4430 extra_objs=interix.o
4431 xmake_file=x-interix
4432 if test x$enable_threads = xyes ; then
4435 if test x$stabs = xyes ; then
4436 tm_file="${tm_file} dbxcoff.h"
4439 i[34567]86-*-winnt3*)
4440 tm_file=i386/win-nt.h
4441 out_file=i386/i386.c
4442 xm_file="xm-winnt.h ${xm_file}"
4443 xmake_file=winnt/x-winnt
4444 tmake_file=i386/t-winnt
4445 extra_host_objs="winnt.o oldnames.o"
4446 extra_gcc_objs="spawnv.o oldnames.o"
4447 if test x$gnu_ld != xyes
4449 extra_programs=ld.exe
4451 if test x$enable_threads = xyes; then
4455 i[34567]86-dg-dgux*)
4456 xm_file="xm-alloca.h ${xm_file}"
4457 xm_defines="USG POSIX"
4458 out_file=i386/dgux.c
4460 tmake_file=i386/t-dgux
4461 xmake_file=i386/x-dgux
4462 install_headers_dir=install-headers-cpio
4464 i860-alliant-*) # Alliant FX/2800
4465 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
4466 xm_file="${xm_file}"
4467 xmake_file=i860/x-fx2800
4468 tmake_file=i860/t-fx2800
4469 extra_parts="crtbegin.o crtend.o"
4472 tm_file="${tm_file} i860/bsd.h"
4473 if test x$gas = xyes
4475 tm_file="${tm_file} i860/bsd-gas.h"
4480 tm_file="${tm_file} i860/mach.h"
4481 tmake_file=t-libc-ok
4483 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
4484 tm_file="${tm_file} svr3.h i860/paragon.h"
4485 xm_defines="USG SVR3"
4489 tm_file="${tm_file} svr3.h i860/sysv3.h"
4490 xm_defines="USG SVR3"
4491 xmake_file=i860/x-sysv3
4492 extra_parts="crtbegin.o crtend.o"
4495 tm_file="${tm_file} svr4.h i860/sysv4.h"
4496 xm_defines="USG SVR3"
4497 xmake_file=i860/x-sysv4
4499 extra_parts="crtbegin.o crtend.o"
4501 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
4502 tm_file="${tm_file} i960/vx960.h"
4503 tmake_file=i960/t-vxworks960
4505 thread_file='vxworks'
4507 i960-wrs-vxworks5* | i960-wrs-vxworks)
4508 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
4509 tmake_file=i960/t-vxworks960
4511 thread_file='vxworks'
4514 tm_file="${tm_file} i960/vx960.h"
4515 tmake_file=i960/t-vxworks960
4517 thread_file='vxworks'
4520 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
4521 tmake_file=i960/t-960bare
4525 tmake_file="i960/t-960bare t-rtems"
4526 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
4529 i960-*-*) # Default i960 environment.
4533 extra_parts="crtinit.o crtfini.o"
4535 m68000-convergent-sysv*)
4537 xm_file="m68k/xm-3b1.h ${xm_file}"
4540 extra_headers=math-68881.h
4542 m68000-hp-bsd*) # HP 9000/200 running BSD
4543 tm_file=m68k/hp2bsd.h
4544 xmake_file=m68k/x-hp2bsd
4546 extra_headers=math-68881.h
4548 m68000-hp-hpux*) # HP 9000 series 300
4549 xm_file="xm-alloca.h ${xm_file}"
4551 if test x$gas = xyes
4553 xmake_file=m68k/x-hp320g
4554 tm_file=m68k/hp310g.h
4556 xmake_file=m68k/x-hp320
4557 tm_file=m68k/hp310.h
4559 install_headers_dir=install-headers-cpio
4561 extra_headers=math-68881.h
4566 extra_headers=math-68881.h
4569 tm_file=m68k/sun2o4.h
4571 extra_headers=math-68881.h
4574 xm_file="m68k/xm-3b1.h ${xm_file}"
4576 if test x$gas = xyes
4583 extra_headers=math-68881.h
4585 m68k-apple-aux*) # Apple Macintosh running A/UX
4586 xm_defines="USG AUX"
4587 tmake_file=m68k/t-aux
4588 install_headers_dir=install-headers-cpio
4589 extra_headers=math-68881.h
4590 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
4592 if test "$gnu_ld" = yes
4594 tm_file="${tm_file} m68k/auxgld.h"
4596 tm_file="${tm_file} m68k/auxld.h"
4598 if test "$gas" = yes
4600 tm_file="${tm_file} m68k/auxgas.h"
4602 tm_file="${tm_file} m68k/auxas.h"
4604 tm_file="${tm_file} m68k/a-ux.h"
4608 tm_file=m68k/apollo68.h
4609 xmake_file=m68k/x-apollo68
4611 extra_headers=math-68881.h
4614 m68k-altos-sysv*) # Altos 3068
4615 if test x$gas = xyes
4617 tm_file=m68k/altos3068.h
4620 echo "The Altos is supported only with the GNU assembler" 1>&2
4623 extra_headers=math-68881.h
4625 m68k-bull-sysv*) # Bull DPX/2
4626 if test x$gas = xyes
4628 if test x$stabs = xyes
4630 tm_file=m68k/dpx2cdbx.h
4632 tm_file=m68k/dpx2g.h
4637 xm_file="xm-alloca.h ${xm_file}"
4639 xmake_file=m68k/x-dpx2
4641 extra_headers=math-68881.h
4643 m68k-atari-sysv4*) # Atari variant of V.4.
4644 tm_file=m68k/atari.h
4645 xm_file="xm-alloca.h ${xm_file}"
4646 xm_defines="USG FULL_PROTOTYPES"
4648 extra_parts="crtbegin.o crtend.o"
4649 extra_headers=math-68881.h
4652 m68k-motorola-sysv*)
4653 tm_file=m68k/mot3300.h
4654 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
4655 if test x$gas = xyes
4657 xmake_file=m68k/x-mot3300-gas
4658 if test x$gnu_ld = xyes
4660 tmake_file=m68k/t-mot3300-gald
4662 tmake_file=m68k/t-mot3300-gas
4666 xmake_file=m68k/x-mot3300
4667 if test x$gnu_ld = xyes
4669 tmake_file=m68k/t-mot3300-gld
4671 tmake_file=m68k/t-mot3300
4675 gdb_needs_out_file_path=yes
4676 extra_parts="crt0.o mcrt0.o"
4677 extra_headers=math-68881.h
4680 m68k-ncr-sysv*) # NCR Tower 32 SVR3
4681 tm_file=m68k/tower-as.h
4682 xm_defines="USG SVR3"
4683 xmake_file=m68k/x-tower
4684 extra_parts="crtbegin.o crtend.o"
4685 extra_headers=math-68881.h
4688 tm_file=m68k/plexus.h
4689 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
4692 extra_headers=math-68881.h
4696 xm_file="xm-alloca.h ${xm_file}"
4698 extra_headers=math-68881.h
4701 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
4702 xm_defines="USG unos"
4703 xmake_file=m68k/x-crds
4706 extra_headers=math-68881.h
4708 m68k-cbm-sysv4*) # Commodore variant of V.4.
4710 xm_file="xm-alloca.h ${xm_file}"
4711 xm_defines="USG FULL_PROTOTYPES"
4712 xmake_file=m68k/x-amix
4714 extra_parts="crtbegin.o crtend.o"
4715 extra_headers=math-68881.h
4719 tm_file=m68k/ccur-GAS.h
4720 xmake_file=m68k/x-ccur
4721 extra_headers=math-68881.h
4725 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
4726 tm_file=m68k/hp3bsd44.h
4727 xmake_file=m68k/x-hp3bsd44
4729 extra_headers=math-68881.h
4732 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
4733 tm_file=m68k/hp3bsd.h
4735 extra_headers=math-68881.h
4739 if test x$with_fp = xno
4741 tm_file=m68k/isi-nfp.h
4747 extra_headers=math-68881.h
4749 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
4750 xm_file="xm-alloca.h ${xm_file}"
4752 if test x$gas = xyes
4754 xmake_file=m68k/x-hp320g
4755 tm_file=m68k/hp320g.h
4757 xmake_file=m68k/x-hp320
4758 tm_file=m68k/hpux7.h
4760 install_headers_dir=install-headers-cpio
4762 extra_headers=math-68881.h
4765 m68k-hp-hpux*) # HP 9000 series 300
4766 xm_file="xm-alloca.h ${xm_file}"
4768 if test x$gas = xyes
4770 xmake_file=m68k/x-hp320g
4771 tm_file=m68k/hp320g.h
4773 xmake_file=m68k/x-hp320
4774 tm_file=m68k/hp320.h
4776 install_headers_dir=install-headers-cpio
4778 extra_headers=math-68881.h
4782 tm_file=m68k/sun3mach.h
4784 extra_headers=math-68881.h
4788 if test x$gas = xyes
4790 tm_file=m68k/news3gas.h
4792 tm_file=m68k/news3.h
4795 extra_headers=math-68881.h
4798 m68k-sony-bsd* | m68k-sony-newsos*)
4799 if test x$gas = xyes
4801 tm_file=m68k/newsgas.h
4806 extra_headers=math-68881.h
4809 m68k-next-nextstep2*)
4810 tm_file=m68k/next21.h
4811 xm_file="m68k/xm-next.h ${xm_file}"
4812 tmake_file=m68k/t-next
4813 xmake_file=m68k/x-next
4814 extra_objs=nextstep.o
4815 extra_headers=math-68881.h
4819 m68k-next-nextstep[34]*)
4821 xm_file="m68k/xm-next.h ${xm_file}"
4822 tmake_file=m68k/t-next
4823 xmake_file=m68k/x-next
4824 extra_objs=nextstep.o
4825 extra_parts="crtbegin.o crtend.o"
4826 extra_headers=math-68881.h
4828 if test x$enable_threads = xyes; then
4833 if test x$with_fp = xno
4835 tm_file=m68k/sun3n3.h
4837 tm_file=m68k/sun3o3.h
4841 extra_headers=math-68881.h
4843 m68k-sun-sunos*) # For SunOS 4 (the default).
4844 if test x$with_fp = xno
4846 tm_file=m68k/sun3n.h
4852 extra_headers=math-68881.h
4855 tm_file=m68k/vxm68k.h
4856 tmake_file=m68k/t-vxworks68
4857 extra_headers=math-68881.h
4858 thread_file='vxworks'
4862 tmake_file=m68k/t-m68kbare
4863 tm_file="m68k/m68k-aout.h libgloss.h"
4864 extra_headers=math-68881.h
4868 tmake_file=m68k/t-m68kbare
4869 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
4870 extra_headers=math-68881.h
4873 m68020-*-elf* | m68k-*-elf*)
4874 tm_file="m68k/m68020-elf.h"
4875 xm_file=m68k/xm-m68kv.h
4876 tmake_file=m68k/t-m68kelf
4877 header_files=math-68881.h
4880 if test x$gas = xyes
4884 tm_file=m68k/lynx-ng.h
4886 xm_file=m68k/xm-lynx.h
4888 tmake_file=m68k/t-lynx
4889 extra_headers=math-68881.h
4893 tm_file=m68k/netbsd.h
4900 # we need collect2 until our bug is fixed...
4903 m68k-*-sysv3*) # Motorola m68k's running system V.3
4904 xm_file="xm-alloca.h ${xm_file}"
4906 xmake_file=m68k/x-m68kv
4907 extra_parts="crtbegin.o crtend.o"
4908 extra_headers=math-68881.h
4911 m68k-*-sysv4*) # Motorola m68k's running system V.4
4912 tm_file=m68k/m68kv4.h
4913 xm_file="xm-alloca.h ${xm_file}"
4916 extra_parts="crtbegin.o crtend.o"
4917 extra_headers=math-68881.h
4920 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
4923 tm_file=m68k/linux-aout.h
4924 tmake_file="t-linux-aout m68k/t-linux-aout"
4925 extra_headers=math-68881.h
4929 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
4930 # with ELF format using the
4931 # GNU/Linux C library 5
4933 tm_file=m68k/linux.h
4934 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
4935 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4936 extra_headers=math-68881.h
4940 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
4941 # with ELF format using glibc 2
4942 # aka the GNU/Linux C library 6.
4944 tm_file=m68k/linux.h
4945 tmake_file="t-linux m68k/t-linux"
4946 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4947 extra_headers=math-68881.h
4950 if test x$enable_threads = xyes; then
4955 tmake_file=m68k/t-m68kbare
4956 tm_file=m68k/m68k-psos.h
4957 extra_headers=math-68881.h
4960 m68k-*-rtemscoff*|m68k-*-rtems*)
4961 tmake_file="m68k/t-m68kbare t-rtems"
4962 tm_file=m68k/rtems.h
4963 extra_headers=math-68881.h
4967 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
4968 tm_file=m68k/rtemself.h
4969 extra_headers=math-68881.h
4975 tm_file=m88k/dguxbcs.h
4976 tmake_file=m88k/t-dguxbcs
4980 tmake_file=m88k/t-dgux
4983 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
4984 xmake_file=m88k/x-dgux
4985 if test x$gas = xyes
4987 tmake_file=m88k/t-dgux-gas
4990 m88k-dolphin-sysv3*)
4991 tm_file=m88k/dolph.h
4992 extra_parts="crtbegin.o crtend.o"
4993 xm_file="m88k/xm-sysv3.h ${xm_file}"
4994 xmake_file=m88k/x-dolph
4995 if test x$gas = xyes
4997 tmake_file=m88k/t-m88k-gas
5000 m88k-tektronix-sysv3)
5001 tm_file=m88k/tekXD88.h
5002 extra_parts="crtbegin.o crtend.o"
5003 xm_file="m88k/xm-sysv3.h ${xm_file}"
5004 xmake_file=m88k/x-tekXD88
5005 if test x$gas = xyes
5007 tmake_file=m88k/t-m88k-gas
5011 tm_file=m88k/m88k-aout.h
5014 tm_file=m88k/m88k-coff.h
5015 tmake_file=m88k/t-bug
5019 extra_parts="crtbegin.o crtend.o"
5020 if test x$gas = xyes
5022 tmake_file=m88k/t-luna-gas
5024 tmake_file=m88k/t-luna
5028 tmake_file="${tmake_file} m88k/t-luna-gas"
5031 tm_file=m88k/sysv3.h
5032 extra_parts="crtbegin.o crtend.o"
5033 xm_file="m88k/xm-sysv3.h ${xm_file}"
5034 xmake_file=m88k/x-sysv3
5035 if test x$gas = xyes
5037 tmake_file=m88k/t-m88k-gas
5041 tm_file=m88k/sysv4.h
5042 extra_parts="crtbegin.o crtend.o"
5043 xmake_file=m88k/x-sysv4
5044 tmake_file=m88k/t-sysv4
5046 mips-sgi-irix6*) # SGI System V.4., IRIX 6
5047 if test "x$gnu_ld" = xyes
5049 tm_file="mips/iris6.h mips/iris6gld.h"
5051 tm_file=mips/iris6.h
5053 tmake_file=mips/t-iris6
5054 xm_file=mips/xm-iris6.h
5055 xmake_file=mips/x-iris6
5056 # if test x$enable_threads = xyes; then
5057 # thread_file='irix'
5061 tm_file="mips/elf.h mips/vxworks.h"
5062 tmake_file=mips/t-ecoff
5065 extra_parts="crtbegin.o crtend.o"
5066 thread_file='vxworks'
5068 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
5069 tm_file="mips/iris6.h mips/cross64.h"
5071 xm_file="mips/xm-iris5.h"
5072 xmake_file=mips/x-iris
5073 tmake_file=mips/t-cross64
5074 # See comment in mips/iris[56].h files.
5076 # if test x$enable_threads = xyes; then
5077 # thread_file='irix'
5081 if test x$gas = xyes
5083 if test x$stabs = xyes
5085 tm_file=mips/iris5gdb.h
5087 tm_file="mips/sni-svr4.h mips/sni-gas.h"
5090 tm_file=mips/sni-svr4.h
5093 xmake_file=mips/x-sni-svr4
5094 tmake_file=mips/t-mips-gas
5095 if test x$gnu_ld != xyes
5100 mips-sgi-irix5*) # SGI System V.4., IRIX 5
5101 if test x$gas = xyes
5103 tm_file="mips/iris5.h mips/iris5gas.h"
5104 if test x$stabs = xyes
5106 tm_file="${tm_file} dbx.h"
5109 tm_file=mips/iris5.h
5112 xm_file="mips/xm-iris5.h"
5113 xmake_file=mips/x-iris
5114 # mips-tfile doesn't work yet
5115 tmake_file=mips/t-mips-gas
5116 # See comment in mips/iris5.h file.
5118 # if test x$enable_threads = xyes; then
5119 # thread_file='irix'
5122 mips-sgi-irix4loser*) # Mostly like a MIPS.
5123 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
5124 if test x$stabs = xyes; then
5125 tm_file="${tm_file} dbx.h"
5128 xmake_file=mips/x-iris
5129 if test x$gas = xyes
5131 tmake_file=mips/t-mips-gas
5133 extra_passes="mips-tfile mips-tdump"
5135 if test x$gnu_ld != xyes
5139 # if test x$enable_threads = xyes; then
5140 # thread_file='irix'
5143 mips-sgi-irix4*) # Mostly like a MIPS.
5144 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
5145 if test x$stabs = xyes; then
5146 tm_file="${tm_file} dbx.h"
5149 xmake_file=mips/x-iris
5150 if test x$gas = xyes
5152 tmake_file=mips/t-mips-gas
5154 extra_passes="mips-tfile mips-tdump"
5156 if test x$gnu_ld != xyes
5160 # if test x$enable_threads = xyes; then
5161 # thread_file='irix'
5164 mips-sgi-*) # Mostly like a MIPS.
5165 tm_file="mips/iris3.h ${tm_file}"
5166 if test x$stabs = xyes; then
5167 tm_file="${tm_file} dbx.h"
5170 xmake_file=mips/x-iris3
5171 if test x$gas = xyes
5173 tmake_file=mips/t-mips-gas
5175 extra_passes="mips-tfile mips-tdump"
5177 if test x$gnu_ld != xyes
5182 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
5183 tm_file="mips/osfrose.h ${tm_file}"
5184 xmake_file=mips/x-osfrose
5185 tmake_file=mips/t-osfrose
5186 extra_objs=halfpic.o
5189 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
5190 tm_file=mips/dec-osf1.h
5191 if test x$stabs = xyes; then
5192 tm_file="${tm_file} dbx.h"
5194 xmake_file=mips/x-dec-osf1
5195 if test x$gas = xyes
5197 tmake_file=mips/t-mips-gas
5199 tmake_file=mips/t-ultrix
5200 extra_passes="mips-tfile mips-tdump"
5202 if test x$gnu_ld != xyes
5207 mips-dec-bsd*) # Decstation running 4.4 BSD
5208 tm_file=mips/dec-bsd.h
5209 if test x$gas = xyes
5211 tmake_file=mips/t-mips-gas
5213 tmake_file=mips/t-ultrix
5214 extra_passes="mips-tfile mips-tdump"
5216 if test x$gnu_ld != xyes
5221 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
5222 tm_file=mips/netbsd.h
5223 # On NetBSD, the headers are already okay, except for math.h.
5226 mips*-*-linux*) # Linux MIPS, either endian.
5229 mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;;
5230 *) tm_file="mips/elf.h mips/linux.h" ;;
5232 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5235 if test x$enable_threads = xyes; then
5239 mips*el-*-openbsd*) # mips little endian
5240 target_cpu_default="MASK_GAS|MASK_ABICALLS"
5242 mips*-*-openbsd*) # mips big endian
5243 target_cpu_default="MASK_GAS|MASK_ABICALLS"
5244 tm_file="mips/openbsd-be.h ${tm_file}"
5246 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
5247 tm_file="mips/news4.h ${tm_file}"
5248 if test x$stabs = xyes; then
5249 tm_file="${tm_file} dbx.h"
5251 if test x$gas = xyes
5253 tmake_file=mips/t-mips-gas
5255 extra_passes="mips-tfile mips-tdump"
5257 if test x$gnu_ld != xyes
5261 xmake_file=mips/x-sony
5263 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
5264 # That is based on svr4.
5265 # t-svr4 is not right because this system doesn't use ELF.
5266 tm_file="mips/news5.h ${tm_file}"
5267 if test x$stabs = xyes; then
5268 tm_file="${tm_file} dbx.h"
5271 if test x$gas = xyes
5273 tmake_file=mips/t-mips-gas
5275 extra_passes="mips-tfile mips-tdump"
5277 if test x$gnu_ld != xyes
5282 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
5283 tm_file="mips/svr4-5.h mips/svr4-t.h"
5284 if test x$stabs = xyes; then
5285 tm_file="${tm_file} dbx.h"
5288 xmake_file=mips/x-sysv
5289 if test x$gas = xyes
5291 tmake_file=mips/t-mips-gas
5292 extra_parts="crtbegin.o crtend.o"
5294 tmake_file=mips/t-mips
5295 extra_passes="mips-tfile mips-tdump"
5297 if test x$gnu_ld != xyes
5302 mips-*-ultrix* | mips-dec-mach3) # Decstation.
5303 tm_file="mips/ultrix.h ${tm_file}"
5304 if test x$stabs = xyes; then
5305 tm_file="${tm_file} dbx.h"
5307 xmake_file=mips/x-ultrix
5308 if test x$gas = xyes
5310 tmake_file=mips/t-mips-gas
5312 tmake_file=mips/t-ultrix
5313 extra_passes="mips-tfile mips-tdump"
5315 if test x$gnu_ld != xyes
5320 mips-*-riscos[56789]bsd*)
5321 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
5322 if test x$stabs = xyes; then
5323 tm_file="${tm_file} dbx.h"
5325 if test x$gas = xyes
5327 tmake_file=mips/t-bsd-gas
5329 tmake_file=mips/t-bsd
5330 extra_passes="mips-tfile mips-tdump"
5332 if test x$gnu_ld != xyes
5337 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
5338 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
5339 if test x$stabs = xyes; then
5340 tm_file="${tm_file} dbx.h"
5342 if test x$gas = xyes
5344 tmake_file=mips/t-bsd-gas
5346 tmake_file=mips/t-bsd
5347 extra_passes="mips-tfile mips-tdump"
5349 if test x$gnu_ld != xyes
5354 mips-*-riscos[56789]sysv4*)
5355 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
5356 if test x$stabs = xyes; then
5357 tm_file="${tm_file} dbx.h"
5359 xmake_file=mips/x-sysv
5360 if test x$gas = xyes
5362 tmake_file=mips/t-svr4-gas
5364 tmake_file=mips/t-svr4
5365 extra_passes="mips-tfile mips-tdump"
5367 if test x$gnu_ld != xyes
5372 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
5373 tm_file="mips/svr4-4.h ${tm_file}"
5374 if test x$stabs = xyes; then
5375 tm_file="${tm_file} dbx.h"
5378 xmake_file=mips/x-sysv
5379 if test x$gas = xyes
5381 tmake_file=mips/t-svr4-gas
5383 tmake_file=mips/t-svr4
5384 extra_passes="mips-tfile mips-tdump"
5386 if test x$gnu_ld != xyes
5391 mips-*-riscos[56789]sysv*)
5392 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
5393 if test x$stabs = xyes; then
5394 tm_file="${tm_file} dbx.h"
5397 xmake_file=mips/x-sysv
5398 if test x$gas = xyes
5400 tmake_file=mips/t-svr3-gas
5402 tmake_file=mips/t-svr3
5403 extra_passes="mips-tfile mips-tdump"
5405 if test x$gnu_ld != xyes
5410 mips-*-sysv* | mips-*-riscos*sysv*)
5411 tm_file="mips/svr3-4.h ${tm_file}"
5412 if test x$stabs = xyes; then
5413 tm_file="${tm_file} dbx.h"
5416 xmake_file=mips/x-sysv
5417 if test x$gas = xyes
5419 tmake_file=mips/t-svr3-gas
5421 tmake_file=mips/t-svr3
5422 extra_passes="mips-tfile mips-tdump"
5424 if test x$gnu_ld != xyes
5429 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
5430 tm_file=mips/mips-5.h
5431 if test x$stabs = xyes; then
5432 tm_file="${tm_file} dbx.h"
5434 if test x$gas = xyes
5436 tmake_file=mips/t-mips-gas
5438 extra_passes="mips-tfile mips-tdump"
5440 if test x$gnu_ld != xyes
5448 tm_file=mips/ecoffl.h
5449 if test x$stabs = xyes; then
5450 tm_file="${tm_file} dbx.h"
5452 tmake_file=mips/t-ecoff
5455 tm_file="gofast.h mips/ecoff.h"
5456 if test x$stabs = xyes; then
5457 tm_file="${tm_file} dbx.h"
5459 tmake_file=mips/t-ecoff
5462 tm_file="mips/elfl.h"
5463 tmake_file=mips/t-elf
5466 tm_file="mips/elf.h"
5467 tmake_file=mips/t-elf
5470 tm_file="mips/elfl64.h"
5471 tmake_file=mips/t-elf
5473 mips64orionel-*-elf*)
5474 tm_file="mips/elforion.h mips/elfl64.h"
5475 tmake_file=mips/t-elf
5478 tm_file="mips/elf64.h"
5479 tmake_file=mips/t-elf
5482 tm_file="mips/elforion.h mips/elf64.h"
5483 tmake_file=mips/t-elf
5485 mips64orion-*-rtems*)
5486 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
5487 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
5488 tmake_file="mips/t-elf t-rtems"
5491 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
5492 tmake_file=mips/t-r3900
5495 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
5496 tmake_file=mips/t-r3900
5498 mips-*-*) # Default MIPS RISC-OS 4.0.
5499 if test x$stabs = xyes; then
5500 tm_file="${tm_file} dbx.h"
5502 if test x$gas = xyes
5504 tmake_file=mips/t-mips-gas
5506 extra_passes="mips-tfile mips-tdump"
5508 if test x$gnu_ld != xyes
5516 tm_file="mn10200/mn10200.h"
5517 if test x$stabs = xyes
5519 tm_file="${tm_file} dbx.h"
5525 tm_file="mn10300/mn10300.h"
5526 if test x$stabs = xyes
5528 tm_file="${tm_file} dbx.h"
5533 tm_file=ns32k/encore.h
5537 tm_file=ns32k/sequent.h
5541 tm_file=ns32k/tek6100.h
5545 tm_file=ns32k/tek6200.h
5548 # This has not been updated to GCC 2.
5551 # xmake_file=ns32k/x-genix
5552 # tm_file=ns32k/genix.h
5556 tm_file=ns32k/merlin.h
5560 tm_file=ns32k/pc532-mach.h
5564 tm_file=ns32k/pc532-min.h
5565 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
5570 tm_file=ns32k/netbsd.h
5571 xm_file="ns32k/xm-netbsd.h ${xm_file}"
5572 # On NetBSD, the headers are already okay, except for math.h.
5577 tm_file="${tm_file} pdp11/2bsd.h"
5584 # This has not been updated to GCC 2.
5587 # xmake_file=pyr/x-pyr
5594 xmake_file=romp/x-mach
5601 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
5605 tm_file=rs6000/beos.h
5606 xm_file=rs6000/xm-beos.h
5607 tmake_file=rs6000/t-beos
5608 xmake_file=rs6000/x-beos
5610 powerpc-*-sysv* | powerpc-*-elf*)
5611 tm_file=rs6000/sysv4.h
5612 xm_file="rs6000/xm-sysv4.h"
5613 xm_defines="USG POSIX"
5614 extra_headers=ppc-asm.h
5615 if test x$gas = xyes
5617 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5619 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5621 xmake_file=rs6000/x-sysv4
5624 tm_file=rs6000/eabiaix.h
5625 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5626 extra_headers=ppc-asm.h
5629 tm_file=rs6000/eabisim.h
5630 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5631 extra_headers=ppc-asm.h
5634 tm_file=rs6000/eabi.h
5635 if test x$gas = xyes
5637 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5639 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5641 extra_headers=ppc-asm.h
5644 tm_file=rs6000/rtems.h
5645 if test x$gas = xyes
5647 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
5649 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
5651 extra_headers=ppc-asm.h
5653 powerpc-*-linux-gnulibc1)
5654 tm_file=rs6000/linux.h
5655 xm_file=rs6000/xm-sysv4.h
5656 out_file=rs6000/rs6000.c
5657 if test x$gas = xyes
5659 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5661 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5664 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5665 extra_headers=ppc-asm.h
5666 if test x$enable_threads = xyes; then
5670 powerpc-*-linux-gnu*)
5671 tm_file=rs6000/linux.h
5672 xm_file="rs6000/xm-sysv4.h"
5673 xm_defines="USG ${xm_defines}"
5674 out_file=rs6000/rs6000.c
5675 if test x$gas = xyes
5677 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
5679 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
5682 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5683 extra_headers=ppc-asm.h
5684 if test x$enable_threads = xyes; then
5688 powerpc-wrs-vxworks*)
5690 xm_file="rs6000/xm-sysv4.h"
5691 xm_defines="USG POSIX"
5692 tm_file=rs6000/vxppc.h
5693 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5694 extra_headers=ppc-asm.h
5695 thread_file='vxworks'
5697 powerpcle-*-sysv* | powerpcle-*-elf*)
5698 tm_file=rs6000/sysv4le.h
5699 xm_file="rs6000/xm-sysv4.h"
5700 xm_defines="USG POSIX"
5701 if test x$gas = xyes
5703 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5705 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5707 xmake_file=rs6000/x-sysv4
5708 extra_headers=ppc-asm.h
5710 powerpcle-*-eabisim*)
5711 tm_file=rs6000/eabilesim.h
5712 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5713 extra_headers=ppc-asm.h
5716 tm_file=rs6000/eabile.h
5717 if test x$gas = xyes
5719 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5721 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5723 extra_headers=ppc-asm.h
5725 powerpcle-*-winnt* )
5726 tm_file=rs6000/win-nt.h
5727 tmake_file=rs6000/t-winnt
5729 if test x$enable_threads = xyes; then
5732 extra_headers=ppc-asm.h
5734 powerpcle-*-pe | powerpcle-*-cygwin*)
5735 tm_file=rs6000/cygwin.h
5736 xm_file="rs6000/xm-cygwin.h ${xm_file}"
5737 tmake_file=rs6000/t-winnt
5738 xmake_file=rs6000/x-cygwin
5740 if test x$enable_threads = xyes; then
5744 extra_headers=ppc-asm.h
5746 powerpcle-*-solaris2*)
5747 tm_file=rs6000/sol2.h
5748 xm_file="rs6000/xm-sysv4.h"
5749 xm_defines="USG POSIX"
5750 if test x$gas = xyes
5752 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5754 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5756 xmake_file=rs6000/x-sysv4
5757 extra_headers=ppc-asm.h
5759 rs6000-ibm-aix3.[01]*)
5760 tm_file=rs6000/aix31.h
5761 xmake_file=rs6000/x-aix31
5765 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
5766 tm_file=rs6000/aix3newas.h
5767 if test x$host != x$target
5769 tmake_file=rs6000/t-xnewas
5771 tmake_file=rs6000/t-newas
5776 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
5777 tm_file=rs6000/aix41.h
5778 if test x$host != x$target
5780 tmake_file=rs6000/t-xnewas
5782 tmake_file=rs6000/t-newas
5784 if test "$gnu_ld" = yes
5786 xmake_file=rs6000/x-aix41-gld
5788 xmake_file=rs6000/x-aix41
5793 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
5794 tm_file=rs6000/aix43.h
5795 if test x$host != x$target
5797 tmake_file=rs6000/t-xaix43
5799 tmake_file=rs6000/t-aix43
5801 xmake_file=rs6000/x-aix43
5805 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
5806 tm_file=rs6000/aix43.h
5807 if test x$host != x$target
5809 tmake_file=rs6000/t-xaix43
5811 tmake_file=rs6000/t-aix43
5813 xmake_file=rs6000/x-aix43
5826 tm_file=rs6000/mach.h
5827 xm_file="${xm_file} rs6000/xm-mach.h"
5828 xmake_file=rs6000/x-mach
5832 tm_file=rs6000/lynx.h
5833 xm_file=rs6000/xm-lynx.h
5834 tmake_file=rs6000/t-rs6000
5835 xmake_file=rs6000/x-lynx
5843 tmake_file="sh/t-sh t-rtems"
5844 tm_file=sh/rtemself.h
5848 tmake_file="sh/t-sh t-rtems"
5857 xm_file="xm-alloca.h ${xm_file}"
5860 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
5861 tm_file=sparc/vxsparc.h
5862 tmake_file=sparc/t-vxsparc
5864 thread_file='vxworks'
5867 tmake_file=sparc/t-sparcbare
5868 tm_file="sparc/aout.h libgloss.h"
5871 tm_file=sparc/netbsd.h
5876 # we need collect2 until our bug is fixed...
5884 tmake_file=sparc/t-elf
5885 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
5889 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
5890 xm_file="${xm_file} sparc/xm-linux.h"
5891 tm_file=sparc/linux-aout.h
5895 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
5896 xm_file="${xm_file} sparc/xm-linux.h"
5898 tm_file=sparc/linux.h
5899 tmake_file="t-linux t-linux-gnulibc1"
5900 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5904 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
5905 xm_file="${xm_file} sparc/xm-linux.h"
5907 tm_file=sparc/linux.h
5908 tmake_file="t-linux"
5909 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5911 if test x$enable_threads = xyes; then
5917 if test x$gas = xyes
5919 tm_file=sparc/lynx.h
5921 tm_file=sparc/lynx-ng.h
5923 xm_file=sparc/xm-lynx.h
5924 tmake_file=sparc/t-sunos41
5927 sparc-*-rtems*|sparc-*-rtemself*)
5928 tm_file="sparc/rtemself.h"
5929 tmake_file="sparc/t-elf t-rtems"
5930 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
5935 tmake_file="sparc/t-sparcbare t-rtems"
5936 tm_file=sparc/rtems.h
5938 sparcv9-*-solaris2*)
5939 if test x$gnu_ld = xyes
5941 tm_file=sparc/sol2-64.h
5943 tm_file=sparc/sol2-sld-64.h
5945 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
5946 xm_defines="USG POSIX"
5947 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
5948 xmake_file=sparc/x-sysv4
5949 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
5951 if test x${enable_threads} = x ; then
5952 enable_threads=$have_pthread_h
5953 if test x${enable_threads} = x ; then
5954 enable_threads=$have_thread_h
5957 if test x${enable_threads} = xyes ; then
5958 if test x${have_pthread_h} = xyes ; then
5961 thread_file='solaris'
5965 sparc-hal-solaris2*)
5966 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
5967 xm_defines="USG POSIX"
5968 tm_file="sparc/sol2.h sparc/hal.h"
5969 tmake_file="sparc/t-halos sparc/t-sol2"
5970 xmake_file=sparc/x-sysv4
5971 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
5980 thread_file='solaris'
5983 if test x$gnu_ld = xyes
5985 tm_file=sparc/sol2.h
5987 tm_file=sparc/sol2-sld.h
5989 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
5990 xm_defines="USG POSIX"
5991 tmake_file=sparc/t-sol2
5992 xmake_file=sparc/x-sysv4
5993 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
5995 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
5997 if test x$gnu_ld = xyes
5999 tm_file=sparc/sol2-64.h
6001 tm_file=sparc/sol2-sld-64.h
6003 tmake_file="$tmake_file sparc/t-sol2-64"
6014 if test x${enable_threads} = x; then
6015 enable_threads=$have_pthread_h
6016 if test x${enable_threads} = x; then
6017 enable_threads=$have_thread_h
6020 if test x${enable_threads} = xyes; then
6021 if test x${have_pthread_h} = xyes; then
6024 thread_file='solaris'
6029 tm_file=sparc/sunos4.h
6030 tmake_file=sparc/t-sunos40
6034 tm_file=sparc/sunos4.h
6035 tmake_file=sparc/t-sunos41
6037 if test x$gas = xyes; then
6038 tm_file="${tm_file} sparc/sun4gas.h"
6042 tm_file=sparc/sun4o3.h
6046 tm_file=sparc/sysv4.h
6047 xm_file="sparc/xm-sysv4.h"
6048 xm_defines="USG POSIX"
6050 xmake_file=sparc/x-sysv4
6051 extra_parts="crtbegin.o crtend.o"
6054 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
6055 xm_defines="USG POSIX"
6056 tm_file=sparc/vxsim.h
6057 tmake_file=sparc/t-vxsparc
6058 xmake_file=sparc/x-sysv4
6061 tm_file="sparc/splet.h libgloss.h"
6062 tmake_file=sparc/t-splet
6065 tm_file="sparc/litecoff.h libgloss.h"
6066 tmake_file=sparc/t-sparclite
6069 tm_file="sparc/lite.h aoutos.h libgloss.h"
6070 tmake_file=sparc/t-sparclite
6073 tm_file="sparc/liteelf.h"
6074 tmake_file=sparc/t-sparclite
6075 extra_parts="crtbegin.o crtend.o"
6078 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
6079 tmake_file=sparc/t-sp86x
6082 tm_file="sparc/sp86x-elf.h"
6083 tmake_file=sparc/t-sp86x
6084 extra_parts="crtbegin.o crtend.o"
6087 tmake_file=sparc/t-sp64
6088 tm_file=sparc/sp64-aout.h
6091 tmake_file=sparc/t-sp64
6092 tm_file=sparc/sp64-elf.h
6093 extra_parts="crtbegin.o crtend.o"
6095 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
6096 tmake_file="t-linux sparc/t-linux64"
6097 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
6098 tm_file=sparc/linux64.h
6100 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6102 if test x$enable_threads = xyes; then
6107 # This hasn't been upgraded to GCC 2.
6108 # tahoe-harris-*) # Harris tahoe, using COFF.
6109 # tm_file=tahoe/harris.h
6111 # tahoe-*-bsd*) # tahoe running BSD
6113 thumb-*-coff* | thumbel-*-coff*)
6115 out_file=arm/thumb.c
6116 xm_file=arm/xm-thumb.h
6117 md_file=arm/thumb.md
6118 tmake_file=arm/t-thumb
6120 thumb-*-elf* | thumbel-*-elf*)
6122 out_file=arm/thumb.c
6123 xm_file=arm/xm-thumb.h
6124 md_file=arm/thumb.md
6125 tmake_file=arm/t-thumb-elf
6128 tm_file=arm/linux-telf.h
6129 out_file=arm/thumb.c
6130 xm_file=arm/xm-thumb.h
6131 md_file=arm/thumb.md
6132 tmake_file=arm/t-thumb-linux
6135 tm_file=arm/uclinux-telf.h
6136 out_file=arm/thumb.c
6137 md_file=arm/thumb.md
6138 tmake_file=arm/t-thumb-linux
6139 xm_file=arm/xm-thumb.h
6143 out_file=arm/thumb.c
6144 xm_file=arm/xm-thumb.h
6145 md_file=arm/thumb.md
6146 tmake_file=arm/t-thumb
6147 thread_file='vxworks'
6151 out_file=arm/thumb.c
6152 xm_file=arm/xm-thumb.h
6153 md_file=arm/thumb.md
6154 tmake_file=arm/t-pe-thumb
6157 # This hasn't been upgraded to GCC 2.
6164 tm_file="v850/rtems.h"
6165 xm_file="v850/xm-v850.h"
6166 tmake_file="v850/t-v850 t-rtems"
6167 if test x$stabs = xyes
6169 tm_file="${tm_file} dbx.h"
6174 target_cpu_default="TARGET_CPU_generic"
6176 tm_file="v850/v850.h"
6177 xm_file="v850/xm-v850.h"
6178 tmake_file=v850/t-v850
6179 if test x$stabs = xyes
6181 tm_file="${tm_file} dbx.h"
6185 vax-*-bsd*) # vaxen running BSD
6189 vax-*-sysv*) # vaxen running system V
6190 tm_file="${tm_file} vax/vaxv.h"
6195 tm_file="${tm_file} netbsd.h vax/netbsd.h"
6201 tmake_file="${tmake_file} vax/t-openbsd"
6203 vax-*-ultrix*) # vaxen running ultrix
6204 tm_file="${tm_file} vax/ultrix.h"
6208 vax-*-vms*) # vaxen running VMS
6209 xm_file=vax/xm-vms.h
6213 vax-*-*) # vax default entry
6217 xm_file="${xm_file} xm-svr3"
6221 echo "Configuration $machine not supported" 1>&2
6228 ;; # Existing GNU/Linux systems do not use the GNU setup.
6230 # On the GNU system, the setup is just about the same on
6231 # each different CPU. The specific machines that GNU
6232 # supports are matched above and just set $cpu_type.
6233 xm_file="xm-gnu.h ${xm_file}"
6234 tm_file=${cpu_type}/gnu.h
6235 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
6236 # GNU always uses ELF.
6238 # GNU tools are the only tools.
6241 xmake_file=x-linux # These details are the same as Linux.
6242 tmake_file=t-gnu # These are not.
6245 xmake_try_sysv=x-sysv
6246 install_headers_dir=install-headers-cpio
6249 install_headers_dir=install-headers-cpio
6253 # Distinguish i[34567]86
6254 # Also, do not run mips-tfile on MIPS if using gas.
6255 # Process --with-cpu= for PowerPC/rs6000
6256 target_cpu_default2=
6259 target_cpu_default2=1
6262 case $target_alias in
6264 target_cpu_default2=4
6267 target_cpu_default2=2
6271 i686-*-* | i786-*-*)
6272 target_cpu_default2=3
6277 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
6280 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
6283 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
6286 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
6289 target_cpu_default2="MASK_CPU_EV5"
6293 if test x$gas = xyes
6295 if test "$target_cpu_default2" = ""
6297 target_cpu_default2="MASK_GAS"
6299 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
6304 case "x$with_cpu" in
6307 target_cpu_default2="TARGET_CPU_generic"
6310 # Distinguish cores, and major variants
6311 # arm7m doesn't exist, but D & I don't affect code
6312 xarm[23678] | xarm250 | xarm[67][01]0 \
6313 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
6314 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
6315 | xstrongarm | xstrongarm110 | xstrongarm1100)
6316 target_cpu_default2="TARGET_CPU_$with_cpu"
6320 echo "--with-cpu must be passed a value" 1>&2
6325 if test x$pass2done = xyes
6327 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6334 mips*-*-ecoff* | mips*-*-elf*)
6335 if test x$gas = xyes
6337 if test x$gnu_ld = xyes
6339 target_cpu_default2=20
6341 target_cpu_default2=16
6346 if test x$gas = xyes
6348 target_cpu_default2=16
6351 powerpc*-*-* | rs6000-*-*)
6352 case "x$with_cpu" in
6356 xcommon | xpower | xpower2 | xpowerpc | xrios \
6357 | xrios1 | xrios2 | xrsc | xrsc1 \
6358 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
6359 | xec603e | x740 | x750 | x401 \
6360 | x403 | x505 | x801 | x821 | x823 | x860)
6361 target_cpu_default2="\"$with_cpu\""
6365 echo "--with-cpu must be passed a value" 1>&2
6370 if test x$pass2done = xyes
6372 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6379 case ".$with_cpu" in
6381 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
6383 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
6384 target_cpu_default2="TARGET_CPU_$with_cpu"
6387 if test x$pass2done = xyes
6389 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6397 if test "$target_cpu_default2" != ""
6399 if test "$target_cpu_default" != ""
6401 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
6403 target_cpu_default=$target_cpu_default2
6407 # No need for collect2 if we have the GNU linker.
6408 # Actually, there is now; GNU ld doesn't handle the EH info or
6409 # collecting for shared libraries.
6416 # Save data on machine being used to compile GCC in build_xm_file.
6417 # Save data on host machine in vars host_xm_file and host_xmake_file.
6418 if test x$pass1done = x
6420 if test x"$xm_file" = x
6421 then build_xm_file=$cpu_type/xm-$cpu_type.h
6422 else build_xm_file=$xm_file
6424 build_xm_defines=$xm_defines
6425 build_install_headers_dir=$install_headers_dir
6426 build_exeext=$exeext
6429 if test x$pass2done = x
6431 if test x"$xm_file" = x
6432 then host_xm_file=$cpu_type/xm-$cpu_type.h
6433 else host_xm_file=$xm_file
6435 host_xm_defines=$xm_defines
6436 if test x"$xmake_file" = x
6437 then xmake_file=$cpu_type/x-$cpu_type
6439 host_xmake_file="$xmake_file"
6440 host_truncate_target=$truncate_target
6441 host_extra_gcc_objs=$extra_gcc_objs
6442 host_extra_objs=$extra_host_objs
6449 extra_objs="${host_extra_objs} ${extra_objs}"
6451 # Default the target-machine variables that were not explicitly set.
6452 if test x"$tm_file" = x
6453 then tm_file=$cpu_type/$cpu_type.h; fi
6455 if test x$extra_headers = x
6456 then extra_headers=; fi
6458 if test x"$xm_file" = x
6459 then xm_file=$cpu_type/xm-$cpu_type.h; fi
6461 if test x$md_file = x
6462 then md_file=$cpu_type/$cpu_type.md; fi
6464 if test x$out_file = x
6465 then out_file=$cpu_type/$cpu_type.c; fi
6467 if test x"$tmake_file" = x
6468 then tmake_file=$cpu_type/t-$cpu_type
6471 if test x"$dwarf2" = xyes
6472 then tm_file="tm-dwarf2.h $tm_file"
6475 if test x$float_format = x
6476 then float_format=i64
6479 if test $float_format = none
6480 then float_h_file=Makefile.in
6481 else float_h_file=float-$float_format.h
6484 # Handle cpp installation.
6485 if test x$enable_cpp != xno
6487 tmake_file="$tmake_file t-install-cpp"
6490 # Say what files are being used for the output code and MD file.
6491 echo "Using \`$srcdir/config/$out_file' to output insns."
6492 echo "Using \`$srcdir/config/$md_file' as machine description file."
6495 for f in $tm_file; do
6498 if test $count = ax; then
6499 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
6501 echo "Using the following target machine macro files:"
6502 for f in $tm_file; do
6503 echo " $srcdir/config/$f"
6508 for f in $host_xm_file; do
6511 if test $count = ax; then
6512 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
6514 echo "Using the following host machine macro files:"
6515 for f in $host_xm_file; do
6516 echo " $srcdir/config/$f"
6520 if test "$host_xm_file" != "$build_xm_file"; then
6522 for f in $build_xm_file; do
6525 if test $count = ax; then
6526 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
6528 echo "Using the following build machine macro files:"
6529 for f in $build_xm_file; do
6530 echo " $srcdir/config/$f"
6535 if test x$thread_file = x; then
6536 if test x$target_thread_file != x; then
6537 thread_file=$target_thread_file
6539 thread_file='single'
6543 # Set up the header files.
6544 # $links is the list of header files to create.
6545 # $vars is the list of shell variables with file names to include.
6546 # auto-host.h is the file containing items generated by autoconf and is
6547 # the first file included by config.h.
6549 host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
6551 # If host=build, it is correct to have hconfig include auto-host.h
6552 # as well. If host!=build, we are in error and need to do more
6553 # work to find out the build config parameters.
6554 if test x$host = x$build
6556 build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
6558 # We create a subdir, then run autoconf in the subdir.
6559 # To prevent recursion we set host and build for the new
6560 # invocation of configure to the build for this invocation
6567 /*) realsrcdir=${srcdir};;
6568 *) realsrcdir=../${srcdir};;
6570 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
6571 --target=$target --host=$build --build=$build
6573 # We just finished tests for the build machine, so rename
6574 # the file auto-build.h in the gcc directory.
6575 mv auto-host.h ../auto-build.h
6578 build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
6581 xm_file="gansidecl.h ${xm_file}"
6582 tm_file="gansidecl.h ${tm_file}"
6584 vars="host_xm_file tm_file tm_p_file xm_file build_xm_file"
6585 links="config.h tm.h tm_p.h tconfig.h hconfig.h"
6586 defines="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
6589 if test -f config.status; then mv -f config.status config.bak; fi
6592 while test -n "$vars"
6594 set $vars; var=$1; shift; vars=$*
6595 set $links; link=$1; shift; links=$*
6596 set $defines; define=$1; shift; defines=$*
6599 # Make sure the file is created, even if it is empty.
6602 # Define TARGET_CPU_DEFAULT if the system wants one.
6603 # This substitutes for lots of *.h files.
6604 if test "$target_cpu_default" != "" -a $link = tm.h
6606 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
6609 for file in `eval echo '$'$var`; do
6614 echo '#ifdef IN_GCC' >>$link
6617 echo "#include \"$file\"" >>$link
6622 echo '#endif' >>$link
6627 for def in `eval echo '$'$define`; do
6628 echo "#ifndef $def" >>$link
6629 echo "#define $def" >>$link
6630 echo "#endif" >>$link
6634 # Truncate the target if necessary
6635 if test x$host_truncate_target != x; then
6636 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
6639 # Get the version trigger filename from the toplevel
6640 if test "${with_gcc_version_trigger+set}" = set; then
6641 gcc_version_trigger=$with_gcc_version_trigger
6643 gcc_version_trigger=${srcdir}/version.c
6645 gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
6647 # Internationalization
6649 VERSION="$gcc_version"
6650 cat >> confdefs.h <<EOF
6651 #define PACKAGE "$PACKAGE"
6654 cat >> confdefs.h <<EOF
6655 #define VERSION "$VERSION"
6663 # NLS support is still experimental, so disable it by default for now.
6664 # Check whether --enable-nls or --disable-nls was given.
6665 if test "${enable_nls+set}" = set; then
6666 enableval="$enable_nls"
6674 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
6675 echo "configure:6665: checking for strerror in -lcposix" >&5
6676 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
6677 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6678 echo $ac_n "(cached) $ac_c" 1>&6
6680 ac_save_LIBS="$LIBS"
6681 LIBS="-lcposix $LIBS"
6682 cat > conftest.$ac_ext <<EOF
6683 #line 6673 "configure"
6684 #include "confdefs.h"
6685 /* Override any gcc2 internal prototype to avoid an error. */
6686 /* We use char because int might match the return type of a gcc2
6687 builtin and then its argument prototype would still apply. */
6694 if { (eval echo configure:6684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6696 eval "ac_cv_lib_$ac_lib_var=yes"
6698 echo "configure: failed program was:" >&5
6699 cat conftest.$ac_ext >&5
6701 eval "ac_cv_lib_$ac_lib_var=no"
6704 LIBS="$ac_save_LIBS"
6707 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6708 echo "$ac_t""yes" 1>&6
6709 LIBS="$LIBS -lcposix"
6711 echo "$ac_t""no" 1>&6
6716 echo $ac_n "checking for working const""... $ac_c" 1>&6
6717 echo "configure:6707: checking for working const" >&5
6718 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6719 echo $ac_n "(cached) $ac_c" 1>&6
6721 cat > conftest.$ac_ext <<EOF
6722 #line 6712 "configure"
6723 #include "confdefs.h"
6727 /* Ultrix mips cc rejects this. */
6728 typedef int charset[2]; const charset x;
6729 /* SunOS 4.1.1 cc rejects this. */
6730 char const *const *ccp;
6732 /* NEC SVR4.0.2 mips cc rejects this. */
6733 struct point {int x, y;};
6734 static struct point const zero = {0,0};
6735 /* AIX XL C 1.02.0.0 rejects this.
6736 It does not let you subtract one const X* pointer from another in an arm
6737 of an if-expression whose if-part is not a constant expression */
6738 const char *g = "string";
6739 ccp = &g + (g ? g-g : 0);
6740 /* HPUX 7.0 cc rejects these. */
6743 ccp = (char const *const *) p;
6744 { /* SCO 3.2v4 cc rejects this. */
6746 char const *s = 0 ? (char *) 0 : (char const *) 0;
6750 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6752 const int *foo = &x[0];
6755 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6756 typedef const int *iptr;
6760 { /* AIX XL C 1.02.0.0 rejects this saying
6761 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6762 struct s { int j; const int *ap[3]; };
6763 struct s *b; b->j = 5;
6765 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6771 if { (eval echo configure:6761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6775 echo "configure: failed program was:" >&5
6776 cat conftest.$ac_ext >&5
6783 echo "$ac_t""$ac_cv_c_const" 1>&6
6784 if test $ac_cv_c_const = no; then
6785 cat >> confdefs.h <<\EOF
6791 echo $ac_n "checking for inline""... $ac_c" 1>&6
6792 echo "configure:6782: checking for inline" >&5
6793 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6794 echo $ac_n "(cached) $ac_c" 1>&6
6797 for ac_kw in inline __inline__ __inline; do
6798 cat > conftest.$ac_ext <<EOF
6799 #line 6789 "configure"
6800 #include "confdefs.h"
6806 if { (eval echo configure:6796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6808 ac_cv_c_inline=$ac_kw; break
6810 echo "configure: failed program was:" >&5
6811 cat conftest.$ac_ext >&5
6818 echo "$ac_t""$ac_cv_c_inline" 1>&6
6819 case "$ac_cv_c_inline" in
6821 no) cat >> confdefs.h <<\EOF
6825 *) cat >> confdefs.h <<EOF
6826 #define inline $ac_cv_c_inline
6831 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6832 echo "configure:6822: checking for off_t" >&5
6833 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6834 echo $ac_n "(cached) $ac_c" 1>&6
6836 cat > conftest.$ac_ext <<EOF
6837 #line 6827 "configure"
6838 #include "confdefs.h"
6839 #include <sys/types.h>
6845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6846 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6848 ac_cv_type_off_t=yes
6856 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6857 if test $ac_cv_type_off_t = no; then
6858 cat >> confdefs.h <<\EOF
6864 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6865 echo "configure:6855: checking for size_t" >&5
6866 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6867 echo $ac_n "(cached) $ac_c" 1>&6
6869 cat > conftest.$ac_ext <<EOF
6870 #line 6860 "configure"
6871 #include "confdefs.h"
6872 #include <sys/types.h>
6878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6879 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6881 ac_cv_type_size_t=yes
6884 ac_cv_type_size_t=no
6889 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6890 if test $ac_cv_type_size_t = no; then
6891 cat >> confdefs.h <<\EOF
6892 #define size_t unsigned
6897 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6898 # for constant arguments. Useless!
6899 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6900 echo "configure:6890: checking for working alloca.h" >&5
6901 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6902 echo $ac_n "(cached) $ac_c" 1>&6
6904 cat > conftest.$ac_ext <<EOF
6905 #line 6895 "configure"
6906 #include "confdefs.h"
6909 char *p = alloca(2 * sizeof(int));
6912 if { (eval echo configure:6902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6914 ac_cv_header_alloca_h=yes
6916 echo "configure: failed program was:" >&5
6917 cat conftest.$ac_ext >&5
6919 ac_cv_header_alloca_h=no
6924 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6925 if test $ac_cv_header_alloca_h = yes; then
6926 cat >> confdefs.h <<\EOF
6927 #define HAVE_ALLOCA_H 1
6932 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6933 echo "configure:6923: checking for alloca" >&5
6934 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6935 echo $ac_n "(cached) $ac_c" 1>&6
6937 cat > conftest.$ac_ext <<EOF
6938 #line 6928 "configure"
6939 #include "confdefs.h"
6942 # define alloca __builtin_alloca
6945 # include <malloc.h>
6946 # define alloca _alloca
6949 # include <alloca.h>
6954 # ifndef alloca /* predefined by HP cc +Olibcalls */
6963 char *p = (char *) alloca(1);
6966 if { (eval echo configure:6956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6968 ac_cv_func_alloca_works=yes
6970 echo "configure: failed program was:" >&5
6971 cat conftest.$ac_ext >&5
6973 ac_cv_func_alloca_works=no
6978 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6979 if test $ac_cv_func_alloca_works = yes; then
6980 cat >> confdefs.h <<\EOF
6981 #define HAVE_ALLOCA 1
6986 if test $ac_cv_func_alloca_works = no; then
6987 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6988 # that cause trouble. Some versions do not even contain alloca or
6989 # contain a buggy version. If you still want to use their alloca,
6990 # use ar to extract alloca.o from them instead of compiling alloca.c.
6991 ALLOCA=alloca.${ac_objext}
6992 cat >> confdefs.h <<\EOF
6997 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
6998 echo "configure:6988: checking whether alloca needs Cray hooks" >&5
6999 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
7000 echo $ac_n "(cached) $ac_c" 1>&6
7002 cat > conftest.$ac_ext <<EOF
7003 #line 6993 "configure"
7004 #include "confdefs.h"
7005 #if defined(CRAY) && ! defined(CRAY2)
7012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7013 egrep "webecray" >/dev/null 2>&1; then
7024 echo "$ac_t""$ac_cv_os_cray" 1>&6
7025 if test $ac_cv_os_cray = yes; then
7026 for ac_func in _getb67 GETB67 getb67; do
7027 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7028 echo "configure:7018: checking for $ac_func" >&5
7029 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7030 echo $ac_n "(cached) $ac_c" 1>&6
7032 cat > conftest.$ac_ext <<EOF
7033 #line 7023 "configure"
7034 #include "confdefs.h"
7035 /* System header to define __stub macros and hopefully few prototypes,
7036 which can conflict with char $ac_func(); below. */
7038 /* Override any gcc2 internal prototype to avoid an error. */
7039 /* We use char because int might match the return type of a gcc2
7040 builtin and then its argument prototype would still apply. */
7045 /* The GNU C library defines this for functions which it implements
7046 to always fail with ENOSYS. Some functions are actually named
7047 something starting with __ and the normal name is an alias. */
7048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7056 if { (eval echo configure:7046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7058 eval "ac_cv_func_$ac_func=yes"
7060 echo "configure: failed program was:" >&5
7061 cat conftest.$ac_ext >&5
7063 eval "ac_cv_func_$ac_func=no"
7068 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7069 echo "$ac_t""yes" 1>&6
7070 cat >> confdefs.h <<EOF
7071 #define CRAY_STACKSEG_END $ac_func
7076 echo "$ac_t""no" 1>&6
7082 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7083 echo "configure:7073: checking stack direction for C alloca" >&5
7084 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
7085 echo $ac_n "(cached) $ac_c" 1>&6
7087 if test "$cross_compiling" = yes; then
7088 ac_cv_c_stack_direction=0
7090 cat > conftest.$ac_ext <<EOF
7091 #line 7081 "configure"
7092 #include "confdefs.h"
7093 find_stack_direction ()
7095 static char *addr = 0;
7100 return find_stack_direction ();
7103 return (&dummy > addr) ? 1 : -1;
7107 exit (find_stack_direction() < 0);
7110 if { (eval echo configure:7100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7112 ac_cv_c_stack_direction=1
7114 echo "configure: failed program was:" >&5
7115 cat conftest.$ac_ext >&5
7117 ac_cv_c_stack_direction=-1
7124 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
7125 cat >> confdefs.h <<EOF
7126 #define STACK_DIRECTION $ac_cv_c_stack_direction
7132 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7133 unistd.h sys/param.h
7135 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7136 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7137 echo "configure:7127: checking for $ac_hdr" >&5
7138 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7139 echo $ac_n "(cached) $ac_c" 1>&6
7141 cat > conftest.$ac_ext <<EOF
7142 #line 7132 "configure"
7143 #include "confdefs.h"
7146 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7147 { (eval echo configure:7137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7148 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7149 if test -z "$ac_err"; then
7151 eval "ac_cv_header_$ac_safe=yes"
7154 echo "configure: failed program was:" >&5
7155 cat conftest.$ac_ext >&5
7157 eval "ac_cv_header_$ac_safe=no"
7161 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7162 echo "$ac_t""yes" 1>&6
7163 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7164 cat >> confdefs.h <<EOF
7165 #define $ac_tr_hdr 1
7169 echo "$ac_t""no" 1>&6
7173 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7174 strdup __argz_count __argz_stringify __argz_next
7176 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7177 echo "configure:7167: checking for $ac_func" >&5
7178 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7179 echo $ac_n "(cached) $ac_c" 1>&6
7181 cat > conftest.$ac_ext <<EOF
7182 #line 7172 "configure"
7183 #include "confdefs.h"
7184 /* System header to define __stub macros and hopefully few prototypes,
7185 which can conflict with char $ac_func(); below. */
7187 /* Override any gcc2 internal prototype to avoid an error. */
7188 /* We use char because int might match the return type of a gcc2
7189 builtin and then its argument prototype would still apply. */
7194 /* The GNU C library defines this for functions which it implements
7195 to always fail with ENOSYS. Some functions are actually named
7196 something starting with __ and the normal name is an alias. */
7197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7205 if { (eval echo configure:7195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7207 eval "ac_cv_func_$ac_func=yes"
7209 echo "configure: failed program was:" >&5
7210 cat conftest.$ac_ext >&5
7212 eval "ac_cv_func_$ac_func=no"
7217 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7218 echo "$ac_t""yes" 1>&6
7219 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7220 cat >> confdefs.h <<EOF
7221 #define $ac_tr_func 1
7225 echo "$ac_t""no" 1>&6
7230 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7231 for ac_func in stpcpy
7233 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7234 echo "configure:7224: checking for $ac_func" >&5
7235 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7236 echo $ac_n "(cached) $ac_c" 1>&6
7238 cat > conftest.$ac_ext <<EOF
7239 #line 7229 "configure"
7240 #include "confdefs.h"
7241 /* System header to define __stub macros and hopefully few prototypes,
7242 which can conflict with char $ac_func(); below. */
7244 /* Override any gcc2 internal prototype to avoid an error. */
7245 /* We use char because int might match the return type of a gcc2
7246 builtin and then its argument prototype would still apply. */
7251 /* The GNU C library defines this for functions which it implements
7252 to always fail with ENOSYS. Some functions are actually named
7253 something starting with __ and the normal name is an alias. */
7254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7262 if { (eval echo configure:7252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7264 eval "ac_cv_func_$ac_func=yes"
7266 echo "configure: failed program was:" >&5
7267 cat conftest.$ac_ext >&5
7269 eval "ac_cv_func_$ac_func=no"
7274 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7275 echo "$ac_t""yes" 1>&6
7276 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7277 cat >> confdefs.h <<EOF
7278 #define $ac_tr_func 1
7282 echo "$ac_t""no" 1>&6
7287 if test "${ac_cv_func_stpcpy}" = "yes"; then
7288 cat >> confdefs.h <<\EOF
7289 #define HAVE_STPCPY 1
7294 if test $ac_cv_header_locale_h = yes; then
7295 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
7296 echo "configure:7286: checking for LC_MESSAGES" >&5
7297 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
7298 echo $ac_n "(cached) $ac_c" 1>&6
7300 cat > conftest.$ac_ext <<EOF
7301 #line 7291 "configure"
7302 #include "confdefs.h"
7308 if { (eval echo configure:7298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7310 am_cv_val_LC_MESSAGES=yes
7312 echo "configure: failed program was:" >&5
7313 cat conftest.$ac_ext >&5
7315 am_cv_val_LC_MESSAGES=no
7320 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7321 if test $am_cv_val_LC_MESSAGES = yes; then
7322 cat >> confdefs.h <<\EOF
7323 #define HAVE_LC_MESSAGES 1
7328 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7329 echo "configure:7319: checking whether NLS is requested" >&5
7330 # Check whether --enable-nls or --disable-nls was given.
7331 if test "${enable_nls+set}" = set; then
7332 enableval="$enable_nls"
7338 echo "$ac_t""$USE_NLS" 1>&6
7341 USE_INCLUDED_LIBINTL=no
7343 if test "$USE_NLS" = "yes"; then
7344 cat >> confdefs.h <<\EOF
7345 #define ENABLE_NLS 1
7348 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7349 echo "configure:7339: checking whether included gettext is requested" >&5
7350 # Check whether --with-included-gettext or --without-included-gettext was given.
7351 if test "${with_included_gettext+set}" = set; then
7352 withval="$with_included_gettext"
7353 nls_cv_force_use_gnu_gettext=$withval
7355 nls_cv_force_use_gnu_gettext=no
7358 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7360 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7361 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7363 nls_cv_header_libgt=
7366 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7367 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7368 echo "configure:7358: checking for libintl.h" >&5
7369 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7370 echo $ac_n "(cached) $ac_c" 1>&6
7372 cat > conftest.$ac_ext <<EOF
7373 #line 7363 "configure"
7374 #include "confdefs.h"
7375 #include <libintl.h>
7377 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7378 { (eval echo configure:7368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7379 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7380 if test -z "$ac_err"; then
7382 eval "ac_cv_header_$ac_safe=yes"
7385 echo "configure: failed program was:" >&5
7386 cat conftest.$ac_ext >&5
7388 eval "ac_cv_header_$ac_safe=no"
7392 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7393 echo "$ac_t""yes" 1>&6
7394 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7395 echo "configure:7385: checking for gettext in libc" >&5
7396 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7397 echo $ac_n "(cached) $ac_c" 1>&6
7399 cat > conftest.$ac_ext <<EOF
7400 #line 7390 "configure"
7401 #include "confdefs.h"
7402 #include <libintl.h>
7404 return (int) gettext ("")
7407 if { (eval echo configure:7397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7409 gt_cv_func_gettext_libc=yes
7411 echo "configure: failed program was:" >&5
7412 cat conftest.$ac_ext >&5
7414 gt_cv_func_gettext_libc=no
7419 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7421 if test "$gt_cv_func_gettext_libc" != "yes"; then
7422 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7423 echo "configure:7413: checking for bindtextdomain in -lintl" >&5
7424 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7425 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7426 echo $ac_n "(cached) $ac_c" 1>&6
7428 ac_save_LIBS="$LIBS"
7430 cat > conftest.$ac_ext <<EOF
7431 #line 7421 "configure"
7432 #include "confdefs.h"
7433 /* Override any gcc2 internal prototype to avoid an error. */
7434 /* We use char because int might match the return type of a gcc2
7435 builtin and then its argument prototype would still apply. */
7436 char bindtextdomain();
7442 if { (eval echo configure:7432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7444 eval "ac_cv_lib_$ac_lib_var=yes"
7446 echo "configure: failed program was:" >&5
7447 cat conftest.$ac_ext >&5
7449 eval "ac_cv_lib_$ac_lib_var=no"
7452 LIBS="$ac_save_LIBS"
7455 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7456 echo "$ac_t""yes" 1>&6
7457 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7458 echo "configure:7448: checking for gettext in libintl" >&5
7459 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7460 echo $ac_n "(cached) $ac_c" 1>&6
7462 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7463 echo "configure:7453: checking for gettext in -lintl" >&5
7464 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7465 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7466 echo $ac_n "(cached) $ac_c" 1>&6
7468 ac_save_LIBS="$LIBS"
7470 cat > conftest.$ac_ext <<EOF
7471 #line 7461 "configure"
7472 #include "confdefs.h"
7473 /* Override any gcc2 internal prototype to avoid an error. */
7474 /* We use char because int might match the return type of a gcc2
7475 builtin and then its argument prototype would still apply. */
7482 if { (eval echo configure:7472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7484 eval "ac_cv_lib_$ac_lib_var=yes"
7486 echo "configure: failed program was:" >&5
7487 cat conftest.$ac_ext >&5
7489 eval "ac_cv_lib_$ac_lib_var=no"
7492 LIBS="$ac_save_LIBS"
7495 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7496 echo "$ac_t""yes" 1>&6
7497 gt_cv_func_gettext_libintl=yes
7499 echo "$ac_t""no" 1>&6
7500 gt_cv_func_gettext_libintl=no
7505 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7507 echo "$ac_t""no" 1>&6
7512 if test "$gt_cv_func_gettext_libc" = "yes" \
7513 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7514 cat >> confdefs.h <<\EOF
7515 #define HAVE_GETTEXT 1
7518 # Extract the first word of "msgfmt", so it can be a program name with args.
7519 set dummy msgfmt; ac_word=$2
7520 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7521 echo "configure:7511: checking for $ac_word" >&5
7522 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7523 echo $ac_n "(cached) $ac_c" 1>&6
7527 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7530 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7531 for ac_dir in $PATH; do
7532 test -z "$ac_dir" && ac_dir=.
7533 if test -f $ac_dir/$ac_word; then
7534 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7535 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7541 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7545 MSGFMT="$ac_cv_path_MSGFMT"
7546 if test -n "$MSGFMT"; then
7547 echo "$ac_t""$MSGFMT" 1>&6
7549 echo "$ac_t""no" 1>&6
7551 if test "$MSGFMT" != "no"; then
7552 for ac_func in dcgettext
7554 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7555 echo "configure:7545: checking for $ac_func" >&5
7556 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7557 echo $ac_n "(cached) $ac_c" 1>&6
7559 cat > conftest.$ac_ext <<EOF
7560 #line 7550 "configure"
7561 #include "confdefs.h"
7562 /* System header to define __stub macros and hopefully few prototypes,
7563 which can conflict with char $ac_func(); below. */
7565 /* Override any gcc2 internal prototype to avoid an error. */
7566 /* We use char because int might match the return type of a gcc2
7567 builtin and then its argument prototype would still apply. */
7572 /* The GNU C library defines this for functions which it implements
7573 to always fail with ENOSYS. Some functions are actually named
7574 something starting with __ and the normal name is an alias. */
7575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7583 if { (eval echo configure:7573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7585 eval "ac_cv_func_$ac_func=yes"
7587 echo "configure: failed program was:" >&5
7588 cat conftest.$ac_ext >&5
7590 eval "ac_cv_func_$ac_func=no"
7595 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7596 echo "$ac_t""yes" 1>&6
7597 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7598 cat >> confdefs.h <<EOF
7599 #define $ac_tr_func 1
7603 echo "$ac_t""no" 1>&6
7607 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7608 set dummy gmsgfmt; ac_word=$2
7609 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7610 echo "configure:7600: checking for $ac_word" >&5
7611 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7612 echo $ac_n "(cached) $ac_c" 1>&6
7616 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7619 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7622 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7624 for ac_dir in $ac_dummy; do
7625 test -z "$ac_dir" && ac_dir=.
7626 if test -f $ac_dir/$ac_word; then
7627 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7632 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7636 GMSGFMT="$ac_cv_path_GMSGFMT"
7637 if test -n "$GMSGFMT"; then
7638 echo "$ac_t""$GMSGFMT" 1>&6
7640 echo "$ac_t""no" 1>&6
7643 # Extract the first word of "xgettext", so it can be a program name with args.
7644 set dummy xgettext; ac_word=$2
7645 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7646 echo "configure:7636: checking for $ac_word" >&5
7647 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7648 echo $ac_n "(cached) $ac_c" 1>&6
7652 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7655 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7656 for ac_dir in $PATH; do
7657 test -z "$ac_dir" && ac_dir=.
7658 if test -f $ac_dir/$ac_word; then
7659 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7660 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7666 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7670 XGETTEXT="$ac_cv_path_XGETTEXT"
7671 if test -n "$XGETTEXT"; then
7672 echo "$ac_t""$XGETTEXT" 1>&6
7674 echo "$ac_t""no" 1>&6
7677 cat > conftest.$ac_ext <<EOF
7678 #line 7668 "configure"
7679 #include "confdefs.h"
7682 extern int _nl_msg_cat_cntr;
7683 return _nl_msg_cat_cntr
7686 if { (eval echo configure:7676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7691 echo "configure: failed program was:" >&5
7692 cat conftest.$ac_ext >&5
7703 echo "$ac_t""no" 1>&6
7707 if test "$CATOBJEXT" = "NONE"; then
7708 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
7709 echo "configure:7699: checking whether catgets can be used" >&5
7710 # Check whether --with-catgets or --without-catgets was given.
7711 if test "${with_catgets+set}" = set; then
7712 withval="$with_catgets"
7713 nls_cv_use_catgets=$withval
7715 nls_cv_use_catgets=no
7718 echo "$ac_t""$nls_cv_use_catgets" 1>&6
7720 if test "$nls_cv_use_catgets" = "yes"; then
7721 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
7722 echo "configure:7712: checking for main in -li" >&5
7723 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
7724 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7725 echo $ac_n "(cached) $ac_c" 1>&6
7727 ac_save_LIBS="$LIBS"
7729 cat > conftest.$ac_ext <<EOF
7730 #line 7720 "configure"
7731 #include "confdefs.h"
7737 if { (eval echo configure:7727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7739 eval "ac_cv_lib_$ac_lib_var=yes"
7741 echo "configure: failed program was:" >&5
7742 cat conftest.$ac_ext >&5
7744 eval "ac_cv_lib_$ac_lib_var=no"
7747 LIBS="$ac_save_LIBS"
7750 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7751 echo "$ac_t""yes" 1>&6
7752 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7753 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7754 cat >> confdefs.h <<EOF
7755 #define $ac_tr_lib 1
7761 echo "$ac_t""no" 1>&6
7764 echo $ac_n "checking for catgets""... $ac_c" 1>&6
7765 echo "configure:7755: checking for catgets" >&5
7766 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
7767 echo $ac_n "(cached) $ac_c" 1>&6
7769 cat > conftest.$ac_ext <<EOF
7770 #line 7760 "configure"
7771 #include "confdefs.h"
7772 /* System header to define __stub macros and hopefully few prototypes,
7773 which can conflict with char catgets(); below. */
7775 /* Override any gcc2 internal prototype to avoid an error. */
7776 /* We use char because int might match the return type of a gcc2
7777 builtin and then its argument prototype would still apply. */
7782 /* The GNU C library defines this for functions which it implements
7783 to always fail with ENOSYS. Some functions are actually named
7784 something starting with __ and the normal name is an alias. */
7785 #if defined (__stub_catgets) || defined (__stub___catgets)
7793 if { (eval echo configure:7783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7795 eval "ac_cv_func_catgets=yes"
7797 echo "configure: failed program was:" >&5
7798 cat conftest.$ac_ext >&5
7800 eval "ac_cv_func_catgets=no"
7805 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
7806 echo "$ac_t""yes" 1>&6
7807 cat >> confdefs.h <<\EOF
7808 #define HAVE_CATGETS 1
7811 INTLOBJS="\$(CATOBJS)"
7812 # Extract the first word of "gencat", so it can be a program name with args.
7813 set dummy gencat; ac_word=$2
7814 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7815 echo "configure:7805: checking for $ac_word" >&5
7816 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
7817 echo $ac_n "(cached) $ac_c" 1>&6
7821 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
7824 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
7827 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7829 for ac_dir in $ac_dummy; do
7830 test -z "$ac_dir" && ac_dir=.
7831 if test -f $ac_dir/$ac_word; then
7832 ac_cv_path_GENCAT="$ac_dir/$ac_word"
7837 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
7841 GENCAT="$ac_cv_path_GENCAT"
7842 if test -n "$GENCAT"; then
7843 echo "$ac_t""$GENCAT" 1>&6
7845 echo "$ac_t""no" 1>&6
7847 if test "$GENCAT" != "no"; then
7848 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7849 set dummy gmsgfmt; ac_word=$2
7850 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7851 echo "configure:7841: checking for $ac_word" >&5
7852 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7853 echo $ac_n "(cached) $ac_c" 1>&6
7857 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7860 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7863 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7865 for ac_dir in $ac_dummy; do
7866 test -z "$ac_dir" && ac_dir=.
7867 if test -f $ac_dir/$ac_word; then
7868 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7873 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
7877 GMSGFMT="$ac_cv_path_GMSGFMT"
7878 if test -n "$GMSGFMT"; then
7879 echo "$ac_t""$GMSGFMT" 1>&6
7881 echo "$ac_t""no" 1>&6
7884 if test "$GMSGFMT" = "no"; then
7885 # Extract the first word of "msgfmt", so it can be a program name with args.
7886 set dummy msgfmt; ac_word=$2
7887 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7888 echo "configure:7878: checking for $ac_word" >&5
7889 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7890 echo $ac_n "(cached) $ac_c" 1>&6
7894 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7897 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7898 for ac_dir in $PATH; do
7899 test -z "$ac_dir" && ac_dir=.
7900 if test -f $ac_dir/$ac_word; then
7901 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7902 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7908 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
7912 GMSGFMT="$ac_cv_path_GMSGFMT"
7913 if test -n "$GMSGFMT"; then
7914 echo "$ac_t""$GMSGFMT" 1>&6
7916 echo "$ac_t""no" 1>&6
7920 # Extract the first word of "xgettext", so it can be a program name with args.
7921 set dummy xgettext; ac_word=$2
7922 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7923 echo "configure:7913: checking for $ac_word" >&5
7924 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7925 echo $ac_n "(cached) $ac_c" 1>&6
7929 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7932 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7933 for ac_dir in $PATH; do
7934 test -z "$ac_dir" && ac_dir=.
7935 if test -f $ac_dir/$ac_word; then
7936 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7937 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7943 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7947 XGETTEXT="$ac_cv_path_XGETTEXT"
7948 if test -n "$XGETTEXT"; then
7949 echo "$ac_t""$XGETTEXT" 1>&6
7951 echo "$ac_t""no" 1>&6
7954 USE_INCLUDED_LIBINTL=yes
7958 INTLDEPS='$(top_builddir)/intl/libintl.a'
7960 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7961 nls_cv_header_intl=intl/libintl.h
7962 nls_cv_header_libgt=intl/libgettext.h
7965 echo "$ac_t""no" 1>&6
7971 if test "$CATOBJEXT" = "NONE"; then
7972 nls_cv_use_gnu_gettext=yes
7976 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7977 INTLOBJS="\$(GETTOBJS)"
7978 # Extract the first word of "msgfmt", so it can be a program name with args.
7979 set dummy msgfmt; ac_word=$2
7980 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7981 echo "configure:7971: checking for $ac_word" >&5
7982 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7983 echo $ac_n "(cached) $ac_c" 1>&6
7987 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7990 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7991 for ac_dir in $PATH; do
7992 test -z "$ac_dir" && ac_dir=.
7993 if test -f $ac_dir/$ac_word; then
7994 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7995 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8001 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
8005 MSGFMT="$ac_cv_path_MSGFMT"
8006 if test -n "$MSGFMT"; then
8007 echo "$ac_t""$MSGFMT" 1>&6
8009 echo "$ac_t""no" 1>&6
8012 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8013 set dummy gmsgfmt; ac_word=$2
8014 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8015 echo "configure:8005: checking for $ac_word" >&5
8016 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8017 echo $ac_n "(cached) $ac_c" 1>&6
8021 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8024 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
8027 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8029 for ac_dir in $ac_dummy; do
8030 test -z "$ac_dir" && ac_dir=.
8031 if test -f $ac_dir/$ac_word; then
8032 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
8037 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8041 GMSGFMT="$ac_cv_path_GMSGFMT"
8042 if test -n "$GMSGFMT"; then
8043 echo "$ac_t""$GMSGFMT" 1>&6
8045 echo "$ac_t""no" 1>&6
8048 # Extract the first word of "xgettext", so it can be a program name with args.
8049 set dummy xgettext; ac_word=$2
8050 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8051 echo "configure:8041: checking for $ac_word" >&5
8052 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8053 echo $ac_n "(cached) $ac_c" 1>&6
8057 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8060 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8061 for ac_dir in $PATH; do
8062 test -z "$ac_dir" && ac_dir=.
8063 if test -f $ac_dir/$ac_word; then
8064 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8065 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8071 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8075 XGETTEXT="$ac_cv_path_XGETTEXT"
8076 if test -n "$XGETTEXT"; then
8077 echo "$ac_t""$XGETTEXT" 1>&6
8079 echo "$ac_t""no" 1>&6
8083 USE_INCLUDED_LIBINTL=yes
8087 INTLDEPS='$(top_builddir)/intl/libintl.a'
8089 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8090 nls_cv_header_intl=intl/libintl.h
8091 nls_cv_header_libgt=intl/libgettext.h
8094 if test "$XGETTEXT" != ":"; then
8095 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8098 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
8103 # We need to process the po/ directory.
8107 nls_cv_header_intl=intl/libintl.h
8108 nls_cv_header_libgt=intl/libgettext.h
8114 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8115 # because some of the sources are only built for this goal.
8116 if test "$PACKAGE" = gettext; then
8118 USE_INCLUDED_LIBINTL=yes
8121 for lang in $ALL_LINGUAS; do
8122 GMOFILES="$GMOFILES $lang.gmo"
8123 POFILES="$POFILES $lang.po"
8139 if test "x$CATOBJEXT" != "x"; then
8140 if test "x$ALL_LINGUAS" = "x"; then
8143 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
8144 echo "configure:8134: checking for catalogs to be installed" >&5
8146 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8147 case "$ALL_LINGUAS" in
8148 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8151 LINGUAS=$NEW_LINGUAS
8152 echo "$ac_t""$LINGUAS" 1>&6
8155 if test -n "$LINGUAS"; then
8156 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8160 if test $ac_cv_header_locale_h = yes; then
8161 INCLUDE_LOCALE_H="#include <locale.h>"
8164 /* The system does not provide the header <locale.h>. Take care yourself. */"
8168 test -d intl || mkdir intl
8169 if test "$CATOBJEXT" = ".cat"; then
8170 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
8171 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
8172 echo "configure:8162: checking for linux/version.h" >&5
8173 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8174 echo $ac_n "(cached) $ac_c" 1>&6
8176 cat > conftest.$ac_ext <<EOF
8177 #line 8167 "configure"
8178 #include "confdefs.h"
8179 #include <linux/version.h>
8181 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8182 { (eval echo configure:8172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8183 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8184 if test -z "$ac_err"; then
8186 eval "ac_cv_header_$ac_safe=yes"
8189 echo "configure: failed program was:" >&5
8190 cat conftest.$ac_ext >&5
8192 eval "ac_cv_header_$ac_safe=no"
8196 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8197 echo "$ac_t""yes" 1>&6
8200 echo "$ac_t""no" 1>&6
8205 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
8207 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8208 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
8210 if test "$PACKAGE" = "gettext"; then
8221 if test -n "$ac_aux_dir"; then
8222 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
8224 if test -z "$MKINSTALLDIRS"; then
8225 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8232 test -d po || mkdir po
8233 if test "x$srcdir" != "x."; then
8234 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8235 posrcprefix="$srcdir/"
8237 posrcprefix="../$srcdir/"
8243 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8244 < $srcdir/po/POTFILES.in > po/POTFILES
8246 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
8248 # Windows32 Registry support for specifying GCC installation paths.
8249 # Check whether --enable-win32-registry or --disable-win32-registry was given.
8250 if test "${enable_win32_registry+set}" = set; then
8251 enableval="$enable_win32_registry"
8256 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
8257 echo "configure:8247: checking whether windows registry support is requested" >&5
8258 if test x$enable_win32_registry != xno; then
8259 cat >> confdefs.h <<\EOF
8260 #define ENABLE_WIN32_REGISTRY 1
8263 echo "$ac_t""yes" 1>&6
8265 echo "$ac_t""no" 1>&6
8268 # Check if user specified a different registry key.
8269 case x${enable_win32_registry} in
8272 gcc_cv_win32_registry_key="$VERSION"
8275 # no registry lookup.
8276 gcc_cv_win32_registry_key=''
8279 # user-specified key.
8280 gcc_cv_win32_registry_key="$enable_win32_registry"
8284 if test x$enable_win32_registry != xno; then
8285 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
8286 echo "configure:8276: checking registry key on windows hosts" >&5
8287 cat >> confdefs.h <<EOF
8288 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
8291 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
8294 # Get an absolute path to the GCC top-level source directory
8300 # Conditionalize the makefile for this host machine.
8301 # Make-host contains the concatenation of all host makefile fragments
8302 # [there can be more than one]. This file is built by configure.frag.
8303 host_overrides=Make-host
8304 dep_host_xmake_file=
8305 for f in .. ${host_xmake_file}
8307 if test -f ${srcdir}/config/$f
8309 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
8313 # Conditionalize the makefile for this target machine.
8314 # Make-target contains the concatenation of all host makefile fragments
8315 # [there can be more than one]. This file is built by configure.frag.
8316 target_overrides=Make-target
8318 for f in .. ${tmake_file}
8320 if test -f ${srcdir}/config/$f
8322 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
8326 # If the host doesn't support symlinks, modify CC in
8327 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
8328 # Otherwise, we can use "CC=$(CC)".
8330 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
8332 cc_set_by_configure="\$(CC)"
8333 quoted_cc_set_by_configure="\$(CC)"
8334 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
8337 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
8339 symbolic_link="cp -p"
8343 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
8344 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
8345 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
8349 out_object_file=`basename $out_file .c`.o
8352 for f in $tm_file; do
8355 tm_file_list="${tm_file_list} $f" ;;
8356 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
8361 for f in $host_xm_file; do
8363 auto-host.h | gansidecl.h | hwint.h )
8364 host_xm_file_list="${host_xm_file_list} $f" ;;
8365 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
8370 for f in $build_xm_file; do
8372 auto-build.h | auto-host.h | gansidecl.h | hwint.h )
8373 build_xm_file_list="${build_xm_file_list} $f" ;;
8374 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8378 # Define macro CROSS_COMPILE in compilation
8379 # if this is a cross-compiler.
8380 # Also use all.cross instead of all.internal
8381 # and add cross-make to Makefile.
8382 cross_overrides="/dev/null"
8383 if test x$host != x$target
8385 cross_defines="CROSS=-DCROSS_COMPILE"
8386 cross_overrides="${topdir}/cross-make"
8389 # When building gcc with a cross-compiler, we need to fix a few things.
8390 # This must come after cross-make as we want all.build to override
8392 build_overrides="/dev/null"
8393 if test x$build != x$host
8395 build_overrides="${topdir}/build-make"
8398 # Expand extra_headers to include complete path.
8399 # This substitutes for lots of t-* files.
8401 if test "x$extra_headers" = x
8404 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8405 for file in $extra_headers;
8407 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8411 if test x$use_collect2 = xno; then
8415 # Add a definition of USE_COLLECT2 if system wants one.
8416 # Also tell toplev.c what to do.
8417 # This substitutes for lots of t-* files.
8418 if test x$use_collect2 = x
8423 will_use_collect2="collect2"
8424 maybe_use_collect2="-DUSE_COLLECT2"
8428 # Set MD_DEPS if the real md file is in md.pre-cpp.
8429 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
8430 # for line oriented comments, so we must always use a GNU cpp. If
8431 # building gcc with a cross compiler, use the cross compiler just
8432 # built. Otherwise, we can use the cpp just built.
8434 if test "x$md_cppflags" = x
8436 md_file_sub=$srcdir/config/$md_file
8441 # If we have gas in the build tree, make a link to it.
8442 if test -f ../gas/Makefile; then
8443 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
8446 # If we have nm in the build tree, make a link to it.
8447 if test -f ../binutils/Makefile; then
8448 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
8451 # If we have ld in the build tree, make a link to it.
8452 if test -f ../ld/Makefile; then
8453 # if test x$use_collect2 = x; then
8454 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8456 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
8460 # Figure out what assembler alignment features are present.
8461 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
8462 echo "configure:8452: checking assembler alignment features" >&5
8464 gcc_cv_as_alignment_features=
8465 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8466 if test -x "$DEFAULT_ASSEMBLER"; then
8467 gcc_cv_as="$DEFAULT_ASSEMBLER"
8468 elif test -x "$AS"; then
8470 elif test -x as$host_exeext; then
8471 # Build using assembler in the current directory.
8472 gcc_cv_as=./as$host_exeext
8473 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
8474 # Single tree build which includes gas.
8475 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
8477 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
8478 if test x$gcc_cv_gas_version != x; then
8482 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
8483 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
8484 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
8485 # Gas version 2.6 and later support for .balign and .p2align.
8486 # bytes to skip when using .p2align.
8487 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
8488 gcc_cv_as_alignment_features=".balign and .p2align"
8489 cat >> confdefs.h <<\EOF
8490 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8494 # Gas version 2.8 and later support specifying the maximum
8495 # bytes to skip when using .p2align.
8496 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
8497 gcc_cv_as_alignment_features=".p2align including maximum skip"
8498 cat >> confdefs.h <<\EOF
8499 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8504 elif test x$host = x$target; then
8506 # Search the same directories that the installed compiler will
8507 # search. Else we may find the wrong assembler and lose. If we
8508 # do not find a suitable assembler binary, then try the user's
8511 # Also note we have to check MD_EXEC_PREFIX before checking the
8512 # user's path. Unfortunately, there is no good way to get at the
8513 # value of MD_EXEC_PREFIX here. So we do a brute force search
8514 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
8515 # to be fixed as part of the make/configure rewrite too.
8517 if test "x$exec_prefix" = xNONE; then
8518 if test "x$prefix" = xNONE; then
8519 test_prefix=/usr/local
8524 test_prefix=$exec_prefix
8527 # If the loop below does not find an assembler, then use whatever
8528 # one we can find in the users's path.
8532 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
8533 $test_prefix/lib/gcc-lib/$target \
8534 /usr/lib/gcc/$target/$gcc_version \
8535 /usr/lib/gcc/$target \
8536 $test_prefix/$target/bin/$target/$gcc_version \
8537 $test_prefix/$target/bin \
8542 /bsd43/usr/lib/cmplrs/cc \
8543 /usr/cross64/usr/bin \
8544 /usr/lib/cmplrs/cc \
8545 /sysv/usr/lib/cmplrs/cc \
8546 /svr4/usr/lib/cmplrs/cc \
8549 for dir in $test_dirs; do
8550 if test -f $dir/as$host_exeext; then
8551 gcc_cv_as=$dir/as$host_exeext
8556 if test x$gcc_cv_as != x; then
8557 # Check if we have .balign and .p2align
8558 echo ".balign 4" > conftest.s
8559 echo ".p2align 2" >> conftest.s
8560 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8561 gcc_cv_as_alignment_features=".balign and .p2align"
8562 cat >> confdefs.h <<\EOF
8563 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8567 rm -f conftest.s conftest.o
8568 # Check if specifying the maximum bytes to skip when
8569 # using .p2align is supported.
8570 echo ".p2align 4,,7" > conftest.s
8571 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8572 gcc_cv_as_alignment_features=".p2align including maximum skip"
8573 cat >> confdefs.h <<\EOF
8574 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8578 rm -f conftest.s conftest.o
8580 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
8582 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
8583 echo "configure:8573: checking assembler subsection support" >&5
8584 gcc_cv_as_subsections=
8585 if test x$gcc_cv_as != x; then
8586 # Check if we have .subsection
8587 echo ".subsection 1" > conftest.s
8588 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8589 gcc_cv_as_subsections=".subsection"
8590 if test -x nm$host_exeext; then
8591 gcc_cv_nm=./nm$host_exeext
8592 elif test x$host = x$target; then
8594 gcc_cv_nm=nm$host_exeext
8596 if test x$gcc_cv_nm != x; then
8597 cat > conftest.s <<EOF
8598 conftest_label1: .word 0
8600 conftest_label2: .word 0
8603 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8604 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
8605 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
8606 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
8609 gcc_cv_as_subsections="working .subsection -1"
8610 cat >> confdefs.h <<\EOF
8611 #define HAVE_GAS_SUBSECTION_ORDERING 1
8618 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8620 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
8624 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
8625 echo "configure:8615: checking assembler .register pseudo-op support" >&5
8626 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
8627 echo $ac_n "(cached) $ac_c" 1>&6
8630 gcc_cv_as_register_pseudo_op=unknown
8631 if test x$gcc_cv_as != x; then
8632 # Check if we have .register
8633 echo ".register %g2, #scratch" > conftest.s
8634 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8635 gcc_cv_as_register_pseudo_op=yes
8637 gcc_cv_as_register_pseudo_op=no
8639 rm -f conftest.s conftest.o
8644 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
8645 if test "x$gcc_cv_as_register_pseudo_op" = xyes; then
8646 cat >> confdefs.h <<\EOF
8647 #define HAVE_AS_REGISTER_PSEUDO_OP 1
8654 echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
8655 echo "configure:8645: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
8656 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
8657 echo $ac_n "(cached) $ac_c" 1>&6
8660 if test -n "$gcc_cv_as"; then
8661 echo ".xword foo" > conftest.s
8662 gcc_cv_as_flags64=no
8663 for flag in "-xarch=v9" "-64 -Av9"; do
8664 if $gcc_cv_as $flag -o conftest.o conftest.s \
8665 > /dev/null 2>&1; then
8666 gcc_cv_as_flags64=$flag
8670 rm -f conftest.s conftest.o
8672 if test "$gas" = yes; then
8673 gcc_cv_as_flags64="-64 -Av9"
8675 gcc_cv_as_flags64="-xarch=v9"
8681 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
8682 if test "x$gcc_cv_as_flags64" = xno; then
8684 tmake_file=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
8685 dep_tmake_file=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
8688 cat >> confdefs.h <<EOF
8689 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
8694 *) gcc_cv_as_flags64=${gcc_cv_as_flags64-no}
8698 if test "x$gcc_cv_as_flags64" != xno; then
8699 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
8700 echo "configure:8690: checking for assembler offsetable %lo() support" >&5
8701 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
8702 echo $ac_n "(cached) $ac_c" 1>&6
8705 gcc_cv_as_offsetable_lo10=unknown
8706 if test "x$gcc_cv_as" != x; then
8707 # Check if assembler has offsetable %lo()
8708 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
8709 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
8710 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
8712 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
8713 > /dev/null 2>&1; then
8714 if cmp conftest.o conftest1.o > /dev/null 2>&1; then
8715 gcc_cv_as_offsetable_lo10=no
8717 gcc_cv_as_offsetable_lo10=yes
8720 gcc_cv_as_offsetable_lo10=no
8722 rm -f conftest.s conftest.o conftest1.s conftest1.o
8727 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
8728 if test "x$gcc_cv_as_offsetable_lo10" = xyes; then
8729 cat >> confdefs.h <<\EOF
8730 #define HAVE_AS_OFFSETABLE_LO10 1
8738 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
8739 echo "configure:8729: checking assembler instructions" >&5
8740 gcc_cv_as_instructions=
8741 if test x$gcc_cv_as != x; then
8742 set "filds fists" "filds mem; fists mem"
8745 echo "$2" > conftest.s
8746 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8747 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
8748 cat >> confdefs.h <<EOF
8749 #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1
8755 rm -f conftest.s conftest.o
8757 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
8761 # Figure out what language subdirectories are present.
8762 # Look if the user specified --enable-languages="..."; if not, use
8763 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8765 if test x"${enable_languages+set}" != xset; then
8766 if test x"${LANGUAGES+set}" = xset; then
8767 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
8769 enable_languages=all
8773 for lang in ${srcdir}/*/config-lang.in ..
8777 # The odd quoting in the next line works around
8778 # an apparent bug in bash 1.12 on linux.
8779 ${srcdir}/[*]/config-lang.in) ;;
8781 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
8782 if test "x$lang_alias" = x
8784 echo "$lang doesn't set \$language." 1>&2
8787 if test x"${enable_languages}" = xall; then
8790 case "${enable_languages}" in
8791 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
8799 if test x"${add_this_lang}" = xyes; then
8801 ${srcdir}/ada/config-lang.in)
8802 if test x$gnat = xyes ; then
8803 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8807 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8815 # Make gthr-default.h if we have a thread file.
8817 if test $thread_file != single; then
8818 rm -f gthr-default.h
8819 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
8820 gthread_flags=-DHAVE_GTHR_DEFAULT
8824 # Find out what GC implementation we want, or may, use.
8825 # Check whether --with-gc or --without-gc was given.
8826 if test "${with_gc+set}" = set; then
8833 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
8837 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8839 elif test $ac_cv_func_valloc = yes; then
8847 echo "Using $GGC for garbage collection."
8849 # Make empty files to contain the specs and options for each language.
8850 # Then add #include lines to for a compiler that has specs and/or options.
8855 rm -f specs.h options.h gencheck.h
8856 touch specs.h options.h gencheck.h
8857 for subdir in . $subdirs
8859 if test -f $srcdir/$subdir/lang-specs.h; then
8860 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
8861 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
8863 if test -f $srcdir/$subdir/lang-options.h; then
8864 echo "#include \"$subdir/lang-options.h\"" >>options.h
8865 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
8867 if test -f $srcdir/$subdir/$subdir-tree.def; then
8868 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
8869 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
8873 # These (without "all_") are set in each config-lang.in.
8874 # `language' must be a single word so is spelled singularly.
8880 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile'
8881 # List of language makefile fragments.
8886 # Add the language fragments.
8887 # Languages are added via two mechanisms. Some information must be
8888 # recorded in makefile variables, these are defined in config-lang.in.
8889 # We accumulate them and plug them into the main Makefile.
8890 # The other mechanism is a set of hooks for each of the main targets
8891 # like `clean', `install', etc.
8893 language_fragments="Make-lang"
8894 language_hooks="Make-hooks"
8897 for s in .. $subdirs
8909 . ${srcdir}/$s/config-lang.in
8910 if test "x$language" = x
8912 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
8915 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
8916 all_languages="$all_languages $language"
8917 if test "x$boot_language" = xyes
8919 all_boot_languages="$all_boot_languages $language"
8921 all_compilers="$all_compilers $compilers"
8922 all_stagestuff="$all_stagestuff $stagestuff"
8923 all_diff_excludes="$all_diff_excludes $diff_excludes"
8924 all_headers="$all_headers $headers"
8925 all_outputs="$all_outputs $outputs"
8926 if test x$outputs = x
8928 oldstyle_subdirs="$oldstyle_subdirs $s"
8930 all_lib2funcs="$all_lib2funcs $lib2funcs"
8934 # Since we can't use `::' targets, we link each language in
8935 # with a set of hooks, reached indirectly via lang.${target}.
8939 target_list="all.build all.cross start.encap rest.encap \
8941 install-normal install-common install-info install-man \
8943 mostlyclean clean distclean extraclean maintainer-clean \
8944 stage1 stage2 stage3 stage4"
8945 for t in $target_list
8948 for lang in .. $all_languages
8950 if test $lang != ".."; then
8954 echo "lang.$t: $x" >> Make-hooks
8957 # If we're not building in srcdir, create .gdbinit.
8959 if test ! -f Makefile.in; then
8960 echo "dir ." > .gdbinit
8961 echo "dir ${srcdir}" >> .gdbinit
8962 if test x$gdb_needs_out_file_path = xyes
8964 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
8966 if test "x$subdirs" != x; then
8969 echo "dir ${srcdir}/$s" >> .gdbinit
8972 echo "source ${srcdir}/.gdbinit" >> .gdbinit
8975 # Define variables host_canonical and build_canonical
8976 # because some Cygnus local changes in the Makefile depend on them.
8977 build_canonical=${build}
8978 host_canonical=${host}
8980 if test "${host}" != "${target}" ; then
8981 target_subdir=${target}/
8987 # If this is using newlib, then define inhibit_libc in
8988 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
8989 # libgcc.a, but that's OK because newib should have its own version of
8992 if test x$with_newlib = xyes; then
8993 inhibit_libc=-Dinhibit_libc
8997 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
8998 # absolute path for gcc_tooldir based on inserting the number of up-directory
8999 # movements required to get from $(exec_prefix) to $(prefix) into the basic
9000 # $(libsubdir)/@(unlibsubdir) based path.
9001 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
9002 # make and thus we'd get different behavior depending on where we built the
9004 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
9005 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
9007 # An explanation of the sed strings:
9008 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
9009 # -e 's|/$||' match a trailing forward slash and eliminates it
9010 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
9011 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
9013 # (*) Note this pattern overwrites the first character of the string
9014 # with a forward slash if one is not already present. This is not a
9015 # problem because the exact names of the sub-directories concerned is
9016 # unimportant, just the number of them matters.
9018 # The practical upshot of these patterns is like this:
9020 # prefix exec_prefix result
9021 # ------ ----------- ------
9023 # /foo/ /foo/bar ../
9024 # /foo /foo/bar/ ../
9025 # /foo/ /foo/bar/ ../
9026 # /foo /foo/bar/ugg ../../
9029 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
9034 # Nothing to do for FLOAT_H, float_format already handled.
9038 # Process the language and host/target makefile fragments.
9039 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
9041 # Substitute configuration variables
9102 # Echo that links are built
9103 if test x$host = x$target
9111 if test x$host != x$build
9113 str3=" on a $build system"
9116 if test "x$str2" != x || test "x$str3" != x
9121 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
9123 if test "x$str2" != x || test "x$str3" != x
9125 echo " ${str2}${str3}." 1>&2
9128 # Truncate the target if necessary
9129 if test x$host_truncate_target != x; then
9130 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
9133 # Configure the subdirectories
9134 # AC_CONFIG_SUBDIRS($subdirs)
9136 # Create the Makefile
9137 # and configure language subdirectories
9139 cat > confcache <<\EOF
9140 # This file is a shell script that caches the results of configure
9141 # tests run on this system so they can be shared between configure
9142 # scripts and configure runs. It is not useful on other systems.
9143 # If it contains results you don't want to keep, you may remove or edit it.
9145 # By default, configure uses ./config.cache as the cache file,
9146 # creating it if it does not exist already. You can give configure
9147 # the --cache-file=FILE option to use a different cache file; that is
9148 # what configure does when it calls configure scripts in
9149 # subdirectories, so they share the cache.
9150 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9151 # config.status only pays attention to the cache file if you give it the
9152 # --recheck option to rerun configure.
9155 # The following way of writing the cache mishandles newlines in values,
9156 # but we know of no workaround that is simple, portable, and efficient.
9157 # So, don't put newlines in cache variables' values.
9158 # Ultrix sh set writes to stderr and can't be redirected directly,
9159 # and sets the high bit in the cache file unless we assign to the vars.
9161 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9163 # `set' does not quote correctly, so add quotes (double-quote substitution
9164 # turns \\\\ into \\, and sed turns \\ into \).
9166 -e "s/'/'\\\\''/g" \
9167 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9170 # `set' quotes correctly as required by POSIX, so do not add quotes.
9171 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9174 if cmp -s $cache_file confcache; then
9177 if test -w $cache_file; then
9178 echo "updating cache $cache_file"
9179 cat confcache > $cache_file
9181 echo "not updating unwritable cache $cache_file"
9186 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9188 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9189 # Let make expand exec_prefix.
9190 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9192 # Any assignment to VPATH causes Sun make to only execute
9193 # the first set of double-colon rules, so remove it if not needed.
9194 # If there is a colon in the path, we need to keep it.
9195 if test "x$srcdir" = x.; then
9196 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9199 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9201 DEFS=-DHAVE_CONFIG_H
9203 # Without the "./", some shells look in PATH for config.status.
9204 : ${CONFIG_STATUS=./config.status}
9206 echo creating $CONFIG_STATUS
9207 rm -f $CONFIG_STATUS
9208 cat > $CONFIG_STATUS <<EOF
9210 # Generated automatically by configure.
9211 # Run this file to recreate the current configuration.
9212 # This directory was configured as follows,
9213 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9215 # $0 $ac_configure_args
9217 # Compiler output produced by configure, useful for debugging
9218 # configure, is in ./config.log if it exists.
9220 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9223 case "\$ac_option" in
9224 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9225 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9226 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9227 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9228 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9230 -help | --help | --hel | --he | --h)
9231 echo "\$ac_cs_usage"; exit 0 ;;
9232 *) echo "\$ac_cs_usage"; exit 1 ;;
9236 ac_given_srcdir=$srcdir
9238 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9240 cat >> $CONFIG_STATUS <<EOF
9242 # Protect against being on the right side of a sed subst in config.status.
9243 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9244 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9248 s%@CFLAGS@%$CFLAGS%g
9249 s%@CPPFLAGS@%$CPPFLAGS%g
9250 s%@CXXFLAGS@%$CXXFLAGS%g
9251 s%@FFLAGS@%$FFLAGS%g
9253 s%@LDFLAGS@%$LDFLAGS%g
9255 s%@exec_prefix@%$exec_prefix%g
9256 s%@prefix@%$prefix%g
9257 s%@program_transform_name@%$program_transform_name%g
9258 s%@bindir@%$bindir%g
9259 s%@sbindir@%$sbindir%g
9260 s%@libexecdir@%$libexecdir%g
9261 s%@datadir@%$datadir%g
9262 s%@sysconfdir@%$sysconfdir%g
9263 s%@sharedstatedir@%$sharedstatedir%g
9264 s%@localstatedir@%$localstatedir%g
9265 s%@libdir@%$libdir%g
9266 s%@includedir@%$includedir%g
9267 s%@oldincludedir@%$oldincludedir%g
9268 s%@infodir@%$infodir%g
9269 s%@mandir@%$mandir%g
9271 s%@host_alias@%$host_alias%g
9272 s%@host_cpu@%$host_cpu%g
9273 s%@host_vendor@%$host_vendor%g
9274 s%@host_os@%$host_os%g
9275 s%@target@%$target%g
9276 s%@target_alias@%$target_alias%g
9277 s%@target_cpu@%$target_cpu%g
9278 s%@target_vendor@%$target_vendor%g
9279 s%@target_os@%$target_os%g
9281 s%@build_alias@%$build_alias%g
9282 s%@build_cpu@%$build_cpu%g
9283 s%@build_vendor@%$build_vendor%g
9284 s%@build_os@%$build_os%g
9286 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
9287 s%@SET_MAKE@%$SET_MAKE%g
9290 s%@LEXLIB@%$LEXLIB%g
9293 s%@RANLIB@%$RANLIB%g
9295 s%@INSTALL@%$INSTALL%g
9296 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9297 s%@INSTALL_DATA@%$INSTALL_DATA%g
9300 s%@vfprintf@%$vfprintf%g
9301 s%@doprint@%$doprint%g
9302 s%@manext@%$manext%g
9303 s%@objext@%$objext%g
9304 s%@PACKAGE@%$PACKAGE%g
9305 s%@VERSION@%$VERSION%g
9306 s%@ALLOCA@%$ALLOCA%g
9307 s%@USE_NLS@%$USE_NLS%g
9308 s%@MSGFMT@%$MSGFMT%g
9309 s%@GMSGFMT@%$GMSGFMT%g
9310 s%@XGETTEXT@%$XGETTEXT%g
9311 s%@GENCAT@%$GENCAT%g
9312 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9313 s%@CATALOGS@%$CATALOGS%g
9314 s%@CATOBJEXT@%$CATOBJEXT%g
9315 s%@DATADIRNAME@%$DATADIRNAME%g
9316 s%@GMOFILES@%$GMOFILES%g
9317 s%@INSTOBJEXT@%$INSTOBJEXT%g
9318 s%@INTLDEPS@%$INTLDEPS%g
9319 s%@INTLLIBS@%$INTLLIBS%g
9320 s%@INTLOBJS@%$INTLOBJS%g
9321 s%@POFILES@%$POFILES%g
9323 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
9325 s%@GT_YES@%$GT_YES%g
9326 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9328 s%@gthread_flags@%$gthread_flags%g
9330 s%@build_canonical@%$build_canonical%g
9331 s%@host_canonical@%$host_canonical%g
9332 s%@target_subdir@%$target_subdir%g
9333 s%@inhibit_libc@%$inhibit_libc%g
9334 s%@gcc_tooldir@%$gcc_tooldir%g
9335 s%@dollar@%$dollar%g
9336 s%@objdir@%$objdir%g
9337 s%@subdirs@%$subdirs%g
9338 s%@all_boot_languages@%$all_boot_languages%g
9339 s%@all_compilers@%$all_compilers%g
9340 s%@all_diff_excludes@%$all_diff_excludes%g
9341 s%@all_headers@%$all_headers%g
9342 s%@all_lang_makefiles@%$all_lang_makefiles%g
9343 s%@all_languages@%$all_languages%g
9344 s%@all_lib2funcs@%$all_lib2funcs%g
9345 s%@all_stagestuff@%$all_stagestuff%g
9346 s%@build_exeext@%$build_exeext%g
9347 s%@build_install_headers_dir@%$build_install_headers_dir%g
9348 s%@build_xm_file_list@%$build_xm_file_list%g
9349 s%@cc_set_by_configure@%$cc_set_by_configure%g
9350 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
9351 s%@cpp_install_dir@%$cpp_install_dir%g
9352 s%@cpp_main@%$cpp_main%g
9353 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
9354 s%@dep_tmake_file@%$dep_tmake_file%g
9355 s%@extra_c_flags@%$extra_c_flags%g
9356 s%@extra_c_objs@%$extra_c_objs%g
9357 s%@extra_cpp_objs@%$extra_cpp_objs%g
9358 s%@extra_cxx_objs@%$extra_cxx_objs%g
9359 s%@extra_headers_list@%$extra_headers_list%g
9360 s%@extra_objs@%$extra_objs%g
9361 s%@extra_parts@%$extra_parts%g
9362 s%@extra_passes@%$extra_passes%g
9363 s%@extra_programs@%$extra_programs%g
9364 s%@fixinc_defs@%$fixinc_defs%g
9365 s%@float_h_file@%$float_h_file%g
9366 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
9367 s%@gcc_version@%$gcc_version%g
9368 s%@gcc_version_trigger@%$gcc_version_trigger%g
9369 s%@host_exeext@%$host_exeext%g
9370 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
9371 s%@host_xm_file_list@%$host_xm_file_list%g
9372 s%@install@%$install%g
9373 s%@lang_options_files@%$lang_options_files%g
9374 s%@lang_specs_files@%$lang_specs_files%g
9375 s%@lang_tree_files@%$lang_tree_files%g
9376 s%@local_prefix@%$local_prefix%g
9377 s%@maybe_use_collect2@%$maybe_use_collect2%g
9378 s%@md_file@%$md_file%g
9379 s%@objc_boehm_gc@%$objc_boehm_gc%g
9380 s%@out_file@%$out_file%g
9381 s%@out_object_file@%$out_object_file%g
9382 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
9383 s%@symbolic_link@%$symbolic_link%g
9384 s%@thread_file@%$thread_file%g
9385 s%@tm_file_list@%$tm_file_list%g
9386 s%@will_use_collect2@%$will_use_collect2%g
9387 /@target_overrides@/r $target_overrides
9388 s%@target_overrides@%%g
9389 /@host_overrides@/r $host_overrides
9390 s%@host_overrides@%%g
9391 s%@cross_defines@%$cross_defines%g
9392 /@cross_overrides@/r $cross_overrides
9393 s%@cross_overrides@%%g
9394 /@build_overrides@/r $build_overrides
9395 s%@build_overrides@%%g
9396 /@language_fragments@/r $language_fragments
9397 s%@language_fragments@%%g
9398 /@language_hooks@/r $language_hooks
9399 s%@language_hooks@%%g
9404 cat >> $CONFIG_STATUS <<\EOF
9406 # Split the substitutions into bite-sized pieces for seds with
9407 # small command number limits, like on Digital OSF/1 and HP-UX.
9408 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9409 ac_file=1 # Number of current file.
9410 ac_beg=1 # First line for current file.
9411 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9414 while $ac_more_lines; do
9415 if test $ac_beg -gt 1; then
9416 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9418 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9420 if test ! -s conftest.s$ac_file; then
9422 rm -f conftest.s$ac_file
9424 if test -z "$ac_sed_cmds"; then
9425 ac_sed_cmds="sed -f conftest.s$ac_file"
9427 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9429 ac_file=`expr $ac_file + 1`
9431 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9434 if test -z "$ac_sed_cmds"; then
9439 cat >> $CONFIG_STATUS <<EOF
9441 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
9443 cat >> $CONFIG_STATUS <<\EOF
9444 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9445 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9447 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9448 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9449 *) ac_file_in="${ac_file}.in" ;;
9452 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9454 # Remove last slash and all that follows it. Not all systems have dirname.
9455 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9456 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9457 # The file is in a subdirectory.
9458 test ! -d "$ac_dir" && mkdir "$ac_dir"
9459 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9460 # A "../" for each directory in $ac_dir_suffix.
9461 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9463 ac_dir_suffix= ac_dots=
9466 case "$ac_given_srcdir" in
9468 if test -z "$ac_dots"; then top_srcdir=.
9469 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9470 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9472 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9473 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9477 echo creating "$ac_file"
9479 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9481 *Makefile*) ac_comsub="1i\\
9482 # $configure_input" ;;
9486 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9488 s%@configure_input@%$configure_input%g
9489 s%@srcdir@%$srcdir%g
9490 s%@top_srcdir@%$top_srcdir%g
9491 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9495 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9496 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9498 # ac_d sets the value in "#define NAME VALUE" lines.
9499 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9500 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9503 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9504 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9505 ac_uB='\([ ]\)%\1#\2define\3'
9508 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9509 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9510 ac_eB='$%\1#\2define\3'
9514 if test "${CONFIG_HEADERS+set}" != set; then
9516 cat >> $CONFIG_STATUS <<EOF
9517 CONFIG_HEADERS="auto-host.h:config.in"
9519 cat >> $CONFIG_STATUS <<\EOF
9521 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9522 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9524 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9525 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9526 *) ac_file_in="${ac_file}.in" ;;
9529 echo creating $ac_file
9531 rm -f conftest.frag conftest.in conftest.out
9532 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9533 cat $ac_file_inputs > conftest.in
9537 # Transform confdefs.h into a sed script conftest.vals that substitutes
9538 # the proper values into config.h.in to produce config.h. And first:
9539 # Protect against being on the right side of a sed subst in config.status.
9540 # Protect against being in an unquoted here document in config.status.
9542 cat > conftest.hdr <<\EOF
9545 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9549 sed -n -f conftest.hdr confdefs.h > conftest.vals
9552 # This sed command replaces #undef with comments. This is necessary, for
9553 # example, in the case of _POSIX_SOURCE, which is predefined and required
9554 # on some systems where configure will not decide to define it.
9555 cat >> conftest.vals <<\EOF
9556 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9559 # Break up conftest.vals because some shells have a limit on
9560 # the size of here documents, and old seds have small limits too.
9565 ac_lines=`grep -c . conftest.vals`
9566 # grep -c gives empty output for an empty file on some AIX systems.
9567 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9568 # Write a limited-size here document to conftest.frag.
9569 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9570 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9572 sed -f conftest.frag conftest.in > conftest.out
9574 mv conftest.out conftest.in
9576 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9578 mv conftest.tail conftest.vals
9582 cat >> $CONFIG_STATUS <<\EOF
9583 rm -f conftest.frag conftest.h
9584 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9585 cat conftest.in >> conftest.h
9587 if cmp -s $ac_file conftest.h 2>/dev/null; then
9588 echo "$ac_file is unchanged"
9591 # Remove last slash and all that follows it. Not all systems have dirname.
9592 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9593 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9594 # The file is in a subdirectory.
9595 test ! -d "$ac_dir" && mkdir "$ac_dir"
9598 mv conftest.h $ac_file
9604 cat >> $CONFIG_STATUS <<EOF
9605 ac_sources="$nls_cv_header_libgt"
9606 ac_dests="$nls_cv_header_intl"
9609 cat >> $CONFIG_STATUS <<\EOF
9610 srcdir=$ac_given_srcdir
9611 while test -n "$ac_sources"; do
9612 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9613 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9615 echo "linking $srcdir/$ac_source to $ac_dest"
9617 if test ! -r $srcdir/$ac_source; then
9618 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9622 # Make relative symlinks.
9623 # Remove last slash and all that follows it. Not all systems have dirname.
9624 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
9625 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9626 # The dest file is in a subdirectory.
9627 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9628 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
9629 # A "../" for each directory in $ac_dest_dir_suffix.
9630 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
9632 ac_dest_dir_suffix= ac_dots=
9636 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9637 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9640 # Make a symlink if possible; otherwise try a hard link.
9641 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9642 ln $srcdir/$ac_source $ac_dest; then :
9644 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9648 cat >> $CONFIG_STATUS <<EOF
9654 target_alias='${target_alias}'
9656 subdirs='${subdirs}'
9657 oldstyle_subdirs='${oldstyle_subdirs}'
9658 symbolic_link='${symbolic_link}'
9659 program_transform_set='${program_transform_set}'
9660 program_transform_name='${program_transform_name}'
9661 dep_host_xmake_file='${dep_host_xmake_file}'
9662 host_xmake_file='${host_xmake_file}'
9663 dep_tmake_file='${dep_tmake_file}'
9664 tmake_file='${tmake_file}'
9665 thread_file='${thread_file}'
9666 gcc_version='${gcc_version}'
9667 gcc_version_trigger='${gcc_version_trigger}'
9668 local_prefix='${local_prefix}'
9669 build_install_headers_dir='${build_install_headers_dir}'
9670 build_exeext='${build_exeext}'
9671 host_exeext='${host_exeext}'
9672 out_file='${out_file}'
9673 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
9674 SET_MAKE='${SET_MAKE}'
9675 target_list='${target_list}'
9676 target_overrides='${target_overrides}'
9677 host_overrides='${host_overrides}'
9678 cross_defines='${cross_defines}'
9679 cross_overrides='${cross_overrides}'
9680 build_overrides='${build_overrides}'
9681 cpp_install_dir='${cpp_install_dir}'
9684 cat >> $CONFIG_STATUS <<\EOF
9685 case "$CONFIG_FILES" in *po/Makefile.in*)
9686 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
9689 . $srcdir/configure.lang
9690 case x$CONFIG_HEADERS in
9691 xauto-host.h:config.in)
9694 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
9695 # bootstrapping and the installation procedure can still use
9696 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
9697 # FLAGS_TO_PASS has been modified to solve the problem there.
9698 # This is virtually a duplicate of what happens in configure.lang; we do
9699 # an extra check to make sure this only happens if ln -s can be used.
9700 if test "$symbolic_link" = "ln -s"; then
9701 for d in .. ${subdirs} ; do
9702 if test $d != ..; then
9705 for t in stage1 stage2 stage3 stage4 include
9708 $symbolic_link ../$t $t 2>/dev/null
9714 # Avoid having to add intl to our include paths.
9715 if test -f intl/libintl.h; then
9716 echo creating libintl.h
9717 echo '#include "intl/libintl.h"' >libintl.h
9722 chmod +x $CONFIG_STATUS
9723 rm -fr confdefs* $ac_clean_files
9724 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1