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 enable expensive run-time checks."
34 --disable-cpp don't provide a user-visible C preprocessor."
36 --with-cpp-install-dir=DIR
37 install the user visible C preprocessor in DIR
38 (relative to PREFIX) as well as PREFIX/bin."
40 --enable-cpplib use cpplib for the C preprocessor."
42 --enable-c-cpplib link cpplib directly into C and C++ compilers
43 (EXPERIMENTAL) (implies --enable-cpplib)."
45 --disable-fast-fixincludes
46 Disable the new fast fixincludes.
47 Run the old fixincludes script unconditionally"
49 --enable-c-mbchar Enable multibyte characters for C and C++."
51 --enable-threads enable thread usage for target GCC.
52 --enable-threads=LIB use LIB thread package for target GCC."
54 --enable-objc-gc enable the use of Boehm's garbage collector with
55 the GNU Objective-C runtime."
57 --enable-dwarf2 enable DWARF2 debugging as default."
59 --enable-nls use Native Language Support (disabled by default)"
61 --disable-nls do not use Native Language Support"
63 --with-included-gettext use the GNU gettext library included here"
65 --with-catgets use catgets functions if available"
67 --disable-win32-registry
68 Disable lookup of installation paths in the
69 Registry on Windows hosts.
70 --enable-win32-registry Enable registry lookup (default).
71 --enable-win32-registry=KEY
72 Use KEY instead of GCC version as the last portion
75 # Initialize some variables set by options.
76 # The variables have the same names as the options, with
77 # dashes changed to underlines.
79 cache_file=./config.cache
88 program_transform_name=s,x,x,
97 bindir='${exec_prefix}/bin'
98 sbindir='${exec_prefix}/sbin'
99 libexecdir='${exec_prefix}/libexec'
100 datadir='${prefix}/share'
101 sysconfdir='${prefix}/etc'
102 sharedstatedir='${prefix}/com'
103 localstatedir='${prefix}/var'
104 libdir='${exec_prefix}/lib'
105 includedir='${prefix}/include'
106 oldincludedir='/usr/include'
107 infodir='${prefix}/info'
108 mandir='${prefix}/man'
110 # Initialize some other variables.
113 SHELL=${CONFIG_SHELL-/bin/sh}
114 # Maximum number of lines to put in a shell here document.
121 # If the previous option needs an argument, assign it.
122 if test -n "$ac_prev"; then
123 eval "$ac_prev=\$ac_option"
129 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
133 # Accept the important Cygnus configure options, so we can diagnose typos.
137 -bindir | --bindir | --bindi | --bind | --bin | --bi)
139 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
140 bindir="$ac_optarg" ;;
142 -build | --build | --buil | --bui | --bu)
144 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
145 build="$ac_optarg" ;;
147 -cache-file | --cache-file | --cache-fil | --cache-fi \
148 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
149 ac_prev=cache_file ;;
150 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
151 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
152 cache_file="$ac_optarg" ;;
154 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
156 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
158 datadir="$ac_optarg" ;;
160 -disable-* | --disable-*)
161 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
162 # Reject names that are not valid shell variable names.
163 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
164 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
166 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
167 eval "enable_${ac_feature}=no" ;;
169 -enable-* | --enable-*)
170 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
171 # Reject names that are not valid shell variable names.
172 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
173 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
175 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
180 eval "enable_${ac_feature}='$ac_optarg'" ;;
182 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
183 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
184 | --exec | --exe | --ex)
185 ac_prev=exec_prefix ;;
186 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
187 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
188 | --exec=* | --exe=* | --ex=*)
189 exec_prefix="$ac_optarg" ;;
191 -gas | --gas | --ga | --g)
192 # Obsolete; use --with-gas.
195 -help | --help | --hel | --he)
196 # Omit some internal or obsolete options to make the list less imposing.
197 # This message is too long to be a string in the A/UX 3.1 sh.
199 Usage: configure [options] [host]
200 Options: [defaults in brackets after descriptions]
202 --cache-file=FILE cache test results in FILE
203 --help print this message
204 --no-create do not create output files
205 --quiet, --silent do not print \`checking...' messages
206 --site-file=FILE use FILE as the site file
207 --version print the version of autoconf that created configure
208 Directory and file names:
209 --prefix=PREFIX install architecture-independent files in PREFIX
211 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
213 --bindir=DIR user executables in DIR [EPREFIX/bin]
214 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
215 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
216 --datadir=DIR read-only architecture-independent data in DIR
218 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
219 --sharedstatedir=DIR modifiable architecture-independent data in DIR
221 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
222 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
223 --includedir=DIR C header files in DIR [PREFIX/include]
224 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
225 --infodir=DIR info documentation in DIR [PREFIX/info]
226 --mandir=DIR man documentation in DIR [PREFIX/man]
227 --srcdir=DIR find the sources in DIR [configure dir or ..]
228 --program-prefix=PREFIX prepend PREFIX to installed program names
229 --program-suffix=SUFFIX append SUFFIX to installed program names
230 --program-transform-name=PROGRAM
231 run sed PROGRAM on installed program names
235 --build=BUILD configure for building on BUILD [BUILD=HOST]
236 --host=HOST configure for HOST [guessed]
237 --target=TARGET configure for TARGET [TARGET=HOST]
238 Features and packages:
239 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
240 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
241 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
242 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
243 --x-includes=DIR X include files are in DIR
244 --x-libraries=DIR X library files are in DIR
246 if test -n "$ac_help"; then
247 echo "--enable and --with options recognized:$ac_help"
251 -host | --host | --hos | --ho)
253 -host=* | --host=* | --hos=* | --ho=*)
256 -includedir | --includedir | --includedi | --included | --include \
257 | --includ | --inclu | --incl | --inc)
258 ac_prev=includedir ;;
259 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
260 | --includ=* | --inclu=* | --incl=* | --inc=*)
261 includedir="$ac_optarg" ;;
263 -infodir | --infodir | --infodi | --infod | --info | --inf)
265 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
266 infodir="$ac_optarg" ;;
268 -libdir | --libdir | --libdi | --libd)
270 -libdir=* | --libdir=* | --libdi=* | --libd=*)
271 libdir="$ac_optarg" ;;
273 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
274 | --libexe | --libex | --libe)
275 ac_prev=libexecdir ;;
276 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
277 | --libexe=* | --libex=* | --libe=*)
278 libexecdir="$ac_optarg" ;;
280 -localstatedir | --localstatedir | --localstatedi | --localstated \
281 | --localstate | --localstat | --localsta | --localst \
282 | --locals | --local | --loca | --loc | --lo)
283 ac_prev=localstatedir ;;
284 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
285 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
286 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
287 localstatedir="$ac_optarg" ;;
289 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
291 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
292 mandir="$ac_optarg" ;;
295 # Obsolete; use --without-fp.
298 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
302 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
303 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
306 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
307 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
308 | --oldin | --oldi | --old | --ol | --o)
309 ac_prev=oldincludedir ;;
310 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
311 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
312 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
313 oldincludedir="$ac_optarg" ;;
315 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
317 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
318 prefix="$ac_optarg" ;;
320 -program-prefix | --program-prefix | --program-prefi | --program-pref \
321 | --program-pre | --program-pr | --program-p)
322 ac_prev=program_prefix ;;
323 -program-prefix=* | --program-prefix=* | --program-prefi=* \
324 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
325 program_prefix="$ac_optarg" ;;
327 -program-suffix | --program-suffix | --program-suffi | --program-suff \
328 | --program-suf | --program-su | --program-s)
329 ac_prev=program_suffix ;;
330 -program-suffix=* | --program-suffix=* | --program-suffi=* \
331 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
332 program_suffix="$ac_optarg" ;;
334 -program-transform-name | --program-transform-name \
335 | --program-transform-nam | --program-transform-na \
336 | --program-transform-n | --program-transform- \
337 | --program-transform | --program-transfor \
338 | --program-transfo | --program-transf \
339 | --program-trans | --program-tran \
340 | --progr-tra | --program-tr | --program-t)
341 ac_prev=program_transform_name ;;
342 -program-transform-name=* | --program-transform-name=* \
343 | --program-transform-nam=* | --program-transform-na=* \
344 | --program-transform-n=* | --program-transform-=* \
345 | --program-transform=* | --program-transfor=* \
346 | --program-transfo=* | --program-transf=* \
347 | --program-trans=* | --program-tran=* \
348 | --progr-tra=* | --program-tr=* | --program-t=*)
349 program_transform_name="$ac_optarg" ;;
351 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
352 | -silent | --silent | --silen | --sile | --sil)
355 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
357 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
359 sbindir="$ac_optarg" ;;
361 -sharedstatedir | --sharedstatedir | --sharedstatedi \
362 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
363 | --sharedst | --shareds | --shared | --share | --shar \
365 ac_prev=sharedstatedir ;;
366 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
367 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
368 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
370 sharedstatedir="$ac_optarg" ;;
372 -site | --site | --sit)
374 -site=* | --site=* | --sit=*)
377 -site-file | --site-file | --site-fil | --site-fi | --site-f)
379 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
380 sitefile="$ac_optarg" ;;
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 "$sitefile"; then
548 if test -z "$CONFIG_SITE"; then
549 if test "x$prefix" != xNONE; then
550 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
552 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
556 CONFIG_SITE="$sitefile"
558 for ac_site_file in $CONFIG_SITE; do
559 if test -r "$ac_site_file"; then
560 echo "loading site script $ac_site_file"
565 if test -r "$cache_file"; then
566 echo "loading cache $cache_file"
569 echo "creating cache $cache_file"
574 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
575 ac_cpp='$CPP $CPPFLAGS'
576 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
577 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
578 cross_compiling=$ac_cv_prog_cc_cross
582 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
583 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
584 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
591 ac_n= ac_c='\c' ac_t=
599 symbolic_link='ln -s'
602 # Check for bogus environment variables.
603 # Test if LIBRARY_PATH contains the notation for the current directory
604 # since this would lead to problems installing/building glibc.
605 # LIBRARY_PATH contains the current directory if one of the following
607 # - one of the terminals (":" and ";") is the first or last sign
608 # - two terminals occur directly after each other
609 # - the path contains an element with a dot in it
610 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
611 echo "configure:612: checking LIBRARY_PATH variable" >&5
612 case ${LIBRARY_PATH} in
613 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
614 library_path_setting="contains current directory"
617 library_path_setting="ok"
620 echo "$ac_t""$library_path_setting" 1>&6
621 if test "$library_path_setting" != "ok"; then
622 { echo "configure: error:
623 *** LIBRARY_PATH shouldn't contain the current directory when
624 *** building gcc. Please change the environment variable
625 *** and run configure again." 1>&2; exit 1; }
628 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
629 # since this would lead to problems installing/building glibc.
630 # GCC_EXEC_PREFIX contains the current directory if one of the following
632 # - one of the terminals (":" and ";") is the first or last sign
633 # - two terminals occur directly after each other
634 # - the path contains an element with a dot in it
635 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
636 echo "configure:637: checking GCC_EXEC_PREFIX variable" >&5
637 case ${GCC_EXEC_PREFIX} in
638 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
639 gcc_exec_prefix_setting="contains current directory"
642 gcc_exec_prefix_setting="ok"
645 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
646 if test "$gcc_exec_prefix_setting" != "ok"; then
647 { echo "configure: error:
648 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
649 *** building gcc. Please change the environment variable
650 *** and run configure again." 1>&2; exit 1; }
653 # Check for additional parameters
656 # Check whether --with-gnu-ld or --without-gnu-ld was given.
657 if test "${with_gnu_ld+set}" = set; then
658 withval="$with_gnu_ld"
659 gnu_ld_flag="$with_gnu_ld"
665 # With pre-defined ld
666 # Check whether --with-ld or --without-ld was given.
667 if test "${with_ld+set}" = set; then
669 DEFAULT_LINKER="$with_ld"
672 if test x"${DEFAULT_LINKER+set}" = x"set"; then
673 if test ! -x "$DEFAULT_LINKER"; then
674 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
675 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
678 cat >> confdefs.h <<EOF
679 #define DEFAULT_LINKER "$DEFAULT_LINKER"
685 # Check whether --with-gnu-as or --without-gnu-as was given.
686 if test "${with_gnu_as+set}" = set; then
687 withval="$with_gnu_as"
688 gas_flag="$with_gnu_as"
694 # Check whether --with-as or --without-as was given.
695 if test "${with_as+set}" = set; then
697 DEFAULT_ASSEMBLER="$with_as"
700 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
701 if test ! -x "$DEFAULT_ASSEMBLER"; then
702 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
703 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
706 cat >> confdefs.h <<EOF
707 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
713 # Check whether --with-stabs or --without-stabs was given.
714 if test "${with_stabs+set}" = set; then
715 withval="$with_stabs"
723 # Check whether --with-elf or --without-elf was given.
724 if test "${with_elf+set}" = set; then
732 # Specify the local prefix
734 # Check whether --with-local-prefix or --without-local-prefix was given.
735 if test "${with_local_prefix+set}" = set; then
736 withval="$with_local_prefix"
738 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
740 *) local_prefix=$with_local_prefix ;;
745 # Default local prefix if it is empty
746 if test x$local_prefix = x; then
747 local_prefix=/usr/local
750 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
751 # passed in by the toplevel make and thus we'd get different behavior
752 # depending on where we built the sources.
754 # Specify the g++ header file directory
755 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
756 if test "${with_gxx_include_dir+set}" = set; then
757 withval="$with_gxx_include_dir"
759 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
761 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
766 if test x${gcc_gxx_include_dir} = x; then
767 if test x${enable_version_specific_runtime_libs} = xyes; then
768 gcc_gxx_include_dir='${libsubdir}/include/g++'
770 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
771 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
775 # Enable expensive internal checks
776 # Check whether --enable-checking or --disable-checking was given.
777 if test "${enable_checking+set}" = set; then
778 enableval="$enable_checking"
779 case "${enableval}" in
780 yes) cat >> confdefs.h <<\EOF
781 #define ENABLE_CHECKING 1
785 *) { echo "configure: error: bad value ${enableval} given for checking option" 1>&2; exit 1; } ;;
790 # Check whether --enable-cpp or --disable-cpp was given.
791 if test "${enable_cpp+set}" = set; then
792 enableval="$enable_cpp"
799 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
800 if test "${with_cpp_install_dir+set}" = set; then
801 withval="$with_cpp_install_dir"
802 if test x$withval = xyes; then
803 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
804 elif test x$withval != xno; then
805 cpp_install_dir=$withval
810 # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
812 # Check whether --enable-cpplib or --disable-cpplib was given.
813 if test "${enable_cpplib+set}" = set; then
814 enableval="$enable_cpplib"
815 if test x$enable_cpplib != xno; then
821 # Link cpplib into the compiler proper, for C/C++/ObjC.
822 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
823 if test "${enable_c_cpplib+set}" = set; then
824 enableval="$enable_c_cpplib"
825 if test x$enable_c_cpplib != xno; then
826 extra_c_objs="${extra_c_objs} libcpp.a"
827 extra_cxx_objs="${extra_cxx_objs} ../libcpp.a"
828 extra_c_flags="${extra_c_flags} -DUSE_CPPLIB=1"
834 # Disable fast fixincludes
835 # Check whether --enable-fast-fixincludes or --disable-fast-fixincludes was given.
836 if test "${enable_fast_fixincludes+set}" = set; then
837 enableval="$enable_fast_fixincludes"
838 if test x$enable_fast_fixincludes = xno ; then
839 cp $srcdir/fixincludes ./fixinc.sh
844 # Enable Multibyte Characters for C/C++
845 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
846 if test "${enable_c_mbchar+set}" = set; then
847 enableval="$enable_c_mbchar"
848 if [ x$enable_c_mbchar != xno ]; then
849 extra_c_flags=-DMULTIBYTE_CHARS=1
855 # Pass with no value to take the default
856 # Pass with a value to specify a thread package
857 # Check whether --enable-threads or --disable-threads was given.
858 if test "${enable_threads+set}" = set; then
859 enableval="$enable_threads"
860 if test x$enable_threads = xno; then
868 enable_threads_flag=$enable_threads
869 # Check if a valid thread package
870 case x${enable_threads_flag} in
873 target_thread_file='single'
877 target_thread_file=''
879 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
880 xsolaris | xwin32 | xdce | xvxworks)
881 target_thread_file=$enable_threads_flag
884 echo "$enable_threads is an unknown thread package" 1>&2
889 # Check whether --enable-objc-gc or --disable-objc-gc was given.
890 if test "${enable_objc_gc+set}" = set; then
891 enableval="$enable_objc_gc"
892 if [ x$enable_objc_gc = xno ]; then
902 # Check whether --with-dwarf2 or --without-dwarf2 was given.
903 if test "${with_dwarf2+set}" = set; then
904 withval="$with_dwarf2"
905 dwarf2="$with_dwarf2"
911 # Determine the host, build, and target systems
913 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
914 if test -f $ac_dir/install-sh; then
916 ac_install_sh="$ac_aux_dir/install-sh -c"
918 elif test -f $ac_dir/install.sh; then
920 ac_install_sh="$ac_aux_dir/install.sh -c"
924 if test -z "$ac_aux_dir"; then
925 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
927 ac_config_guess=$ac_aux_dir/config.guess
928 ac_config_sub=$ac_aux_dir/config.sub
929 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
932 # Do some error checking and defaulting for the host and target type.
934 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
937 # 1. You are not allowed to specify --host, --target, and nonopt at the
939 # 2. Host defaults to nonopt.
940 # 3. If nonopt is not specified, then host defaults to the current host,
941 # as determined by config.guess.
942 # 4. Target and build default to nonopt.
943 # 5. If nonopt is not specified, then target and build default to host.
945 # The aliases save the names the user supplied, while $host etc.
946 # will get canonicalized.
947 case $host---$target---$nonopt in
948 NONE---*---* | *---NONE---* | *---*---NONE) ;;
949 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
953 # Make sure we can run config.sub.
954 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
955 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
958 echo $ac_n "checking host system type""... $ac_c" 1>&6
959 echo "configure:960: checking host system type" >&5
962 case "$host_alias" in
966 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
967 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
969 *) host_alias=$nonopt ;;
973 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
974 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
975 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
976 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
977 echo "$ac_t""$host" 1>&6
979 echo $ac_n "checking target system type""... $ac_c" 1>&6
980 echo "configure:981: checking target system type" >&5
983 case "$target_alias" in
986 NONE) target_alias=$host_alias ;;
987 *) target_alias=$nonopt ;;
991 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
992 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
993 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
994 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
995 echo "$ac_t""$target" 1>&6
997 echo $ac_n "checking build system type""... $ac_c" 1>&6
998 echo "configure:999: checking build system type" >&5
1001 case "$build_alias" in
1004 NONE) build_alias=$host_alias ;;
1005 *) build_alias=$nonopt ;;
1009 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1010 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1011 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1012 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1013 echo "$ac_t""$build" 1>&6
1015 test "$host_alias" != "$target_alias" &&
1016 test "$program_prefix$program_suffix$program_transform_name" = \
1018 program_prefix=${target_alias}-
1021 # Find the native compiler
1022 # Extract the first word of "gcc", so it can be a program name with args.
1023 set dummy gcc; ac_word=$2
1024 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1025 echo "configure:1026: checking for $ac_word" >&5
1026 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1027 echo $ac_n "(cached) $ac_c" 1>&6
1029 if test -n "$CC"; then
1030 ac_cv_prog_CC="$CC" # Let the user override the test.
1032 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1034 for ac_dir in $ac_dummy; do
1035 test -z "$ac_dir" && ac_dir=.
1036 if test -f $ac_dir/$ac_word; then
1045 if test -n "$CC"; then
1046 echo "$ac_t""$CC" 1>&6
1048 echo "$ac_t""no" 1>&6
1051 if test -z "$CC"; then
1052 # Extract the first word of "cc", so it can be a program name with args.
1053 set dummy cc; ac_word=$2
1054 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1055 echo "configure:1056: checking for $ac_word" >&5
1056 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1057 echo $ac_n "(cached) $ac_c" 1>&6
1059 if test -n "$CC"; then
1060 ac_cv_prog_CC="$CC" # Let the user override the test.
1062 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1065 for ac_dir in $ac_dummy; do
1066 test -z "$ac_dir" && ac_dir=.
1067 if test -f $ac_dir/$ac_word; then
1068 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1069 ac_prog_rejected=yes
1077 if test $ac_prog_rejected = yes; then
1078 # We found a bogon in the path, so make sure we never use it.
1079 set dummy $ac_cv_prog_CC
1081 if test $# -gt 0; then
1082 # We chose a different compiler from the bogus one.
1083 # However, it has the same basename, so the bogon will be chosen
1084 # first if we set CC to just the basename; use the full file name.
1086 set dummy "$ac_dir/$ac_word" "$@"
1094 if test -n "$CC"; then
1095 echo "$ac_t""$CC" 1>&6
1097 echo "$ac_t""no" 1>&6
1100 if test -z "$CC"; then
1101 case "`uname -s`" in
1103 # Extract the first word of "cl", so it can be a program name with args.
1104 set dummy cl; ac_word=$2
1105 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1106 echo "configure:1107: checking for $ac_word" >&5
1107 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1108 echo $ac_n "(cached) $ac_c" 1>&6
1110 if test -n "$CC"; then
1111 ac_cv_prog_CC="$CC" # Let the user override the test.
1113 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1115 for ac_dir in $ac_dummy; do
1116 test -z "$ac_dir" && ac_dir=.
1117 if test -f $ac_dir/$ac_word; then
1126 if test -n "$CC"; then
1127 echo "$ac_t""$CC" 1>&6
1129 echo "$ac_t""no" 1>&6
1134 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1137 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1138 echo "configure:1139: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1141 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1142 ac_cpp='$CPP $CPPFLAGS'
1143 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1144 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1145 cross_compiling=$ac_cv_prog_cc_cross
1147 cat > conftest.$ac_ext << EOF
1149 #line 1150 "configure"
1150 #include "confdefs.h"
1154 if { (eval echo configure:1155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1155 ac_cv_prog_cc_works=yes
1156 # If we can't run a trivial program, we are probably using a cross compiler.
1157 if (./conftest; exit) 2>/dev/null; then
1158 ac_cv_prog_cc_cross=no
1160 ac_cv_prog_cc_cross=yes
1163 echo "configure: failed program was:" >&5
1164 cat conftest.$ac_ext >&5
1165 ac_cv_prog_cc_works=no
1169 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1170 ac_cpp='$CPP $CPPFLAGS'
1171 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1172 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1173 cross_compiling=$ac_cv_prog_cc_cross
1175 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1176 if test $ac_cv_prog_cc_works = no; then
1177 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1179 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1180 echo "configure:1181: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1181 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1182 cross_compiling=$ac_cv_prog_cc_cross
1184 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1185 echo "configure:1186: checking whether we are using GNU C" >&5
1186 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1187 echo $ac_n "(cached) $ac_c" 1>&6
1189 cat > conftest.c <<EOF
1194 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1201 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1203 if test $ac_cv_prog_gcc = yes; then
1209 ac_test_CFLAGS="${CFLAGS+set}"
1210 ac_save_CFLAGS="$CFLAGS"
1212 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1213 echo "configure:1214: checking whether ${CC-cc} accepts -g" >&5
1214 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1215 echo $ac_n "(cached) $ac_c" 1>&6
1217 echo 'void f(){}' > conftest.c
1218 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1227 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1228 if test "$ac_test_CFLAGS" = set; then
1229 CFLAGS="$ac_save_CFLAGS"
1230 elif test $ac_cv_prog_cc_g = yes; then
1231 if test "$GCC" = yes; then
1237 if test "$GCC" = yes; then
1245 # If the native compiler is GCC, we can enable warnings even in stage1.
1246 # That's useful for people building cross-compilers, or just running a
1248 if test "x$GCC" = "xyes"; then
1249 stage1_warn_cflags='$(WARN_CFLAGS)'
1251 stage1_warn_cflags=""
1255 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1256 echo "configure:1257: checking whether ${MAKE-make} sets \${MAKE}" >&5
1257 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1258 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1259 echo $ac_n "(cached) $ac_c" 1>&6
1261 cat > conftestmake <<\EOF
1263 @echo 'ac_maketemp="${MAKE}"'
1265 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1266 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1267 if test -n "$ac_maketemp"; then
1268 eval ac_cv_prog_make_${ac_make}_set=yes
1270 eval ac_cv_prog_make_${ac_make}_set=no
1274 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1275 echo "$ac_t""yes" 1>&6
1278 echo "$ac_t""no" 1>&6
1279 SET_MAKE="MAKE=${MAKE-make}"
1283 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1284 echo "configure:1285: checking whether a default assembler was specified" >&5
1285 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1286 if test x"$gas_flag" = x"no"; then
1287 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1289 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1292 echo "$ac_t""no" 1>&6
1295 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1296 echo "configure:1297: checking whether a default linker was specified" >&5
1297 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1298 if test x"$gnu_ld_flag" = x"no"; then
1299 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1301 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1304 echo "$ac_t""no" 1>&6
1307 # Find some useful tools
1308 for ac_prog in mawk gawk nawk awk
1310 # Extract the first word of "$ac_prog", so it can be a program name with args.
1311 set dummy $ac_prog; ac_word=$2
1312 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1313 echo "configure:1314: checking for $ac_word" >&5
1314 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1315 echo $ac_n "(cached) $ac_c" 1>&6
1317 if test -n "$AWK"; then
1318 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1320 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1322 for ac_dir in $ac_dummy; do
1323 test -z "$ac_dir" && ac_dir=.
1324 if test -f $ac_dir/$ac_word; then
1325 ac_cv_prog_AWK="$ac_prog"
1332 AWK="$ac_cv_prog_AWK"
1333 if test -n "$AWK"; then
1334 echo "$ac_t""$AWK" 1>&6
1336 echo "$ac_t""no" 1>&6
1339 test -n "$AWK" && break
1342 # Extract the first word of "flex", so it can be a program name with args.
1343 set dummy flex; ac_word=$2
1344 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1345 echo "configure:1346: checking for $ac_word" >&5
1346 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1347 echo $ac_n "(cached) $ac_c" 1>&6
1349 if test -n "$LEX"; then
1350 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1352 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1354 for ac_dir in $ac_dummy; do
1355 test -z "$ac_dir" && ac_dir=.
1356 if test -f $ac_dir/$ac_word; then
1357 ac_cv_prog_LEX="flex"
1362 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1365 LEX="$ac_cv_prog_LEX"
1366 if test -n "$LEX"; then
1367 echo "$ac_t""$LEX" 1>&6
1369 echo "$ac_t""no" 1>&6
1372 if test -z "$LEXLIB"
1378 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1379 echo "configure:1380: checking for yywrap in -l$ac_lib" >&5
1380 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1381 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1382 echo $ac_n "(cached) $ac_c" 1>&6
1384 ac_save_LIBS="$LIBS"
1385 LIBS="-l$ac_lib $LIBS"
1386 cat > conftest.$ac_ext <<EOF
1387 #line 1388 "configure"
1388 #include "confdefs.h"
1389 /* Override any gcc2 internal prototype to avoid an error. */
1390 /* We use char because int might match the return type of a gcc2
1391 builtin and then its argument prototype would still apply. */
1398 if { (eval echo configure:1399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1400 eval "ac_cv_lib_$ac_lib_var=yes"
1402 echo "configure: failed program was:" >&5
1403 cat conftest.$ac_ext >&5
1405 eval "ac_cv_lib_$ac_lib_var=no"
1408 LIBS="$ac_save_LIBS"
1411 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1412 echo "$ac_t""yes" 1>&6
1415 echo "$ac_t""no" 1>&6
1420 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1421 echo "configure:1422: checking whether ln works" >&5
1422 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1423 echo $ac_n "(cached) $ac_c" 1>&6
1425 rm -f conftestdata_t
1426 echo >conftestdata_f
1427 if ln conftestdata_f conftestdata_t 2>/dev/null
1431 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1433 gcc_cv_prog_LN="ln -s"
1438 rm -f conftestdata_f conftestdata_t
1441 LN="$gcc_cv_prog_LN"
1442 if test "$gcc_cv_prog_LN" = "ln"; then
1443 echo "$ac_t""yes" 1>&6
1445 if test "$gcc_cv_prog_LN" = "ln -s"; then
1446 echo "$ac_t""no, using ln -s" 1>&6
1448 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1452 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1453 echo "configure:1454: checking whether ln -s works" >&5
1454 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1455 echo $ac_n "(cached) $ac_c" 1>&6
1457 rm -f conftestdata_t
1458 echo >conftestdata_f
1459 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1461 gcc_cv_prog_LN_S="ln -s"
1463 if ln conftestdata_f conftestdata_t 2>/dev/null
1470 rm -f conftestdata_f conftestdata_t
1473 LN_S="$gcc_cv_prog_LN_S"
1474 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1475 echo "$ac_t""yes" 1>&6
1477 if test "$gcc_cv_prog_LN_S" = "ln"; then
1478 echo "$ac_t""no, using ln" 1>&6
1480 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1484 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1485 echo "configure:1486: checking for volatile" >&5
1486 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1487 echo $ac_n "(cached) $ac_c" 1>&6
1489 cat > conftest.$ac_ext <<EOF
1490 #line 1491 "configure"
1491 #include "confdefs.h"
1497 if { (eval echo configure:1498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1499 gcc_cv_c_volatile=yes
1501 echo "configure: failed program was:" >&5
1502 cat conftest.$ac_ext >&5
1504 gcc_cv_c_volatile=no
1509 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1510 if test $gcc_cv_c_volatile = yes ; then
1511 cat >> confdefs.h <<\EOF
1512 #define HAVE_VOLATILE 1
1517 # Extract the first word of "ranlib", so it can be a program name with args.
1518 set dummy ranlib; ac_word=$2
1519 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1520 echo "configure:1521: checking for $ac_word" >&5
1521 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1522 echo $ac_n "(cached) $ac_c" 1>&6
1524 if test -n "$RANLIB"; then
1525 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1529 for ac_dir in $ac_dummy; do
1530 test -z "$ac_dir" && ac_dir=.
1531 if test -f $ac_dir/$ac_word; then
1532 ac_cv_prog_RANLIB="ranlib"
1537 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1540 RANLIB="$ac_cv_prog_RANLIB"
1541 if test -n "$RANLIB"; then
1542 echo "$ac_t""$RANLIB" 1>&6
1544 echo "$ac_t""no" 1>&6
1547 for ac_prog in 'bison -y' byacc
1549 # Extract the first word of "$ac_prog", so it can be a program name with args.
1550 set dummy $ac_prog; ac_word=$2
1551 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1552 echo "configure:1553: checking for $ac_word" >&5
1553 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1554 echo $ac_n "(cached) $ac_c" 1>&6
1556 if test -n "$YACC"; then
1557 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1559 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1561 for ac_dir in $ac_dummy; do
1562 test -z "$ac_dir" && ac_dir=.
1563 if test -f $ac_dir/$ac_word; then
1564 ac_cv_prog_YACC="$ac_prog"
1571 YACC="$ac_cv_prog_YACC"
1572 if test -n "$YACC"; then
1573 echo "$ac_t""$YACC" 1>&6
1575 echo "$ac_t""no" 1>&6
1578 test -n "$YACC" && break
1580 test -n "$YACC" || YACC="yacc"
1582 # Find a good install program. We prefer a C program (faster),
1583 # so one script is as good as another. But avoid the broken or
1584 # incompatible versions:
1585 # SysV /etc/install, /usr/sbin/install
1586 # SunOS /usr/etc/install
1587 # IRIX /sbin/install
1589 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1590 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1591 # ./install, which can be erroneously created by make from ./install.sh.
1592 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1593 echo "configure:1594: checking for a BSD compatible install" >&5
1594 if test -z "$INSTALL"; then
1595 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1596 echo $ac_n "(cached) $ac_c" 1>&6
1598 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1599 for ac_dir in $PATH; do
1600 # Account for people who put trailing slashes in PATH elements.
1602 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1604 # OSF1 and SCO ODT 3.0 have their own names for install.
1605 for ac_prog in ginstall scoinst install; do
1606 if test -f $ac_dir/$ac_prog; then
1607 if test $ac_prog = install &&
1608 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1609 # AIX install. It has an incompatible calling convention.
1610 # OSF/1 installbsd also uses dspmsg, but is usable.
1613 ac_cv_path_install="$ac_dir/$ac_prog -c"
1624 if test "${ac_cv_path_install+set}" = set; then
1625 INSTALL="$ac_cv_path_install"
1627 # As a last resort, use the slow shell script. We don't cache a
1628 # path for INSTALL within a source directory, because that will
1629 # break other packages using the cache if that directory is
1630 # removed, or if the path is relative.
1631 INSTALL="$ac_install_sh"
1634 echo "$ac_t""$INSTALL" 1>&6
1636 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1637 # It thinks the first close brace ends the variable substitution.
1638 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1640 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1643 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1644 echo "configure:1645: checking how to run the C preprocessor" >&5
1645 # On Suns, sometimes $CPP names a directory.
1646 if test -n "$CPP" && test -d "$CPP"; then
1649 if test -z "$CPP"; then
1650 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1651 echo $ac_n "(cached) $ac_c" 1>&6
1653 # This must be in double quotes, not single quotes, because CPP may get
1654 # substituted into the Makefile and "${CC-cc}" will confuse make.
1656 # On the NeXT, cc -E runs the code through the compiler's parser,
1657 # not just through cpp.
1658 cat > conftest.$ac_ext <<EOF
1659 #line 1660 "configure"
1660 #include "confdefs.h"
1664 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1665 { (eval echo configure:1666: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1666 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1667 if test -z "$ac_err"; then
1671 echo "configure: failed program was:" >&5
1672 cat conftest.$ac_ext >&5
1674 CPP="${CC-cc} -E -traditional-cpp"
1675 cat > conftest.$ac_ext <<EOF
1676 #line 1677 "configure"
1677 #include "confdefs.h"
1681 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1682 { (eval echo configure:1683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1683 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1684 if test -z "$ac_err"; then
1688 echo "configure: failed program was:" >&5
1689 cat conftest.$ac_ext >&5
1691 CPP="${CC-cc} -nologo -E"
1692 cat > conftest.$ac_ext <<EOF
1693 #line 1694 "configure"
1694 #include "confdefs.h"
1698 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1699 { (eval echo configure:1700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1700 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1701 if test -z "$ac_err"; then
1705 echo "configure: failed program was:" >&5
1706 cat conftest.$ac_ext >&5
1715 ac_cv_prog_CPP="$CPP"
1717 CPP="$ac_cv_prog_CPP"
1719 ac_cv_prog_CPP="$CPP"
1721 echo "$ac_t""$CPP" 1>&6
1723 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1724 echo "configure:1725: checking for ANSI C header files" >&5
1725 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1726 echo $ac_n "(cached) $ac_c" 1>&6
1728 cat > conftest.$ac_ext <<EOF
1729 #line 1730 "configure"
1730 #include "confdefs.h"
1736 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1737 { (eval echo configure:1738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1738 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1739 if test -z "$ac_err"; then
1741 ac_cv_header_stdc=yes
1744 echo "configure: failed program was:" >&5
1745 cat conftest.$ac_ext >&5
1747 ac_cv_header_stdc=no
1751 if test $ac_cv_header_stdc = yes; then
1752 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1753 cat > conftest.$ac_ext <<EOF
1754 #line 1755 "configure"
1755 #include "confdefs.h"
1758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1759 egrep "memchr" >/dev/null 2>&1; then
1763 ac_cv_header_stdc=no
1769 if test $ac_cv_header_stdc = yes; then
1770 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1771 cat > conftest.$ac_ext <<EOF
1772 #line 1773 "configure"
1773 #include "confdefs.h"
1776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1777 egrep "free" >/dev/null 2>&1; then
1781 ac_cv_header_stdc=no
1787 if test $ac_cv_header_stdc = yes; then
1788 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1789 if test "$cross_compiling" = yes; then
1792 cat > conftest.$ac_ext <<EOF
1793 #line 1794 "configure"
1794 #include "confdefs.h"
1796 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1797 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1798 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1799 int main () { int i; for (i = 0; i < 256; i++)
1800 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1804 if { (eval echo configure:1805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1808 echo "configure: failed program was:" >&5
1809 cat conftest.$ac_ext >&5
1811 ac_cv_header_stdc=no
1819 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1820 if test $ac_cv_header_stdc = yes; then
1821 cat >> confdefs.h <<\EOF
1822 #define STDC_HEADERS 1
1827 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1828 echo "configure:1829: checking whether time.h and sys/time.h may both be included" >&5
1829 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1830 echo $ac_n "(cached) $ac_c" 1>&6
1832 cat > conftest.$ac_ext <<EOF
1833 #line 1834 "configure"
1834 #include "confdefs.h"
1835 #include <sys/types.h>
1836 #include <sys/time.h>
1842 if { (eval echo configure:1843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1844 ac_cv_header_time=yes
1846 echo "configure: failed program was:" >&5
1847 cat conftest.$ac_ext >&5
1849 ac_cv_header_time=no
1854 echo "$ac_t""$ac_cv_header_time" 1>&6
1855 if test $ac_cv_header_time = yes; then
1856 cat >> confdefs.h <<\EOF
1857 #define TIME_WITH_SYS_TIME 1
1862 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
1863 echo "configure:1864: checking whether string.h and strings.h may both be included" >&5
1864 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
1865 echo $ac_n "(cached) $ac_c" 1>&6
1867 cat > conftest.$ac_ext <<EOF
1868 #line 1869 "configure"
1869 #include "confdefs.h"
1871 #include <strings.h>
1876 if { (eval echo configure:1877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1878 gcc_cv_header_string=yes
1880 echo "configure: failed program was:" >&5
1881 cat conftest.$ac_ext >&5
1883 gcc_cv_header_string=no
1888 echo "$ac_t""$gcc_cv_header_string" 1>&6
1889 if test $gcc_cv_header_string = yes; then
1890 cat >> confdefs.h <<\EOF
1891 #define STRING_WITH_STRINGS 1
1896 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1897 echo "configure:1898: checking for sys/wait.h that is POSIX.1 compatible" >&5
1898 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1899 echo $ac_n "(cached) $ac_c" 1>&6
1901 cat > conftest.$ac_ext <<EOF
1902 #line 1903 "configure"
1903 #include "confdefs.h"
1904 #include <sys/types.h>
1905 #include <sys/wait.h>
1907 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1910 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1915 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1918 if { (eval echo configure:1919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1920 ac_cv_header_sys_wait_h=yes
1922 echo "configure: failed program was:" >&5
1923 cat conftest.$ac_ext >&5
1925 ac_cv_header_sys_wait_h=no
1930 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1931 if test $ac_cv_header_sys_wait_h = yes; then
1932 cat >> confdefs.h <<\EOF
1933 #define HAVE_SYS_WAIT_H 1
1938 for ac_hdr in limits.h stddef.h string.h strings.h stdlib.h time.h fcntl.h unistd.h stab.h sys/file.h sys/time.h sys/resource.h sys/param.h sys/times.h sys/stat.h direct.h malloc.h
1940 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1941 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1942 echo "configure:1943: checking for $ac_hdr" >&5
1943 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1944 echo $ac_n "(cached) $ac_c" 1>&6
1946 cat > conftest.$ac_ext <<EOF
1947 #line 1948 "configure"
1948 #include "confdefs.h"
1951 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1952 { (eval echo configure:1953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1953 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1954 if test -z "$ac_err"; then
1956 eval "ac_cv_header_$ac_safe=yes"
1959 echo "configure: failed program was:" >&5
1960 cat conftest.$ac_ext >&5
1962 eval "ac_cv_header_$ac_safe=no"
1966 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1967 echo "$ac_t""yes" 1>&6
1968 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1969 cat >> confdefs.h <<EOF
1970 #define $ac_tr_hdr 1
1974 echo "$ac_t""no" 1>&6
1979 # Check for thread headers.
1980 ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'`
1981 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
1982 echo "configure:1983: checking for thread.h" >&5
1983 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1984 echo $ac_n "(cached) $ac_c" 1>&6
1986 cat > conftest.$ac_ext <<EOF
1987 #line 1988 "configure"
1988 #include "confdefs.h"
1991 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1992 { (eval echo configure:1993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1993 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1994 if test -z "$ac_err"; then
1996 eval "ac_cv_header_$ac_safe=yes"
1999 echo "configure: failed program was:" >&5
2000 cat conftest.$ac_ext >&5
2002 eval "ac_cv_header_$ac_safe=no"
2006 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2007 echo "$ac_t""yes" 1>&6
2010 echo "$ac_t""no" 1>&6
2014 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2015 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2016 echo "configure:2017: checking for pthread.h" >&5
2017 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2018 echo $ac_n "(cached) $ac_c" 1>&6
2020 cat > conftest.$ac_ext <<EOF
2021 #line 2022 "configure"
2022 #include "confdefs.h"
2023 #include <pthread.h>
2025 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2026 { (eval echo configure:2027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2027 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2028 if test -z "$ac_err"; then
2030 eval "ac_cv_header_$ac_safe=yes"
2033 echo "configure: failed program was:" >&5
2034 cat conftest.$ac_ext >&5
2036 eval "ac_cv_header_$ac_safe=no"
2040 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2041 echo "$ac_t""yes" 1>&6
2044 echo "$ac_t""no" 1>&6
2049 # See if GNAT has been installed
2050 # Extract the first word of "gnatbind", so it can be a program name with args.
2051 set dummy gnatbind; ac_word=$2
2052 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2053 echo "configure:2054: checking for $ac_word" >&5
2054 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2055 echo $ac_n "(cached) $ac_c" 1>&6
2057 if test -n "$gnat"; then
2058 ac_cv_prog_gnat="$gnat" # Let the user override the test.
2060 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2062 for ac_dir in $ac_dummy; do
2063 test -z "$ac_dir" && ac_dir=.
2064 if test -f $ac_dir/$ac_word; then
2065 ac_cv_prog_gnat="yes"
2070 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat="no"
2073 gnat="$ac_cv_prog_gnat"
2074 if test -n "$gnat"; then
2075 echo "$ac_t""$gnat" 1>&6
2077 echo "$ac_t""no" 1>&6
2081 # See if the system preprocessor understands the ANSI C preprocessor
2082 # stringification operator.
2083 echo $ac_n "checking whether cpp understands the stringify operator""... $ac_c" 1>&6
2084 echo "configure:2085: checking whether cpp understands the stringify operator" >&5
2085 if eval "test \"`echo '$''{'gcc_cv_c_have_stringify'+set}'`\" = set"; then
2086 echo $ac_n "(cached) $ac_c" 1>&6
2088 cat > conftest.$ac_ext <<EOF
2089 #line 2090 "configure"
2090 #include "confdefs.h"
2094 char *test = S(foo);
2097 if { (eval echo configure:2098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2099 gcc_cv_c_have_stringify=yes
2101 echo "configure: failed program was:" >&5
2102 cat conftest.$ac_ext >&5
2104 gcc_cv_c_have_stringify=no
2109 echo "$ac_t""$gcc_cv_c_have_stringify" 1>&6
2110 if test $gcc_cv_c_have_stringify = yes; then
2111 cat >> confdefs.h <<\EOF
2112 #define HAVE_CPP_STRINGIFY 1
2117 # Use <inttypes.h> only if it exists,
2118 # doesn't clash with <sys/types.h>, and declares intmax_t.
2119 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2120 echo "configure:2121: checking for inttypes.h" >&5
2121 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2122 echo $ac_n "(cached) $ac_c" 1>&6
2124 cat > conftest.$ac_ext <<EOF
2125 #line 2126 "configure"
2126 #include "confdefs.h"
2127 #include <sys/types.h>
2128 #include <inttypes.h>
2133 if { (eval echo configure:2134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2135 gcc_cv_header_inttypes_h=yes
2137 echo "configure: failed program was:" >&5
2138 cat conftest.$ac_ext >&5
2140 gcc_cv_header_inttypes_h=no
2145 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2146 if test $gcc_cv_header_inttypes_h = yes; then
2147 cat >> confdefs.h <<\EOF
2148 #define HAVE_INTTYPES_H 1
2153 for ac_func in strtoul bsearch strerror putenv popen bcopy bzero bcmp \
2154 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
2155 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2158 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2159 echo "configure:2160: checking for $ac_func" >&5
2160 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2161 echo $ac_n "(cached) $ac_c" 1>&6
2163 cat > conftest.$ac_ext <<EOF
2164 #line 2165 "configure"
2165 #include "confdefs.h"
2166 /* System header to define __stub macros and hopefully few prototypes,
2167 which can conflict with char $ac_func(); below. */
2169 /* Override any gcc2 internal prototype to avoid an error. */
2170 /* We use char because int might match the return type of a gcc2
2171 builtin and then its argument prototype would still apply. */
2176 /* The GNU C library defines this for functions which it implements
2177 to always fail with ENOSYS. Some functions are actually named
2178 something starting with __ and the normal name is an alias. */
2179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2187 if { (eval echo configure:2188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2189 eval "ac_cv_func_$ac_func=yes"
2191 echo "configure: failed program was:" >&5
2192 cat conftest.$ac_ext >&5
2194 eval "ac_cv_func_$ac_func=no"
2199 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2200 echo "$ac_t""yes" 1>&6
2201 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2202 cat >> confdefs.h <<EOF
2203 #define $ac_tr_func 1
2207 echo "$ac_t""no" 1>&6
2212 # Make sure wchar_t is available
2213 #AC_CHECK_TYPE(wchar_t, unsigned int)
2215 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2216 echo "configure:2217: checking for vprintf" >&5
2217 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2218 echo $ac_n "(cached) $ac_c" 1>&6
2220 cat > conftest.$ac_ext <<EOF
2221 #line 2222 "configure"
2222 #include "confdefs.h"
2223 /* System header to define __stub macros and hopefully few prototypes,
2224 which can conflict with char vprintf(); below. */
2226 /* Override any gcc2 internal prototype to avoid an error. */
2227 /* We use char because int might match the return type of a gcc2
2228 builtin and then its argument prototype would still apply. */
2233 /* The GNU C library defines this for functions which it implements
2234 to always fail with ENOSYS. Some functions are actually named
2235 something starting with __ and the normal name is an alias. */
2236 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2244 if { (eval echo configure:2245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2246 eval "ac_cv_func_vprintf=yes"
2248 echo "configure: failed program was:" >&5
2249 cat conftest.$ac_ext >&5
2251 eval "ac_cv_func_vprintf=no"
2256 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2257 echo "$ac_t""yes" 1>&6
2258 cat >> confdefs.h <<\EOF
2259 #define HAVE_VPRINTF 1
2263 echo "$ac_t""no" 1>&6
2266 if test "$ac_cv_func_vprintf" != yes; then
2267 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2268 echo "configure:2269: checking for _doprnt" >&5
2269 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2270 echo $ac_n "(cached) $ac_c" 1>&6
2272 cat > conftest.$ac_ext <<EOF
2273 #line 2274 "configure"
2274 #include "confdefs.h"
2275 /* System header to define __stub macros and hopefully few prototypes,
2276 which can conflict with char _doprnt(); below. */
2278 /* Override any gcc2 internal prototype to avoid an error. */
2279 /* We use char because int might match the return type of a gcc2
2280 builtin and then its argument prototype would still apply. */
2285 /* The GNU C library defines this for functions which it implements
2286 to always fail with ENOSYS. Some functions are actually named
2287 something starting with __ and the normal name is an alias. */
2288 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2296 if { (eval echo configure:2297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2298 eval "ac_cv_func__doprnt=yes"
2300 echo "configure: failed program was:" >&5
2301 cat conftest.$ac_ext >&5
2303 eval "ac_cv_func__doprnt=no"
2308 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2309 echo "$ac_t""yes" 1>&6
2310 cat >> confdefs.h <<\EOF
2311 #define HAVE_DOPRNT 1
2315 echo "$ac_t""no" 1>&6
2322 if test $ac_cv_func_vprintf != yes ; then
2324 if test $ac_cv_func__doprnt != yes ; then
2331 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2332 echo "configure:2333: checking whether the printf functions support %p" >&5
2333 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2334 echo $ac_n "(cached) $ac_c" 1>&6
2336 if test "$cross_compiling" = yes; then
2337 gcc_cv_func_printf_ptr=no
2339 cat > conftest.$ac_ext <<EOF
2340 #line 2341 "configure"
2341 #include "confdefs.h"
2347 char *p = buf, *q = NULL;
2348 sprintf(buf, "%p", p);
2349 sscanf(buf, "%p", &q);
2353 if { (eval echo configure:2354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2355 gcc_cv_func_printf_ptr=yes
2357 echo "configure: failed program was:" >&5
2358 cat conftest.$ac_ext >&5
2360 gcc_cv_func_printf_ptr=no
2365 rm -f core core.* *.core
2368 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2369 if test $gcc_cv_func_printf_ptr = yes ; then
2370 cat >> confdefs.h <<\EOF
2371 #define HAVE_PRINTF_PTR 1
2379 # Under some versions of uwin, vfork is notoriously buggy and the test
2380 # can hang configure; on other versions, vfork exists just as a stub.
2381 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2382 ac_cv_func_vfork_works=no
2385 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2386 echo "configure:2387: checking for pid_t" >&5
2387 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2388 echo $ac_n "(cached) $ac_c" 1>&6
2390 cat > conftest.$ac_ext <<EOF
2391 #line 2392 "configure"
2392 #include "confdefs.h"
2393 #include <sys/types.h>
2399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2400 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2402 ac_cv_type_pid_t=yes
2410 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2411 if test $ac_cv_type_pid_t = no; then
2412 cat >> confdefs.h <<\EOF
2418 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2419 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2420 echo "configure:2421: checking for vfork.h" >&5
2421 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2422 echo $ac_n "(cached) $ac_c" 1>&6
2424 cat > conftest.$ac_ext <<EOF
2425 #line 2426 "configure"
2426 #include "confdefs.h"
2429 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2430 { (eval echo configure:2431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2431 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2432 if test -z "$ac_err"; then
2434 eval "ac_cv_header_$ac_safe=yes"
2437 echo "configure: failed program was:" >&5
2438 cat conftest.$ac_ext >&5
2440 eval "ac_cv_header_$ac_safe=no"
2444 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2445 echo "$ac_t""yes" 1>&6
2446 cat >> confdefs.h <<\EOF
2447 #define HAVE_VFORK_H 1
2451 echo "$ac_t""no" 1>&6
2454 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2455 echo "configure:2456: checking for working vfork" >&5
2456 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2457 echo $ac_n "(cached) $ac_c" 1>&6
2459 if test "$cross_compiling" = yes; then
2460 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2461 echo "configure:2462: checking for vfork" >&5
2462 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2463 echo $ac_n "(cached) $ac_c" 1>&6
2465 cat > conftest.$ac_ext <<EOF
2466 #line 2467 "configure"
2467 #include "confdefs.h"
2468 /* System header to define __stub macros and hopefully few prototypes,
2469 which can conflict with char vfork(); below. */
2471 /* Override any gcc2 internal prototype to avoid an error. */
2472 /* We use char because int might match the return type of a gcc2
2473 builtin and then its argument prototype would still apply. */
2478 /* The GNU C library defines this for functions which it implements
2479 to always fail with ENOSYS. Some functions are actually named
2480 something starting with __ and the normal name is an alias. */
2481 #if defined (__stub_vfork) || defined (__stub___vfork)
2489 if { (eval echo configure:2490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2491 eval "ac_cv_func_vfork=yes"
2493 echo "configure: failed program was:" >&5
2494 cat conftest.$ac_ext >&5
2496 eval "ac_cv_func_vfork=no"
2501 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2502 echo "$ac_t""yes" 1>&6
2505 echo "$ac_t""no" 1>&6
2508 ac_cv_func_vfork_works=$ac_cv_func_vfork
2510 cat > conftest.$ac_ext <<EOF
2511 #line 2512 "configure"
2512 #include "confdefs.h"
2513 /* Thanks to Paul Eggert for this test. */
2515 #include <sys/types.h>
2516 #include <sys/stat.h>
2517 #ifdef HAVE_UNISTD_H
2523 /* On some sparc systems, changes by the child to local and incoming
2524 argument registers are propagated back to the parent.
2525 The compiler is told about this with #include <vfork.h>,
2526 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2527 Test for this by using a static variable whose address
2528 is put into a register that is clobbered by the vfork. */
2531 sparc_address_test (int arg)
2533 sparc_address_test (arg) int arg;
2551 pid_t parent = getpid ();
2554 sparc_address_test ();
2559 /* Here is another test for sparc vfork register problems.
2560 This test uses lots of local variables, at least
2561 as many local variables as main has allocated so far
2562 including compiler temporaries. 4 locals are enough for
2563 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2564 A buggy compiler should reuse the register of parent
2565 for one of the local variables, since it will think that
2566 parent can't possibly be used any more in this routine.
2567 Assigning to the local variable will thus munge parent
2568 in the parent process. */
2570 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2571 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2572 /* Convince the compiler that p..p7 are live; otherwise, it might
2573 use the same hardware register for all 8 local variables. */
2574 if (p != p1 || p != p2 || p != p3 || p != p4
2575 || p != p5 || p != p6 || p != p7)
2578 /* On some systems (e.g. IRIX 3.3),
2579 vfork doesn't separate parent from child file descriptors.
2580 If the child closes a descriptor before it execs or exits,
2581 this munges the parent's descriptor as well.
2582 Test for this by closing stdout in the child. */
2583 _exit(close(fileno(stdout)) != 0);
2588 while (wait(&status) != child)
2591 /* Was there some problem with vforking? */
2594 /* Did the child fail? (This shouldn't happen.) */
2597 /* Did the vfork/compiler bug occur? */
2598 || parent != getpid()
2600 /* Did the file descriptor bug occur? */
2601 || fstat(fileno(stdout), &st) != 0
2606 if { (eval echo configure:2607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2608 ac_cv_func_vfork_works=yes
2610 echo "configure: failed program was:" >&5
2611 cat conftest.$ac_ext >&5
2613 ac_cv_func_vfork_works=no
2620 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2621 if test $ac_cv_func_vfork_works = no; then
2622 cat >> confdefs.h <<\EOF
2629 for ac_func in bcopy bzero bcmp \
2630 index rindex getenv atol sbrk abort atof strerror getcwd getwd \
2631 strsignal putc_unlocked fputs_unlocked strstr
2633 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2634 echo "configure:2635: checking whether $ac_func must be declared" >&5
2635 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2636 echo $ac_n "(cached) $ac_c" 1>&6
2638 cat > conftest.$ac_ext <<EOF
2639 #line 2640 "configure"
2640 #include "confdefs.h"
2643 #ifdef STRING_WITH_STRINGS
2644 # include <string.h>
2645 # include <strings.h>
2647 # ifdef HAVE_STRING_H
2648 # include <string.h>
2650 # ifdef HAVE_STRINGS_H
2651 # include <strings.h>
2655 #ifdef HAVE_STDLIB_H
2658 #ifdef HAVE_UNISTD_H
2662 #define rindex strrchr
2665 #define index strchr
2669 char *(*pfn) = (char *(*)) $ac_func
2672 if { (eval echo configure:2673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2674 eval "gcc_cv_decl_needed_$ac_func=no"
2676 echo "configure: failed program was:" >&5
2677 cat conftest.$ac_ext >&5
2679 eval "gcc_cv_decl_needed_$ac_func=yes"
2684 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2685 echo "$ac_t""yes" 1>&6
2686 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2687 cat >> confdefs.h <<EOF
2688 #define $gcc_tr_decl 1
2692 echo "$ac_t""no" 1>&6
2698 for ac_func in malloc realloc calloc free
2700 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2701 echo "configure:2702: checking whether $ac_func must be declared" >&5
2702 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2703 echo $ac_n "(cached) $ac_c" 1>&6
2705 cat > conftest.$ac_ext <<EOF
2706 #line 2707 "configure"
2707 #include "confdefs.h"
2710 #ifdef STRING_WITH_STRINGS
2711 # include <string.h>
2712 # include <strings.h>
2714 # ifdef HAVE_STRING_H
2715 # include <string.h>
2717 # ifdef HAVE_STRINGS_H
2718 # include <strings.h>
2722 #ifdef HAVE_STDLIB_H
2725 #ifdef HAVE_UNISTD_H
2729 #define rindex strrchr
2732 #define index strchr
2734 #ifdef HAVE_MALLOC_H
2739 char *(*pfn) = (char *(*)) $ac_func
2742 if { (eval echo configure:2743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2744 eval "gcc_cv_decl_needed_$ac_func=no"
2746 echo "configure: failed program was:" >&5
2747 cat conftest.$ac_ext >&5
2749 eval "gcc_cv_decl_needed_$ac_func=yes"
2754 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2755 echo "$ac_t""yes" 1>&6
2756 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2757 cat >> confdefs.h <<EOF
2758 #define $gcc_tr_decl 1
2762 echo "$ac_t""no" 1>&6
2768 for ac_func in getrlimit setrlimit
2770 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2771 echo "configure:2772: checking whether $ac_func must be declared" >&5
2772 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2773 echo $ac_n "(cached) $ac_c" 1>&6
2775 cat > conftest.$ac_ext <<EOF
2776 #line 2777 "configure"
2777 #include "confdefs.h"
2780 #ifdef STRING_WITH_STRINGS
2781 # include <string.h>
2782 # include <strings.h>
2784 # ifdef HAVE_STRING_H
2785 # include <string.h>
2787 # ifdef HAVE_STRINGS_H
2788 # include <strings.h>
2792 #ifdef HAVE_STDLIB_H
2795 #ifdef HAVE_UNISTD_H
2799 #define rindex strrchr
2802 #define index strchr
2804 #include <sys/types.h>
2805 #ifdef HAVE_SYS_RESOURCE_H
2806 #include <sys/resource.h>
2810 char *(*pfn) = (char *(*)) $ac_func
2813 if { (eval echo configure:2814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2815 eval "gcc_cv_decl_needed_$ac_func=no"
2817 echo "configure: failed program was:" >&5
2818 cat conftest.$ac_ext >&5
2820 eval "gcc_cv_decl_needed_$ac_func=yes"
2825 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2826 echo "$ac_t""yes" 1>&6
2827 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2828 cat >> confdefs.h <<EOF
2829 #define $gcc_tr_decl 1
2833 echo "$ac_t""no" 1>&6
2839 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2840 echo "configure:2841: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2841 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2842 echo $ac_n "(cached) $ac_c" 1>&6
2844 cat > conftest.$ac_ext <<EOF
2845 #line 2846 "configure"
2846 #include "confdefs.h"
2847 #include <sys/types.h>
2849 /* NetBSD declares sys_siglist in unistd.h. */
2850 #ifdef HAVE_UNISTD_H
2854 char *msg = *(sys_siglist + 1);
2857 if { (eval echo configure:2858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2859 ac_cv_decl_sys_siglist=yes
2861 echo "configure: failed program was:" >&5
2862 cat conftest.$ac_ext >&5
2864 ac_cv_decl_sys_siglist=no
2869 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2870 if test $ac_cv_decl_sys_siglist = yes; then
2871 cat >> confdefs.h <<\EOF
2872 #define SYS_SIGLIST_DECLARED 1
2878 # mkdir takes a single argument on some systems.
2879 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
2880 echo "configure:2881: checking if mkdir takes one argument" >&5
2881 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
2882 echo $ac_n "(cached) $ac_c" 1>&6
2884 cat > conftest.$ac_ext <<EOF
2885 #line 2886 "configure"
2886 #include "confdefs.h"
2888 #include <sys/types.h>
2889 #ifdef HAVE_SYS_STAT_H
2890 # include <sys/stat.h>
2892 #ifdef HAVE_UNISTD_H
2893 # include <unistd.h>
2895 #ifdef HAVE_DIRECT_H
2896 # include <direct.h>
2902 if { (eval echo configure:2903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2904 gcc_cv_mkdir_takes_one_arg=no
2906 echo "configure: failed program was:" >&5
2907 cat conftest.$ac_ext >&5
2909 gcc_cv_mkdir_takes_one_arg=yes
2914 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
2915 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
2916 cat >> confdefs.h <<\EOF
2917 #define MKDIR_TAKES_ONE_ARG 1
2931 build_install_headers_dir=install-headers-tar
2936 host_truncate_target=
2939 # Decode the host machine, then the target machine.
2940 # For the host machine, we save the xm_file variable as host_xm_file;
2941 # then we decode the target machine and forget everything else
2942 # that came from the host machine.
2943 for machine in $build $host $target; do
2957 # Set this to force installation and use of collect2.
2959 # Set this to override the default target model.
2961 # Set this to control how the header file directory is installed.
2962 install_headers_dir=install-headers-tar
2963 # Set this to a non-empty list of args to pass to cpp if the target
2964 # wants its .md file passed through cpp.
2966 # Set this if directory names should be truncated to 14 characters.
2968 # Set this if gdb needs a dir command with `dirname $out_file`
2969 gdb_needs_out_file_path=
2970 # Set this if the build machine requires executables to have a
2973 # Set this to control which thread package will be used.
2975 # Reinitialize these from the flag values every loop pass, since some
2976 # configure entries modify them.
2978 gnu_ld="$gnu_ld_flag"
2979 enable_threads=$enable_threads_flag
2981 # Set default cpu_type, tm_file and xm_file so it can be updated in
2982 # each machine entry.
2983 cpu_type=`echo $machine | sed 's/-.*$//'`
3017 tm_file=${cpu_type}/${cpu_type}.h
3018 xm_file=${cpu_type}/xm-${cpu_type}.h
3020 # On a.out targets, we need to use collect2.
3027 # Common parts for linux-gnu and openbsd systems
3030 xm_defines="HAVE_ATEXIT POSIX BSTRING"
3033 tm_file=${cpu_type}/openbsd.h
3034 tmake_file="t-libc-ok t-openbsd"
3035 # avoid surprises, always provide an xm-openbsd file
3036 xm_file=${cpu_type}/xm-openbsd.h
3037 # don't depend on processor x-fragments as well
3039 if test x$enable_threads = xyes; then
3041 tmake_file="${tmake_file} t-openbsd-thread"
3047 # Support site-specific machine types.
3049 cpu_type=`echo $machine | sed -e 's/-.*//'`
3050 rest=`echo $machine | sed -e "s/$cpu_type-//"`
3051 xm_file=${cpu_type}/xm-$rest.h
3052 tm_file=${cpu_type}/$rest.h
3053 if test -f $srcdir/config/${cpu_type}/x-$rest; \
3054 then xmake_file=${cpu_type}/x-$rest; \
3057 if test -f $srcdir/config/${cpu_type}/t-$rest; \
3058 then tmake_file=${cpu_type}/t-$rest; \
3064 a29k-*-bsd* | a29k-*-sym1*)
3065 tm_file="${tm_file} a29k/unix.h"
3067 xmake_file=a29k/x-unix
3070 a29k-*-udi | a29k-*-coff)
3071 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
3072 tmake_file=a29k/t-a29kbare
3075 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3076 tmake_file=a29k/t-vx29k
3077 extra_parts="crtbegin.o crtend.o"
3078 thread_file='vxworks'
3080 a29k-*-*) # Default a29k environment.
3084 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
3086 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
3087 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
3089 # GAS + IEEE_CONFORMANT
3090 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
3092 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
3093 xmake_file="x-interix alpha/t-pe"
3094 tmake_file="alpha/t-interix alpha/t-ieee"
3095 if test x$enable_threads = xyes ; then
3098 if test x$stabs = xyes ; then
3099 tm_file="${tm_file} dbxcoff.h"
3101 #prefix='$$INTERIX_ROOT'/usr/contrib
3102 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3104 alpha*-*-linux-gnuecoff*)
3105 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3106 target_cpu_default="MASK_GAS"
3107 tmake_file="alpha/t-ieee"
3112 alpha*-*-linux-gnulibc1*)
3113 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3114 target_cpu_default="MASK_GAS"
3115 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe alpha/t-ieee"
3116 extra_parts="crtbegin.o crtend.o"
3119 if test x$enable_threads = xyes; then
3123 alpha*-*-linux-gnu*)
3124 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3125 target_cpu_default="MASK_GAS"
3126 tmake_file="t-linux alpha/t-linux alpha/t-crtbe alpha/t-ieee"
3127 extra_parts="crtbegin.o crtend.o"
3130 if test x$enable_threads = xyes; then
3135 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3136 target_cpu_default="MASK_GAS"
3137 tmake_file="alpha/t-crtbe alpha/t-ieee"
3138 extra_parts="crtbegin.o crtend.o"
3144 # default x-alpha is only appropriate for dec-osf.
3145 target_cpu_default="MASK_GAS"
3146 tmake_file="alpha/t-ieee"
3150 if test x$stabs = xyes
3152 tm_file="${tm_file} dbx.h"
3154 if test x$gas != xyes
3156 extra_passes="mips-tfile mips-tdump"
3159 tmake_file="alpha/t-ieee"
3162 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3165 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
3168 tm_file="${tm_file} alpha/osf.h"
3169 # Some versions of OSF4 (specifically X4.0-9 296.7) have
3170 # a broken tar, so we use cpio instead.
3171 install_headers_dir=install-headers-cpio
3174 tm_file="${tm_file} alpha/osf.h"
3178 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
3179 target_cpu_default=MASK_SUPPORT_ARCH
3184 tm_file="${tm_file} dbx.h alpha/vxworks.h"
3185 tmake_file="alpha/t-ieee"
3188 extra_passes="mips-tfile mips-tdump"
3191 thread_file='vxworks'
3194 tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3195 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3196 tmake_file="t-libc-ok alpha/t-ieee"
3197 xmake_file=winnt/x-winnt
3198 extra_host_objs=oldnames.o
3199 extra_gcc_objs="spawnv.o oldnames.o"
3200 if test x$gnu_ld != xyes
3202 extra_programs=ld.exe
3204 if test x$enable_threads = xyes; then
3210 xm_file="${xm_file} alpha/xm-vms.h"
3211 tmake_file="alpha/t-vms alpha/t-ieee"
3214 extra_parts="crtinit.o crtfini.o"
3216 arm-*-coff* | armel-*-coff*)
3218 tmake_file=arm/t-bare
3222 tmake_file=arm/t-bare
3223 thread_file='vxworks'
3225 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
3226 tm_file=arm/riscix1-1.h
3229 arm-*-riscix*) # Acorn RISC machine
3230 if test x$gas = xyes
3232 tm_file=arm/rix-gas.h
3234 tm_file=arm/riscix.h
3236 xmake_file=arm/x-riscix
3237 tmake_file=arm/t-riscix
3240 arm-semi-aout | armel-semi-aout)
3242 tmake_file=arm/t-semi
3244 arm-semi-aof | armel-semi-aof)
3245 tm_file=arm/semiaof.h
3246 tmake_file=arm/t-semiaof
3249 tm_file=arm/netbsd.h
3250 xm_file="arm/xm-netbsd.h ${xm_file}"
3251 tmake_file="t-netbsd arm/t-netbsd"
3254 arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
3257 tm_file=arm/linux-aout.h
3258 tmake_file=arm/t-linux
3261 arm*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker
3262 xm_file=arm/xm-linux.h
3264 tm_file="arm/linux-oldld.h arm/linux-elf.h"
3267 tm_file="arm/linux-elf26.h $tm_file"
3270 tmake_file="t-linux arm/t-linux"
3271 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3273 case x${enable_threads} in
3274 x | xyes | xpthreads | xposix)
3279 arm*-*-linux-gnu*) # ARM GNU/Linux with ELF
3280 xm_file=arm/xm-linux.h
3282 tm_file="arm/linux-elf.h"
3285 tm_file="arm/linux-elf26.h $tm_file"
3288 tmake_file="t-linux arm/t-linux"
3289 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3291 case x${enable_threads} in
3292 x | xyes | xpthreads | xposix)
3297 arm*-*-uclinux*) # ARM ucLinux
3298 tm_file=arm/uclinux-elf.h
3299 tmake_file=arm/t-arm-elf
3303 tmake_file=arm/t-bare
3306 tm_file=arm/ecos-elf.h
3307 tmake_file=arm/t-elf
3310 tm_file=arm/unknown-elf.h
3311 tmake_file=arm/t-arm-elf
3314 tm_file=arm/unknown-elf-oabi.h
3315 tmake_file=arm/t-arm-elf
3322 c1-convex-*) # Convex C1
3323 target_cpu_default=1
3326 c2-convex-*) # Convex C2
3327 target_cpu_default=2
3331 target_cpu_default=4
3335 target_cpu_default=8
3339 target_cpu_default=16
3344 tmake_file=c4x/t-c4x
3346 clipper-intergraph-clix*)
3347 tm_file="${tm_file} svr3.h clipper/clix.h"
3348 xm_file=clipper/xm-clix.h
3349 xmake_file=clipper/x-clix
3350 extra_headers=va-clipper.h
3351 extra_parts="crtbegin.o crtend.o"
3352 install_headers_dir=install-headers-cpio
3359 # This hasn't been upgraded to GCC 2.
3360 # fx80-alliant-*) # Alliant FX/80
3366 target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
3367 tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
3368 tmake_file="t-linux pa/t-linux"
3369 extra_parts="crtbegin.o crtend.o"
3372 if test x$enable_threads = xyes; then
3377 target_cpu_default="MASK_PA_11"
3378 tmake_file=pa/t-openbsd
3381 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3382 tm_file="${tm_file} elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
3383 xm_file=pa/xm-papro.h
3387 target_cpu_default="MASK_PA_11"
3388 tm_file="${tm_file} pa/som.h pa/pa-osf.h"
3392 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3393 tm_file="${tm_file} elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
3394 xm_file=pa/xm-papro.h
3398 tm_file="${tm_file} pa/som.h pa/pa-osf.h"
3402 tm_file="${tm_file} pa/som.h"
3403 target_cpu_default="MASK_PA_11"
3407 tm_file="${tm_file} pa/som.h"
3411 tm_file="pa/pa-oldas.h ${tm_file} pa/som.h pa/pa-hpux7.h"
3412 xm_file=pa/xm-pahpux.h
3413 xmake_file=pa/x-pa-hpux
3414 if test x$gas = xyes
3416 tm_file="${tm_file} pa/gas.h"
3418 install_headers_dir=install-headers-cpio
3421 hppa1.0-*-hpux8.0[0-2]*)
3422 tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
3423 xm_file=pa/xm-pahpux.h
3424 xmake_file=pa/x-pa-hpux
3425 if test x$gas = xyes
3427 tm_file="${tm_file} pa/pa-gas.h"
3429 tm_file="pa/pa-oldas.h ${tm_file}"
3431 install_headers_dir=install-headers-cpio
3434 hppa1.1-*-hpux8.0[0-2]*)
3435 target_cpu_default="MASK_PA_11"
3436 tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
3437 xm_file=pa/xm-pahpux.h
3438 xmake_file=pa/x-pa-hpux
3439 if test x$gas = xyes
3441 tm_file="${tm_file} pa/pa-gas.h"
3443 tm_file="pa/pa-oldas.h ${tm_file}"
3445 install_headers_dir=install-headers-cpio
3449 target_cpu_default="MASK_PA_11"
3450 tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
3451 xm_file=pa/xm-pahpux.h
3452 xmake_file=pa/x-pa-hpux
3453 if test x$gas = xyes
3455 tm_file="${tm_file} pa/pa-gas.h"
3457 install_headers_dir=install-headers-cpio
3461 tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
3462 xm_file=pa/xm-pahpux.h
3463 xmake_file=pa/x-pa-hpux
3464 if test x$gas = xyes
3466 tm_file="${tm_file} pa/pa-gas.h"
3468 install_headers_dir=install-headers-cpio
3471 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
3472 target_cpu_default="MASK_PA_11"
3473 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3474 xm_file=pa/xm-pahpux.h
3475 xmake_file=pa/x-pa-hpux
3477 if test x$gas = xyes
3479 tm_file="${tm_file} pa/pa-gas.h"
3481 if test x$enable_threads = x; then
3482 enable_threads=$have_pthread_h
3484 if test x$enable_threads = xyes; then
3486 tmake_file="${tmake_file} pa/t-dce-thr"
3488 install_headers_dir=install-headers-cpio
3492 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3493 xm_file=pa/xm-pahpux.h
3494 xmake_file=pa/x-pa-hpux
3496 if test x$gas = xyes
3498 tm_file="${tm_file} pa/pa-gas.h"
3500 if test x$enable_threads = x; then
3501 enable_threads=$have_pthread_h
3503 if test x$enable_threads = xyes; then
3505 tmake_file="${tmake_file} pa/t-dce-thr"
3507 install_headers_dir=install-headers-cpio
3510 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
3511 target_cpu_default="MASK_PA_11"
3512 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
3513 xm_file=pa/xm-pahpux.h
3514 xmake_file=pa/x-pa-hpux
3518 tm_file="${tm_file} pa/pa-gas.h"
3520 # if [[ x$enable_threads = x ]]; then
3521 # enable_threads=$have_pthread_h
3523 # if [[ x$enable_threads = xyes ]]; then
3525 # tmake_file="${tmake_file} pa/t-dce-thr"
3527 install_headers_dir=install-headers-cpio
3531 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
3532 xm_file=pa/xm-pahpux.h
3533 xmake_file=pa/x-pa-hpux
3536 tm_file="${tm_file} pa/pa-gas.h"
3538 # if [[ x$enable_threads = x ]]; then
3539 # enable_threads=$have_pthread_h
3541 # if [[ x$enable_threads = xyes ]]; then
3543 # tmake_file="${tmake_file} pa/t-dce-thr"
3545 install_headers_dir=install-headers-cpio
3548 hppa1.1-*-hpux* | hppa2*-*-hpux*)
3549 target_cpu_default="MASK_PA_11"
3550 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
3551 xm_file=pa/xm-pahpux.h
3552 xmake_file=pa/x-pa-hpux
3553 if test x$gas = xyes
3555 tm_file="${tm_file} pa/pa-gas.h"
3557 install_headers_dir=install-headers-cpio
3561 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
3562 xm_file=pa/xm-pahpux.h
3563 xmake_file=pa/x-pa-hpux
3564 if test x$gas = xyes
3566 tm_file="${tm_file} pa/pa-gas.h"
3568 install_headers_dir=install-headers-cpio
3571 hppa1.1-*-hiux* | hppa2*-*-hiux*)
3572 target_cpu_default="MASK_PA_11"
3573 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
3574 xm_file=pa/xm-pahpux.h
3575 xmake_file=pa/x-pa-hpux
3576 if test x$gas = xyes
3578 tm_file="${tm_file} pa/pa-gas.h"
3580 install_headers_dir=install-headers-cpio
3584 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
3585 xm_file=pa/xm-pahpux.h
3586 xmake_file=pa/x-pa-hpux
3587 if test x$gas = xyes
3589 tm_file="${tm_file} pa/pa-gas.h"
3591 install_headers_dir=install-headers-cpio
3595 tm_file="${tm_file} elfos.h pa/elf.h"
3596 target_cpu_default="MASK_PA_11"
3602 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
3603 tm_file=i386/i386elf.h
3604 tmake_file=i386/t-i386elf
3607 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
3608 if test x$gas = xyes
3610 tm_file=i386/aix386.h
3611 extra_parts="crtbegin.o crtend.o"
3612 tmake_file=i386/t-crtstuff
3614 tm_file=i386/aix386ng.h
3617 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
3619 xmake_file=i386/x-aix
3621 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
3622 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3623 xm_defines="USG POSIX SMALL_ARG_MAX"
3624 xmake_file=i386/x-ncr3000
3625 if test x$stabs = xyes -a x$gas = xyes
3627 tm_file=i386/sysv4gdb.h
3629 tm_file=i386/sysv4.h
3631 extra_parts="crtbegin.o crtend.o"
3632 tmake_file=i386/t-crtpic
3636 xm_file=i386/xm-next.h
3637 tmake_file=i386/t-next
3638 xmake_file=i386/x-next
3639 extra_objs=nextstep.o
3640 extra_parts="crtbegin.o crtend.o"
3641 if test x$enable_threads = xyes; then
3645 i[34567]86-sequent-bsd*) # 80386 from Sequent
3647 if test x$gas = xyes
3649 tm_file=i386/seq-gas.h
3651 tm_file=i386/sequent.h
3654 i[34567]86-sequent-ptx1*)
3655 xm_defines="USG SVR3"
3656 xmake_file=i386/x-sysv3
3657 tm_file=i386/seq-sysv3.h
3658 tmake_file=i386/t-crtstuff
3659 extra_parts="crtbegin.o crtend.o"
3660 install_headers_dir=install-headers-cpio
3662 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
3663 xm_defines="USG SVR3"
3664 xmake_file=i386/x-sysv3
3665 tm_file=i386/seq2-sysv3.h
3666 tmake_file=i386/t-crtstuff
3667 extra_parts="crtbegin.o crtend.o"
3668 install_headers_dir=install-headers-cpio
3670 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
3671 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3672 xm_defines="USG POSIX SMALL_ARG_MAX"
3674 tm_file=i386/ptx4-i.h
3676 extra_parts="crtbegin.o crtend.o"
3677 install_headers_dir=install-headers-cpio
3679 i386-sun-sunos*) # Sun i386 roadrunner
3684 i[34567]86-wrs-vxworks*)
3685 tm_file=i386/vxi386.h
3686 tmake_file=i386/t-i386bare
3687 thread_file='vxworks'
3690 tm_file=i386/i386-aout.h
3691 tmake_file=i386/t-i386bare
3693 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
3694 tm_file=i386/bsd386.h
3695 # tmake_file=t-libc-ok
3698 tm_file=i386/386bsd.h
3699 # tmake_file=t-libc-ok
3700 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
3703 i[34567]86-*-freebsdelf*)
3704 tm_file="i386/i386.h i386/att.h svr4.h i386/freebsd-elf.h i386/perform.h"
3705 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3706 tmake_file=t-freebsd
3711 i[34567]86-*-freebsd*)
3712 tm_file=i386/freebsd.h
3713 tmake_file=t-freebsd
3715 i[34567]86-*-netbsd*)
3716 tm_file=i386/netbsd.h
3720 i[34567]86-*-openbsd*)
3721 # we need collect2 until our bug is fixed...
3725 tm_file=i386/i386-coff.h
3726 tmake_file=i386/t-i386bare
3728 i[34567]86-*-isc*) # 80386 running ISC system
3729 xm_file="${xm_file} i386/xm-isc.h"
3730 xm_defines="USG SVR3"
3732 i[34567]86-*-isc[34]*)
3733 xmake_file=i386/x-isc3
3736 xmake_file=i386/x-isc
3739 if test x$gas = xyes -a x$stabs = xyes
3741 tm_file=i386/iscdbx.h
3742 tmake_file=i386/t-svr3dbx
3743 extra_parts="svr3.ifile svr3z.ifile"
3745 tm_file=i386/isccoff.h
3746 tmake_file=i386/t-crtstuff
3747 extra_parts="crtbegin.o crtend.o"
3749 install_headers_dir=install-headers-cpio
3751 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
3753 xmake_file=x-linux-aout
3754 tmake_file="t-linux-aout i386/t-crtstuff"
3755 tm_file=i386/linux-oldld.h
3759 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
3760 xmake_file=x-linux-aout
3761 tmake_file="t-linux-aout i386/t-crtstuff"
3762 tm_file=i386/linux-aout.h
3766 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
3767 # GNU/Linux C library 5
3769 tm_file=i386/linux.h
3770 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
3771 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3774 if test x$enable_threads = xyes; then
3775 thread_file='single'
3778 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
3779 # aka GNU/Linux C library 6
3781 tm_file=i386/linux.h
3782 tmake_file="t-linux i386/t-crtstuff"
3783 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3786 if test x$enable_threads = xyes; then
3793 i[34567]86-go32-msdos | i[34567]86-*-go32*)
3794 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
3797 i[34567]86-pc-msdosdjgpp*)
3798 xm_file=i386/xm-djgpp.h
3799 tm_file=i386/djgpp.h
3800 tmake_file=i386/t-djgpp
3801 xmake_file=i386/x-djgpp
3805 case $host in *pc-msdosdjgpp*)
3810 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
3812 tmake_file=t-libc-ok
3816 i[34567]86-*-lynxos*)
3817 if test x$gas = xyes
3821 tm_file=i386/lynx-ng.h
3823 xm_file=i386/xm-lynx.h
3824 tmake_file=i386/t-i386bare
3829 # tmake_file=t-libc-ok
3832 i[34567]86-*-osfrose*) # 386 using OSF/rose
3833 if test x$elf = xyes
3835 tm_file=i386/osfelf.h
3838 tm_file=i386/osfrose.h
3841 xm_file="i386/xm-osf.h ${xm_file}"
3842 xmake_file=i386/x-osfrose
3843 tmake_file=i386/t-osf
3844 extra_objs=halfpic.o
3846 i[34567]86-go32-rtems*)
3848 xm_file=i386/xm-go32.h
3849 tm_file=i386/go32-rtems.h
3850 tmake_file="i386/t-go32 t-rtems"
3852 i[34567]86-*-rtemself*)
3854 tm_file=i386/rtemself.h
3855 tmake_file="i386/t-i386bare t-rtems"
3857 i[34567]86-*-rtems*)
3859 tm_file=i386/rtems.h
3860 tmake_file="i386/t-i386bare t-rtems"
3862 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
3863 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
3864 xm_defines="USG SVR3"
3865 xmake_file=i386/x-sco5
3866 install_headers_dir=install-headers-cpio
3868 if test x$gas = xyes
3870 tm_file="i386/sco5gas.h ${tm_file}"
3871 tmake_file=i386/t-sco5gas
3873 tmake_file=i386/t-sco5
3875 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
3877 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
3878 xm_file="${xm_file} i386/xm-sco.h"
3879 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
3880 xmake_file=i386/x-sco4
3881 install_headers_dir=install-headers-cpio
3882 if test x$stabs = xyes
3884 tm_file=i386/sco4dbx.h
3885 tmake_file=i386/t-svr3dbx
3886 extra_parts="svr3.ifile svr3z.rfile"
3889 tmake_file=i386/t-crtstuff
3890 extra_parts="crtbegin.o crtend.o"
3892 # The default EAFS filesystem supports long file names.
3893 # Truncating the target makes $host != $target which
3894 # makes gcc think it is doing a cross-compile.
3895 # truncate_target=yes
3897 i[34567]86-*-sco*) # 80386 running SCO system
3898 xm_file=i386/xm-sco.h
3899 xmake_file=i386/x-sco
3900 install_headers_dir=install-headers-cpio
3901 if test x$stabs = xyes
3903 tm_file=i386/scodbx.h
3904 tmake_file=i386/t-svr3dbx
3905 extra_parts="svr3.ifile svr3z.rfile"
3908 extra_parts="crtbegin.o crtend.o"
3909 tmake_file=i386/t-crtstuff
3913 i[34567]86-*-solaris2*)
3914 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3915 xm_defines="USG POSIX SMALL_ARG_MAX"
3916 if test x$stabs = xyes
3918 tm_file=i386/sol2dbg.h
3922 tmake_file=i386/t-sol2
3923 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3925 if test x$enable_threads = xyes; then
3926 thread_file='solaris'
3929 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
3930 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
3931 xm_defines="USG POSIX"
3932 tm_file=i386/sysv5.h
3933 if test x$stabs = xyes
3935 tm_file="${tm_file} dbx.h"
3937 tmake_file=i386/t-crtpic
3939 extra_parts="crtbegin.o crtend.o"
3940 if test x$enable_threads = xyes; then
3944 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
3945 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3946 xm_defines="USG POSIX SMALL_ARG_MAX"
3947 tm_file=i386/sysv4.h
3948 if test x$stabs = xyes
3950 tm_file="${tm_file} dbx.h"
3952 tmake_file=i386/t-crtpic
3954 extra_parts="crtbegin.o crtend.o"
3956 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
3957 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
3958 xm_defines="USG POSIX"
3960 tmake_file="i386/t-crtpic i386/t-udk"
3962 extra_parts="crtbegin.o crtend.o"
3963 install_headers_dir=install-headers-cpio
3965 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
3967 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
3968 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
3969 if test x$stabs = xyes
3971 tm_file=i386/osf1elfgdb.h
3973 tm_file=i386/osf1elf.h
3975 tmake_file=i386/t-osf1elf
3976 xmake_file=i386/x-osf1elf
3977 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3979 i[34567]86-*-sysv*) # Intel 80386's running system V
3980 xm_defines="USG SVR3"
3981 xmake_file=i386/x-sysv3
3982 if test x$gas = xyes
3984 if test x$stabs = xyes
3986 tm_file=i386/svr3dbx.h
3987 tmake_file=i386/t-svr3dbx
3988 extra_parts="svr3.ifile svr3z.rfile"
3990 tm_file=i386/svr3gas.h
3991 extra_parts="crtbegin.o crtend.o"
3992 tmake_file=i386/t-crtstuff
3995 tm_file=i386/sysv3.h
3996 extra_parts="crtbegin.o crtend.o"
3997 tmake_file=i386/t-crtstuff
4000 i386-*-vsta) # Intel 80386's running VSTa kernel
4001 xm_file="${xm_file} i386/xm-vsta.h"
4003 tmake_file=i386/t-vsta
4004 xmake_file=i386/x-vsta
4007 xm_file="${xm_file} i386/xm-cygwin.h"
4008 tmake_file=i386/t-cygwin
4009 tm_file=i386/win32.h
4010 xmake_file=i386/x-cygwin
4012 if test x$enable_threads = xyes; then
4017 i[34567]86-*-pe | i[34567]86-*-cygwin*)
4018 xm_file="${xm_file} i386/xm-cygwin.h"
4019 tmake_file=i386/t-cygwin
4020 tm_file=i386/cygwin.h
4021 xmake_file=i386/x-cygwin
4023 if test x$enable_threads = xyes; then
4028 i[34567]86-*-mingw32*)
4029 tm_file=i386/mingw32.h
4030 xm_file="${xm_file} i386/xm-mingw32.h"
4031 tmake_file="i386/t-cygwin i386/t-mingw32"
4033 xmake_file=i386/x-cygwin
4034 if test x$enable_threads = xyes; then
4041 *minwg32crt* | *mingw32*)
4042 tm_file="${tm_file} i386/crtdll.h"
4048 xm_file="${xm_file} i386/xm-uwin.h"
4049 xm_defines="USG NO_STAB_H NO_SYS_SIGLIST"
4050 tmake_file="i386/t-cygwin i386/t-uwin"
4052 xmake_file=i386/x-cygwin
4053 if test x$enable_threads = xyes; then
4058 i[34567]86-*-interix*)
4059 tm_file="i386/i386-interix.h interix.h"
4060 xm_file="i386/xm-i386-interix.h xm-interix.h"
4061 xm_defines="USG NO_SYS_SIGLIST"
4062 tmake_file="i386/t-interix"
4063 extra_objs=interix.o
4064 xmake_file=x-interix
4065 if test x$enable_threads = xyes ; then
4068 if test x$stabs = xyes ; then
4069 tm_file="${tm_file} dbxcoff.h"
4072 i[34567]86-*-winnt3*)
4073 tm_file=i386/win-nt.h
4074 out_file=i386/i386.c
4075 xm_file="xm-winnt.h ${xm_file}"
4076 xmake_file=winnt/x-winnt
4077 tmake_file=i386/t-winnt
4078 extra_host_objs="winnt.o oldnames.o"
4079 extra_gcc_objs="spawnv.o oldnames.o"
4080 if test x$gnu_ld != xyes
4082 extra_programs=ld.exe
4084 if test x$enable_threads = xyes; then
4088 i[34567]86-dg-dgux*)
4089 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
4090 xm_defines="USG POSIX"
4091 out_file=i386/dgux.c
4093 tmake_file=i386/t-dgux
4094 xmake_file=i386/x-dgux
4095 install_headers_dir=install-headers-cpio
4097 i860-alliant-*) # Alliant FX/2800
4098 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
4099 xm_file="${xm_file}"
4100 xmake_file=i860/x-fx2800
4101 tmake_file=i860/t-fx2800
4102 extra_parts="crtbegin.o crtend.o"
4105 tm_file="${tm_file} i860/bsd.h"
4106 if test x$gas = xyes
4108 tm_file="${tm_file} i860/bsd-gas.h"
4113 tm_file="${tm_file} i860/mach.h"
4114 tmake_file=t-libc-ok
4116 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
4117 tm_file="${tm_file} svr3.h i860/paragon.h"
4118 xm_defines="USG SVR3"
4122 tm_file="${tm_file} svr3.h i860/sysv3.h"
4123 xm_defines="USG SVR3"
4124 xmake_file=i860/x-sysv3
4125 extra_parts="crtbegin.o crtend.o"
4128 tm_file="${tm_file} svr4.h i860/sysv4.h"
4129 xm_defines="USG SVR3"
4130 xmake_file=i860/x-sysv4
4132 extra_parts="crtbegin.o crtend.o"
4134 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
4135 tm_file="${tm_file} i960/vx960.h"
4136 tmake_file=i960/t-vxworks960
4138 thread_file='vxworks'
4140 i960-wrs-vxworks5* | i960-wrs-vxworks)
4141 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
4142 tmake_file=i960/t-vxworks960
4144 thread_file='vxworks'
4147 tm_file="${tm_file} i960/vx960.h"
4148 tmake_file=i960/t-vxworks960
4150 thread_file='vxworks'
4153 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
4154 tmake_file=i960/t-960bare
4158 tmake_file="i960/t-960bare t-rtems"
4159 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
4162 i960-*-*) # Default i960 environment.
4166 extra_parts="crtinit.o crtfini.o"
4168 m68000-convergent-sysv*)
4170 xm_file="m68k/xm-3b1.h ${xm_file}"
4173 extra_headers=math-68881.h
4175 m68000-hp-bsd*) # HP 9000/200 running BSD
4176 tm_file=m68k/hp2bsd.h
4177 xmake_file=m68k/x-hp2bsd
4179 extra_headers=math-68881.h
4181 m68000-hp-hpux*) # HP 9000 series 300
4182 xm_file="xm_alloca.h ${xm_file}"
4183 xm_defines="USG NO_SYS_SIGLIST"
4184 if test x$gas = xyes
4186 xmake_file=m68k/x-hp320g
4187 tm_file=m68k/hp310g.h
4189 xmake_file=m68k/x-hp320
4190 tm_file=m68k/hp310.h
4192 install_headers_dir=install-headers-cpio
4194 extra_headers=math-68881.h
4199 extra_headers=math-68881.h
4202 tm_file=m68k/sun2o4.h
4204 extra_headers=math-68881.h
4207 xm_file="m68k/xm-3b1.h ${xm_file}"
4209 if test x$gas = xyes
4216 extra_headers=math-68881.h
4218 m68k-apple-aux*) # Apple Macintosh running A/UX
4219 xm_defines="USG AUX"
4220 tmake_file=m68k/t-aux
4221 install_headers_dir=install-headers-cpio
4222 extra_headers=math-68881.h
4223 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
4225 if test "$gnu_ld" = yes
4227 tm_file="${tm_file} m68k/auxgld.h"
4229 tm_file="${tm_file} m68k/auxld.h"
4231 if test "$gas" = yes
4233 tm_file="${tm_file} m68k/auxgas.h"
4235 tm_file="${tm_file} m68k/auxas.h"
4237 tm_file="${tm_file} m68k/a-ux.h"
4241 tm_file=m68k/apollo68.h
4242 xmake_file=m68k/x-apollo68
4244 extra_headers=math-68881.h
4247 m68k-altos-sysv*) # Altos 3068
4248 if test x$gas = xyes
4250 tm_file=m68k/altos3068.h
4253 echo "The Altos is supported only with the GNU assembler" 1>&2
4256 extra_headers=math-68881.h
4258 m68k-bull-sysv*) # Bull DPX/2
4259 if test x$gas = xyes
4261 if test x$stabs = xyes
4263 tm_file=m68k/dpx2cdbx.h
4265 tm_file=m68k/dpx2g.h
4270 xm_file="xm-alloca.h ${xm_file}"
4272 xmake_file=m68k/x-dpx2
4274 extra_headers=math-68881.h
4276 m68k-atari-sysv4*) # Atari variant of V.4.
4277 tm_file=m68k/atari.h
4278 xm_file="xm-alloca.h ${xm_file}"
4279 xm_defines="USG FULL_PROTOTYPES"
4281 extra_parts="crtbegin.o crtend.o"
4282 extra_headers=math-68881.h
4285 m68k-motorola-sysv*)
4286 tm_file=m68k/mot3300.h
4287 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
4288 xm_defines=NO_SYS_SIGLIST
4289 if test x$gas = xyes
4291 xmake_file=m68k/x-mot3300-gas
4292 if test x$gnu_ld = xyes
4294 tmake_file=m68k/t-mot3300-gald
4296 tmake_file=m68k/t-mot3300-gas
4300 xmake_file=m68k/x-mot3300
4301 if test x$gnu_ld = xyes
4303 tmake_file=m68k/t-mot3300-gld
4305 tmake_file=m68k/t-mot3300
4309 gdb_needs_out_file_path=yes
4310 extra_parts="crt0.o mcrt0.o"
4311 extra_headers=math-68881.h
4314 m68k-ncr-sysv*) # NCR Tower 32 SVR3
4315 tm_file=m68k/tower-as.h
4316 xm_defines="USG SVR3"
4317 xmake_file=m68k/x-tower
4318 extra_parts="crtbegin.o crtend.o"
4319 extra_headers=math-68881.h
4322 tm_file=m68k/plexus.h
4323 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
4326 extra_headers=math-68881.h
4330 xm_file="xm-alloca.h ${xm_file}"
4332 extra_headers=math-68881.h
4335 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
4336 xm_defines="USG unos"
4337 xmake_file=m68k/x-crds
4340 extra_headers=math-68881.h
4342 m68k-cbm-sysv4*) # Commodore variant of V.4.
4344 xm_file="xm-alloca.h ${xm_file}"
4345 xm_defines="USG FULL_PROTOTYPES"
4346 xmake_file=m68k/x-amix
4348 extra_parts="crtbegin.o crtend.o"
4349 extra_headers=math-68881.h
4353 tm_file=m68k/ccur-GAS.h
4354 xmake_file=m68k/x-ccur
4355 extra_headers=math-68881.h
4359 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
4360 tm_file=m68k/hp3bsd44.h
4361 xmake_file=m68k/x-hp3bsd44
4363 extra_headers=math-68881.h
4366 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
4367 tm_file=m68k/hp3bsd.h
4369 extra_headers=math-68881.h
4373 if test x$with_fp = xno
4375 tm_file=m68k/isi-nfp.h
4381 extra_headers=math-68881.h
4383 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
4384 xm_file="xm_alloca.h ${xm_file}"
4385 xm_defines="USG NO_SYS_SIGLIST"
4386 if test x$gas = xyes
4388 xmake_file=m68k/x-hp320g
4389 tm_file=m68k/hp320g.h
4391 xmake_file=m68k/x-hp320
4392 tm_file=m68k/hpux7.h
4394 install_headers_dir=install-headers-cpio
4396 extra_headers=math-68881.h
4399 m68k-hp-hpux*) # HP 9000 series 300
4400 xm_file="xm_alloca.h ${xm_file}"
4401 xm_defines="USG NO_SYS_SIGLIST"
4402 if test x$gas = xyes
4404 xmake_file=m68k/x-hp320g
4405 tm_file=m68k/hp320g.h
4407 xmake_file=m68k/x-hp320
4408 tm_file=m68k/hp320.h
4410 install_headers_dir=install-headers-cpio
4412 extra_headers=math-68881.h
4416 tm_file=m68k/sun3mach.h
4418 extra_headers=math-68881.h
4422 if test x$gas = xyes
4424 tm_file=m68k/news3gas.h
4426 tm_file=m68k/news3.h
4429 extra_headers=math-68881.h
4432 m68k-sony-bsd* | m68k-sony-newsos*)
4433 if test x$gas = xyes
4435 tm_file=m68k/newsgas.h
4440 extra_headers=math-68881.h
4443 m68k-next-nextstep2*)
4444 tm_file=m68k/next21.h
4445 xm_file="m68k/xm-next.h ${xm_file}"
4446 tmake_file=m68k/t-next
4447 xmake_file=m68k/x-next
4448 extra_objs=nextstep.o
4449 extra_headers=math-68881.h
4453 m68k-next-nextstep3*)
4455 xm_file="m68k/xm-next.h ${xm_file}"
4456 tmake_file=m68k/t-next
4457 xmake_file=m68k/x-next
4458 extra_objs=nextstep.o
4459 extra_parts="crtbegin.o crtend.o"
4460 extra_headers=math-68881.h
4462 if test x$enable_threads = xyes; then
4467 if test x$with_fp = xno
4469 tm_file=m68k/sun3n3.h
4471 tm_file=m68k/sun3o3.h
4475 extra_headers=math-68881.h
4477 m68k-sun-sunos*) # For SunOS 4 (the default).
4478 if test x$with_fp = xno
4480 tm_file=m68k/sun3n.h
4486 extra_headers=math-68881.h
4489 tm_file=m68k/vxm68k.h
4490 tmake_file=m68k/t-vxworks68
4491 extra_headers=math-68881.h
4492 thread_file='vxworks'
4496 tmake_file=m68k/t-m68kbare
4497 tm_file="m68k/m68k-aout.h libgloss.h"
4498 extra_headers=math-68881.h
4502 tmake_file=m68k/t-m68kbare
4503 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
4504 extra_headers=math-68881.h
4507 m68020-*-elf* | m68k-*-elf*)
4508 tm_file="m68k/m68020-elf.h"
4509 xm_file=m68k/xm-m68kv.h
4510 tmake_file=m68k/t-m68kelf
4511 header_files=math-68881.h
4514 if test x$gas = xyes
4518 tm_file=m68k/lynx-ng.h
4520 xm_file=m68k/xm-lynx.h
4522 tmake_file=m68k/t-lynx
4523 extra_headers=math-68881.h
4527 tm_file=m68k/netbsd.h
4534 # we need collect2 until our bug is fixed...
4537 m68k-*-sysv3*) # Motorola m68k's running system V.3
4538 xm_file="xm-alloca.h ${xm_file}"
4540 xmake_file=m68k/x-m68kv
4541 extra_parts="crtbegin.o crtend.o"
4542 extra_headers=math-68881.h
4545 m68k-*-sysv4*) # Motorola m68k's running system V.4
4546 tm_file=m68k/m68kv4.h
4547 xm_file="xm-alloca.h ${xm_file}"
4550 extra_parts="crtbegin.o crtend.o"
4551 extra_headers=math-68881.h
4554 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
4557 tm_file=m68k/linux-aout.h
4558 tmake_file="t-linux-aout m68k/t-linux-aout"
4559 extra_headers=math-68881.h
4563 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
4564 # with ELF format using the
4565 # GNU/Linux C library 5
4567 tm_file=m68k/linux.h
4568 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
4569 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4570 extra_headers=math-68881.h
4574 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
4575 # with ELF format using glibc 2
4576 # aka the GNU/Linux C library 6.
4578 tm_file=m68k/linux.h
4579 tmake_file="t-linux m68k/t-linux"
4580 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4581 extra_headers=math-68881.h
4584 if test x$enable_threads = xyes; then
4589 tmake_file=m68k/t-m68kbare
4590 tm_file=m68k/m68k-psos.h
4591 extra_headers=math-68881.h
4595 tmake_file="m68k/t-m68kbare t-rtems"
4596 tm_file=m68k/rtems.h
4597 extra_headers=math-68881.h
4604 tm_file=m88k/dguxbcs.h
4605 tmake_file=m88k/t-dguxbcs
4609 tmake_file=m88k/t-dgux
4612 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
4613 xmake_file=m88k/x-dgux
4614 if test x$gas = xyes
4616 tmake_file=m88k/t-dgux-gas
4619 m88k-dolphin-sysv3*)
4620 tm_file=m88k/dolph.h
4621 extra_parts="crtbegin.o crtend.o"
4622 xm_file="m88k/xm-sysv3.h ${xm_file}"
4623 xmake_file=m88k/x-dolph
4624 if test x$gas = xyes
4626 tmake_file=m88k/t-m88k-gas
4629 m88k-tektronix-sysv3)
4630 tm_file=m88k/tekXD88.h
4631 extra_parts="crtbegin.o crtend.o"
4632 xm_file="m88k/xm-sysv3.h ${xm_file}"
4633 xmake_file=m88k/x-tekXD88
4634 if test x$gas = xyes
4636 tmake_file=m88k/t-m88k-gas
4640 tm_file=m88k/m88k-aout.h
4643 tm_file=m88k/m88k-coff.h
4644 tmake_file=m88k/t-bug
4648 extra_parts="crtbegin.o crtend.o"
4649 if test x$gas = xyes
4651 tmake_file=m88k/t-luna-gas
4653 tmake_file=m88k/t-luna
4657 tmake_file="${tmake_file} m88k/t-luna-gas"
4660 tm_file=m88k/sysv3.h
4661 extra_parts="crtbegin.o crtend.o"
4662 xm_file="m88k/xm-sysv3.h ${xm_file}"
4663 xmake_file=m88k/x-sysv3
4664 if test x$gas = xyes
4666 tmake_file=m88k/t-m88k-gas
4670 tm_file=m88k/sysv4.h
4671 extra_parts="crtbegin.o crtend.o"
4672 xmake_file=m88k/x-sysv4
4673 tmake_file=m88k/t-sysv4
4675 mips-sgi-irix6*) # SGI System V.4., IRIX 6
4676 if test "x$gnu_ld" = xyes
4678 tm_file="mips/iris6.h mips/iris6gld.h"
4680 tm_file=mips/iris6.h
4682 tmake_file=mips/t-iris6
4683 xm_file=mips/xm-iris6.h
4684 xmake_file=mips/x-iris6
4685 # if test x$enable_threads = xyes; then
4686 # thread_file='irix'
4690 tm_file="mips/elf.h mips/vxworks.h"
4691 tmake_file=mips/t-ecoff
4694 extra_parts="crtbegin.o crtend.o"
4695 thread_file='vxworks'
4697 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
4698 tm_file="mips/iris6.h mips/cross64.h"
4700 xm_file="mips/xm-iris5.h"
4701 xmake_file=mips/x-iris
4702 tmake_file=mips/t-cross64
4703 # See comment in mips/iris[56].h files.
4705 # if test x$enable_threads = xyes; then
4706 # thread_file='irix'
4710 if test x$gas = xyes
4712 if test x$stabs = xyes
4714 tm_file=mips/iris5gdb.h
4716 tm_file="mips/sni-svr4.h mips/sni-gas.h"
4719 tm_file=mips/sni-svr4.h
4722 xmake_file=mips/x-sni-svr4
4723 tmake_file=mips/t-mips-gas
4724 if test x$gnu_ld != xyes
4729 mips-sgi-irix5*) # SGI System V.4., IRIX 5
4730 if test x$gas = xyes
4732 tm_file="mips/iris5.h mips/iris5gas.h"
4733 if test x$stabs = xyes
4735 tm_file="${tm_file} dbx.h"
4738 tm_file=mips/iris5.h
4741 xm_file="mips/xm-iris5.h"
4742 xmake_file=mips/x-iris
4743 # mips-tfile doesn't work yet
4744 tmake_file=mips/t-mips-gas
4745 # See comment in mips/iris5.h file.
4747 # if test x$enable_threads = xyes; then
4748 # thread_file='irix'
4751 mips-sgi-irix4loser*) # Mostly like a MIPS.
4752 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
4753 if test x$stabs = xyes; then
4754 tm_file="${tm_file} dbx.h"
4757 xmake_file=mips/x-iris
4758 if test x$gas = xyes
4760 tmake_file=mips/t-mips-gas
4762 extra_passes="mips-tfile mips-tdump"
4764 if test x$gnu_ld != xyes
4768 # if test x$enable_threads = xyes; then
4769 # thread_file='irix'
4772 mips-sgi-irix4*) # Mostly like a MIPS.
4773 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
4774 if test x$stabs = xyes; then
4775 tm_file="${tm_file} dbx.h"
4778 xmake_file=mips/x-iris
4779 if test x$gas = xyes
4781 tmake_file=mips/t-mips-gas
4783 extra_passes="mips-tfile mips-tdump"
4785 if test x$gnu_ld != xyes
4789 # if test x$enable_threads = xyes; then
4790 # thread_file='irix'
4793 mips-sgi-*) # Mostly like a MIPS.
4794 tm_file="mips/iris3.h ${tm_file}"
4795 if test x$stabs = xyes; then
4796 tm_file="${tm_file} dbx.h"
4799 xmake_file=mips/x-iris3
4800 if test x$gas = xyes
4802 tmake_file=mips/t-mips-gas
4804 extra_passes="mips-tfile mips-tdump"
4806 if test x$gnu_ld != xyes
4811 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
4812 tm_file="mips/osfrose.h ${tm_file}"
4813 xmake_file=mips/x-osfrose
4814 tmake_file=mips/t-osfrose
4815 extra_objs=halfpic.o
4818 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
4819 tm_file=mips/dec-osf1.h
4820 if test x$stabs = xyes; then
4821 tm_file="${tm_file} dbx.h"
4823 xmake_file=mips/x-dec-osf1
4824 if test x$gas = xyes
4826 tmake_file=mips/t-mips-gas
4828 tmake_file=mips/t-ultrix
4829 extra_passes="mips-tfile mips-tdump"
4831 if test x$gnu_ld != xyes
4836 mips-dec-bsd*) # Decstation running 4.4 BSD
4837 tm_file=mips/dec-bsd.h
4838 if test x$gas = xyes
4840 tmake_file=mips/t-mips-gas
4842 tmake_file=mips/t-ultrix
4843 extra_passes="mips-tfile mips-tdump"
4845 if test x$gnu_ld != xyes
4850 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
4851 tm_file=mips/netbsd.h
4852 # On NetBSD, the headers are already okay, except for math.h.
4855 mips*-*-linux*) # Linux MIPS, either endian.
4857 xm_file="xm-siglist.h ${xm_file}"
4859 mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;;
4860 *) tm_file="mips/elf.h mips/linux.h" ;;
4862 extra_parts="crtbegin.o crtend.o"
4866 mips*el-*-openbsd*) # mips little endian
4867 target_cpu_default="MASK_GAS|MASK_ABICALLS"
4868 tm_file=mips/openbsd.h
4870 mips*-*-openbsd*) # mips big endian
4871 target_cpu_default="MASK_GAS|MASK_ABICALLS"
4872 tm_file=mips/openbsd-be.h
4874 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
4875 tm_file="mips/news4.h ${tm_file}"
4876 if test x$stabs = xyes; then
4877 tm_file="${tm_file} dbx.h"
4879 if test x$gas = xyes
4881 tmake_file=mips/t-mips-gas
4883 extra_passes="mips-tfile mips-tdump"
4885 if test x$gnu_ld != xyes
4889 xmake_file=mips/x-sony
4891 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
4892 # That is based on svr4.
4893 # t-svr4 is not right because this system doesn't use ELF.
4894 tm_file="mips/news5.h ${tm_file}"
4895 if test x$stabs = xyes; then
4896 tm_file="${tm_file} dbx.h"
4898 xm_file="xm-siglist.h ${xm_file}"
4900 if test x$gas = xyes
4902 tmake_file=mips/t-mips-gas
4904 extra_passes="mips-tfile mips-tdump"
4906 if test x$gnu_ld != xyes
4911 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
4912 tm_file="mips/svr4-5.h mips/svr4-t.h"
4913 if test x$stabs = xyes; then
4914 tm_file="${tm_file} dbx.h"
4916 xm_file="xm-siglist.h ${xm_file}"
4918 xmake_file=mips/x-sysv
4919 if test x$gas = xyes
4921 tmake_file=mips/t-mips-gas
4922 extra_parts="crtbegin.o crtend.o"
4924 tmake_file=mips/t-mips
4925 extra_passes="mips-tfile mips-tdump"
4927 if test x$gnu_ld != xyes
4932 mips-*-ultrix* | mips-dec-mach3) # Decstation.
4933 tm_file="mips/ultrix.h ${tm_file}"
4934 if test x$stabs = xyes; then
4935 tm_file="${tm_file} dbx.h"
4937 xmake_file=mips/x-ultrix
4938 if test x$gas = xyes
4940 tmake_file=mips/t-mips-gas
4942 tmake_file=mips/t-ultrix
4943 extra_passes="mips-tfile mips-tdump"
4945 if test x$gnu_ld != xyes
4950 mips-*-riscos[56789]bsd*)
4951 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
4952 if test x$stabs = xyes; then
4953 tm_file="${tm_file} dbx.h"
4955 if test x$gas = xyes
4957 tmake_file=mips/t-bsd-gas
4959 tmake_file=mips/t-bsd
4960 extra_passes="mips-tfile mips-tdump"
4962 if test x$gnu_ld != xyes
4967 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
4968 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
4969 if test x$stabs = xyes; then
4970 tm_file="${tm_file} dbx.h"
4972 if test x$gas = xyes
4974 tmake_file=mips/t-bsd-gas
4976 tmake_file=mips/t-bsd
4977 extra_passes="mips-tfile mips-tdump"
4979 if test x$gnu_ld != xyes
4984 mips-*-riscos[56789]sysv4*)
4985 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
4986 if test x$stabs = xyes; then
4987 tm_file="${tm_file} dbx.h"
4989 xm_file="xm-siglist.h ${xm_file}"
4990 xmake_file=mips/x-sysv
4991 if test x$gas = xyes
4993 tmake_file=mips/t-svr4-gas
4995 tmake_file=mips/t-svr4
4996 extra_passes="mips-tfile mips-tdump"
4998 if test x$gnu_ld != xyes
5003 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
5004 tm_file="mips/svr4-4.h ${tm_file}"
5005 if test x$stabs = xyes; then
5006 tm_file="${tm_file} dbx.h"
5009 xmake_file=mips/x-sysv
5010 if test x$gas = xyes
5012 tmake_file=mips/t-svr4-gas
5014 tmake_file=mips/t-svr4
5015 extra_passes="mips-tfile mips-tdump"
5017 if test x$gnu_ld != xyes
5022 mips-*-riscos[56789]sysv*)
5023 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
5024 if test x$stabs = xyes; then
5025 tm_file="${tm_file} dbx.h"
5028 xmake_file=mips/x-sysv
5029 if test x$gas = xyes
5031 tmake_file=mips/t-svr3-gas
5033 tmake_file=mips/t-svr3
5034 extra_passes="mips-tfile mips-tdump"
5036 if test x$gnu_ld != xyes
5041 mips-*-sysv* | mips-*-riscos*sysv*)
5042 tm_file="mips/svr3-4.h ${tm_file}"
5043 if test x$stabs = xyes; then
5044 tm_file="${tm_file} dbx.h"
5047 xmake_file=mips/x-sysv
5048 if test x$gas = xyes
5050 tmake_file=mips/t-svr3-gas
5052 tmake_file=mips/t-svr3
5053 extra_passes="mips-tfile mips-tdump"
5055 if test x$gnu_ld != xyes
5060 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
5061 tm_file=mips/mips-5.h
5062 if test x$stabs = xyes; then
5063 tm_file="${tm_file} dbx.h"
5065 if test x$gas = xyes
5067 tmake_file=mips/t-mips-gas
5069 extra_passes="mips-tfile mips-tdump"
5071 if test x$gnu_ld != xyes
5079 tm_file=mips/ecoffl.h
5080 if test x$stabs = xyes; then
5081 tm_file="${tm_file} dbx.h"
5083 tmake_file=mips/t-ecoff
5086 tm_file="gofast.h mips/ecoff.h"
5087 if test x$stabs = xyes; then
5088 tm_file="${tm_file} dbx.h"
5090 tmake_file=mips/t-ecoff
5093 tm_file="mips/elfl.h"
5094 tmake_file=mips/t-elf
5097 tm_file="mips/elf.h"
5098 tmake_file=mips/t-elf
5101 tm_file="mips/elfl64.h"
5102 tmake_file=mips/t-elf
5104 mips64orionel-*-elf*)
5105 tm_file="mips/elforion.h mips/elfl64.h"
5106 tmake_file=mips/t-elf
5109 tm_file="mips/elf64.h"
5110 tmake_file=mips/t-elf
5113 tm_file="mips/elforion.h mips/elf64.h"
5114 tmake_file=mips/t-elf
5116 mips64orion-*-rtems*)
5117 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
5118 tmake_file="mips/t-ecoff t-rtems"
5121 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
5122 tmake_file=mips/t-r3900
5125 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
5126 tmake_file=mips/t-r3900
5128 mips-*-*) # Default MIPS RISC-OS 4.0.
5129 if test x$stabs = xyes; then
5130 tm_file="${tm_file} dbx.h"
5132 if test x$gas = xyes
5134 tmake_file=mips/t-mips-gas
5136 extra_passes="mips-tfile mips-tdump"
5138 if test x$gnu_ld != xyes
5145 tm_file="mn10200/mn10200.h"
5146 if test x$stabs = xyes
5148 tm_file="${tm_file} dbx.h"
5154 tm_file="mn10300/mn10300.h"
5155 if test x$stabs = xyes
5157 tm_file="${tm_file} dbx.h"
5162 tm_file=ns32k/encore.h
5166 tm_file=ns32k/sequent.h
5170 tm_file=ns32k/tek6100.h
5174 tm_file=ns32k/tek6200.h
5177 # This has not been updated to GCC 2.
5180 # xmake_file=ns32k/x-genix
5181 # tm_file=ns32k/genix.h
5185 tm_file=ns32k/merlin.h
5189 tm_file=ns32k/pc532-mach.h
5193 tm_file=ns32k/pc532-min.h
5194 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
5199 tm_file=ns32k/netbsd.h
5200 xm_file="ns32k/xm-netbsd.h ${xm_file}"
5201 # On NetBSD, the headers are already okay, except for math.h.
5206 tm_file="${tm_file} pdp11/2bsd.h"
5213 # This has not been updated to GCC 2.
5216 # xmake_file=pyr/x-pyr
5223 xmake_file=romp/x-mach
5230 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
5234 tm_file=rs6000/beos.h
5235 xm_file=rs6000/xm-beos.h
5236 tmake_file=rs6000/t-beos
5237 xmake_file=rs6000/x-beos
5239 powerpc-*-sysv* | powerpc-*-elf*)
5240 tm_file=rs6000/sysv4.h
5241 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5242 xm_defines="USG POSIX"
5243 extra_headers=ppc-asm.h
5244 if test x$gas = xyes
5246 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5248 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5250 xmake_file=rs6000/x-sysv4
5253 tm_file=rs6000/eabiaix.h
5254 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5255 extra_headers=ppc-asm.h
5258 tm_file=rs6000/eabisim.h
5259 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5260 extra_headers=ppc-asm.h
5263 tm_file=rs6000/eabi.h
5264 if test x$gas = xyes
5266 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5268 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5270 extra_headers=ppc-asm.h
5273 tm_file=rs6000/rtems.h
5274 if test x$gas = xyes
5276 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
5278 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
5280 extra_headers=ppc-asm.h
5282 powerpc-*-linux-gnulibc1)
5283 tm_file=rs6000/linux.h
5284 xm_file=rs6000/xm-sysv4.h
5285 out_file=rs6000/rs6000.c
5286 if test x$gas = xyes
5288 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5290 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5293 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5294 extra_headers=ppc-asm.h
5295 if test x$enable_threads = xyes; then
5299 powerpc-*-linux-gnu*)
5300 tm_file=rs6000/linux.h
5301 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5302 xm_defines="USG ${xm_defines}"
5303 out_file=rs6000/rs6000.c
5304 if test x$gas = xyes
5306 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
5308 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
5311 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5312 extra_headers=ppc-asm.h
5313 if test x$enable_threads = xyes; then
5317 powerpc-wrs-vxworks*)
5319 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5320 xm_defines="USG POSIX"
5321 tm_file=rs6000/vxppc.h
5322 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5323 extra_headers=ppc-asm.h
5324 thread_file='vxworks'
5326 powerpcle-*-sysv* | powerpcle-*-elf*)
5327 tm_file=rs6000/sysv4le.h
5328 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5329 xm_defines="USG POSIX"
5330 if test x$gas = xyes
5332 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5334 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5336 xmake_file=rs6000/x-sysv4
5337 extra_headers=ppc-asm.h
5339 powerpcle-*-eabisim*)
5340 tm_file=rs6000/eabilesim.h
5341 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5342 extra_headers=ppc-asm.h
5345 tm_file=rs6000/eabile.h
5346 if test x$gas = xyes
5348 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5350 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5352 extra_headers=ppc-asm.h
5354 powerpcle-*-winnt* )
5355 tm_file=rs6000/win-nt.h
5356 tmake_file=rs6000/t-winnt
5358 if test x$enable_threads = xyes; then
5361 extra_headers=ppc-asm.h
5363 powerpcle-*-pe | powerpcle-*-cygwin*)
5364 tm_file=rs6000/cygwin.h
5365 xm_file="rs6000/xm-cygwin.h ${xm_file}"
5366 tmake_file=rs6000/t-winnt
5367 xmake_file=rs6000/x-cygwin
5369 if test x$enable_threads = xyes; then
5373 extra_headers=ppc-asm.h
5375 powerpcle-*-solaris2*)
5376 tm_file=rs6000/sol2.h
5377 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5378 xm_defines="USG POSIX"
5379 if test x$gas = xyes
5381 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5383 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5385 xmake_file=rs6000/x-sysv4
5386 extra_headers=ppc-asm.h
5388 rs6000-ibm-aix3.[01]*)
5389 tm_file=rs6000/aix31.h
5390 xmake_file=rs6000/x-aix31
5394 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
5395 tm_file=rs6000/aix3newas.h
5396 if test x$host != x$target
5398 tmake_file=rs6000/t-xnewas
5400 tmake_file=rs6000/t-newas
5405 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
5406 tm_file=rs6000/aix41.h
5407 if test x$host != x$target
5409 tmake_file=rs6000/t-xnewas
5411 tmake_file=rs6000/t-newas
5413 if test "$gnu_ld" = yes
5415 xmake_file=rs6000/x-aix41-gld
5417 xmake_file=rs6000/x-aix41
5422 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
5423 tm_file=rs6000/aix43.h
5424 if test x$host != x$target
5426 tmake_file=rs6000/t-xaix43
5428 tmake_file=rs6000/t-aix43
5430 xmake_file=rs6000/x-aix43
5434 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
5435 tm_file=rs6000/aix43.h
5436 if test x$host != x$target
5438 tmake_file=rs6000/t-xaix43
5440 tmake_file=rs6000/t-aix43
5442 xmake_file=rs6000/x-aix43
5455 tm_file=rs6000/mach.h
5456 xm_file="${xm_file} rs6000/xm-mach.h"
5457 xmake_file=rs6000/x-mach
5461 tm_file=rs6000/lynx.h
5462 xm_file=rs6000/xm-lynx.h
5463 tmake_file=rs6000/t-rs6000
5464 xmake_file=rs6000/x-lynx
5472 tmake_file="sh/t-sh t-rtems"
5473 tm_file=sh/rtemself.h
5477 tmake_file="sh/t-sh t-rtems"
5486 xm_file="xm-alloca.h ${xm_file}"
5489 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
5490 tm_file=sparc/vxsparc.h
5491 tmake_file=sparc/t-vxsparc
5493 thread_file='vxworks'
5496 tmake_file=sparc/t-sparcbare
5497 tm_file="sparc/aout.h libgloss.h"
5500 tm_file=sparc/netbsd.h
5505 # we need collect2 until our bug is fixed...
5513 tmake_file=sparc/t-elf
5514 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
5518 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
5519 xm_file="${xm_file} sparc/xm-linux.h"
5520 tm_file=sparc/linux-aout.h
5524 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
5525 xm_file="${xm_file} sparc/xm-linux.h"
5527 tm_file=sparc/linux.h
5528 tmake_file="t-linux t-linux-gnulibc1"
5529 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5533 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
5534 xm_file="${xm_file} sparc/xm-linux.h"
5536 tm_file=sparc/linux.h
5537 tmake_file="t-linux"
5538 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5540 if test x$enable_threads = xyes; then
5546 if test x$gas = xyes
5548 tm_file=sparc/lynx.h
5550 tm_file=sparc/lynx-ng.h
5552 xm_file=sparc/xm-lynx.h
5553 tmake_file=sparc/t-sunos41
5557 tmake_file="sparc/t-sparcbare t-rtems"
5558 tm_file=sparc/rtems.h
5560 sparcv9-*-solaris2*)
5561 tm_file=sparc/sol2-sld-64.h
5562 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
5563 xm_defines="USG POSIX"
5564 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
5565 xmake_file=sparc/x-sysv4
5566 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
5568 if test x${enable_threads} = x ; then
5569 enable_threads=$have_pthread_h
5570 if test x${enable_threads} = x ; then
5571 enable_threads=$have_thread_h
5574 if test x${enable_threads} = xyes ; then
5575 if test x${have_pthread_h} = xyes ; then
5578 thread_file='solaris'
5582 sparc-hal-solaris2*)
5583 xm_file=sparc/xm-sol2.h
5584 tm_file="sparc/sol2.h sparc/hal.h"
5585 tmake_file="sparc/t-halos sparc/t-sol2"
5586 xmake_file=sparc/x-sysv4
5587 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
5591 if test x$gnu_ld = xyes
5593 tm_file=sparc/sol2.h
5595 tm_file=sparc/sol2-sld.h
5597 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
5598 xm_defines="USG POSIX"
5599 tmake_file=sparc/t-sol2
5600 xmake_file=sparc/x-sysv4
5601 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
5610 if test x${enable_threads} = x; then
5611 enable_threads=$have_pthread_h
5612 if test x${enable_threads} = x; then
5613 enable_threads=$have_thread_h
5616 if test x${enable_threads} = xyes; then
5617 if test x${have_pthread_h} = xyes; then
5620 thread_file='solaris'
5625 tm_file=sparc/sunos4.h
5626 tmake_file=sparc/t-sunos40
5630 tm_file=sparc/sunos4.h
5631 tmake_file=sparc/t-sunos41
5633 if test x$gas = xyes; then
5634 tm_file="${tm_file} sparc/sun4gas.h"
5638 tm_file=sparc/sun4o3.h
5642 tm_file=sparc/sysv4.h
5643 xm_file="xm-siglist.h sparc/xm-sysv4.h"
5644 xm_defines="USG POSIX"
5646 xmake_file=sparc/x-sysv4
5647 extra_parts="crtbegin.o crtend.o"
5650 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
5651 xm_defines="USG POSIX"
5652 tm_file=sparc/vxsim.h
5653 tmake_file=sparc/t-vxsparc
5654 xmake_file=sparc/x-sysv4
5657 tm_file="sparc/splet.h libgloss.h"
5658 tmake_file=sparc/t-splet
5661 tm_file="sparc/litecoff.h libgloss.h"
5662 tmake_file=sparc/t-sparclite
5665 tm_file="sparc/lite.h aoutos.h libgloss.h"
5666 tmake_file=sparc/t-sparclite
5669 tm_file="sparc/liteelf.h libgloss.h"
5670 tmake_file=sparc/t-sparclite
5671 extra_parts="crtbegin.o crtend.o"
5674 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
5675 tmake_file=sparc/t-sp86x
5678 tm_file="sparc/sp86x-elf.h libgloss.h"
5679 tmake_file=sparc/t-sp86x
5680 extra_parts="crtbegin.o crtend.o"
5683 tmake_file=sparc/t-sp64
5684 tm_file=sparc/sp64-aout.h
5687 tmake_file=sparc/t-sp64
5688 tm_file=sparc/sp64-elf.h
5689 extra_parts="crtbegin.o crtend.o"
5691 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
5692 tmake_file="t-linux sparc/t-linux64"
5693 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
5694 tm_file=sparc/linux64.h
5696 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5700 # This hasn't been upgraded to GCC 2.
5701 # tahoe-harris-*) # Harris tahoe, using COFF.
5702 # tm_file=tahoe/harris.h
5704 # tahoe-*-bsd*) # tahoe running BSD
5706 thumb-*-coff* | thumbel-*-coff*)
5708 out_file=arm/thumb.c
5709 xm_file=arm/xm-thumb.h
5710 md_file=arm/thumb.md
5711 tmake_file=arm/t-thumb
5713 thumb-*-elf* | thumbel-*-elf*)
5715 out_file=arm/thumb.c
5716 xm_file=arm/xm-thumb.h
5717 md_file=arm/thumb.md
5718 tmake_file=arm/t-thumb-elf
5721 tm_file=arm/linux-telf.h
5722 out_file=arm/thumb.c
5723 xm_file=arm/xm-thumb.h
5724 md_file=arm/thumb.md
5725 tmake_file=arm/t-thumb-linux
5728 tm_file=arm/uclinux-telf.h
5729 out_file=arm/thumb.c
5730 md_file=arm/thumb.md
5731 tmake_file=arm/t-thumb-linux
5732 xm_file=arm/xm-thumb.h
5736 out_file=arm/thumb.c
5737 xm_file=arm/xm-thumb.h
5738 md_file=arm/thumb.md
5739 tmake_file=arm/t-thumb
5740 thread_file='vxworks'
5744 out_file=arm/thumb.c
5745 xm_file=arm/xm-thumb.h
5746 md_file=arm/thumb.md
5747 tmake_file=arm/t-pe-thumb
5750 # This hasn't been upgraded to GCC 2.
5756 target_cpu_default="TARGET_CPU_generic"
5758 tm_file="v850/v850.h"
5759 xm_file="v850/xm-v850.h"
5760 tmake_file=v850/t-v850
5761 if test x$stabs = xyes
5763 tm_file="${tm_file} dbx.h"
5767 vax-*-bsd*) # vaxen running BSD
5771 vax-*-sysv*) # vaxen running system V
5772 tm_file="${tm_file} vax/vaxv.h"
5777 tm_file="${tm_file} netbsd.h vax/netbsd.h"
5783 tmake_file="${tmake_file} vax/t-openbsd"
5785 vax-*-ultrix*) # vaxen running ultrix
5786 tm_file="${tm_file} vax/ultrix.h"
5790 vax-*-vms*) # vaxen running VMS
5791 xm_file=vax/xm-vms.h
5795 vax-*-*) # vax default entry
5799 xm_file="${xm_file} xm-svr3"
5803 echo "Configuration $machine not supported" 1>&2
5810 ;; # Existing GNU/Linux systems do not use the GNU setup.
5812 # On the GNU system, the setup is just about the same on
5813 # each different CPU. The specific machines that GNU
5814 # supports are matched above and just set $cpu_type.
5815 xm_file="xm-gnu.h ${xm_file}"
5816 tm_file=${cpu_type}/gnu.h
5817 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
5818 # GNU always uses ELF.
5820 # GNU tools are the only tools.
5823 xmake_file=x-linux # These details are the same as Linux.
5824 tmake_file=t-gnu # These are not.
5827 xmake_try_sysv=x-sysv
5828 install_headers_dir=install-headers-cpio
5831 install_headers_dir=install-headers-cpio
5835 # Distinguish i[34567]86
5836 # Also, do not run mips-tfile on MIPS if using gas.
5837 # Process --with-cpu= for PowerPC/rs6000
5838 target_cpu_default2=
5841 target_cpu_default2=1
5844 case $target_alias in
5846 target_cpu_default2=4
5849 target_cpu_default2=2
5853 i686-*-* | i786-*-*)
5854 target_cpu_default2=3
5859 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
5862 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
5865 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
5868 target_cpu_default2="MASK_CPU_EV5"
5872 if test x$gas = xyes
5874 if test "$target_cpu_default2" = ""
5876 target_cpu_default2="MASK_GAS"
5878 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
5883 case "x$with_cpu" in
5886 target_cpu_default2="TARGET_CPU_generic"
5889 # Distinguish cores, and major variants
5890 # arm7m doesn't exist, but D & I don't affect code
5891 xarm23678 | xarm250 | xarm67010 \
5892 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
5893 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
5894 | xstrongarm | xstrongarm110 | xstrongarm1100)
5895 target_cpu_default2="TARGET_CPU_$with_cpu"
5899 echo "--with-cpu must be passed a value" 1>&2
5904 if test x$pass2done = xyes
5906 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5913 mips*-*-ecoff* | mips*-*-elf*)
5914 if test x$gas = xyes
5916 if test x$gnu_ld = xyes
5918 target_cpu_default2=20
5920 target_cpu_default2=16
5925 if test x$gas = xyes
5927 target_cpu_default2=16
5930 powerpc*-*-* | rs6000-*-*)
5931 case "x$with_cpu" in
5935 xcommon | xpower | xpower2 | xpowerpc | xrios \
5936 | xrios1 | xrios2 | xrsc | xrsc1 \
5937 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
5938 | xec603e | x740 | x750 | x401 \
5939 | x403 | x505 | x801 | x821 | x823 | x860)
5940 target_cpu_default2="\"$with_cpu\""
5944 echo "--with-cpu must be passed a value" 1>&2
5949 if test x$pass2done = xyes
5951 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5958 case ".$with_cpu" in
5960 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
5962 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
5963 target_cpu_default2="TARGET_CPU_$with_cpu"
5966 if test x$pass2done = xyes
5968 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5976 if test "$target_cpu_default2" != ""
5978 if test "$target_cpu_default" != ""
5980 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
5982 target_cpu_default=$target_cpu_default2
5986 # No need for collect2 if we have the GNU linker.
5987 # Actually, there is now; GNU ld doesn't handle the EH info or
5988 # collecting for shared libraries.
5995 # Save data on machine being used to compile GCC in build_xm_file.
5996 # Save data on host machine in vars host_xm_file and host_xmake_file.
5997 if test x$pass1done = x
5999 if test x"$xm_file" = x
6000 then build_xm_file=$cpu_type/xm-$cpu_type.h
6001 else build_xm_file=$xm_file
6003 build_xm_defines=$xm_defines
6004 build_install_headers_dir=$install_headers_dir
6005 build_exeext=$exeext
6008 if test x$pass2done = x
6010 if test x"$xm_file" = x
6011 then host_xm_file=$cpu_type/xm-$cpu_type.h
6012 else host_xm_file=$xm_file
6014 host_xm_defines=$xm_defines
6015 if test x"$xmake_file" = x
6016 then xmake_file=$cpu_type/x-$cpu_type
6018 host_xmake_file="$xmake_file"
6019 host_truncate_target=$truncate_target
6020 host_extra_gcc_objs=$extra_gcc_objs
6021 host_extra_objs=$extra_host_objs
6028 extra_objs="${host_extra_objs} ${extra_objs}"
6030 # Default the target-machine variables that were not explicitly set.
6031 if test x"$tm_file" = x
6032 then tm_file=$cpu_type/$cpu_type.h; fi
6034 if test x$extra_headers = x
6035 then extra_headers=; fi
6037 if test x"$xm_file" = x
6038 then xm_file=$cpu_type/xm-$cpu_type.h; fi
6040 if test x$md_file = x
6041 then md_file=$cpu_type/$cpu_type.md; fi
6043 if test x$out_file = x
6044 then out_file=$cpu_type/$cpu_type.c; fi
6046 if test x"$tmake_file" = x
6047 then tmake_file=$cpu_type/t-$cpu_type
6050 if test x"$dwarf2" = xyes
6051 then tm_file="tm-dwarf2.h $tm_file"
6054 if test x$float_format = x
6055 then float_format=i64
6058 if test $float_format = none
6059 then float_h_file=Makefile.in
6060 else float_h_file=float-$float_format.h
6063 # Handle cpp installation.
6064 if test x$enable_cpp != xno
6066 tmake_file="$tmake_file t-install-cpp"
6069 # Say what files are being used for the output code and MD file.
6070 echo "Using \`$srcdir/config/$out_file' to output insns."
6071 echo "Using \`$srcdir/config/$md_file' as machine description file."
6074 for f in $tm_file; do
6077 if test $count = ax; then
6078 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
6080 echo "Using the following target machine macro files:"
6081 for f in $tm_file; do
6082 echo " $srcdir/config/$f"
6087 for f in $host_xm_file; do
6090 if test $count = ax; then
6091 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
6093 echo "Using the following host machine macro files:"
6094 for f in $host_xm_file; do
6095 echo " $srcdir/config/$f"
6099 if test "$host_xm_file" != "$build_xm_file"; then
6101 for f in $build_xm_file; do
6104 if test $count = ax; then
6105 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
6107 echo "Using the following build machine macro files:"
6108 for f in $build_xm_file; do
6109 echo " $srcdir/config/$f"
6114 if test x$thread_file = x; then
6115 if test x$target_thread_file != x; then
6116 thread_file=$target_thread_file
6118 thread_file='single'
6122 # Set up the header files.
6123 # $links is the list of header files to create.
6124 # $vars is the list of shell variables with file names to include.
6125 # auto-host.h is the file containing items generated by autoconf and is
6126 # the first file included by config.h.
6128 host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
6130 # If host=build, it is correct to have hconfig include auto-host.h
6131 # as well. If host!=build, we are in error and need to do more
6132 # work to find out the build config parameters.
6133 if test x$host = x$build
6135 build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
6137 # We create a subdir, then run autoconf in the subdir.
6138 # To prevent recursion we set host and build for the new
6139 # invocation of configure to the build for this invocation
6146 /*) realsrcdir=${srcdir};;
6147 *) realsrcdir=../${srcdir};;
6149 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
6150 --target=$target --host=$build --build=$build
6152 # We just finished tests for the build machine, so rename
6153 # the file auto-build.h in the gcc directory.
6154 mv auto-host.h ../auto-build.h
6157 build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
6160 xm_file="gansidecl.h ${xm_file}"
6161 tm_file="gansidecl.h ${tm_file}"
6163 vars="host_xm_file tm_file xm_file build_xm_file"
6164 links="config.h tm.h tconfig.h hconfig.h"
6165 defines="host_xm_defines null_defines xm_defines build_xm_defines"
6168 if test -f config.status; then mv -f config.status config.bak; fi
6171 while test -n "$vars"
6173 set $vars; var=$1; shift; vars=$*
6174 set $links; link=$1; shift; links=$*
6175 set $defines; define=$1; shift; defines=$*
6179 # Define TARGET_CPU_DEFAULT if the system wants one.
6180 # This substitutes for lots of *.h files.
6181 if test "$target_cpu_default" != "" -a $link = tm.h
6183 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
6186 for file in `eval echo '$'$var`; do
6191 echo '#ifdef IN_GCC' >>$link
6194 echo "#include \"$file\"" >>$link
6199 echo '#endif' >>$link
6204 for def in `eval echo '$'$define`; do
6205 echo "#ifndef $def" >>$link
6206 echo "#define $def" >>$link
6207 echo "#endif" >>$link
6211 # Truncate the target if necessary
6212 if test x$host_truncate_target != x; then
6213 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
6216 # Get the version trigger filename from the toplevel
6217 if test "${with_gcc_version_trigger+set}" = set; then
6218 gcc_version_trigger=$with_gcc_version_trigger
6220 gcc_version_trigger=${srcdir}/version.c
6222 gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
6224 # Internationalization
6226 VERSION="$gcc_version"
6227 cat >> confdefs.h <<EOF
6228 #define PACKAGE "$PACKAGE"
6231 cat >> confdefs.h <<EOF
6232 #define VERSION "$VERSION"
6240 # NLS support is still experimental, so disable it by default for now.
6241 # Check whether --enable-nls or --disable-nls was given.
6242 if test "${enable_nls+set}" = set; then
6243 enableval="$enable_nls"
6251 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
6252 echo "configure:6253: checking for strerror in -lcposix" >&5
6253 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
6254 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6255 echo $ac_n "(cached) $ac_c" 1>&6
6257 ac_save_LIBS="$LIBS"
6258 LIBS="-lcposix $LIBS"
6259 cat > conftest.$ac_ext <<EOF
6260 #line 6261 "configure"
6261 #include "confdefs.h"
6262 /* Override any gcc2 internal prototype to avoid an error. */
6263 /* We use char because int might match the return type of a gcc2
6264 builtin and then its argument prototype would still apply. */
6271 if { (eval echo configure:6272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6273 eval "ac_cv_lib_$ac_lib_var=yes"
6275 echo "configure: failed program was:" >&5
6276 cat conftest.$ac_ext >&5
6278 eval "ac_cv_lib_$ac_lib_var=no"
6281 LIBS="$ac_save_LIBS"
6284 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6285 echo "$ac_t""yes" 1>&6
6286 LIBS="$LIBS -lcposix"
6288 echo "$ac_t""no" 1>&6
6293 echo $ac_n "checking for working const""... $ac_c" 1>&6
6294 echo "configure:6295: checking for working const" >&5
6295 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6296 echo $ac_n "(cached) $ac_c" 1>&6
6298 cat > conftest.$ac_ext <<EOF
6299 #line 6300 "configure"
6300 #include "confdefs.h"
6304 /* Ultrix mips cc rejects this. */
6305 typedef int charset[2]; const charset x;
6306 /* SunOS 4.1.1 cc rejects this. */
6307 char const *const *ccp;
6309 /* NEC SVR4.0.2 mips cc rejects this. */
6310 struct point {int x, y;};
6311 static struct point const zero = {0,0};
6312 /* AIX XL C 1.02.0.0 rejects this.
6313 It does not let you subtract one const X* pointer from another in an arm
6314 of an if-expression whose if-part is not a constant expression */
6315 const char *g = "string";
6316 ccp = &g + (g ? g-g : 0);
6317 /* HPUX 7.0 cc rejects these. */
6320 ccp = (char const *const *) p;
6321 { /* SCO 3.2v4 cc rejects this. */
6323 char const *s = 0 ? (char *) 0 : (char const *) 0;
6327 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6329 const int *foo = &x[0];
6332 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6333 typedef const int *iptr;
6337 { /* AIX XL C 1.02.0.0 rejects this saying
6338 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6339 struct s { int j; const int *ap[3]; };
6340 struct s *b; b->j = 5;
6342 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6348 if { (eval echo configure:6349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6352 echo "configure: failed program was:" >&5
6353 cat conftest.$ac_ext >&5
6360 echo "$ac_t""$ac_cv_c_const" 1>&6
6361 if test $ac_cv_c_const = no; then
6362 cat >> confdefs.h <<\EOF
6368 echo $ac_n "checking for inline""... $ac_c" 1>&6
6369 echo "configure:6370: checking for inline" >&5
6370 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6371 echo $ac_n "(cached) $ac_c" 1>&6
6374 for ac_kw in inline __inline__ __inline; do
6375 cat > conftest.$ac_ext <<EOF
6376 #line 6377 "configure"
6377 #include "confdefs.h"
6383 if { (eval echo configure:6384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6385 ac_cv_c_inline=$ac_kw; break
6387 echo "configure: failed program was:" >&5
6388 cat conftest.$ac_ext >&5
6395 echo "$ac_t""$ac_cv_c_inline" 1>&6
6396 case "$ac_cv_c_inline" in
6398 no) cat >> confdefs.h <<\EOF
6402 *) cat >> confdefs.h <<EOF
6403 #define inline $ac_cv_c_inline
6408 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6409 echo "configure:6410: checking for off_t" >&5
6410 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6411 echo $ac_n "(cached) $ac_c" 1>&6
6413 cat > conftest.$ac_ext <<EOF
6414 #line 6415 "configure"
6415 #include "confdefs.h"
6416 #include <sys/types.h>
6422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6423 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6425 ac_cv_type_off_t=yes
6433 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6434 if test $ac_cv_type_off_t = no; then
6435 cat >> confdefs.h <<\EOF
6441 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6442 echo "configure:6443: checking for size_t" >&5
6443 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6444 echo $ac_n "(cached) $ac_c" 1>&6
6446 cat > conftest.$ac_ext <<EOF
6447 #line 6448 "configure"
6448 #include "confdefs.h"
6449 #include <sys/types.h>
6455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6456 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6458 ac_cv_type_size_t=yes
6461 ac_cv_type_size_t=no
6466 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6467 if test $ac_cv_type_size_t = no; then
6468 cat >> confdefs.h <<\EOF
6469 #define size_t unsigned
6474 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6475 # for constant arguments. Useless!
6476 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6477 echo "configure:6478: checking for working alloca.h" >&5
6478 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6479 echo $ac_n "(cached) $ac_c" 1>&6
6481 cat > conftest.$ac_ext <<EOF
6482 #line 6483 "configure"
6483 #include "confdefs.h"
6486 char *p = alloca(2 * sizeof(int));
6489 if { (eval echo configure:6490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6491 ac_cv_header_alloca_h=yes
6493 echo "configure: failed program was:" >&5
6494 cat conftest.$ac_ext >&5
6496 ac_cv_header_alloca_h=no
6501 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6502 if test $ac_cv_header_alloca_h = yes; then
6503 cat >> confdefs.h <<\EOF
6504 #define HAVE_ALLOCA_H 1
6509 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6510 echo "configure:6511: checking for alloca" >&5
6511 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6512 echo $ac_n "(cached) $ac_c" 1>&6
6514 cat > conftest.$ac_ext <<EOF
6515 #line 6516 "configure"
6516 #include "confdefs.h"
6519 # define alloca __builtin_alloca
6522 # include <malloc.h>
6523 # define alloca _alloca
6526 # include <alloca.h>
6531 # ifndef alloca /* predefined by HP cc +Olibcalls */
6540 char *p = (char *) alloca(1);
6543 if { (eval echo configure:6544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6545 ac_cv_func_alloca_works=yes
6547 echo "configure: failed program was:" >&5
6548 cat conftest.$ac_ext >&5
6550 ac_cv_func_alloca_works=no
6555 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6556 if test $ac_cv_func_alloca_works = yes; then
6557 cat >> confdefs.h <<\EOF
6558 #define HAVE_ALLOCA 1
6563 if test $ac_cv_func_alloca_works = no; then
6564 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6565 # that cause trouble. Some versions do not even contain alloca or
6566 # contain a buggy version. If you still want to use their alloca,
6567 # use ar to extract alloca.o from them instead of compiling alloca.c.
6568 ALLOCA=alloca.${ac_objext}
6569 cat >> confdefs.h <<\EOF
6574 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
6575 echo "configure:6576: checking whether alloca needs Cray hooks" >&5
6576 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6577 echo $ac_n "(cached) $ac_c" 1>&6
6579 cat > conftest.$ac_ext <<EOF
6580 #line 6581 "configure"
6581 #include "confdefs.h"
6582 #if defined(CRAY) && ! defined(CRAY2)
6589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6590 egrep "webecray" >/dev/null 2>&1; then
6601 echo "$ac_t""$ac_cv_os_cray" 1>&6
6602 if test $ac_cv_os_cray = yes; then
6603 for ac_func in _getb67 GETB67 getb67; do
6604 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6605 echo "configure:6606: checking for $ac_func" >&5
6606 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6607 echo $ac_n "(cached) $ac_c" 1>&6
6609 cat > conftest.$ac_ext <<EOF
6610 #line 6611 "configure"
6611 #include "confdefs.h"
6612 /* System header to define __stub macros and hopefully few prototypes,
6613 which can conflict with char $ac_func(); below. */
6615 /* Override any gcc2 internal prototype to avoid an error. */
6616 /* We use char because int might match the return type of a gcc2
6617 builtin and then its argument prototype would still apply. */
6622 /* The GNU C library defines this for functions which it implements
6623 to always fail with ENOSYS. Some functions are actually named
6624 something starting with __ and the normal name is an alias. */
6625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6633 if { (eval echo configure:6634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6635 eval "ac_cv_func_$ac_func=yes"
6637 echo "configure: failed program was:" >&5
6638 cat conftest.$ac_ext >&5
6640 eval "ac_cv_func_$ac_func=no"
6645 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6646 echo "$ac_t""yes" 1>&6
6647 cat >> confdefs.h <<EOF
6648 #define CRAY_STACKSEG_END $ac_func
6653 echo "$ac_t""no" 1>&6
6659 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
6660 echo "configure:6661: checking stack direction for C alloca" >&5
6661 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
6662 echo $ac_n "(cached) $ac_c" 1>&6
6664 if test "$cross_compiling" = yes; then
6665 ac_cv_c_stack_direction=0
6667 cat > conftest.$ac_ext <<EOF
6668 #line 6669 "configure"
6669 #include "confdefs.h"
6670 find_stack_direction ()
6672 static char *addr = 0;
6677 return find_stack_direction ();
6680 return (&dummy > addr) ? 1 : -1;
6684 exit (find_stack_direction() < 0);
6687 if { (eval echo configure:6688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6689 ac_cv_c_stack_direction=1
6691 echo "configure: failed program was:" >&5
6692 cat conftest.$ac_ext >&5
6694 ac_cv_c_stack_direction=-1
6701 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6702 cat >> confdefs.h <<EOF
6703 #define STACK_DIRECTION $ac_cv_c_stack_direction
6708 for ac_hdr in unistd.h
6710 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6711 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6712 echo "configure:6713: checking for $ac_hdr" >&5
6713 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6714 echo $ac_n "(cached) $ac_c" 1>&6
6716 cat > conftest.$ac_ext <<EOF
6717 #line 6718 "configure"
6718 #include "confdefs.h"
6721 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6722 { (eval echo configure:6723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6723 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6724 if test -z "$ac_err"; then
6726 eval "ac_cv_header_$ac_safe=yes"
6729 echo "configure: failed program was:" >&5
6730 cat conftest.$ac_ext >&5
6732 eval "ac_cv_header_$ac_safe=no"
6736 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6737 echo "$ac_t""yes" 1>&6
6738 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6739 cat >> confdefs.h <<EOF
6740 #define $ac_tr_hdr 1
6744 echo "$ac_t""no" 1>&6
6748 for ac_func in getpagesize
6750 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6751 echo "configure:6752: checking for $ac_func" >&5
6752 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6753 echo $ac_n "(cached) $ac_c" 1>&6
6755 cat > conftest.$ac_ext <<EOF
6756 #line 6757 "configure"
6757 #include "confdefs.h"
6758 /* System header to define __stub macros and hopefully few prototypes,
6759 which can conflict with char $ac_func(); below. */
6761 /* Override any gcc2 internal prototype to avoid an error. */
6762 /* We use char because int might match the return type of a gcc2
6763 builtin and then its argument prototype would still apply. */
6768 /* The GNU C library defines this for functions which it implements
6769 to always fail with ENOSYS. Some functions are actually named
6770 something starting with __ and the normal name is an alias. */
6771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6779 if { (eval echo configure:6780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6781 eval "ac_cv_func_$ac_func=yes"
6783 echo "configure: failed program was:" >&5
6784 cat conftest.$ac_ext >&5
6786 eval "ac_cv_func_$ac_func=no"
6791 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6792 echo "$ac_t""yes" 1>&6
6793 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6794 cat >> confdefs.h <<EOF
6795 #define $ac_tr_func 1
6799 echo "$ac_t""no" 1>&6
6803 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6804 echo "configure:6805: checking for working mmap" >&5
6805 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6806 echo $ac_n "(cached) $ac_c" 1>&6
6808 if test "$cross_compiling" = yes; then
6809 ac_cv_func_mmap_fixed_mapped=no
6811 cat > conftest.$ac_ext <<EOF
6812 #line 6813 "configure"
6813 #include "confdefs.h"
6815 /* Thanks to Mike Haertel and Jim Avera for this test.
6816 Here is a matrix of mmap possibilities:
6817 mmap private not fixed
6818 mmap private fixed at somewhere currently unmapped
6819 mmap private fixed at somewhere already mapped
6820 mmap shared not fixed
6821 mmap shared fixed at somewhere currently unmapped
6822 mmap shared fixed at somewhere already mapped
6823 For private mappings, we should verify that changes cannot be read()
6824 back from the file, nor mmap's back from the file at a different
6825 address. (There have been systems where private was not correctly
6826 implemented like the infamous i386 svr4.0, and systems where the
6827 VM page cache was not coherent with the filesystem buffer cache
6828 like early versions of FreeBSD and possibly contemporary NetBSD.)
6829 For shared mappings, we should conversely verify that changes get
6830 propogated back to all the places they're supposed to be.
6832 Grep wants private fixed already mapped.
6833 The main things grep needs to know about mmap are:
6834 * does it exist and is it safe to write into the mmap'd area
6835 * how to use it (BSD variants) */
6836 #include <sys/types.h>
6838 #include <sys/mman.h>
6840 /* This mess was copied from the GNU getpagesize.h. */
6841 #ifndef HAVE_GETPAGESIZE
6842 # ifdef HAVE_UNISTD_H
6843 # include <unistd.h>
6846 /* Assume that all systems that can run configure have sys/param.h. */
6847 # ifndef HAVE_SYS_PARAM_H
6848 # define HAVE_SYS_PARAM_H 1
6851 # ifdef _SC_PAGESIZE
6852 # define getpagesize() sysconf(_SC_PAGESIZE)
6853 # else /* no _SC_PAGESIZE */
6854 # ifdef HAVE_SYS_PARAM_H
6855 # include <sys/param.h>
6856 # ifdef EXEC_PAGESIZE
6857 # define getpagesize() EXEC_PAGESIZE
6858 # else /* no EXEC_PAGESIZE */
6860 # define getpagesize() NBPG * CLSIZE
6863 # endif /* no CLSIZE */
6864 # else /* no NBPG */
6866 # define getpagesize() NBPC
6867 # else /* no NBPC */
6869 # define getpagesize() PAGESIZE
6870 # endif /* PAGESIZE */
6871 # endif /* no NBPC */
6872 # endif /* no NBPG */
6873 # endif /* no EXEC_PAGESIZE */
6874 # else /* no HAVE_SYS_PARAM_H */
6875 # define getpagesize() 8192 /* punt totally */
6876 # endif /* no HAVE_SYS_PARAM_H */
6877 # endif /* no _SC_PAGESIZE */
6879 #endif /* no HAVE_GETPAGESIZE */
6882 extern "C" { void *malloc(unsigned); }
6890 char *data, *data2, *data3;
6894 pagesize = getpagesize();
6897 * First, make a file with some known garbage in it.
6899 data = malloc(pagesize);
6902 for (i = 0; i < pagesize; ++i)
6903 *(data + i) = rand();
6905 fd = creat("conftestmmap", 0600);
6908 if (write(fd, data, pagesize) != pagesize)
6913 * Next, try to mmap the file at a fixed address which
6914 * already has something else allocated at it. If we can,
6915 * also make sure that we see the same garbage.
6917 fd = open("conftestmmap", O_RDWR);
6920 data2 = malloc(2 * pagesize);
6923 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6924 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6925 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6927 for (i = 0; i < pagesize; ++i)
6928 if (*(data + i) != *(data2 + i))
6932 * Finally, make sure that changes to the mapped area
6933 * do not percolate back to the file as seen by read().
6934 * (This is a bug on some variants of i386 svr4.0.)
6936 for (i = 0; i < pagesize; ++i)
6937 *(data2 + i) = *(data2 + i) + 1;
6938 data3 = malloc(pagesize);
6941 if (read(fd, data3, pagesize) != pagesize)
6943 for (i = 0; i < pagesize; ++i)
6944 if (*(data + i) != *(data3 + i))
6947 unlink("conftestmmap");
6952 if { (eval echo configure:6953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6954 ac_cv_func_mmap_fixed_mapped=yes
6956 echo "configure: failed program was:" >&5
6957 cat conftest.$ac_ext >&5
6959 ac_cv_func_mmap_fixed_mapped=no
6966 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6967 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6968 cat >> confdefs.h <<\EOF
6975 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6976 unistd.h sys/param.h
6978 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6979 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6980 echo "configure:6981: checking for $ac_hdr" >&5
6981 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6982 echo $ac_n "(cached) $ac_c" 1>&6
6984 cat > conftest.$ac_ext <<EOF
6985 #line 6986 "configure"
6986 #include "confdefs.h"
6989 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6990 { (eval echo configure:6991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6991 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6992 if test -z "$ac_err"; then
6994 eval "ac_cv_header_$ac_safe=yes"
6997 echo "configure: failed program was:" >&5
6998 cat conftest.$ac_ext >&5
7000 eval "ac_cv_header_$ac_safe=no"
7004 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7005 echo "$ac_t""yes" 1>&6
7006 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7007 cat >> confdefs.h <<EOF
7008 #define $ac_tr_hdr 1
7012 echo "$ac_t""no" 1>&6
7016 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7017 strdup __argz_count __argz_stringify __argz_next
7019 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7020 echo "configure:7021: checking for $ac_func" >&5
7021 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7022 echo $ac_n "(cached) $ac_c" 1>&6
7024 cat > conftest.$ac_ext <<EOF
7025 #line 7026 "configure"
7026 #include "confdefs.h"
7027 /* System header to define __stub macros and hopefully few prototypes,
7028 which can conflict with char $ac_func(); below. */
7030 /* Override any gcc2 internal prototype to avoid an error. */
7031 /* We use char because int might match the return type of a gcc2
7032 builtin and then its argument prototype would still apply. */
7037 /* The GNU C library defines this for functions which it implements
7038 to always fail with ENOSYS. Some functions are actually named
7039 something starting with __ and the normal name is an alias. */
7040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7048 if { (eval echo configure:7049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7050 eval "ac_cv_func_$ac_func=yes"
7052 echo "configure: failed program was:" >&5
7053 cat conftest.$ac_ext >&5
7055 eval "ac_cv_func_$ac_func=no"
7060 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7061 echo "$ac_t""yes" 1>&6
7062 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7063 cat >> confdefs.h <<EOF
7064 #define $ac_tr_func 1
7068 echo "$ac_t""no" 1>&6
7073 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7074 for ac_func in stpcpy
7076 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7077 echo "configure:7078: checking for $ac_func" >&5
7078 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7079 echo $ac_n "(cached) $ac_c" 1>&6
7081 cat > conftest.$ac_ext <<EOF
7082 #line 7083 "configure"
7083 #include "confdefs.h"
7084 /* System header to define __stub macros and hopefully few prototypes,
7085 which can conflict with char $ac_func(); below. */
7087 /* Override any gcc2 internal prototype to avoid an error. */
7088 /* We use char because int might match the return type of a gcc2
7089 builtin and then its argument prototype would still apply. */
7094 /* The GNU C library defines this for functions which it implements
7095 to always fail with ENOSYS. Some functions are actually named
7096 something starting with __ and the normal name is an alias. */
7097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7105 if { (eval echo configure:7106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7107 eval "ac_cv_func_$ac_func=yes"
7109 echo "configure: failed program was:" >&5
7110 cat conftest.$ac_ext >&5
7112 eval "ac_cv_func_$ac_func=no"
7117 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7118 echo "$ac_t""yes" 1>&6
7119 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7120 cat >> confdefs.h <<EOF
7121 #define $ac_tr_func 1
7125 echo "$ac_t""no" 1>&6
7130 if test "${ac_cv_func_stpcpy}" = "yes"; then
7131 cat >> confdefs.h <<\EOF
7132 #define HAVE_STPCPY 1
7137 if test $ac_cv_header_locale_h = yes; then
7138 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
7139 echo "configure:7140: checking for LC_MESSAGES" >&5
7140 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
7141 echo $ac_n "(cached) $ac_c" 1>&6
7143 cat > conftest.$ac_ext <<EOF
7144 #line 7145 "configure"
7145 #include "confdefs.h"
7151 if { (eval echo configure:7152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7153 am_cv_val_LC_MESSAGES=yes
7155 echo "configure: failed program was:" >&5
7156 cat conftest.$ac_ext >&5
7158 am_cv_val_LC_MESSAGES=no
7163 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7164 if test $am_cv_val_LC_MESSAGES = yes; then
7165 cat >> confdefs.h <<\EOF
7166 #define HAVE_LC_MESSAGES 1
7171 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7172 echo "configure:7173: checking whether NLS is requested" >&5
7173 # Check whether --enable-nls or --disable-nls was given.
7174 if test "${enable_nls+set}" = set; then
7175 enableval="$enable_nls"
7181 echo "$ac_t""$USE_NLS" 1>&6
7184 USE_INCLUDED_LIBINTL=no
7186 if test "$USE_NLS" = "yes"; then
7187 cat >> confdefs.h <<\EOF
7188 #define ENABLE_NLS 1
7191 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7192 echo "configure:7193: checking whether included gettext is requested" >&5
7193 # Check whether --with-included-gettext or --without-included-gettext was given.
7194 if test "${with_included_gettext+set}" = set; then
7195 withval="$with_included_gettext"
7196 nls_cv_force_use_gnu_gettext=$withval
7198 nls_cv_force_use_gnu_gettext=no
7201 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7203 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7204 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7206 nls_cv_header_libgt=
7209 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7210 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7211 echo "configure:7212: checking for libintl.h" >&5
7212 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7213 echo $ac_n "(cached) $ac_c" 1>&6
7215 cat > conftest.$ac_ext <<EOF
7216 #line 7217 "configure"
7217 #include "confdefs.h"
7218 #include <libintl.h>
7220 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7221 { (eval echo configure:7222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7222 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7223 if test -z "$ac_err"; then
7225 eval "ac_cv_header_$ac_safe=yes"
7228 echo "configure: failed program was:" >&5
7229 cat conftest.$ac_ext >&5
7231 eval "ac_cv_header_$ac_safe=no"
7235 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7236 echo "$ac_t""yes" 1>&6
7237 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7238 echo "configure:7239: checking for gettext in libc" >&5
7239 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7240 echo $ac_n "(cached) $ac_c" 1>&6
7242 cat > conftest.$ac_ext <<EOF
7243 #line 7244 "configure"
7244 #include "confdefs.h"
7245 #include <libintl.h>
7247 return (int) gettext ("")
7250 if { (eval echo configure:7251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7252 gt_cv_func_gettext_libc=yes
7254 echo "configure: failed program was:" >&5
7255 cat conftest.$ac_ext >&5
7257 gt_cv_func_gettext_libc=no
7262 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7264 if test "$gt_cv_func_gettext_libc" != "yes"; then
7265 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7266 echo "configure:7267: checking for bindtextdomain in -lintl" >&5
7267 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7268 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7269 echo $ac_n "(cached) $ac_c" 1>&6
7271 ac_save_LIBS="$LIBS"
7273 cat > conftest.$ac_ext <<EOF
7274 #line 7275 "configure"
7275 #include "confdefs.h"
7276 /* Override any gcc2 internal prototype to avoid an error. */
7277 /* We use char because int might match the return type of a gcc2
7278 builtin and then its argument prototype would still apply. */
7279 char bindtextdomain();
7285 if { (eval echo configure:7286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7287 eval "ac_cv_lib_$ac_lib_var=yes"
7289 echo "configure: failed program was:" >&5
7290 cat conftest.$ac_ext >&5
7292 eval "ac_cv_lib_$ac_lib_var=no"
7295 LIBS="$ac_save_LIBS"
7298 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7299 echo "$ac_t""yes" 1>&6
7300 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7301 echo "configure:7302: checking for gettext in libintl" >&5
7302 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7303 echo $ac_n "(cached) $ac_c" 1>&6
7305 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7306 echo "configure:7307: checking for gettext in -lintl" >&5
7307 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7308 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7309 echo $ac_n "(cached) $ac_c" 1>&6
7311 ac_save_LIBS="$LIBS"
7313 cat > conftest.$ac_ext <<EOF
7314 #line 7315 "configure"
7315 #include "confdefs.h"
7316 /* Override any gcc2 internal prototype to avoid an error. */
7317 /* We use char because int might match the return type of a gcc2
7318 builtin and then its argument prototype would still apply. */
7325 if { (eval echo configure:7326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7327 eval "ac_cv_lib_$ac_lib_var=yes"
7329 echo "configure: failed program was:" >&5
7330 cat conftest.$ac_ext >&5
7332 eval "ac_cv_lib_$ac_lib_var=no"
7335 LIBS="$ac_save_LIBS"
7338 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7339 echo "$ac_t""yes" 1>&6
7340 gt_cv_func_gettext_libintl=yes
7342 echo "$ac_t""no" 1>&6
7343 gt_cv_func_gettext_libintl=no
7348 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7350 echo "$ac_t""no" 1>&6
7355 if test "$gt_cv_func_gettext_libc" = "yes" \
7356 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7357 cat >> confdefs.h <<\EOF
7358 #define HAVE_GETTEXT 1
7361 # Extract the first word of "msgfmt", so it can be a program name with args.
7362 set dummy msgfmt; ac_word=$2
7363 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7364 echo "configure:7365: checking for $ac_word" >&5
7365 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7366 echo $ac_n "(cached) $ac_c" 1>&6
7370 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7373 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7374 for ac_dir in $PATH; do
7375 test -z "$ac_dir" && ac_dir=.
7376 if test -f $ac_dir/$ac_word; then
7377 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7378 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7384 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7388 MSGFMT="$ac_cv_path_MSGFMT"
7389 if test -n "$MSGFMT"; then
7390 echo "$ac_t""$MSGFMT" 1>&6
7392 echo "$ac_t""no" 1>&6
7394 if test "$MSGFMT" != "no"; then
7395 for ac_func in dcgettext
7397 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7398 echo "configure:7399: checking for $ac_func" >&5
7399 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7400 echo $ac_n "(cached) $ac_c" 1>&6
7402 cat > conftest.$ac_ext <<EOF
7403 #line 7404 "configure"
7404 #include "confdefs.h"
7405 /* System header to define __stub macros and hopefully few prototypes,
7406 which can conflict with char $ac_func(); below. */
7408 /* Override any gcc2 internal prototype to avoid an error. */
7409 /* We use char because int might match the return type of a gcc2
7410 builtin and then its argument prototype would still apply. */
7415 /* The GNU C library defines this for functions which it implements
7416 to always fail with ENOSYS. Some functions are actually named
7417 something starting with __ and the normal name is an alias. */
7418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7426 if { (eval echo configure:7427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7428 eval "ac_cv_func_$ac_func=yes"
7430 echo "configure: failed program was:" >&5
7431 cat conftest.$ac_ext >&5
7433 eval "ac_cv_func_$ac_func=no"
7438 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7439 echo "$ac_t""yes" 1>&6
7440 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7441 cat >> confdefs.h <<EOF
7442 #define $ac_tr_func 1
7446 echo "$ac_t""no" 1>&6
7450 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7451 set dummy gmsgfmt; ac_word=$2
7452 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7453 echo "configure:7454: checking for $ac_word" >&5
7454 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7455 echo $ac_n "(cached) $ac_c" 1>&6
7459 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7462 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7465 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7467 for ac_dir in $ac_dummy; do
7468 test -z "$ac_dir" && ac_dir=.
7469 if test -f $ac_dir/$ac_word; then
7470 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7475 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7479 GMSGFMT="$ac_cv_path_GMSGFMT"
7480 if test -n "$GMSGFMT"; then
7481 echo "$ac_t""$GMSGFMT" 1>&6
7483 echo "$ac_t""no" 1>&6
7486 # Extract the first word of "xgettext", so it can be a program name with args.
7487 set dummy xgettext; ac_word=$2
7488 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7489 echo "configure:7490: checking for $ac_word" >&5
7490 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7491 echo $ac_n "(cached) $ac_c" 1>&6
7495 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7498 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7499 for ac_dir in $PATH; do
7500 test -z "$ac_dir" && ac_dir=.
7501 if test -f $ac_dir/$ac_word; then
7502 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7503 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7509 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7513 XGETTEXT="$ac_cv_path_XGETTEXT"
7514 if test -n "$XGETTEXT"; then
7515 echo "$ac_t""$XGETTEXT" 1>&6
7517 echo "$ac_t""no" 1>&6
7520 cat > conftest.$ac_ext <<EOF
7521 #line 7522 "configure"
7522 #include "confdefs.h"
7525 extern int _nl_msg_cat_cntr;
7526 return _nl_msg_cat_cntr
7529 if { (eval echo configure:7530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7534 echo "configure: failed program was:" >&5
7535 cat conftest.$ac_ext >&5
7546 echo "$ac_t""no" 1>&6
7550 if test "$CATOBJEXT" = "NONE"; then
7551 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
7552 echo "configure:7553: checking whether catgets can be used" >&5
7553 # Check whether --with-catgets or --without-catgets was given.
7554 if test "${with_catgets+set}" = set; then
7555 withval="$with_catgets"
7556 nls_cv_use_catgets=$withval
7558 nls_cv_use_catgets=no
7561 echo "$ac_t""$nls_cv_use_catgets" 1>&6
7563 if test "$nls_cv_use_catgets" = "yes"; then
7564 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
7565 echo "configure:7566: checking for main in -li" >&5
7566 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
7567 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7568 echo $ac_n "(cached) $ac_c" 1>&6
7570 ac_save_LIBS="$LIBS"
7572 cat > conftest.$ac_ext <<EOF
7573 #line 7574 "configure"
7574 #include "confdefs.h"
7580 if { (eval echo configure:7581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7582 eval "ac_cv_lib_$ac_lib_var=yes"
7584 echo "configure: failed program was:" >&5
7585 cat conftest.$ac_ext >&5
7587 eval "ac_cv_lib_$ac_lib_var=no"
7590 LIBS="$ac_save_LIBS"
7593 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7594 echo "$ac_t""yes" 1>&6
7595 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7596 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7597 cat >> confdefs.h <<EOF
7598 #define $ac_tr_lib 1
7604 echo "$ac_t""no" 1>&6
7607 echo $ac_n "checking for catgets""... $ac_c" 1>&6
7608 echo "configure:7609: checking for catgets" >&5
7609 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
7610 echo $ac_n "(cached) $ac_c" 1>&6
7612 cat > conftest.$ac_ext <<EOF
7613 #line 7614 "configure"
7614 #include "confdefs.h"
7615 /* System header to define __stub macros and hopefully few prototypes,
7616 which can conflict with char catgets(); below. */
7618 /* Override any gcc2 internal prototype to avoid an error. */
7619 /* We use char because int might match the return type of a gcc2
7620 builtin and then its argument prototype would still apply. */
7625 /* The GNU C library defines this for functions which it implements
7626 to always fail with ENOSYS. Some functions are actually named
7627 something starting with __ and the normal name is an alias. */
7628 #if defined (__stub_catgets) || defined (__stub___catgets)
7636 if { (eval echo configure:7637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7638 eval "ac_cv_func_catgets=yes"
7640 echo "configure: failed program was:" >&5
7641 cat conftest.$ac_ext >&5
7643 eval "ac_cv_func_catgets=no"
7648 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
7649 echo "$ac_t""yes" 1>&6
7650 cat >> confdefs.h <<\EOF
7651 #define HAVE_CATGETS 1
7654 INTLOBJS="\$(CATOBJS)"
7655 # Extract the first word of "gencat", so it can be a program name with args.
7656 set dummy gencat; ac_word=$2
7657 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7658 echo "configure:7659: checking for $ac_word" >&5
7659 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
7660 echo $ac_n "(cached) $ac_c" 1>&6
7664 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
7667 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
7670 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7672 for ac_dir in $ac_dummy; do
7673 test -z "$ac_dir" && ac_dir=.
7674 if test -f $ac_dir/$ac_word; then
7675 ac_cv_path_GENCAT="$ac_dir/$ac_word"
7680 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
7684 GENCAT="$ac_cv_path_GENCAT"
7685 if test -n "$GENCAT"; then
7686 echo "$ac_t""$GENCAT" 1>&6
7688 echo "$ac_t""no" 1>&6
7690 if test "$GENCAT" != "no"; then
7691 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7692 set dummy gmsgfmt; ac_word=$2
7693 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7694 echo "configure:7695: checking for $ac_word" >&5
7695 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7696 echo $ac_n "(cached) $ac_c" 1>&6
7700 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7703 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7708 for ac_dir in $ac_dummy; do
7709 test -z "$ac_dir" && ac_dir=.
7710 if test -f $ac_dir/$ac_word; then
7711 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7716 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
7720 GMSGFMT="$ac_cv_path_GMSGFMT"
7721 if test -n "$GMSGFMT"; then
7722 echo "$ac_t""$GMSGFMT" 1>&6
7724 echo "$ac_t""no" 1>&6
7727 if test "$GMSGFMT" = "no"; then
7728 # Extract the first word of "msgfmt", so it can be a program name with args.
7729 set dummy msgfmt; ac_word=$2
7730 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7731 echo "configure:7732: checking for $ac_word" >&5
7732 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7733 echo $ac_n "(cached) $ac_c" 1>&6
7737 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7740 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7741 for ac_dir in $PATH; do
7742 test -z "$ac_dir" && ac_dir=.
7743 if test -f $ac_dir/$ac_word; then
7744 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7745 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7751 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
7755 GMSGFMT="$ac_cv_path_GMSGFMT"
7756 if test -n "$GMSGFMT"; then
7757 echo "$ac_t""$GMSGFMT" 1>&6
7759 echo "$ac_t""no" 1>&6
7763 # Extract the first word of "xgettext", so it can be a program name with args.
7764 set dummy xgettext; ac_word=$2
7765 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7766 echo "configure:7767: checking for $ac_word" >&5
7767 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7768 echo $ac_n "(cached) $ac_c" 1>&6
7772 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7775 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7776 for ac_dir in $PATH; do
7777 test -z "$ac_dir" && ac_dir=.
7778 if test -f $ac_dir/$ac_word; then
7779 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7780 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7786 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7790 XGETTEXT="$ac_cv_path_XGETTEXT"
7791 if test -n "$XGETTEXT"; then
7792 echo "$ac_t""$XGETTEXT" 1>&6
7794 echo "$ac_t""no" 1>&6
7797 USE_INCLUDED_LIBINTL=yes
7801 INTLDEPS='$(top_builddir)/intl/libintl.a'
7803 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7804 nls_cv_header_intl=intl/libintl.h
7805 nls_cv_header_libgt=intl/libgettext.h
7808 echo "$ac_t""no" 1>&6
7814 if test "$CATOBJEXT" = "NONE"; then
7815 nls_cv_use_gnu_gettext=yes
7819 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7820 INTLOBJS="\$(GETTOBJS)"
7821 # Extract the first word of "msgfmt", so it can be a program name with args.
7822 set dummy msgfmt; ac_word=$2
7823 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7824 echo "configure:7825: checking for $ac_word" >&5
7825 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7826 echo $ac_n "(cached) $ac_c" 1>&6
7830 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7834 for ac_dir in $PATH; do
7835 test -z "$ac_dir" && ac_dir=.
7836 if test -f $ac_dir/$ac_word; then
7837 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7838 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7844 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7848 MSGFMT="$ac_cv_path_MSGFMT"
7849 if test -n "$MSGFMT"; then
7850 echo "$ac_t""$MSGFMT" 1>&6
7852 echo "$ac_t""no" 1>&6
7855 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7856 set dummy gmsgfmt; ac_word=$2
7857 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7858 echo "configure:7859: checking for $ac_word" >&5
7859 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7860 echo $ac_n "(cached) $ac_c" 1>&6
7864 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7867 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7870 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7872 for ac_dir in $ac_dummy; do
7873 test -z "$ac_dir" && ac_dir=.
7874 if test -f $ac_dir/$ac_word; then
7875 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7880 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7884 GMSGFMT="$ac_cv_path_GMSGFMT"
7885 if test -n "$GMSGFMT"; then
7886 echo "$ac_t""$GMSGFMT" 1>&6
7888 echo "$ac_t""no" 1>&6
7891 # Extract the first word of "xgettext", so it can be a program name with args.
7892 set dummy xgettext; ac_word=$2
7893 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7894 echo "configure:7895: checking for $ac_word" >&5
7895 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7896 echo $ac_n "(cached) $ac_c" 1>&6
7900 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7903 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7904 for ac_dir in $PATH; do
7905 test -z "$ac_dir" && ac_dir=.
7906 if test -f $ac_dir/$ac_word; then
7907 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7908 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7914 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7918 XGETTEXT="$ac_cv_path_XGETTEXT"
7919 if test -n "$XGETTEXT"; then
7920 echo "$ac_t""$XGETTEXT" 1>&6
7922 echo "$ac_t""no" 1>&6
7926 USE_INCLUDED_LIBINTL=yes
7930 INTLDEPS='$(top_builddir)/intl/libintl.a'
7932 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7933 nls_cv_header_intl=intl/libintl.h
7934 nls_cv_header_libgt=intl/libgettext.h
7937 if test "$XGETTEXT" != ":"; then
7938 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7941 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
7946 # We need to process the po/ directory.
7950 nls_cv_header_intl=intl/libintl.h
7951 nls_cv_header_libgt=intl/libgettext.h
7957 # If this is used in GNU gettext we have to set USE_NLS to `yes'
7958 # because some of the sources are only built for this goal.
7959 if test "$PACKAGE" = gettext; then
7961 USE_INCLUDED_LIBINTL=yes
7964 for lang in $ALL_LINGUAS; do
7965 GMOFILES="$GMOFILES $lang.gmo"
7966 POFILES="$POFILES $lang.po"
7982 if test "x$CATOBJEXT" != "x"; then
7983 if test "x$ALL_LINGUAS" = "x"; then
7986 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
7987 echo "configure:7988: checking for catalogs to be installed" >&5
7989 for lang in ${LINGUAS=$ALL_LINGUAS}; do
7990 case "$ALL_LINGUAS" in
7991 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
7994 LINGUAS=$NEW_LINGUAS
7995 echo "$ac_t""$LINGUAS" 1>&6
7998 if test -n "$LINGUAS"; then
7999 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8003 if test $ac_cv_header_locale_h = yes; then
8004 INCLUDE_LOCALE_H="#include <locale.h>"
8007 /* The system does not provide the header <locale.h>. Take care yourself. */"
8011 test -d intl || mkdir intl
8012 if test "$CATOBJEXT" = ".cat"; then
8013 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
8014 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
8015 echo "configure:8016: checking for linux/version.h" >&5
8016 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8017 echo $ac_n "(cached) $ac_c" 1>&6
8019 cat > conftest.$ac_ext <<EOF
8020 #line 8021 "configure"
8021 #include "confdefs.h"
8022 #include <linux/version.h>
8024 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8025 { (eval echo configure:8026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8026 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8027 if test -z "$ac_err"; then
8029 eval "ac_cv_header_$ac_safe=yes"
8032 echo "configure: failed program was:" >&5
8033 cat conftest.$ac_ext >&5
8035 eval "ac_cv_header_$ac_safe=no"
8039 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8040 echo "$ac_t""yes" 1>&6
8043 echo "$ac_t""no" 1>&6
8048 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
8050 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8051 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
8053 if test "$PACKAGE" = "gettext"; then
8064 if test -n "$ac_aux_dir"; then
8065 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
8067 if test -z "$MKINSTALLDIRS"; then
8068 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8075 test -d po || mkdir po
8076 if test "x$srcdir" != "x."; then
8077 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8078 posrcprefix="$srcdir/"
8080 posrcprefix="../$srcdir/"
8086 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8087 < $srcdir/po/POTFILES.in > po/POTFILES
8089 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
8091 # Windows32 Registry support for specifying GCC installation paths.
8092 # Check whether --enable-win32-registry or --disable-win32-registry was given.
8093 if test "${enable_win32_registry+set}" = set; then
8094 enableval="$enable_win32_registry"
8099 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
8100 echo "configure:8101: checking whether windows registry support is requested" >&5
8101 if test x$enable_win32_registry != xno; then
8102 cat >> confdefs.h <<\EOF
8103 #define ENABLE_WIN32_REGISTRY 1
8106 echo "$ac_t""yes" 1>&6
8108 echo "$ac_t""no" 1>&6
8111 # Check if user specified a different registry key.
8112 case x${enable_win32_registry} in
8115 gcc_cv_win32_registry_key="$VERSION"
8118 # no registry lookup.
8119 gcc_cv_win32_registry_key=''
8122 # user-specified key.
8123 gcc_cv_win32_registry_key="$enable_win32_registry"
8127 if test x$enable_win32_registry != xno; then
8128 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
8129 echo "configure:8130: checking registry key on windows hosts" >&5
8130 cat >> confdefs.h <<EOF
8131 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
8134 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
8137 # Get an absolute path to the GCC top-level source directory
8143 # Conditionalize the makefile for this host machine.
8144 # Make-host contains the concatenation of all host makefile fragments
8145 # [there can be more than one]. This file is built by configure.frag.
8146 host_overrides=Make-host
8147 dep_host_xmake_file=
8148 for f in .. ${host_xmake_file}
8150 if test -f ${srcdir}/config/$f
8152 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
8156 # Conditionalize the makefile for this target machine.
8157 # Make-target contains the concatenation of all host makefile fragments
8158 # [there can be more than one]. This file is built by configure.frag.
8159 target_overrides=Make-target
8161 for f in .. ${tmake_file}
8163 if test -f ${srcdir}/config/$f
8165 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
8169 # If the host doesn't support symlinks, modify CC in
8170 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
8171 # Otherwise, we can use "CC=$(CC)".
8173 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
8175 cc_set_by_configure="\$(CC)"
8176 quoted_cc_set_by_configure="\$(CC)"
8177 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
8180 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
8182 symbolic_link="cp -p"
8186 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
8187 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
8188 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
8192 out_object_file=`basename $out_file .c`.o
8195 for f in $tm_file; do
8198 tm_file_list="${tm_file_list} $f" ;;
8199 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
8204 for f in $host_xm_file; do
8206 auto-host.h | gansidecl.h | hwint.h )
8207 host_xm_file_list="${host_xm_file_list} $f" ;;
8208 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
8213 for f in $build_xm_file; do
8215 auto-build.h | auto-host.h | gansidecl.h | hwint.h )
8216 build_xm_file_list="${build_xm_file_list} $f" ;;
8217 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8221 # Define macro CROSS_COMPILE in compilation
8222 # if this is a cross-compiler.
8223 # Also use all.cross instead of all.internal
8224 # and add cross-make to Makefile.
8225 cross_overrides="/dev/null"
8226 if test x$host != x$target
8228 cross_defines="CROSS=-DCROSS_COMPILE"
8229 cross_overrides="${topdir}/cross-make"
8232 # When building gcc with a cross-compiler, we need to fix a few things.
8233 # This must come after cross-make as we want all.build to override
8235 build_overrides="/dev/null"
8236 if test x$build != x$host
8238 build_overrides="${topdir}/build-make"
8241 # Expand extra_headers to include complete path.
8242 # This substitutes for lots of t-* files.
8244 if test "x$extra_headers" = x
8247 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8248 for file in $extra_headers;
8250 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8254 if test x$use_collect2 = xno; then
8258 # Add a definition of USE_COLLECT2 if system wants one.
8259 # Also tell toplev.c what to do.
8260 # This substitutes for lots of t-* files.
8261 if test x$use_collect2 = x
8266 will_use_collect2="collect2"
8267 maybe_use_collect2="-DUSE_COLLECT2"
8271 # Set MD_DEPS if the real md file is in md.pre-cpp.
8272 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
8273 # for line oriented comments, so we must always use a GNU cpp. If
8274 # building gcc with a cross compiler, use the cross compiler just
8275 # built. Otherwise, we can use the cpp just built.
8277 if test "x$md_cppflags" = x
8279 md_file_sub=$srcdir/config/$md_file
8284 # If we have gas in the build tree, make a link to it.
8285 if test -f ../gas/Makefile; then
8286 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
8289 # If we have nm in the build tree, make a link to it.
8290 if test -f ../binutils/Makefile; then
8291 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
8294 # If we have ld in the build tree, make a link to it.
8295 if test -f ../ld/Makefile; then
8296 # if test x$use_collect2 = x; then
8297 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8299 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
8303 # Figure out what assembler alignment features are present.
8304 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
8305 echo "configure:8306: checking assembler alignment features" >&5
8307 gcc_cv_as_alignment_features=
8308 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8309 if test -x "$DEFAULT_ASSEMBLER"; then
8310 gcc_cv_as="$DEFAULT_ASSEMBLER"
8311 elif test -x "$AS"; then
8313 elif test -x as$host_exeext; then
8314 # Build using assembler in the current directory.
8315 gcc_cv_as=./as$host_exeext
8316 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
8317 # Single tree build which includes gas.
8318 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
8320 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
8321 if test x$gcc_cv_gas_version != x; then
8325 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
8326 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
8327 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
8328 # Gas version 2.6 and later support for .balign and .p2align.
8329 # bytes to skip when using .p2align.
8330 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
8331 gcc_cv_as_alignment_features=".balign and .p2align"
8332 cat >> confdefs.h <<\EOF
8333 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8337 # Gas version 2.8 and later support specifying the maximum
8338 # bytes to skip when using .p2align.
8339 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
8340 gcc_cv_as_alignment_features=".p2align including maximum skip"
8341 cat >> confdefs.h <<\EOF
8342 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8347 elif test x$host = x$target; then
8349 # Search the same directories that the installed compiler will
8350 # search. Else we may find the wrong assembler and lose. If we
8351 # do not find a suitable assembler binary, then try the user's
8354 # Also note we have to check MD_EXEC_PREFIX before checking the
8355 # user's path. Unfortunately, there is no good way to get at the
8356 # value of MD_EXEC_PREFIX here. So we do a brute force search
8357 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
8358 # to be fixed as part of the make/configure rewrite too.
8360 if test "x$exec_prefix" = xNONE; then
8361 if test "x$prefix" = xNONE; then
8362 test_prefix=/usr/local
8367 test_prefix=$exec_prefix
8370 # If the loop below does not find an assembler, then use whatever
8371 # one we can find in the users's path.
8375 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
8376 $test_prefix/lib/gcc-lib/$target \
8377 /usr/lib/gcc/$target/$gcc_version \
8378 /usr/lib/gcc/$target \
8379 $test_prefix/$target/bin/$target/$gcc_version \
8380 $test_prefix/$target/bin \
8385 /bsd43/usr/lib/cmplrs/cc \
8386 /usr/cross64/usr/bin \
8387 /usr/lib/cmplrs/cc \
8388 /sysv/usr/lib/cmplrs/cc \
8389 /svr4/usr/lib/cmplrs/cc \
8392 for dir in $test_dirs; do
8393 if test -f $dir/as$host_exeext; then
8394 gcc_cv_as=$dir/as$host_exeext
8399 if test x$gcc_cv_as != x; then
8400 # Check if we have .balign and .p2align
8401 echo ".balign 4" > conftest.s
8402 echo ".p2align 2" >> conftest.s
8403 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8404 gcc_cv_as_alignment_features=".balign and .p2align"
8405 cat >> confdefs.h <<\EOF
8406 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8410 rm -f conftest.s conftest.o
8411 # Check if specifying the maximum bytes to skip when
8412 # using .p2align is supported.
8413 echo ".p2align 4,,7" > conftest.s
8414 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8415 gcc_cv_as_alignment_features=".p2align including maximum skip"
8416 cat >> confdefs.h <<\EOF
8417 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8421 rm -f conftest.s conftest.o
8423 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
8425 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
8426 echo "configure:8427: checking assembler subsection support" >&5
8427 gcc_cv_as_subsections=
8428 if test x$gcc_cv_as != x; then
8429 # Check if we have .subsection
8430 echo ".subsection 1" > conftest.s
8431 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8432 gcc_cv_as_subsections=".subsection"
8433 if test -x nm$host_exeext; then
8434 gcc_cv_nm=./nm$host_exeext
8435 elif test x$host = x$target; then
8437 gcc_cv_nm=nm$host_exeext
8439 if test x$gcc_cv_nm != x; then
8440 cat > conftest.s <<EOF
8441 conftest_label1: .word 0
8443 conftest_label2: .word 0
8446 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8447 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
8448 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
8449 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
8452 gcc_cv_as_subsections="working .subsection -1"
8453 cat >> confdefs.h <<\EOF
8454 #define HAVE_GAS_SUBSECTION_ORDERING 1
8461 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8463 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
8467 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
8468 echo "configure:8469: checking assembler .register pseudo-op support" >&5
8469 gcc_cv_as_register_pseudo_op=
8470 if test x$gcc_cv_as != x; then
8471 # Check if we have .register
8472 echo ".register %g2, #scratch" > conftest.s
8473 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8474 gcc_cv_as_register_pseudo_op=yes
8475 cat >> confdefs.h <<\EOF
8476 #define HAVE_AS_REGISTER_PSEUDO_OP 1
8480 rm -f conftest.s conftest.o
8482 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
8484 echo $ac_n "checking assembler offsetable %lo() support""... $ac_c" 1>&6
8485 echo "configure:8486: checking assembler offsetable %lo() support" >&5
8486 gcc_cv_as_offsetable_lo10=
8487 if test x$gcc_cv_as != x; then
8488 # Check if assembler has offsetable %lo()
8489 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
8490 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
8491 gcc_cv_as_flags64="-xarch=v9"
8492 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s > /dev/null 2>&1; then
8495 gcc_cv_as_flags64="-64"
8496 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s > /dev/null 2>&1; then
8499 gcc_cv_as_flags64=""
8502 if test -n "$gcc_cv_as_flags64" ; then
8503 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s > /dev/null 2>&1; then
8504 if cmp conftest.o conftest1.o > /dev/null 2>&1; then
8507 gcc_cv_as_offsetable_lo10=yes
8508 cat >> confdefs.h <<\EOF
8509 #define HAVE_AS_OFFSETABLE_LO10 1
8515 rm -f conftest.s conftest.o conftest1.s conftest1.o
8517 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
8521 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
8522 echo "configure:8523: checking assembler instructions" >&5
8523 gcc_cv_as_instructions=
8524 if test x$gcc_cv_as != x; then
8525 set "filds fists" "filds mem; fists mem"
8528 echo "$2" > conftest.s
8529 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8530 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
8531 cat >> confdefs.h <<EOF
8532 #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1
8538 rm -f conftest.s conftest.o
8540 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
8544 # Figure out what language subdirectories are present.
8545 # Look if the user specified --enable-languages="..."; if not, use
8546 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8548 if test x"${enable_languages+set}" != xset; then
8549 if test x"${LANGUAGES+set}" = xset; then
8550 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
8552 enable_languages=all
8556 for lang in ${srcdir}/*/config-lang.in ..
8560 # The odd quoting in the next line works around
8561 # an apparent bug in bash 1.12 on linux.
8562 ${srcdir}/[*]/config-lang.in) ;;
8564 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
8565 if test "x$lang_alias" = x
8567 echo "$lang doesn't set \$language." 1>&2
8570 if test x"${enable_languages}" = xall; then
8573 case "${enable_languages}" in
8574 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
8582 if test x"${add_this_lang}" = xyes; then
8584 ${srcdir}/ada/config-lang.in)
8585 if test x$gnat = xyes ; then
8586 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8590 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8598 # Make gthr-default.h if we have a thread file.
8600 if test $thread_file != single; then
8601 rm -f gthr-default.h
8602 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
8603 gthread_flags=-DHAVE_GTHR_DEFAULT
8607 # Make empty files to contain the specs and options for each language.
8608 # Then add #include lines to for a compiler that has specs and/or options.
8613 rm -f specs.h options.h gencheck.h
8614 touch specs.h options.h gencheck.h
8615 for subdir in . $subdirs
8617 if test -f $srcdir/$subdir/lang-specs.h; then
8618 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
8619 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
8621 if test -f $srcdir/$subdir/lang-options.h; then
8622 echo "#include \"$subdir/lang-options.h\"" >>options.h
8623 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
8625 if test -f $srcdir/$subdir/$subdir-tree.def; then
8626 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
8627 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
8631 # These (without "all_") are set in each config-lang.in.
8632 # `language' must be a single word so is spelled singularly.
8638 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile'
8639 # List of language makefile fragments.
8644 # Add the language fragments.
8645 # Languages are added via two mechanisms. Some information must be
8646 # recorded in makefile variables, these are defined in config-lang.in.
8647 # We accumulate them and plug them into the main Makefile.
8648 # The other mechanism is a set of hooks for each of the main targets
8649 # like `clean', `install', etc.
8651 language_fragments="Make-lang"
8652 language_hooks="Make-hooks"
8655 for s in .. $subdirs
8667 . ${srcdir}/$s/config-lang.in
8668 if test "x$language" = x
8670 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
8673 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
8674 all_languages="$all_languages $language"
8675 if test "x$boot_language" = xyes
8677 all_boot_languages="$all_boot_languages $language"
8679 all_compilers="$all_compilers $compilers"
8680 all_stagestuff="$all_stagestuff $stagestuff"
8681 all_diff_excludes="$all_diff_excludes $diff_excludes"
8682 all_headers="$all_headers $headers"
8683 all_outputs="$all_outputs $outputs"
8684 if test x$outputs = x
8686 oldstyle_subdirs="$oldstyle_subdirs $s"
8688 all_lib2funcs="$all_lib2funcs $lib2funcs"
8692 # Since we can't use `::' targets, we link each language in
8693 # with a set of hooks, reached indirectly via lang.${target}.
8697 target_list="all.build all.cross start.encap rest.encap \
8699 install-normal install-common install-info install-man \
8701 mostlyclean clean distclean extraclean maintainer-clean \
8702 stage1 stage2 stage3 stage4"
8703 for t in $target_list
8706 for lang in .. $all_languages
8708 if test $lang != ".."; then
8712 echo "lang.$t: $x" >> Make-hooks
8715 # If we're not building in srcdir, create .gdbinit.
8717 if test ! -f Makefile.in; then
8718 echo "dir ." > .gdbinit
8719 echo "dir ${srcdir}" >> .gdbinit
8720 if test x$gdb_needs_out_file_path = xyes
8722 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
8724 if test "x$subdirs" != x; then
8727 echo "dir ${srcdir}/$s" >> .gdbinit
8730 echo "source ${srcdir}/.gdbinit" >> .gdbinit
8733 # Define variables host_canonical and build_canonical
8734 # because some Cygnus local changes in the Makefile depend on them.
8735 build_canonical=${build}
8736 host_canonical=${host}
8738 if test "${host}" != "${target}" ; then
8739 target_subdir=${target}/
8745 # If this is using newlib, then define inhibit_libc in
8746 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
8747 # libgcc.a, but that's OK because newib should have its own version of
8750 if test x$with_newlib = xyes; then
8751 inhibit_libc=-Dinhibit_libc
8755 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
8756 # absolute path for gcc_tooldir based on inserting the number of up-directory
8757 # movements required to get from $(exec_prefix) to $(prefix) into the basic
8758 # $(libsubdir)/@(unlibsubdir) based path.
8759 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
8760 # make and thus we'd get different behavior depending on where we built the
8762 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
8763 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
8765 # An explanation of the sed strings:
8766 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
8767 # -e 's|/$||' match a trailing forward slash and eliminates it
8768 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
8769 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
8771 # (*) Note this pattern overwrites the first character of the string
8772 # with a forward slash if one is not already present. This is not a
8773 # problem because the exact names of the sub-directories concerned is
8774 # unimportant, just the number of them matters.
8776 # The practical upshot of these patterns is like this:
8778 # prefix exec_prefix result
8779 # ------ ----------- ------
8781 # /foo/ /foo/bar ../
8782 # /foo /foo/bar/ ../
8783 # /foo/ /foo/bar/ ../
8784 # /foo /foo/bar/ugg ../../
8787 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
8792 # Nothing to do for FLOAT_H, float_format already handled.
8796 # Process the language and host/target makefile fragments.
8797 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
8799 # Substitute configuration variables
8860 # Echo that links are built
8861 if test x$host = x$target
8869 if test x$host != x$build
8871 str3=" on a $build system"
8874 if test "x$str2" != x || test "x$str3" != x
8879 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
8881 if test "x$str2" != x || test "x$str3" != x
8883 echo " ${str2}${str3}." 1>&2
8886 # Truncate the target if necessary
8887 if test x$host_truncate_target != x; then
8888 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
8891 # Configure the subdirectories
8892 # AC_CONFIG_SUBDIRS($subdirs)
8894 # Create the Makefile
8895 # and configure language subdirectories
8897 cat > confcache <<\EOF
8898 # This file is a shell script that caches the results of configure
8899 # tests run on this system so they can be shared between configure
8900 # scripts and configure runs. It is not useful on other systems.
8901 # If it contains results you don't want to keep, you may remove or edit it.
8903 # By default, configure uses ./config.cache as the cache file,
8904 # creating it if it does not exist already. You can give configure
8905 # the --cache-file=FILE option to use a different cache file; that is
8906 # what configure does when it calls configure scripts in
8907 # subdirectories, so they share the cache.
8908 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8909 # config.status only pays attention to the cache file if you give it the
8910 # --recheck option to rerun configure.
8913 # The following way of writing the cache mishandles newlines in values,
8914 # but we know of no workaround that is simple, portable, and efficient.
8915 # So, don't put newlines in cache variables' values.
8916 # Ultrix sh set writes to stderr and can't be redirected directly,
8917 # and sets the high bit in the cache file unless we assign to the vars.
8919 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8921 # `set' does not quote correctly, so add quotes (double-quote substitution
8922 # turns \\\\ into \\, and sed turns \\ into \).
8924 -e "s/'/'\\\\''/g" \
8925 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8928 # `set' quotes correctly as required by POSIX, so do not add quotes.
8929 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8932 if cmp -s $cache_file confcache; then
8935 if test -w $cache_file; then
8936 echo "updating cache $cache_file"
8937 cat confcache > $cache_file
8939 echo "not updating unwritable cache $cache_file"
8944 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8946 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8947 # Let make expand exec_prefix.
8948 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8950 # Any assignment to VPATH causes Sun make to only execute
8951 # the first set of double-colon rules, so remove it if not needed.
8952 # If there is a colon in the path, we need to keep it.
8953 if test "x$srcdir" = x.; then
8954 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8957 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8959 DEFS=-DHAVE_CONFIG_H
8961 # Without the "./", some shells look in PATH for config.status.
8962 : ${CONFIG_STATUS=./config.status}
8964 echo creating $CONFIG_STATUS
8965 rm -f $CONFIG_STATUS
8966 cat > $CONFIG_STATUS <<EOF
8968 # Generated automatically by configure.
8969 # Run this file to recreate the current configuration.
8970 # This directory was configured as follows,
8971 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8973 # $0 $ac_configure_args
8975 # Compiler output produced by configure, useful for debugging
8976 # configure, is in ./config.log if it exists.
8978 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8981 case "\$ac_option" in
8982 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8983 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8984 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8985 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8986 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8988 -help | --help | --hel | --he | --h)
8989 echo "\$ac_cs_usage"; exit 0 ;;
8990 *) echo "\$ac_cs_usage"; exit 1 ;;
8994 ac_given_srcdir=$srcdir
8996 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8998 cat >> $CONFIG_STATUS <<EOF
9000 # Protect against being on the right side of a sed subst in config.status.
9001 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9002 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9006 s%@CFLAGS@%$CFLAGS%g
9007 s%@CPPFLAGS@%$CPPFLAGS%g
9008 s%@CXXFLAGS@%$CXXFLAGS%g
9009 s%@FFLAGS@%$FFLAGS%g
9011 s%@LDFLAGS@%$LDFLAGS%g
9013 s%@exec_prefix@%$exec_prefix%g
9014 s%@prefix@%$prefix%g
9015 s%@program_transform_name@%$program_transform_name%g
9016 s%@bindir@%$bindir%g
9017 s%@sbindir@%$sbindir%g
9018 s%@libexecdir@%$libexecdir%g
9019 s%@datadir@%$datadir%g
9020 s%@sysconfdir@%$sysconfdir%g
9021 s%@sharedstatedir@%$sharedstatedir%g
9022 s%@localstatedir@%$localstatedir%g
9023 s%@libdir@%$libdir%g
9024 s%@includedir@%$includedir%g
9025 s%@oldincludedir@%$oldincludedir%g
9026 s%@infodir@%$infodir%g
9027 s%@mandir@%$mandir%g
9029 s%@host_alias@%$host_alias%g
9030 s%@host_cpu@%$host_cpu%g
9031 s%@host_vendor@%$host_vendor%g
9032 s%@host_os@%$host_os%g
9033 s%@target@%$target%g
9034 s%@target_alias@%$target_alias%g
9035 s%@target_cpu@%$target_cpu%g
9036 s%@target_vendor@%$target_vendor%g
9037 s%@target_os@%$target_os%g
9039 s%@build_alias@%$build_alias%g
9040 s%@build_cpu@%$build_cpu%g
9041 s%@build_vendor@%$build_vendor%g
9042 s%@build_os@%$build_os%g
9044 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
9045 s%@SET_MAKE@%$SET_MAKE%g
9048 s%@LEXLIB@%$LEXLIB%g
9051 s%@RANLIB@%$RANLIB%g
9053 s%@INSTALL@%$INSTALL%g
9054 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9055 s%@INSTALL_DATA@%$INSTALL_DATA%g
9058 s%@vfprintf@%$vfprintf%g
9059 s%@doprint@%$doprint%g
9060 s%@manext@%$manext%g
9061 s%@objext@%$objext%g
9062 s%@PACKAGE@%$PACKAGE%g
9063 s%@VERSION@%$VERSION%g
9064 s%@ALLOCA@%$ALLOCA%g
9065 s%@USE_NLS@%$USE_NLS%g
9066 s%@MSGFMT@%$MSGFMT%g
9067 s%@GMSGFMT@%$GMSGFMT%g
9068 s%@XGETTEXT@%$XGETTEXT%g
9069 s%@GENCAT@%$GENCAT%g
9070 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9071 s%@CATALOGS@%$CATALOGS%g
9072 s%@CATOBJEXT@%$CATOBJEXT%g
9073 s%@DATADIRNAME@%$DATADIRNAME%g
9074 s%@GMOFILES@%$GMOFILES%g
9075 s%@INSTOBJEXT@%$INSTOBJEXT%g
9076 s%@INTLDEPS@%$INTLDEPS%g
9077 s%@INTLLIBS@%$INTLLIBS%g
9078 s%@INTLOBJS@%$INTLOBJS%g
9079 s%@POFILES@%$POFILES%g
9081 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
9083 s%@GT_YES@%$GT_YES%g
9084 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9086 s%@gthread_flags@%$gthread_flags%g
9087 s%@build_canonical@%$build_canonical%g
9088 s%@host_canonical@%$host_canonical%g
9089 s%@target_subdir@%$target_subdir%g
9090 s%@inhibit_libc@%$inhibit_libc%g
9091 s%@gcc_tooldir@%$gcc_tooldir%g
9092 s%@dollar@%$dollar%g
9093 s%@objdir@%$objdir%g
9094 s%@subdirs@%$subdirs%g
9095 s%@all_boot_languages@%$all_boot_languages%g
9096 s%@all_compilers@%$all_compilers%g
9097 s%@all_diff_excludes@%$all_diff_excludes%g
9098 s%@all_headers@%$all_headers%g
9099 s%@all_lang_makefiles@%$all_lang_makefiles%g
9100 s%@all_languages@%$all_languages%g
9101 s%@all_lib2funcs@%$all_lib2funcs%g
9102 s%@all_stagestuff@%$all_stagestuff%g
9103 s%@build_exeext@%$build_exeext%g
9104 s%@build_install_headers_dir@%$build_install_headers_dir%g
9105 s%@build_xm_file_list@%$build_xm_file_list%g
9106 s%@cc_set_by_configure@%$cc_set_by_configure%g
9107 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
9108 s%@cpp_install_dir@%$cpp_install_dir%g
9109 s%@cpp_main@%$cpp_main%g
9110 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
9111 s%@dep_tmake_file@%$dep_tmake_file%g
9112 s%@extra_c_flags@%$extra_c_flags%g
9113 s%@extra_c_objs@%$extra_c_objs%g
9114 s%@extra_cpp_objs@%$extra_cpp_objs%g
9115 s%@extra_cxx_objs@%$extra_cxx_objs%g
9116 s%@extra_headers_list@%$extra_headers_list%g
9117 s%@extra_objs@%$extra_objs%g
9118 s%@extra_parts@%$extra_parts%g
9119 s%@extra_passes@%$extra_passes%g
9120 s%@extra_programs@%$extra_programs%g
9121 s%@fixinc_defs@%$fixinc_defs%g
9122 s%@float_h_file@%$float_h_file%g
9123 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
9124 s%@gcc_version@%$gcc_version%g
9125 s%@gcc_version_trigger@%$gcc_version_trigger%g
9126 s%@host_exeext@%$host_exeext%g
9127 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
9128 s%@host_xm_file_list@%$host_xm_file_list%g
9129 s%@install@%$install%g
9130 s%@lang_options_files@%$lang_options_files%g
9131 s%@lang_specs_files@%$lang_specs_files%g
9132 s%@lang_tree_files@%$lang_tree_files%g
9133 s%@local_prefix@%$local_prefix%g
9134 s%@maybe_use_collect2@%$maybe_use_collect2%g
9135 s%@md_file@%$md_file%g
9136 s%@objc_boehm_gc@%$objc_boehm_gc%g
9137 s%@out_file@%$out_file%g
9138 s%@out_object_file@%$out_object_file%g
9139 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
9140 s%@symbolic_link@%$symbolic_link%g
9141 s%@thread_file@%$thread_file%g
9142 s%@tm_file_list@%$tm_file_list%g
9143 s%@will_use_collect2@%$will_use_collect2%g
9144 /@target_overrides@/r $target_overrides
9145 s%@target_overrides@%%g
9146 /@host_overrides@/r $host_overrides
9147 s%@host_overrides@%%g
9148 s%@cross_defines@%$cross_defines%g
9149 /@cross_overrides@/r $cross_overrides
9150 s%@cross_overrides@%%g
9151 /@build_overrides@/r $build_overrides
9152 s%@build_overrides@%%g
9153 /@language_fragments@/r $language_fragments
9154 s%@language_fragments@%%g
9155 /@language_hooks@/r $language_hooks
9156 s%@language_hooks@%%g
9161 cat >> $CONFIG_STATUS <<\EOF
9163 # Split the substitutions into bite-sized pieces for seds with
9164 # small command number limits, like on Digital OSF/1 and HP-UX.
9165 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9166 ac_file=1 # Number of current file.
9167 ac_beg=1 # First line for current file.
9168 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9171 while $ac_more_lines; do
9172 if test $ac_beg -gt 1; then
9173 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9175 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9177 if test ! -s conftest.s$ac_file; then
9179 rm -f conftest.s$ac_file
9181 if test -z "$ac_sed_cmds"; then
9182 ac_sed_cmds="sed -f conftest.s$ac_file"
9184 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9186 ac_file=`expr $ac_file + 1`
9188 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9191 if test -z "$ac_sed_cmds"; then
9196 cat >> $CONFIG_STATUS <<EOF
9198 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
9200 cat >> $CONFIG_STATUS <<\EOF
9201 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9202 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9204 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9205 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9206 *) ac_file_in="${ac_file}.in" ;;
9209 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9211 # Remove last slash and all that follows it. Not all systems have dirname.
9212 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9213 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9214 # The file is in a subdirectory.
9215 test ! -d "$ac_dir" && mkdir "$ac_dir"
9216 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9217 # A "../" for each directory in $ac_dir_suffix.
9218 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9220 ac_dir_suffix= ac_dots=
9223 case "$ac_given_srcdir" in
9225 if test -z "$ac_dots"; then top_srcdir=.
9226 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9227 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9229 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9230 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9234 echo creating "$ac_file"
9236 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9238 *Makefile*) ac_comsub="1i\\
9239 # $configure_input" ;;
9243 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9245 s%@configure_input@%$configure_input%g
9246 s%@srcdir@%$srcdir%g
9247 s%@top_srcdir@%$top_srcdir%g
9248 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9252 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9253 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9255 # ac_d sets the value in "#define NAME VALUE" lines.
9256 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9257 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9260 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9261 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9262 ac_uB='\([ ]\)%\1#\2define\3'
9265 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9266 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9267 ac_eB='$%\1#\2define\3'
9271 if test "${CONFIG_HEADERS+set}" != set; then
9273 cat >> $CONFIG_STATUS <<EOF
9274 CONFIG_HEADERS="auto-host.h:config.in"
9276 cat >> $CONFIG_STATUS <<\EOF
9278 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9279 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9281 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9282 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9283 *) ac_file_in="${ac_file}.in" ;;
9286 echo creating $ac_file
9288 rm -f conftest.frag conftest.in conftest.out
9289 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9290 cat $ac_file_inputs > conftest.in
9294 # Transform confdefs.h into a sed script conftest.vals that substitutes
9295 # the proper values into config.h.in to produce config.h. And first:
9296 # Protect against being on the right side of a sed subst in config.status.
9297 # Protect against being in an unquoted here document in config.status.
9299 cat > conftest.hdr <<\EOF
9302 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9306 sed -n -f conftest.hdr confdefs.h > conftest.vals
9309 # This sed command replaces #undef with comments. This is necessary, for
9310 # example, in the case of _POSIX_SOURCE, which is predefined and required
9311 # on some systems where configure will not decide to define it.
9312 cat >> conftest.vals <<\EOF
9313 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9316 # Break up conftest.vals because some shells have a limit on
9317 # the size of here documents, and old seds have small limits too.
9322 ac_lines=`grep -c . conftest.vals`
9323 # grep -c gives empty output for an empty file on some AIX systems.
9324 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9325 # Write a limited-size here document to conftest.frag.
9326 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9327 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9329 sed -f conftest.frag conftest.in > conftest.out
9331 mv conftest.out conftest.in
9333 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9335 mv conftest.tail conftest.vals
9339 cat >> $CONFIG_STATUS <<\EOF
9340 rm -f conftest.frag conftest.h
9341 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9342 cat conftest.in >> conftest.h
9344 if cmp -s $ac_file conftest.h 2>/dev/null; then
9345 echo "$ac_file is unchanged"
9348 # Remove last slash and all that follows it. Not all systems have dirname.
9349 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9350 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9351 # The file is in a subdirectory.
9352 test ! -d "$ac_dir" && mkdir "$ac_dir"
9355 mv conftest.h $ac_file
9361 cat >> $CONFIG_STATUS <<EOF
9362 ac_sources="$nls_cv_header_libgt"
9363 ac_dests="$nls_cv_header_intl"
9366 cat >> $CONFIG_STATUS <<\EOF
9367 srcdir=$ac_given_srcdir
9368 while test -n "$ac_sources"; do
9369 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9370 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9372 echo "linking $srcdir/$ac_source to $ac_dest"
9374 if test ! -r $srcdir/$ac_source; then
9375 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9379 # Make relative symlinks.
9380 # Remove last slash and all that follows it. Not all systems have dirname.
9381 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
9382 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9383 # The dest file is in a subdirectory.
9384 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9385 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
9386 # A "../" for each directory in $ac_dest_dir_suffix.
9387 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
9389 ac_dest_dir_suffix= ac_dots=
9393 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9394 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9397 # Make a symlink if possible; otherwise try a hard link.
9398 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9399 ln $srcdir/$ac_source $ac_dest; then :
9401 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9405 cat >> $CONFIG_STATUS <<EOF
9411 target_alias='${target_alias}'
9413 subdirs='${subdirs}'
9414 oldstyle_subdirs='${oldstyle_subdirs}'
9415 symbolic_link='${symbolic_link}'
9416 program_transform_set='${program_transform_set}'
9417 program_transform_name='${program_transform_name}'
9418 dep_host_xmake_file='${dep_host_xmake_file}'
9419 host_xmake_file='${host_xmake_file}'
9420 dep_tmake_file='${dep_tmake_file}'
9421 tmake_file='${tmake_file}'
9422 thread_file='${thread_file}'
9423 gcc_version='${gcc_version}'
9424 gcc_version_trigger='${gcc_version_trigger}'
9425 local_prefix='${local_prefix}'
9426 build_install_headers_dir='${build_install_headers_dir}'
9427 build_exeext='${build_exeext}'
9428 host_exeext='${host_exeext}'
9429 out_file='${out_file}'
9430 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
9431 SET_MAKE='${SET_MAKE}'
9432 target_list='${target_list}'
9433 target_overrides='${target_overrides}'
9434 host_overrides='${host_overrides}'
9435 cross_defines='${cross_defines}'
9436 cross_overrides='${cross_overrides}'
9437 build_overrides='${build_overrides}'
9438 cpp_install_dir='${cpp_install_dir}'
9441 cat >> $CONFIG_STATUS <<\EOF
9442 case "$CONFIG_FILES" in *po/Makefile.in*)
9443 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
9446 . $srcdir/configure.lang
9447 case x$CONFIG_HEADERS in
9448 xauto-host.h:config.in)
9451 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
9452 # bootstrapping and the installation procedure can still use
9453 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
9454 # FLAGS_TO_PASS has been modified to solve the problem there.
9455 # This is virtually a duplicate of what happens in configure.lang; we do
9456 # an extra check to make sure this only happens if ln -s can be used.
9457 if test "$symbolic_link" = "ln -s"; then
9458 for d in .. ${subdirs} ; do
9459 if test $d != ..; then
9462 for t in stage1 stage2 stage3 stage4 include
9465 $symbolic_link ../$t $t 2>/dev/null
9471 # Avoid having to add intl to our include paths.
9472 if test -f intl/libintl.h; then
9473 echo creating libintl.h
9474 echo '#include "intl/libintl.h"' >libintl.h
9479 chmod +x $CONFIG_STATUS
9480 rm -fr confdefs* $ac_clean_files
9481 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1